elementary/naviframe - prevent accessing a null pointer
[framework/uifw/elementary.git] / src / lib / Elementary.h.in
1 /*
2  *
3  * vim:ts=8:sw=3:sts=3:expandtab:cino=>5n-3f0^-2{2(0W1st0
4  */
5
6 /**
7 @file Elementary.h.in
8 @brief Elementary Widget Library
9 */
10
11 /**
12 @mainpage Elementary
13 @image html  elementary.png
14 @version 0.8.0
15 @date 2008-2011
16
17 @section intro What is Elementary?
18
19 This is a VERY SIMPLE toolkit. It is not meant for writing extensive desktop
20 applications (yet). Small simple ones with simple needs.
21
22 It is meant to make the programmers work almost brainless but give them lots
23 of flexibility.
24
25 @li @ref Start - Go here to quickly get started with writing Apps
26
27 @section organization Organization
28
29 One can divide Elemementary into three main groups:
30 @li @ref infralist - These are modules that deal with Elementary as a whole.
31 @li @ref widgetslist - These are the widgets you'll compose your UI out of.
32 @li @ref containerslist - These are the containers which hold the widgets.
33
34 @section license License
35
36 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
37 all files in the source tree.
38
39 @section ack Acknowledgements
40 There is a lot that goes into making a widget set, and they don't happen out of
41 nothing. It's like trying to make everyone everywhere happy, regardless of age,
42 gender, race or nationality - and that is really tough. So thanks to people and
43 organisations behind this, as listed in the @ref authors page.
44 */
45
46
47 /**
48  * @defgroup Start Getting Started
49  *
50  * To write an Elementary app, you can get started with the following:
51  *
52 @code
53 #include <Elementary.h>
54 EAPI_MAIN int
55 elm_main(int argc, char **argv)
56 {
57    // create window(s) here and do any application init
58    elm_run(); // run main loop
59    elm_shutdown(); // after mainloop finishes running, shutdown
60    return 0; // exit 0 for exit code
61 }
62 ELM_MAIN()
63 @endcode
64  *
65  * To use autotools (which helps in many ways in the long run, like being able
66  * to immediately create releases of your software directly from your tree
67  * and ensure everything needed to build it is there) you will need a
68  * configure.ac, Makefile.am and autogen.sh file.
69  *
70  * configure.ac:
71  *
72 @verbatim
73 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
74 AC_PREREQ(2.52)
75 AC_CONFIG_SRCDIR(configure.ac)
76 AM_CONFIG_HEADER(config.h)
77 AC_PROG_CC
78 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
79 PKG_CHECK_MODULES([ELEMENTARY], elementary)
80 AC_OUTPUT(Makefile)
81 @endverbatim
82  *
83  * Makefile.am:
84  *
85 @verbatim
86 AUTOMAKE_OPTIONS = 1.4 foreign
87 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
88
89 INCLUDES = -I$(top_srcdir)
90
91 bin_PROGRAMS = myapp
92
93 myapp_SOURCES = main.c
94 myapp_LDADD = @ELEMENTARY_LIBS@
95 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
96 @endverbatim
97  *
98  * autogen.sh:
99  *
100 @verbatim
101 #!/bin/sh
102 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
103 echo "Running autoheader..." ; autoheader || exit 1
104 echo "Running autoconf..." ; autoconf || exit 1
105 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
106 ./configure "$@"
107 @endverbatim
108  *
109  * To generate all the things needed to bootstrap just run:
110  *
111 @verbatim
112 ./autogen.sh
113 @endverbatim
114  *
115  * This will generate Makefile.in's, the confgure script and everything else.
116  * After this it works like all normal autotools projects:
117 @verbatim
118 ./configure
119 make
120 sudo make install
121 @endverbatim
122  *
123  * Note sudo was assumed to get root permissions, as this would install in
124  * /usr/local which is system-owned. Use any way you like to gain root, or
125  * specify a different prefix with configure:
126  *
127 @verbatim
128 ./confiugre --prefix=$HOME/mysoftware
129 @endverbatim
130  *
131  * Also remember that autotools buys you some useful commands like:
132 @verbatim
133 make uninstall
134 @endverbatim
135  *
136  * This uninstalls the software after it was installed with "make install".
137  * It is very useful to clear up what you built if you wish to clean the
138  * system.
139  *
140 @verbatim
141 make distcheck
142 @endverbatim
143  *
144  * This firstly checks if your build tree is "clean" and ready for
145  * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
146  * ready to upload and distribute to the world, that contains the generated
147  * Makefile.in's and configure script. The users do not need to run
148  * autogen.sh - just configure and on. They don't need autotools installed.
149  * This tarball also builds cleanly, has all the sources it needs to build
150  * included (that is sources for your application, not libraries it depends
151  * on like Elementary). It builds cleanly in a buildroot and does not
152  * contain any files that are temporarily generated like binaries and other
153  * build-generated files, so the tarball is clean, and no need to worry
154  * about cleaning up your tree before packaging.
155  *
156 @verbatim
157 make clean
158 @endverbatim
159  *
160  * This cleans up all build files (binaries, objects etc.) from the tree.
161  *
162 @verbatim
163 make distclean
164 @endverbatim
165  *
166  * This cleans out all files from the build and from configure's output too.
167  *
168 @verbatim
169 make maintainer-clean
170 @endverbatim
171  *
172  * This deletes all the files autogen.sh will produce so the tree is clean
173  * to be put into a revision-control system (like CVS, SVN or GIT for example).
174  *
175  * There is a more advanced way of making use of the quicklaunch infrastructure
176  * in Elementary (which will not be covered here due to its more advanced
177  * nature).
178  *
179  * Now let's actually create an interactive "Hello World" gui that you can
180  * click the ok button to exit. It's more code because this now does something
181  * much more significant, but it's still very simple:
182  *
183 @code
184 #include <Elementary.h>
185
186 static void
187 on_done(void *data, Evas_Object *obj, void *event_info)
188 {
189    // quit the mainloop (elm_run function will return)
190    elm_exit();
191 }
192
193 EAPI_MAIN int
194 elm_main(int argc, char **argv)
195 {
196    Evas_Object *win, *bg, *box, *lab, *btn;
197
198    // new window - do the usual and give it a name (hello) and title (Hello)
199    win = elm_win_util_standard_add("hello", "Hello");
200    // when the user clicks "close" on a window there is a request to delete
201    evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
202
203    // add a box object - default is vertical. a box holds children in a row,
204    // either horizontally or vertically. nothing more.
205    box = elm_box_add(win);
206    // make the box hotizontal
207    elm_box_horizontal_set(box, EINA_TRUE);
208    // add object as a resize object for the window (controls window minimum
209    // size as well as gets resized if window is resized)
210    elm_win_resize_object_add(win, box);
211    evas_object_show(box);
212
213    // add a label widget, set the text and put it in the pad frame
214    lab = elm_label_add(win);
215    // set default text of the label
216    elm_object_text_set(lab, "Hello out there world!");
217    // pack the label at the end of the box
218    elm_box_pack_end(box, lab);
219    evas_object_show(lab);
220
221    // add an ok button
222    btn = elm_button_add(win);
223    // set default text of button to "OK"
224    elm_object_text_set(btn, "OK");
225    // pack the button at the end of the box
226    elm_box_pack_end(box, btn);
227    evas_object_show(btn);
228    // call on_done when button is clicked
229    evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
230
231    // now we are done, show the window
232    evas_object_show(win);
233
234    // run the mainloop and process events and callbacks
235    elm_run();
236    elm_shutdown();
237    return 0;
238 }
239 ELM_MAIN()
240 @endcode
241    *
242    */
243
244 /**
245 @page authors Authors
246 @author Carsten Haitzler <raster@@rasterman.com>
247 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
248 @author Cedric Bail <cedric.bail@@free.fr>
249 @author Vincent Torri <vtorri@@univ-evry.fr>
250 @author Daniel Kolesa <quaker66@@gmail.com>
251 @author Jaime Thomas <avi.thomas@@gmail.com>
252 @author Swisscom - http://www.swisscom.ch/
253 @author Christopher Michael <devilhorns@@comcast.net>
254 @author Marco Trevisan (TreviƱo) <mail@@3v1n0.net>
255 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
256 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
257 @author Brian Wang <brian.wang.0721@@gmail.com>
258 @author Mike Blumenkrantz (discomfitor/zmike) <michael.blumenkrantz@@gmail.com>
259 @author Samsung Electronics <tbd>
260 @author Samsung SAIT <tbd>
261 @author Brett Nash <nash@@nash.id.au>
262 @author Bruno Dilly <bdilly@@profusion.mobi>
263 @author Rafael Fonseca <rfonseca@@profusion.mobi>
264 @author Chuneon Park <hermet@@hermet.pe.kr>
265 @author Woohyun Jung <wh0705.jung@@samsung.com>
266 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
267 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
268 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
269 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
270 @author Gustavo Lima Chaves <glima@@profusion.mobi>
271 @author Fabiano FidĆŖncio <fidencio@@profusion.mobi>
272 @author Tiago FalcĆ£o <tiago@@profusion.mobi>
273 @author Otavio Pontes <otavio@@profusion.mobi>
274 @author Viktor Kojouharov <vkojouharov@@gmail.com>
275 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
276 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
277 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
278 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
279 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
280 @author Jihoon Kim <jihoon48.kim@@samsung.com>
281 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
282 @author Tom Hacohen <tom@@stosb.com>
283 @author Aharon Hillel <a.hillel@@partner.samsung.com>
284 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
285 @author Shinwoo Kim <kimcinoo@@gmail.com>
286 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
287 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
288 @author Sung W. Park <sungwoo@@gmail.com>
289 @author Thierry el Borgi <thierry@@substantiel.fr>
290 @author Shilpa Singh <shilpa.singh@@samsung.com> <shilpasingh.o@@gmail.com>
291 @author Chanwook Jung <joey.jung@@samsung.com>
292 @author Hyoyoung Chang <hyoyoung.chang@@samsung.com>
293 @author Guillaume "Kuri" Friloux <guillaume.friloux@@asp64.com>
294 @author Kim Yunhan <spbear@@gmail.com>
295 @author Bluezery <ohpowel@@gmail.com>
296 @author Nicolas Aguirre <aguirre.nicolas@@gmail.com>
297 @author Sanjeev BA <iamsanjeev@@gmail.com>
298
299 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
300 contact with the developers and maintainers.
301  */
302
303 #ifndef ELEMENTARY_H
304 #define ELEMENTARY_H
305
306 /**
307  * @file Elementary.h
308  * @brief Elementary's API
309  *
310  * Elementary API.
311  */
312
313 @ELM_UNIX_DEF@ ELM_UNIX
314 @ELM_WIN32_DEF@ ELM_WIN32
315 @ELM_WINCE_DEF@ ELM_WINCE
316 @ELM_EDBUS_DEF@ ELM_EDBUS
317 @ELM_EFREET_DEF@ ELM_EFREET
318 @ELM_ETHUMB_DEF@ ELM_ETHUMB
319 @ELM_WEB_DEF@ ELM_WEB
320 @ELM_EMAP_DEF@ ELM_EMAP
321 @ELM_DEBUG_DEF@ ELM_DEBUG
322 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
323 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
324 @ELM_DIRENT_H_DEF@ ELM_DIRENT_H
325
326 /* Standard headers for standard system calls etc. */
327 #include <stdio.h>
328 #include <stdlib.h>
329 #include <unistd.h>
330 #include <string.h>
331 #include <sys/types.h>
332 #include <sys/stat.h>
333 #include <sys/time.h>
334 #include <sys/param.h>
335 #include <math.h>
336 #include <fnmatch.h>
337 #include <limits.h>
338 #include <ctype.h>
339 #include <time.h>
340 #ifdef ELM_DIRENT_H
341 # include <dirent.h>
342 #endif
343 #include <pwd.h>
344 #include <errno.h>
345
346 #ifdef ELM_UNIX
347 # include <locale.h>
348 # ifdef ELM_LIBINTL_H
349 #  include <libintl.h>
350 # endif
351 # include <signal.h>
352 # include <grp.h>
353 # include <glob.h>
354 #endif
355
356 #ifdef ELM_ALLOCA_H
357 # include <alloca.h>
358 #endif
359
360 #if defined (ELM_WIN32) || defined (ELM_WINCE)
361 # include <malloc.h>
362 # ifndef alloca
363 #  define alloca _alloca
364 # endif
365 #endif
366
367
368 /* EFL headers */
369 #include <Eina.h>
370 #include <Eet.h>
371 #include <Evas.h>
372 #include <Evas_GL.h>
373 #include <Ecore.h>
374 #include <Ecore_Evas.h>
375 #include <Ecore_File.h>
376 @ELEMENTARY_ECORE_IMF_INC@
377 @ELEMENTARY_ECORE_CON_INC@
378 #include <Edje.h>
379
380 #ifdef ELM_EDBUS
381 # include <E_DBus.h>
382 #endif
383
384 #ifdef ELM_EFREET
385 # include <Efreet.h>
386 # include <Efreet_Mime.h>
387 # include <Efreet_Trash.h>
388 #endif
389
390 #ifdef ELM_ETHUMB
391 # include <Ethumb_Client.h>
392 #endif
393
394 #ifdef ELM_EMAP
395 # include <EMap.h>
396 #endif
397
398 #ifdef EAPI
399 # undef EAPI
400 #endif
401
402 #ifdef _WIN32
403 # ifdef ELEMENTARY_BUILD
404 #  ifdef DLL_EXPORT
405 #   define EAPI __declspec(dllexport)
406 #  else
407 #   define EAPI
408 #  endif /* ! DLL_EXPORT */
409 # else
410 #  define EAPI __declspec(dllimport)
411 # endif /* ! EFL_EVAS_BUILD */
412 #else
413 # ifdef __GNUC__
414 #  if __GNUC__ >= 4
415 #   define EAPI __attribute__ ((visibility("default")))
416 #  else
417 #   define EAPI
418 #  endif
419 # else
420 #  define EAPI
421 # endif
422 #endif /* ! _WIN32 */
423
424 #ifdef _WIN32
425 # define EAPI_MAIN
426 #else
427 # define EAPI_MAIN EAPI
428 #endif
429
430 /* allow usage from c++ */
431 #ifdef __cplusplus
432 extern "C" {
433 #endif
434
435 #define ELM_VERSION_MAJOR @VMAJ@
436 #define ELM_VERSION_MINOR @VMIN@
437
438    typedef struct _Elm_Version
439      {
440         int major;
441         int minor;
442         int micro;
443         int revision;
444      } Elm_Version;
445
446    EAPI extern Elm_Version *elm_version;
447
448 /* handy macros */
449 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
450 #define ELM_PI 3.14159265358979323846
451
452    /**
453     * @defgroup General General
454     *
455     * @brief General Elementary API. Functions that don't relate to
456     * Elementary objects specifically.
457     *
458     * Here are documented functions which init/shutdown the library,
459     * that apply to generic Elementary objects, that deal with
460     * configuration, et cetera.
461     *
462     * @ref general_functions_example_page "This" example contemplates
463     * some of these functions.
464     */
465
466    /**
467     * @addtogroup General
468     * @{
469     */
470
471   /**
472    * Defines couple of standard Evas_Object layers to be used
473    * with evas_object_layer_set().
474    *
475    * @note whenever extending with new values, try to keep some padding
476    *       to siblings so there is room for further extensions.
477    */
478   typedef enum _Elm_Object_Layer
479     {
480        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
481        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
482        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
483        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
484        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
485        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
486     } Elm_Object_Layer;
487
488 /**************************************************************************/
489    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
490
491    /**
492     * Emitted when the application has reconfigured elementary settings due
493     * to an external configuration tool asking it to.
494     */
495    EAPI extern int ELM_EVENT_CONFIG_ALL_CHANGED;
496
497    /**
498     * Emitted when any Elementary's policy value is changed.
499     */
500    EAPI extern int ELM_EVENT_POLICY_CHANGED;
501
502    /**
503     * @typedef Elm_Event_Policy_Changed
504     *
505     * Data on the event when an Elementary policy has changed
506     */
507     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
508
509    /**
510     * @struct _Elm_Event_Policy_Changed
511     *
512     * Data on the event when an Elementary policy has changed
513     */
514     struct _Elm_Event_Policy_Changed
515      {
516         unsigned int policy; /**< the policy identifier */
517         int          new_value; /**< value the policy had before the change */
518         int          old_value; /**< new value the policy got */
519     };
520
521    /**
522     * Policy identifiers.
523     */
524     typedef enum _Elm_Policy
525     {
526         ELM_POLICY_QUIT, /**< under which circumstances the application
527                           * should quit automatically. @see
528                           * Elm_Policy_Quit.
529                           */
530         ELM_POLICY_LAST
531     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
532  */
533
534    typedef enum _Elm_Policy_Quit
535      {
536         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
537                                    * automatically */
538         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
539                                             * application's last
540                                             * window is closed */
541      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
542
543    typedef enum _Elm_Focus_Direction
544      {
545         ELM_FOCUS_PREVIOUS,
546         ELM_FOCUS_NEXT
547      } Elm_Focus_Direction;
548
549    typedef enum _Elm_Text_Format
550      {
551         ELM_TEXT_FORMAT_PLAIN_UTF8,
552         ELM_TEXT_FORMAT_MARKUP_UTF8
553      } Elm_Text_Format;
554
555    /**
556     * Line wrapping types.
557     */
558    typedef enum _Elm_Wrap_Type
559      {
560         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
561         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
562         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
563         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
564         ELM_WRAP_LAST
565      } Elm_Wrap_Type;
566
567    typedef enum
568      {
569         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
570         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
571         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
572         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
573         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
574         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
575         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
576         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
577         ELM_INPUT_PANEL_LAYOUT_INVALID
578      } Elm_Input_Panel_Layout;
579
580    typedef enum
581      {
582         ELM_AUTOCAPITAL_TYPE_NONE,
583         ELM_AUTOCAPITAL_TYPE_WORD,
584         ELM_AUTOCAPITAL_TYPE_SENTENCE,
585         ELM_AUTOCAPITAL_TYPE_ALLCHARACTER,
586      } Elm_Autocapital_Type;
587
588    /**
589     * @typedef Elm_Object_Item
590     * An Elementary Object item handle.
591     * @ingroup General
592     */
593    typedef struct _Elm_Object_Item Elm_Object_Item;
594
595
596    /**
597     * Called back when a widget's tooltip is activated and needs content.
598     * @param data user-data given to elm_object_tooltip_content_cb_set()
599     * @param obj owner widget.
600     * @param tooltip The tooltip object (affix content to this!)
601     */
602    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
603
604    /**
605     * Called back when a widget's item tooltip is activated and needs content.
606     * @param data user-data given to elm_object_tooltip_content_cb_set()
607     * @param obj owner widget.
608     * @param tooltip The tooltip object (affix content to this!)
609     * @param item context dependent item. As an example, if tooltip was
610     *        set on Elm_List_Item, then it is of this type.
611     */
612    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
613
614    typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info); /**< Function prototype definition for callbacks on input events happening on Elementary widgets. @a data will receive the user data pointer passed to elm_object_event_callback_add(). @a src will be a pointer to the widget on which the input event took place. @a type will get the type of this event and @a event_info, the struct with details on this event. */
615
616 #ifndef ELM_LIB_QUICKLAUNCH
617 #define ELM_MAIN() int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv);} /**< macro to be used after the elm_main() function */
618 #else
619 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
620 #endif
621
622 /**************************************************************************/
623    /* General calls */
624
625    /**
626     * Initialize Elementary
627     *
628     * @param[in] argc System's argument count value
629     * @param[in] argv System's pointer to array of argument strings
630     * @return The init counter value.
631     *
632     * This function initializes Elementary and increments a counter of
633     * the number of calls to it. It returns the new counter's value.
634     *
635     * @warning This call is exported only for use by the @c ELM_MAIN()
636     * macro. There is no need to use this if you use this macro (which
637     * is highly advisable). An elm_main() should contain the entry
638     * point code for your application, having the same prototype as
639     * elm_init(), and @b not being static (putting the @c EAPI symbol
640     * in front of its type declaration is advisable). The @c
641     * ELM_MAIN() call should be placed just after it.
642     *
643     * Example:
644     * @dontinclude bg_example_01.c
645     * @skip static void
646     * @until ELM_MAIN
647     *
648     * See the full @ref bg_example_01_c "example".
649     *
650     * @see elm_shutdown().
651     * @ingroup General
652     */
653    EAPI int          elm_init(int argc, char **argv);
654
655    /**
656     * Shut down Elementary
657     *
658     * @return The init counter value.
659     *
660     * This should be called at the end of your application, just
661     * before it ceases to do any more processing. This will clean up
662     * any permanent resources your application may have allocated via
663     * Elementary that would otherwise persist.
664     *
665     * @see elm_init() for an example
666     *
667     * @ingroup General
668     */
669    EAPI int          elm_shutdown(void);
670
671    /**
672     * Run Elementary's main loop
673     *
674     * This call should be issued just after all initialization is
675     * completed. This function will not return until elm_exit() is
676     * called. It will keep looping, running the main
677     * (event/processing) loop for Elementary.
678     *
679     * @see elm_init() for an example
680     *
681     * @ingroup General
682     */
683    EAPI void         elm_run(void);
684
685    /**
686     * Exit Elementary's main loop
687     *
688     * If this call is issued, it will flag the main loop to cease
689     * processing and return back to its parent function (usually your
690     * elm_main() function).
691     *
692     * @see elm_init() for an example. There, just after a request to
693     * close the window comes, the main loop will be left.
694     *
695     * @note By using the appropriate #ELM_POLICY_QUIT on your Elementary
696     * applications, you'll be able to get this function called automatically for you.
697     *
698     * @ingroup General
699     */
700    EAPI void         elm_exit(void);
701
702    /**
703     * Provide information in order to make Elementary determine the @b
704     * run time location of the software in question, so other data files
705     * such as images, sound files, executable utilities, libraries,
706     * modules and locale files can be found.
707     *
708     * @param mainfunc This is your application's main function name,
709     *        whose binary's location is to be found. Providing @c NULL
710     *        will make Elementary not to use it
711     * @param dom This will be used as the application's "domain", in the
712     *        form of a prefix to any environment variables that may
713     *        override prefix detection and the directory name, inside the
714     *        standard share or data directories, where the software's
715     *        data files will be looked for.
716     * @param checkfile This is an (optional) magic file's path to check
717     *        for existence (and it must be located in the data directory,
718     *        under the share directory provided above). Its presence will
719     *        help determine the prefix found was correct. Pass @c NULL if
720     *        the check is not to be done.
721     *
722     * This function allows one to re-locate the application somewhere
723     * else after compilation, if the developer wishes for easier
724     * distribution of pre-compiled binaries.
725     *
726     * The prefix system is designed to locate where the given software is
727     * installed (under a common path prefix) at run time and then report
728     * specific locations of this prefix and common directories inside
729     * this prefix like the binary, library, data and locale directories,
730     * through the @c elm_app_*_get() family of functions.
731     *
732     * Call elm_app_info_set() early on before you change working
733     * directory or anything about @c argv[0], so it gets accurate
734     * information.
735     *
736     * It will then try and trace back which file @p mainfunc comes from,
737     * if provided, to determine the application's prefix directory.
738     *
739     * The @p dom parameter provides a string prefix to prepend before
740     * environment variables, allowing a fallback to @b specific
741     * environment variables to locate the software. You would most
742     * probably provide a lowercase string there, because it will also
743     * serve as directory domain, explained next. For environment
744     * variables purposes, this string is made uppercase. For example if
745     * @c "myapp" is provided as the prefix, then the program would expect
746     * @c "MYAPP_PREFIX" as a master environment variable to specify the
747     * exact install prefix for the software, or more specific environment
748     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
749     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
750     * the user or scripts before launching. If not provided (@c NULL),
751     * environment variables will not be used to override compiled-in
752     * defaults or auto detections.
753     *
754     * The @p dom string also provides a subdirectory inside the system
755     * shared data directory for data files. For example, if the system
756     * directory is @c /usr/local/share, then this directory name is
757     * appended, creating @c /usr/local/share/myapp, if it @p was @c
758     * "myapp". It is expected that the application installs data files in
759     * this directory.
760     *
761     * The @p checkfile is a file name or path of something inside the
762     * share or data directory to be used to test that the prefix
763     * detection worked. For example, your app will install a wallpaper
764     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
765     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
766     * checkfile string.
767     *
768     * @see elm_app_compile_bin_dir_set()
769     * @see elm_app_compile_lib_dir_set()
770     * @see elm_app_compile_data_dir_set()
771     * @see elm_app_compile_locale_set()
772     * @see elm_app_prefix_dir_get()
773     * @see elm_app_bin_dir_get()
774     * @see elm_app_lib_dir_get()
775     * @see elm_app_data_dir_get()
776     * @see elm_app_locale_dir_get()
777     */
778    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
779
780    /**
781     * Provide information on the @b fallback application's binaries
782     * directory, in scenarios where they get overriden by
783     * elm_app_info_set().
784     *
785     * @param dir The path to the default binaries directory (compile time
786     * one)
787     *
788     * @note Elementary will as well use this path to determine actual
789     * names of binaries' directory paths, maybe changing it to be @c
790     * something/local/bin instead of @c something/bin, only, for
791     * example.
792     *
793     * @warning You should call this function @b before
794     * elm_app_info_set().
795     */
796    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
797
798    /**
799     * Provide information on the @b fallback application's libraries
800     * directory, on scenarios where they get overriden by
801     * elm_app_info_set().
802     *
803     * @param dir The path to the default libraries directory (compile
804     * time one)
805     *
806     * @note Elementary will as well use this path to determine actual
807     * names of libraries' directory paths, maybe changing it to be @c
808     * something/lib32 or @c something/lib64 instead of @c something/lib,
809     * only, for example.
810     *
811     * @warning You should call this function @b before
812     * elm_app_info_set().
813     */
814    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
815
816    /**
817     * Provide information on the @b fallback application's data
818     * directory, on scenarios where they get overriden by
819     * elm_app_info_set().
820     *
821     * @param dir The path to the default data directory (compile time
822     * one)
823     *
824     * @note Elementary will as well use this path to determine actual
825     * names of data directory paths, maybe changing it to be @c
826     * something/local/share instead of @c something/share, only, for
827     * example.
828     *
829     * @warning You should call this function @b before
830     * elm_app_info_set().
831     */
832    EAPI void         elm_app_compile_data_dir_set(const char *dir);
833
834    /**
835     * Provide information on the @b fallback application's locale
836     * directory, on scenarios where they get overriden by
837     * elm_app_info_set().
838     *
839     * @param dir The path to the default locale directory (compile time
840     * one)
841     *
842     * @warning You should call this function @b before
843     * elm_app_info_set().
844     */
845    EAPI void         elm_app_compile_locale_set(const char *dir);
846
847    /**
848     * Retrieve the application's run time prefix directory, as set by
849     * elm_app_info_set() and the way (environment) the application was
850     * run from.
851     *
852     * @return The directory prefix the application is actually using.
853     */
854    EAPI const char  *elm_app_prefix_dir_get(void);
855
856    /**
857     * Retrieve the application's run time binaries prefix directory, as
858     * set by elm_app_info_set() and the way (environment) the application
859     * was run from.
860     *
861     * @return The binaries directory prefix the application is actually
862     * using.
863     */
864    EAPI const char  *elm_app_bin_dir_get(void);
865
866    /**
867     * Retrieve the application's run time libraries prefix directory, as
868     * set by elm_app_info_set() and the way (environment) the application
869     * was run from.
870     *
871     * @return The libraries directory prefix the application is actually
872     * using.
873     */
874    EAPI const char  *elm_app_lib_dir_get(void);
875
876    /**
877     * Retrieve the application's run time data prefix directory, as
878     * set by elm_app_info_set() and the way (environment) the application
879     * was run from.
880     *
881     * @return The data directory prefix the application is actually
882     * using.
883     */
884    EAPI const char  *elm_app_data_dir_get(void);
885
886    /**
887     * Retrieve the application's run time locale prefix directory, as
888     * set by elm_app_info_set() and the way (environment) the application
889     * was run from.
890     *
891     * @return The locale directory prefix the application is actually
892     * using.
893     */
894    EAPI const char  *elm_app_locale_dir_get(void);
895
896    /**
897     * Exposed symbol used only by macros and should not be used by apps
898     */
899    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
900
901    /**
902     * Exposed symbol used only by macros and should not be used by apps
903     */
904    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
905
906    /**
907     * Exposed symbol used only by macros and should not be used by apps
908     */
909    EAPI int          elm_quicklaunch_init(int argc, char **argv);
910
911    /**
912     * Exposed symbol used only by macros and should not be used by apps
913     */
914    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
915
916    /**
917     * Exposed symbol used only by macros and should not be used by apps
918     */
919    EAPI int          elm_quicklaunch_sub_shutdown(void);
920
921    /**
922     * Exposed symbol used only by macros and should not be used by apps
923     */
924    EAPI int          elm_quicklaunch_shutdown(void);
925
926    /**
927     * Exposed symbol used only by macros and should not be used by apps
928     */
929    EAPI void         elm_quicklaunch_seed(void);
930
931    /**
932     * Exposed symbol used only by macros and should not be used by apps
933     */
934    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
935
936    /**
937     * Exposed symbol used only by macros and should not be used by apps
938     */
939    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
940
941    /**
942     * Exposed symbol used only by macros and should not be used by apps
943     */
944    EAPI void         elm_quicklaunch_cleanup(void);
945
946    /**
947     * Exposed symbol used only by macros and should not be used by apps
948     */
949    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
950
951    /**
952     * Exposed symbol used only by macros and should not be used by apps
953     */
954    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
955
956    /**
957     * Request that your elementary application needs efreet
958     * 
959     * This initializes the Efreet library when called and if support exists
960     * it returns EINA_TRUE, otherwise returns EINA_FALSE. This must be called
961     * before any efreet calls.
962     * 
963     * @return EINA_TRUE if support exists and initialization succeeded.
964     * 
965     * @ingroup Efreet
966     */
967    EAPI Eina_Bool    elm_need_efreet(void);
968
969    /**
970     * Request that your elementary application needs e_dbus
971     * 
972     * This initializes the E_dbus library when called and if support exists
973     * it returns EINA_TRUE, otherwise returns EINA_FALSE. This must be called
974     * before any e_dbus calls.
975     * 
976     * @return EINA_TRUE if support exists and initialization succeeded.
977     * 
978     * @ingroup E_dbus
979     */
980    EAPI Eina_Bool    elm_need_e_dbus(void);
981
982    /**
983     * Request that your elementary application needs ethumb
984     * 
985     * This initializes the Ethumb library when called and if support exists
986     * it returns EINA_TRUE, otherwise returns EINA_FALSE.
987     * This must be called before any other function that deals with
988     * elm_thumb objects or ethumb_client instances.
989     *
990     * @ingroup Thumb
991     */
992    EAPI Eina_Bool    elm_need_ethumb(void);
993
994    /**
995     * Request that your elementary application needs web support
996     * 
997     * This initializes the Ewebkit library when called and if support exists
998     * it returns EINA_TRUE, otherwise returns EINA_FALSE.
999     * This must be called before any other function that deals with
1000     * elm_web objects or ewk_view instances.
1001     *
1002     * @ingroup Web
1003     */
1004    EAPI Eina_Bool    elm_need_web(void);
1005
1006    /**
1007     * Set a new policy's value (for a given policy group/identifier).
1008     *
1009     * @param policy policy identifier, as in @ref Elm_Policy.
1010     * @param value policy value, which depends on the identifier
1011     *
1012     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
1013     *
1014     * Elementary policies define applications' behavior,
1015     * somehow. These behaviors are divided in policy groups (see
1016     * #Elm_Policy enumeration). This call will emit the Ecore event
1017     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
1018     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
1019     * then.
1020     *
1021     * @note Currently, we have only one policy identifier/group
1022     * (#ELM_POLICY_QUIT), which has two possible values.
1023     *
1024     * @ingroup General
1025     */
1026    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
1027
1028    /**
1029     * Gets the policy value for given policy identifier.
1030     *
1031     * @param policy policy identifier, as in #Elm_Policy.
1032     * @return The currently set policy value, for that
1033     * identifier. Will be @c 0 if @p policy passed is invalid.
1034     *
1035     * @ingroup General
1036     */
1037    EAPI int          elm_policy_get(unsigned int policy);
1038
1039    /**
1040     * Change the language of the current application
1041     *
1042     * The @p lang passed must be the full name of the locale to use, for
1043     * example "en_US.utf8" or "es_ES@euro".
1044     *
1045     * Changing language with this function will make Elementary run through
1046     * all its widgets, translating strings set with
1047     * elm_object_domain_translatable_text_part_set(). This way, an entire
1048     * UI can have its language changed without having to restart the program.
1049     *
1050     * For more complex cases, like having formatted strings that need
1051     * translation, widgets will also emit a "language,changed" signal that
1052     * the user can listen to to manually translate the text.
1053     *
1054     * @param lang Language to set, must be the full name of the locale
1055     *
1056     * @ingroup General
1057     */
1058    EAPI void         elm_language_set(const char *lang);
1059
1060    /**
1061     * Set a label of an object
1062     *
1063     * @param obj The Elementary object
1064     * @param part The text part name to set (NULL for the default label)
1065     * @param label The new text of the label
1066     *
1067     * @note Elementary objects may have many labels (e.g. Action Slider)
1068     * @deprecated Use elm_object_part_text_set() instead.
1069     * @ingroup General
1070     */
1071    EINA_DEPRECATED EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
1072
1073    /**
1074     * Set a label of an object
1075     *
1076     * @param obj The Elementary object
1077     * @param part The text part name to set (NULL for the default label)
1078     * @param label The new text of the label
1079     *
1080     * @note Elementary objects may have many labels (e.g. Action Slider)
1081     *
1082     * @ingroup General
1083     */
1084    EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
1085
1086 #define elm_object_text_set(obj, label) elm_object_part_text_set((obj), NULL, (label))
1087
1088    /**
1089     * Get a label of an object
1090     *
1091     * @param obj The Elementary object
1092     * @param part The text part name to get (NULL for the default label)
1093     * @return text of the label or NULL for any error
1094     *
1095     * @note Elementary objects may have many labels (e.g. Action Slider)
1096     * @deprecated Use elm_object_part_text_get() instead.
1097     * @ingroup General
1098     */
1099    EINA_DEPRECATED EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
1100
1101    /**
1102     * Get a label of an object
1103     *
1104     * @param obj The Elementary object
1105     * @param part The text part name to get (NULL for the default label)
1106     * @return text of the label or NULL for any error
1107     *
1108     * @note Elementary objects may have many labels (e.g. Action Slider)
1109     *
1110     * @ingroup General
1111     */
1112    EAPI const char  *elm_object_part_text_get(const Evas_Object *obj, const char *part);
1113
1114 #define elm_object_text_get(obj) elm_object_part_text_get((obj), NULL)
1115
1116    /**
1117     * Set the text for an objects' part, marking it as translatable.
1118     *
1119     * The string to set as @p text must be the original one. Do not pass the
1120     * return of @c gettext() here. Elementary will translate the string
1121     * internally and set it on the object using elm_object_part_text_set(),
1122     * also storing the original string so that it can be automatically
1123     * translated when the language is changed with elm_language_set().
1124     *
1125     * The @p domain will be stored along to find the translation in the
1126     * correct catalog. It can be NULL, in which case it will use whatever
1127     * domain was set by the application with @c textdomain(). This is useful
1128     * in case you are building a library on top of Elementary that will have
1129     * its own translatable strings, that should not be mixed with those of
1130     * programs using the library.
1131     *
1132     * @param obj The object containing the text part
1133     * @param part The name of the part to set
1134     * @param domain The translation domain to use
1135     * @param text The original, non-translated text to set
1136     *
1137     * @ingroup General
1138     */
1139    EAPI void         elm_object_domain_translatable_text_part_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
1140
1141 #define elm_object_domain_translatable_text_set(obj, domain, text) elm_object_domain_translatable_text_part_set((obj), NULL, (domain), (text))
1142
1143 #define elm_object_translatable_text_set(obj, text) elm_object_domain_translatable_text_part_set((obj), NULL, NULL, (text))
1144
1145    /**
1146     * Gets the original string set as translatable for an object
1147     *
1148     * When setting translated strings, the function elm_object_part_text_get()
1149     * will return the translation returned by @c gettext(). To get the
1150     * original string use this function.
1151     *
1152     * @param obj The object
1153     * @param part The name of the part that was set
1154     *
1155     * @return The original, untranslated string
1156     *
1157     * @ingroup General
1158     */
1159    EAPI const char  *elm_object_translatable_text_part_get(const Evas_Object *obj, const char *part);
1160
1161 #define elm_object_translatable_text_get(obj) elm_object_translatable_text_part_get((obj), NULL)
1162
1163    /**
1164     * Set a content of an object
1165     *
1166     * @param obj The Elementary object
1167     * @param part The content part name to set (NULL for the default content)
1168     * @param content The new content of the object
1169     *
1170     * @note Elementary objects may have many contents
1171     * @deprecated Use elm_object_part_content_set instead.
1172     * @ingroup General
1173     */
1174    EINA_DEPRECATED EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
1175
1176    /**
1177     * Set a content of an object
1178     *
1179     * @param obj The Elementary object
1180     * @param part The content part name to set (NULL for the default content)
1181     * @param content The new content of the object
1182     *
1183     * @note Elementary objects may have many contents
1184     *
1185     * @ingroup General
1186     */
1187    EAPI void elm_object_part_content_set(Evas_Object *obj, const char *part, Evas_Object *content);
1188
1189 #define elm_object_content_set(obj, content) elm_object_part_content_set((obj), NULL, (content))
1190
1191    /**
1192     * Get a content of an object
1193     *
1194     * @param obj The Elementary object
1195     * @param item The content part name to get (NULL for the default content)
1196     * @return content of the object or NULL for any error
1197     *
1198     * @note Elementary objects may have many contents
1199     * @deprecated Use elm_object_part_content_get instead.
1200     * @ingroup General
1201     */
1202    EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
1203
1204    /**
1205     * Get a content of an object
1206     *
1207     * @param obj The Elementary object
1208     * @param item The content part name to get (NULL for the default content)
1209     * @return content of the object or NULL for any error
1210     *
1211     * @note Elementary objects may have many contents
1212     *
1213     * @ingroup General
1214     */
1215    EAPI Evas_Object *elm_object_part_content_get(const Evas_Object *obj, const char *part);
1216
1217 #define elm_object_content_get(obj) elm_object_part_content_get((obj), NULL)
1218
1219    /**
1220     * Unset a content of an object
1221     *
1222     * @param obj The Elementary object
1223     * @param item The content part name to unset (NULL for the default content)
1224     *
1225     * @note Elementary objects may have many contents
1226     * @deprecated Use elm_object_part_content_unset instead.
1227     * @ingroup General
1228     */
1229    EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1230
1231    /**
1232     * Unset a content of an object
1233     *
1234     * @param obj The Elementary object
1235     * @param item The content part name to unset (NULL for the default content)
1236     *
1237     * @note Elementary objects may have many contents
1238     *
1239     * @ingroup General
1240     */
1241    EAPI Evas_Object *elm_object_part_content_unset(Evas_Object *obj, const char *part);
1242
1243 #define elm_object_content_unset(obj) elm_object_part_content_unset((obj), NULL)
1244
1245    /**
1246     * Set the text to read out when in accessibility mode
1247     *
1248     * @param obj The object which is to be described
1249     * @param txt The text that describes the widget to people with poor or no vision
1250     *
1251     * @ingroup General
1252     */
1253    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1254
1255    /**
1256     * Get the widget object's handle which contains a given item
1257     *
1258     * @param item The Elementary object item
1259     * @return The widget object
1260     *
1261     * @note This returns the widget object itself that an item belongs to.
1262     *
1263     * @ingroup General
1264     */
1265    EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1266
1267    /**
1268     * Set a content of an object item
1269     *
1270     * @param it The Elementary object item
1271     * @param part The content part name to set (NULL for the default content)
1272     * @param content The new content of the object item
1273     *
1274     * @note Elementary object items may have many contents
1275     * @deprecated Use elm_object_item_part_content_set instead.
1276     * @ingroup General
1277     */
1278    EINA_DEPRECATED EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1279
1280    /**
1281     * Set a content of an object item
1282     *
1283     * @param it The Elementary object item
1284     * @param part The content part name to set (NULL for the default content)
1285     * @param content The new content of the object item
1286     *
1287     * @note Elementary object items may have many contents
1288     *
1289     * @ingroup General
1290     */
1291    EAPI void elm_object_item_part_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1292
1293 #define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
1294
1295    /**
1296     * Get a content of an object item
1297     *
1298     * @param it The Elementary object item
1299     * @param part The content part name to unset (NULL for the default content)
1300     * @return content of the object item or NULL for any error
1301     *
1302     * @note Elementary object items may have many contents
1303     * @deprecated Use elm_object_item_part_content_get instead.
1304     * @ingroup General
1305     */
1306    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1307
1308    /**
1309     * Get a content of an object item
1310     *
1311     * @param it The Elementary object item
1312     * @param part The content part name to unset (NULL for the default content)
1313     * @return content of the object item or NULL for any error
1314     *
1315     * @note Elementary object items may have many contents
1316     *
1317     * @ingroup General
1318     */
1319    EAPI Evas_Object *elm_object_item_part_content_get(const Elm_Object_Item *it, const char *part);
1320
1321 #define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
1322
1323    /**
1324     * Unset a content of an object item
1325     *
1326     * @param it The Elementary object item
1327     * @param part The content part name to unset (NULL for the default content)
1328     *
1329     * @note Elementary object items may have many contents
1330     * @deprecated Use elm_object_item_part_content_unset instead.
1331     * @ingroup General
1332     */
1333    EINA_DEPRECATED EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1334
1335    /**
1336     * Unset a content of an object item
1337     *
1338     * @param it The Elementary object item
1339     * @param part The content part name to unset (NULL for the default content)
1340     *
1341     * @note Elementary object items may have many contents
1342     *
1343     * @ingroup General
1344     */
1345    EAPI Evas_Object *elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part);
1346
1347 #define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
1348
1349    /**
1350     * Set a label of an object item
1351     *
1352     * @param it The Elementary object item
1353     * @param part The text part name to set (NULL for the default label)
1354     * @param label The new text of the label
1355     *
1356     * @note Elementary object items may have many labels
1357     * @deprecated Use elm_object_item_part_text_set instead.
1358     * @ingroup General
1359     */
1360    EINA_DEPRECATED EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1361
1362    /**
1363     * Set a label of an object item
1364     *
1365     * @param it The Elementary object item
1366     * @param part The text part name to set (NULL for the default label)
1367     * @param label The new text of the label
1368     *
1369     * @note Elementary object items may have many labels
1370     *
1371     * @ingroup General
1372     */
1373    EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
1374
1375 #define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
1376
1377    /**
1378     * Get a label of an object item
1379     *
1380     * @param it The Elementary object item
1381     * @param part The text part name to get (NULL for the default label)
1382     * @return text of the label or NULL for any error
1383     *
1384     * @note Elementary object items may have many labels
1385     * @deprecated Use elm_object_item_part_text_get instead.
1386     * @ingroup General
1387     */
1388    EINA_DEPRECATED EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1389    /**
1390     * Get a label of an object item
1391     *
1392     * @param it The Elementary object item
1393     * @param part The text part name to get (NULL for the default label)
1394     * @return text of the label or NULL for any error
1395     *
1396     * @note Elementary object items may have many labels
1397     *
1398     * @ingroup General
1399     */
1400    EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
1401
1402 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
1403
1404    /**
1405     * Set the text to read out when in accessibility mode
1406     *
1407     * @param it The object item which is to be described
1408     * @param txt The text that describes the widget to people with poor or no vision
1409     *
1410     * @ingroup General
1411     */
1412    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1413
1414    /**
1415     * Get the data associated with an object item
1416     * @param it The Elementary object item
1417     * @return The data associated with @p it
1418     *
1419     * @ingroup General
1420     */
1421    EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1422
1423    /**
1424     * Set the data associated with an object item
1425     * @param it The Elementary object item
1426     * @param data The data to be associated with @p it
1427     *
1428     * @ingroup General
1429     */
1430    EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1431
1432    /**
1433     * Send a signal to the edje object of the widget item.
1434     *
1435     * This function sends a signal to the edje object of the obj item. An
1436     * edje program can respond to a signal by specifying matching
1437     * 'signal' and 'source' fields.
1438     *
1439     * @param it The Elementary object item
1440     * @param emission The signal's name.
1441     * @param source The signal's source.
1442     * @ingroup General
1443     */
1444    EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1445
1446    /**
1447     * Set the disabled state of an widget item.
1448     *
1449     * @param obj The Elementary object item
1450     * @param disabled The state to put in in: @c EINA_TRUE for
1451     *        disabled, @c EINA_FALSE for enabled
1452     *
1453     * Elementary object item can be @b disabled, in which state they won't
1454     * receive input and, in general, will be themed differently from
1455     * their normal state, usually greyed out. Useful for contexts
1456     * where you don't want your users to interact with some of the
1457     * parts of you interface.
1458     *
1459     * This sets the state for the widget item, either disabling it or
1460     * enabling it back.
1461     *
1462     * @ingroup Styles
1463     */
1464    EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1465
1466    /**
1467     * Get the disabled state of an widget item.
1468     *
1469     * @param obj The Elementary object
1470     * @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
1471     *            if it's enabled (or on errors)
1472     *
1473     * This gets the state of the widget, which might be enabled or disabled.
1474     *
1475     * @ingroup Styles
1476     */
1477    EAPI Eina_Bool    elm_object_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1478
1479    /**
1480     * @}
1481     */
1482
1483    /**
1484     * @defgroup Caches Caches
1485     *
1486     * These are functions which let one fine-tune some cache values for
1487     * Elementary applications, thus allowing for performance adjustments.
1488     *
1489     * @{
1490     */
1491
1492    /**
1493     * @brief Flush all caches.
1494     *
1495     * Frees all data that was in cache and is not currently being used to reduce
1496     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1497     * to calling all of the following functions:
1498     * @li edje_file_cache_flush()
1499     * @li edje_collection_cache_flush()
1500     * @li eet_clearcache()
1501     * @li evas_image_cache_flush()
1502     * @li evas_font_cache_flush()
1503     * @li evas_render_dump()
1504     * @note Evas caches are flushed for every canvas associated with a window.
1505     *
1506     * @ingroup Caches
1507     */
1508    EAPI void         elm_all_flush(void);
1509
1510    /**
1511     * Get the configured cache flush interval time
1512     *
1513     * This gets the globally configured cache flush interval time, in
1514     * ticks
1515     *
1516     * @return The cache flush interval time
1517     * @ingroup Caches
1518     *
1519     * @see elm_all_flush()
1520     */
1521    EAPI int          elm_cache_flush_interval_get(void);
1522
1523    /**
1524     * Set the configured cache flush interval time
1525     *
1526     * This sets the globally configured cache flush interval time, in ticks
1527     *
1528     * @param size The cache flush interval time
1529     * @ingroup Caches
1530     *
1531     * @see elm_all_flush()
1532     */
1533    EAPI void         elm_cache_flush_interval_set(int size);
1534
1535    /**
1536     * Set the configured cache flush interval time for all applications on the
1537     * display
1538     *
1539     * This sets the globally configured cache flush interval time -- in ticks
1540     * -- for all applications on the display.
1541     *
1542     * @param size The cache flush interval time
1543     * @ingroup Caches
1544     */
1545    EAPI void         elm_cache_flush_interval_all_set(int size);
1546
1547    /**
1548     * Get the configured cache flush enabled state
1549     *
1550     * This gets the globally configured cache flush state - if it is enabled
1551     * or not. When cache flushing is enabled, elementary will regularly
1552     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1553     * memory and allow usage to re-seed caches and data in memory where it
1554     * can do so. An idle application will thus minimise its memory usage as
1555     * data will be freed from memory and not be re-loaded as it is idle and
1556     * not rendering or doing anything graphically right now.
1557     *
1558     * @return The cache flush state
1559     * @ingroup Caches
1560     *
1561     * @see elm_all_flush()
1562     */
1563    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1564
1565    /**
1566     * Set the configured cache flush enabled state
1567     *
1568     * This sets the globally configured cache flush enabled state.
1569     *
1570     * @param size The cache flush enabled state
1571     * @ingroup Caches
1572     *
1573     * @see elm_all_flush()
1574     */
1575    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1576
1577    /**
1578     * Set the configured cache flush enabled state for all applications on the
1579     * display
1580     *
1581     * This sets the globally configured cache flush enabled state for all
1582     * applications on the display.
1583     *
1584     * @param size The cache flush enabled state
1585     * @ingroup Caches
1586     */
1587    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1588
1589    /**
1590     * Get the configured font cache size
1591     *
1592     * This gets the globally configured font cache size, in bytes.
1593     *
1594     * @return The font cache size
1595     * @ingroup Caches
1596     */
1597    EAPI int          elm_font_cache_get(void);
1598
1599    /**
1600     * Set the configured font cache size
1601     *
1602     * This sets the globally configured font cache size, in bytes
1603     *
1604     * @param size The font cache size
1605     * @ingroup Caches
1606     */
1607    EAPI void         elm_font_cache_set(int size);
1608
1609    /**
1610     * Set the configured font cache size for all applications on the
1611     * display
1612     *
1613     * This sets the globally configured font cache size -- in bytes
1614     * -- for all applications on the display.
1615     *
1616     * @param size The font cache size
1617     * @ingroup Caches
1618     */
1619    EAPI void         elm_font_cache_all_set(int size);
1620
1621    /**
1622     * Get the configured image cache size
1623     *
1624     * This gets the globally configured image cache size, in bytes
1625     *
1626     * @return The image cache size
1627     * @ingroup Caches
1628     */
1629    EAPI int          elm_image_cache_get(void);
1630
1631    /**
1632     * Set the configured image cache size
1633     *
1634     * This sets the globally configured image cache size, in bytes
1635     *
1636     * @param size The image cache size
1637     * @ingroup Caches
1638     */
1639    EAPI void         elm_image_cache_set(int size);
1640
1641    /**
1642     * Set the configured image cache size for all applications on the
1643     * display
1644     *
1645     * This sets the globally configured image cache size -- in bytes
1646     * -- for all applications on the display.
1647     *
1648     * @param size The image cache size
1649     * @ingroup Caches
1650     */
1651    EAPI void         elm_image_cache_all_set(int size);
1652
1653    /**
1654     * Get the configured edje file cache size.
1655     *
1656     * This gets the globally configured edje file cache size, in number
1657     * of files.
1658     *
1659     * @return The edje file cache size
1660     * @ingroup Caches
1661     */
1662    EAPI int          elm_edje_file_cache_get(void);
1663
1664    /**
1665     * Set the configured edje file cache size
1666     *
1667     * This sets the globally configured edje file cache size, in number
1668     * of files.
1669     *
1670     * @param size The edje file cache size
1671     * @ingroup Caches
1672     */
1673    EAPI void         elm_edje_file_cache_set(int size);
1674
1675    /**
1676     * Set the configured edje file cache size for all applications on the
1677     * display
1678     *
1679     * This sets the globally configured edje file cache size -- in number
1680     * of files -- for all applications on the display.
1681     *
1682     * @param size The edje file cache size
1683     * @ingroup Caches
1684     */
1685    EAPI void         elm_edje_file_cache_all_set(int size);
1686
1687    /**
1688     * Get the configured edje collections (groups) cache size.
1689     *
1690     * This gets the globally configured edje collections cache size, in
1691     * number of collections.
1692     *
1693     * @return The edje collections cache size
1694     * @ingroup Caches
1695     */
1696    EAPI int          elm_edje_collection_cache_get(void);
1697
1698    /**
1699     * Set the configured edje collections (groups) cache size
1700     *
1701     * This sets the globally configured edje collections cache size, in
1702     * number of collections.
1703     *
1704     * @param size The edje collections cache size
1705     * @ingroup Caches
1706     */
1707    EAPI void         elm_edje_collection_cache_set(int size);
1708
1709    /**
1710     * Set the configured edje collections (groups) cache size for all
1711     * applications on the display
1712     *
1713     * This sets the globally configured edje collections cache size -- in
1714     * number of collections -- for all applications on the display.
1715     *
1716     * @param size The edje collections cache size
1717     * @ingroup Caches
1718     */
1719    EAPI void         elm_edje_collection_cache_all_set(int size);
1720
1721    /**
1722     * @}
1723     */
1724
1725    /**
1726     * @defgroup Scaling Widget Scaling
1727     *
1728     * Different widgets can be scaled independently. These functions
1729     * allow you to manipulate this scaling on a per-widget basis. The
1730     * object and all its children get their scaling factors multiplied
1731     * by the scale factor set. This is multiplicative, in that if a
1732     * child also has a scale size set it is in turn multiplied by its
1733     * parent's scale size. @c 1.0 means ā€œdon't scaleā€, @c 2.0 is
1734     * double size, @c 0.5 is half, etc.
1735     *
1736     * @ref general_functions_example_page "This" example contemplates
1737     * some of these functions.
1738     */
1739
1740    /**
1741     * Get the global scaling factor
1742     *
1743     * This gets the globally configured scaling factor that is applied to all
1744     * objects.
1745     *
1746     * @return The scaling factor
1747     * @ingroup Scaling
1748     */
1749    EAPI double       elm_scale_get(void);
1750
1751    /**
1752     * Set the global scaling factor
1753     *
1754     * This sets the globally configured scaling factor that is applied to all
1755     * objects.
1756     *
1757     * @param scale The scaling factor to set
1758     * @ingroup Scaling
1759     */
1760    EAPI void         elm_scale_set(double scale);
1761
1762    /**
1763     * Set the global scaling factor for all applications on the display
1764     *
1765     * This sets the globally configured scaling factor that is applied to all
1766     * objects for all applications.
1767     * @param scale The scaling factor to set
1768     * @ingroup Scaling
1769     */
1770    EAPI void         elm_scale_all_set(double scale);
1771
1772    /**
1773     * Set the scaling factor for a given Elementary object
1774     *
1775     * @param obj The Elementary to operate on
1776     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1777     * no scaling)
1778     *
1779     * @ingroup Scaling
1780     */
1781    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1782
1783    /**
1784     * Get the scaling factor for a given Elementary object
1785     *
1786     * @param obj The object
1787     * @return The scaling factor set by elm_object_scale_set()
1788     *
1789     * @ingroup Scaling
1790     */
1791    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1792
1793    /**
1794     * @defgroup Password_last_show Password last input show
1795     *
1796     * Last show feature of password mode enables user to view
1797     * the last input entered for few seconds before masking it.
1798     * These functions allow to set this feature in password mode
1799     * of entry widget and also allow to manipulate the duration
1800     * for which the input has to be visible.
1801     *
1802     * @{
1803     */
1804
1805    /**
1806     * Get show last setting of password mode.
1807     *
1808     * This gets the show last input setting of password mode which might be
1809     * enabled or disabled.
1810     *
1811     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1812     *            if it's disabled.
1813     * @ingroup Password_last_show
1814     */
1815    EAPI Eina_Bool elm_password_show_last_get(void);
1816
1817    /**
1818     * Set show last setting in password mode.
1819     *
1820     * This enables or disables show last setting of password mode.
1821     *
1822     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1823     * @see elm_password_show_last_timeout_set()
1824     * @ingroup Password_last_show
1825     */
1826    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1827
1828    /**
1829     * Get's the timeout value in last show password mode.
1830     *
1831     * This gets the time out value for which the last input entered in password
1832     * mode will be visible.
1833     *
1834     * @return The timeout value of last show password mode.
1835     * @ingroup Password_last_show
1836     */
1837    EAPI double elm_password_show_last_timeout_get(void);
1838
1839    /**
1840     * Set's the timeout value in last show password mode.
1841     *
1842     * This sets the time out value for which the last input entered in password
1843     * mode will be visible.
1844     *
1845     * @param password_show_last_timeout The timeout value.
1846     * @see elm_password_show_last_set()
1847     * @ingroup Password_last_show
1848     */
1849    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1850
1851    /**
1852     * @}
1853     */
1854
1855    /**
1856     * @defgroup UI-Mirroring Selective Widget mirroring
1857     *
1858     * These functions allow you to set ui-mirroring on specific
1859     * widgets or the whole interface. Widgets can be in one of two
1860     * modes, automatic and manual.  Automatic means they'll be changed
1861     * according to the system mirroring mode and manual means only
1862     * explicit changes will matter. You are not supposed to change
1863     * mirroring state of a widget set to automatic, will mostly work,
1864     * but the behavior is not really defined.
1865     *
1866     * @{
1867     */
1868
1869    EAPI Eina_Bool    elm_mirrored_get(void);
1870    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1871
1872    /**
1873     * Get the system mirrored mode. This determines the default mirrored mode
1874     * of widgets.
1875     *
1876     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1877     */
1878    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1879
1880    /**
1881     * Set the system mirrored mode. This determines the default mirrored mode
1882     * of widgets.
1883     *
1884     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1885     */
1886    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1887
1888    /**
1889     * Returns the widget's mirrored mode setting.
1890     *
1891     * @param obj The widget.
1892     * @return mirrored mode setting of the object.
1893     *
1894     **/
1895    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1896
1897    /**
1898     * Sets the widget's mirrored mode setting.
1899     * When widget in automatic mode, it follows the system mirrored mode set by
1900     * elm_mirrored_set().
1901     * @param obj The widget.
1902     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1903     */
1904    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1905
1906    /**
1907     * @}
1908     */
1909
1910    /**
1911     * Set the style to use by a widget
1912     *
1913     * Sets the style name that will define the appearance of a widget. Styles
1914     * vary from widget to widget and may also be defined by other themes
1915     * by means of extensions and overlays.
1916     *
1917     * @param obj The Elementary widget to style
1918     * @param style The style name to use
1919     *
1920     * @see elm_theme_extension_add()
1921     * @see elm_theme_extension_del()
1922     * @see elm_theme_overlay_add()
1923     * @see elm_theme_overlay_del()
1924     *
1925     * @ingroup Styles
1926     */
1927    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1928    /**
1929     * Get the style used by the widget
1930     *
1931     * This gets the style being used for that widget. Note that the string
1932     * pointer is only valid as longas the object is valid and the style doesn't
1933     * change.
1934     *
1935     * @param obj The Elementary widget to query for its style
1936     * @return The style name used
1937     *
1938     * @see elm_object_style_set()
1939     *
1940     * @ingroup Styles
1941     */
1942    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1943
1944    /**
1945     * @defgroup Styles Styles
1946     *
1947     * Widgets can have different styles of look. These generic API's
1948     * set styles of widgets, if they support them (and if the theme(s)
1949     * do).
1950     *
1951     * @ref general_functions_example_page "This" example contemplates
1952     * some of these functions.
1953     */
1954
1955    /**
1956     * Set the disabled state of an Elementary object.
1957     *
1958     * @param obj The Elementary object to operate on
1959     * @param disabled The state to put in in: @c EINA_TRUE for
1960     *        disabled, @c EINA_FALSE for enabled
1961     *
1962     * Elementary objects can be @b disabled, in which state they won't
1963     * receive input and, in general, will be themed differently from
1964     * their normal state, usually greyed out. Useful for contexts
1965     * where you don't want your users to interact with some of the
1966     * parts of you interface.
1967     *
1968     * This sets the state for the widget, either disabling it or
1969     * enabling it back.
1970     *
1971     * @ingroup Styles
1972     */
1973    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1974
1975    /**
1976     * Get the disabled state of an Elementary object.
1977     *
1978     * @param obj The Elementary object to operate on
1979     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1980     *            if it's enabled (or on errors)
1981     *
1982     * This gets the state of the widget, which might be enabled or disabled.
1983     *
1984     * @ingroup Styles
1985     */
1986    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1987
1988    /**
1989     * @defgroup WidgetNavigation Widget Tree Navigation.
1990     *
1991     * How to check if an Evas Object is an Elementary widget? How to
1992     * get the first elementary widget that is parent of the given
1993     * object?  These are all covered in widget tree navigation.
1994     *
1995     * @ref general_functions_example_page "This" example contemplates
1996     * some of these functions.
1997     */
1998
1999    /**
2000     * Check if the given Evas Object is an Elementary widget.
2001     *
2002     * @param obj the object to query.
2003     * @return @c EINA_TRUE if it is an elementary widget variant,
2004     *         @c EINA_FALSE otherwise
2005     * @ingroup WidgetNavigation
2006     */
2007    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2008
2009    /**
2010     * Get the first parent of the given object that is an Elementary
2011     * widget.
2012     *
2013     * @param obj the Elementary object to query parent from.
2014     * @return the parent object that is an Elementary widget, or @c
2015     *         NULL, if it was not found.
2016     *
2017     * Use this to query for an object's parent widget.
2018     *
2019     * @note Most of Elementary users wouldn't be mixing non-Elementary
2020     * smart objects in the objects tree of an application, as this is
2021     * an advanced usage of Elementary with Evas. So, except for the
2022     * application's window, which is the root of that tree, all other
2023     * objects would have valid Elementary widget parents.
2024     *
2025     * @ingroup WidgetNavigation
2026     */
2027    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2028
2029    /**
2030     * Get the top level parent of an Elementary widget.
2031     *
2032     * @param obj The object to query.
2033     * @return The top level Elementary widget, or @c NULL if parent cannot be
2034     * found.
2035     * @ingroup WidgetNavigation
2036     */
2037    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2038
2039    /**
2040     * Get the string that represents this Elementary widget.
2041     *
2042     * @note Elementary is weird and exposes itself as a single
2043     *       Evas_Object_Smart_Class of type "elm_widget", so
2044     *       evas_object_type_get() always return that, making debug and
2045     *       language bindings hard. This function tries to mitigate this
2046     *       problem, but the solution is to change Elementary to use
2047     *       proper inheritance.
2048     *
2049     * @param obj the object to query.
2050     * @return Elementary widget name, or @c NULL if not a valid widget.
2051     * @ingroup WidgetNavigation
2052     */
2053    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2054
2055    /**
2056     * @defgroup Config Elementary Config
2057     *
2058     * Elementary configuration is formed by a set options bounded to a
2059     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
2060     * "finger size", etc. These are functions with which one syncronizes
2061     * changes made to those values to the configuration storing files, de
2062     * facto. You most probably don't want to use the functions in this
2063     * group unlees you're writing an elementary configuration manager.
2064     *
2065     * @{
2066     */
2067
2068    /**
2069     * Save back Elementary's configuration, so that it will persist on
2070     * future sessions.
2071     *
2072     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2073     * @ingroup Config
2074     *
2075     * This function will take effect -- thus, do I/O -- immediately. Use
2076     * it when you want to apply all configuration changes at once. The
2077     * current configuration set will get saved onto the current profile
2078     * configuration file.
2079     *
2080     */
2081    EAPI Eina_Bool    elm_config_save(void);
2082
2083    /**
2084     * Reload Elementary's configuration, bounded to current selected
2085     * profile.
2086     *
2087     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2088     * @ingroup Config
2089     *
2090     * Useful when you want to force reloading of configuration values for
2091     * a profile. If one removes user custom configuration directories,
2092     * for example, it will force a reload with system values instead.
2093     *
2094     */
2095    EAPI void         elm_config_reload(void);
2096
2097    /**
2098     * @}
2099     */
2100
2101    /**
2102     * @defgroup Profile Elementary Profile
2103     *
2104     * Profiles are pre-set options that affect the whole look-and-feel of
2105     * Elementary-based applications. There are, for example, profiles
2106     * aimed at desktop computer applications and others aimed at mobile,
2107     * touchscreen-based ones. You most probably don't want to use the
2108     * functions in this group unlees you're writing an elementary
2109     * configuration manager.
2110     *
2111     * @{
2112     */
2113
2114    /**
2115     * Get Elementary's profile in use.
2116     *
2117     * This gets the global profile that is applied to all Elementary
2118     * applications.
2119     *
2120     * @return The profile's name
2121     * @ingroup Profile
2122     */
2123    EAPI const char  *elm_profile_current_get(void);
2124
2125    /**
2126     * Get an Elementary's profile directory path in the filesystem. One
2127     * may want to fetch a system profile's dir or an user one (fetched
2128     * inside $HOME).
2129     *
2130     * @param profile The profile's name
2131     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
2132     *                or a system one (@c EINA_FALSE)
2133     * @return The profile's directory path.
2134     * @ingroup Profile
2135     *
2136     * @note You must free it with elm_profile_dir_free().
2137     */
2138    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
2139
2140    /**
2141     * Free an Elementary's profile directory path, as returned by
2142     * elm_profile_dir_get().
2143     *
2144     * @param p_dir The profile's path
2145     * @ingroup Profile
2146     *
2147     */
2148    EAPI void         elm_profile_dir_free(const char *p_dir);
2149
2150    /**
2151     * Get Elementary's list of available profiles.
2152     *
2153     * @return The profiles list. List node data are the profile name
2154     *         strings.
2155     * @ingroup Profile
2156     *
2157     * @note One must free this list, after usage, with the function
2158     *       elm_profile_list_free().
2159     */
2160    EAPI Eina_List   *elm_profile_list_get(void);
2161
2162    /**
2163     * Free Elementary's list of available profiles.
2164     *
2165     * @param l The profiles list, as returned by elm_profile_list_get().
2166     * @ingroup Profile
2167     *
2168     */
2169    EAPI void         elm_profile_list_free(Eina_List *l);
2170
2171    /**
2172     * Set Elementary's profile.
2173     *
2174     * This sets the global profile that is applied to Elementary
2175     * applications. Just the process the call comes from will be
2176     * affected.
2177     *
2178     * @param profile The profile's name
2179     * @ingroup Profile
2180     *
2181     */
2182    EAPI void         elm_profile_set(const char *profile);
2183
2184    /**
2185     * Set Elementary's profile.
2186     *
2187     * This sets the global profile that is applied to all Elementary
2188     * applications. All running Elementary windows will be affected.
2189     *
2190     * @param profile The profile's name
2191     * @ingroup Profile
2192     *
2193     */
2194    EAPI void         elm_profile_all_set(const char *profile);
2195
2196    /**
2197     * @}
2198     */
2199
2200    /**
2201     * @defgroup Engine Elementary Engine
2202     *
2203     * These are functions setting and querying which rendering engine
2204     * Elementary will use for drawing its windows' pixels.
2205     *
2206     * The following are the available engines:
2207     * @li "software_x11"
2208     * @li "fb"
2209     * @li "directfb"
2210     * @li "software_16_x11"
2211     * @li "software_8_x11"
2212     * @li "xrender_x11"
2213     * @li "opengl_x11"
2214     * @li "software_gdi"
2215     * @li "software_16_wince_gdi"
2216     * @li "sdl"
2217     * @li "software_16_sdl"
2218     * @li "opengl_sdl"
2219     * @li "buffer"
2220     * @li "ews"
2221     * @li "opengl_cocoa"
2222     * @li "psl1ght"
2223     *
2224     * @{
2225     */
2226
2227    /**
2228     * @brief Get Elementary's rendering engine in use.
2229     *
2230     * @return The rendering engine's name
2231     * @note there's no need to free the returned string, here.
2232     *
2233     * This gets the global rendering engine that is applied to all Elementary
2234     * applications.
2235     *
2236     * @see elm_engine_set()
2237     */
2238    EAPI const char  *elm_engine_current_get(void);
2239
2240    /**
2241     * @brief Set Elementary's rendering engine for use.
2242     *
2243     * @param engine The rendering engine's name
2244     *
2245     * This sets global rendering engine that is applied to all Elementary
2246     * applications. Note that it will take effect only to Elementary windows
2247     * created after this is called.
2248     *
2249     * @see elm_win_add()
2250     */
2251    EAPI void         elm_engine_set(const char *engine);
2252
2253    /**
2254     * @}
2255     */
2256
2257    /**
2258     * @defgroup Fonts Elementary Fonts
2259     *
2260     * These are functions dealing with font rendering, selection and the
2261     * like for Elementary applications. One might fetch which system
2262     * fonts are there to use and set custom fonts for individual classes
2263     * of UI items containing text (text classes).
2264     *
2265     * @{
2266     */
2267
2268   typedef struct _Elm_Text_Class
2269     {
2270        const char *name;
2271        const char *desc;
2272     } Elm_Text_Class;
2273
2274   typedef struct _Elm_Font_Overlay
2275     {
2276        const char     *text_class;
2277        const char     *font;
2278        Evas_Font_Size  size;
2279     } Elm_Font_Overlay;
2280
2281   typedef struct _Elm_Font_Properties
2282     {
2283        const char *name;
2284        Eina_List  *styles;
2285     } Elm_Font_Properties;
2286
2287    /**
2288     * Get Elementary's list of supported text classes.
2289     *
2290     * @return The text classes list, with @c Elm_Text_Class blobs as data.
2291     * @ingroup Fonts
2292     *
2293     * Release the list with elm_text_classes_list_free().
2294     */
2295    EAPI const Eina_List     *elm_text_classes_list_get(void);
2296
2297    /**
2298     * Free Elementary's list of supported text classes.
2299     *
2300     * @ingroup Fonts
2301     *
2302     * @see elm_text_classes_list_get().
2303     */
2304    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
2305
2306    /**
2307     * Get Elementary's list of font overlays, set with
2308     * elm_font_overlay_set().
2309     *
2310     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
2311     * data.
2312     *
2313     * @ingroup Fonts
2314     *
2315     * For each text class, one can set a <b>font overlay</b> for it,
2316     * overriding the default font properties for that class coming from
2317     * the theme in use. There is no need to free this list.
2318     *
2319     * @see elm_font_overlay_set() and elm_font_overlay_unset().
2320     */
2321    EAPI const Eina_List     *elm_font_overlay_list_get(void);
2322
2323    /**
2324     * Set a font overlay for a given Elementary text class.
2325     *
2326     * @param text_class Text class name
2327     * @param font Font name and style string
2328     * @param size Font size
2329     *
2330     * @ingroup Fonts
2331     *
2332     * @p font has to be in the format returned by
2333     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
2334     * and elm_font_overlay_unset().
2335     */
2336    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
2337
2338    /**
2339     * Unset a font overlay for a given Elementary text class.
2340     *
2341     * @param text_class Text class name
2342     *
2343     * @ingroup Fonts
2344     *
2345     * This will bring back text elements belonging to text class
2346     * @p text_class back to their default font settings.
2347     */
2348    EAPI void                 elm_font_overlay_unset(const char *text_class);
2349
2350    /**
2351     * Apply the changes made with elm_font_overlay_set() and
2352     * elm_font_overlay_unset() on the current Elementary window.
2353     *
2354     * @ingroup Fonts
2355     *
2356     * This applies all font overlays set to all objects in the UI.
2357     */
2358    EAPI void                 elm_font_overlay_apply(void);
2359
2360    /**
2361     * Apply the changes made with elm_font_overlay_set() and
2362     * elm_font_overlay_unset() on all Elementary application windows.
2363     *
2364     * @ingroup Fonts
2365     *
2366     * This applies all font overlays set to all objects in the UI.
2367     */
2368    EAPI void                 elm_font_overlay_all_apply(void);
2369
2370    /**
2371     * Translate a font (family) name string in fontconfig's font names
2372     * syntax into an @c Elm_Font_Properties struct.
2373     *
2374     * @param font The font name and styles string
2375     * @return the font properties struct
2376     *
2377     * @ingroup Fonts
2378     *
2379     * @note The reverse translation can be achived with
2380     * elm_font_fontconfig_name_get(), for one style only (single font
2381     * instance, not family).
2382     */
2383    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2384
2385    /**
2386     * Free font properties return by elm_font_properties_get().
2387     *
2388     * @param efp the font properties struct
2389     *
2390     * @ingroup Fonts
2391     */
2392    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2393
2394    /**
2395     * Translate a font name, bound to a style, into fontconfig's font names
2396     * syntax.
2397     *
2398     * @param name The font (family) name
2399     * @param style The given style (may be @c NULL)
2400     *
2401     * @return the font name and style string
2402     *
2403     * @ingroup Fonts
2404     *
2405     * @note The reverse translation can be achived with
2406     * elm_font_properties_get(), for one style only (single font
2407     * instance, not family).
2408     */
2409    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2410
2411    /**
2412     * Free the font string return by elm_font_fontconfig_name_get().
2413     *
2414     * @param efp the font properties struct
2415     *
2416     * @ingroup Fonts
2417     */
2418    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2419
2420    /**
2421     * Create a font hash table of available system fonts.
2422     *
2423     * One must call it with @p list being the return value of
2424     * evas_font_available_list(). The hash will be indexed by font
2425     * (family) names, being its values @c Elm_Font_Properties blobs.
2426     *
2427     * @param list The list of available system fonts, as returned by
2428     * evas_font_available_list().
2429     * @return the font hash.
2430     *
2431     * @ingroup Fonts
2432     *
2433     * @note The user is supposed to get it populated at least with 3
2434     * default font families (Sans, Serif, Monospace), which should be
2435     * present on most systems.
2436     */
2437    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2438
2439    /**
2440     * Free the hash return by elm_font_available_hash_add().
2441     *
2442     * @param hash the hash to be freed.
2443     *
2444     * @ingroup Fonts
2445     */
2446    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2447
2448    /**
2449     * @}
2450     */
2451
2452    /**
2453     * @defgroup Fingers Fingers
2454     *
2455     * Elementary is designed to be finger-friendly for touchscreens,
2456     * and so in addition to scaling for display resolution, it can
2457     * also scale based on finger "resolution" (or size). You can then
2458     * customize the granularity of the areas meant to receive clicks
2459     * on touchscreens.
2460     *
2461     * Different profiles may have pre-set values for finger sizes.
2462     *
2463     * @ref general_functions_example_page "This" example contemplates
2464     * some of these functions.
2465     *
2466     * @{
2467     */
2468
2469    /**
2470     * Get the configured "finger size"
2471     *
2472     * @return The finger size
2473     *
2474     * This gets the globally configured finger size, <b>in pixels</b>
2475     *
2476     * @ingroup Fingers
2477     */
2478    EAPI Evas_Coord       elm_finger_size_get(void);
2479
2480    /**
2481     * Set the configured finger size
2482     *
2483     * This sets the globally configured finger size in pixels
2484     *
2485     * @param size The finger size
2486     * @ingroup Fingers
2487     */
2488    EAPI void             elm_finger_size_set(Evas_Coord size);
2489
2490    /**
2491     * Set the configured finger size for all applications on the display
2492     *
2493     * This sets the globally configured finger size in pixels for all
2494     * applications on the display
2495     *
2496     * @param size The finger size
2497     * @ingroup Fingers
2498     */
2499    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2500
2501    /**
2502     * @}
2503     */
2504
2505    /**
2506     * @defgroup Focus Focus
2507     *
2508     * An Elementary application has, at all times, one (and only one)
2509     * @b focused object. This is what determines where the input
2510     * events go to within the application's window. Also, focused
2511     * objects can be decorated differently, in order to signal to the
2512     * user where the input is, at a given moment.
2513     *
2514     * Elementary applications also have the concept of <b>focus
2515     * chain</b>: one can cycle through all the windows' focusable
2516     * objects by input (tab key) or programmatically. The default
2517     * focus chain for an application is the one define by the order in
2518     * which the widgets where added in code. One will cycle through
2519     * top level widgets, and, for each one containg sub-objects, cycle
2520     * through them all, before returning to the level
2521     * above. Elementary also allows one to set @b custom focus chains
2522     * for their applications.
2523     *
2524     * Besides the focused decoration a widget may exhibit, when it
2525     * gets focus, Elementary has a @b global focus highlight object
2526     * that can be enabled for a window. If one chooses to do so, this
2527     * extra highlight effect will surround the current focused object,
2528     * too.
2529     *
2530     * @note Some Elementary widgets are @b unfocusable, after
2531     * creation, by their very nature: they are not meant to be
2532     * interacted with input events, but are there just for visual
2533     * purposes.
2534     *
2535     * @ref general_functions_example_page "This" example contemplates
2536     * some of these functions.
2537     */
2538
2539    /**
2540     * Get the enable status of the focus highlight
2541     *
2542     * This gets whether the highlight on focused objects is enabled or not
2543     * @ingroup Focus
2544     */
2545    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2546
2547    /**
2548     * Set the enable status of the focus highlight
2549     *
2550     * Set whether to show or not the highlight on focused objects
2551     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2552     * @ingroup Focus
2553     */
2554    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2555
2556    /**
2557     * Get the enable status of the highlight animation
2558     *
2559     * Get whether the focus highlight, if enabled, will animate its switch from
2560     * one object to the next
2561     * @ingroup Focus
2562     */
2563    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2564
2565    /**
2566     * Set the enable status of the highlight animation
2567     *
2568     * Set whether the focus highlight, if enabled, will animate its switch from
2569     * one object to the next
2570     * @param animate Enable animation if EINA_TRUE, disable otherwise
2571     * @ingroup Focus
2572     */
2573    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2574
2575    /**
2576     * Get the whether an Elementary object has the focus or not.
2577     *
2578     * @param obj The Elementary object to get the information from
2579     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2580     *            not (and on errors).
2581     *
2582     * @see elm_object_focus_set()
2583     *
2584     * @ingroup Focus
2585     */
2586    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2587
2588    /**
2589     * Set/unset focus to a given Elementary object.
2590     *
2591     * @param obj The Elementary object to operate on.
2592     * @param enable @c EINA_TRUE Set focus to a given object,
2593     *               @c EINA_FALSE Unset focus to a given object.
2594     *
2595     * @note When you set focus to this object, if it can handle focus, will
2596     * take the focus away from the one who had it previously and will, for
2597     * now on, be the one receiving input events. Unsetting focus will remove
2598     * the focus from @p obj, passing it back to the previous element in the
2599     * focus chain list.
2600     *
2601     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2602     *
2603     * @ingroup Focus
2604     */
2605    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2606
2607    /**
2608     * Make a given Elementary object the focused one.
2609     *
2610     * @param obj The Elementary object to make focused.
2611     *
2612     * @note This object, if it can handle focus, will take the focus
2613     * away from the one who had it previously and will, for now on, be
2614     * the one receiving input events.
2615     *
2616     * @see elm_object_focus_get()
2617     * @deprecated use elm_object_focus_set() instead.
2618     *
2619     * @ingroup Focus
2620     */
2621    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2622
2623    /**
2624     * Remove the focus from an Elementary object
2625     *
2626     * @param obj The Elementary to take focus from
2627     *
2628     * This removes the focus from @p obj, passing it back to the
2629     * previous element in the focus chain list.
2630     *
2631     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2632     * @deprecated use elm_object_focus_set() instead.
2633     *
2634     * @ingroup Focus
2635     */
2636    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2637
2638    /**
2639     * Set the ability for an Element object to be focused
2640     *
2641     * @param obj The Elementary object to operate on
2642     * @param enable @c EINA_TRUE if the object can be focused, @c
2643     *        EINA_FALSE if not (and on errors)
2644     *
2645     * This sets whether the object @p obj is able to take focus or
2646     * not. Unfocusable objects do nothing when programmatically
2647     * focused, being the nearest focusable parent object the one
2648     * really getting focus. Also, when they receive mouse input, they
2649     * will get the event, but not take away the focus from where it
2650     * was previously.
2651     *
2652     * @ingroup Focus
2653     */
2654    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2655
2656    /**
2657     * Get whether an Elementary object is focusable or not
2658     *
2659     * @param obj The Elementary object to operate on
2660     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2661     *             EINA_FALSE if not (and on errors)
2662     *
2663     * @note Objects which are meant to be interacted with by input
2664     * events are created able to be focused, by default. All the
2665     * others are not.
2666     *
2667     * @ingroup Focus
2668     */
2669    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2670
2671    /**
2672     * Set custom focus chain.
2673     *
2674     * This function overwrites any previous custom focus chain within
2675     * the list of objects. The previous list will be deleted and this list
2676     * will be managed by elementary. After it is set, don't modify it.
2677     *
2678     * @note On focus cycle, only will be evaluated children of this container.
2679     *
2680     * @param obj The container object
2681     * @param objs Chain of objects to pass focus
2682     * @ingroup Focus
2683     */
2684    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2685
2686    /**
2687     * Unset a custom focus chain on a given Elementary widget
2688     *
2689     * @param obj The container object to remove focus chain from
2690     *
2691     * Any focus chain previously set on @p obj (for its child objects)
2692     * is removed entirely after this call.
2693     *
2694     * @ingroup Focus
2695     */
2696    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2697
2698    /**
2699     * Get custom focus chain
2700     *
2701     * @param obj The container object
2702     * @ingroup Focus
2703     */
2704    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2705
2706    /**
2707     * Append object to custom focus chain.
2708     *
2709     * @note If relative_child equal to NULL or not in custom chain, the object
2710     * will be added in end.
2711     *
2712     * @note On focus cycle, only will be evaluated children of this container.
2713     *
2714     * @param obj The container object
2715     * @param child The child to be added in custom chain
2716     * @param relative_child The relative object to position the child
2717     * @ingroup Focus
2718     */
2719    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2720
2721    /**
2722     * Prepend object to custom focus chain.
2723     *
2724     * @note If relative_child equal to NULL or not in custom chain, the object
2725     * will be added in begin.
2726     *
2727     * @note On focus cycle, only will be evaluated children of this container.
2728     *
2729     * @param obj The container object
2730     * @param child The child to be added in custom chain
2731     * @param relative_child The relative object to position the child
2732     * @ingroup Focus
2733     */
2734    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2735
2736    /**
2737     * Give focus to next object in object tree.
2738     *
2739     * Give focus to next object in focus chain of one object sub-tree.
2740     * If the last object of chain already have focus, the focus will go to the
2741     * first object of chain.
2742     *
2743     * @param obj The object root of sub-tree
2744     * @param dir Direction to cycle the focus
2745     *
2746     * @ingroup Focus
2747     */
2748    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2749
2750    /**
2751     * Give focus to near object in one direction.
2752     *
2753     * Give focus to near object in direction of one object.
2754     * If none focusable object in given direction, the focus will not change.
2755     *
2756     * @param obj The reference object
2757     * @param x Horizontal component of direction to focus
2758     * @param y Vertical component of direction to focus
2759     *
2760     * @ingroup Focus
2761     */
2762    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2763
2764    /**
2765     * Make the elementary object and its children to be unfocusable
2766     * (or focusable).
2767     *
2768     * @param obj The Elementary object to operate on
2769     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2770     *        @c EINA_FALSE for focusable.
2771     *
2772     * This sets whether the object @p obj and its children objects
2773     * are able to take focus or not. If the tree is set as unfocusable,
2774     * newest focused object which is not in this tree will get focus.
2775     * This API can be helpful for an object to be deleted.
2776     * When an object will be deleted soon, it and its children may not
2777     * want to get focus (by focus reverting or by other focus controls).
2778     * Then, just use this API before deleting.
2779     *
2780     * @see elm_object_tree_unfocusable_get()
2781     *
2782     * @ingroup Focus
2783     */
2784    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable) EINA_ARG_NONNULL(1);
2785
2786    /**
2787     * Get whether an Elementary object and its children are unfocusable or not.
2788     *
2789     * @param obj The Elementary object to get the information from
2790     * @return @c EINA_TRUE, if the tree is unfocussable,
2791     *         @c EINA_FALSE if not (and on errors).
2792     *
2793     * @see elm_object_tree_unfocusable_set()
2794     *
2795     * @ingroup Focus
2796     */
2797    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2798
2799    /**
2800     * @defgroup Scrolling Scrolling
2801     *
2802     * These are functions setting how scrollable views in Elementary
2803     * widgets should behave on user interaction.
2804     *
2805     * @{
2806     */
2807
2808    /**
2809     * Get whether scrollers should bounce when they reach their
2810     * viewport's edge during a scroll.
2811     *
2812     * @return the thumb scroll bouncing state
2813     *
2814     * This is the default behavior for touch screens, in general.
2815     * @ingroup Scrolling
2816     */
2817    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2818
2819    /**
2820     * Set whether scrollers should bounce when they reach their
2821     * viewport's edge during a scroll.
2822     *
2823     * @param enabled the thumb scroll bouncing state
2824     *
2825     * @see elm_thumbscroll_bounce_enabled_get()
2826     * @ingroup Scrolling
2827     */
2828    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2829
2830    /**
2831     * Set whether scrollers should bounce when they reach their
2832     * viewport's edge during a scroll, for all Elementary application
2833     * windows.
2834     *
2835     * @param enabled the thumb scroll bouncing state
2836     *
2837     * @see elm_thumbscroll_bounce_enabled_get()
2838     * @ingroup Scrolling
2839     */
2840    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2841
2842    /**
2843     * Get the amount of inertia a scroller will impose at bounce
2844     * animations.
2845     *
2846     * @return the thumb scroll bounce friction
2847     *
2848     * @ingroup Scrolling
2849     */
2850    EAPI double           elm_scroll_bounce_friction_get(void);
2851
2852    /**
2853     * Set the amount of inertia a scroller will impose at bounce
2854     * animations.
2855     *
2856     * @param friction the thumb scroll bounce friction
2857     *
2858     * @see elm_thumbscroll_bounce_friction_get()
2859     * @ingroup Scrolling
2860     */
2861    EAPI void             elm_scroll_bounce_friction_set(double friction);
2862
2863    /**
2864     * Set the amount of inertia a scroller will impose at bounce
2865     * animations, for all Elementary application windows.
2866     *
2867     * @param friction the thumb scroll bounce friction
2868     *
2869     * @see elm_thumbscroll_bounce_friction_get()
2870     * @ingroup Scrolling
2871     */
2872    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2873
2874    /**
2875     * Get the amount of inertia a <b>paged</b> scroller will impose at
2876     * page fitting animations.
2877     *
2878     * @return the page scroll friction
2879     *
2880     * @ingroup Scrolling
2881     */
2882    EAPI double           elm_scroll_page_scroll_friction_get(void);
2883
2884    /**
2885     * Set the amount of inertia a <b>paged</b> scroller will impose at
2886     * page fitting animations.
2887     *
2888     * @param friction the page scroll friction
2889     *
2890     * @see elm_thumbscroll_page_scroll_friction_get()
2891     * @ingroup Scrolling
2892     */
2893    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2894
2895    /**
2896     * Set the amount of inertia a <b>paged</b> scroller will impose at
2897     * page fitting animations, for all Elementary application windows.
2898     *
2899     * @param friction the page scroll friction
2900     *
2901     * @see elm_thumbscroll_page_scroll_friction_get()
2902     * @ingroup Scrolling
2903     */
2904    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2905
2906    /**
2907     * Get the amount of inertia a scroller will impose at region bring
2908     * animations.
2909     *
2910     * @return the bring in scroll friction
2911     *
2912     * @ingroup Scrolling
2913     */
2914    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2915
2916    /**
2917     * Set the amount of inertia a scroller will impose at region bring
2918     * animations.
2919     *
2920     * @param friction the bring in scroll friction
2921     *
2922     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2923     * @ingroup Scrolling
2924     */
2925    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2926
2927    /**
2928     * Set the amount of inertia a scroller will impose at region bring
2929     * animations, for all Elementary application windows.
2930     *
2931     * @param friction the bring in scroll friction
2932     *
2933     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2934     * @ingroup Scrolling
2935     */
2936    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2937
2938    /**
2939     * Get the amount of inertia scrollers will impose at animations
2940     * triggered by Elementary widgets' zooming API.
2941     *
2942     * @return the zoom friction
2943     *
2944     * @ingroup Scrolling
2945     */
2946    EAPI double           elm_scroll_zoom_friction_get(void);
2947
2948    /**
2949     * Set the amount of inertia scrollers will impose at animations
2950     * triggered by Elementary widgets' zooming API.
2951     *
2952     * @param friction the zoom friction
2953     *
2954     * @see elm_thumbscroll_zoom_friction_get()
2955     * @ingroup Scrolling
2956     */
2957    EAPI void             elm_scroll_zoom_friction_set(double friction);
2958
2959    /**
2960     * Set the amount of inertia scrollers will impose at animations
2961     * triggered by Elementary widgets' zooming API, for all Elementary
2962     * application windows.
2963     *
2964     * @param friction the zoom friction
2965     *
2966     * @see elm_thumbscroll_zoom_friction_get()
2967     * @ingroup Scrolling
2968     */
2969    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2970
2971    /**
2972     * Get whether scrollers should be draggable from any point in their
2973     * views.
2974     *
2975     * @return the thumb scroll state
2976     *
2977     * @note This is the default behavior for touch screens, in general.
2978     * @note All other functions namespaced with "thumbscroll" will only
2979     *       have effect if this mode is enabled.
2980     *
2981     * @ingroup Scrolling
2982     */
2983    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2984
2985    /**
2986     * Set whether scrollers should be draggable from any point in their
2987     * views.
2988     *
2989     * @param enabled the thumb scroll state
2990     *
2991     * @see elm_thumbscroll_enabled_get()
2992     * @ingroup Scrolling
2993     */
2994    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2995
2996    /**
2997     * Set whether scrollers should be draggable from any point in their
2998     * views, for all Elementary application windows.
2999     *
3000     * @param enabled the thumb scroll state
3001     *
3002     * @see elm_thumbscroll_enabled_get()
3003     * @ingroup Scrolling
3004     */
3005    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
3006
3007    /**
3008     * Get the number of pixels one should travel while dragging a
3009     * scroller's view to actually trigger scrolling.
3010     *
3011     * @return the thumb scroll threshould
3012     *
3013     * One would use higher values for touch screens, in general, because
3014     * of their inherent imprecision.
3015     * @ingroup Scrolling
3016     */
3017    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
3018
3019    /**
3020     * Set the number of pixels one should travel while dragging a
3021     * scroller's view to actually trigger scrolling.
3022     *
3023     * @param threshold the thumb scroll threshould
3024     *
3025     * @see elm_thumbscroll_threshould_get()
3026     * @ingroup Scrolling
3027     */
3028    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
3029
3030    /**
3031     * Set the number of pixels one should travel while dragging a
3032     * scroller's view to actually trigger scrolling, for all Elementary
3033     * application windows.
3034     *
3035     * @param threshold the thumb scroll threshould
3036     *
3037     * @see elm_thumbscroll_threshould_get()
3038     * @ingroup Scrolling
3039     */
3040    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
3041
3042    /**
3043     * Get the minimum speed of mouse cursor movement which will trigger
3044     * list self scrolling animation after a mouse up event
3045     * (pixels/second).
3046     *
3047     * @return the thumb scroll momentum threshould
3048     *
3049     * @ingroup Scrolling
3050     */
3051    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
3052
3053    /**
3054     * Set the minimum speed of mouse cursor movement which will trigger
3055     * list self scrolling animation after a mouse up event
3056     * (pixels/second).
3057     *
3058     * @param threshold the thumb scroll momentum threshould
3059     *
3060     * @see elm_thumbscroll_momentum_threshould_get()
3061     * @ingroup Scrolling
3062     */
3063    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
3064
3065    /**
3066     * Set the minimum speed of mouse cursor movement which will trigger
3067     * list self scrolling animation after a mouse up event
3068     * (pixels/second), for all Elementary application windows.
3069     *
3070     * @param threshold the thumb scroll momentum threshould
3071     *
3072     * @see elm_thumbscroll_momentum_threshould_get()
3073     * @ingroup Scrolling
3074     */
3075    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
3076
3077    /**
3078     * Get the amount of inertia a scroller will impose at self scrolling
3079     * animations.
3080     *
3081     * @return the thumb scroll friction
3082     *
3083     * @ingroup Scrolling
3084     */
3085    EAPI double           elm_scroll_thumbscroll_friction_get(void);
3086
3087    /**
3088     * Set the amount of inertia a scroller will impose at self scrolling
3089     * animations.
3090     *
3091     * @param friction the thumb scroll friction
3092     *
3093     * @see elm_thumbscroll_friction_get()
3094     * @ingroup Scrolling
3095     */
3096    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
3097
3098    /**
3099     * Set the amount of inertia a scroller will impose at self scrolling
3100     * animations, for all Elementary application windows.
3101     *
3102     * @param friction the thumb scroll friction
3103     *
3104     * @see elm_thumbscroll_friction_get()
3105     * @ingroup Scrolling
3106     */
3107    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
3108
3109    /**
3110     * Get the amount of lag between your actual mouse cursor dragging
3111     * movement and a scroller's view movement itself, while pushing it
3112     * into bounce state manually.
3113     *
3114     * @return the thumb scroll border friction
3115     *
3116     * @ingroup Scrolling
3117     */
3118    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
3119
3120    /**
3121     * Set the amount of lag between your actual mouse cursor dragging
3122     * movement and a scroller's view movement itself, while pushing it
3123     * into bounce state manually.
3124     *
3125     * @param friction the thumb scroll border friction. @c 0.0 for
3126     *        perfect synchrony between two movements, @c 1.0 for maximum
3127     *        lag.
3128     *
3129     * @see elm_thumbscroll_border_friction_get()
3130     * @note parameter value will get bound to 0.0 - 1.0 interval, always
3131     *
3132     * @ingroup Scrolling
3133     */
3134    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
3135
3136    /**
3137     * Set the amount of lag between your actual mouse cursor dragging
3138     * movement and a scroller's view movement itself, while pushing it
3139     * into bounce state manually, for all Elementary application windows.
3140     *
3141     * @param friction the thumb scroll border friction. @c 0.0 for
3142     *        perfect synchrony between two movements, @c 1.0 for maximum
3143     *        lag.
3144     *
3145     * @see elm_thumbscroll_border_friction_get()
3146     * @note parameter value will get bound to 0.0 - 1.0 interval, always
3147     *
3148     * @ingroup Scrolling
3149     */
3150    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
3151
3152    /**
3153     * Get the sensitivity amount which is be multiplied by the length of
3154     * mouse dragging.
3155     *
3156     * @return the thumb scroll sensitivity friction
3157     *
3158     * @ingroup Scrolling
3159     */
3160    EAPI double           elm_scroll_thumbscroll_sensitivity_friction_get(void);
3161
3162    /**
3163     * Set the sensitivity amount which is be multiplied by the length of
3164     * mouse dragging.
3165     *
3166     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3167     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3168     *        is proper.
3169     *
3170     * @see elm_thumbscroll_sensitivity_friction_get()
3171     * @note parameter value will get bound to 0.1 - 1.0 interval, always
3172     *
3173     * @ingroup Scrolling
3174     */
3175    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
3176
3177    /**
3178     * Set the sensitivity amount which is be multiplied by the length of
3179     * mouse dragging, for all Elementary application windows.
3180     *
3181     * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3182     *        minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3183     *        is proper.
3184     *
3185     * @see elm_thumbscroll_sensitivity_friction_get()
3186     * @note parameter value will get bound to 0.1 - 1.0 interval, always
3187     *
3188     * @ingroup Scrolling
3189     */
3190    EAPI void             elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
3191
3192    /**
3193     * @}
3194     */
3195
3196    /**
3197     * @defgroup Scrollhints Scrollhints
3198     *
3199     * Objects when inside a scroller can scroll, but this may not always be
3200     * desirable in certain situations. This allows an object to hint to itself
3201     * and parents to "not scroll" in one of 2 ways. If any child object of a
3202     * scroller has pushed a scroll freeze or hold then it affects all parent
3203     * scrollers until all children have released them.
3204     *
3205     * 1. To hold on scrolling. This means just flicking and dragging may no
3206     * longer scroll, but pressing/dragging near an edge of the scroller will
3207     * still scroll. This is automatically used by the entry object when
3208     * selecting text.
3209     *
3210     * 2. To totally freeze scrolling. This means it stops. until
3211     * popped/released.
3212     *
3213     * @{
3214     */
3215
3216    /**
3217     * Push the scroll hold by 1
3218     *
3219     * This increments the scroll hold count by one. If it is more than 0 it will
3220     * take effect on the parents of the indicated object.
3221     *
3222     * @param obj The object
3223     * @ingroup Scrollhints
3224     */
3225    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3226
3227    /**
3228     * Pop the scroll hold by 1
3229     *
3230     * This decrements the scroll hold count by one. If it is more than 0 it will
3231     * take effect on the parents of the indicated object.
3232     *
3233     * @param obj The object
3234     * @ingroup Scrollhints
3235     */
3236    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3237
3238    /**
3239     * Push the scroll freeze by 1
3240     *
3241     * This increments the scroll freeze count by one. If it is more
3242     * than 0 it will take effect on the parents of the indicated
3243     * object.
3244     *
3245     * @param obj The object
3246     * @ingroup Scrollhints
3247     */
3248    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3249
3250    /**
3251     * Pop the scroll freeze by 1
3252     *
3253     * This decrements the scroll freeze count by one. If it is more
3254     * than 0 it will take effect on the parents of the indicated
3255     * object.
3256     *
3257     * @param obj The object
3258     * @ingroup Scrollhints
3259     */
3260    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3261
3262    /**
3263     * Lock the scrolling of the given widget (and thus all parents)
3264     *
3265     * This locks the given object from scrolling in the X axis (and implicitly
3266     * also locks all parent scrollers too from doing the same).
3267     *
3268     * @param obj The object
3269     * @param lock The lock state (1 == locked, 0 == unlocked)
3270     * @ingroup Scrollhints
3271     */
3272    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3273
3274    /**
3275     * Lock the scrolling of the given widget (and thus all parents)
3276     *
3277     * This locks the given object from scrolling in the Y axis (and implicitly
3278     * also locks all parent scrollers too from doing the same).
3279     *
3280     * @param obj The object
3281     * @param lock The lock state (1 == locked, 0 == unlocked)
3282     * @ingroup Scrollhints
3283     */
3284    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3285
3286    /**
3287     * Get the scrolling lock of the given widget
3288     *
3289     * This gets the lock for X axis scrolling.
3290     *
3291     * @param obj The object
3292     * @ingroup Scrollhints
3293     */
3294    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3295
3296    /**
3297     * Get the scrolling lock of the given widget
3298     *
3299     * This gets the lock for X axis scrolling.
3300     *
3301     * @param obj The object
3302     * @ingroup Scrollhints
3303     */
3304    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3305
3306    /**
3307     * @}
3308     */
3309
3310    /**
3311     * Send a signal to the widget edje object.
3312     *
3313     * This function sends a signal to the edje object of the obj. An
3314     * edje program can respond to a signal by specifying matching
3315     * 'signal' and 'source' fields.
3316     *
3317     * @param obj The object
3318     * @param emission The signal's name.
3319     * @param source The signal's source.
3320     * @ingroup General
3321     */
3322    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
3323
3324    /**
3325     * Add a callback for a signal emitted by widget edje object.
3326     *
3327     * This function connects a callback function to a signal emitted by the
3328     * edje object of the obj.
3329     * Globs can occur in either the emission or source name.
3330     *
3331     * @param obj The object
3332     * @param emission The signal's name.
3333     * @param source The signal's source.
3334     * @param func The callback function to be executed when the signal is
3335     * emitted.
3336     * @param data A pointer to data to pass in to the callback function.
3337     * @ingroup General
3338     */
3339    EAPI void             elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) EINA_ARG_NONNULL(1, 4);
3340
3341    /**
3342     * Remove a signal-triggered callback from a widget edje object.
3343     *
3344     * This function removes a callback, previoulsy attached to a
3345     * signal emitted by the edje object of the obj.  The parameters
3346     * emission, source and func must match exactly those passed to a
3347     * previous call to elm_object_signal_callback_add(). The data
3348     * pointer that was passed to this call will be returned.
3349     *
3350     * @param obj The object
3351     * @param emission The signal's name.
3352     * @param source The signal's source.
3353     * @param func The callback function to be executed when the signal is
3354     * emitted.
3355     * @return The data pointer
3356     * @ingroup General
3357     */
3358    EAPI void            *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func) EINA_ARG_NONNULL(1, 4);
3359
3360    /**
3361     * Add a callback for input events (key up, key down, mouse wheel)
3362     * on a given Elementary widget
3363     *
3364     * @param obj The widget to add an event callback on
3365     * @param func The callback function to be executed when the event
3366     * happens
3367     * @param data Data to pass in to @p func
3368     *
3369     * Every widget in an Elementary interface set to receive focus,
3370     * with elm_object_focus_allow_set(), will propagate @b all of its
3371     * key up, key down and mouse wheel input events up to its parent
3372     * object, and so on. All of the focusable ones in this chain which
3373     * had an event callback set, with this call, will be able to treat
3374     * those events. There are two ways of making the propagation of
3375     * these event upwards in the tree of widgets to @b cease:
3376     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
3377     *   the event was @b not processed, so the propagation will go on.
3378     * - The @c event_info pointer passed to @p func will contain the
3379     *   event's structure and, if you OR its @c event_flags inner
3380     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
3381     *   one has already handled it, thus killing the event's
3382     *   propagation, too.
3383     *
3384     * @note Your event callback will be issued on those events taking
3385     * place only if no other child widget of @obj has consumed the
3386     * event already.
3387     *
3388     * @note Not to be confused with @c
3389     * evas_object_event_callback_add(), which will add event callbacks
3390     * per type on general Evas objects (no event propagation
3391     * infrastructure taken in account).
3392     *
3393     * @note Not to be confused with @c
3394     * elm_object_signal_callback_add(), which will add callbacks to @b
3395     * signals coming from a widget's theme, not input events.
3396     *
3397     * @note Not to be confused with @c
3398     * edje_object_signal_callback_add(), which does the same as
3399     * elm_object_signal_callback_add(), but directly on an Edje
3400     * object.
3401     *
3402     * @note Not to be confused with @c
3403     * evas_object_smart_callback_add(), which adds callbacks to smart
3404     * objects' <b>smart events</b>, and not input events.
3405     *
3406     * @see elm_object_event_callback_del()
3407     *
3408     * @ingroup General
3409     */
3410    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3411
3412    /**
3413     * Remove an event callback from a widget.
3414     *
3415     * This function removes a callback, previoulsy attached to event emission
3416     * by the @p obj.
3417     * The parameters func and data must match exactly those passed to
3418     * a previous call to elm_object_event_callback_add(). The data pointer that
3419     * was passed to this call will be returned.
3420     *
3421     * @param obj The object
3422     * @param func The callback function to be executed when the event is
3423     * emitted.
3424     * @param data Data to pass in to the callback function.
3425     * @return The data pointer
3426     * @ingroup General
3427     */
3428    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3429
3430    /**
3431     * Adjust size of an element for finger usage.
3432     *
3433     * @param times_w How many fingers should fit horizontally
3434     * @param w Pointer to the width size to adjust
3435     * @param times_h How many fingers should fit vertically
3436     * @param h Pointer to the height size to adjust
3437     *
3438     * This takes width and height sizes (in pixels) as input and a
3439     * size multiple (which is how many fingers you want to place
3440     * within the area, being "finger" the size set by
3441     * elm_finger_size_set()), and adjusts the size to be large enough
3442     * to accommodate the resulting size -- if it doesn't already
3443     * accommodate it. On return the @p w and @p h sizes pointed to by
3444     * these parameters will be modified, on those conditions.
3445     *
3446     * @note This is kind of a low level Elementary call, most useful
3447     * on size evaluation times for widgets. An external user wouldn't
3448     * be calling, most of the time.
3449     *
3450     * @ingroup Fingers
3451     */
3452    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3453
3454    /**
3455     * Get the duration for occuring long press event.
3456     *
3457     * @return Timeout for long press event
3458     * @ingroup Longpress
3459     */
3460    EAPI double           elm_longpress_timeout_get(void);
3461
3462    /**
3463     * Set the duration for occuring long press event.
3464     *
3465     * @param lonpress_timeout Timeout for long press event
3466     * @ingroup Longpress
3467     */
3468    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3469
3470    /**
3471     * @defgroup Debug Debug
3472     * don't use it unless you are sure
3473     *
3474     * @{
3475     */
3476
3477    /**
3478     * Print Tree object hierarchy in stdout
3479     *
3480     * @param obj The root object
3481     * @ingroup Debug
3482     */
3483    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3484
3485    /**
3486     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3487     *
3488     * @param obj The root object
3489     * @param file The path of output file
3490     * @ingroup Debug
3491     */
3492    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3493
3494    /**
3495     * @}
3496     */
3497
3498    /**
3499     * @defgroup Theme Theme
3500     *
3501     * Elementary uses Edje to theme its widgets, naturally. But for the most
3502     * part this is hidden behind a simpler interface that lets the user set
3503     * extensions and choose the style of widgets in a much easier way.
3504     *
3505     * Instead of thinking in terms of paths to Edje files and their groups
3506     * each time you want to change the appearance of a widget, Elementary
3507     * works so you can add any theme file with extensions or replace the
3508     * main theme at one point in the application, and then just set the style
3509     * of widgets with elm_object_style_set() and related functions. Elementary
3510     * will then look in its list of themes for a matching group and apply it,
3511     * and when the theme changes midway through the application, all widgets
3512     * will be updated accordingly.
3513     *
3514     * There are three concepts you need to know to understand how Elementary
3515     * theming works: default theme, extensions and overlays.
3516     *
3517     * Default theme, obviously enough, is the one that provides the default
3518     * look of all widgets. End users can change the theme used by Elementary
3519     * by setting the @c ELM_THEME environment variable before running an
3520     * application, or globally for all programs using the @c elementary_config
3521     * utility. Applications can change the default theme using elm_theme_set(),
3522     * but this can go against the user wishes, so it's not an adviced practice.
3523     *
3524     * Ideally, applications should find everything they need in the already
3525     * provided theme, but there may be occasions when that's not enough and
3526     * custom styles are required to correctly express the idea. For this
3527     * cases, Elementary has extensions.
3528     *
3529     * Extensions allow the application developer to write styles of its own
3530     * to apply to some widgets. This requires knowledge of how each widget
3531     * is themed, as extensions will always replace the entire group used by
3532     * the widget, so important signals and parts need to be there for the
3533     * object to behave properly (see documentation of Edje for details).
3534     * Once the theme for the extension is done, the application needs to add
3535     * it to the list of themes Elementary will look into, using
3536     * elm_theme_extension_add(), and set the style of the desired widgets as
3537     * he would normally with elm_object_style_set().
3538     *
3539     * Overlays, on the other hand, can replace the look of all widgets by
3540     * overriding the default style. Like extensions, it's up to the application
3541     * developer to write the theme for the widgets it wants, the difference
3542     * being that when looking for the theme, Elementary will check first the
3543     * list of overlays, then the set theme and lastly the list of extensions,
3544     * so with overlays it's possible to replace the default view and every
3545     * widget will be affected. This is very much alike to setting the whole
3546     * theme for the application and will probably clash with the end user
3547     * options, not to mention the risk of ending up with not matching styles
3548     * across the program. Unless there's a very special reason to use them,
3549     * overlays should be avoided for the resons exposed before.
3550     *
3551     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3552     * keeps one default internally and every function that receives one of
3553     * these can be called with NULL to refer to this default (except for
3554     * elm_theme_free()). It's possible to create a new instance of a
3555     * ::Elm_Theme to set other theme for a specific widget (and all of its
3556     * children), but this is as discouraged, if not even more so, than using
3557     * overlays. Don't use this unless you really know what you are doing.
3558     *
3559     * But to be less negative about things, you can look at the following
3560     * examples:
3561     * @li @ref theme_example_01 "Using extensions"
3562     * @li @ref theme_example_02 "Using overlays"
3563     *
3564     * @{
3565     */
3566    /**
3567     * @typedef Elm_Theme
3568     *
3569     * Opaque handler for the list of themes Elementary looks for when
3570     * rendering widgets.
3571     *
3572     * Stay out of this unless you really know what you are doing. For most
3573     * cases, sticking to the default is all a developer needs.
3574     */
3575    typedef struct _Elm_Theme Elm_Theme;
3576
3577    /**
3578     * Create a new specific theme
3579     *
3580     * This creates an empty specific theme that only uses the default theme. A
3581     * specific theme has its own private set of extensions and overlays too
3582     * (which are empty by default). Specific themes do not fall back to themes
3583     * of parent objects. They are not intended for this use. Use styles, overlays
3584     * and extensions when needed, but avoid specific themes unless there is no
3585     * other way (example: you want to have a preview of a new theme you are
3586     * selecting in a "theme selector" window. The preview is inside a scroller
3587     * and should display what the theme you selected will look like, but not
3588     * actually apply it yet. The child of the scroller will have a specific
3589     * theme set to show this preview before the user decides to apply it to all
3590     * applications).
3591     */
3592    EAPI Elm_Theme       *elm_theme_new(void);
3593
3594    /**
3595     * Free a specific theme
3596     *
3597     * @param th The theme to free
3598     *
3599     * This frees a theme created with elm_theme_new().
3600     */
3601    EAPI void             elm_theme_free(Elm_Theme *th);
3602
3603    /**
3604     * Copy the theme fom the source to the destination theme
3605     *
3606     * @param th The source theme to copy from
3607     * @param thdst The destination theme to copy data to
3608     *
3609     * This makes a one-time static copy of all the theme config, extensions
3610     * and overlays from @p th to @p thdst. If @p th references a theme, then
3611     * @p thdst is also set to reference it, with all the theme settings,
3612     * overlays and extensions that @p th had.
3613     */
3614    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3615
3616    /**
3617     * Tell the source theme to reference the ref theme
3618     *
3619     * @param th The theme that will do the referencing
3620     * @param thref The theme that is the reference source
3621     *
3622     * This clears @p th to be empty and then sets it to refer to @p thref
3623     * so @p th acts as an override to @p thref, but where its overrides
3624     * don't apply, it will fall through to @p thref for configuration.
3625     */
3626    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3627
3628    /**
3629     * Return the theme referred to
3630     *
3631     * @param th The theme to get the reference from
3632     * @return The referenced theme handle
3633     *
3634     * This gets the theme set as the reference theme by elm_theme_ref_set().
3635     * If no theme is set as a reference, NULL is returned.
3636     */
3637    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3638
3639    /**
3640     * Return the default theme
3641     *
3642     * @return The default theme handle
3643     *
3644     * This returns the internal default theme setup handle that all widgets
3645     * use implicitly unless a specific theme is set. This is also often use
3646     * as a shorthand of NULL.
3647     */
3648    EAPI Elm_Theme       *elm_theme_default_get(void);
3649
3650    /**
3651     * Prepends a theme overlay to the list of overlays
3652     *
3653     * @param th The theme to add to, or if NULL, the default theme
3654     * @param item The Edje file path to be used
3655     *
3656     * Use this if your application needs to provide some custom overlay theme
3657     * (An Edje file that replaces some default styles of widgets) where adding
3658     * new styles, or changing system theme configuration is not possible. Do
3659     * NOT use this instead of a proper system theme configuration. Use proper
3660     * configuration files, profiles, environment variables etc. to set a theme
3661     * so that the theme can be altered by simple confiugration by a user. Using
3662     * this call to achieve that effect is abusing the API and will create lots
3663     * of trouble.
3664     *
3665     * @see elm_theme_extension_add()
3666     */
3667    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3668
3669    /**
3670     * Delete a theme overlay from the list of overlays
3671     *
3672     * @param th The theme to delete from, or if NULL, the default theme
3673     * @param item The name of the theme overlay
3674     *
3675     * @see elm_theme_overlay_add()
3676     */
3677    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3678
3679    /**
3680     * Appends a theme extension to the list of extensions.
3681     *
3682     * @param th The theme to add to, or if NULL, the default theme
3683     * @param item The Edje file path to be used
3684     *
3685     * This is intended when an application needs more styles of widgets or new
3686     * widget themes that the default does not provide (or may not provide). The
3687     * application has "extended" usage by coming up with new custom style names
3688     * for widgets for specific uses, but as these are not "standard", they are
3689     * not guaranteed to be provided by a default theme. This means the
3690     * application is required to provide these extra elements itself in specific
3691     * Edje files. This call adds one of those Edje files to the theme search
3692     * path to be search after the default theme. The use of this call is
3693     * encouraged when default styles do not meet the needs of the application.
3694     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3695     *
3696     * @see elm_object_style_set()
3697     */
3698    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3699
3700    /**
3701     * Deletes a theme extension from the list of extensions.
3702     *
3703     * @param th The theme to delete from, or if NULL, the default theme
3704     * @param item The name of the theme extension
3705     *
3706     * @see elm_theme_extension_add()
3707     */
3708    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3709
3710    /**
3711     * Set the theme search order for the given theme
3712     *
3713     * @param th The theme to set the search order, or if NULL, the default theme
3714     * @param theme Theme search string
3715     *
3716     * This sets the search string for the theme in path-notation from first
3717     * theme to search, to last, delimited by the : character. Example:
3718     *
3719     * "shiny:/path/to/file.edj:default"
3720     *
3721     * See the ELM_THEME environment variable for more information.
3722     *
3723     * @see elm_theme_get()
3724     * @see elm_theme_list_get()
3725     */
3726    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3727
3728    /**
3729     * Return the theme search order
3730     *
3731     * @param th The theme to get the search order, or if NULL, the default theme
3732     * @return The internal search order path
3733     *
3734     * This function returns a colon separated string of theme elements as
3735     * returned by elm_theme_list_get().
3736     *
3737     * @see elm_theme_set()
3738     * @see elm_theme_list_get()
3739     */
3740    EAPI const char      *elm_theme_get(Elm_Theme *th);
3741
3742    /**
3743     * Return a list of theme elements to be used in a theme.
3744     *
3745     * @param th Theme to get the list of theme elements from.
3746     * @return The internal list of theme elements
3747     *
3748     * This returns the internal list of theme elements (will only be valid as
3749     * long as the theme is not modified by elm_theme_set() or theme is not
3750     * freed by elm_theme_free(). This is a list of strings which must not be
3751     * altered as they are also internal. If @p th is NULL, then the default
3752     * theme element list is returned.
3753     *
3754     * A theme element can consist of a full or relative path to a .edj file,
3755     * or a name, without extension, for a theme to be searched in the known
3756     * theme paths for Elemementary.
3757     *
3758     * @see elm_theme_set()
3759     * @see elm_theme_get()
3760     */
3761    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3762
3763    /**
3764     * Return the full patrh for a theme element
3765     *
3766     * @param f The theme element name
3767     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3768     * @return The full path to the file found.
3769     *
3770     * This returns a string you should free with free() on success, NULL on
3771     * failure. This will search for the given theme element, and if it is a
3772     * full or relative path element or a simple searchable name. The returned
3773     * path is the full path to the file, if searched, and the file exists, or it
3774     * is simply the full path given in the element or a resolved path if
3775     * relative to home. The @p in_search_path boolean pointed to is set to
3776     * EINA_TRUE if the file was a searchable file andis in the search path,
3777     * and EINA_FALSE otherwise.
3778     */
3779    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3780
3781    /**
3782     * Flush the current theme.
3783     *
3784     * @param th Theme to flush
3785     *
3786     * This flushes caches that let elementary know where to find theme elements
3787     * in the given theme. If @p th is NULL, then the default theme is flushed.
3788     * Call this function if source theme data has changed in such a way as to
3789     * make any caches Elementary kept invalid.
3790     */
3791    EAPI void             elm_theme_flush(Elm_Theme *th);
3792
3793    /**
3794     * This flushes all themes (default and specific ones).
3795     *
3796     * This will flush all themes in the current application context, by calling
3797     * elm_theme_flush() on each of them.
3798     */
3799    EAPI void             elm_theme_full_flush(void);
3800
3801    /**
3802     * Set the theme for all elementary using applications on the current display
3803     *
3804     * @param theme The name of the theme to use. Format same as the ELM_THEME
3805     * environment variable.
3806     */
3807    EAPI void             elm_theme_all_set(const char *theme);
3808
3809    /**
3810     * Return a list of theme elements in the theme search path
3811     *
3812     * @return A list of strings that are the theme element names.
3813     *
3814     * This lists all available theme files in the standard Elementary search path
3815     * for theme elements, and returns them in alphabetical order as theme
3816     * element names in a list of strings. Free this with
3817     * elm_theme_name_available_list_free() when you are done with the list.
3818     */
3819    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3820
3821    /**
3822     * Free the list returned by elm_theme_name_available_list_new()
3823     *
3824     * This frees the list of themes returned by
3825     * elm_theme_name_available_list_new(). Once freed the list should no longer
3826     * be used. a new list mys be created.
3827     */
3828    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3829
3830    /**
3831     * Set a specific theme to be used for this object and its children
3832     *
3833     * @param obj The object to set the theme on
3834     * @param th The theme to set
3835     *
3836     * This sets a specific theme that will be used for the given object and any
3837     * child objects it has. If @p th is NULL then the theme to be used is
3838     * cleared and the object will inherit its theme from its parent (which
3839     * ultimately will use the default theme if no specific themes are set).
3840     *
3841     * Use special themes with great care as this will annoy users and make
3842     * configuration difficult. Avoid any custom themes at all if it can be
3843     * helped.
3844     */
3845    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3846
3847    /**
3848     * Get the specific theme to be used
3849     *
3850     * @param obj The object to get the specific theme from
3851     * @return The specifc theme set.
3852     *
3853     * This will return a specific theme set, or NULL if no specific theme is
3854     * set on that object. It will not return inherited themes from parents, only
3855     * the specific theme set for that specific object. See elm_object_theme_set()
3856     * for more information.
3857     */
3858    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3859
3860    /**
3861     * Get a data item from a theme
3862     *
3863     * @param th The theme, or NULL for default theme
3864     * @param key The data key to search with
3865     * @return The data value, or NULL on failure
3866     *
3867     * This function is used to return data items from edc in @p th, an overlay, or an extension.
3868     * It works the same way as edje_file_data_get() except that the return is stringshared.
3869     */
3870    EAPI const char      *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3871
3872    /**
3873     * @}
3874     */
3875
3876    /* win */
3877    /** @defgroup Win Win
3878     *
3879     * @image html img/widget/win/preview-00.png
3880     * @image latex img/widget/win/preview-00.eps
3881     *
3882     * The window class of Elementary.  Contains functions to manipulate
3883     * windows. The Evas engine used to render the window contents is specified
3884     * in the system or user elementary config files (whichever is found last),
3885     * and can be overridden with the ELM_ENGINE environment variable for
3886     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3887     * compilation setup and modules actually installed at runtime) are (listed
3888     * in order of best supported and most likely to be complete and work to
3889     * lowest quality).
3890     *
3891     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3892     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3893     * rendering in X11)
3894     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3895     * exits)
3896     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3897     * rendering)
3898     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3899     * buffer)
3900     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3901     * rendering using SDL as the buffer)
3902     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3903     * GDI with software)
3904     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3905     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3906     * grayscale using dedicated 8bit software engine in X11)
3907     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3908     * X11 using 16bit software engine)
3909     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3910     * (Windows CE rendering via GDI with 16bit software renderer)
3911     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3912     * buffer with 16bit software renderer)
3913     * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System)
3914     * @li "gl-cocoa", "gl_cocoa", "opengl-cocoa", "opengl_cocoa" (OpenGL rendering in Cocoa)
3915     * @li "psl1ght" (PS3 rendering using PSL1GHT)
3916     *
3917     * All engines use a simple string to select the engine to render, EXCEPT
3918     * the "shot" engine. This actually encodes the output of the virtual
3919     * screenshot and how long to delay in the engine string. The engine string
3920     * is encoded in the following way:
3921     *
3922     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3923     *
3924     * Where options are separated by a ":" char if more than one option is
3925     * given, with delay, if provided being the first option and file the last
3926     * (order is important). The delay specifies how long to wait after the
3927     * window is shown before doing the virtual "in memory" rendering and then
3928     * save the output to the file specified by the file option (and then exit).
3929     * If no delay is given, the default is 0.5 seconds. If no file is given the
3930     * default output file is "out.png". Repeat option is for continous
3931     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3932     * fixed to "out001.png" Some examples of using the shot engine:
3933     *
3934     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3935     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3936     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3937     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3938     *   ELM_ENGINE="shot:" elementary_test
3939     *
3940     * Signals that you can add callbacks for are:
3941     *
3942     * @li "delete,request": the user requested to close the window. See
3943     * elm_win_autodel_set().
3944     * @li "focus,in": window got focus
3945     * @li "focus,out": window lost focus
3946     * @li "moved": window that holds the canvas was moved
3947     *
3948     * Examples:
3949     * @li @ref win_example_01
3950     *
3951     * @{
3952     */
3953    /**
3954     * Defines the types of window that can be created
3955     *
3956     * These are hints set on the window so that a running Window Manager knows
3957     * how the window should be handled and/or what kind of decorations it
3958     * should have.
3959     *
3960     * Currently, only the X11 backed engines use them.
3961     */
3962    typedef enum _Elm_Win_Type
3963      {
3964         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3965                          window. Almost every window will be created with this
3966                          type. */
3967         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3968         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3969                            window holding desktop icons. */
3970         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3971                         be kept on top of any other window by the Window
3972                         Manager. */
3973         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3974                            similar. */
3975         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3976         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3977                            pallete. */
3978         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3979         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3980                                  entry in a menubar is clicked. Typically used
3981                                  with elm_win_override_set(). This hint exists
3982                                  for completion only, as the EFL way of
3983                                  implementing a menu would not normally use a
3984                                  separate window for its contents. */
3985         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3986                               triggered by right-clicking an object. */
3987         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3988                            explanatory text that typically appear after the
3989                            mouse cursor hovers over an object for a while.
3990                            Typically used with elm_win_override_set() and also
3991                            not very commonly used in the EFL. */
3992         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3993                                 battery life or a new E-Mail received. */
3994         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3995                          usually used in the EFL. */
3996         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3997                        object being dragged across different windows, or even
3998                        applications. Typically used with
3999                        elm_win_override_set(). */
4000         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
4001                                  buffer. No actual window is created for this
4002                                  type, instead the window and all of its
4003                                  contents will be rendered to an image buffer.
4004                                  This allows to have children window inside a
4005                                  parent one just like any other object would
4006                                  be, and do other things like applying @c
4007                                  Evas_Map effects to it. This is the only type
4008                                  of window that requires the @c parent
4009                                  parameter of elm_win_add() to be a valid @c
4010                                  Evas_Object. */
4011      } Elm_Win_Type;
4012
4013    /**
4014     * The differents layouts that can be requested for the virtual keyboard.
4015     *
4016     * When the application window is being managed by Illume, it may request
4017     * any of the following layouts for the virtual keyboard.
4018     */
4019    typedef enum _Elm_Win_Keyboard_Mode
4020      {
4021         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
4022         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
4023         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
4024         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
4025         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
4026         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
4027         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
4028         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
4029         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
4030         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
4031         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
4032         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
4033         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
4034         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
4035         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
4036         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
4037      } Elm_Win_Keyboard_Mode;
4038
4039    /**
4040     * Available commands that can be sent to the Illume manager.
4041     *
4042     * When running under an Illume session, a window may send commands to the
4043     * Illume manager to perform different actions.
4044     */
4045    typedef enum _Elm_Illume_Command
4046      {
4047         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
4048                                          window */
4049         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
4050                                             in the list */
4051         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
4052                                          screen */
4053         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
4054      } Elm_Illume_Command;
4055
4056    /**
4057     * Adds a window object. If this is the first window created, pass NULL as
4058     * @p parent.
4059     *
4060     * @param parent Parent object to add the window to, or NULL
4061     * @param name The name of the window
4062     * @param type The window type, one of #Elm_Win_Type.
4063     *
4064     * The @p parent paramter can be @c NULL for every window @p type except
4065     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
4066     * which the image object will be created.
4067     *
4068     * @return The created object, or NULL on failure
4069     */
4070    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
4071
4072    /**
4073     * Adds a window object with standard setup
4074     *
4075     * @param name The name of the window
4076     * @param title The title for the window
4077     *
4078     * This creates a window like elm_win_add() but also puts in a standard
4079     * background with elm_bg_add(), as well as setting the window title to
4080     * @p title. The window type created is of type ELM_WIN_BASIC, with NULL
4081     * as the parent widget.
4082     *
4083     * @return The created object, or NULL on failure
4084     *
4085     * @see elm_win_add()
4086     */
4087    EAPI Evas_Object *elm_win_util_standard_add(const char *name, const char *title);
4088
4089    /**
4090     * Add @p subobj as a resize object of window @p obj.
4091     *
4092     *
4093     * Setting an object as a resize object of the window means that the
4094     * @p subobj child's size and position will be controlled by the window
4095     * directly. That is, the object will be resized to match the window size
4096     * and should never be moved or resized manually by the developer.
4097     *
4098     * In addition, resize objects of the window control what the minimum size
4099     * of it will be, as well as whether it can or not be resized by the user.
4100     *
4101     * For the end user to be able to resize a window by dragging the handles
4102     * or borders provided by the Window Manager, or using any other similar
4103     * mechanism, all of the resize objects in the window should have their
4104     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
4105     *
4106     * Also notice that the window can get resized to the current size of the
4107     * object if the EVAS_HINT_EXPAND is set @b after the call to
4108     * elm_win_resize_object_add(). So if the object should get resized to the
4109     * size of the window, set this hint @b before adding it as a resize object
4110     * (this happens because the size of the window and the object are evaluated
4111     * as soon as the object is added to the window).
4112     *
4113     * @param obj The window object
4114     * @param subobj The resize object to add
4115     */
4116    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4117
4118    /**
4119     * Delete @p subobj as a resize object of window @p obj.
4120     *
4121     * This function removes the object @p subobj from the resize objects of
4122     * the window @p obj. It will not delete the object itself, which will be
4123     * left unmanaged and should be deleted by the developer, manually handled
4124     * or set as child of some other container.
4125     *
4126     * @param obj The window object
4127     * @param subobj The resize object to add
4128     */
4129    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4130
4131    /**
4132     * Set the title of the window
4133     *
4134     * @param obj The window object
4135     * @param title The title to set
4136     */
4137    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
4138
4139    /**
4140     * Get the title of the window
4141     *
4142     * The returned string is an internal one and should not be freed or
4143     * modified. It will also be rendered invalid if a new title is set or if
4144     * the window is destroyed.
4145     *
4146     * @param obj The window object
4147     * @return The title
4148     */
4149    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4150
4151    /**
4152     * Set the window's autodel state.
4153     *
4154     * When closing the window in any way outside of the program control, like
4155     * pressing the X button in the titlebar or using a command from the
4156     * Window Manager, a "delete,request" signal is emitted to indicate that
4157     * this event occurred and the developer can take any action, which may
4158     * include, or not, destroying the window object.
4159     *
4160     * When the @p autodel parameter is set, the window will be automatically
4161     * destroyed when this event occurs, after the signal is emitted.
4162     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
4163     * and is up to the program to do so when it's required.
4164     *
4165     * @param obj The window object
4166     * @param autodel If true, the window will automatically delete itself when
4167     * closed
4168     */
4169    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
4170
4171    /**
4172     * Get the window's autodel state.
4173     *
4174     * @param obj The window object
4175     * @return If the window will automatically delete itself when closed
4176     *
4177     * @see elm_win_autodel_set()
4178     */
4179    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4180
4181    /**
4182     * Activate a window object.
4183     *
4184     * This function sends a request to the Window Manager to activate the
4185     * window pointed by @p obj. If honored by the WM, the window will receive
4186     * the keyboard focus.
4187     *
4188     * @note This is just a request that a Window Manager may ignore, so calling
4189     * this function does not ensure in any way that the window will be the
4190     * active one after it.
4191     *
4192     * @param obj The window object
4193     */
4194    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4195
4196    /**
4197     * Lower a window object.
4198     *
4199     * Places the window pointed by @p obj at the bottom of the stack, so that
4200     * no other window is covered by it.
4201     *
4202     * If elm_win_override_set() is not set, the Window Manager may ignore this
4203     * request.
4204     *
4205     * @param obj The window object
4206     */
4207    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
4208
4209    /**
4210     * Raise a window object.
4211     *
4212     * Places the window pointed by @p obj at the top of the stack, so that it's
4213     * not covered by any other window.
4214     *
4215     * If elm_win_override_set() is not set, the Window Manager may ignore this
4216     * request.
4217     *
4218     * @param obj The window object
4219     */
4220    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
4221
4222    /**
4223     * Center a window on its screen
4224     *
4225     * This function centers window @p obj horizontally and/or vertically based on the values
4226     * of @p h and @v.
4227     * @param obj The window object
4228     * @param h If true, center horizontally. If false, do not change horizontal location.
4229     * @param v If true, center vertically. If false, do not change vertical location.
4230     */
4231    EAPI void         elm_win_center(Evas_Object *obj, Eina_Bool h, Eina_Bool v) EINA_ARG_NONNULL(1);
4232
4233    /**
4234     * Set the borderless state of a window.
4235     *
4236     * This function requests the Window Manager to not draw any decoration
4237     * around the window.
4238     *
4239     * @param obj The window object
4240     * @param borderless If true, the window is borderless
4241     */
4242    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
4243
4244    /**
4245     * Get the borderless state of a window.
4246     *
4247     * @param obj The window object
4248     * @return If true, the window is borderless
4249     */
4250    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4251
4252    /**
4253     * Set the shaped state of a window.
4254     *
4255     * Shaped windows, when supported, will render the parts of the window that
4256     * has no content, transparent.
4257     *
4258     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
4259     * background object or cover the entire window in any other way, or the
4260     * parts of the canvas that have no data will show framebuffer artifacts.
4261     *
4262     * @param obj The window object
4263     * @param shaped If true, the window is shaped
4264     *
4265     * @see elm_win_alpha_set()
4266     */
4267    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
4268
4269    /**
4270     * Get the shaped state of a window.
4271     *
4272     * @param obj The window object
4273     * @return If true, the window is shaped
4274     *
4275     * @see elm_win_shaped_set()
4276     */
4277    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4278
4279    /**
4280     * Set the alpha channel state of a window.
4281     *
4282     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
4283     * possibly making parts of the window completely or partially transparent.
4284     * This is also subject to the underlying system supporting it, like for
4285     * example, running under a compositing manager. If no compositing is
4286     * available, enabling this option will instead fallback to using shaped
4287     * windows, with elm_win_shaped_set().
4288     *
4289     * @param obj The window object
4290     * @param alpha If true, the window has an alpha channel
4291     *
4292     * @see elm_win_alpha_set()
4293     */
4294    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
4295
4296    /**
4297     * Get the transparency state of a window.
4298     *
4299     * @param obj The window object
4300     * @return If true, the window is transparent
4301     *
4302     * @see elm_win_transparent_set()
4303     */
4304    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4305
4306    /**
4307     * Set the transparency state of a window.
4308     *
4309     * Use elm_win_alpha_set() instead.
4310     *
4311     * @param obj The window object
4312     * @param transparent If true, the window is transparent
4313     *
4314     * @see elm_win_alpha_set()
4315     */
4316    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
4317
4318    /**
4319     * Get the alpha channel state of a window.
4320     *
4321     * @param obj The window object
4322     * @return If true, the window has an alpha channel
4323     */
4324    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4325
4326    /**
4327     * Set the override state of a window.
4328     *
4329     * A window with @p override set to EINA_TRUE will not be managed by the
4330     * Window Manager. This means that no decorations of any kind will be shown
4331     * for it, moving and resizing must be handled by the application, as well
4332     * as the window visibility.
4333     *
4334     * This should not be used for normal windows, and even for not so normal
4335     * ones, it should only be used when there's a good reason and with a lot
4336     * of care. Mishandling override windows may result situations that
4337     * disrupt the normal workflow of the end user.
4338     *
4339     * @param obj The window object
4340     * @param override If true, the window is overridden
4341     */
4342    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
4343
4344    /**
4345     * Get the override state of a window.
4346     *
4347     * @param obj The window object
4348     * @return If true, the window is overridden
4349     *
4350     * @see elm_win_override_set()
4351     */
4352    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4353
4354    /**
4355     * Set the fullscreen state of a window.
4356     *
4357     * @param obj The window object
4358     * @param fullscreen If true, the window is fullscreen
4359     */
4360    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
4361
4362    /**
4363     * Get the fullscreen state of a window.
4364     *
4365     * @param obj The window object
4366     * @return If true, the window is fullscreen
4367     */
4368    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4369
4370    /**
4371     * Set the maximized state of a window.
4372     *
4373     * @param obj The window object
4374     * @param maximized If true, the window is maximized
4375     */
4376    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
4377
4378    /**
4379     * Get the maximized state of a window.
4380     *
4381     * @param obj The window object
4382     * @return If true, the window is maximized
4383     */
4384    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4385
4386    /**
4387     * Set the iconified state of a window.
4388     *
4389     * @param obj The window object
4390     * @param iconified If true, the window is iconified
4391     */
4392    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
4393
4394    /**
4395     * Get the iconified state of a window.
4396     *
4397     * @param obj The window object
4398     * @return If true, the window is iconified
4399     */
4400    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4401
4402    /**
4403     * Set the layer of the window.
4404     *
4405     * What this means exactly will depend on the underlying engine used.
4406     *
4407     * In the case of X11 backed engines, the value in @p layer has the
4408     * following meanings:
4409     * @li < 3: The window will be placed below all others.
4410     * @li > 5: The window will be placed above all others.
4411     * @li other: The window will be placed in the default layer.
4412     *
4413     * @param obj The window object
4414     * @param layer The layer of the window
4415     */
4416    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
4417
4418    /**
4419     * Get the layer of the window.
4420     *
4421     * @param obj The window object
4422     * @return The layer of the window
4423     *
4424     * @see elm_win_layer_set()
4425     */
4426    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4427
4428    /**
4429     * Set the rotation of the window.
4430     *
4431     * Most engines only work with multiples of 90.
4432     *
4433     * This function is used to set the orientation of the window @p obj to
4434     * match that of the screen. The window itself will be resized to adjust
4435     * to the new geometry of its contents. If you want to keep the window size,
4436     * see elm_win_rotation_with_resize_set().
4437     *
4438     * @param obj The window object
4439     * @param rotation The rotation of the window, in degrees (0-360),
4440     * counter-clockwise.
4441     */
4442    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4443
4444    /**
4445     * Rotates the window and resizes it.
4446     *
4447     * Like elm_win_rotation_set(), but it also resizes the window's contents so
4448     * that they fit inside the current window geometry.
4449     *
4450     * @param obj The window object
4451     * @param layer The rotation of the window in degrees (0-360),
4452     * counter-clockwise.
4453     */
4454    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4455
4456    /**
4457     * Get the rotation of the window.
4458     *
4459     * @param obj The window object
4460     * @return The rotation of the window in degrees (0-360)
4461     *
4462     * @see elm_win_rotation_set()
4463     * @see elm_win_rotation_with_resize_set()
4464     */
4465    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4466
4467    /**
4468     * Set the sticky state of the window.
4469     *
4470     * Hints the Window Manager that the window in @p obj should be left fixed
4471     * at its position even when the virtual desktop it's on moves or changes.
4472     *
4473     * @param obj The window object
4474     * @param sticky If true, the window's sticky state is enabled
4475     */
4476    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4477
4478    /**
4479     * Get the sticky state of the window.
4480     *
4481     * @param obj The window object
4482     * @return If true, the window's sticky state is enabled
4483     *
4484     * @see elm_win_sticky_set()
4485     */
4486    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4487
4488    /**
4489     * Set if this window is an illume conformant window
4490     *
4491     * @param obj The window object
4492     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4493     */
4494    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4495
4496    /**
4497     * Get if this window is an illume conformant window
4498     *
4499     * @param obj The window object
4500     * @return A boolean if this window is illume conformant or not
4501     */
4502    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4503
4504    /**
4505     * Set a window to be an illume quickpanel window
4506     *
4507     * By default window objects are not quickpanel windows.
4508     *
4509     * @param obj The window object
4510     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4511     */
4512    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4513
4514    /**
4515     * Get if this window is a quickpanel or not
4516     *
4517     * @param obj The window object
4518     * @return A boolean if this window is a quickpanel or not
4519     */
4520    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4521
4522    /**
4523     * Set the major priority of a quickpanel window
4524     *
4525     * @param obj The window object
4526     * @param priority The major priority for this quickpanel
4527     */
4528    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4529
4530    /**
4531     * Get the major priority of a quickpanel window
4532     *
4533     * @param obj The window object
4534     * @return The major priority of this quickpanel
4535     */
4536    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4537
4538    /**
4539     * Set the minor priority of a quickpanel window
4540     *
4541     * @param obj The window object
4542     * @param priority The minor priority for this quickpanel
4543     */
4544    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4545
4546    /**
4547     * Get the minor priority of a quickpanel window
4548     *
4549     * @param obj The window object
4550     * @return The minor priority of this quickpanel
4551     */
4552    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4553
4554    /**
4555     * Set which zone this quickpanel should appear in
4556     *
4557     * @param obj The window object
4558     * @param zone The requested zone for this quickpanel
4559     */
4560    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4561
4562    /**
4563     * Get which zone this quickpanel should appear in
4564     *
4565     * @param obj The window object
4566     * @return The requested zone for this quickpanel
4567     */
4568    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4569
4570    /**
4571     * Set the window to be skipped by keyboard focus
4572     *
4573     * This sets the window to be skipped by normal keyboard input. This means
4574     * a window manager will be asked to not focus this window as well as omit
4575     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4576     *
4577     * Call this and enable it on a window BEFORE you show it for the first time,
4578     * otherwise it may have no effect.
4579     *
4580     * Use this for windows that have only output information or might only be
4581     * interacted with by the mouse or fingers, and never for typing input.
4582     * Be careful that this may have side-effects like making the window
4583     * non-accessible in some cases unless the window is specially handled. Use
4584     * this with care.
4585     *
4586     * @param obj The window object
4587     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4588     */
4589    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4590
4591    /**
4592     * Send a command to the windowing environment
4593     *
4594     * This is intended to work in touchscreen or small screen device
4595     * environments where there is a more simplistic window management policy in
4596     * place. This uses the window object indicated to select which part of the
4597     * environment to control (the part that this window lives in), and provides
4598     * a command and an optional parameter structure (use NULL for this if not
4599     * needed).
4600     *
4601     * @param obj The window object that lives in the environment to control
4602     * @param command The command to send
4603     * @param params Optional parameters for the command
4604     */
4605    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4606
4607    /**
4608     * Get the inlined image object handle
4609     *
4610     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4611     * then the window is in fact an evas image object inlined in the parent
4612     * canvas. You can get this object (be careful to not manipulate it as it
4613     * is under control of elementary), and use it to do things like get pixel
4614     * data, save the image to a file, etc.
4615     *
4616     * @param obj The window object to get the inlined image from
4617     * @return The inlined image object, or NULL if none exists
4618     */
4619    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4620
4621    /**
4622     * Determine whether a window has focus
4623     * @param obj The window to query
4624     * @return EINA_TRUE if the window exists and has focus, else EINA_FALSE
4625     */
4626    EAPI Eina_Bool    elm_win_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4627
4628    /**
4629     * Constrain the maximum width and height of a window to the width and height of its screen
4630     *
4631     * When @p constrain is true, @p obj will never resize larger than the screen.
4632     * @param obj The window object
4633     * @param constrain EINA_TRUE to restrict the window's maximum size, EINA_FALSE to disable restriction
4634     */
4635    EAPI void         elm_win_screen_constrain_set(Evas_Object *obj, Eina_Bool constrain) EINA_ARG_NONNULL(1);
4636
4637    /**
4638     * Retrieve the constraints on the maximum width and height of a window relative to the width and height of its screen
4639     *
4640     * When this function returns true, @p obj will never resize larger than the screen.
4641     * @param obj The window object
4642     * @return EINA_TRUE to restrict the window's maximum size, EINA_FALSE to disable restriction
4643     */
4644    EAPI Eina_Bool    elm_win_screen_constrain_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
4645
4646    /**
4647     * Get screen geometry details for the screen that a window is on
4648     * @param obj The window to query
4649     * @param x where to return the horizontal offset value. May be NULL.
4650     * @param y  where to return the vertical offset value. May be NULL.
4651     * @param w  where to return the width value. May be NULL.
4652     * @param h  where to return the height value. May be NULL.
4653     */
4654    EAPI void         elm_win_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
4655
4656    /**
4657     * Set the enabled status for the focus highlight in a window
4658     *
4659     * This function will enable or disable the focus highlight only for the
4660     * given window, regardless of the global setting for it
4661     *
4662     * @param obj The window where to enable the highlight
4663     * @param enabled The enabled value for the highlight
4664     */
4665    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4666
4667    /**
4668     * Get the enabled value of the focus highlight for this window
4669     *
4670     * @param obj The window in which to check if the focus highlight is enabled
4671     *
4672     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4673     */
4674    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4675
4676    /**
4677     * Set the style for the focus highlight on this window
4678     *
4679     * Sets the style to use for theming the highlight of focused objects on
4680     * the given window. If @p style is NULL, the default will be used.
4681     *
4682     * @param obj The window where to set the style
4683     * @param style The style to set
4684     */
4685    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4686
4687    /**
4688     * Get the style set for the focus highlight object
4689     *
4690     * Gets the style set for this windows highilght object, or NULL if none
4691     * is set.
4692     *
4693     * @param obj The window to retrieve the highlights style from
4694     *
4695     * @return The style set or NULL if none was. Default is used in that case.
4696     */
4697    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4698
4699    /*...
4700     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4701     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4702     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4703     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4704     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4705     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4706     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4707     *
4708     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4709     * (blank mouse, private mouse obj, defaultmouse)
4710     *
4711     */
4712
4713    /**
4714     * Sets the keyboard mode of the window.
4715     *
4716     * @param obj The window object
4717     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4718     */
4719    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4720
4721    /**
4722     * Gets the keyboard mode of the window.
4723     *
4724     * @param obj The window object
4725     * @return The mode, one of #Elm_Win_Keyboard_Mode
4726     */
4727    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4728
4729    /**
4730     * Sets whether the window is a keyboard.
4731     *
4732     * @param obj The window object
4733     * @param is_keyboard If true, the window is a virtual keyboard
4734     */
4735    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4736
4737    /**
4738     * Gets whether the window is a keyboard.
4739     *
4740     * @param obj The window object
4741     * @return If the window is a virtual keyboard
4742     */
4743    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4744
4745    /**
4746     * Get the screen position of a window.
4747     *
4748     * @param obj The window object
4749     * @param x The int to store the x coordinate to
4750     * @param y The int to store the y coordinate to
4751     */
4752    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4753
4754    /**
4755     * @}
4756     */
4757
4758    /**
4759     * @defgroup Inwin Inwin
4760     *
4761     * @image html img/widget/inwin/preview-00.png
4762     * @image latex img/widget/inwin/preview-00.eps
4763     * @image html img/widget/inwin/preview-01.png
4764     * @image latex img/widget/inwin/preview-01.eps
4765     * @image html img/widget/inwin/preview-02.png
4766     * @image latex img/widget/inwin/preview-02.eps
4767     *
4768     * An inwin is a window inside a window that is useful for a quick popup.
4769     * It does not hover.
4770     *
4771     * It works by creating an object that will occupy the entire window, so it
4772     * must be created using an @ref Win "elm_win" as parent only. The inwin
4773     * object can be hidden or restacked below every other object if it's
4774     * needed to show what's behind it without destroying it. If this is done,
4775     * the elm_win_inwin_activate() function can be used to bring it back to
4776     * full visibility again.
4777     *
4778     * There are three styles available in the default theme. These are:
4779     * @li default: The inwin is sized to take over most of the window it's
4780     * placed in.
4781     * @li minimal: The size of the inwin will be the minimum necessary to show
4782     * its contents.
4783     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4784     * possible, but it's sized vertically the most it needs to fit its\
4785     * contents.
4786     *
4787     * Some examples of Inwin can be found in the following:
4788     * @li @ref inwin_example_01
4789     *
4790     * @{
4791     */
4792
4793    /**
4794     * Adds an inwin to the current window
4795     *
4796     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4797     * Never call this function with anything other than the top-most window
4798     * as its parameter, unless you are fond of undefined behavior.
4799     *
4800     * After creating the object, the widget will set itself as resize object
4801     * for the window with elm_win_resize_object_add(), so when shown it will
4802     * appear to cover almost the entire window (how much of it depends on its
4803     * content and the style used). It must not be added into other container
4804     * objects and it needs not be moved or resized manually.
4805     *
4806     * @param parent The parent object
4807     * @return The new object or NULL if it cannot be created
4808     */
4809    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4810
4811    /**
4812     * Activates an inwin object, ensuring its visibility
4813     *
4814     * This function will make sure that the inwin @p obj is completely visible
4815     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4816     * to the front. It also sets the keyboard focus to it, which will be passed
4817     * onto its content.
4818     *
4819     * The object's theme will also receive the signal "elm,action,show" with
4820     * source "elm".
4821     *
4822     * @param obj The inwin to activate
4823     */
4824    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4825
4826    /**
4827     * Set the content of an inwin object.
4828     *
4829     * Once the content object is set, a previously set one will be deleted.
4830     * If you want to keep that old content object, use the
4831     * elm_win_inwin_content_unset() function.
4832     *
4833     * @param obj The inwin object
4834     * @param content The object to set as content
4835     */
4836    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4837
4838    /**
4839     * Get the content of an inwin object.
4840     *
4841     * Return the content object which is set for this widget.
4842     *
4843     * The returned object is valid as long as the inwin is still alive and no
4844     * other content is set on it. Deleting the object will notify the inwin
4845     * about it and this one will be left empty.
4846     *
4847     * If you need to remove an inwin's content to be reused somewhere else,
4848     * see elm_win_inwin_content_unset().
4849     *
4850     * @param obj The inwin object
4851     * @return The content that is being used
4852     */
4853    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4854
4855    /**
4856     * Unset the content of an inwin object.
4857     *
4858     * Unparent and return the content object which was set for this widget.
4859     *
4860     * @param obj The inwin object
4861     * @return The content that was being used
4862     */
4863    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4864
4865    /**
4866     * @}
4867     */
4868    /* X specific calls - won't work on non-x engines (return 0) */
4869
4870    /**
4871     * Get the Ecore_X_Window of an Evas_Object
4872     *
4873     * @param obj The object
4874     *
4875     * @return The Ecore_X_Window of @p obj
4876     *
4877     * @ingroup Win
4878     */
4879    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4880
4881    /* smart callbacks called:
4882     * "delete,request" - the user requested to delete the window
4883     * "focus,in" - window got focus
4884     * "focus,out" - window lost focus
4885     * "moved" - window that holds the canvas was moved
4886     */
4887
4888    /**
4889     * @defgroup Bg Bg
4890     *
4891     * @image html img/widget/bg/preview-00.png
4892     * @image latex img/widget/bg/preview-00.eps
4893     *
4894     * @brief Background object, used for setting a solid color, image or Edje
4895     * group as background to a window or any container object.
4896     *
4897     * The bg object is used for setting a solid background to a window or
4898     * packing into any container object. It works just like an image, but has
4899     * some properties useful to a background, like setting it to tiled,
4900     * centered, scaled or stretched.
4901     *
4902     * Default contents parts of the bg widget that you can use for are:
4903     * @li "overlay" - overlay of the bg
4904     *
4905     * Here is some sample code using it:
4906     * @li @ref bg_01_example_page
4907     * @li @ref bg_02_example_page
4908     * @li @ref bg_03_example_page
4909     */
4910
4911    /* bg */
4912    typedef enum _Elm_Bg_Option
4913      {
4914         ELM_BG_OPTION_CENTER,  /**< center the background */
4915         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4916         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4917         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4918      } Elm_Bg_Option;
4919
4920    /**
4921     * Add a new background to the parent
4922     *
4923     * @param parent The parent object
4924     * @return The new object or NULL if it cannot be created
4925     *
4926     * @ingroup Bg
4927     */
4928    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4929
4930    /**
4931     * Set the file (image or edje) used for the background
4932     *
4933     * @param obj The bg object
4934     * @param file The file path
4935     * @param group Optional key (group in Edje) within the file
4936     *
4937     * This sets the image file used in the background object. The image (or edje)
4938     * will be stretched (retaining aspect if its an image file) to completely fill
4939     * the bg object. This may mean some parts are not visible.
4940     *
4941     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4942     * even if @p file is NULL.
4943     *
4944     * @ingroup Bg
4945     */
4946    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4947
4948    /**
4949     * Get the file (image or edje) used for the background
4950     *
4951     * @param obj The bg object
4952     * @param file The file path
4953     * @param group Optional key (group in Edje) within the file
4954     *
4955     * @ingroup Bg
4956     */
4957    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4958
4959    /**
4960     * Set the option used for the background image
4961     *
4962     * @param obj The bg object
4963     * @param option The desired background option (TILE, SCALE)
4964     *
4965     * This sets the option used for manipulating the display of the background
4966     * image. The image can be tiled or scaled.
4967     *
4968     * @ingroup Bg
4969     */
4970    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4971
4972    /**
4973     * Get the option used for the background image
4974     *
4975     * @param obj The bg object
4976     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4977     *
4978     * @ingroup Bg
4979     */
4980    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4981    /**
4982     * Set the option used for the background color
4983     *
4984     * @param obj The bg object
4985     * @param r
4986     * @param g
4987     * @param b
4988     *
4989     * This sets the color used for the background rectangle. Its range goes
4990     * from 0 to 255.
4991     *
4992     * @ingroup Bg
4993     */
4994    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4995    /**
4996     * Get the option used for the background color
4997     *
4998     * @param obj The bg object
4999     * @param r
5000     * @param g
5001     * @param b
5002     *
5003     * @ingroup Bg
5004     */
5005    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
5006
5007    /**
5008     * Set the overlay object used for the background object.
5009     *
5010     * @param obj The bg object
5011     * @param overlay The overlay object
5012     *
5013     * This provides a way for elm_bg to have an 'overlay' that will be on top
5014     * of the bg. Once the over object is set, a previously set one will be
5015     * deleted, even if you set the new one to NULL. If you want to keep that
5016     * old content object, use the elm_bg_overlay_unset() function.
5017     *
5018     * @deprecated use elm_object_part_content_set() instead
5019     *
5020     * @ingroup Bg
5021     */
5022
5023    EINA_DEPRECATED EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
5024
5025    /**
5026     * Get the overlay object used for the background object.
5027     *
5028     * @param obj The bg object
5029     * @return The content that is being used
5030     *
5031     * Return the content object which is set for this widget
5032     *
5033     * @deprecated use elm_object_part_content_get() instead
5034     *
5035     * @ingroup Bg
5036     */
5037    EINA_DEPRECATED EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5038
5039    /**
5040     * Get the overlay object used for the background object.
5041     *
5042     * @param obj The bg object
5043     * @return The content that was being used
5044     *
5045     * Unparent and return the overlay object which was set for this widget
5046     *
5047     * @deprecated use elm_object_part_content_unset() instead
5048     *
5049     * @ingroup Bg
5050     */
5051    EINA_DEPRECATED EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5052
5053    /**
5054     * Set the size of the pixmap representation of the image.
5055     *
5056     * This option just makes sense if an image is going to be set in the bg.
5057     *
5058     * @param obj The bg object
5059     * @param w The new width of the image pixmap representation.
5060     * @param h The new height of the image pixmap representation.
5061     *
5062     * This function sets a new size for pixmap representation of the given bg
5063     * image. It allows the image to be loaded already in the specified size,
5064     * reducing the memory usage and load time when loading a big image with load
5065     * size set to a smaller size.
5066     *
5067     * NOTE: this is just a hint, the real size of the pixmap may differ
5068     * depending on the type of image being loaded, being bigger than requested.
5069     *
5070     * @ingroup Bg
5071     */
5072    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
5073
5074    /**
5075     * @}
5076     */
5077
5078    /**
5079     * @defgroup Icon Icon
5080     *
5081     * @image html img/widget/icon/preview-00.png
5082     * @image latex img/widget/icon/preview-00.eps
5083     *
5084     * An object that provides standard icon images (delete, edit, arrows, etc.)
5085     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
5086     *
5087     * The icon image requested can be in the elementary theme, or in the
5088     * freedesktop.org paths. It's possible to set the order of preference from
5089     * where the image will be used.
5090     *
5091     * This API is very similar to @ref Image, but with ready to use images.
5092     *
5093     * Default images provided by the theme are described below.
5094     *
5095     * The first list contains icons that were first intended to be used in
5096     * toolbars, but can be used in many other places too:
5097     * @li home
5098     * @li close
5099     * @li apps
5100     * @li arrow_up
5101     * @li arrow_down
5102     * @li arrow_left
5103     * @li arrow_right
5104     * @li chat
5105     * @li clock
5106     * @li delete
5107     * @li edit
5108     * @li refresh
5109     * @li folder
5110     * @li file
5111     *
5112     * Now some icons that were designed to be used in menus (but again, you can
5113     * use them anywhere else):
5114     * @li menu/home
5115     * @li menu/close
5116     * @li menu/apps
5117     * @li menu/arrow_up
5118     * @li menu/arrow_down
5119     * @li menu/arrow_left
5120     * @li menu/arrow_right
5121     * @li menu/chat
5122     * @li menu/clock
5123     * @li menu/delete
5124     * @li menu/edit
5125     * @li menu/refresh
5126     * @li menu/folder
5127     * @li menu/file
5128     *
5129     * And here we have some media player specific icons:
5130     * @li media_player/forward
5131     * @li media_player/info
5132     * @li media_player/next
5133     * @li media_player/pause
5134     * @li media_player/play
5135     * @li media_player/prev
5136     * @li media_player/rewind
5137     * @li media_player/stop
5138     *
5139     * Signals that you can add callbacks for are:
5140     *
5141     * "clicked" - This is called when a user has clicked the icon
5142     *
5143     * An example of usage for this API follows:
5144     * @li @ref tutorial_icon
5145     */
5146
5147    /**
5148     * @addtogroup Icon
5149     * @{
5150     */
5151
5152    typedef enum _Elm_Icon_Type
5153      {
5154         ELM_ICON_NONE,
5155         ELM_ICON_FILE,
5156         ELM_ICON_STANDARD
5157      } Elm_Icon_Type;
5158
5159    /**
5160     * @enum _Elm_Icon_Lookup_Order
5161     * @typedef Elm_Icon_Lookup_Order
5162     *
5163     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
5164     * theme, FDO paths, or both?
5165     *
5166     * @ingroup Icon
5167     */
5168    typedef enum _Elm_Icon_Lookup_Order
5169      {
5170         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
5171         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
5172         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
5173         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
5174      } Elm_Icon_Lookup_Order;
5175
5176    /**
5177     * Add a new icon object to the parent.
5178     *
5179     * @param parent The parent object
5180     * @return The new object or NULL if it cannot be created
5181     *
5182     * @see elm_icon_file_set()
5183     *
5184     * @ingroup Icon
5185     */
5186    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5187
5188    /**
5189     * Set the file that will be used as icon.
5190     *
5191     * @param obj The icon object
5192     * @param file The path to file that will be used as icon image
5193     * @param group The group that the icon belongs to an edje file
5194     *
5195     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5196     *
5197     * @note The icon image set by this function can be changed by
5198     * elm_icon_standard_set().
5199     *
5200     * @see elm_icon_file_get()
5201     *
5202     * @ingroup Icon
5203     */
5204    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5205
5206    /**
5207     * Set a location in memory to be used as an icon
5208     *
5209     * @param obj The icon object
5210     * @param img The binary data that will be used as an image
5211     * @param size The size of binary data @p img
5212     * @param format Optional format of @p img to pass to the image loader
5213     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
5214     *
5215     * The @p format string should be something like "png", "jpg", "tga",
5216     * "tiff", "bmp" etc. if it is provided (NULL if not). This improves
5217     * the loader performance as it tries the "correct" loader first before
5218     * trying a range of other possible loaders until one succeeds.
5219     * 
5220     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5221     *
5222     * @note The icon image set by this function can be changed by
5223     * elm_icon_standard_set().
5224     *
5225     * @ingroup Icon
5226     */
5227    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);
5228
5229    /**
5230     * Get the file that will be used as icon.
5231     *
5232     * @param obj The icon object
5233     * @param file The path to file that will be used as the icon image
5234     * @param group The group that the icon belongs to, in edje file
5235     *
5236     * @see elm_icon_file_set()
5237     *
5238     * @ingroup Icon
5239     */
5240    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5241
5242    /**
5243     * Set the file that will be used, but use a generated thumbnail.
5244     *
5245     * @param obj The icon object
5246     * @param file The path to file that will be used as icon image
5247     * @param group The group that the icon belongs to an edje file
5248     *
5249     * This functions like elm_icon_file_set() but requires the Ethumb library
5250     * support to be enabled successfully with elm_need_ethumb(). When set
5251     * the file indicated has a thumbnail generated and cached on disk for
5252     * future use or will directly use an existing cached thumbnail if it
5253     * is valid.
5254     * 
5255     * @see elm_icon_file_set()
5256     *
5257     * @ingroup Icon
5258     */
5259    EAPI void                  elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5260
5261    /**
5262     * Set the icon by icon standards names.
5263     *
5264     * @param obj The icon object
5265     * @param name The icon name
5266     *
5267     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5268     *
5269     * For example, freedesktop.org defines standard icon names such as "home",
5270     * "network", etc. There can be different icon sets to match those icon
5271     * keys. The @p name given as parameter is one of these "keys", and will be
5272     * used to look in the freedesktop.org paths and elementary theme. One can
5273     * change the lookup order with elm_icon_order_lookup_set().
5274     *
5275     * If name is not found in any of the expected locations and it is the
5276     * absolute path of an image file, this image will be used.
5277     *
5278     * @note The icon image set by this function can be changed by
5279     * elm_icon_file_set().
5280     *
5281     * @see elm_icon_standard_get()
5282     * @see elm_icon_file_set()
5283     *
5284     * @ingroup Icon
5285     */
5286    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
5287
5288    /**
5289     * Get the icon name set by icon standard names.
5290     *
5291     * @param obj The icon object
5292     * @return The icon name
5293     *
5294     * If the icon image was set using elm_icon_file_set() instead of
5295     * elm_icon_standard_set(), then this function will return @c NULL.
5296     *
5297     * @see elm_icon_standard_set()
5298     *
5299     * @ingroup Icon
5300     */
5301    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5302
5303    /**
5304     * Set the smooth scaling for an icon object.
5305     *
5306     * @param obj The icon object
5307     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5308     * otherwise. Default is @c EINA_TRUE.
5309     *
5310     * Set the scaling algorithm to be used when scaling the icon image. Smooth
5311     * scaling provides a better resulting image, but is slower.
5312     *
5313     * The smooth scaling should be disabled when making animations that change
5314     * the icon size, since they will be faster. Animations that don't require
5315     * resizing of the icon can keep the smooth scaling enabled (even if the icon
5316     * is already scaled, since the scaled icon image will be cached).
5317     *
5318     * @see elm_icon_smooth_get()
5319     *
5320     * @ingroup Icon
5321     */
5322    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5323
5324    /**
5325     * Get whether smooth scaling is enabled for an icon object.
5326     *
5327     * @param obj The icon object
5328     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5329     *
5330     * @see elm_icon_smooth_set()
5331     *
5332     * @ingroup Icon
5333     */
5334    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5335
5336    /**
5337     * Disable scaling of this object.
5338     *
5339     * @param obj The icon object.
5340     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5341     * otherwise. Default is @c EINA_FALSE.
5342     *
5343     * This function disables scaling of the icon object through the function
5344     * elm_object_scale_set(). However, this does not affect the object
5345     * size/resize in any way. For that effect, take a look at
5346     * elm_icon_scale_set().
5347     *
5348     * @see elm_icon_no_scale_get()
5349     * @see elm_icon_scale_set()
5350     * @see elm_object_scale_set()
5351     *
5352     * @ingroup Icon
5353     */
5354    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5355
5356    /**
5357     * Get whether scaling is disabled on the object.
5358     *
5359     * @param obj The icon object
5360     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5361     *
5362     * @see elm_icon_no_scale_set()
5363     *
5364     * @ingroup Icon
5365     */
5366    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5367
5368    /**
5369     * Set if the object is (up/down) resizable.
5370     *
5371     * @param obj The icon object
5372     * @param scale_up A bool to set if the object is resizable up. Default is
5373     * @c EINA_TRUE.
5374     * @param scale_down A bool to set if the object is resizable down. Default
5375     * is @c EINA_TRUE.
5376     *
5377     * This function limits the icon object resize ability. If @p scale_up is set to
5378     * @c EINA_FALSE, the object can't have its height or width resized to a value
5379     * higher than the original icon size. Same is valid for @p scale_down.
5380     *
5381     * @see elm_icon_scale_get()
5382     *
5383     * @ingroup Icon
5384     */
5385    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5386
5387    /**
5388     * Get if the object is (up/down) resizable.
5389     *
5390     * @param obj The icon object
5391     * @param scale_up A bool to set if the object is resizable up
5392     * @param scale_down A bool to set if the object is resizable down
5393     *
5394     * @see elm_icon_scale_set()
5395     *
5396     * @ingroup Icon
5397     */
5398    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5399
5400    /**
5401     * Get the object's image size
5402     *
5403     * @param obj The icon object
5404     * @param w A pointer to store the width in
5405     * @param h A pointer to store the height in
5406     *
5407     * @ingroup Icon
5408     */
5409    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5410
5411    /**
5412     * Set if the icon fill the entire object area.
5413     *
5414     * @param obj The icon object
5415     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5416     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5417     *
5418     * When the icon object is resized to a different aspect ratio from the
5419     * original icon image, the icon image will still keep its aspect. This flag
5420     * tells how the image should fill the object's area. They are: keep the
5421     * entire icon inside the limits of height and width of the object (@p
5422     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
5423     * of the object, and the icon will fill the entire object (@p fill_outside
5424     * is @c EINA_TRUE).
5425     *
5426     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
5427     * retain property to false. Thus, the icon image will always keep its
5428     * original aspect ratio.
5429     *
5430     * @see elm_icon_fill_outside_get()
5431     * @see elm_image_fill_outside_set()
5432     *
5433     * @ingroup Icon
5434     */
5435    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5436
5437    /**
5438     * Get if the object is filled outside.
5439     *
5440     * @param obj The icon object
5441     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5442     *
5443     * @see elm_icon_fill_outside_set()
5444     *
5445     * @ingroup Icon
5446     */
5447    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5448
5449    /**
5450     * Set the prescale size for the icon.
5451     *
5452     * @param obj The icon object
5453     * @param size The prescale size. This value is used for both width and
5454     * height.
5455     *
5456     * This function sets a new size for pixmap representation of the given
5457     * icon. It allows the icon to be loaded already in the specified size,
5458     * reducing the memory usage and load time when loading a big icon with load
5459     * size set to a smaller size.
5460     *
5461     * It's equivalent to the elm_bg_load_size_set() function for bg.
5462     *
5463     * @note this is just a hint, the real size of the pixmap may differ
5464     * depending on the type of icon being loaded, being bigger than requested.
5465     *
5466     * @see elm_icon_prescale_get()
5467     * @see elm_bg_load_size_set()
5468     *
5469     * @ingroup Icon
5470     */
5471    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5472
5473    /**
5474     * Get the prescale size for the icon.
5475     *
5476     * @param obj The icon object
5477     * @return The prescale size
5478     *
5479     * @see elm_icon_prescale_set()
5480     *
5481     * @ingroup Icon
5482     */
5483    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5484
5485    /**
5486     * Gets the image object of the icon. DO NOT MODIFY THIS.
5487     *
5488     * @param obj The icon object
5489     * @return The internal icon object
5490     *
5491     * @ingroup Icon
5492     */
5493    EAPI Evas_Object          *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5494
5495    /**
5496     * Sets the icon lookup order used by elm_icon_standard_set().
5497     *
5498     * @param obj The icon object
5499     * @param order The icon lookup order (can be one of
5500     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
5501     * or ELM_ICON_LOOKUP_THEME)
5502     *
5503     * @see elm_icon_order_lookup_get()
5504     * @see Elm_Icon_Lookup_Order
5505     *
5506     * @ingroup Icon
5507     */
5508    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5509
5510    /**
5511     * Gets the icon lookup order.
5512     *
5513     * @param obj The icon object
5514     * @return The icon lookup order
5515     *
5516     * @see elm_icon_order_lookup_set()
5517     * @see Elm_Icon_Lookup_Order
5518     *
5519     * @ingroup Icon
5520     */
5521    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5522
5523    /**
5524     * Enable or disable preloading of the icon
5525     *
5526     * @param obj The icon object
5527     * @param disable If EINA_TRUE, preloading will be disabled
5528     * @ingroup Icon
5529     */
5530    EAPI void                  elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
5531
5532    /**
5533     * Get if the icon supports animation or not.
5534     *
5535     * @param obj The icon object
5536     * @return @c EINA_TRUE if the icon supports animation,
5537     *         @c EINA_FALSE otherwise.
5538     *
5539     * Return if this elm icon's image can be animated. Currently Evas only
5540     * supports gif animation. If the return value is EINA_FALSE, other
5541     * elm_icon_animated_XXX APIs won't work.
5542     * @ingroup Icon
5543     */
5544    EAPI Eina_Bool           elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5545
5546    /**
5547     * Set animation mode of the icon.
5548     *
5549     * @param obj The icon object
5550     * @param anim @c EINA_TRUE if the object do animation job,
5551     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5552     *
5553     * Since the default animation mode is set to EINA_FALSE,
5554     * the icon is shown without animation. Files like animated GIF files
5555     * can animate, and this is supported if you enable animated support
5556     * on the icon.
5557     * Set it to EINA_TRUE when the icon needs to be animated.
5558     * @ingroup Icon
5559     */
5560    EAPI void                elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
5561
5562    /**
5563     * Get animation mode of the icon.
5564     *
5565     * @param obj The icon object
5566     * @return The animation mode of the icon object
5567     * @see elm_icon_animated_set
5568     * @ingroup Icon
5569     */
5570    EAPI Eina_Bool           elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5571
5572    /**
5573     * Set animation play mode of the icon.
5574     *
5575     * @param obj The icon object
5576     * @param play @c EINA_TRUE the object play animation images,
5577     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5578     *
5579     * To play elm icon's animation, set play to EINA_TURE.
5580     * For example, you make gif player using this set/get API and click event.
5581     * This literally lets you control current play or paused state. To have
5582     * this work with animated GIF files for example, you first, before
5583     * setting the file have to use elm_icon_animated_set() to enable animation
5584     * at all on the icon.
5585     *
5586     * 1. Click event occurs
5587     * 2. Check play flag using elm_icon_animaged_play_get
5588     * 3. If elm icon was playing, set play to EINA_FALSE.
5589     *    Then animation will be stopped and vice versa
5590     * @ingroup Icon
5591     */
5592    EAPI void                elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
5593
5594    /**
5595     * Get animation play mode of the icon.
5596     *
5597     * @param obj The icon object
5598     * @return The play mode of the icon object
5599     *
5600     * @see elm_icon_animated_play_get
5601     * @ingroup Icon
5602     */
5603    EAPI Eina_Bool           elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5604
5605    /**
5606     * @}
5607     */
5608
5609    /**
5610     * @defgroup Image Image
5611     *
5612     * @image html img/widget/image/preview-00.png
5613     * @image latex img/widget/image/preview-00.eps
5614
5615     *
5616     * An object that allows one to load an image file to it. It can be used
5617     * anywhere like any other elementary widget.
5618     *
5619     * This widget provides most of the functionality provided from @ref Bg or @ref
5620     * Icon, but with a slightly different API (use the one that fits better your
5621     * needs).
5622     *
5623     * The features not provided by those two other image widgets are:
5624     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5625     * @li change the object orientation with elm_image_orient_set();
5626     * @li and turning the image editable with elm_image_editable_set().
5627     *
5628     * Signals that you can add callbacks for are:
5629     *
5630     * @li @c "clicked" - This is called when a user has clicked the image
5631     *
5632     * An example of usage for this API follows:
5633     * @li @ref tutorial_image
5634     */
5635
5636    /**
5637     * @addtogroup Image
5638     * @{
5639     */
5640
5641    /**
5642     * @enum _Elm_Image_Orient
5643     * @typedef Elm_Image_Orient
5644     *
5645     * Possible orientation options for elm_image_orient_set().
5646     *
5647     * @image html elm_image_orient_set.png
5648     * @image latex elm_image_orient_set.eps width=\textwidth
5649     *
5650     * @ingroup Image
5651     */
5652    typedef enum _Elm_Image_Orient
5653      {
5654         ELM_IMAGE_ORIENT_NONE = 0, /**< no orientation change */
5655         ELM_IMAGE_ORIENT_0 = 0, /**< no orientation change */
5656         ELM_IMAGE_ROTATE_90 = 1, /**< rotate 90 degrees clockwise */
5657         ELM_IMAGE_ROTATE_180 = 2, /**< rotate 180 degrees clockwise */
5658         ELM_IMAGE_ROTATE_270 = 3, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5659         /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_90_CW = 1, /**< rotate 90 degrees clockwise */
5660         /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_180_CW = 2, /**< rotate 180 degrees clockwise */
5661         /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_90_CCW = 3, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5662         ELM_IMAGE_FLIP_HORIZONTAL = 4, /**< flip image horizontally */
5663         ELM_IMAGE_FLIP_VERTICAL = 5, /**< flip image vertically */
5664         ELM_IMAGE_FLIP_TRANSPOSE = 6, /**< flip the image along the y = (width - x) line (bottom-left to top-right) */
5665         ELM_IMAGE_FLIP_TRANSVERSE = 7 /**< flip the image along the y = x line (top-left to bottom-right) */
5666      } Elm_Image_Orient;
5667
5668    /**
5669     * Add a new image to the parent.
5670     *
5671     * @param parent The parent object
5672     * @return The new object or NULL if it cannot be created
5673     *
5674     * @see elm_image_file_set()
5675     *
5676     * @ingroup Image
5677     */
5678    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5679
5680    /**
5681     * Set the file that will be used as image.
5682     *
5683     * @param obj The image object
5684     * @param file The path to file that will be used as image
5685     * @param group The group that the image belongs in edje file (if it's an
5686     * edje image)
5687     *
5688     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5689     *
5690     * @see elm_image_file_get()
5691     *
5692     * @ingroup Image
5693     */
5694    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5695
5696    /**
5697     * Get the file that will be used as image.
5698     *
5699     * @param obj The image object
5700     * @param file The path to file
5701     * @param group The group that the image belongs in edje file
5702     *
5703     * @see elm_image_file_set()
5704     *
5705     * @ingroup Image
5706     */
5707    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5708
5709    /**
5710     * Set the smooth effect for an image.
5711     *
5712     * @param obj The image object
5713     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5714     * otherwise. Default is @c EINA_TRUE.
5715     *
5716     * Set the scaling algorithm to be used when scaling the image. Smooth
5717     * scaling provides a better resulting image, but is slower.
5718     *
5719     * The smooth scaling should be disabled when making animations that change
5720     * the image size, since it will be faster. Animations that don't require
5721     * resizing of the image can keep the smooth scaling enabled (even if the
5722     * image is already scaled, since the scaled image will be cached).
5723     *
5724     * @see elm_image_smooth_get()
5725     *
5726     * @ingroup Image
5727     */
5728    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5729
5730    /**
5731     * Get the smooth effect for an image.
5732     *
5733     * @param obj The image object
5734     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5735     *
5736     * @see elm_image_smooth_get()
5737     *
5738     * @ingroup Image
5739     */
5740    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5741
5742    /**
5743     * Gets the current size of the image.
5744     *
5745     * @param obj The image object.
5746     * @param w Pointer to store width, or NULL.
5747     * @param h Pointer to store height, or NULL.
5748     *
5749     * This is the real size of the image, not the size of the object.
5750     *
5751     * On error, neither w and h will be fileld with 0.
5752     *
5753     * @ingroup Image
5754     */
5755    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5756
5757    /**
5758     * Disable scaling of this object.
5759     *
5760     * @param obj The image object.
5761     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5762     * otherwise. Default is @c EINA_FALSE.
5763     *
5764     * This function disables scaling of the elm_image widget through the
5765     * function elm_object_scale_set(). However, this does not affect the widget
5766     * size/resize in any way. For that effect, take a look at
5767     * elm_image_scale_set().
5768     *
5769     * @see elm_image_no_scale_get()
5770     * @see elm_image_scale_set()
5771     * @see elm_object_scale_set()
5772     *
5773     * @ingroup Image
5774     */
5775    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5776
5777    /**
5778     * Get whether scaling is disabled on the object.
5779     *
5780     * @param obj The image object
5781     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5782     *
5783     * @see elm_image_no_scale_set()
5784     *
5785     * @ingroup Image
5786     */
5787    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5788
5789    /**
5790     * Set if the object is (up/down) resizable.
5791     *
5792     * @param obj The image object
5793     * @param scale_up A bool to set if the object is resizable up. Default is
5794     * @c EINA_TRUE.
5795     * @param scale_down A bool to set if the object is resizable down. Default
5796     * is @c EINA_TRUE.
5797     *
5798     * This function limits the image resize ability. If @p scale_up is set to
5799     * @c EINA_FALSE, the object can't have its height or width resized to a value
5800     * higher than the original image size. Same is valid for @p scale_down.
5801     *
5802     * @see elm_image_scale_get()
5803     *
5804     * @ingroup Image
5805     */
5806    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5807
5808    /**
5809     * Get if the object is (up/down) resizable.
5810     *
5811     * @param obj The image object
5812     * @param scale_up A bool to set if the object is resizable up
5813     * @param scale_down A bool to set if the object is resizable down
5814     *
5815     * @see elm_image_scale_set()
5816     *
5817     * @ingroup Image
5818     */
5819    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5820
5821    /**
5822     * Set if the image fills the entire object area, when keeping the aspect ratio.
5823     *
5824     * @param obj The image object
5825     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5826     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5827     *
5828     * When the image should keep its aspect ratio even if resized to another
5829     * aspect ratio, there are two possibilities to resize it: keep the entire
5830     * image inside the limits of height and width of the object (@p fill_outside
5831     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5832     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5833     *
5834     * @note This option will have no effect if
5835     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5836     *
5837     * @see elm_image_fill_outside_get()
5838     * @see elm_image_aspect_ratio_retained_set()
5839     *
5840     * @ingroup Image
5841     */
5842    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5843
5844    /**
5845     * Get if the object is filled outside
5846     *
5847     * @param obj The image object
5848     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5849     *
5850     * @see elm_image_fill_outside_set()
5851     *
5852     * @ingroup Image
5853     */
5854    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5855
5856    /**
5857     * Set the prescale size for the image
5858     *
5859     * @param obj The image object
5860     * @param size The prescale size. This value is used for both width and
5861     * height.
5862     *
5863     * This function sets a new size for pixmap representation of the given
5864     * image. It allows the image to be loaded already in the specified size,
5865     * reducing the memory usage and load time when loading a big image with load
5866     * size set to a smaller size.
5867     *
5868     * It's equivalent to the elm_bg_load_size_set() function for bg.
5869     *
5870     * @note this is just a hint, the real size of the pixmap may differ
5871     * depending on the type of image being loaded, being bigger than requested.
5872     *
5873     * @see elm_image_prescale_get()
5874     * @see elm_bg_load_size_set()
5875     *
5876     * @ingroup Image
5877     */
5878    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5879
5880    /**
5881     * Get the prescale size for the image
5882     *
5883     * @param obj The image object
5884     * @return The prescale size
5885     *
5886     * @see elm_image_prescale_set()
5887     *
5888     * @ingroup Image
5889     */
5890    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5891
5892    /**
5893     * Set the image orientation.
5894     *
5895     * @param obj The image object
5896     * @param orient The image orientation @ref Elm_Image_Orient
5897     *  Default is #ELM_IMAGE_ORIENT_NONE.
5898     *
5899     * This function allows to rotate or flip the given image.
5900     *
5901     * @see elm_image_orient_get()
5902     * @see @ref Elm_Image_Orient
5903     *
5904     * @ingroup Image
5905     */
5906    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5907
5908    /**
5909     * Get the image orientation.
5910     *
5911     * @param obj The image object
5912     * @return The image orientation @ref Elm_Image_Orient
5913     *
5914     * @see elm_image_orient_set()
5915     * @see @ref Elm_Image_Orient
5916     *
5917     * @ingroup Image
5918     */
5919    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5920
5921    /**
5922     * Make the image 'editable'.
5923     *
5924     * @param obj Image object.
5925     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5926     *
5927     * This means the image is a valid drag target for drag and drop, and can be
5928     * cut or pasted too.
5929     *
5930     * @ingroup Image
5931     */
5932    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5933
5934    /**
5935     * Check if the image 'editable'.
5936     *
5937     * @param obj Image object.
5938     * @return Editability.
5939     *
5940     * A return value of EINA_TRUE means the image is a valid drag target
5941     * for drag and drop, and can be cut or pasted too.
5942     *
5943     * @ingroup Image
5944     */
5945    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5946
5947    /**
5948     * Get the basic Evas_Image object from this object (widget).
5949     *
5950     * @param obj The image object to get the inlined image from
5951     * @return The inlined image object, or NULL if none exists
5952     *
5953     * This function allows one to get the underlying @c Evas_Object of type
5954     * Image from this elementary widget. It can be useful to do things like get
5955     * the pixel data, save the image to a file, etc.
5956     *
5957     * @note Be careful to not manipulate it, as it is under control of
5958     * elementary.
5959     *
5960     * @ingroup Image
5961     */
5962    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5963
5964    /**
5965     * Set whether the original aspect ratio of the image should be kept on resize.
5966     *
5967     * @param obj The image object.
5968     * @param retained @c EINA_TRUE if the image should retain the aspect,
5969     * @c EINA_FALSE otherwise.
5970     *
5971     * The original aspect ratio (width / height) of the image is usually
5972     * distorted to match the object's size. Enabling this option will retain
5973     * this original aspect, and the way that the image is fit into the object's
5974     * area depends on the option set by elm_image_fill_outside_set().
5975     *
5976     * @see elm_image_aspect_ratio_retained_get()
5977     * @see elm_image_fill_outside_set()
5978     *
5979     * @ingroup Image
5980     */
5981    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5982
5983    /**
5984     * Get if the object retains the original aspect ratio.
5985     *
5986     * @param obj The image object.
5987     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5988     * otherwise.
5989     *
5990     * @ingroup Image
5991     */
5992    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5993
5994    /**
5995     * @}
5996     */
5997
5998    /* glview */
5999    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
6000
6001    typedef enum _Elm_GLView_Mode
6002      {
6003         ELM_GLVIEW_ALPHA   = 1,
6004         ELM_GLVIEW_DEPTH   = 2,
6005         ELM_GLVIEW_STENCIL = 4
6006      } Elm_GLView_Mode;
6007
6008    /**
6009     * Defines a policy for the glview resizing.
6010     *
6011     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
6012     */
6013    typedef enum _Elm_GLView_Resize_Policy
6014      {
6015         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
6016         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
6017      } Elm_GLView_Resize_Policy;
6018
6019    typedef enum _Elm_GLView_Render_Policy
6020      {
6021         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
6022         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
6023      } Elm_GLView_Render_Policy;
6024
6025    /**
6026     * @defgroup GLView
6027     *
6028     * A simple GLView widget that allows GL rendering.
6029     *
6030     * Signals that you can add callbacks for are:
6031     *
6032     * @{
6033     */
6034
6035    /**
6036     * Add a new glview to the parent
6037     *
6038     * @param parent The parent object
6039     * @return The new object or NULL if it cannot be created
6040     *
6041     * @ingroup GLView
6042     */
6043    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6044
6045    /**
6046     * Sets the size of the glview
6047     *
6048     * @param obj The glview object
6049     * @param width width of the glview object
6050     * @param height height of the glview object
6051     *
6052     * @ingroup GLView
6053     */
6054    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6055
6056    /**
6057     * Gets the size of the glview.
6058     *
6059     * @param obj The glview object
6060     * @param width width of the glview object
6061     * @param height height of the glview object
6062     *
6063     * Note that this function returns the actual image size of the
6064     * glview.  This means that when the scale policy is set to
6065     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
6066     * size.
6067     *
6068     * @ingroup GLView
6069     */
6070    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6071
6072    /**
6073     * Gets the gl api struct for gl rendering
6074     *
6075     * @param obj The glview object
6076     * @return The api object or NULL if it cannot be created
6077     *
6078     * @ingroup GLView
6079     */
6080    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6081
6082    /**
6083     * Set the mode of the GLView. Supports Three simple modes.
6084     *
6085     * @param obj The glview object
6086     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
6087     * @return True if set properly.
6088     *
6089     * @ingroup GLView
6090     */
6091    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
6092
6093    /**
6094     * Set the resize policy for the glview object.
6095     *
6096     * @param obj The glview object.
6097     * @param policy The scaling policy.
6098     *
6099     * By default, the resize policy is set to
6100     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
6101     * destroys the previous surface and recreates the newly specified
6102     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
6103     * however, glview only scales the image object and not the underlying
6104     * GL Surface.
6105     *
6106     * @ingroup GLView
6107     */
6108    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
6109
6110    /**
6111     * Set the render policy for the glview object.
6112     *
6113     * @param obj The glview object.
6114     * @param policy The render policy.
6115     *
6116     * By default, the render policy is set to
6117     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
6118     * that during the render loop, glview is only redrawn if it needs
6119     * to be redrawn. (i.e. When it is visible) If the policy is set to
6120     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
6121     * whether it is visible/need redrawing or not.
6122     *
6123     * @ingroup GLView
6124     */
6125    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
6126
6127    /**
6128     * Set the init function that runs once in the main loop.
6129     *
6130     * @param obj The glview object.
6131     * @param func The init function to be registered.
6132     *
6133     * The registered init function gets called once during the render loop.
6134     *
6135     * @ingroup GLView
6136     */
6137    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6138
6139    /**
6140     * Set the render function that runs in the main loop.
6141     *
6142     * @param obj The glview object.
6143     * @param func The delete function to be registered.
6144     *
6145     * The registered del function gets called when GLView object is deleted.
6146     *
6147     * @ingroup GLView
6148     */
6149    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6150
6151    /**
6152     * Set the resize function that gets called when resize happens.
6153     *
6154     * @param obj The glview object.
6155     * @param func The resize function to be registered.
6156     *
6157     * @ingroup GLView
6158     */
6159    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6160
6161    /**
6162     * Set the render function that runs in the main loop.
6163     *
6164     * @param obj The glview object.
6165     * @param func The render function to be registered.
6166     *
6167     * @ingroup GLView
6168     */
6169    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6170
6171    /**
6172     * Notifies that there has been changes in the GLView.
6173     *
6174     * @param obj The glview object.
6175     *
6176     * @ingroup GLView
6177     */
6178    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
6179
6180    /**
6181     * @}
6182     */
6183
6184    /* box */
6185    /**
6186     * @defgroup Box Box
6187     *
6188     * @image html img/widget/box/preview-00.png
6189     * @image latex img/widget/box/preview-00.eps width=\textwidth
6190     *
6191     * @image html img/box.png
6192     * @image latex img/box.eps width=\textwidth
6193     *
6194     * A box arranges objects in a linear fashion, governed by a layout function
6195     * that defines the details of this arrangement.
6196     *
6197     * By default, the box will use an internal function to set the layout to
6198     * a single row, either vertical or horizontal. This layout is affected
6199     * by a number of parameters, such as the homogeneous flag set by
6200     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
6201     * elm_box_align_set() and the hints set to each object in the box.
6202     *
6203     * For this default layout, it's possible to change the orientation with
6204     * elm_box_horizontal_set(). The box will start in the vertical orientation,
6205     * placing its elements ordered from top to bottom. When horizontal is set,
6206     * the order will go from left to right. If the box is set to be
6207     * homogeneous, every object in it will be assigned the same space, that
6208     * of the largest object. Padding can be used to set some spacing between
6209     * the cell given to each object. The alignment of the box, set with
6210     * elm_box_align_set(), determines how the bounding box of all the elements
6211     * will be placed within the space given to the box widget itself.
6212     *
6213     * The size hints of each object also affect how they are placed and sized
6214     * within the box. evas_object_size_hint_min_set() will give the minimum
6215     * size the object can have, and the box will use it as the basis for all
6216     * latter calculations. Elementary widgets set their own minimum size as
6217     * needed, so there's rarely any need to use it manually.
6218     *
6219     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
6220     * used to tell whether the object will be allocated the minimum size it
6221     * needs or if the space given to it should be expanded. It's important
6222     * to realize that expanding the size given to the object is not the same
6223     * thing as resizing the object. It could very well end being a small
6224     * widget floating in a much larger empty space. If not set, the weight
6225     * for objects will normally be 0.0 for both axis, meaning the widget will
6226     * not be expanded. To take as much space possible, set the weight to
6227     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
6228     *
6229     * Besides how much space each object is allocated, it's possible to control
6230     * how the widget will be placed within that space using
6231     * evas_object_size_hint_align_set(). By default, this value will be 0.5
6232     * for both axis, meaning the object will be centered, but any value from
6233     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
6234     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
6235     * is -1.0, means the object will be resized to fill the entire space it
6236     * was allocated.
6237     *
6238     * In addition, customized functions to define the layout can be set, which
6239     * allow the application developer to organize the objects within the box
6240     * in any number of ways.
6241     *
6242     * The special elm_box_layout_transition() function can be used
6243     * to switch from one layout to another, animating the motion of the
6244     * children of the box.
6245     *
6246     * @note Objects should not be added to box objects using _add() calls.
6247     *
6248     * Some examples on how to use boxes follow:
6249     * @li @ref box_example_01
6250     * @li @ref box_example_02
6251     *
6252     * @{
6253     */
6254    /**
6255     * @typedef Elm_Box_Transition
6256     *
6257     * Opaque handler containing the parameters to perform an animated
6258     * transition of the layout the box uses.
6259     *
6260     * @see elm_box_transition_new()
6261     * @see elm_box_layout_set()
6262     * @see elm_box_layout_transition()
6263     */
6264    typedef struct _Elm_Box_Transition Elm_Box_Transition;
6265
6266    /**
6267     * Add a new box to the parent
6268     *
6269     * By default, the box will be in vertical mode and non-homogeneous.
6270     *
6271     * @param parent The parent object
6272     * @return The new object or NULL if it cannot be created
6273     */
6274    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6275
6276    /**
6277     * Set the horizontal orientation
6278     *
6279     * By default, box object arranges their contents vertically from top to
6280     * bottom.
6281     * By calling this function with @p horizontal as EINA_TRUE, the box will
6282     * become horizontal, arranging contents from left to right.
6283     *
6284     * @note This flag is ignored if a custom layout function is set.
6285     *
6286     * @param obj The box object
6287     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
6288     * EINA_FALSE = vertical)
6289     */
6290    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
6291
6292    /**
6293     * Get the horizontal orientation
6294     *
6295     * @param obj The box object
6296     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
6297     */
6298    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6299
6300    /**
6301     * Set the box to arrange its children homogeneously
6302     *
6303     * If enabled, homogeneous layout makes all items the same size, according
6304     * to the size of the largest of its children.
6305     *
6306     * @note This flag is ignored if a custom layout function is set.
6307     *
6308     * @param obj The box object
6309     * @param homogeneous The homogeneous flag
6310     */
6311    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
6312
6313    /**
6314     * Get whether the box is using homogeneous mode or not
6315     *
6316     * @param obj The box object
6317     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
6318     */
6319    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6320
6321    /**
6322     * Add an object to the beginning of the pack list
6323     *
6324     * Pack @p subobj into the box @p obj, placing it first in the list of
6325     * children objects. The actual position the object will get on screen
6326     * depends on the layout used. If no custom layout is set, it will be at
6327     * the top or left, depending if the box is vertical or horizontal,
6328     * respectively.
6329     *
6330     * @param obj The box object
6331     * @param subobj The object to add to the box
6332     *
6333     * @see elm_box_pack_end()
6334     * @see elm_box_pack_before()
6335     * @see elm_box_pack_after()
6336     * @see elm_box_unpack()
6337     * @see elm_box_unpack_all()
6338     * @see elm_box_clear()
6339     */
6340    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6341
6342    /**
6343     * Add an object at the end of the pack list
6344     *
6345     * Pack @p subobj into the box @p obj, placing it last in the list of
6346     * children objects. The actual position the object will get on screen
6347     * depends on the layout used. If no custom layout is set, it will be at
6348     * the bottom or right, depending if the box is vertical or horizontal,
6349     * respectively.
6350     *
6351     * @param obj The box object
6352     * @param subobj The object to add to the box
6353     *
6354     * @see elm_box_pack_start()
6355     * @see elm_box_pack_before()
6356     * @see elm_box_pack_after()
6357     * @see elm_box_unpack()
6358     * @see elm_box_unpack_all()
6359     * @see elm_box_clear()
6360     */
6361    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6362
6363    /**
6364     * Adds an object to the box before the indicated object
6365     *
6366     * This will add the @p subobj to the box indicated before the object
6367     * indicated with @p before. If @p before is not already in the box, results
6368     * are undefined. Before means either to the left of the indicated object or
6369     * above it depending on orientation.
6370     *
6371     * @param obj The box object
6372     * @param subobj The object to add to the box
6373     * @param before The object before which to add it
6374     *
6375     * @see elm_box_pack_start()
6376     * @see elm_box_pack_end()
6377     * @see elm_box_pack_after()
6378     * @see elm_box_unpack()
6379     * @see elm_box_unpack_all()
6380     * @see elm_box_clear()
6381     */
6382    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
6383
6384    /**
6385     * Adds an object to the box after the indicated object
6386     *
6387     * This will add the @p subobj to the box indicated after the object
6388     * indicated with @p after. If @p after is not already in the box, results
6389     * are undefined. After means either to the right of the indicated object or
6390     * below it depending on orientation.
6391     *
6392     * @param obj The box object
6393     * @param subobj The object to add to the box
6394     * @param after The object after which to add it
6395     *
6396     * @see elm_box_pack_start()
6397     * @see elm_box_pack_end()
6398     * @see elm_box_pack_before()
6399     * @see elm_box_unpack()
6400     * @see elm_box_unpack_all()
6401     * @see elm_box_clear()
6402     */
6403    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
6404
6405    /**
6406     * Clear the box of all children
6407     *
6408     * Remove all the elements contained by the box, deleting the respective
6409     * objects.
6410     *
6411     * @param obj The box object
6412     *
6413     * @see elm_box_unpack()
6414     * @see elm_box_unpack_all()
6415     */
6416    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6417
6418    /**
6419     * Unpack a box item
6420     *
6421     * Remove the object given by @p subobj from the box @p obj without
6422     * deleting it.
6423     *
6424     * @param obj The box object
6425     *
6426     * @see elm_box_unpack_all()
6427     * @see elm_box_clear()
6428     */
6429    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6430
6431    /**
6432     * Remove all items from the box, without deleting them
6433     *
6434     * Clear the box from all children, but don't delete the respective objects.
6435     * If no other references of the box children exist, the objects will never
6436     * be deleted, and thus the application will leak the memory. Make sure
6437     * when using this function that you hold a reference to all the objects
6438     * in the box @p obj.
6439     *
6440     * @param obj The box object
6441     *
6442     * @see elm_box_clear()
6443     * @see elm_box_unpack()
6444     */
6445    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
6446
6447    /**
6448     * Retrieve a list of the objects packed into the box
6449     *
6450     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
6451     * The order of the list corresponds to the packing order the box uses.
6452     *
6453     * You must free this list with eina_list_free() once you are done with it.
6454     *
6455     * @param obj The box object
6456     */
6457    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6458
6459    /**
6460     * Set the space (padding) between the box's elements.
6461     *
6462     * Extra space in pixels that will be added between a box child and its
6463     * neighbors after its containing cell has been calculated. This padding
6464     * is set for all elements in the box, besides any possible padding that
6465     * individual elements may have through their size hints.
6466     *
6467     * @param obj The box object
6468     * @param horizontal The horizontal space between elements
6469     * @param vertical The vertical space between elements
6470     */
6471    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
6472
6473    /**
6474     * Get the space (padding) between the box's elements.
6475     *
6476     * @param obj The box object
6477     * @param horizontal The horizontal space between elements
6478     * @param vertical The vertical space between elements
6479     *
6480     * @see elm_box_padding_set()
6481     */
6482    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
6483
6484    /**
6485     * Set the alignment of the whole bouding box of contents.
6486     *
6487     * Sets how the bounding box containing all the elements of the box, after
6488     * their sizes and position has been calculated, will be aligned within
6489     * the space given for the whole box widget.
6490     *
6491     * @param obj The box object
6492     * @param horizontal The horizontal alignment of elements
6493     * @param vertical The vertical alignment of elements
6494     */
6495    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
6496
6497    /**
6498     * Get the alignment of the whole bouding box of contents.
6499     *
6500     * @param obj The box object
6501     * @param horizontal The horizontal alignment of elements
6502     * @param vertical The vertical alignment of elements
6503     *
6504     * @see elm_box_align_set()
6505     */
6506    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
6507
6508    /**
6509     * Force the box to recalculate its children packing.
6510     *
6511     * If any children was added or removed, box will not calculate the
6512     * values immediately rather leaving it to the next main loop
6513     * iteration. While this is great as it would save lots of
6514     * recalculation, whenever you need to get the position of a just
6515     * added item you must force recalculate before doing so.
6516     *
6517     * @param obj The box object.
6518     */
6519    EAPI void                 elm_box_recalculate(Evas_Object *obj);
6520
6521    /**
6522     * Set the layout defining function to be used by the box
6523     *
6524     * Whenever anything changes that requires the box in @p obj to recalculate
6525     * the size and position of its elements, the function @p cb will be called
6526     * to determine what the layout of the children will be.
6527     *
6528     * Once a custom function is set, everything about the children layout
6529     * is defined by it. The flags set by elm_box_horizontal_set() and
6530     * elm_box_homogeneous_set() no longer have any meaning, and the values
6531     * given by elm_box_padding_set() and elm_box_align_set() are up to this
6532     * layout function to decide if they are used and how. These last two
6533     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
6534     * passed to @p cb. The @c Evas_Object the function receives is not the
6535     * Elementary widget, but the internal Evas Box it uses, so none of the
6536     * functions described here can be used on it.
6537     *
6538     * Any of the layout functions in @c Evas can be used here, as well as the
6539     * special elm_box_layout_transition().
6540     *
6541     * The final @p data argument received by @p cb is the same @p data passed
6542     * here, and the @p free_data function will be called to free it
6543     * whenever the box is destroyed or another layout function is set.
6544     *
6545     * Setting @p cb to NULL will revert back to the default layout function.
6546     *
6547     * @param obj The box object
6548     * @param cb The callback function used for layout
6549     * @param data Data that will be passed to layout function
6550     * @param free_data Function called to free @p data
6551     *
6552     * @see elm_box_layout_transition()
6553     */
6554    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);
6555
6556    /**
6557     * Special layout function that animates the transition from one layout to another
6558     *
6559     * Normally, when switching the layout function for a box, this will be
6560     * reflected immediately on screen on the next render, but it's also
6561     * possible to do this through an animated transition.
6562     *
6563     * This is done by creating an ::Elm_Box_Transition and setting the box
6564     * layout to this function.
6565     *
6566     * For example:
6567     * @code
6568     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
6569     *                            evas_object_box_layout_vertical, // start
6570     *                            NULL, // data for initial layout
6571     *                            NULL, // free function for initial data
6572     *                            evas_object_box_layout_horizontal, // end
6573     *                            NULL, // data for final layout
6574     *                            NULL, // free function for final data
6575     *                            anim_end, // will be called when animation ends
6576     *                            NULL); // data for anim_end function\
6577     * elm_box_layout_set(box, elm_box_layout_transition, t,
6578     *                    elm_box_transition_free);
6579     * @endcode
6580     *
6581     * @note This function can only be used with elm_box_layout_set(). Calling
6582     * it directly will not have the expected results.
6583     *
6584     * @see elm_box_transition_new
6585     * @see elm_box_transition_free
6586     * @see elm_box_layout_set
6587     */
6588    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
6589
6590    /**
6591     * Create a new ::Elm_Box_Transition to animate the switch of layouts
6592     *
6593     * If you want to animate the change from one layout to another, you need
6594     * to set the layout function of the box to elm_box_layout_transition(),
6595     * passing as user data to it an instance of ::Elm_Box_Transition with the
6596     * necessary information to perform this animation. The free function to
6597     * set for the layout is elm_box_transition_free().
6598     *
6599     * The parameters to create an ::Elm_Box_Transition sum up to how long
6600     * will it be, in seconds, a layout function to describe the initial point,
6601     * another for the final position of the children and one function to be
6602     * called when the whole animation ends. This last function is useful to
6603     * set the definitive layout for the box, usually the same as the end
6604     * layout for the animation, but could be used to start another transition.
6605     *
6606     * @param start_layout The layout function that will be used to start the animation
6607     * @param start_layout_data The data to be passed the @p start_layout function
6608     * @param start_layout_free_data Function to free @p start_layout_data
6609     * @param end_layout The layout function that will be used to end the animation
6610     * @param end_layout_free_data The data to be passed the @p end_layout function
6611     * @param end_layout_free_data Function to free @p end_layout_data
6612     * @param transition_end_cb Callback function called when animation ends
6613     * @param transition_end_data Data to be passed to @p transition_end_cb
6614     * @return An instance of ::Elm_Box_Transition
6615     *
6616     * @see elm_box_transition_new
6617     * @see elm_box_layout_transition
6618     */
6619    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);
6620
6621    /**
6622     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
6623     *
6624     * This function is mostly useful as the @c free_data parameter in
6625     * elm_box_layout_set() when elm_box_layout_transition().
6626     *
6627     * @param data The Elm_Box_Transition instance to be freed.
6628     *
6629     * @see elm_box_transition_new
6630     * @see elm_box_layout_transition
6631     */
6632    EAPI void                elm_box_transition_free(void *data);
6633
6634    /**
6635     * @}
6636     */
6637
6638    /* button */
6639    /**
6640     * @defgroup Button Button
6641     *
6642     * @image html img/widget/button/preview-00.png
6643     * @image latex img/widget/button/preview-00.eps
6644     * @image html img/widget/button/preview-01.png
6645     * @image latex img/widget/button/preview-01.eps
6646     * @image html img/widget/button/preview-02.png
6647     * @image latex img/widget/button/preview-02.eps
6648     *
6649     * This is a push-button. Press it and run some function. It can contain
6650     * a simple label and icon object and it also has an autorepeat feature.
6651     *
6652     * This widgets emits the following signals:
6653     * @li "clicked": the user clicked the button (press/release).
6654     * @li "repeated": the user pressed the button without releasing it.
6655     * @li "pressed": button was pressed.
6656     * @li "unpressed": button was released after being pressed.
6657     * In all three cases, the @c event parameter of the callback will be
6658     * @c NULL.
6659     *
6660     * Also, defined in the default theme, the button has the following styles
6661     * available:
6662     * @li default: a normal button.
6663     * @li anchor: Like default, but the button fades away when the mouse is not
6664     * over it, leaving only the text or icon.
6665     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6666     * continuous look across its options.
6667     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6668     *
6669     * Default contents parts of the button widget that you can use for are:
6670     * @li "icon" - An icon of the button
6671     *
6672     * Default text parts of the button widget that you can use for are:
6673     * @li "default" - Label of the button
6674     *
6675     * Follow through a complete example @ref button_example_01 "here".
6676     * @{
6677     */
6678
6679    /**
6680     * Add a new button to the parent's canvas
6681     *
6682     * @param parent The parent object
6683     * @return The new object or NULL if it cannot be created
6684     */
6685    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6686
6687    /**
6688     * Set the label used in the button
6689     *
6690     * The passed @p label can be NULL to clean any existing text in it and
6691     * leave the button as an icon only object.
6692     *
6693     * @param obj The button object
6694     * @param label The text will be written on the button
6695     * @deprecated use elm_object_text_set() instead.
6696     */
6697    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6698
6699    /**
6700     * Get the label set for the button
6701     *
6702     * The string returned is an internal pointer and should not be freed or
6703     * altered. It will also become invalid when the button is destroyed.
6704     * The string returned, if not NULL, is a stringshare, so if you need to
6705     * keep it around even after the button is destroyed, you can use
6706     * eina_stringshare_ref().
6707     *
6708     * @param obj The button object
6709     * @return The text set to the label, or NULL if nothing is set
6710     * @deprecated use elm_object_text_set() instead.
6711     */
6712    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6713
6714    /**
6715     * Set the icon used for the button
6716     *
6717     * Setting a new icon will delete any other that was previously set, making
6718     * any reference to them invalid. If you need to maintain the previous
6719     * object alive, unset it first with elm_button_icon_unset().
6720     *
6721     * @param obj The button object
6722     * @param icon The icon object for the button
6723     * @deprecated use elm_object_part_content_set() instead.
6724     */
6725    EINA_DEPRECATED EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6726
6727    /**
6728     * Get the icon used for the button
6729     *
6730     * Return the icon object which is set for this widget. If the button is
6731     * destroyed or another icon is set, the returned object will be deleted
6732     * and any reference to it will be invalid.
6733     *
6734     * @param obj The button object
6735     * @return The icon object that is being used
6736     *
6737     * @deprecated use elm_object_part_content_get() instead
6738     */
6739    EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6740
6741    /**
6742     * Remove the icon set without deleting it and return the object
6743     *
6744     * This function drops the reference the button holds of the icon object
6745     * and returns this last object. It is used in case you want to remove any
6746     * icon, or set another one, without deleting the actual object. The button
6747     * will be left without an icon set.
6748     *
6749     * @param obj The button object
6750     * @return The icon object that was being used
6751     * @deprecated use elm_object_part_content_unset() instead.
6752     */
6753    EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6754
6755    /**
6756     * Turn on/off the autorepeat event generated when the button is kept pressed
6757     *
6758     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6759     * signal when they are clicked.
6760     *
6761     * When on, keeping a button pressed will continuously emit a @c repeated
6762     * signal until the button is released. The time it takes until it starts
6763     * emitting the signal is given by
6764     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6765     * new emission by elm_button_autorepeat_gap_timeout_set().
6766     *
6767     * @param obj The button object
6768     * @param on  A bool to turn on/off the event
6769     */
6770    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6771
6772    /**
6773     * Get whether the autorepeat feature is enabled
6774     *
6775     * @param obj The button object
6776     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6777     *
6778     * @see elm_button_autorepeat_set()
6779     */
6780    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6781
6782    /**
6783     * Set the initial timeout before the autorepeat event is generated
6784     *
6785     * Sets the timeout, in seconds, since the button is pressed until the
6786     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6787     * won't be any delay and the even will be fired the moment the button is
6788     * pressed.
6789     *
6790     * @param obj The button object
6791     * @param t   Timeout in seconds
6792     *
6793     * @see elm_button_autorepeat_set()
6794     * @see elm_button_autorepeat_gap_timeout_set()
6795     */
6796    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6797
6798    /**
6799     * Get the initial timeout before the autorepeat event is generated
6800     *
6801     * @param obj The button object
6802     * @return Timeout in seconds
6803     *
6804     * @see elm_button_autorepeat_initial_timeout_set()
6805     */
6806    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6807
6808    /**
6809     * Set the interval between each generated autorepeat event
6810     *
6811     * After the first @c repeated event is fired, all subsequent ones will
6812     * follow after a delay of @p t seconds for each.
6813     *
6814     * @param obj The button object
6815     * @param t   Interval in seconds
6816     *
6817     * @see elm_button_autorepeat_initial_timeout_set()
6818     */
6819    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6820
6821    /**
6822     * Get the interval between each generated autorepeat event
6823     *
6824     * @param obj The button object
6825     * @return Interval in seconds
6826     */
6827    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6828
6829    /**
6830     * @}
6831     */
6832
6833    /**
6834     * @defgroup File_Selector_Button File Selector Button
6835     *
6836     * @image html img/widget/fileselector_button/preview-00.png
6837     * @image latex img/widget/fileselector_button/preview-00.eps
6838     * @image html img/widget/fileselector_button/preview-01.png
6839     * @image latex img/widget/fileselector_button/preview-01.eps
6840     * @image html img/widget/fileselector_button/preview-02.png
6841     * @image latex img/widget/fileselector_button/preview-02.eps
6842     *
6843     * This is a button that, when clicked, creates an Elementary
6844     * window (or inner window) <b> with a @ref Fileselector "file
6845     * selector widget" within</b>. When a file is chosen, the (inner)
6846     * window is closed and the button emits a signal having the
6847     * selected file as it's @c event_info.
6848     *
6849     * This widget encapsulates operations on its internal file
6850     * selector on its own API. There is less control over its file
6851     * selector than that one would have instatiating one directly.
6852     *
6853     * The following styles are available for this button:
6854     * @li @c "default"
6855     * @li @c "anchor"
6856     * @li @c "hoversel_vertical"
6857     * @li @c "hoversel_vertical_entry"
6858     *
6859     * Smart callbacks one can register to:
6860     * - @c "file,chosen" - the user has selected a path, whose string
6861     *   pointer comes as the @c event_info data (a stringshared
6862     *   string)
6863     *
6864     * Here is an example on its usage:
6865     * @li @ref fileselector_button_example
6866     *
6867     * @see @ref File_Selector_Entry for a similar widget.
6868     * @{
6869     */
6870
6871    /**
6872     * Add a new file selector button widget to the given parent
6873     * Elementary (container) object
6874     *
6875     * @param parent The parent object
6876     * @return a new file selector button widget handle or @c NULL, on
6877     * errors
6878     */
6879    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6880
6881    /**
6882     * Set the label for a given file selector button widget
6883     *
6884     * @param obj The file selector button widget
6885     * @param label The text label to be displayed on @p obj
6886     *
6887     * @deprecated use elm_object_text_set() instead.
6888     */
6889    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6890
6891    /**
6892     * Get the label set for a given file selector button widget
6893     *
6894     * @param obj The file selector button widget
6895     * @return The button label
6896     *
6897     * @deprecated use elm_object_text_set() instead.
6898     */
6899    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6900
6901    /**
6902     * Set the icon on a given file selector button widget
6903     *
6904     * @param obj The file selector button widget
6905     * @param icon The icon object for the button
6906     *
6907     * Once the icon object is set, a previously set one will be
6908     * deleted. If you want to keep the latter, use the
6909     * elm_fileselector_button_icon_unset() function.
6910     *
6911     * @see elm_fileselector_button_icon_get()
6912     */
6913    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6914
6915    /**
6916     * Get the icon set for a given file selector button widget
6917     *
6918     * @param obj The file selector button widget
6919     * @return The icon object currently set on @p obj or @c NULL, if
6920     * none is
6921     *
6922     * @see elm_fileselector_button_icon_set()
6923     */
6924    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6925
6926    /**
6927     * Unset the icon used in a given file selector button widget
6928     *
6929     * @param obj The file selector button widget
6930     * @return The icon object that was being used on @p obj or @c
6931     * NULL, on errors
6932     *
6933     * Unparent and return the icon object which was set for this
6934     * widget.
6935     *
6936     * @see elm_fileselector_button_icon_set()
6937     */
6938    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6939
6940    /**
6941     * Set the title for a given file selector button widget's window
6942     *
6943     * @param obj The file selector button widget
6944     * @param title The title string
6945     *
6946     * This will change the window's title, when the file selector pops
6947     * out after a click on the button. Those windows have the default
6948     * (unlocalized) value of @c "Select a file" as titles.
6949     *
6950     * @note It will only take any effect if the file selector
6951     * button widget is @b not under "inwin mode".
6952     *
6953     * @see elm_fileselector_button_window_title_get()
6954     */
6955    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6956
6957    /**
6958     * Get the title set for a given file selector button widget's
6959     * window
6960     *
6961     * @param obj The file selector button widget
6962     * @return Title of the file selector button's window
6963     *
6964     * @see elm_fileselector_button_window_title_get() for more details
6965     */
6966    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6967
6968    /**
6969     * Set the size of a given file selector button widget's window,
6970     * holding the file selector itself.
6971     *
6972     * @param obj The file selector button widget
6973     * @param width The window's width
6974     * @param height The window's height
6975     *
6976     * @note it will only take any effect if the file selector button
6977     * widget is @b not under "inwin mode". The default size for the
6978     * window (when applicable) is 400x400 pixels.
6979     *
6980     * @see elm_fileselector_button_window_size_get()
6981     */
6982    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6983
6984    /**
6985     * Get the size of a given file selector button widget's window,
6986     * holding the file selector itself.
6987     *
6988     * @param obj The file selector button widget
6989     * @param width Pointer into which to store the width value
6990     * @param height Pointer into which to store the height value
6991     *
6992     * @note Use @c NULL pointers on the size values you're not
6993     * interested in: they'll be ignored by the function.
6994     *
6995     * @see elm_fileselector_button_window_size_set(), for more details
6996     */
6997    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6998
6999    /**
7000     * Set the initial file system path for a given file selector
7001     * button widget
7002     *
7003     * @param obj The file selector button widget
7004     * @param path The path string
7005     *
7006     * It must be a <b>directory</b> path, which will have the contents
7007     * displayed initially in the file selector's view, when invoked
7008     * from @p obj. The default initial path is the @c "HOME"
7009     * environment variable's value.
7010     *
7011     * @see elm_fileselector_button_path_get()
7012     */
7013    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7014
7015    /**
7016     * Get the initial file system path set for a given file selector
7017     * button widget
7018     *
7019     * @param obj The file selector button widget
7020     * @return path The path string
7021     *
7022     * @see elm_fileselector_button_path_set() for more details
7023     */
7024    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7025
7026    /**
7027     * Enable/disable a tree view in the given file selector button
7028     * widget's internal file selector
7029     *
7030     * @param obj The file selector button widget
7031     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
7032     * disable
7033     *
7034     * This has the same effect as elm_fileselector_expandable_set(),
7035     * but now applied to a file selector button's internal file
7036     * selector.
7037     *
7038     * @note There's no way to put a file selector button's internal
7039     * file selector in "grid mode", as one may do with "pure" file
7040     * selectors.
7041     *
7042     * @see elm_fileselector_expandable_get()
7043     */
7044    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7045
7046    /**
7047     * Get whether tree view is enabled for the given file selector
7048     * button widget's internal file selector
7049     *
7050     * @param obj The file selector button widget
7051     * @return @c EINA_TRUE if @p obj widget's internal file selector
7052     * is in tree view, @c EINA_FALSE otherwise (and or errors)
7053     *
7054     * @see elm_fileselector_expandable_set() for more details
7055     */
7056    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7057
7058    /**
7059     * Set whether a given file selector button widget's internal file
7060     * selector is to display folders only or the directory contents,
7061     * as well.
7062     *
7063     * @param obj The file selector button widget
7064     * @param only @c EINA_TRUE to make @p obj widget's internal file
7065     * selector only display directories, @c EINA_FALSE to make files
7066     * to be displayed in it too
7067     *
7068     * This has the same effect as elm_fileselector_folder_only_set(),
7069     * but now applied to a file selector button's internal file
7070     * selector.
7071     *
7072     * @see elm_fileselector_folder_only_get()
7073     */
7074    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7075
7076    /**
7077     * Get whether a given file selector button widget's internal file
7078     * selector is displaying folders only or the directory contents,
7079     * as well.
7080     *
7081     * @param obj The file selector button widget
7082     * @return @c EINA_TRUE if @p obj widget's internal file
7083     * selector is only displaying directories, @c EINA_FALSE if files
7084     * are being displayed in it too (and on errors)
7085     *
7086     * @see elm_fileselector_button_folder_only_set() for more details
7087     */
7088    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7089
7090    /**
7091     * Enable/disable the file name entry box where the user can type
7092     * in a name for a file, in a given file selector button widget's
7093     * internal file selector.
7094     *
7095     * @param obj The file selector button widget
7096     * @param is_save @c EINA_TRUE to make @p obj widget's internal
7097     * file selector a "saving dialog", @c EINA_FALSE otherwise
7098     *
7099     * This has the same effect as elm_fileselector_is_save_set(),
7100     * but now applied to a file selector button's internal file
7101     * selector.
7102     *
7103     * @see elm_fileselector_is_save_get()
7104     */
7105    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7106
7107    /**
7108     * Get whether the given file selector button widget's internal
7109     * file selector is in "saving dialog" mode
7110     *
7111     * @param obj The file selector button widget
7112     * @return @c EINA_TRUE, if @p obj widget's internal file selector
7113     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
7114     * errors)
7115     *
7116     * @see elm_fileselector_button_is_save_set() for more details
7117     */
7118    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7119
7120    /**
7121     * Set whether a given file selector button widget's internal file
7122     * selector will raise an Elementary "inner window", instead of a
7123     * dedicated Elementary window. By default, it won't.
7124     *
7125     * @param obj The file selector button widget
7126     * @param value @c EINA_TRUE to make it use an inner window, @c
7127     * EINA_TRUE to make it use a dedicated window
7128     *
7129     * @see elm_win_inwin_add() for more information on inner windows
7130     * @see elm_fileselector_button_inwin_mode_get()
7131     */
7132    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7133
7134    /**
7135     * Get whether a given file selector button widget's internal file
7136     * selector will raise an Elementary "inner window", instead of a
7137     * dedicated Elementary window.
7138     *
7139     * @param obj The file selector button widget
7140     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
7141     * if it will use a dedicated window
7142     *
7143     * @see elm_fileselector_button_inwin_mode_set() for more details
7144     */
7145    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7146
7147    /**
7148     * @}
7149     */
7150
7151     /**
7152     * @defgroup File_Selector_Entry File Selector Entry
7153     *
7154     * @image html img/widget/fileselector_entry/preview-00.png
7155     * @image latex img/widget/fileselector_entry/preview-00.eps
7156     *
7157     * This is an entry made to be filled with or display a <b>file
7158     * system path string</b>. Besides the entry itself, the widget has
7159     * a @ref File_Selector_Button "file selector button" on its side,
7160     * which will raise an internal @ref Fileselector "file selector widget",
7161     * when clicked, for path selection aided by file system
7162     * navigation.
7163     *
7164     * This file selector may appear in an Elementary window or in an
7165     * inner window. When a file is chosen from it, the (inner) window
7166     * is closed and the selected file's path string is exposed both as
7167     * an smart event and as the new text on the entry.
7168     *
7169     * This widget encapsulates operations on its internal file
7170     * selector on its own API. There is less control over its file
7171     * selector than that one would have instatiating one directly.
7172     *
7173     * Smart callbacks one can register to:
7174     * - @c "changed" - The text within the entry was changed
7175     * - @c "activated" - The entry has had editing finished and
7176     *   changes are to be "committed"
7177     * - @c "press" - The entry has been clicked
7178     * - @c "longpressed" - The entry has been clicked (and held) for a
7179     *   couple seconds
7180     * - @c "clicked" - The entry has been clicked
7181     * - @c "clicked,double" - The entry has been double clicked
7182     * - @c "focused" - The entry has received focus
7183     * - @c "unfocused" - The entry has lost focus
7184     * - @c "selection,paste" - A paste action has occurred on the
7185     *   entry
7186     * - @c "selection,copy" - A copy action has occurred on the entry
7187     * - @c "selection,cut" - A cut action has occurred on the entry
7188     * - @c "unpressed" - The file selector entry's button was released
7189     *   after being pressed.
7190     * - @c "file,chosen" - The user has selected a path via the file
7191     *   selector entry's internal file selector, whose string pointer
7192     *   comes as the @c event_info data (a stringshared string)
7193     *
7194     * Here is an example on its usage:
7195     * @li @ref fileselector_entry_example
7196     *
7197     * @see @ref File_Selector_Button for a similar widget.
7198     * @{
7199     */
7200
7201    /**
7202     * Add a new file selector entry widget to the given parent
7203     * Elementary (container) object
7204     *
7205     * @param parent The parent object
7206     * @return a new file selector entry widget handle or @c NULL, on
7207     * errors
7208     */
7209    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7210
7211    /**
7212     * Set the label for a given file selector entry widget's button
7213     *
7214     * @param obj The file selector entry widget
7215     * @param label The text label to be displayed on @p obj widget's
7216     * button
7217     *
7218     * @deprecated use elm_object_text_set() instead.
7219     */
7220    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7221
7222    /**
7223     * Get the label set for a given file selector entry widget's button
7224     *
7225     * @param obj The file selector entry widget
7226     * @return The widget button's label
7227     *
7228     * @deprecated use elm_object_text_set() instead.
7229     */
7230    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7231
7232    /**
7233     * Set the icon on a given file selector entry widget's button
7234     *
7235     * @param obj The file selector entry widget
7236     * @param icon The icon object for the entry's button
7237     *
7238     * Once the icon object is set, a previously set one will be
7239     * deleted. If you want to keep the latter, use the
7240     * elm_fileselector_entry_button_icon_unset() function.
7241     *
7242     * @see elm_fileselector_entry_button_icon_get()
7243     */
7244    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7245
7246    /**
7247     * Get the icon set for a given file selector entry widget's button
7248     *
7249     * @param obj The file selector entry widget
7250     * @return The icon object currently set on @p obj widget's button
7251     * or @c NULL, if none is
7252     *
7253     * @see elm_fileselector_entry_button_icon_set()
7254     */
7255    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7256
7257    /**
7258     * Unset the icon used in a given file selector entry widget's
7259     * button
7260     *
7261     * @param obj The file selector entry widget
7262     * @return The icon object that was being used on @p obj widget's
7263     * button or @c NULL, on errors
7264     *
7265     * Unparent and return the icon object which was set for this
7266     * widget's button.
7267     *
7268     * @see elm_fileselector_entry_button_icon_set()
7269     */
7270    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7271
7272    /**
7273     * Set the title for a given file selector entry widget's window
7274     *
7275     * @param obj The file selector entry widget
7276     * @param title The title string
7277     *
7278     * This will change the window's title, when the file selector pops
7279     * out after a click on the entry's button. Those windows have the
7280     * default (unlocalized) value of @c "Select a file" as titles.
7281     *
7282     * @note It will only take any effect if the file selector
7283     * entry widget is @b not under "inwin mode".
7284     *
7285     * @see elm_fileselector_entry_window_title_get()
7286     */
7287    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
7288
7289    /**
7290     * Get the title set for a given file selector entry widget's
7291     * window
7292     *
7293     * @param obj The file selector entry widget
7294     * @return Title of the file selector entry's window
7295     *
7296     * @see elm_fileselector_entry_window_title_get() for more details
7297     */
7298    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7299
7300    /**
7301     * Set the size of a given file selector entry widget's window,
7302     * holding the file selector itself.
7303     *
7304     * @param obj The file selector entry widget
7305     * @param width The window's width
7306     * @param height The window's height
7307     *
7308     * @note it will only take any effect if the file selector entry
7309     * widget is @b not under "inwin mode". The default size for the
7310     * window (when applicable) is 400x400 pixels.
7311     *
7312     * @see elm_fileselector_entry_window_size_get()
7313     */
7314    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
7315
7316    /**
7317     * Get the size of a given file selector entry widget's window,
7318     * holding the file selector itself.
7319     *
7320     * @param obj The file selector entry widget
7321     * @param width Pointer into which to store the width value
7322     * @param height Pointer into which to store the height value
7323     *
7324     * @note Use @c NULL pointers on the size values you're not
7325     * interested in: they'll be ignored by the function.
7326     *
7327     * @see elm_fileselector_entry_window_size_set(), for more details
7328     */
7329    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
7330
7331    /**
7332     * Set the initial file system path and the entry's path string for
7333     * a given file selector entry widget
7334     *
7335     * @param obj The file selector entry widget
7336     * @param path The path string
7337     *
7338     * It must be a <b>directory</b> path, which will have the contents
7339     * displayed initially in the file selector's view, when invoked
7340     * from @p obj. The default initial path is the @c "HOME"
7341     * environment variable's value.
7342     *
7343     * @see elm_fileselector_entry_path_get()
7344     */
7345    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7346
7347    /**
7348     * Get the entry's path string for a given file selector entry
7349     * widget
7350     *
7351     * @param obj The file selector entry widget
7352     * @return path The path string
7353     *
7354     * @see elm_fileselector_entry_path_set() for more details
7355     */
7356    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7357
7358    /**
7359     * Enable/disable a tree view in the given file selector entry
7360     * widget's internal file selector
7361     *
7362     * @param obj The file selector entry widget
7363     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
7364     * disable
7365     *
7366     * This has the same effect as elm_fileselector_expandable_set(),
7367     * but now applied to a file selector entry's internal file
7368     * selector.
7369     *
7370     * @note There's no way to put a file selector entry's internal
7371     * file selector in "grid mode", as one may do with "pure" file
7372     * selectors.
7373     *
7374     * @see elm_fileselector_expandable_get()
7375     */
7376    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7377
7378    /**
7379     * Get whether tree view is enabled for the given file selector
7380     * entry widget's internal file selector
7381     *
7382     * @param obj The file selector entry widget
7383     * @return @c EINA_TRUE if @p obj widget's internal file selector
7384     * is in tree view, @c EINA_FALSE otherwise (and or errors)
7385     *
7386     * @see elm_fileselector_expandable_set() for more details
7387     */
7388    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7389
7390    /**
7391     * Set whether a given file selector entry widget's internal file
7392     * selector is to display folders only or the directory contents,
7393     * as well.
7394     *
7395     * @param obj The file selector entry widget
7396     * @param only @c EINA_TRUE to make @p obj widget's internal file
7397     * selector only display directories, @c EINA_FALSE to make files
7398     * to be displayed in it too
7399     *
7400     * This has the same effect as elm_fileselector_folder_only_set(),
7401     * but now applied to a file selector entry's internal file
7402     * selector.
7403     *
7404     * @see elm_fileselector_folder_only_get()
7405     */
7406    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7407
7408    /**
7409     * Get whether a given file selector entry widget's internal file
7410     * selector is displaying folders only or the directory contents,
7411     * as well.
7412     *
7413     * @param obj The file selector entry widget
7414     * @return @c EINA_TRUE if @p obj widget's internal file
7415     * selector is only displaying directories, @c EINA_FALSE if files
7416     * are being displayed in it too (and on errors)
7417     *
7418     * @see elm_fileselector_entry_folder_only_set() for more details
7419     */
7420    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7421
7422    /**
7423     * Enable/disable the file name entry box where the user can type
7424     * in a name for a file, in a given file selector entry widget's
7425     * internal file selector.
7426     *
7427     * @param obj The file selector entry widget
7428     * @param is_save @c EINA_TRUE to make @p obj widget's internal
7429     * file selector a "saving dialog", @c EINA_FALSE otherwise
7430     *
7431     * This has the same effect as elm_fileselector_is_save_set(),
7432     * but now applied to a file selector entry's internal file
7433     * selector.
7434     *
7435     * @see elm_fileselector_is_save_get()
7436     */
7437    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7438
7439    /**
7440     * Get whether the given file selector entry widget's internal
7441     * file selector is in "saving dialog" mode
7442     *
7443     * @param obj The file selector entry widget
7444     * @return @c EINA_TRUE, if @p obj widget's internal file selector
7445     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
7446     * errors)
7447     *
7448     * @see elm_fileselector_entry_is_save_set() for more details
7449     */
7450    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7451
7452    /**
7453     * Set whether a given file selector entry widget's internal file
7454     * selector will raise an Elementary "inner window", instead of a
7455     * dedicated Elementary window. By default, it won't.
7456     *
7457     * @param obj The file selector entry widget
7458     * @param value @c EINA_TRUE to make it use an inner window, @c
7459     * EINA_TRUE to make it use a dedicated window
7460     *
7461     * @see elm_win_inwin_add() for more information on inner windows
7462     * @see elm_fileselector_entry_inwin_mode_get()
7463     */
7464    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7465
7466    /**
7467     * Get whether a given file selector entry widget's internal file
7468     * selector will raise an Elementary "inner window", instead of a
7469     * dedicated Elementary window.
7470     *
7471     * @param obj The file selector entry widget
7472     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
7473     * if it will use a dedicated window
7474     *
7475     * @see elm_fileselector_entry_inwin_mode_set() for more details
7476     */
7477    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7478
7479    /**
7480     * Set the initial file system path for a given file selector entry
7481     * widget
7482     *
7483     * @param obj The file selector entry widget
7484     * @param path The path string
7485     *
7486     * It must be a <b>directory</b> path, which will have the contents
7487     * displayed initially in the file selector's view, when invoked
7488     * from @p obj. The default initial path is the @c "HOME"
7489     * environment variable's value.
7490     *
7491     * @see elm_fileselector_entry_path_get()
7492     */
7493    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7494
7495    /**
7496     * Get the parent directory's path to the latest file selection on
7497     * a given filer selector entry widget
7498     *
7499     * @param obj The file selector object
7500     * @return The (full) path of the directory of the last selection
7501     * on @p obj widget, a @b stringshared string
7502     *
7503     * @see elm_fileselector_entry_path_set()
7504     */
7505    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7506
7507    /**
7508     * @}
7509     */
7510
7511    /**
7512     * @defgroup Scroller Scroller
7513     *
7514     * A scroller holds a single object and "scrolls it around". This means that
7515     * it allows the user to use a scrollbar (or a finger) to drag the viewable
7516     * region around, allowing to move through a much larger object that is
7517     * contained in the scroller. The scroller will always have a small minimum
7518     * size by default as it won't be limited by the contents of the scroller.
7519     *
7520     * Signals that you can add callbacks for are:
7521     * @li "edge,left" - the left edge of the content has been reached
7522     * @li "edge,right" - the right edge of the content has been reached
7523     * @li "edge,top" - the top edge of the content has been reached
7524     * @li "edge,bottom" - the bottom edge of the content has been reached
7525     * @li "scroll" - the content has been scrolled (moved)
7526     * @li "scroll,anim,start" - scrolling animation has started
7527     * @li "scroll,anim,stop" - scrolling animation has stopped
7528     * @li "scroll,drag,start" - dragging the contents around has started
7529     * @li "scroll,drag,stop" - dragging the contents around has stopped
7530     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
7531     * user intervetion.
7532     *
7533     * @note When Elemementary is in embedded mode the scrollbars will not be
7534     * dragable, they appear merely as indicators of how much has been scrolled.
7535     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
7536     * fingerscroll) won't work.
7537     *
7538     * Default contents parts of the scroller widget that you can use for are:
7539     * @li "default" - A content of the scroller
7540     *
7541     * In @ref tutorial_scroller you'll find an example of how to use most of
7542     * this API.
7543     * @{
7544     */
7545
7546    /**
7547     * @brief Type that controls when scrollbars should appear.
7548     *
7549     * @see elm_scroller_policy_set()
7550     */
7551    typedef enum _Elm_Scroller_Policy
7552      {
7553         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
7554         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
7555         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
7556         ELM_SCROLLER_POLICY_LAST
7557      } Elm_Scroller_Policy;
7558
7559    /**
7560     * @brief Add a new scroller to the parent
7561     *
7562     * @param parent The parent object
7563     * @return The new object or NULL if it cannot be created
7564     */
7565    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7566
7567    /**
7568     * @brief Set the content of the scroller widget (the object to be scrolled around).
7569     *
7570     * @param obj The scroller object
7571     * @param content The new content object
7572     *
7573     * Once the content object is set, a previously set one will be deleted.
7574     * If you want to keep that old content object, use the
7575     * elm_scroller_content_unset() function.
7576     * @deprecated use elm_object_content_set() instead
7577     */
7578    EINA_DEPRECATED EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
7579
7580    /**
7581     * @brief Get the content of the scroller widget
7582     *
7583     * @param obj The slider object
7584     * @return The content that is being used
7585     *
7586     * Return the content object which is set for this widget
7587     *
7588     * @see elm_scroller_content_set()
7589     * @deprecated use elm_object_content_get() instead.
7590     */
7591    EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7592
7593    /**
7594     * @brief Unset the content of the scroller widget
7595     *
7596     * @param obj The slider object
7597     * @return The content that was being used
7598     *
7599     * Unparent and return the content object which was set for this widget
7600     *
7601     * @see elm_scroller_content_set()
7602     * @deprecated use elm_object_content_unset() instead.
7603     */
7604    EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7605
7606    /**
7607     * @brief Set custom theme elements for the scroller
7608     *
7609     * @param obj The scroller object
7610     * @param widget The widget name to use (default is "scroller")
7611     * @param base The base name to use (default is "base")
7612     */
7613    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
7614
7615    /**
7616     * @brief Make the scroller minimum size limited to the minimum size of the content
7617     *
7618     * @param obj The scroller object
7619     * @param w Enable limiting minimum size horizontally
7620     * @param h Enable limiting minimum size vertically
7621     *
7622     * By default the scroller will be as small as its design allows,
7623     * irrespective of its content. This will make the scroller minimum size the
7624     * right size horizontally and/or vertically to perfectly fit its content in
7625     * that direction.
7626     */
7627    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
7628
7629    /**
7630     * @brief Show a specific virtual region within the scroller content object
7631     *
7632     * @param obj The scroller object
7633     * @param x X coordinate of the region
7634     * @param y Y coordinate of the region
7635     * @param w Width of the region
7636     * @param h Height of the region
7637     *
7638     * This will ensure all (or part if it does not fit) of the designated
7639     * region in the virtual content object (0, 0 starting at the top-left of the
7640     * virtual content object) is shown within the scroller.
7641     */
7642    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);
7643
7644    /**
7645     * @brief Set the scrollbar visibility policy
7646     *
7647     * @param obj The scroller object
7648     * @param policy_h Horizontal scrollbar policy
7649     * @param policy_v Vertical scrollbar policy
7650     *
7651     * This sets the scrollbar visibility policy for the given scroller.
7652     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7653     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7654     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7655     * respectively for the horizontal and vertical scrollbars.
7656     */
7657    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7658
7659    /**
7660     * @brief Gets scrollbar visibility policy
7661     *
7662     * @param obj The scroller object
7663     * @param policy_h Horizontal scrollbar policy
7664     * @param policy_v Vertical scrollbar policy
7665     *
7666     * @see elm_scroller_policy_set()
7667     */
7668    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7669
7670    /**
7671     * @brief Get the currently visible content region
7672     *
7673     * @param obj The scroller object
7674     * @param x X coordinate of the region
7675     * @param y Y coordinate of the region
7676     * @param w Width of the region
7677     * @param h Height of the region
7678     *
7679     * This gets the current region in the content object that is visible through
7680     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7681     * w, @p h values pointed to.
7682     *
7683     * @note All coordinates are relative to the content.
7684     *
7685     * @see elm_scroller_region_show()
7686     */
7687    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);
7688
7689    /**
7690     * @brief Get the size of the content object
7691     *
7692     * @param obj The scroller object
7693     * @param w Width of the content object.
7694     * @param h Height of the content object.
7695     *
7696     * This gets the size of the content object of the scroller.
7697     */
7698    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7699
7700    /**
7701     * @brief Set bouncing behavior
7702     *
7703     * @param obj The scroller object
7704     * @param h_bounce Allow bounce horizontally
7705     * @param v_bounce Allow bounce vertically
7706     *
7707     * When scrolling, the scroller may "bounce" when reaching an edge of the
7708     * content object. This is a visual way to indicate the end has been reached.
7709     * This is enabled by default for both axis. This API will set if it is enabled
7710     * for the given axis with the boolean parameters for each axis.
7711     */
7712    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7713
7714    /**
7715     * @brief Get the bounce behaviour
7716     *
7717     * @param obj The Scroller object
7718     * @param h_bounce Will the scroller bounce horizontally or not
7719     * @param v_bounce Will the scroller bounce vertically or not
7720     *
7721     * @see elm_scroller_bounce_set()
7722     */
7723    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7724
7725    /**
7726     * @brief Set scroll page size relative to viewport size.
7727     *
7728     * @param obj The scroller object
7729     * @param h_pagerel The horizontal page relative size
7730     * @param v_pagerel The vertical page relative size
7731     *
7732     * The scroller is capable of limiting scrolling by the user to "pages". That
7733     * is to jump by and only show a "whole page" at a time as if the continuous
7734     * area of the scroller content is split into page sized pieces. This sets
7735     * the size of a page relative to the viewport of the scroller. 1.0 is "1
7736     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7737     * axis. This is mutually exclusive with page size
7738     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
7739     * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7740     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7741     * the other axis.
7742     */
7743    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7744
7745    /**
7746     * @brief Set scroll page size.
7747     *
7748     * @param obj The scroller object
7749     * @param h_pagesize The horizontal page size
7750     * @param v_pagesize The vertical page size
7751     *
7752     * This sets the page size to an absolute fixed value, with 0 turning it off
7753     * for that axis.
7754     *
7755     * @see elm_scroller_page_relative_set()
7756     */
7757    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7758
7759    /**
7760     * @brief Get scroll current page number.
7761     *
7762     * @param obj The scroller object
7763     * @param h_pagenumber The horizontal page number
7764     * @param v_pagenumber The vertical page number
7765     *
7766     * The page number starts from 0. 0 is the first page.
7767     * Current page means the page which meets the top-left of the viewport.
7768     * If there are two or more pages in the viewport, it returns the number of the page
7769     * which meets the top-left of the viewport.
7770     *
7771     * @see elm_scroller_last_page_get()
7772     * @see elm_scroller_page_show()
7773     * @see elm_scroller_page_brint_in()
7774     */
7775    EAPI void         elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7776
7777    /**
7778     * @brief Get scroll last page number.
7779     *
7780     * @param obj The scroller object
7781     * @param h_pagenumber The horizontal page number
7782     * @param v_pagenumber The vertical page number
7783     *
7784     * The page number starts from 0. 0 is the first page.
7785     * This returns the last page number among the pages.
7786     *
7787     * @see elm_scroller_current_page_get()
7788     * @see elm_scroller_page_show()
7789     * @see elm_scroller_page_brint_in()
7790     */
7791    EAPI void         elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7792
7793    /**
7794     * Show a specific virtual region within the scroller content object by page number.
7795     *
7796     * @param obj The scroller object
7797     * @param h_pagenumber The horizontal page number
7798     * @param v_pagenumber The vertical page number
7799     *
7800     * 0, 0 of the indicated page is located at the top-left of the viewport.
7801     * This will jump to the page directly without animation.
7802     *
7803     * Example of usage:
7804     *
7805     * @code
7806     * sc = elm_scroller_add(win);
7807     * elm_scroller_content_set(sc, content);
7808     * elm_scroller_page_relative_set(sc, 1, 0);
7809     * elm_scroller_current_page_get(sc, &h_page, &v_page);
7810     * elm_scroller_page_show(sc, h_page + 1, v_page);
7811     * @endcode
7812     *
7813     * @see elm_scroller_page_bring_in()
7814     */
7815    EAPI void         elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7816
7817    /**
7818     * Show a specific virtual region within the scroller content object by page number.
7819     *
7820     * @param obj The scroller object
7821     * @param h_pagenumber The horizontal page number
7822     * @param v_pagenumber The vertical page number
7823     *
7824     * 0, 0 of the indicated page is located at the top-left of the viewport.
7825     * This will slide to the page with animation.
7826     *
7827     * Example of usage:
7828     *
7829     * @code
7830     * sc = elm_scroller_add(win);
7831     * elm_scroller_content_set(sc, content);
7832     * elm_scroller_page_relative_set(sc, 1, 0);
7833     * elm_scroller_last_page_get(sc, &h_page, &v_page);
7834     * elm_scroller_page_bring_in(sc, h_page, v_page);
7835     * @endcode
7836     *
7837     * @see elm_scroller_page_show()
7838     */
7839    EAPI void         elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7840
7841    /**
7842     * @brief Show a specific virtual region within the scroller content object.
7843     *
7844     * @param obj The scroller object
7845     * @param x X coordinate of the region
7846     * @param y Y coordinate of the region
7847     * @param w Width of the region
7848     * @param h Height of the region
7849     *
7850     * This will ensure all (or part if it does not fit) of the designated
7851     * region in the virtual content object (0, 0 starting at the top-left of the
7852     * virtual content object) is shown within the scroller. Unlike
7853     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7854     * to this location (if configuration in general calls for transitions). It
7855     * may not jump immediately to the new location and make take a while and
7856     * show other content along the way.
7857     *
7858     * @see elm_scroller_region_show()
7859     */
7860    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);
7861
7862    /**
7863     * @brief Set event propagation on a scroller
7864     *
7865     * @param obj The scroller object
7866     * @param propagation If propagation is enabled or not
7867     *
7868     * This enables or disabled event propagation from the scroller content to
7869     * the scroller and its parent. By default event propagation is disabled.
7870     */
7871    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7872
7873    /**
7874     * @brief Get event propagation for a scroller
7875     *
7876     * @param obj The scroller object
7877     * @return The propagation state
7878     *
7879     * This gets the event propagation for a scroller.
7880     *
7881     * @see elm_scroller_propagate_events_set()
7882     */
7883    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7884
7885    /**
7886     * @brief Set scrolling gravity on a scroller
7887     *
7888     * @param obj The scroller object
7889     * @param x The scrolling horizontal gravity
7890     * @param y The scrolling vertical gravity
7891     *
7892     * The gravity, defines how the scroller will adjust its view
7893     * when the size of the scroller contents increase.
7894     *
7895     * The scroller will adjust the view to glue itself as follows.
7896     *
7897     *  x=0.0, for showing the left most region of the content.
7898     *  x=1.0, for showing the right most region of the content.
7899     *  y=0.0, for showing the bottom most region of the content.
7900     *  y=1.0, for showing the top most region of the content.
7901     *
7902     * Default values for x and y are 0.0
7903     */
7904    EAPI void         elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7905
7906    /**
7907     * @brief Get scrolling gravity values for a scroller
7908     *
7909     * @param obj The scroller object
7910     * @param x The scrolling horizontal gravity
7911     * @param y The scrolling vertical gravity
7912     *
7913     * This gets gravity values for a scroller.
7914     *
7915     * @see elm_scroller_gravity_set()
7916     *
7917     */
7918    EAPI void         elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7919
7920    /**
7921     * @}
7922     */
7923
7924    /**
7925     * @defgroup Label Label
7926     *
7927     * @image html img/widget/label/preview-00.png
7928     * @image latex img/widget/label/preview-00.eps
7929     *
7930     * @brief Widget to display text, with simple html-like markup.
7931     *
7932     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7933     * text doesn't fit the geometry of the label it will be ellipsized or be
7934     * cut. Elementary provides several styles for this widget:
7935     * @li default - No animation
7936     * @li marker - Centers the text in the label and make it bold by default
7937     * @li slide_long - The entire text appears from the right of the screen and
7938     * slides until it disappears in the left of the screen(reappering on the
7939     * right again).
7940     * @li slide_short - The text appears in the left of the label and slides to
7941     * the right to show the overflow. When all of the text has been shown the
7942     * position is reset.
7943     * @li slide_bounce - The text appears in the left of the label and slides to
7944     * the right to show the overflow. When all of the text has been shown the
7945     * animation reverses, moving the text to the left.
7946     *
7947     * Custom themes can of course invent new markup tags and style them any way
7948     * they like.
7949     *
7950     * The following signals may be emitted by the label widget:
7951     * @li "language,changed": The program's language changed.
7952     *
7953     * See @ref tutorial_label for a demonstration of how to use a label widget.
7954     * @{
7955     */
7956
7957    /**
7958     * @brief Add a new label to the parent
7959     *
7960     * @param parent The parent object
7961     * @return The new object or NULL if it cannot be created
7962     */
7963    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7964
7965    /**
7966     * @brief Set the label on the label object
7967     *
7968     * @param obj The label object
7969     * @param label The label will be used on the label object
7970     * @deprecated See elm_object_text_set()
7971     */
7972    EINA_DEPRECATED EAPI void elm_label_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7973
7974    /**
7975     * @brief Get the label used on the label object
7976     *
7977     * @param obj The label object
7978     * @return The string inside the label
7979     * @deprecated See elm_object_text_get()
7980     */
7981    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7982
7983    /**
7984     * @brief Set the wrapping behavior of the label
7985     *
7986     * @param obj The label object
7987     * @param wrap To wrap text or not
7988     *
7989     * By default no wrapping is done. Possible values for @p wrap are:
7990     * @li ELM_WRAP_NONE - No wrapping
7991     * @li ELM_WRAP_CHAR - wrap between characters
7992     * @li ELM_WRAP_WORD - wrap between words
7993     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7994     */
7995    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7996
7997    /**
7998     * @brief Get the wrapping behavior of the label
7999     *
8000     * @param obj The label object
8001     * @return Wrap type
8002     *
8003     * @see elm_label_line_wrap_set()
8004     */
8005    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8006
8007    /**
8008     * @brief Set wrap width of the label
8009     *
8010     * @param obj The label object
8011     * @param w The wrap width in pixels at a minimum where words need to wrap
8012     *
8013     * This function sets the maximum width size hint of the label.
8014     *
8015     * @warning This is only relevant if the label is inside a container.
8016     */
8017    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
8018
8019    /**
8020     * @brief Get wrap width of the label
8021     *
8022     * @param obj The label object
8023     * @return The wrap width in pixels at a minimum where words need to wrap
8024     *
8025     * @see elm_label_wrap_width_set()
8026     */
8027    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8028
8029    /**
8030     * @brief Set wrap height of the label
8031     *
8032     * @param obj The label object
8033     * @param h The wrap height in pixels at a minimum where words need to wrap
8034     *
8035     * This function sets the maximum height size hint of the label.
8036     *
8037     * @warning This is only relevant if the label is inside a container.
8038     */
8039    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
8040
8041    /**
8042     * @brief get wrap width of the label
8043     *
8044     * @param obj The label object
8045     * @return The wrap height in pixels at a minimum where words need to wrap
8046     */
8047    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8048
8049    /**
8050     * @brief Set the font size on the label object.
8051     *
8052     * @param obj The label object
8053     * @param size font size
8054     *
8055     * @warning NEVER use this. It is for hyper-special cases only. use styles
8056     * instead. e.g. "default", "marker", "slide_long" etc.
8057     */
8058    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
8059
8060    /**
8061     * @brief Set the text color on the label object
8062     *
8063     * @param obj The label object
8064     * @param r Red property background color of The label object
8065     * @param g Green property background color of The label object
8066     * @param b Blue property background color of The label object
8067     * @param a Alpha property background color of The label object
8068     *
8069     * @warning NEVER use this. It is for hyper-special cases only. use styles
8070     * instead. e.g. "default", "marker", "slide_long" etc.
8071     */
8072    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);
8073
8074    /**
8075     * @brief Set the text align on the label object
8076     *
8077     * @param obj The label object
8078     * @param align align mode ("left", "center", "right")
8079     *
8080     * @warning NEVER use this. It is for hyper-special cases only. use styles
8081     * instead. e.g. "default", "marker", "slide_long" etc.
8082     */
8083    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
8084
8085    /**
8086     * @brief Set background color of the label
8087     *
8088     * @param obj The label object
8089     * @param r Red property background color of The label object
8090     * @param g Green property background color of The label object
8091     * @param b Blue property background color of The label object
8092     * @param a Alpha property background alpha of The label object
8093     *
8094     * @warning NEVER use this. It is for hyper-special cases only. use styles
8095     * instead. e.g. "default", "marker", "slide_long" etc.
8096     */
8097    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);
8098
8099    /**
8100     * @brief Set the ellipsis behavior of the label
8101     *
8102     * @param obj The label object
8103     * @param ellipsis To ellipsis text or not
8104     *
8105     * If set to true and the text doesn't fit in the label an ellipsis("...")
8106     * will be shown at the end of the widget.
8107     *
8108     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
8109     * choosen wrap method was ELM_WRAP_WORD.
8110     */
8111    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
8112
8113    /**
8114     * @brief Set the text slide of the label
8115     *
8116     * @param obj The label object
8117     * @param slide To start slide or stop
8118     *
8119     * If set to true, the text of the label will slide/scroll through the length of
8120     * label.
8121     *
8122     * @warning This only works with the themes "slide_short", "slide_long" and
8123     * "slide_bounce".
8124     */
8125    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
8126
8127    /**
8128     * @brief Get the text slide mode of the label
8129     *
8130     * @param obj The label object
8131     * @return slide slide mode value
8132     *
8133     * @see elm_label_slide_set()
8134     */
8135    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
8136
8137    /**
8138     * @brief Set the slide duration(speed) of the label
8139     *
8140     * @param obj The label object
8141     * @return The duration in seconds in moving text from slide begin position
8142     * to slide end position
8143     */
8144    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
8145
8146    /**
8147     * @brief Get the slide duration(speed) of the label
8148     *
8149     * @param obj The label object
8150     * @return The duration time in moving text from slide begin position to slide end position
8151     *
8152     * @see elm_label_slide_duration_set()
8153     */
8154    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
8155
8156    /**
8157     * @}
8158     */
8159
8160    /**
8161     * @defgroup Toggle Toggle
8162     *
8163     * @image html img/widget/toggle/preview-00.png
8164     * @image latex img/widget/toggle/preview-00.eps
8165     *
8166     * @brief A toggle is a slider which can be used to toggle between
8167     * two values.  It has two states: on and off.
8168     *
8169     * This widget is deprecated. Please use elm_check_add() instead using the
8170     * toggle style like:
8171     *
8172     * @code
8173     * obj = elm_check_add(parent);
8174     * elm_object_style_set(obj, "toggle");
8175     * elm_object_part_text_set(obj, "on", "ON");
8176     * elm_object_part_text_set(obj, "off", "OFF");
8177     * @endcode
8178     *
8179     * Signals that you can add callbacks for are:
8180     * @li "changed" - Whenever the toggle value has been changed.  Is not called
8181     *                 until the toggle is released by the cursor (assuming it
8182     *                 has been triggered by the cursor in the first place).
8183     *
8184     * Default contents parts of the toggle widget that you can use for are:
8185     * @li "icon" - An icon of the toggle
8186     *
8187     * Default text parts of the toggle widget that you can use for are:
8188     * @li "elm.text" - Label of the toggle
8189     *
8190     * @ref tutorial_toggle show how to use a toggle.
8191     * @{
8192     */
8193
8194    /**
8195     * @brief Add a toggle to @p parent.
8196     *
8197     * @param parent The parent object
8198     *
8199     * @return The toggle object
8200     */
8201    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8202
8203    /**
8204     * @brief Sets the label to be displayed with the toggle.
8205     *
8206     * @param obj The toggle object
8207     * @param label The label to be displayed
8208     *
8209     * @deprecated use elm_object_text_set() instead.
8210     */
8211    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
8212
8213    /**
8214     * @brief Gets the label of the toggle
8215     *
8216     * @param obj  toggle object
8217     * @return The label of the toggle
8218     *
8219     * @deprecated use elm_object_text_get() instead.
8220     */
8221    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8222
8223    /**
8224     * @brief Set the icon used for the toggle
8225     *
8226     * @param obj The toggle object
8227     * @param icon The icon object for the button
8228     *
8229     * Once the icon object is set, a previously set one will be deleted
8230     * If you want to keep that old content object, use the
8231     * elm_toggle_icon_unset() function.
8232     *
8233     * @deprecated use elm_object_part_content_set() instead.
8234     */
8235    EINA_DEPRECATED EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
8236
8237    /**
8238     * @brief Get the icon used for the toggle
8239     *
8240     * @param obj The toggle object
8241     * @return The icon object that is being used
8242     *
8243     * Return the icon object which is set for this widget.
8244     *
8245     * @see elm_toggle_icon_set()
8246     *
8247     * @deprecated use elm_object_part_content_get() instead.
8248     */
8249    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8250
8251    /**
8252     * @brief Unset the icon used for the toggle
8253     *
8254     * @param obj The toggle object
8255     * @return The icon object that was being used
8256     *
8257     * Unparent and return the icon object which was set for this widget.
8258     *
8259     * @see elm_toggle_icon_set()
8260     *
8261     * @deprecated use elm_object_part_content_unset() instead.
8262     */
8263    EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
8264
8265    /**
8266     * @brief Sets the labels to be associated with the on and off states of the toggle.
8267     *
8268     * @param obj The toggle object
8269     * @param onlabel The label displayed when the toggle is in the "on" state
8270     * @param offlabel The label displayed when the toggle is in the "off" state
8271     *
8272     * @deprecated use elm_object_part_text_set() for "on" and "off" parts
8273     * instead.
8274     */
8275    EINA_DEPRECATED EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
8276
8277    /**
8278     * @brief Gets the labels associated with the on and off states of the
8279     * toggle.
8280     *
8281     * @param obj The toggle object
8282     * @param onlabel A char** to place the onlabel of @p obj into
8283     * @param offlabel A char** to place the offlabel of @p obj into
8284     *
8285     * @deprecated use elm_object_part_text_get() for "on" and "off" parts
8286     * instead.
8287     */
8288    EINA_DEPRECATED EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
8289
8290    /**
8291     * @brief Sets the state of the toggle to @p state.
8292     *
8293     * @param obj The toggle object
8294     * @param state The state of @p obj
8295     *
8296     * @deprecated use elm_check_state_set() instead.
8297     */
8298    EINA_DEPRECATED EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
8299
8300    /**
8301     * @brief Gets the state of the toggle to @p state.
8302     *
8303     * @param obj The toggle object
8304     * @return The state of @p obj
8305     *
8306     * @deprecated use elm_check_state_get() instead.
8307     */
8308    EINA_DEPRECATED EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8309
8310    /**
8311     * @brief Sets the state pointer of the toggle to @p statep.
8312     *
8313     * @param obj The toggle object
8314     * @param statep The state pointer of @p obj
8315     *
8316     * @deprecated use elm_check_state_pointer_set() instead.
8317     */
8318    EINA_DEPRECATED EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
8319
8320    /**
8321     * @}
8322     */
8323
8324    /**
8325     * @defgroup Frame Frame
8326     *
8327     * @image html img/widget/frame/preview-00.png
8328     * @image latex img/widget/frame/preview-00.eps
8329     *
8330     * @brief Frame is a widget that holds some content and has a title.
8331     *
8332     * The default look is a frame with a title, but Frame supports multple
8333     * styles:
8334     * @li default
8335     * @li pad_small
8336     * @li pad_medium
8337     * @li pad_large
8338     * @li pad_huge
8339     * @li outdent_top
8340     * @li outdent_bottom
8341     *
8342     * Of all this styles only default shows the title. Frame emits no signals.
8343     *
8344     * Default contents parts of the frame widget that you can use for are:
8345     * @li "default" - A content of the frame
8346     *
8347     * Default text parts of the frame widget that you can use for are:
8348     * @li "elm.text" - Label of the frame
8349     *
8350     * For a detailed example see the @ref tutorial_frame.
8351     *
8352     * @{
8353     */
8354
8355    /**
8356     * @brief Add a new frame to the parent
8357     *
8358     * @param parent The parent object
8359     * @return The new object or NULL if it cannot be created
8360     */
8361    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8362
8363    /**
8364     * @brief Set the frame label
8365     *
8366     * @param obj The frame object
8367     * @param label The label of this frame object
8368     *
8369     * @deprecated use elm_object_text_set() instead.
8370     */
8371    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
8372
8373    /**
8374     * @brief Get the frame label
8375     *
8376     * @param obj The frame object
8377     *
8378     * @return The label of this frame objet or NULL if unable to get frame
8379     *
8380     * @deprecated use elm_object_text_get() instead.
8381     */
8382    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8383
8384    /**
8385     * @brief Set the content of the frame widget
8386     *
8387     * Once the content object is set, a previously set one will be deleted.
8388     * If you want to keep that old content object, use the
8389     * elm_frame_content_unset() function.
8390     *
8391     * @param obj The frame object
8392     * @param content The content will be filled in this frame object
8393     *
8394     * @deprecated use elm_object_content_set() instead.
8395     */
8396    EINA_DEPRECATED EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
8397
8398    /**
8399     * @brief Get the content of the frame widget
8400     *
8401     * Return the content object which is set for this widget
8402     *
8403     * @param obj The frame object
8404     * @return The content that is being used
8405     *
8406     * @deprecated use elm_object_content_get() instead.
8407     */
8408    EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8409
8410    /**
8411     * @brief Unset the content of the frame widget
8412     *
8413     * Unparent and return the content object which was set for this widget
8414     *
8415     * @param obj The frame object
8416     * @return The content that was being used
8417     *
8418     * @deprecated use elm_object_content_unset() instead.
8419     */
8420    EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
8421
8422    /**
8423     * @}
8424     */
8425
8426    /**
8427     * @defgroup Table Table
8428     *
8429     * A container widget to arrange other widgets in a table where items can
8430     * also span multiple columns or rows - even overlap (and then be raised or
8431     * lowered accordingly to adjust stacking if they do overlap).
8432     *
8433     * For a Table widget the row/column count is not fixed.
8434     * The table widget adjusts itself when subobjects are added to it dynamically.
8435     *
8436     * The followin are examples of how to use a table:
8437     * @li @ref tutorial_table_01
8438     * @li @ref tutorial_table_02
8439     *
8440     * @{
8441     */
8442
8443    /**
8444     * @brief Add a new table to the parent
8445     *
8446     * @param parent The parent object
8447     * @return The new object or NULL if it cannot be created
8448     */
8449    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8450
8451    /**
8452     * @brief Set the homogeneous layout in the table
8453     *
8454     * @param obj The layout object
8455     * @param homogeneous A boolean to set if the layout is homogeneous in the
8456     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
8457     */
8458    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
8459
8460    /**
8461     * @brief Get the current table homogeneous mode.
8462     *
8463     * @param obj The table object
8464     * @return A boolean to indicating if the layout is homogeneous in the table
8465     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
8466     */
8467    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8468
8469    /**
8470     * @brief Set padding between cells.
8471     *
8472     * @param obj The layout object.
8473     * @param horizontal set the horizontal padding.
8474     * @param vertical set the vertical padding.
8475     *
8476     * Default value is 0.
8477     */
8478    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
8479
8480    /**
8481     * @brief Get padding between cells.
8482     *
8483     * @param obj The layout object.
8484     * @param horizontal set the horizontal padding.
8485     * @param vertical set the vertical padding.
8486     */
8487    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
8488
8489    /**
8490     * @brief Add a subobject on the table with the coordinates passed
8491     *
8492     * @param obj The table object
8493     * @param subobj The subobject to be added to the table
8494     * @param x Row number
8495     * @param y Column number
8496     * @param w rowspan
8497     * @param h colspan
8498     *
8499     * @note All positioning inside the table is relative to rows and columns, so
8500     * a value of 0 for x and y, means the top left cell of the table, and a
8501     * value of 1 for w and h means @p subobj only takes that 1 cell.
8502     */
8503    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
8504
8505    /**
8506     * @brief Remove child from table.
8507     *
8508     * @param obj The table object
8509     * @param subobj The subobject
8510     */
8511    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
8512
8513    /**
8514     * @brief Faster way to remove all child objects from a table object.
8515     *
8516     * @param obj The table object
8517     * @param clear If true, will delete children, else just remove from table.
8518     */
8519    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
8520
8521    /**
8522     * @brief Set the packing location of an existing child of the table
8523     *
8524     * @param subobj The subobject to be modified in the table
8525     * @param x Row number
8526     * @param y Column number
8527     * @param w rowspan
8528     * @param h colspan
8529     *
8530     * Modifies the position of an object already in the table.
8531     *
8532     * @note All positioning inside the table is relative to rows and columns, so
8533     * a value of 0 for x and y, means the top left cell of the table, and a
8534     * value of 1 for w and h means @p subobj only takes that 1 cell.
8535     */
8536    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
8537
8538    /**
8539     * @brief Get the packing location of an existing child of the table
8540     *
8541     * @param subobj The subobject to be modified in the table
8542     * @param x Row number
8543     * @param y Column number
8544     * @param w rowspan
8545     * @param h colspan
8546     *
8547     * @see elm_table_pack_set()
8548     */
8549    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
8550
8551    /**
8552     * @}
8553     */
8554
8555    /* TEMPORARY: DOCS WILL BE FILLED IN WITH CNP/SED */
8556    typedef struct Elm_Gen_Item Elm_Gen_Item;
8557    typedef struct _Elm_Gen_Item_Class Elm_Gen_Item_Class;
8558    typedef struct _Elm_Gen_Item_Class_Func Elm_Gen_Item_Class_Func; /**< Class functions for gen item classes. */
8559    typedef char        *(*Elm_Gen_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gen item classes. */
8560    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. */
8561    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. */
8562    typedef void         (*Elm_Gen_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gen item classes. */
8563    struct _Elm_Gen_Item_Class
8564      {
8565         const char             *item_style;
8566         struct _Elm_Gen_Item_Class_Func
8567           {
8568              Elm_Gen_Item_Text_Get_Cb  text_get;
8569              Elm_Gen_Item_Content_Get_Cb  content_get;
8570              Elm_Gen_Item_State_Get_Cb state_get;
8571              Elm_Gen_Item_Del_Cb       del;
8572           } func;
8573      };
8574    EINA_DEPRECATED EAPI void elm_gen_clear(Evas_Object *obj);
8575    EINA_DEPRECATED EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
8576    EINA_DEPRECATED EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
8577    EINA_DEPRECATED EAPI void elm_gen_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
8578    EINA_DEPRECATED EAPI Eina_Bool elm_gen_always_select_mode_get(const Evas_Object *obj);
8579    EINA_DEPRECATED EAPI void elm_gen_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
8580    EINA_DEPRECATED EAPI Eina_Bool elm_gen_no_select_mode_get(const Evas_Object *obj);
8581    EINA_DEPRECATED EAPI void elm_gen_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
8582    EINA_DEPRECATED EAPI void elm_gen_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
8583    EINA_DEPRECATED EAPI void elm_gen_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
8584    EINA_DEPRECATED EAPI void elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
8585
8586    EINA_DEPRECATED EAPI void elm_gen_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
8587    EINA_DEPRECATED EAPI void elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8588    EINA_DEPRECATED EAPI void elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8589    EINA_DEPRECATED EAPI void elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8590    EINA_DEPRECATED EAPI void elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8591    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_first_item_get(const Evas_Object *obj);
8592    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_last_item_get(const Evas_Object *obj);
8593    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_next_get(const Elm_Gen_Item *it);
8594    EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_prev_get(const Elm_Gen_Item *it);
8595    EINA_DEPRECATED EAPI Evas_Object *elm_gen_item_widget_get(const Elm_Gen_Item *it);
8596
8597    /**
8598     * @defgroup Gengrid Gengrid (Generic grid)
8599     *
8600     * This widget aims to position objects in a grid layout while
8601     * actually creating and rendering only the visible ones, using the
8602     * same idea as the @ref Genlist "genlist": the user defines a @b
8603     * class for each item, specifying functions that will be called at
8604     * object creation, deletion, etc. When those items are selected by
8605     * the user, a callback function is issued. Users may interact with
8606     * a gengrid via the mouse (by clicking on items to select them and
8607     * clicking on the grid's viewport and swiping to pan the whole
8608     * view) or via the keyboard, navigating through item with the
8609     * arrow keys.
8610     *
8611     * @section Gengrid_Layouts Gengrid layouts
8612     *
8613     * Gengrid may layout its items in one of two possible layouts:
8614     * - horizontal or
8615     * - vertical.
8616     *
8617     * When in "horizontal mode", items will be placed in @b columns,
8618     * from top to bottom and, when the space for a column is filled,
8619     * another one is started on the right, thus expanding the grid
8620     * horizontally, making for horizontal scrolling. When in "vertical
8621     * mode" , though, items will be placed in @b rows, from left to
8622     * right and, when the space for a row is filled, another one is
8623     * started below, thus expanding the grid vertically (and making
8624     * for vertical scrolling).
8625     *
8626     * @section Gengrid_Items Gengrid items
8627     *
8628     * An item in a gengrid can have 0 or more texts (they can be
8629     * regular text or textblock Evas objects - that's up to the style
8630     * to determine), 0 or more contents (which are simply objects
8631     * swallowed into the gengrid item's theming Edje object) and 0 or
8632     * more <b>boolean states</b>, which have the behavior left to the
8633     * user to define. The Edje part names for each of these properties
8634     * will be looked up, in the theme file for the gengrid, under the
8635     * Edje (string) data items named @c "texts", @c "contents" and @c
8636     * "states", respectively. For each of those properties, if more
8637     * than one part is provided, they must have names listed separated
8638     * by spaces in the data fields. For the default gengrid item
8639     * theme, we have @b one text part (@c "elm.text"), @b two content 
8640     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
8641     * no state parts.
8642     *
8643     * A gengrid item may be at one of several styles. Elementary
8644     * provides one by default - "default", but this can be extended by
8645     * system or application custom themes/overlays/extensions (see
8646     * @ref Theme "themes" for more details).
8647     *
8648     * @section Gengrid_Item_Class Gengrid item classes
8649     *
8650     * In order to have the ability to add and delete items on the fly,
8651     * gengrid implements a class (callback) system where the
8652     * application provides a structure with information about that
8653     * type of item (gengrid may contain multiple different items with
8654     * different classes, states and styles). Gengrid will call the
8655     * functions in this struct (methods) when an item is "realized"
8656     * (i.e., created dynamically, while the user is scrolling the
8657     * grid). All objects will simply be deleted when no longer needed
8658     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
8659     * contains the following members:
8660     * - @c item_style - This is a constant string and simply defines
8661     * the name of the item style. It @b must be specified and the
8662     * default should be @c "default".
8663     * - @c func.text_get - This function is called when an item
8664     * object is actually created. The @c data parameter will point to
8665     * the same data passed to elm_gengrid_item_append() and related
8666     * item creation functions. The @c obj parameter is the gengrid
8667     * object itself, while the @c part one is the name string of one
8668     * of the existing text parts in the Edje group implementing the
8669     * item's theme. This function @b must return a strdup'()ed string,
8670     * as the caller will free() it when done. See
8671     * #Elm_Gengrid_Item_Text_Get_Cb.
8672     * - @c func.content_get - This function is called when an item object
8673     * is actually created. The @c data parameter will point to the
8674     * same data passed to elm_gengrid_item_append() and related item
8675     * creation functions. The @c obj parameter is the gengrid object
8676     * itself, while the @c part one is the name string of one of the
8677     * existing (content) swallow parts in the Edje group implementing the
8678     * item's theme. It must return @c NULL, when no content is desired,
8679     * or a valid object handle, otherwise. The object will be deleted
8680     * by the gengrid on its deletion or when the item is "unrealized".
8681     * See #Elm_Gengrid_Item_Content_Get_Cb.
8682     * - @c func.state_get - This function is called when an item
8683     * object is actually created. The @c data parameter will point to
8684     * the same data passed to elm_gengrid_item_append() and related
8685     * item creation functions. The @c obj parameter is the gengrid
8686     * object itself, while the @c part one is the name string of one
8687     * of the state parts in the Edje group implementing the item's
8688     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
8689     * true/on. Gengrids will emit a signal to its theming Edje object
8690     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
8691     * "source" arguments, respectively, when the state is true (the
8692     * default is false), where @c XXX is the name of the (state) part.
8693     * See #Elm_Gengrid_Item_State_Get_Cb.
8694     * - @c func.del - This is called when elm_gengrid_item_del() is
8695     * called on an item or elm_gengrid_clear() is called on the
8696     * gengrid. This is intended for use when gengrid items are
8697     * deleted, so any data attached to the item (e.g. its data
8698     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
8699     *
8700     * @section Gengrid_Usage_Hints Usage hints
8701     *
8702     * If the user wants to have multiple items selected at the same
8703     * time, elm_gengrid_multi_select_set() will permit it. If the
8704     * gengrid is single-selection only (the default), then
8705     * elm_gengrid_select_item_get() will return the selected item or
8706     * @c NULL, if none is selected. If the gengrid is under
8707     * multi-selection, then elm_gengrid_selected_items_get() will
8708     * return a list (that is only valid as long as no items are
8709     * modified (added, deleted, selected or unselected) of child items
8710     * on a gengrid.
8711     *
8712     * If an item changes (internal (boolean) state, text or content
8713     * changes), then use elm_gengrid_item_update() to have gengrid
8714     * update the item with the new state. A gengrid will re-"realize"
8715     * the item, thus calling the functions in the
8716     * #Elm_Gengrid_Item_Class set for that item.
8717     *
8718     * To programmatically (un)select an item, use
8719     * elm_gengrid_item_selected_set(). To get its selected state use
8720     * elm_gengrid_item_selected_get(). To make an item disabled
8721     * (unable to be selected and appear differently) use
8722     * elm_gengrid_item_disabled_set() to set this and
8723     * elm_gengrid_item_disabled_get() to get the disabled state.
8724     *
8725     * Grid cells will only have their selection smart callbacks called
8726     * when firstly getting selected. Any further clicks will do
8727     * nothing, unless you enable the "always select mode", with
8728     * elm_gengrid_always_select_mode_set(), thus making every click to
8729     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
8730     * turn off the ability to select items entirely in the widget and
8731     * they will neither appear selected nor call the selection smart
8732     * callbacks.
8733     *
8734     * Remember that you can create new styles and add your own theme
8735     * augmentation per application with elm_theme_extension_add(). If
8736     * you absolutely must have a specific style that overrides any
8737     * theme the user or system sets up you can use
8738     * elm_theme_overlay_add() to add such a file.
8739     *
8740     * @section Gengrid_Smart_Events Gengrid smart events
8741     *
8742     * Smart events that you can add callbacks for are:
8743     * - @c "activated" - The user has double-clicked or pressed
8744     *   (enter|return|spacebar) on an item. The @c event_info parameter
8745     *   is the gengrid item that was activated.
8746     * - @c "clicked,double" - The user has double-clicked an item.
8747     *   The @c event_info parameter is the gengrid item that was double-clicked.
8748     * - @c "longpressed" - This is called when the item is pressed for a certain
8749     *   amount of time. By default it's 1 second.
8750     * - @c "selected" - The user has made an item selected. The
8751     *   @c event_info parameter is the gengrid item that was selected.
8752     * - @c "unselected" - The user has made an item unselected. The
8753     *   @c event_info parameter is the gengrid item that was unselected.
8754     * - @c "realized" - This is called when the item in the gengrid
8755     *   has its implementing Evas object instantiated, de facto. @c
8756     *   event_info is the gengrid item that was created. The object
8757     *   may be deleted at any time, so it is highly advised to the
8758     *   caller @b not to use the object pointer returned from
8759     *   elm_gengrid_item_object_get(), because it may point to freed
8760     *   objects.
8761     * - @c "unrealized" - This is called when the implementing Evas
8762     *   object for this item is deleted. @c event_info is the gengrid
8763     *   item that was deleted.
8764     * - @c "changed" - Called when an item is added, removed, resized
8765     *   or moved and when the gengrid is resized or gets "horizontal"
8766     *   property changes.
8767     * - @c "scroll,anim,start" - This is called when scrolling animation has
8768     *   started.
8769     * - @c "scroll,anim,stop" - This is called when scrolling animation has
8770     *   stopped.
8771     * - @c "drag,start,up" - Called when the item in the gengrid has
8772     *   been dragged (not scrolled) up.
8773     * - @c "drag,start,down" - Called when the item in the gengrid has
8774     *   been dragged (not scrolled) down.
8775     * - @c "drag,start,left" - Called when the item in the gengrid has
8776     *   been dragged (not scrolled) left.
8777     * - @c "drag,start,right" - Called when the item in the gengrid has
8778     *   been dragged (not scrolled) right.
8779     * - @c "drag,stop" - Called when the item in the gengrid has
8780     *   stopped being dragged.
8781     * - @c "drag" - Called when the item in the gengrid is being
8782     *   dragged.
8783     * - @c "scroll" - called when the content has been scrolled
8784     *   (moved).
8785     * - @c "scroll,drag,start" - called when dragging the content has
8786     *   started.
8787     * - @c "scroll,drag,stop" - called when dragging the content has
8788     *   stopped.
8789     * - @c "edge,top" - This is called when the gengrid is scrolled until
8790     *   the top edge.
8791     * - @c "edge,bottom" - This is called when the gengrid is scrolled
8792     *   until the bottom edge.
8793     * - @c "edge,left" - This is called when the gengrid is scrolled
8794     *   until the left edge.
8795     * - @c "edge,right" - This is called when the gengrid is scrolled
8796     *   until the right edge.
8797     *
8798     * List of gengrid examples:
8799     * @li @ref gengrid_example
8800     */
8801
8802    /**
8803     * @addtogroup Gengrid
8804     * @{
8805     */
8806
8807    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8808    #define Elm_Gengrid_Item_Class Elm_Gen_Item_Class
8809    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8810    #define Elm_Gengrid_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
8811    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8812
8813    /**
8814     * Text fetching class function for Elm_Gen_Item_Class.
8815     * @param data The data passed in the item creation function
8816     * @param obj The base widget object
8817     * @param part The part name of the swallow
8818     * @return The allocated (NOT stringshared) string to set as the text 
8819     */
8820    typedef char        *(*Elm_Gengrid_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8821
8822    /**
8823     * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
8824     * @param data The data passed in the item creation function
8825     * @param obj The base widget object
8826     * @param part The part name of the swallow
8827     * @return The content object to swallow
8828     */
8829    typedef Evas_Object *(*Elm_Gengrid_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part);
8830
8831    /**
8832     * State fetching class function for Elm_Gen_Item_Class.
8833     * @param data The data passed in the item creation function
8834     * @param obj The base widget object
8835     * @param part The part name of the swallow
8836     * @return The hell if I know
8837     */
8838    typedef Eina_Bool    (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8839
8840    /**
8841     * Deletion class function for Elm_Gen_Item_Class.
8842     * @param data The data passed in the item creation function
8843     * @param obj The base widget object
8844     */
8845    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj);
8846
8847    /**
8848     * @struct _Elm_Gengrid_Item_Class
8849     *
8850     * Gengrid item class definition. See @ref Gengrid_Item_Class for
8851     * field details.
8852     */
8853    struct _Elm_Gengrid_Item_Class
8854      {
8855         const char             *item_style;
8856         struct _Elm_Gengrid_Item_Class_Func
8857           {
8858              Elm_Gengrid_Item_Text_Get_Cb    text_get; /**< Text fetching class function for gengrid item classes.*/
8859              Elm_Gengrid_Item_Content_Get_Cb content_get; /**< Content fetching class function for gengrid item classes. */
8860              Elm_Gengrid_Item_State_Get_Cb   state_get; /**< State fetching class function for gengrid item classes. */
8861              Elm_Gengrid_Item_Del_Cb         del; /**< Deletion class function for gengrid item classes. */
8862           } func;
8863      }; /**< #Elm_Gengrid_Item_Class member definitions */
8864    #define Elm_Gengrid_Item_Class_Func Elm_Gen_Item_Class_Func
8865
8866    /**
8867     * Add a new gengrid widget to the given parent Elementary
8868     * (container) object
8869     *
8870     * @param parent The parent object
8871     * @return a new gengrid widget handle or @c NULL, on errors
8872     *
8873     * This function inserts a new gengrid widget on the canvas.
8874     *
8875     * @see elm_gengrid_item_size_set()
8876     * @see elm_gengrid_group_item_size_set()
8877     * @see elm_gengrid_horizontal_set()
8878     * @see elm_gengrid_item_append()
8879     * @see elm_gengrid_item_del()
8880     * @see elm_gengrid_clear()
8881     *
8882     * @ingroup Gengrid
8883     */
8884    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8885
8886    /**
8887     * Set the size for the items of a given gengrid widget
8888     *
8889     * @param obj The gengrid object.
8890     * @param w The items' width.
8891     * @param h The items' height;
8892     *
8893     * A gengrid, after creation, has still no information on the size
8894     * to give to each of its cells. So, you most probably will end up
8895     * with squares one @ref Fingers "finger" wide, the default
8896     * size. Use this function to force a custom size for you items,
8897     * making them as big as you wish.
8898     *
8899     * @see elm_gengrid_item_size_get()
8900     *
8901     * @ingroup Gengrid
8902     */
8903    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8904
8905    /**
8906     * Get the size set for the items of a given gengrid widget
8907     *
8908     * @param obj The gengrid object.
8909     * @param w Pointer to a variable where to store the items' width.
8910     * @param h Pointer to a variable where to store the items' height.
8911     *
8912     * @note Use @c NULL pointers on the size values you're not
8913     * interested in: they'll be ignored by the function.
8914     *
8915     * @see elm_gengrid_item_size_get() for more details
8916     *
8917     * @ingroup Gengrid
8918     */
8919    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8920
8921    /**
8922     * Set the size for the group items of a given gengrid widget
8923     *
8924     * @param obj The gengrid object.
8925     * @param w The group items' width.
8926     * @param h The group items' height;
8927     *
8928     * A gengrid, after creation, has still no information on the size
8929     * to give to each of its cells. So, you most probably will end up
8930     * with squares one @ref Fingers "finger" wide, the default
8931     * size. Use this function to force a custom size for you group items,
8932     * making them as big as you wish.
8933     *
8934     * @see elm_gengrid_group_item_size_get()
8935     *
8936     * @ingroup Gengrid
8937     */
8938    EAPI void               elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8939
8940    /**
8941     * Get the size set for the group items of a given gengrid widget
8942     *
8943     * @param obj The gengrid object.
8944     * @param w Pointer to a variable where to store the group items' width.
8945     * @param h Pointer to a variable where to store the group items' height.
8946     *
8947     * @note Use @c NULL pointers on the size values you're not
8948     * interested in: they'll be ignored by the function.
8949     *
8950     * @see elm_gengrid_group_item_size_get() for more details
8951     *
8952     * @ingroup Gengrid
8953     */
8954    EAPI void               elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8955
8956    /**
8957     * Set the items grid's alignment within a given gengrid widget
8958     *
8959     * @param obj The gengrid object.
8960     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8961     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8962     *
8963     * This sets the alignment of the whole grid of items of a gengrid
8964     * within its given viewport. By default, those values are both
8965     * 0.5, meaning that the gengrid will have its items grid placed
8966     * exactly in the middle of its viewport.
8967     *
8968     * @note If given alignment values are out of the cited ranges,
8969     * they'll be changed to the nearest boundary values on the valid
8970     * ranges.
8971     *
8972     * @see elm_gengrid_align_get()
8973     *
8974     * @ingroup Gengrid
8975     */
8976    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8977
8978    /**
8979     * Get the items grid's alignment values within a given gengrid
8980     * widget
8981     *
8982     * @param obj The gengrid object.
8983     * @param align_x Pointer to a variable where to store the
8984     * horizontal alignment.
8985     * @param align_y Pointer to a variable where to store the vertical
8986     * alignment.
8987     *
8988     * @note Use @c NULL pointers on the alignment values you're not
8989     * interested in: they'll be ignored by the function.
8990     *
8991     * @see elm_gengrid_align_set() for more details
8992     *
8993     * @ingroup Gengrid
8994     */
8995    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8996
8997    /**
8998     * Set whether a given gengrid widget is or not able have items
8999     * @b reordered
9000     *
9001     * @param obj The gengrid object
9002     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
9003     * @c EINA_FALSE to turn it off
9004     *
9005     * If a gengrid is set to allow reordering, a click held for more
9006     * than 0.5 over a given item will highlight it specially,
9007     * signalling the gengrid has entered the reordering state. From
9008     * that time on, the user will be able to, while still holding the
9009     * mouse button down, move the item freely in the gengrid's
9010     * viewport, replacing to said item to the locations it goes to.
9011     * The replacements will be animated and, whenever the user
9012     * releases the mouse button, the item being replaced gets a new
9013     * definitive place in the grid.
9014     *
9015     * @see elm_gengrid_reorder_mode_get()
9016     *
9017     * @ingroup Gengrid
9018     */
9019    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
9020
9021    /**
9022     * Get whether a given gengrid widget is or not able have items
9023     * @b reordered
9024     *
9025     * @param obj The gengrid object
9026     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
9027     * off
9028     *
9029     * @see elm_gengrid_reorder_mode_set() for more details
9030     *
9031     * @ingroup Gengrid
9032     */
9033    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9034
9035    /**
9036     * Append a new item in a given gengrid widget.
9037     *
9038     * @param obj The gengrid object.
9039     * @param gic The item class for the item.
9040     * @param data The item data.
9041     * @param func Convenience function called when the item is
9042     * selected.
9043     * @param func_data Data to be passed to @p func.
9044     * @return A handle to the item added or @c NULL, on errors.
9045     *
9046     * This adds an item to the beginning of the gengrid.
9047     *
9048     * @see elm_gengrid_item_prepend()
9049     * @see elm_gengrid_item_insert_before()
9050     * @see elm_gengrid_item_insert_after()
9051     * @see elm_gengrid_item_del()
9052     *
9053     * @ingroup Gengrid
9054     */
9055    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);
9056
9057    /**
9058     * Prepend a new item in a given gengrid widget.
9059     *
9060     * @param obj The gengrid object.
9061     * @param gic The item class for the item.
9062     * @param data The item data.
9063     * @param func Convenience function called when the item is
9064     * selected.
9065     * @param func_data Data to be passed to @p func.
9066     * @return A handle to the item added or @c NULL, on errors.
9067     *
9068     * This adds an item to the end of the gengrid.
9069     *
9070     * @see elm_gengrid_item_append()
9071     * @see elm_gengrid_item_insert_before()
9072     * @see elm_gengrid_item_insert_after()
9073     * @see elm_gengrid_item_del()
9074     *
9075     * @ingroup Gengrid
9076     */
9077    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);
9078
9079    /**
9080     * Insert an item before another in a gengrid widget
9081     *
9082     * @param obj The gengrid object.
9083     * @param gic The item class for the item.
9084     * @param data The item data.
9085     * @param relative The item to place this new one before.
9086     * @param func Convenience function called when the item is
9087     * selected.
9088     * @param func_data Data to be passed to @p func.
9089     * @return A handle to the item added or @c NULL, on errors.
9090     *
9091     * This inserts an item before another in the gengrid.
9092     *
9093     * @see elm_gengrid_item_append()
9094     * @see elm_gengrid_item_prepend()
9095     * @see elm_gengrid_item_insert_after()
9096     * @see elm_gengrid_item_del()
9097     *
9098     * @ingroup Gengrid
9099     */
9100    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);
9101
9102    /**
9103     * Insert an item after another in a gengrid widget
9104     *
9105     * @param obj The gengrid object.
9106     * @param gic The item class for the item.
9107     * @param data The item data.
9108     * @param relative The item to place this new one after.
9109     * @param func Convenience function called when the item is
9110     * selected.
9111     * @param func_data Data to be passed to @p func.
9112     * @return A handle to the item added or @c NULL, on errors.
9113     *
9114     * This inserts an item after another in the gengrid.
9115     *
9116     * @see elm_gengrid_item_append()
9117     * @see elm_gengrid_item_prepend()
9118     * @see elm_gengrid_item_insert_after()
9119     * @see elm_gengrid_item_del()
9120     *
9121     * @ingroup Gengrid
9122     */
9123    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);
9124
9125    /**
9126     * Insert an item in a gengrid widget using a user-defined sort function.
9127     *
9128     * @param obj The gengrid object.
9129     * @param gic The item class for the item.
9130     * @param data The item data.
9131     * @param comp User defined comparison function that defines the sort order based on
9132     * Elm_Gen_Item and its data param.
9133     * @param func Convenience function called when the item is selected.
9134     * @param func_data Data to be passed to @p func.
9135     * @return A handle to the item added or @c NULL, on errors.
9136     *
9137     * This inserts an item in the gengrid based on user defined comparison function.
9138     *
9139     * @see elm_gengrid_item_append()
9140     * @see elm_gengrid_item_prepend()
9141     * @see elm_gengrid_item_insert_after()
9142     * @see elm_gengrid_item_del()
9143     * @see elm_gengrid_item_direct_sorted_insert()
9144     *
9145     * @ingroup Gengrid
9146     */
9147    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);
9148
9149    /**
9150     * Insert an item in a gengrid widget using a user-defined sort function.
9151     *
9152     * @param obj The gengrid object.
9153     * @param gic The item class for the item.
9154     * @param data The item data.
9155     * @param comp User defined comparison function that defines the sort order based on
9156     * Elm_Gen_Item.
9157     * @param func Convenience function called when the item is selected.
9158     * @param func_data Data to be passed to @p func.
9159     * @return A handle to the item added or @c NULL, on errors.
9160     *
9161     * This inserts an item in the gengrid based on user defined comparison function.
9162     *
9163     * @see elm_gengrid_item_append()
9164     * @see elm_gengrid_item_prepend()
9165     * @see elm_gengrid_item_insert_after()
9166     * @see elm_gengrid_item_del()
9167     * @see elm_gengrid_item_sorted_insert()
9168     *
9169     * @ingroup Gengrid
9170     */
9171    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);
9172
9173    /**
9174     * Set whether items on a given gengrid widget are to get their
9175     * selection callbacks issued for @b every subsequent selection
9176     * click on them or just for the first click.
9177     *
9178     * @param obj The gengrid object
9179     * @param always_select @c EINA_TRUE to make items "always
9180     * selected", @c EINA_FALSE, otherwise
9181     *
9182     * By default, grid items will only call their selection callback
9183     * function when firstly getting selected, any subsequent further
9184     * clicks will do nothing. With this call, you make those
9185     * subsequent clicks also to issue the selection callbacks.
9186     *
9187     * @note <b>Double clicks</b> will @b always be reported on items.
9188     *
9189     * @see elm_gengrid_always_select_mode_get()
9190     *
9191     * @ingroup Gengrid
9192     */
9193    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
9194
9195    /**
9196     * Get whether items on a given gengrid widget have their selection
9197     * callbacks issued for @b every subsequent selection click on them
9198     * or just for the first click.
9199     *
9200     * @param obj The gengrid object.
9201     * @return @c EINA_TRUE if the gengrid items are "always selected",
9202     * @c EINA_FALSE, otherwise
9203     *
9204     * @see elm_gengrid_always_select_mode_set() for more details
9205     *
9206     * @ingroup Gengrid
9207     */
9208    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9209
9210    /**
9211     * Set whether items on a given gengrid widget can be selected or not.
9212     *
9213     * @param obj The gengrid object
9214     * @param no_select @c EINA_TRUE to make items selectable,
9215     * @c EINA_FALSE otherwise
9216     *
9217     * This will make items in @p obj selectable or not. In the latter
9218     * case, any user interaction on the gengrid items will neither make
9219     * them appear selected nor them call their selection callback
9220     * functions.
9221     *
9222     * @see elm_gengrid_no_select_mode_get()
9223     *
9224     * @ingroup Gengrid
9225     */
9226    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
9227
9228    /**
9229     * Get whether items on a given gengrid widget can be selected or
9230     * not.
9231     *
9232     * @param obj The gengrid object
9233     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
9234     * otherwise
9235     *
9236     * @see elm_gengrid_no_select_mode_set() for more details
9237     *
9238     * @ingroup Gengrid
9239     */
9240    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9241
9242    /**
9243     * Enable or disable multi-selection in a given gengrid widget
9244     *
9245     * @param obj The gengrid object.
9246     * @param multi @c EINA_TRUE, to enable multi-selection,
9247     * @c EINA_FALSE to disable it.
9248     *
9249     * Multi-selection is the ability to have @b more than one
9250     * item selected, on a given gengrid, simultaneously. When it is
9251     * enabled, a sequence of clicks on different items will make them
9252     * all selected, progressively. A click on an already selected item
9253     * will unselect it. If interacting via the keyboard,
9254     * multi-selection is enabled while holding the "Shift" key.
9255     *
9256     * @note By default, multi-selection is @b disabled on gengrids
9257     *
9258     * @see elm_gengrid_multi_select_get()
9259     *
9260     * @ingroup Gengrid
9261     */
9262    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
9263
9264    /**
9265     * Get whether multi-selection is enabled or disabled for a given
9266     * gengrid widget
9267     *
9268     * @param obj The gengrid object.
9269     * @return @c EINA_TRUE, if multi-selection is enabled, @c
9270     * EINA_FALSE otherwise
9271     *
9272     * @see elm_gengrid_multi_select_set() for more details
9273     *
9274     * @ingroup Gengrid
9275     */
9276    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9277
9278    /**
9279     * Enable or disable bouncing effect for a given gengrid widget
9280     *
9281     * @param obj The gengrid object
9282     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
9283     * @c EINA_FALSE to disable it
9284     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
9285     * @c EINA_FALSE to disable it
9286     *
9287     * The bouncing effect occurs whenever one reaches the gengrid's
9288     * edge's while panning it -- it will scroll past its limits a
9289     * little bit and return to the edge again, in a animated for,
9290     * automatically.
9291     *
9292     * @note By default, gengrids have bouncing enabled on both axis
9293     *
9294     * @see elm_gengrid_bounce_get()
9295     *
9296     * @ingroup Gengrid
9297     */
9298    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
9299
9300    /**
9301     * Get whether bouncing effects are enabled or disabled, for a
9302     * given gengrid widget, on each axis
9303     *
9304     * @param obj The gengrid object
9305     * @param h_bounce Pointer to a variable where to store the
9306     * horizontal bouncing flag.
9307     * @param v_bounce Pointer to a variable where to store the
9308     * vertical bouncing flag.
9309     *
9310     * @see elm_gengrid_bounce_set() for more details
9311     *
9312     * @ingroup Gengrid
9313     */
9314    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
9315
9316    /**
9317     * Set a given gengrid widget's scrolling page size, relative to
9318     * its viewport size.
9319     *
9320     * @param obj The gengrid object
9321     * @param h_pagerel The horizontal page (relative) size
9322     * @param v_pagerel The vertical page (relative) size
9323     *
9324     * The gengrid's scroller is capable of binding scrolling by the
9325     * user to "pages". It means that, while scrolling and, specially
9326     * after releasing the mouse button, the grid will @b snap to the
9327     * nearest displaying page's area. When page sizes are set, the
9328     * grid's continuous content area is split into (equal) page sized
9329     * pieces.
9330     *
9331     * This function sets the size of a page <b>relatively to the
9332     * viewport dimensions</b> of the gengrid, for each axis. A value
9333     * @c 1.0 means "the exact viewport's size", in that axis, while @c
9334     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
9335     * a viewport". Sane usable values are, than, between @c 0.0 and @c
9336     * 1.0. Values beyond those will make it behave behave
9337     * inconsistently. If you only want one axis to snap to pages, use
9338     * the value @c 0.0 for the other one.
9339     *
9340     * There is a function setting page size values in @b absolute
9341     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
9342     * is mutually exclusive to this one.
9343     *
9344     * @see elm_gengrid_page_relative_get()
9345     *
9346     * @ingroup Gengrid
9347     */
9348    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
9349
9350    /**
9351     * Get a given gengrid widget's scrolling page size, relative to
9352     * its viewport size.
9353     *
9354     * @param obj The gengrid object
9355     * @param h_pagerel Pointer to a variable where to store the
9356     * horizontal page (relative) size
9357     * @param v_pagerel Pointer to a variable where to store the
9358     * vertical page (relative) size
9359     *
9360     * @see elm_gengrid_page_relative_set() for more details
9361     *
9362     * @ingroup Gengrid
9363     */
9364    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
9365
9366    /**
9367     * Set a given gengrid widget's scrolling page size
9368     *
9369     * @param obj The gengrid object
9370     * @param h_pagerel The horizontal page size, in pixels
9371     * @param v_pagerel The vertical page size, in pixels
9372     *
9373     * The gengrid's scroller is capable of binding scrolling by the
9374     * user to "pages". It means that, while scrolling and, specially
9375     * after releasing the mouse button, the grid will @b snap to the
9376     * nearest displaying page's area. When page sizes are set, the
9377     * grid's continuous content area is split into (equal) page sized
9378     * pieces.
9379     *
9380     * This function sets the size of a page of the gengrid, in pixels,
9381     * for each axis. Sane usable values are, between @c 0 and the
9382     * dimensions of @p obj, for each axis. Values beyond those will
9383     * make it behave behave inconsistently. If you only want one axis
9384     * to snap to pages, use the value @c 0 for the other one.
9385     *
9386     * There is a function setting page size values in @b relative
9387     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
9388     * use is mutually exclusive to this one.
9389     *
9390     * @ingroup Gengrid
9391     */
9392    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
9393
9394    /**
9395     * @brief Get gengrid current page number.
9396     *
9397     * @param obj The gengrid object
9398     * @param h_pagenumber The horizontal page number
9399     * @param v_pagenumber The vertical page number
9400     *
9401     * The page number starts from 0. 0 is the first page.
9402     * Current page means the page which meet the top-left of the viewport.
9403     * If there are two or more pages in the viewport, it returns the number of page
9404     * which meet the top-left of the viewport.
9405     *
9406     * @see elm_gengrid_last_page_get()
9407     * @see elm_gengrid_page_show()
9408     * @see elm_gengrid_page_brint_in()
9409     */
9410    EAPI void         elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
9411
9412    /**
9413     * @brief Get scroll last page number.
9414     *
9415     * @param obj The gengrid object
9416     * @param h_pagenumber The horizontal page number
9417     * @param v_pagenumber The vertical page number
9418     *
9419     * The page number starts from 0. 0 is the first page.
9420     * This returns the last page number among the pages.
9421     *
9422     * @see elm_gengrid_current_page_get()
9423     * @see elm_gengrid_page_show()
9424     * @see elm_gengrid_page_brint_in()
9425     */
9426    EAPI void         elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
9427
9428    /**
9429     * Show a specific virtual region within the gengrid content object by page number.
9430     *
9431     * @param obj The gengrid object
9432     * @param h_pagenumber The horizontal page number
9433     * @param v_pagenumber The vertical page number
9434     *
9435     * 0, 0 of the indicated page is located at the top-left of the viewport.
9436     * This will jump to the page directly without animation.
9437     *
9438     * Example of usage:
9439     *
9440     * @code
9441     * sc = elm_gengrid_add(win);
9442     * elm_gengrid_content_set(sc, content);
9443     * elm_gengrid_page_relative_set(sc, 1, 0);
9444     * elm_gengrid_current_page_get(sc, &h_page, &v_page);
9445     * elm_gengrid_page_show(sc, h_page + 1, v_page);
9446     * @endcode
9447     *
9448     * @see elm_gengrid_page_bring_in()
9449     */
9450    EAPI void         elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
9451
9452    /**
9453     * Show a specific virtual region within the gengrid content object by page number.
9454     *
9455     * @param obj The gengrid object
9456     * @param h_pagenumber The horizontal page number
9457     * @param v_pagenumber The vertical page number
9458     *
9459     * 0, 0 of the indicated page is located at the top-left of the viewport.
9460     * This will slide to the page with animation.
9461     *
9462     * Example of usage:
9463     *
9464     * @code
9465     * sc = elm_gengrid_add(win);
9466     * elm_gengrid_content_set(sc, content);
9467     * elm_gengrid_page_relative_set(sc, 1, 0);
9468     * elm_gengrid_last_page_get(sc, &h_page, &v_page);
9469     * elm_gengrid_page_bring_in(sc, h_page, v_page);
9470     * @endcode
9471     *
9472     * @see elm_gengrid_page_show()
9473     */
9474     EAPI void         elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
9475
9476    /**
9477     * Set the direction in which a given gengrid widget will expand while
9478     * placing its items.
9479     *
9480     * @param obj The gengrid object.
9481     * @param setting @c EINA_TRUE to make the gengrid expand
9482     * horizontally, @c EINA_FALSE to expand vertically.
9483     *
9484     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
9485     * in @b columns, from top to bottom and, when the space for a
9486     * column is filled, another one is started on the right, thus
9487     * expanding the grid horizontally. When in "vertical mode"
9488     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
9489     * to right and, when the space for a row is filled, another one is
9490     * started below, thus expanding the grid vertically.
9491     *
9492     * @see elm_gengrid_horizontal_get()
9493     *
9494     * @ingroup Gengrid
9495     */
9496    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
9497
9498    /**
9499     * Get for what direction a given gengrid widget will expand while
9500     * placing its items.
9501     *
9502     * @param obj The gengrid object.
9503     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
9504     * @c EINA_FALSE if it's set to expand vertically.
9505     *
9506     * @see elm_gengrid_horizontal_set() for more detais
9507     *
9508     * @ingroup Gengrid
9509     */
9510    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9511
9512    /**
9513     * Get the first item in a given gengrid widget
9514     *
9515     * @param obj The gengrid object
9516     * @return The first item's handle or @c NULL, if there are no
9517     * items in @p obj (and on errors)
9518     *
9519     * This returns the first item in the @p obj's internal list of
9520     * items.
9521     *
9522     * @see elm_gengrid_last_item_get()
9523     *
9524     * @ingroup Gengrid
9525     */
9526    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9527
9528    /**
9529     * Get the last item in a given gengrid widget
9530     *
9531     * @param obj The gengrid object
9532     * @return The last item's handle or @c NULL, if there are no
9533     * items in @p obj (and on errors)
9534     *
9535     * This returns the last item in the @p obj's internal list of
9536     * items.
9537     *
9538     * @see elm_gengrid_first_item_get()
9539     *
9540     * @ingroup Gengrid
9541     */
9542    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9543
9544    /**
9545     * Get the @b next item in a gengrid widget's internal list of items,
9546     * given a handle to one of those items.
9547     *
9548     * @param item The gengrid item to fetch next from
9549     * @return The item after @p item, or @c NULL if there's none (and
9550     * on errors)
9551     *
9552     * This returns the item placed after the @p item, on the container
9553     * gengrid.
9554     *
9555     * @see elm_gengrid_item_prev_get()
9556     *
9557     * @ingroup Gengrid
9558     */
9559    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9560
9561    /**
9562     * Get the @b previous item in a gengrid widget's internal list of items,
9563     * given a handle to one of those items.
9564     *
9565     * @param item The gengrid item to fetch previous from
9566     * @return The item before @p item, or @c NULL if there's none (and
9567     * on errors)
9568     *
9569     * This returns the item placed before the @p item, on the container
9570     * gengrid.
9571     *
9572     * @see elm_gengrid_item_next_get()
9573     *
9574     * @ingroup Gengrid
9575     */
9576    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9577
9578    /**
9579     * Get the gengrid object's handle which contains a given gengrid
9580     * item
9581     *
9582     * @param item The item to fetch the container from
9583     * @return The gengrid (parent) object
9584     *
9585     * This returns the gengrid object itself that an item belongs to.
9586     *
9587     * @ingroup Gengrid
9588     */
9589    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9590
9591    /**
9592     * Remove a gengrid item from its parent, deleting it.
9593     *
9594     * @param item The item to be removed.
9595     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
9596     *
9597     * @see elm_gengrid_clear(), to remove all items in a gengrid at
9598     * once.
9599     *
9600     * @ingroup Gengrid
9601     */
9602    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9603
9604    /**
9605     * Update the contents of a given gengrid item
9606     *
9607     * @param item The gengrid item
9608     *
9609     * This updates an item by calling all the item class functions
9610     * again to get the contents, texts and states. Use this when the
9611     * original item data has changed and you want the changes to be
9612     * reflected.
9613     *
9614     * @ingroup Gengrid
9615     */
9616    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9617
9618    /**
9619     * Get the Gengrid Item class for the given Gengrid Item.
9620     *
9621     * @param item The gengrid item
9622     *
9623     * This returns the Gengrid_Item_Class for the given item. It can be used to examine
9624     * the function pointers and item_style.
9625     *
9626     * @ingroup Gengrid
9627     */
9628    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9629
9630    /**
9631     * Get the Gengrid Item class for the given Gengrid Item.
9632     *
9633     * This sets the Gengrid_Item_Class for the given item. It can be used to examine
9634     * the function pointers and item_style.
9635     *
9636     * @param item The gengrid item
9637     * @param gic The gengrid item class describing the function pointers and the item style.
9638     *
9639     * @ingroup Gengrid
9640     */
9641    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
9642
9643    /**
9644     * Return the data associated to a given gengrid item
9645     *
9646     * @param item The gengrid item.
9647     * @return the data associated with this item.
9648     *
9649     * This returns the @c data value passed on the
9650     * elm_gengrid_item_append() and related item addition calls.
9651     *
9652     * @see elm_gengrid_item_append()
9653     * @see elm_gengrid_item_data_set()
9654     *
9655     * @ingroup Gengrid
9656     */
9657    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9658
9659    /**
9660     * Set the data associated with a given gengrid item
9661     *
9662     * @param item The gengrid item
9663     * @param data The data pointer to set on it
9664     *
9665     * This @b overrides the @c data value passed on the
9666     * elm_gengrid_item_append() and related item addition calls. This
9667     * function @b won't call elm_gengrid_item_update() automatically,
9668     * so you'd issue it afterwards if you want to have the item
9669     * updated to reflect the new data.
9670     *
9671     * @see elm_gengrid_item_data_get()
9672     * @see elm_gengrid_item_update()
9673     *
9674     * @ingroup Gengrid
9675     */
9676    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
9677
9678    /**
9679     * Get a given gengrid item's position, relative to the whole
9680     * gengrid's grid area.
9681     *
9682     * @param item The Gengrid item.
9683     * @param x Pointer to variable to store the item's <b>row number</b>.
9684     * @param y Pointer to variable to store the item's <b>column number</b>.
9685     *
9686     * This returns the "logical" position of the item within the
9687     * gengrid. For example, @c (0, 1) would stand for first row,
9688     * second column.
9689     *
9690     * @ingroup Gengrid
9691     */
9692    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
9693
9694    /**
9695     * Set whether a given gengrid item is selected or not
9696     *
9697     * @param item The gengrid item
9698     * @param selected Use @c EINA_TRUE, to make it selected, @c
9699     * EINA_FALSE to make it unselected
9700     *
9701     * This sets the selected state of an item. If multi-selection is
9702     * not enabled on the containing gengrid and @p selected is @c
9703     * EINA_TRUE, any other previously selected items will get
9704     * unselected in favor of this new one.
9705     *
9706     * @see elm_gengrid_item_selected_get()
9707     *
9708     * @ingroup Gengrid
9709     */
9710    EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
9711
9712    /**
9713     * Get whether a given gengrid item is selected or not
9714     *
9715     * @param item The gengrid item
9716     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
9717     *
9718     * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
9719     *
9720     * @see elm_gengrid_item_selected_set() for more details
9721     *
9722     * @ingroup Gengrid
9723     */
9724    EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9725
9726    /**
9727     * Get the real Evas object created to implement the view of a
9728     * given gengrid item
9729     *
9730     * @param item The gengrid item.
9731     * @return the Evas object implementing this item's view.
9732     *
9733     * This returns the actual Evas object used to implement the
9734     * specified gengrid item's view. This may be @c NULL, as it may
9735     * not have been created or may have been deleted, at any time, by
9736     * the gengrid. <b>Do not modify this object</b> (move, resize,
9737     * show, hide, etc.), as the gengrid is controlling it. This
9738     * function is for querying, emitting custom signals or hooking
9739     * lower level callbacks for events on that object. Do not delete
9740     * this object under any circumstances.
9741     *
9742     * @see elm_gengrid_item_data_get()
9743     *
9744     * @ingroup Gengrid
9745     */
9746    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9747
9748    /**
9749     * Show the portion of a gengrid's internal grid containing a given
9750     * item, @b immediately.
9751     *
9752     * @param item The item to display
9753     *
9754     * This causes gengrid to @b redraw its viewport's contents to the
9755     * region contining the given @p item item, if it is not fully
9756     * visible.
9757     *
9758     * @see elm_gengrid_item_bring_in()
9759     *
9760     * @ingroup Gengrid
9761     */
9762    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9763
9764    /**
9765     * Animatedly bring in, to the visible area of a gengrid, a given
9766     * item on it.
9767     *
9768     * @param item The gengrid item to display
9769     *
9770     * This causes gengrid to jump to the given @p item and show
9771     * it (by scrolling), if it is not fully visible. This will use
9772     * animation to do so and take a period of time to complete.
9773     *
9774     * @see elm_gengrid_item_show()
9775     *
9776     * @ingroup Gengrid
9777     */
9778    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9779
9780    /**
9781     * Set whether a given gengrid item is disabled or not.
9782     *
9783     * @param item The gengrid item
9784     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
9785     * to enable it back.
9786     *
9787     * A disabled item cannot be selected or unselected. It will also
9788     * change its appearance, to signal the user it's disabled.
9789     *
9790     * @see elm_gengrid_item_disabled_get()
9791     *
9792     * @ingroup Gengrid
9793     */
9794    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
9795
9796    /**
9797     * Get whether a given gengrid item is disabled or not.
9798     *
9799     * @param item The gengrid item
9800     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
9801     * (and on errors).
9802     *
9803     * @see elm_gengrid_item_disabled_set() for more details
9804     *
9805     * @ingroup Gengrid
9806     */
9807    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9808
9809    /**
9810     * Set the text to be shown in a given gengrid item's tooltips.
9811     *
9812     * @param item The gengrid item
9813     * @param text The text to set in the content
9814     *
9815     * This call will setup the text to be used as tooltip to that item
9816     * (analogous to elm_object_tooltip_text_set(), but being item
9817     * tooltips with higher precedence than object tooltips). It can
9818     * have only one tooltip at a time, so any previous tooltip data
9819     * will get removed.
9820     *
9821     * @ingroup Gengrid
9822     */
9823    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
9824
9825    /**
9826     * Set the content to be shown in a given gengrid item's tooltip
9827     *
9828     * @param item The gengrid item.
9829     * @param func The function returning the tooltip contents.
9830     * @param data What to provide to @a func as callback data/context.
9831     * @param del_cb Called when data is not needed anymore, either when
9832     *        another callback replaces @p func, the tooltip is unset with
9833     *        elm_gengrid_item_tooltip_unset() or the owner @p item
9834     *        dies. This callback receives as its first parameter the
9835     *        given @p data, being @c event_info the item handle.
9836     *
9837     * This call will setup the tooltip's contents to @p item
9838     * (analogous to elm_object_tooltip_content_cb_set(), but being
9839     * item tooltips with higher precedence than object tooltips). It
9840     * can have only one tooltip at a time, so any previous tooltip
9841     * content will get removed. @p func (with @p data) will be called
9842     * every time Elementary needs to show the tooltip and it should
9843     * return a valid Evas object, which will be fully managed by the
9844     * tooltip system, getting deleted when the tooltip is gone.
9845     *
9846     * @ingroup Gengrid
9847     */
9848    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);
9849
9850    /**
9851     * Unset a tooltip from a given gengrid item
9852     *
9853     * @param item gengrid item to remove a previously set tooltip from.
9854     *
9855     * This call removes any tooltip set on @p item. The callback
9856     * provided as @c del_cb to
9857     * elm_gengrid_item_tooltip_content_cb_set() will be called to
9858     * notify it is not used anymore (and have resources cleaned, if
9859     * need be).
9860     *
9861     * @see elm_gengrid_item_tooltip_content_cb_set()
9862     *
9863     * @ingroup Gengrid
9864     */
9865    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9866
9867    /**
9868     * Set a different @b style for a given gengrid item's tooltip.
9869     *
9870     * @param item gengrid item with tooltip set
9871     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
9872     * "default", @c "transparent", etc)
9873     *
9874     * Tooltips can have <b>alternate styles</b> to be displayed on,
9875     * which are defined by the theme set on Elementary. This function
9876     * works analogously as elm_object_tooltip_style_set(), but here
9877     * applied only to gengrid item objects. The default style for
9878     * tooltips is @c "default".
9879     *
9880     * @note before you set a style you should define a tooltip with
9881     *       elm_gengrid_item_tooltip_content_cb_set() or
9882     *       elm_gengrid_item_tooltip_text_set()
9883     *
9884     * @see elm_gengrid_item_tooltip_style_get()
9885     *
9886     * @ingroup Gengrid
9887     */
9888    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9889
9890    /**
9891     * Get the style set a given gengrid item's tooltip.
9892     *
9893     * @param item gengrid item with tooltip already set on.
9894     * @return style the theme style in use, which defaults to
9895     *         "default". If the object does not have a tooltip set,
9896     *         then @c NULL is returned.
9897     *
9898     * @see elm_gengrid_item_tooltip_style_set() for more details
9899     *
9900     * @ingroup Gengrid
9901     */
9902    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9903
9904    /**
9905     * @brief Disable size restrictions on an object's tooltip
9906     * @param item The tooltip's anchor object
9907     * @param disable If EINA_TRUE, size restrictions are disabled
9908     * @return EINA_FALSE on failure, EINA_TRUE on success
9909     *
9910     * This function allows a tooltip to expand beyond its parant window's canvas.
9911     * It will instead be limited only by the size of the display.
9912     */
9913    EAPI Eina_Bool          elm_gengrid_item_tooltip_window_mode_set(Elm_Gengrid_Item *item, Eina_Bool disable);
9914
9915    /**
9916     * @brief Retrieve size restriction state of an object's tooltip
9917     * @param item The tooltip's anchor object
9918     * @return If EINA_TRUE, size restrictions are disabled
9919     *
9920     * This function returns whether a tooltip is allowed to expand beyond
9921     * its parant window's canvas.
9922     * It will instead be limited only by the size of the display.
9923     */
9924    EAPI Eina_Bool          elm_gengrid_item_tooltip_window_mode_get(const Elm_Gengrid_Item *item);
9925
9926    /**
9927     * Set the type of mouse pointer/cursor decoration to be shown,
9928     * when the mouse pointer is over the given gengrid widget item
9929     *
9930     * @param item gengrid item to customize cursor on
9931     * @param cursor the cursor type's name
9932     *
9933     * This function works analogously as elm_object_cursor_set(), but
9934     * here the cursor's changing area is restricted to the item's
9935     * area, and not the whole widget's. Note that that item cursors
9936     * have precedence over widget cursors, so that a mouse over @p
9937     * item will always show cursor @p type.
9938     *
9939     * If this function is called twice for an object, a previously set
9940     * cursor will be unset on the second call.
9941     *
9942     * @see elm_object_cursor_set()
9943     * @see elm_gengrid_item_cursor_get()
9944     * @see elm_gengrid_item_cursor_unset()
9945     *
9946     * @ingroup Gengrid
9947     */
9948    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
9949
9950    /**
9951     * Get the type of mouse pointer/cursor decoration set to be shown,
9952     * when the mouse pointer is over the given gengrid widget item
9953     *
9954     * @param item gengrid item with custom cursor set
9955     * @return the cursor type's name or @c NULL, if no custom cursors
9956     * were set to @p item (and on errors)
9957     *
9958     * @see elm_object_cursor_get()
9959     * @see elm_gengrid_item_cursor_set() for more details
9960     * @see elm_gengrid_item_cursor_unset()
9961     *
9962     * @ingroup Gengrid
9963     */
9964    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9965
9966    /**
9967     * Unset any custom mouse pointer/cursor decoration set to be
9968     * shown, when the mouse pointer is over the given gengrid widget
9969     * item, thus making it show the @b default cursor again.
9970     *
9971     * @param item a gengrid item
9972     *
9973     * Use this call to undo any custom settings on this item's cursor
9974     * decoration, bringing it back to defaults (no custom style set).
9975     *
9976     * @see elm_object_cursor_unset()
9977     * @see elm_gengrid_item_cursor_set() for more details
9978     *
9979     * @ingroup Gengrid
9980     */
9981    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9982
9983    /**
9984     * Set a different @b style for a given custom cursor set for a
9985     * gengrid item.
9986     *
9987     * @param item gengrid item with custom cursor set
9988     * @param style the <b>theme style</b> to use (e.g. @c "default",
9989     * @c "transparent", etc)
9990     *
9991     * This function only makes sense when one is using custom mouse
9992     * cursor decorations <b>defined in a theme file</b> , which can
9993     * have, given a cursor name/type, <b>alternate styles</b> on
9994     * it. It works analogously as elm_object_cursor_style_set(), but
9995     * here applied only to gengrid item objects.
9996     *
9997     * @warning Before you set a cursor style you should have defined a
9998     *       custom cursor previously on the item, with
9999     *       elm_gengrid_item_cursor_set()
10000     *
10001     * @see elm_gengrid_item_cursor_engine_only_set()
10002     * @see elm_gengrid_item_cursor_style_get()
10003     *
10004     * @ingroup Gengrid
10005     */
10006    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
10007
10008    /**
10009     * Get the current @b style set for a given gengrid item's custom
10010     * cursor
10011     *
10012     * @param item gengrid item with custom cursor set.
10013     * @return style the cursor style in use. If the object does not
10014     *         have a cursor set, then @c NULL is returned.
10015     *
10016     * @see elm_gengrid_item_cursor_style_set() for more details
10017     *
10018     * @ingroup Gengrid
10019     */
10020    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
10021
10022    /**
10023     * Set if the (custom) cursor for a given gengrid item should be
10024     * searched in its theme, also, or should only rely on the
10025     * rendering engine.
10026     *
10027     * @param item item with custom (custom) cursor already set on
10028     * @param engine_only Use @c EINA_TRUE to have cursors looked for
10029     * only on those provided by the rendering engine, @c EINA_FALSE to
10030     * have them searched on the widget's theme, as well.
10031     *
10032     * @note This call is of use only if you've set a custom cursor
10033     * for gengrid items, with elm_gengrid_item_cursor_set().
10034     *
10035     * @note By default, cursors will only be looked for between those
10036     * provided by the rendering engine.
10037     *
10038     * @ingroup Gengrid
10039     */
10040    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
10041
10042    /**
10043     * Get if the (custom) cursor for a given gengrid item is being
10044     * searched in its theme, also, or is only relying on the rendering
10045     * engine.
10046     *
10047     * @param item a gengrid item
10048     * @return @c EINA_TRUE, if cursors are being looked for only on
10049     * those provided by the rendering engine, @c EINA_FALSE if they
10050     * are being searched on the widget's theme, as well.
10051     *
10052     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
10053     *
10054     * @ingroup Gengrid
10055     */
10056    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
10057
10058    /**
10059     * Remove all items from a given gengrid widget
10060     *
10061     * @param obj The gengrid object.
10062     *
10063     * This removes (and deletes) all items in @p obj, leaving it
10064     * empty.
10065     *
10066     * @see elm_gengrid_item_del(), to remove just one item.
10067     *
10068     * @ingroup Gengrid
10069     */
10070    EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
10071
10072    /**
10073     * Get the selected item in a given gengrid widget
10074     *
10075     * @param obj The gengrid object.
10076     * @return The selected item's handleor @c NULL, if none is
10077     * selected at the moment (and on errors)
10078     *
10079     * This returns the selected item in @p obj. If multi selection is
10080     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
10081     * the first item in the list is selected, which might not be very
10082     * useful. For that case, see elm_gengrid_selected_items_get().
10083     *
10084     * @ingroup Gengrid
10085     */
10086    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10087
10088    /**
10089     * Get <b>a list</b> of selected items in a given gengrid
10090     *
10091     * @param obj The gengrid object.
10092     * @return The list of selected items or @c NULL, if none is
10093     * selected at the moment (and on errors)
10094     *
10095     * This returns a list of the selected items, in the order that
10096     * they appear in the grid. This list is only valid as long as no
10097     * more items are selected or unselected (or unselected implictly
10098     * by deletion). The list contains #Elm_Gengrid_Item pointers as
10099     * data, naturally.
10100     *
10101     * @see elm_gengrid_selected_item_get()
10102     *
10103     * @ingroup Gengrid
10104     */
10105    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10106
10107    /**
10108     * @}
10109     */
10110
10111    /**
10112     * @defgroup Clock Clock
10113     *
10114     * @image html img/widget/clock/preview-00.png
10115     * @image latex img/widget/clock/preview-00.eps
10116     *
10117     * This is a @b digital clock widget. In its default theme, it has a
10118     * vintage "flipping numbers clock" appearance, which will animate
10119     * sheets of individual algarisms individually as time goes by.
10120     *
10121     * A newly created clock will fetch system's time (already
10122     * considering local time adjustments) to start with, and will tick
10123     * accondingly. It may or may not show seconds.
10124     *
10125     * Clocks have an @b edition mode. When in it, the sheets will
10126     * display extra arrow indications on the top and bottom and the
10127     * user may click on them to raise or lower the time values. After
10128     * it's told to exit edition mode, it will keep ticking with that
10129     * new time set (it keeps the difference from local time).
10130     *
10131     * Also, when under edition mode, user clicks on the cited arrows
10132     * which are @b held for some time will make the clock to flip the
10133     * sheet, thus editing the time, continuosly and automatically for
10134     * the user. The interval between sheet flips will keep growing in
10135     * time, so that it helps the user to reach a time which is distant
10136     * from the one set.
10137     *
10138     * The time display is, by default, in military mode (24h), but an
10139     * am/pm indicator may be optionally shown, too, when it will
10140     * switch to 12h.
10141     *
10142     * Smart callbacks one can register to:
10143     * - "changed" - the clock's user changed the time
10144     *
10145     * Here is an example on its usage:
10146     * @li @ref clock_example
10147     */
10148
10149    /**
10150     * @addtogroup Clock
10151     * @{
10152     */
10153
10154    /**
10155     * Identifiers for which clock digits should be editable, when a
10156     * clock widget is in edition mode. Values may be ORed together to
10157     * make a mask, naturally.
10158     *
10159     * @see elm_clock_edit_set()
10160     * @see elm_clock_digit_edit_set()
10161     */
10162    typedef enum _Elm_Clock_Digedit
10163      {
10164         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
10165         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
10166         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
10167         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
10168         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
10169         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
10170         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
10171         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
10172      } Elm_Clock_Digedit;
10173
10174    /**
10175     * Add a new clock widget to the given parent Elementary
10176     * (container) object
10177     *
10178     * @param parent The parent object
10179     * @return a new clock widget handle or @c NULL, on errors
10180     *
10181     * This function inserts a new clock widget on the canvas.
10182     *
10183     * @ingroup Clock
10184     */
10185    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10186
10187    /**
10188     * Set a clock widget's time, programmatically
10189     *
10190     * @param obj The clock widget object
10191     * @param hrs The hours to set
10192     * @param min The minutes to set
10193     * @param sec The secondes to set
10194     *
10195     * This function updates the time that is showed by the clock
10196     * widget.
10197     *
10198     *  Values @b must be set within the following ranges:
10199     * - 0 - 23, for hours
10200     * - 0 - 59, for minutes
10201     * - 0 - 59, for seconds,
10202     *
10203     * even if the clock is not in "military" mode.
10204     *
10205     * @warning The behavior for values set out of those ranges is @b
10206     * undefined.
10207     *
10208     * @ingroup Clock
10209     */
10210    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
10211
10212    /**
10213     * Get a clock widget's time values
10214     *
10215     * @param obj The clock object
10216     * @param[out] hrs Pointer to the variable to get the hours value
10217     * @param[out] min Pointer to the variable to get the minutes value
10218     * @param[out] sec Pointer to the variable to get the seconds value
10219     *
10220     * This function gets the time set for @p obj, returning
10221     * it on the variables passed as the arguments to function
10222     *
10223     * @note Use @c NULL pointers on the time values you're not
10224     * interested in: they'll be ignored by the function.
10225     *
10226     * @ingroup Clock
10227     */
10228    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
10229
10230    /**
10231     * Set whether a given clock widget is under <b>edition mode</b> or
10232     * under (default) displaying-only mode.
10233     *
10234     * @param obj The clock object
10235     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
10236     * put it back to "displaying only" mode
10237     *
10238     * This function makes a clock's time to be editable or not <b>by
10239     * user interaction</b>. When in edition mode, clocks @b stop
10240     * ticking, until one brings them back to canonical mode. The
10241     * elm_clock_digit_edit_set() function will influence which digits
10242     * of the clock will be editable. By default, all of them will be
10243     * (#ELM_CLOCK_NONE).
10244     *
10245     * @note am/pm sheets, if being shown, will @b always be editable
10246     * under edition mode.
10247     *
10248     * @see elm_clock_edit_get()
10249     *
10250     * @ingroup Clock
10251     */
10252    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
10253
10254    /**
10255     * Retrieve whether a given clock widget is under <b>edition
10256     * mode</b> or under (default) displaying-only mode.
10257     *
10258     * @param obj The clock object
10259     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
10260     * otherwise
10261     *
10262     * This function retrieves whether the clock's time can be edited
10263     * or not by user interaction.
10264     *
10265     * @see elm_clock_edit_set() for more details
10266     *
10267     * @ingroup Clock
10268     */
10269    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10270
10271    /**
10272     * Set what digits of the given clock widget should be editable
10273     * when in edition mode.
10274     *
10275     * @param obj The clock object
10276     * @param digedit Bit mask indicating the digits to be editable
10277     * (values in #Elm_Clock_Digedit).
10278     *
10279     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
10280     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
10281     * EINA_FALSE).
10282     *
10283     * @see elm_clock_digit_edit_get()
10284     *
10285     * @ingroup Clock
10286     */
10287    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
10288
10289    /**
10290     * Retrieve what digits of the given clock widget should be
10291     * editable when in edition mode.
10292     *
10293     * @param obj The clock object
10294     * @return Bit mask indicating the digits to be editable
10295     * (values in #Elm_Clock_Digedit).
10296     *
10297     * @see elm_clock_digit_edit_set() for more details
10298     *
10299     * @ingroup Clock
10300     */
10301    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10302
10303    /**
10304     * Set if the given clock widget must show hours in military or
10305     * am/pm mode
10306     *
10307     * @param obj The clock object
10308     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
10309     * to military mode
10310     *
10311     * This function sets if the clock must show hours in military or
10312     * am/pm mode. In some countries like Brazil the military mode
10313     * (00-24h-format) is used, in opposition to the USA, where the
10314     * am/pm mode is more commonly used.
10315     *
10316     * @see elm_clock_show_am_pm_get()
10317     *
10318     * @ingroup Clock
10319     */
10320    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
10321
10322    /**
10323     * Get if the given clock widget shows hours in military or am/pm
10324     * mode
10325     *
10326     * @param obj The clock object
10327     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
10328     * military
10329     *
10330     * This function gets if the clock shows hours in military or am/pm
10331     * mode.
10332     *
10333     * @see elm_clock_show_am_pm_set() for more details
10334     *
10335     * @ingroup Clock
10336     */
10337    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10338
10339    /**
10340     * Set if the given clock widget must show time with seconds or not
10341     *
10342     * @param obj The clock object
10343     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
10344     *
10345     * This function sets if the given clock must show or not elapsed
10346     * seconds. By default, they are @b not shown.
10347     *
10348     * @see elm_clock_show_seconds_get()
10349     *
10350     * @ingroup Clock
10351     */
10352    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
10353
10354    /**
10355     * Get whether the given clock widget is showing time with seconds
10356     * or not
10357     *
10358     * @param obj The clock object
10359     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
10360     *
10361     * This function gets whether @p obj is showing or not the elapsed
10362     * seconds.
10363     *
10364     * @see elm_clock_show_seconds_set()
10365     *
10366     * @ingroup Clock
10367     */
10368    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10369
10370    /**
10371     * Set the interval on time updates for an user mouse button hold
10372     * on clock widgets' time edition.
10373     *
10374     * @param obj The clock object
10375     * @param interval The (first) interval value in seconds
10376     *
10377     * This interval value is @b decreased while the user holds the
10378     * mouse pointer either incrementing or decrementing a given the
10379     * clock digit's value.
10380     *
10381     * This helps the user to get to a given time distant from the
10382     * current one easier/faster, as it will start to flip quicker and
10383     * quicker on mouse button holds.
10384     *
10385     * The calculation for the next flip interval value, starting from
10386     * the one set with this call, is the previous interval divided by
10387     * 1.05, so it decreases a little bit.
10388     *
10389     * The default starting interval value for automatic flips is
10390     * @b 0.85 seconds.
10391     *
10392     * @see elm_clock_interval_get()
10393     *
10394     * @ingroup Clock
10395     */
10396    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
10397
10398    /**
10399     * Get the interval on time updates for an user mouse button hold
10400     * on clock widgets' time edition.
10401     *
10402     * @param obj The clock object
10403     * @return The (first) interval value, in seconds, set on it
10404     *
10405     * @see elm_clock_interval_set() for more details
10406     *
10407     * @ingroup Clock
10408     */
10409    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10410
10411    /**
10412     * @}
10413     */
10414
10415    /**
10416     * @defgroup Layout Layout
10417     *
10418     * @image html img/widget/layout/preview-00.png
10419     * @image latex img/widget/layout/preview-00.eps width=\textwidth
10420     *
10421     * @image html img/layout-predefined.png
10422     * @image latex img/layout-predefined.eps width=\textwidth
10423     *
10424     * This is a container widget that takes a standard Edje design file and
10425     * wraps it very thinly in a widget.
10426     *
10427     * An Edje design (theme) file has a very wide range of possibilities to
10428     * describe the behavior of elements added to the Layout. Check out the Edje
10429     * documentation and the EDC reference to get more information about what can
10430     * be done with Edje.
10431     *
10432     * Just like @ref List, @ref Box, and other container widgets, any
10433     * object added to the Layout will become its child, meaning that it will be
10434     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
10435     *
10436     * The Layout widget can contain as many Contents, Boxes or Tables as
10437     * described in its theme file. For instance, objects can be added to
10438     * different Tables by specifying the respective Table part names. The same
10439     * is valid for Content and Box.
10440     *
10441     * The objects added as child of the Layout will behave as described in the
10442     * part description where they were added. There are 3 possible types of
10443     * parts where a child can be added:
10444     *
10445     * @section secContent Content (SWALLOW part)
10446     *
10447     * Only one object can be added to the @c SWALLOW part (but you still can
10448     * have many @c SWALLOW parts and one object on each of them). Use the @c
10449     * elm_object_content_set/get/unset functions to set, retrieve and unset
10450     * objects as content of the @c SWALLOW. After being set to this part, the
10451     * object size, position, visibility, clipping and other description
10452     * properties will be totally controlled by the description of the given part
10453     * (inside the Edje theme file).
10454     *
10455     * One can use @c evas_object_size_hint_* functions on the child to have some
10456     * kind of control over its behavior, but the resulting behavior will still
10457     * depend heavily on the @c SWALLOW part description.
10458     *
10459     * The Edje theme also can change the part description, based on signals or
10460     * scripts running inside the theme. This change can also be animated. All of
10461     * this will affect the child object set as content accordingly. The object
10462     * size will be changed if the part size is changed, it will animate move if
10463     * the part is moving, and so on.
10464     *
10465     * The following picture demonstrates a Layout widget with a child object
10466     * added to its @c SWALLOW:
10467     *
10468     * @image html layout_swallow.png
10469     * @image latex layout_swallow.eps width=\textwidth
10470     *
10471     * @section secBox Box (BOX part)
10472     *
10473     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
10474     * allows one to add objects to the box and have them distributed along its
10475     * area, accordingly to the specified @a layout property (now by @a layout we
10476     * mean the chosen layouting design of the Box, not the Layout widget
10477     * itself).
10478     *
10479     * A similar effect for having a box with its position, size and other things
10480     * controlled by the Layout theme would be to create an Elementary @ref Box
10481     * widget and add it as a Content in the @c SWALLOW part.
10482     *
10483     * The main difference of using the Layout Box is that its behavior, the box
10484     * properties like layouting format, padding, align, etc. will be all
10485     * controlled by the theme. This means, for example, that a signal could be
10486     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
10487     * handled the signal by changing the box padding, or align, or both. Using
10488     * the Elementary @ref Box widget is not necessarily harder or easier, it
10489     * just depends on the circunstances and requirements.
10490     *
10491     * The Layout Box can be used through the @c elm_layout_box_* set of
10492     * functions.
10493     *
10494     * The following picture demonstrates a Layout widget with many child objects
10495     * added to its @c BOX part:
10496     *
10497     * @image html layout_box.png
10498     * @image latex layout_box.eps width=\textwidth
10499     *
10500     * @section secTable Table (TABLE part)
10501     *
10502     * Just like the @ref secBox, the Layout Table is very similar to the
10503     * Elementary @ref Table widget. It allows one to add objects to the Table
10504     * specifying the row and column where the object should be added, and any
10505     * column or row span if necessary.
10506     *
10507     * Again, we could have this design by adding a @ref Table widget to the @c
10508     * SWALLOW part using elm_object_part_content_set(). The same difference happens
10509     * here when choosing to use the Layout Table (a @c TABLE part) instead of
10510     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
10511     *
10512     * The Layout Table can be used through the @c elm_layout_table_* set of
10513     * functions.
10514     *
10515     * The following picture demonstrates a Layout widget with many child objects
10516     * added to its @c TABLE part:
10517     *
10518     * @image html layout_table.png
10519     * @image latex layout_table.eps width=\textwidth
10520     *
10521     * @section secPredef Predefined Layouts
10522     *
10523     * Another interesting thing about the Layout widget is that it offers some
10524     * predefined themes that come with the default Elementary theme. These
10525     * themes can be set by the call elm_layout_theme_set(), and provide some
10526     * basic functionality depending on the theme used.
10527     *
10528     * Most of them already send some signals, some already provide a toolbar or
10529     * back and next buttons.
10530     *
10531     * These are available predefined theme layouts. All of them have class = @c
10532     * layout, group = @c application, and style = one of the following options:
10533     *
10534     * @li @c toolbar-content - application with toolbar and main content area
10535     * @li @c toolbar-content-back - application with toolbar and main content
10536     * area with a back button and title area
10537     * @li @c toolbar-content-back-next - application with toolbar and main
10538     * content area with a back and next buttons and title area
10539     * @li @c content-back - application with a main content area with a back
10540     * button and title area
10541     * @li @c content-back-next - application with a main content area with a
10542     * back and next buttons and title area
10543     * @li @c toolbar-vbox - application with toolbar and main content area as a
10544     * vertical box
10545     * @li @c toolbar-table - application with toolbar and main content area as a
10546     * table
10547     *
10548     * @section secExamples Examples
10549     *
10550     * Some examples of the Layout widget can be found here:
10551     * @li @ref layout_example_01
10552     * @li @ref layout_example_02
10553     * @li @ref layout_example_03
10554     * @li @ref layout_example_edc
10555     *
10556     */
10557
10558    /**
10559     * Add a new layout to the parent
10560     *
10561     * @param parent The parent object
10562     * @return The new object or NULL if it cannot be created
10563     *
10564     * @see elm_layout_file_set()
10565     * @see elm_layout_theme_set()
10566     *
10567     * @ingroup Layout
10568     */
10569    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10570
10571    /**
10572     * Set the file that will be used as layout
10573     *
10574     * @param obj The layout object
10575     * @param file The path to file (edj) that will be used as layout
10576     * @param group The group that the layout belongs in edje file
10577     *
10578     * @return (1 = success, 0 = error)
10579     *
10580     * @ingroup Layout
10581     */
10582    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
10583
10584    /**
10585     * Set the edje group from the elementary theme that will be used as layout
10586     *
10587     * @param obj The layout object
10588     * @param clas the clas of the group
10589     * @param group the group
10590     * @param style the style to used
10591     *
10592     * @return (1 = success, 0 = error)
10593     *
10594     * @ingroup Layout
10595     */
10596    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
10597
10598    /**
10599     * Set the layout content.
10600     *
10601     * @param obj The layout object
10602     * @param swallow The swallow part name in the edje file
10603     * @param content The child that will be added in this layout object
10604     *
10605     * Once the content object is set, a previously set one will be deleted.
10606     * If you want to keep that old content object, use the
10607     * elm_object_part_content_unset() function.
10608     *
10609     * @note In an Edje theme, the part used as a content container is called @c
10610     * SWALLOW. This is why the parameter name is called @p swallow, but it is
10611     * expected to be a part name just like the second parameter of
10612     * elm_layout_box_append().
10613     *
10614     * @see elm_layout_box_append()
10615     * @see elm_object_part_content_get()
10616     * @see elm_object_part_content_unset()
10617     * @see @ref secBox
10618     * @deprecated use elm_object_part_content_set() instead
10619     *
10620     * @ingroup Layout
10621     */
10622    EINA_DEPRECATED EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10623
10624    /**
10625     * Get the child object in the given content part.
10626     *
10627     * @param obj The layout object
10628     * @param swallow The SWALLOW part to get its content
10629     *
10630     * @return The swallowed object or NULL if none or an error occurred
10631     *
10632     * @deprecated use elm_object_part_content_get() instead
10633     *
10634     * @ingroup Layout
10635     */
10636    EINA_DEPRECATED EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10637
10638    /**
10639     * Unset the layout content.
10640     *
10641     * @param obj The layout object
10642     * @param swallow The swallow part name in the edje file
10643     * @return The content that was being used
10644     *
10645     * Unparent and return the content object which was set for this part.
10646     *
10647     * @deprecated use elm_object_part_content_unset() instead
10648     *
10649     * @ingroup Layout
10650     */
10651    EINA_DEPRECATED EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10652
10653    /**
10654     * Set the text of the given part
10655     *
10656     * @param obj The layout object
10657     * @param part The TEXT part where to set the text
10658     * @param text The text to set
10659     *
10660     * @ingroup Layout
10661     * @deprecated use elm_object_part_text_set() instead.
10662     */
10663    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
10664
10665    /**
10666     * Get the text set in the given part
10667     *
10668     * @param obj The layout object
10669     * @param part The TEXT part to retrieve the text off
10670     *
10671     * @return The text set in @p part
10672     *
10673     * @ingroup Layout
10674     * @deprecated use elm_object_part_text_get() instead.
10675     */
10676    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
10677
10678    /**
10679     * Append child to layout box part.
10680     *
10681     * @param obj the layout object
10682     * @param part the box part to which the object will be appended.
10683     * @param child the child object to append to box.
10684     *
10685     * Once the object is appended, it will become child of the layout. Its
10686     * lifetime will be bound to the layout, whenever the layout dies the child
10687     * will be deleted automatically. One should use elm_layout_box_remove() to
10688     * make this layout forget about the object.
10689     *
10690     * @see elm_layout_box_prepend()
10691     * @see elm_layout_box_insert_before()
10692     * @see elm_layout_box_insert_at()
10693     * @see elm_layout_box_remove()
10694     *
10695     * @ingroup Layout
10696     */
10697    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10698
10699    /**
10700     * Prepend child to layout box part.
10701     *
10702     * @param obj the layout object
10703     * @param part the box part to prepend.
10704     * @param child the child object to prepend to box.
10705     *
10706     * Once the object is prepended, it will become child of the layout. Its
10707     * lifetime will be bound to the layout, whenever the layout dies the child
10708     * will be deleted automatically. One should use elm_layout_box_remove() to
10709     * make this layout forget about the object.
10710     *
10711     * @see elm_layout_box_append()
10712     * @see elm_layout_box_insert_before()
10713     * @see elm_layout_box_insert_at()
10714     * @see elm_layout_box_remove()
10715     *
10716     * @ingroup Layout
10717     */
10718    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10719
10720    /**
10721     * Insert child to layout box part before a reference object.
10722     *
10723     * @param obj the layout object
10724     * @param part the box part to insert.
10725     * @param child the child object to insert into box.
10726     * @param reference another reference object to insert before in box.
10727     *
10728     * Once the object is inserted, it will become child of the layout. Its
10729     * lifetime will be bound to the layout, whenever the layout dies the child
10730     * will be deleted automatically. One should use elm_layout_box_remove() to
10731     * make this layout forget about the object.
10732     *
10733     * @see elm_layout_box_append()
10734     * @see elm_layout_box_prepend()
10735     * @see elm_layout_box_insert_before()
10736     * @see elm_layout_box_remove()
10737     *
10738     * @ingroup Layout
10739     */
10740    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
10741
10742    /**
10743     * Insert child to layout box part at a given position.
10744     *
10745     * @param obj the layout object
10746     * @param part the box part to insert.
10747     * @param child the child object to insert into box.
10748     * @param pos the numeric position >=0 to insert the child.
10749     *
10750     * Once the object is inserted, it will become child of the layout. Its
10751     * lifetime will be bound to the layout, whenever the layout dies the child
10752     * will be deleted automatically. One should use elm_layout_box_remove() to
10753     * make this layout forget about the object.
10754     *
10755     * @see elm_layout_box_append()
10756     * @see elm_layout_box_prepend()
10757     * @see elm_layout_box_insert_before()
10758     * @see elm_layout_box_remove()
10759     *
10760     * @ingroup Layout
10761     */
10762    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
10763
10764    /**
10765     * Remove a child of the given part box.
10766     *
10767     * @param obj The layout object
10768     * @param part The box part name to remove child.
10769     * @param child The object to remove from box.
10770     * @return The object that was being used, or NULL if not found.
10771     *
10772     * The object will be removed from the box part and its lifetime will
10773     * not be handled by the layout anymore. This is equivalent to
10774     * elm_object_part_content_unset() for box.
10775     *
10776     * @see elm_layout_box_append()
10777     * @see elm_layout_box_remove_all()
10778     *
10779     * @ingroup Layout
10780     */
10781    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
10782
10783    /**
10784     * Remove all children of the given part box.
10785     *
10786     * @param obj The layout object
10787     * @param part The box part name to remove child.
10788     * @param clear If EINA_TRUE, then all objects will be deleted as
10789     *        well, otherwise they will just be removed and will be
10790     *        dangling on the canvas.
10791     *
10792     * The objects will be removed from the box part and their lifetime will
10793     * not be handled by the layout anymore. This is equivalent to
10794     * elm_layout_box_remove() for all box children.
10795     *
10796     * @see elm_layout_box_append()
10797     * @see elm_layout_box_remove()
10798     *
10799     * @ingroup Layout
10800     */
10801    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10802
10803    /**
10804     * Insert child to layout table part.
10805     *
10806     * @param obj the layout object
10807     * @param part the box part to pack child.
10808     * @param child_obj the child object to pack into table.
10809     * @param col the column to which the child should be added. (>= 0)
10810     * @param row the row to which the child should be added. (>= 0)
10811     * @param colspan how many columns should be used to store this object. (>=
10812     *        1)
10813     * @param rowspan how many rows should be used to store this object. (>= 1)
10814     *
10815     * Once the object is inserted, it will become child of the table. Its
10816     * lifetime will be bound to the layout, and whenever the layout dies the
10817     * child will be deleted automatically. One should use
10818     * elm_layout_table_remove() to make this layout forget about the object.
10819     *
10820     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
10821     * more space than a single cell. For instance, the following code:
10822     * @code
10823     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
10824     * @endcode
10825     *
10826     * Would result in an object being added like the following picture:
10827     *
10828     * @image html layout_colspan.png
10829     * @image latex layout_colspan.eps width=\textwidth
10830     *
10831     * @see elm_layout_table_unpack()
10832     * @see elm_layout_table_clear()
10833     *
10834     * @ingroup Layout
10835     */
10836    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);
10837
10838    /**
10839     * Unpack (remove) a child of the given part table.
10840     *
10841     * @param obj The layout object
10842     * @param part The table part name to remove child.
10843     * @param child_obj The object to remove from table.
10844     * @return The object that was being used, or NULL if not found.
10845     *
10846     * The object will be unpacked from the table part and its lifetime
10847     * will not be handled by the layout anymore. This is equivalent to
10848     * elm_object_part_content_unset() for table.
10849     *
10850     * @see elm_layout_table_pack()
10851     * @see elm_layout_table_clear()
10852     *
10853     * @ingroup Layout
10854     */
10855    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
10856
10857    /**
10858     * Remove all the child objects of the given part table.
10859     *
10860     * @param obj The layout object
10861     * @param part The table part name to remove child.
10862     * @param clear If EINA_TRUE, then all objects will be deleted as
10863     *        well, otherwise they will just be removed and will be
10864     *        dangling on the canvas.
10865     *
10866     * The objects will be removed from the table part and their lifetime will
10867     * not be handled by the layout anymore. This is equivalent to
10868     * elm_layout_table_unpack() for all table children.
10869     *
10870     * @see elm_layout_table_pack()
10871     * @see elm_layout_table_unpack()
10872     *
10873     * @ingroup Layout
10874     */
10875    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10876
10877    /**
10878     * Get the edje layout
10879     *
10880     * @param obj The layout object
10881     *
10882     * @return A Evas_Object with the edje layout settings loaded
10883     * with function elm_layout_file_set
10884     *
10885     * This returns the edje object. It is not expected to be used to then
10886     * swallow objects via edje_object_part_swallow() for example. Use
10887     * elm_object_part_content_set() instead so child object handling and sizing is
10888     * done properly.
10889     *
10890     * @note This function should only be used if you really need to call some
10891     * low level Edje function on this edje object. All the common stuff (setting
10892     * text, emitting signals, hooking callbacks to signals, etc.) can be done
10893     * with proper elementary functions.
10894     *
10895     * @see elm_object_signal_callback_add()
10896     * @see elm_object_signal_emit()
10897     * @see elm_object_part_text_set()
10898     * @see elm_object_part_content_set()
10899     * @see elm_layout_box_append()
10900     * @see elm_layout_table_pack()
10901     * @see elm_layout_data_get()
10902     *
10903     * @ingroup Layout
10904     */
10905    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10906
10907    /**
10908     * Get the edje data from the given layout
10909     *
10910     * @param obj The layout object
10911     * @param key The data key
10912     *
10913     * @return The edje data string
10914     *
10915     * This function fetches data specified inside the edje theme of this layout.
10916     * This function return NULL if data is not found.
10917     *
10918     * In EDC this comes from a data block within the group block that @p
10919     * obj was loaded from. E.g.
10920     *
10921     * @code
10922     * collections {
10923     *   group {
10924     *     name: "a_group";
10925     *     data {
10926     *       item: "key1" "value1";
10927     *       item: "key2" "value2";
10928     *     }
10929     *   }
10930     * }
10931     * @endcode
10932     *
10933     * @ingroup Layout
10934     */
10935    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
10936
10937    /**
10938     * Eval sizing
10939     *
10940     * @param obj The layout object
10941     *
10942     * Manually forces a sizing re-evaluation. This is useful when the minimum
10943     * size required by the edje theme of this layout has changed. The change on
10944     * the minimum size required by the edje theme is not immediately reported to
10945     * the elementary layout, so one needs to call this function in order to tell
10946     * the widget (layout) that it needs to reevaluate its own size.
10947     *
10948     * The minimum size of the theme is calculated based on minimum size of
10949     * parts, the size of elements inside containers like box and table, etc. All
10950     * of this can change due to state changes, and that's when this function
10951     * should be called.
10952     *
10953     * Also note that a standard signal of "size,eval" "elm" emitted from the
10954     * edje object will cause this to happen too.
10955     *
10956     * @ingroup Layout
10957     */
10958    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
10959
10960    /**
10961     * Sets a specific cursor for an edje part.
10962     *
10963     * @param obj The layout object.
10964     * @param part_name a part from loaded edje group.
10965     * @param cursor cursor name to use, see Elementary_Cursor.h
10966     *
10967     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10968     *         part not exists or it has "mouse_events: 0".
10969     *
10970     * @ingroup Layout
10971     */
10972    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
10973
10974    /**
10975     * Get the cursor to be shown when mouse is over an edje part
10976     *
10977     * @param obj The layout object.
10978     * @param part_name a part from loaded edje group.
10979     * @return the cursor name.
10980     *
10981     * @ingroup Layout
10982     */
10983    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10984
10985    /**
10986     * Unsets a cursor previously set with elm_layout_part_cursor_set().
10987     *
10988     * @param obj The layout object.
10989     * @param part_name a part from loaded edje group, that had a cursor set
10990     *        with elm_layout_part_cursor_set().
10991     *
10992     * @ingroup Layout
10993     */
10994    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10995
10996    /**
10997     * Sets a specific cursor style for an edje part.
10998     *
10999     * @param obj The layout object.
11000     * @param part_name a part from loaded edje group.
11001     * @param style the theme style to use (default, transparent, ...)
11002     *
11003     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
11004     *         part not exists or it did not had a cursor set.
11005     *
11006     * @ingroup Layout
11007     */
11008    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
11009
11010    /**
11011     * Gets a specific cursor style for an edje part.
11012     *
11013     * @param obj The layout object.
11014     * @param part_name a part from loaded edje group.
11015     *
11016     * @return the theme style in use, defaults to "default". If the
11017     *         object does not have a cursor set, then NULL is returned.
11018     *
11019     * @ingroup Layout
11020     */
11021    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
11022
11023    /**
11024     * Sets if the cursor set should be searched on the theme or should use
11025     * the provided by the engine, only.
11026     *
11027     * @note before you set if should look on theme you should define a
11028     * cursor with elm_layout_part_cursor_set(). By default it will only
11029     * look for cursors provided by the engine.
11030     *
11031     * @param obj The layout object.
11032     * @param part_name a part from loaded edje group.
11033     * @param engine_only if cursors should be just provided by the engine (EINA_TRUE)
11034     *        or should also search on widget's theme as well (EINA_FALSE)
11035     *
11036     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
11037     *         part not exists or it did not had a cursor set.
11038     *
11039     * @ingroup Layout
11040     */
11041    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);
11042
11043    /**
11044     * Gets a specific cursor engine_only for an edje part.
11045     *
11046     * @param obj The layout object.
11047     * @param part_name a part from loaded edje group.
11048     *
11049     * @return whenever the cursor is just provided by engine or also from theme.
11050     *
11051     * @ingroup Layout
11052     */
11053    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
11054
11055 /**
11056  * @def elm_layout_icon_set
11057  * Convenience macro to set the icon object in a layout that follows the
11058  * Elementary naming convention for its parts.
11059  *
11060  * @ingroup Layout
11061  */
11062 #define elm_layout_icon_set(_ly, _obj) \
11063   do { \
11064     const char *sig; \
11065     elm_object_part_content_set((_ly), "elm.swallow.icon", (_obj)); \
11066     if ((_obj)) sig = "elm,state,icon,visible"; \
11067     else sig = "elm,state,icon,hidden"; \
11068     elm_object_signal_emit((_ly), sig, "elm"); \
11069   } while (0)
11070
11071 /**
11072  * @def elm_layout_icon_get
11073  * Convienience macro to get the icon object from a layout that follows the
11074  * Elementary naming convention for its parts.
11075  *
11076  * @ingroup Layout
11077  */
11078 #define elm_layout_icon_get(_ly) \
11079   elm_object_part_content_get((_ly), "elm.swallow.icon")
11080
11081 /**
11082  * @def elm_layout_end_set
11083  * Convienience macro to set the end object in a layout that follows the
11084  * Elementary naming convention for its parts.
11085  *
11086  * @ingroup Layout
11087  */
11088 #define elm_layout_end_set(_ly, _obj) \
11089   do { \
11090     const char *sig; \
11091     elm_object_part_content_set((_ly), "elm.swallow.end", (_obj)); \
11092     if ((_obj)) sig = "elm,state,end,visible"; \
11093     else sig = "elm,state,end,hidden"; \
11094     elm_object_signal_emit((_ly), sig, "elm"); \
11095   } while (0)
11096
11097 /**
11098  * @def elm_layout_end_get
11099  * Convienience macro to get the end object in a layout that follows the
11100  * Elementary naming convention for its parts.
11101  *
11102  * @ingroup Layout
11103  */
11104 #define elm_layout_end_get(_ly) \
11105   elm_object_part_content_get((_ly), "elm.swallow.end")
11106
11107 /**
11108  * @def elm_layout_label_set
11109  * Convienience macro to set the label in a layout that follows the
11110  * Elementary naming convention for its parts.
11111  *
11112  * @ingroup Layout
11113  * @deprecated use elm_object_text_set() instead.
11114  */
11115 #define elm_layout_label_set(_ly, _txt) \
11116   elm_layout_text_set((_ly), "elm.text", (_txt))
11117
11118 /**
11119  * @def elm_layout_label_get
11120  * Convenience macro to get the label in a layout that follows the
11121  * Elementary naming convention for its parts.
11122  *
11123  * @ingroup Layout
11124  * @deprecated use elm_object_text_set() instead.
11125  */
11126 #define elm_layout_label_get(_ly) \
11127   elm_layout_text_get((_ly), "elm.text")
11128
11129    /* smart callbacks called:
11130     * "theme,changed" - when elm theme is changed.
11131     */
11132
11133    /**
11134     * @defgroup Notify Notify
11135     *
11136     * @image html img/widget/notify/preview-00.png
11137     * @image latex img/widget/notify/preview-00.eps
11138     *
11139     * Display a container in a particular region of the parent(top, bottom,
11140     * etc).  A timeout can be set to automatically hide the notify. This is so
11141     * that, after an evas_object_show() on a notify object, if a timeout was set
11142     * on it, it will @b automatically get hidden after that time.
11143     *
11144     * Signals that you can add callbacks for are:
11145     * @li "timeout" - when timeout happens on notify and it's hidden
11146     * @li "block,clicked" - when a click outside of the notify happens
11147     *
11148     * Default contents parts of the notify widget that you can use for are:
11149     * @li "default" - A content of the notify
11150     *
11151     * @ref tutorial_notify show usage of the API.
11152     *
11153     * @{
11154     */
11155
11156    /**
11157     * @brief Possible orient values for notify.
11158     *
11159     * This values should be used in conjunction to elm_notify_orient_set() to
11160     * set the position in which the notify should appear(relative to its parent)
11161     * and in conjunction with elm_notify_orient_get() to know where the notify
11162     * is appearing.
11163     */
11164    typedef enum _Elm_Notify_Orient
11165      {
11166         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
11167         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
11168         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
11169         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
11170         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
11171         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
11172         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
11173         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
11174         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
11175         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
11176      } Elm_Notify_Orient;
11177
11178    /**
11179     * @brief Add a new notify to the parent
11180     *
11181     * @param parent The parent object
11182     * @return The new object or NULL if it cannot be created
11183     */
11184    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11185
11186    /**
11187     * @brief Set the content of the notify widget
11188     *
11189     * @param obj The notify object
11190     * @param content The content will be filled in this notify object
11191     *
11192     * Once the content object is set, a previously set one will be deleted. If
11193     * you want to keep that old content object, use the
11194     * elm_notify_content_unset() function.
11195     *
11196     * @deprecated use elm_object_content_set() instead
11197     *
11198     */
11199    EINA_DEPRECATED EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
11200
11201    /**
11202     * @brief Unset the content of the notify widget
11203     *
11204     * @param obj The notify object
11205     * @return The content that was being used
11206     *
11207     * Unparent and return the content object which was set for this widget
11208     *
11209     * @see elm_notify_content_set()
11210     * @deprecated use elm_object_content_unset() instead
11211     *
11212     */
11213    EINA_DEPRECATED EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11214
11215    /**
11216     * @brief Return the content of the notify widget
11217     *
11218     * @param obj The notify object
11219     * @return The content that is being used
11220     *
11221     * @see elm_notify_content_set()
11222     * @deprecated use elm_object_content_get() instead
11223     *
11224     */
11225    EINA_DEPRECATED EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11226
11227    /**
11228     * @brief Set the notify parent
11229     *
11230     * @param obj The notify object
11231     * @param content The new parent
11232     *
11233     * Once the parent object is set, a previously set one will be disconnected
11234     * and replaced.
11235     */
11236    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11237
11238    /**
11239     * @brief Get the notify parent
11240     *
11241     * @param obj The notify object
11242     * @return The parent
11243     *
11244     * @see elm_notify_parent_set()
11245     */
11246    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11247
11248    /**
11249     * @brief Set the orientation
11250     *
11251     * @param obj The notify object
11252     * @param orient The new orientation
11253     *
11254     * Sets the position in which the notify will appear in its parent.
11255     *
11256     * @see @ref Elm_Notify_Orient for possible values.
11257     */
11258    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
11259
11260    /**
11261     * @brief Return the orientation
11262     * @param obj The notify object
11263     * @return The orientation of the notification
11264     *
11265     * @see elm_notify_orient_set()
11266     * @see Elm_Notify_Orient
11267     */
11268    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11269
11270    /**
11271     * @brief Set the time interval after which the notify window is going to be
11272     * hidden.
11273     *
11274     * @param obj The notify object
11275     * @param time The timeout in seconds
11276     *
11277     * This function sets a timeout and starts the timer controlling when the
11278     * notify is hidden. Since calling evas_object_show() on a notify restarts
11279     * the timer controlling when the notify is hidden, setting this before the
11280     * notify is shown will in effect mean starting the timer when the notify is
11281     * shown.
11282     *
11283     * @note Set a value <= 0.0 to disable a running timer.
11284     *
11285     * @note If the value > 0.0 and the notify is previously visible, the
11286     * timer will be started with this value, canceling any running timer.
11287     */
11288    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
11289
11290    /**
11291     * @brief Return the timeout value (in seconds)
11292     * @param obj the notify object
11293     *
11294     * @see elm_notify_timeout_set()
11295     */
11296    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11297
11298    /**
11299     * @brief Sets whether events should be passed to by a click outside
11300     * its area.
11301     *
11302     * @param obj The notify object
11303     * @param repeats EINA_TRUE Events are repeats, else no
11304     *
11305     * When true if the user clicks outside the window the events will be caught
11306     * by the others widgets, else the events are blocked.
11307     *
11308     * @note The default value is EINA_TRUE.
11309     */
11310    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
11311
11312    /**
11313     * @brief Return true if events are repeat below the notify object
11314     * @param obj the notify object
11315     *
11316     * @see elm_notify_repeat_events_set()
11317     */
11318    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11319
11320    /**
11321     * @}
11322     */
11323
11324    /**
11325     * @defgroup Hover Hover
11326     *
11327     * @image html img/widget/hover/preview-00.png
11328     * @image latex img/widget/hover/preview-00.eps
11329     *
11330     * A Hover object will hover over its @p parent object at the @p target
11331     * location. Anything in the background will be given a darker coloring to
11332     * indicate that the hover object is on top (at the default theme). When the
11333     * hover is clicked it is dismissed(hidden), if the contents of the hover are
11334     * clicked that @b doesn't cause the hover to be dismissed.
11335     *
11336     * A Hover object has two parents. One parent that owns it during creation
11337     * and the other parent being the one over which the hover object spans.
11338     *
11339     *
11340     * @note The hover object will take up the entire space of @p target
11341     * object.
11342     *
11343     * Elementary has the following styles for the hover widget:
11344     * @li default
11345     * @li popout
11346     * @li menu
11347     * @li hoversel_vertical
11348     *
11349     * The following are the available position for content:
11350     * @li left
11351     * @li top-left
11352     * @li top
11353     * @li top-right
11354     * @li right
11355     * @li bottom-right
11356     * @li bottom
11357     * @li bottom-left
11358     * @li middle
11359     * @li smart
11360     *
11361     * Signals that you can add callbacks for are:
11362     * @li "clicked" - the user clicked the empty space in the hover to dismiss
11363     * @li "smart,changed" - a content object placed under the "smart"
11364     *                   policy was replaced to a new slot direction.
11365     *
11366     * See @ref tutorial_hover for more information.
11367     *
11368     * @{
11369     */
11370    typedef enum _Elm_Hover_Axis
11371      {
11372         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
11373         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
11374         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
11375         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
11376      } Elm_Hover_Axis;
11377
11378    /**
11379     * @brief Adds a hover object to @p parent
11380     *
11381     * @param parent The parent object
11382     * @return The hover object or NULL if one could not be created
11383     */
11384    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11385
11386    /**
11387     * @brief Sets the target object for the hover.
11388     *
11389     * @param obj The hover object
11390     * @param target The object to center the hover onto.
11391     *
11392     * This function will cause the hover to be centered on the target object.
11393     */
11394    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
11395
11396    /**
11397     * @brief Gets the target object for the hover.
11398     *
11399     * @param obj The hover object
11400     * @return The target object for the hover.
11401     *
11402     * @see elm_hover_target_set()
11403     */
11404    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11405
11406    /**
11407     * @brief Sets the parent object for the hover.
11408     *
11409     * @param obj The hover object
11410     * @param parent The object to locate the hover over.
11411     *
11412     * This function will cause the hover to take up the entire space that the
11413     * parent object fills.
11414     */
11415    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11416
11417    /**
11418     * @brief Gets the parent object for the hover.
11419     *
11420     * @param obj The hover object
11421     * @return The parent object to locate the hover over.
11422     *
11423     * @see elm_hover_parent_set()
11424     */
11425    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11426
11427    /**
11428     * @brief Sets the content of the hover object and the direction in which it
11429     * will pop out.
11430     *
11431     * @param obj The hover object
11432     * @param swallow The direction that the object will be displayed
11433     * at. Accepted values are "left", "top-left", "top", "top-right",
11434     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
11435     * "smart".
11436     * @param content The content to place at @p swallow
11437     *
11438     * Once the content object is set for a given direction, a previously
11439     * set one (on the same direction) will be deleted. If you want to
11440     * keep that old content object, use the elm_hover_content_unset()
11441     * function.
11442     *
11443     * All directions may have contents at the same time, except for
11444     * "smart". This is a special placement hint and its use case
11445     * independs of the calculations coming from
11446     * elm_hover_best_content_location_get(). Its use is for cases when
11447     * one desires only one hover content, but with a dynamic special
11448     * placement within the hover area. The content's geometry, whenever
11449     * it changes, will be used to decide on a best location, not
11450     * extrapolating the hover's parent object view to show it in (still
11451     * being the hover's target determinant of its medium part -- move and
11452     * resize it to simulate finger sizes, for example). If one of the
11453     * directions other than "smart" are used, a previously content set
11454     * using it will be deleted, and vice-versa.
11455     */
11456    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
11457
11458    /**
11459     * @brief Get the content of the hover object, in a given direction.
11460     *
11461     * Return the content object which was set for this widget in the
11462     * @p swallow direction.
11463     *
11464     * @param obj The hover object
11465     * @param swallow The direction that the object was display at.
11466     * @return The content that was being used
11467     *
11468     * @see elm_hover_content_set()
11469     */
11470    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
11471
11472    /**
11473     * @brief Unset the content of the hover object, in a given direction.
11474     *
11475     * Unparent and return the content object set at @p swallow direction.
11476     *
11477     * @param obj The hover object
11478     * @param swallow The direction that the object was display at.
11479     * @return The content that was being used.
11480     *
11481     * @see elm_hover_content_set()
11482     */
11483    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
11484
11485    /**
11486     * @brief Returns the best swallow location for content in the hover.
11487     *
11488     * @param obj The hover object
11489     * @param pref_axis The preferred orientation axis for the hover object to use
11490     * @return The edje location to place content into the hover or @c
11491     *         NULL, on errors.
11492     *
11493     * Best is defined here as the location at which there is the most available
11494     * space.
11495     *
11496     * @p pref_axis may be one of
11497     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
11498     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
11499     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
11500     * - @c ELM_HOVER_AXIS_BOTH -- both
11501     *
11502     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
11503     * nescessarily be along the horizontal axis("left" or "right"). If
11504     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
11505     * be along the vertical axis("top" or "bottom"). Chossing
11506     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
11507     * returned position may be in either axis.
11508     *
11509     * @see elm_hover_content_set()
11510     */
11511    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
11512
11513    /**
11514     * @}
11515     */
11516
11517    /* entry */
11518    /**
11519     * @defgroup Entry Entry
11520     *
11521     * @image html img/widget/entry/preview-00.png
11522     * @image latex img/widget/entry/preview-00.eps width=\textwidth
11523     * @image html img/widget/entry/preview-01.png
11524     * @image latex img/widget/entry/preview-01.eps width=\textwidth
11525     * @image html img/widget/entry/preview-02.png
11526     * @image latex img/widget/entry/preview-02.eps width=\textwidth
11527     * @image html img/widget/entry/preview-03.png
11528     * @image latex img/widget/entry/preview-03.eps width=\textwidth
11529     *
11530     * An entry is a convenience widget which shows a box that the user can
11531     * enter text into. Entries by default don't scroll, so they grow to
11532     * accomodate the entire text, resizing the parent window as needed. This
11533     * can be changed with the elm_entry_scrollable_set() function.
11534     *
11535     * They can also be single line or multi line (the default) and when set
11536     * to multi line mode they support text wrapping in any of the modes
11537     * indicated by #Elm_Wrap_Type.
11538     *
11539     * Other features include password mode, filtering of inserted text with
11540     * elm_entry_text_filter_append() and related functions, inline "items" and
11541     * formatted markup text.
11542     *
11543     * @section entry-markup Formatted text
11544     *
11545     * The markup tags supported by the Entry are defined by the theme, but
11546     * even when writing new themes or extensions it's a good idea to stick to
11547     * a sane default, to maintain coherency and avoid application breakages.
11548     * Currently defined by the default theme are the following tags:
11549     * @li \<br\>: Inserts a line break.
11550     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
11551     * breaks.
11552     * @li \<tab\>: Inserts a tab.
11553     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
11554     * enclosed text.
11555     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
11556     * @li \<link\>...\</link\>: Underlines the enclosed text.
11557     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
11558     *
11559     * @section entry-special Special markups
11560     *
11561     * Besides those used to format text, entries support two special markup
11562     * tags used to insert clickable portions of text or items inlined within
11563     * the text.
11564     *
11565     * @subsection entry-anchors Anchors
11566     *
11567     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
11568     * \</a\> tags and an event will be generated when this text is clicked,
11569     * like this:
11570     *
11571     * @code
11572     * This text is outside <a href=anc-01>but this one is an anchor</a>
11573     * @endcode
11574     *
11575     * The @c href attribute in the opening tag gives the name that will be
11576     * used to identify the anchor and it can be any valid utf8 string.
11577     *
11578     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
11579     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
11580     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
11581     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
11582     * an anchor.
11583     *
11584     * @subsection entry-items Items
11585     *
11586     * Inlined in the text, any other @c Evas_Object can be inserted by using
11587     * \<item\> tags this way:
11588     *
11589     * @code
11590     * <item size=16x16 vsize=full href=emoticon/haha></item>
11591     * @endcode
11592     *
11593     * Just like with anchors, the @c href identifies each item, but these need,
11594     * in addition, to indicate their size, which is done using any one of
11595     * @c size, @c absize or @c relsize attributes. These attributes take their
11596     * value in the WxH format, where W is the width and H the height of the
11597     * item.
11598     *
11599     * @li absize: Absolute pixel size for the item. Whatever value is set will
11600     * be the item's size regardless of any scale value the object may have
11601     * been set to. The final line height will be adjusted to fit larger items.
11602     * @li size: Similar to @c absize, but it's adjusted to the scale value set
11603     * for the object.
11604     * @li relsize: Size is adjusted for the item to fit within the current
11605     * line height.
11606     *
11607     * Besides their size, items are specificed a @c vsize value that affects
11608     * how their final size and position are calculated. The possible values
11609     * are:
11610     * @li ascent: Item will be placed within the line's baseline and its
11611     * ascent. That is, the height between the line where all characters are
11612     * positioned and the highest point in the line. For @c size and @c absize
11613     * items, the descent value will be added to the total line height to make
11614     * them fit. @c relsize items will be adjusted to fit within this space.
11615     * @li full: Items will be placed between the descent and ascent, or the
11616     * lowest point in the line and its highest.
11617     *
11618     * The next image shows different configurations of items and how
11619     * the previously mentioned options affect their sizes. In all cases,
11620     * the green line indicates the ascent, blue for the baseline and red for
11621     * the descent.
11622     *
11623     * @image html entry_item.png
11624     * @image latex entry_item.eps width=\textwidth
11625     *
11626     * And another one to show how size differs from absize. In the first one,
11627     * the scale value is set to 1.0, while the second one is using one of 2.0.
11628     *
11629     * @image html entry_item_scale.png
11630     * @image latex entry_item_scale.eps width=\textwidth
11631     *
11632     * After the size for an item is calculated, the entry will request an
11633     * object to place in its space. For this, the functions set with
11634     * elm_entry_item_provider_append() and related functions will be called
11635     * in order until one of them returns a @c non-NULL value. If no providers
11636     * are available, or all of them return @c NULL, then the entry falls back
11637     * to one of the internal defaults, provided the name matches with one of
11638     * them.
11639     *
11640     * All of the following are currently supported:
11641     *
11642     * - emoticon/angry
11643     * - emoticon/angry-shout
11644     * - emoticon/crazy-laugh
11645     * - emoticon/evil-laugh
11646     * - emoticon/evil
11647     * - emoticon/goggle-smile
11648     * - emoticon/grumpy
11649     * - emoticon/grumpy-smile
11650     * - emoticon/guilty
11651     * - emoticon/guilty-smile
11652     * - emoticon/haha
11653     * - emoticon/half-smile
11654     * - emoticon/happy-panting
11655     * - emoticon/happy
11656     * - emoticon/indifferent
11657     * - emoticon/kiss
11658     * - emoticon/knowing-grin
11659     * - emoticon/laugh
11660     * - emoticon/little-bit-sorry
11661     * - emoticon/love-lots
11662     * - emoticon/love
11663     * - emoticon/minimal-smile
11664     * - emoticon/not-happy
11665     * - emoticon/not-impressed
11666     * - emoticon/omg
11667     * - emoticon/opensmile
11668     * - emoticon/smile
11669     * - emoticon/sorry
11670     * - emoticon/squint-laugh
11671     * - emoticon/surprised
11672     * - emoticon/suspicious
11673     * - emoticon/tongue-dangling
11674     * - emoticon/tongue-poke
11675     * - emoticon/uh
11676     * - emoticon/unhappy
11677     * - emoticon/very-sorry
11678     * - emoticon/what
11679     * - emoticon/wink
11680     * - emoticon/worried
11681     * - emoticon/wtf
11682     *
11683     * Alternatively, an item may reference an image by its path, using
11684     * the URI form @c file:///path/to/an/image.png and the entry will then
11685     * use that image for the item.
11686     *
11687     * @section entry-files Loading and saving files
11688     *
11689     * Entries have convinience functions to load text from a file and save
11690     * changes back to it after a short delay. The automatic saving is enabled
11691     * by default, but can be disabled with elm_entry_autosave_set() and files
11692     * can be loaded directly as plain text or have any markup in them
11693     * recognized. See elm_entry_file_set() for more details.
11694     *
11695     * @section entry-signals Emitted signals
11696     *
11697     * This widget emits the following signals:
11698     *
11699     * @li "changed": The text within the entry was changed.
11700     * @li "changed,user": The text within the entry was changed because of user interaction.
11701     * @li "activated": The enter key was pressed on a single line entry.
11702     * @li "press": A mouse button has been pressed on the entry.
11703     * @li "longpressed": A mouse button has been pressed and held for a couple
11704     * seconds.
11705     * @li "clicked": The entry has been clicked (mouse press and release).
11706     * @li "clicked,double": The entry has been double clicked.
11707     * @li "clicked,triple": The entry has been triple clicked.
11708     * @li "focused": The entry has received focus.
11709     * @li "unfocused": The entry has lost focus.
11710     * @li "selection,paste": A paste of the clipboard contents was requested.
11711     * @li "selection,copy": A copy of the selected text into the clipboard was
11712     * requested.
11713     * @li "selection,cut": A cut of the selected text into the clipboard was
11714     * requested.
11715     * @li "selection,start": A selection has begun and no previous selection
11716     * existed.
11717     * @li "selection,changed": The current selection has changed.
11718     * @li "selection,cleared": The current selection has been cleared.
11719     * @li "cursor,changed": The cursor has changed position.
11720     * @li "anchor,clicked": An anchor has been clicked. The event_info
11721     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11722     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
11723     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11724     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
11725     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11726     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
11727     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11728     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
11729     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11730     * @li "preedit,changed": The preedit string has changed.
11731     * @li "language,changed": Program language changed.
11732     *
11733     * @section entry-examples
11734     *
11735     * An overview of the Entry API can be seen in @ref entry_example_01
11736     *
11737     * @{
11738     */
11739
11740    /**
11741     * @typedef Elm_Entry_Anchor_Info
11742     *
11743     * The info sent in the callback for the "anchor,clicked" signals emitted
11744     * by entries.
11745     */
11746    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
11747
11748    /**
11749     * @struct _Elm_Entry_Anchor_Info
11750     *
11751     * The info sent in the callback for the "anchor,clicked" signals emitted
11752     * by entries.
11753     */
11754    struct _Elm_Entry_Anchor_Info
11755      {
11756         const char *name; /**< The name of the anchor, as stated in its href */
11757         int         button; /**< The mouse button used to click on it */
11758         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
11759                     y, /**< Anchor geometry, relative to canvas */
11760                     w, /**< Anchor geometry, relative to canvas */
11761                     h; /**< Anchor geometry, relative to canvas */
11762      };
11763
11764    /**
11765     * @typedef Elm_Entry_Filter_Cb
11766     * This callback type is used by entry filters to modify text.
11767     * @param data The data specified as the last param when adding the filter
11768     * @param entry The entry object
11769     * @param text A pointer to the location of the text being filtered. This data can be modified,
11770     * but any additional allocations must be managed by the user.
11771     * @see elm_entry_text_filter_append
11772     * @see elm_entry_text_filter_prepend
11773     */
11774    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
11775
11776    /**
11777     * @typedef Elm_Entry_Change_Info
11778     * This corresponds to Edje_Entry_Change_Info. Includes information about
11779     * a change in the entry.
11780     */
11781    typedef Edje_Entry_Change_Info Elm_Entry_Change_Info;
11782
11783
11784    /**
11785     * This adds an entry to @p parent object.
11786     *
11787     * By default, entries are:
11788     * @li not scrolled
11789     * @li multi-line
11790     * @li word wrapped
11791     * @li autosave is enabled
11792     *
11793     * @param parent The parent object
11794     * @return The new object or NULL if it cannot be created
11795     */
11796    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11797
11798    /**
11799     * Sets the entry to single line mode.
11800     *
11801     * In single line mode, entries don't ever wrap when the text reaches the
11802     * edge, and instead they keep growing horizontally. Pressing the @c Enter
11803     * key will generate an @c "activate" event instead of adding a new line.
11804     *
11805     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
11806     * and pressing enter will break the text into a different line
11807     * without generating any events.
11808     *
11809     * @param obj The entry object
11810     * @param single_line If true, the text in the entry
11811     * will be on a single line.
11812     */
11813    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
11814
11815    /**
11816     * Gets whether the entry is set to be single line.
11817     *
11818     * @param obj The entry object
11819     * @return single_line If true, the text in the entry is set to display
11820     * on a single line.
11821     *
11822     * @see elm_entry_single_line_set()
11823     */
11824    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11825
11826    /**
11827     * Sets the entry to password mode.
11828     *
11829     * In password mode, entries are implicitly single line and the display of
11830     * any text in them is replaced with asterisks (*).
11831     *
11832     * @param obj The entry object
11833     * @param password If true, password mode is enabled.
11834     */
11835    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
11836
11837    /**
11838     * Gets whether the entry is set to password mode.
11839     *
11840     * @param obj The entry object
11841     * @return If true, the entry is set to display all characters
11842     * as asterisks (*).
11843     *
11844     * @see elm_entry_password_set()
11845     */
11846    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11847
11848    /**
11849     * This sets the text displayed within the entry to @p entry.
11850     *
11851     * @param obj The entry object
11852     * @param entry The text to be displayed
11853     *
11854     * @deprecated Use elm_object_text_set() instead.
11855     * @note Using this function bypasses text filters
11856     */
11857    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11858
11859    /**
11860     * This returns the text currently shown in object @p entry.
11861     * See also elm_entry_entry_set().
11862     *
11863     * @param obj The entry object
11864     * @return The currently displayed text or NULL on failure
11865     *
11866     * @deprecated Use elm_object_text_get() instead.
11867     */
11868    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11869
11870    /**
11871     * Appends @p entry to the text of the entry.
11872     *
11873     * Adds the text in @p entry to the end of any text already present in the
11874     * widget.
11875     *
11876     * The appended text is subject to any filters set for the widget.
11877     *
11878     * @param obj The entry object
11879     * @param entry The text to be displayed
11880     *
11881     * @see elm_entry_text_filter_append()
11882     */
11883    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11884
11885    /**
11886     * Gets whether the entry is empty.
11887     *
11888     * Empty means no text at all. If there are any markup tags, like an item
11889     * tag for which no provider finds anything, and no text is displayed, this
11890     * function still returns EINA_FALSE.
11891     *
11892     * @param obj The entry object
11893     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
11894     */
11895    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11896
11897    /**
11898     * Gets any selected text within the entry.
11899     *
11900     * If there's any selected text in the entry, this function returns it as
11901     * a string in markup format. NULL is returned if no selection exists or
11902     * if an error occurred.
11903     *
11904     * The returned value points to an internal string and should not be freed
11905     * or modified in any way. If the @p entry object is deleted or its
11906     * contents are changed, the returned pointer should be considered invalid.
11907     *
11908     * @param obj The entry object
11909     * @return The selected text within the entry or NULL on failure
11910     */
11911    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11912
11913    /**
11914     * Returns the actual textblock object of the entry.
11915     *
11916     * This function exposes the internal textblock object that actually
11917     * contains and draws the text. This should be used for low-level
11918     * manipulations that are otherwise not possible.
11919     *
11920     * Changing the textblock directly from here will not notify edje/elm to
11921     * recalculate the textblock size automatically, so any modifications
11922     * done to the textblock returned by this function should be followed by
11923     * a call to elm_entry_calc_force().
11924     *
11925     * The return value is marked as const as an additional warning.
11926     * One should not use the returned object with any of the generic evas
11927     * functions (geometry_get/resize/move and etc), but only with the textblock
11928     * functions; The former will either not work at all, or break the correct
11929     * functionality.
11930     *
11931     * IMPORTANT: Many functions may change (i.e delete and create a new one)
11932     * the internal textblock object. Do NOT cache the returned object, and try
11933     * not to mix calls on this object with regular elm_entry calls (which may
11934     * change the internal textblock object). This applies to all cursors
11935     * returned from textblock calls, and all the other derivative values.
11936     *
11937     * @param obj The entry object
11938     * @return The textblock object.
11939     */
11940    EAPI const Evas_Object *elm_entry_textblock_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11941
11942    /**
11943     * Forces calculation of the entry size and text layouting.
11944     *
11945     * This should be used after modifying the textblock object directly. See
11946     * elm_entry_textblock_get() for more information.
11947     *
11948     * @param obj The entry object
11949     *
11950     * @see elm_entry_textblock_get()
11951     */
11952    EAPI void elm_entry_calc_force(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11953
11954    /**
11955     * Inserts the given text into the entry at the current cursor position.
11956     *
11957     * This inserts text at the cursor position as if it was typed
11958     * by the user (note that this also allows markup which a user
11959     * can't just "type" as it would be converted to escaped text, so this
11960     * call can be used to insert things like emoticon items or bold push/pop
11961     * tags, other font and color change tags etc.)
11962     *
11963     * If any selection exists, it will be replaced by the inserted text.
11964     *
11965     * The inserted text is subject to any filters set for the widget.
11966     *
11967     * @param obj The entry object
11968     * @param entry The text to insert
11969     *
11970     * @see elm_entry_text_filter_append()
11971     */
11972    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11973
11974    /**
11975     * Set the line wrap type to use on multi-line entries.
11976     *
11977     * Sets the wrap type used by the entry to any of the specified in
11978     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
11979     * line (without inserting a line break or paragraph separator) when it
11980     * reaches the far edge of the widget.
11981     *
11982     * Note that this only makes sense for multi-line entries. A widget set
11983     * to be single line will never wrap.
11984     *
11985     * @param obj The entry object
11986     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
11987     */
11988    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
11989
11990    /**
11991     * Gets the wrap mode the entry was set to use.
11992     *
11993     * @param obj The entry object
11994     * @return Wrap type
11995     *
11996     * @see also elm_entry_line_wrap_set()
11997     */
11998    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11999
12000    /**
12001     * Sets if the entry is to be editable or not.
12002     *
12003     * By default, entries are editable and when focused, any text input by the
12004     * user will be inserted at the current cursor position. But calling this
12005     * function with @p editable as EINA_FALSE will prevent the user from
12006     * inputting text into the entry.
12007     *
12008     * The only way to change the text of a non-editable entry is to use
12009     * elm_object_text_set(), elm_entry_entry_insert() and other related
12010     * functions.
12011     *
12012     * @param obj The entry object
12013     * @param editable If EINA_TRUE, user input will be inserted in the entry,
12014     * if not, the entry is read-only and no user input is allowed.
12015     */
12016    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
12017
12018    /**
12019     * Gets whether the entry is editable or not.
12020     *
12021     * @param obj The entry object
12022     * @return If true, the entry is editable by the user.
12023     * If false, it is not editable by the user
12024     *
12025     * @see elm_entry_editable_set()
12026     */
12027    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12028
12029    /**
12030     * This drops any existing text selection within the entry.
12031     *
12032     * @param obj The entry object
12033     */
12034    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
12035
12036    /**
12037     * This selects all text within the entry.
12038     *
12039     * @param obj The entry object
12040     */
12041    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
12042
12043    /**
12044     * This moves the cursor one place to the right within the entry.
12045     *
12046     * @param obj The entry object
12047     * @return EINA_TRUE upon success, EINA_FALSE upon failure
12048     */
12049    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
12050
12051    /**
12052     * This moves the cursor one place to the left within the entry.
12053     *
12054     * @param obj The entry object
12055     * @return EINA_TRUE upon success, EINA_FALSE upon failure
12056     */
12057    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
12058
12059    /**
12060     * This moves the cursor one line up within the entry.
12061     *
12062     * @param obj The entry object
12063     * @return EINA_TRUE upon success, EINA_FALSE upon failure
12064     */
12065    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
12066
12067    /**
12068     * This moves the cursor one line down within the entry.
12069     *
12070     * @param obj The entry object
12071     * @return EINA_TRUE upon success, EINA_FALSE upon failure
12072     */
12073    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
12074
12075    /**
12076     * This moves the cursor to the beginning of the entry.
12077     *
12078     * @param obj The entry object
12079     */
12080    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12081
12082    /**
12083     * This moves the cursor to the end of the entry.
12084     *
12085     * @param obj The entry object
12086     */
12087    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12088
12089    /**
12090     * This moves the cursor to the beginning of the current line.
12091     *
12092     * @param obj The entry object
12093     */
12094    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12095
12096    /**
12097     * This moves the cursor to the end of the current line.
12098     *
12099     * @param obj The entry object
12100     */
12101    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12102
12103    /**
12104     * This begins a selection within the entry as though
12105     * the user were holding down the mouse button to make a selection.
12106     *
12107     * @param obj The entry object
12108     */
12109    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
12110
12111    /**
12112     * This ends a selection within the entry as though
12113     * the user had just released the mouse button while making a selection.
12114     *
12115     * @param obj The entry object
12116     */
12117    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12118
12119    /**
12120     * Gets whether a format node exists at the current cursor position.
12121     *
12122     * A format node is anything that defines how the text is rendered. It can
12123     * be a visible format node, such as a line break or a paragraph separator,
12124     * or an invisible one, such as bold begin or end tag.
12125     * This function returns whether any format node exists at the current
12126     * cursor position.
12127     *
12128     * @param obj The entry object
12129     * @return EINA_TRUE if the current cursor position contains a format node,
12130     * EINA_FALSE otherwise.
12131     *
12132     * @see elm_entry_cursor_is_visible_format_get()
12133     */
12134    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12135
12136    /**
12137     * Gets if the current cursor position holds a visible format node.
12138     *
12139     * @param obj The entry object
12140     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
12141     * if it's an invisible one or no format exists.
12142     *
12143     * @see elm_entry_cursor_is_format_get()
12144     */
12145    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12146
12147    /**
12148     * Gets the character pointed by the cursor at its current position.
12149     *
12150     * This function returns a string with the utf8 character stored at the
12151     * current cursor position.
12152     * Only the text is returned, any format that may exist will not be part
12153     * of the return value.
12154     *
12155     * @param obj The entry object
12156     * @return The text pointed by the cursors.
12157     */
12158    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12159
12160    /**
12161     * This function returns the geometry of the cursor.
12162     *
12163     * It's useful if you want to draw something on the cursor (or where it is),
12164     * or for example in the case of scrolled entry where you want to show the
12165     * cursor.
12166     *
12167     * @param obj The entry object
12168     * @param x returned geometry
12169     * @param y returned geometry
12170     * @param w returned geometry
12171     * @param h returned geometry
12172     * @return EINA_TRUE upon success, EINA_FALSE upon failure
12173     */
12174    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);
12175
12176    /**
12177     * Sets the cursor position in the entry to the given value
12178     *
12179     * The value in @p pos is the index of the character position within the
12180     * contents of the string as returned by elm_entry_cursor_pos_get().
12181     *
12182     * @param obj The entry object
12183     * @param pos The position of the cursor
12184     */
12185    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
12186
12187    /**
12188     * Retrieves the current position of the cursor in the entry
12189     *
12190     * @param obj The entry object
12191     * @return The cursor position
12192     */
12193    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12194
12195    /**
12196     * This executes a "cut" action on the selected text in the entry.
12197     *
12198     * @param obj The entry object
12199     */
12200    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
12201
12202    /**
12203     * This executes a "copy" action on the selected text in the entry.
12204     *
12205     * @param obj The entry object
12206     */
12207    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
12208
12209    /**
12210     * This executes a "paste" action in the entry.
12211     *
12212     * @param obj The entry object
12213     */
12214    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
12215
12216    /**
12217     * This clears and frees the items in a entry's contextual (longpress)
12218     * menu.
12219     *
12220     * @param obj The entry object
12221     *
12222     * @see elm_entry_context_menu_item_add()
12223     */
12224    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
12225
12226    /**
12227     * This adds an item to the entry's contextual menu.
12228     *
12229     * A longpress on an entry will make the contextual menu show up, if this
12230     * hasn't been disabled with elm_entry_context_menu_disabled_set().
12231     * By default, this menu provides a few options like enabling selection mode,
12232     * which is useful on embedded devices that need to be explicit about it,
12233     * and when a selection exists it also shows the copy and cut actions.
12234     *
12235     * With this function, developers can add other options to this menu to
12236     * perform any action they deem necessary.
12237     *
12238     * @param obj The entry object
12239     * @param label The item's text label
12240     * @param icon_file The item's icon file
12241     * @param icon_type The item's icon type
12242     * @param func The callback to execute when the item is clicked
12243     * @param data The data to associate with the item for related functions
12244     */
12245    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);
12246
12247    /**
12248     * This disables the entry's contextual (longpress) menu.
12249     *
12250     * @param obj The entry object
12251     * @param disabled If true, the menu is disabled
12252     */
12253    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
12254
12255    /**
12256     * This returns whether the entry's contextual (longpress) menu is
12257     * disabled.
12258     *
12259     * @param obj The entry object
12260     * @return If true, the menu is disabled
12261     */
12262    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12263
12264    /**
12265     * This appends a custom item provider to the list for that entry
12266     *
12267     * This appends the given callback. The list is walked from beginning to end
12268     * with each function called given the item href string in the text. If the
12269     * function returns an object handle other than NULL (it should create an
12270     * object to do this), then this object is used to replace that item. If
12271     * not the next provider is called until one provides an item object, or the
12272     * default provider in entry does.
12273     *
12274     * @param obj The entry object
12275     * @param func The function called to provide the item object
12276     * @param data The data passed to @p func
12277     *
12278     * @see @ref entry-items
12279     */
12280    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);
12281
12282    /**
12283     * This prepends a custom item provider to the list for that entry
12284     *
12285     * This prepends the given callback. See elm_entry_item_provider_append() for
12286     * more information
12287     *
12288     * @param obj The entry object
12289     * @param func The function called to provide the item object
12290     * @param data The data passed to @p func
12291     */
12292    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);
12293
12294    /**
12295     * This removes a custom item provider to the list for that entry
12296     *
12297     * This removes the given callback. See elm_entry_item_provider_append() for
12298     * more information
12299     *
12300     * @param obj The entry object
12301     * @param func The function called to provide the item object
12302     * @param data The data passed to @p func
12303     */
12304    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);
12305
12306    /**
12307     * Append a filter function for text inserted in the entry
12308     *
12309     * Append the given callback to the list. This functions will be called
12310     * whenever any text is inserted into the entry, with the text to be inserted
12311     * as a parameter. The callback function is free to alter the text in any way
12312     * it wants, but it must remember to free the given pointer and update it.
12313     * If the new text is to be discarded, the function can free it and set its
12314     * text parameter to NULL. This will also prevent any following filters from
12315     * being called.
12316     *
12317     * @param obj The entry object
12318     * @param func The function to use as text filter
12319     * @param data User data to pass to @p func
12320     */
12321    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
12322
12323    /**
12324     * Prepend a filter function for text insdrted in the entry
12325     *
12326     * Prepend the given callback to the list. See elm_entry_text_filter_append()
12327     * for more information
12328     *
12329     * @param obj The entry object
12330     * @param func The function to use as text filter
12331     * @param data User data to pass to @p func
12332     */
12333    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
12334
12335    /**
12336     * Remove a filter from the list
12337     *
12338     * Removes the given callback from the filter list. See
12339     * elm_entry_text_filter_append() for more information.
12340     *
12341     * @param obj The entry object
12342     * @param func The filter function to remove
12343     * @param data The user data passed when adding the function
12344     */
12345    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
12346
12347    /**
12348     * This converts a markup (HTML-like) string into UTF-8.
12349     *
12350     * The returned string is a malloc'ed buffer and it should be freed when
12351     * not needed anymore.
12352     *
12353     * @param s The string (in markup) to be converted
12354     * @return The converted string (in UTF-8). It should be freed.
12355     */
12356    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
12357
12358    /**
12359     * This converts a UTF-8 string into markup (HTML-like).
12360     *
12361     * The returned string is a malloc'ed buffer and it should be freed when
12362     * not needed anymore.
12363     *
12364     * @param s The string (in UTF-8) to be converted
12365     * @return The converted string (in markup). It should be freed.
12366     */
12367    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
12368
12369    /**
12370     * This sets the file (and implicitly loads it) for the text to display and
12371     * then edit. All changes are written back to the file after a short delay if
12372     * the entry object is set to autosave (which is the default).
12373     *
12374     * If the entry had any other file set previously, any changes made to it
12375     * will be saved if the autosave feature is enabled, otherwise, the file
12376     * will be silently discarded and any non-saved changes will be lost.
12377     *
12378     * @param obj The entry object
12379     * @param file The path to the file to load and save
12380     * @param format The file format
12381     */
12382    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
12383
12384    /**
12385     * Gets the file being edited by the entry.
12386     *
12387     * This function can be used to retrieve any file set on the entry for
12388     * edition, along with the format used to load and save it.
12389     *
12390     * @param obj The entry object
12391     * @param file The path to the file to load and save
12392     * @param format The file format
12393     */
12394    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
12395
12396    /**
12397     * This function writes any changes made to the file set with
12398     * elm_entry_file_set()
12399     *
12400     * @param obj The entry object
12401     */
12402    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
12403
12404    /**
12405     * This sets the entry object to 'autosave' the loaded text file or not.
12406     *
12407     * @param obj The entry object
12408     * @param autosave Autosave the loaded file or not
12409     *
12410     * @see elm_entry_file_set()
12411     */
12412    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
12413
12414    /**
12415     * This gets the entry object's 'autosave' status.
12416     *
12417     * @param obj The entry object
12418     * @return Autosave the loaded file or not
12419     *
12420     * @see elm_entry_file_set()
12421     */
12422    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12423
12424    /**
12425     * Control pasting of text and images for the widget.
12426     *
12427     * Normally the entry allows both text and images to be pasted.  By setting
12428     * textonly to be true, this prevents images from being pasted.
12429     *
12430     * Note this only changes the behaviour of text.
12431     *
12432     * @param obj The entry object
12433     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
12434     * text+image+other.
12435     */
12436    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
12437
12438    /**
12439     * Getting elm_entry text paste/drop mode.
12440     *
12441     * In textonly mode, only text may be pasted or dropped into the widget.
12442     *
12443     * @param obj The entry object
12444     * @return If the widget only accepts text from pastes.
12445     */
12446    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12447
12448    /**
12449     * Enable or disable scrolling in entry
12450     *
12451     * Normally the entry is not scrollable unless you enable it with this call.
12452     *
12453     * @param obj The entry object
12454     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
12455     */
12456    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
12457
12458    /**
12459     * Get the scrollable state of the entry
12460     *
12461     * Normally the entry is not scrollable. This gets the scrollable state
12462     * of the entry. See elm_entry_scrollable_set() for more information.
12463     *
12464     * @param obj The entry object
12465     * @return The scrollable state
12466     */
12467    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
12468
12469    /**
12470     * This sets a widget to be displayed to the left of a scrolled entry.
12471     *
12472     * @param obj The scrolled entry object
12473     * @param icon The widget to display on the left side of the scrolled
12474     * entry.
12475     *
12476     * @note A previously set widget will be destroyed.
12477     * @note If the object being set does not have minimum size hints set,
12478     * it won't get properly displayed.
12479     *
12480     * @see elm_entry_end_set()
12481     */
12482    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
12483
12484    /**
12485     * Gets the leftmost widget of the scrolled entry. This object is
12486     * owned by the scrolled entry and should not be modified.
12487     *
12488     * @param obj The scrolled entry object
12489     * @return the left widget inside the scroller
12490     */
12491    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
12492
12493    /**
12494     * Unset the leftmost widget of the scrolled entry, unparenting and
12495     * returning it.
12496     *
12497     * @param obj The scrolled entry object
12498     * @return the previously set icon sub-object of this entry, on
12499     * success.
12500     *
12501     * @see elm_entry_icon_set()
12502     */
12503    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
12504
12505    /**
12506     * Sets the visibility of the left-side widget of the scrolled entry,
12507     * set by elm_entry_icon_set().
12508     *
12509     * @param obj The scrolled entry object
12510     * @param setting EINA_TRUE if the object should be displayed,
12511     * EINA_FALSE if not.
12512     */
12513    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
12514
12515    /**
12516     * This sets a widget to be displayed to the end of a scrolled entry.
12517     *
12518     * @param obj The scrolled entry object
12519     * @param end The widget to display on the right side of the scrolled
12520     * entry.
12521     *
12522     * @note A previously set widget will be destroyed.
12523     * @note If the object being set does not have minimum size hints set,
12524     * it won't get properly displayed.
12525     *
12526     * @see elm_entry_icon_set
12527     */
12528    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
12529
12530    /**
12531     * Gets the endmost widget of the scrolled entry. This object is owned
12532     * by the scrolled entry and should not be modified.
12533     *
12534     * @param obj The scrolled entry object
12535     * @return the right widget inside the scroller
12536     */
12537    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
12538
12539    /**
12540     * Unset the endmost widget of the scrolled entry, unparenting and
12541     * returning it.
12542     *
12543     * @param obj The scrolled entry object
12544     * @return the previously set icon sub-object of this entry, on
12545     * success.
12546     *
12547     * @see elm_entry_icon_set()
12548     */
12549    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
12550
12551    /**
12552     * Sets the visibility of the end widget of the scrolled entry, set by
12553     * elm_entry_end_set().
12554     *
12555     * @param obj The scrolled entry object
12556     * @param setting EINA_TRUE if the object should be displayed,
12557     * EINA_FALSE if not.
12558     */
12559    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
12560
12561    /**
12562     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
12563     * them).
12564     *
12565     * Setting an entry to single-line mode with elm_entry_single_line_set()
12566     * will automatically disable the display of scrollbars when the entry
12567     * moves inside its scroller.
12568     *
12569     * @param obj The scrolled entry object
12570     * @param h The horizontal scrollbar policy to apply
12571     * @param v The vertical scrollbar policy to apply
12572     */
12573    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
12574
12575    /**
12576     * This enables/disables bouncing within the entry.
12577     *
12578     * This function sets whether the entry will bounce when scrolling reaches
12579     * the end of the contained entry.
12580     *
12581     * @param obj The scrolled entry object
12582     * @param h The horizontal bounce state
12583     * @param v The vertical bounce state
12584     */
12585    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
12586
12587    /**
12588     * Get the bounce mode
12589     *
12590     * @param obj The Entry object
12591     * @param h_bounce Allow bounce horizontally
12592     * @param v_bounce Allow bounce vertically
12593     */
12594    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
12595
12596    /* pre-made filters for entries */
12597    /**
12598     * @typedef Elm_Entry_Filter_Limit_Size
12599     *
12600     * Data for the elm_entry_filter_limit_size() entry filter.
12601     */
12602    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
12603
12604    /**
12605     * @struct _Elm_Entry_Filter_Limit_Size
12606     *
12607     * Data for the elm_entry_filter_limit_size() entry filter.
12608     */
12609    struct _Elm_Entry_Filter_Limit_Size
12610      {
12611         int max_char_count; /**< The maximum number of characters allowed. */
12612         int max_byte_count; /**< The maximum number of bytes allowed*/
12613      };
12614
12615    /**
12616     * Filter inserted text based on user defined character and byte limits
12617     *
12618     * Add this filter to an entry to limit the characters that it will accept
12619     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
12620     * The funtion works on the UTF-8 representation of the string, converting
12621     * it from the set markup, thus not accounting for any format in it.
12622     *
12623     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
12624     * it as data when setting the filter. In it, it's possible to set limits
12625     * by character count or bytes (any of them is disabled if 0), and both can
12626     * be set at the same time. In that case, it first checks for characters,
12627     * then bytes.
12628     *
12629     * The function will cut the inserted text in order to allow only the first
12630     * number of characters that are still allowed. The cut is made in
12631     * characters, even when limiting by bytes, in order to always contain
12632     * valid ones and avoid half unicode characters making it in.
12633     *
12634     * This filter, like any others, does not apply when setting the entry text
12635     * directly with elm_object_text_set() (or the deprecated
12636     * elm_entry_entry_set()).
12637     */
12638    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
12639
12640    /**
12641     * @typedef Elm_Entry_Filter_Accept_Set
12642     *
12643     * Data for the elm_entry_filter_accept_set() entry filter.
12644     */
12645    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
12646
12647    /**
12648     * @struct _Elm_Entry_Filter_Accept_Set
12649     *
12650     * Data for the elm_entry_filter_accept_set() entry filter.
12651     */
12652    struct _Elm_Entry_Filter_Accept_Set
12653      {
12654         const char *accepted; /**< Set of characters accepted in the entry. */
12655         const char *rejected; /**< Set of characters rejected from the entry. */
12656      };
12657
12658    /**
12659     * Filter inserted text based on accepted or rejected sets of characters
12660     *
12661     * Add this filter to an entry to restrict the set of accepted characters
12662     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
12663     * This structure contains both accepted and rejected sets, but they are
12664     * mutually exclusive.
12665     *
12666     * The @c accepted set takes preference, so if it is set, the filter will
12667     * only work based on the accepted characters, ignoring anything in the
12668     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
12669     *
12670     * In both cases, the function filters by matching utf8 characters to the
12671     * raw markup text, so it can be used to remove formatting tags.
12672     *
12673     * This filter, like any others, does not apply when setting the entry text
12674     * directly with elm_object_text_set() (or the deprecated
12675     * elm_entry_entry_set()).
12676     */
12677    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
12678    /**
12679     * Set the input panel layout of the entry
12680     *
12681     * @param obj The entry object
12682     * @param layout layout type
12683     */
12684    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
12685
12686    /**
12687     * Get the input panel layout of the entry
12688     *
12689     * @param obj The entry object
12690     * @return layout type
12691     *
12692     * @see elm_entry_input_panel_layout_set
12693     */
12694    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12695
12696    /**
12697     * Set the autocapitalization type on the immodule.
12698     *
12699     * @param obj The entry object
12700     * @param autocapital_type The type of autocapitalization
12701     */
12702    EAPI void         elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
12703
12704    /**
12705     * Retrieve the autocapitalization type on the immodule.
12706     *
12707     * @param obj The entry object
12708     * @return autocapitalization type
12709     */
12710    EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12711
12712    /**
12713     * Sets the attribute to show the input panel automatically.
12714     *
12715     * @param obj The entry object
12716     * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
12717     */
12718    EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
12719
12720    /**
12721     * Retrieve the attribute to show the input panel automatically.
12722     *
12723     * @param obj The entry object
12724     * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
12725     */
12726    EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12727
12728    /**
12729     * @}
12730     */
12731
12732    /* composite widgets - these basically put together basic widgets above
12733     * in convenient packages that do more than basic stuff */
12734
12735    /* anchorview */
12736    /**
12737     * @defgroup Anchorview Anchorview
12738     *
12739     * @image html img/widget/anchorview/preview-00.png
12740     * @image latex img/widget/anchorview/preview-00.eps
12741     *
12742     * Anchorview is for displaying text that contains markup with anchors
12743     * like <c>\<a href=1234\>something\</\></c> in it.
12744     *
12745     * Besides being styled differently, the anchorview widget provides the
12746     * necessary functionality so that clicking on these anchors brings up a
12747     * popup with user defined content such as "call", "add to contacts" or
12748     * "open web page". This popup is provided using the @ref Hover widget.
12749     *
12750     * This widget is very similar to @ref Anchorblock, so refer to that
12751     * widget for an example. The only difference Anchorview has is that the
12752     * widget is already provided with scrolling functionality, so if the
12753     * text set to it is too large to fit in the given space, it will scroll,
12754     * whereas the @ref Anchorblock widget will keep growing to ensure all the
12755     * text can be displayed.
12756     *
12757     * This widget emits the following signals:
12758     * @li "anchor,clicked": will be called when an anchor is clicked. The
12759     * @p event_info parameter on the callback will be a pointer of type
12760     * ::Elm_Entry_Anchorview_Info.
12761     *
12762     * See @ref Anchorblock for an example on how to use both of them.
12763     *
12764     * @see Anchorblock
12765     * @see Entry
12766     * @see Hover
12767     *
12768     * @{
12769     */
12770
12771    /**
12772     * @typedef Elm_Entry_Anchorview_Info
12773     *
12774     * The info sent in the callback for "anchor,clicked" signals emitted by
12775     * the Anchorview widget.
12776     */
12777    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
12778
12779    /**
12780     * @struct _Elm_Entry_Anchorview_Info
12781     *
12782     * The info sent in the callback for "anchor,clicked" signals emitted by
12783     * the Anchorview widget.
12784     */
12785    struct _Elm_Entry_Anchorview_Info
12786      {
12787         const char     *name; /**< Name of the anchor, as indicated in its href
12788                                    attribute */
12789         int             button; /**< The mouse button used to click on it */
12790         Evas_Object    *hover; /**< The hover object to use for the popup */
12791         struct {
12792              Evas_Coord    x, y, w, h;
12793         } anchor, /**< Geometry selection of text used as anchor */
12794           hover_parent; /**< Geometry of the object used as parent by the
12795                              hover */
12796         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
12797                                              for content on the left side of
12798                                              the hover. Before calling the
12799                                              callback, the widget will make the
12800                                              necessary calculations to check
12801                                              which sides are fit to be set with
12802                                              content, based on the position the
12803                                              hover is activated and its distance
12804                                              to the edges of its parent object
12805                                              */
12806         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
12807                                               the right side of the hover.
12808                                               See @ref hover_left */
12809         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
12810                                             of the hover. See @ref hover_left */
12811         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
12812                                                below the hover. See @ref
12813                                                hover_left */
12814      };
12815
12816    /**
12817     * Add a new Anchorview object
12818     *
12819     * @param parent The parent object
12820     * @return The new object or NULL if it cannot be created
12821     */
12822    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12823
12824    /**
12825     * Set the text to show in the anchorview
12826     *
12827     * Sets the text of the anchorview to @p text. This text can include markup
12828     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
12829     * text that will be specially styled and react to click events, ended with
12830     * either of \</a\> or \</\>. When clicked, the anchor will emit an
12831     * "anchor,clicked" signal that you can attach a callback to with
12832     * evas_object_smart_callback_add(). The name of the anchor given in the
12833     * event info struct will be the one set in the href attribute, in this
12834     * case, anchorname.
12835     *
12836     * Other markup can be used to style the text in different ways, but it's
12837     * up to the style defined in the theme which tags do what.
12838     * @deprecated use elm_object_text_set() instead.
12839     */
12840    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12841
12842    /**
12843     * Get the markup text set for the anchorview
12844     *
12845     * Retrieves the text set on the anchorview, with markup tags included.
12846     *
12847     * @param obj The anchorview object
12848     * @return The markup text set or @c NULL if nothing was set or an error
12849     * occurred
12850     * @deprecated use elm_object_text_set() instead.
12851     */
12852    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12853
12854    /**
12855     * Set the parent of the hover popup
12856     *
12857     * Sets the parent object to use by the hover created by the anchorview
12858     * when an anchor is clicked. See @ref Hover for more details on this.
12859     * If no parent is set, the same anchorview object will be used.
12860     *
12861     * @param obj The anchorview object
12862     * @param parent The object to use as parent for the hover
12863     */
12864    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12865
12866    /**
12867     * Get the parent of the hover popup
12868     *
12869     * Get the object used as parent for the hover created by the anchorview
12870     * widget. See @ref Hover for more details on this.
12871     *
12872     * @param obj The anchorview object
12873     * @return The object used as parent for the hover, NULL if none is set.
12874     */
12875    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12876
12877    /**
12878     * Set the style that the hover should use
12879     *
12880     * When creating the popup hover, anchorview will request that it's
12881     * themed according to @p style.
12882     *
12883     * @param obj The anchorview object
12884     * @param style The style to use for the underlying hover
12885     *
12886     * @see elm_object_style_set()
12887     */
12888    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12889
12890    /**
12891     * Get the style that the hover should use
12892     *
12893     * Get the style the hover created by anchorview will use.
12894     *
12895     * @param obj The anchorview object
12896     * @return The style to use by the hover. NULL means the default is used.
12897     *
12898     * @see elm_object_style_set()
12899     */
12900    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12901
12902    /**
12903     * Ends the hover popup in the anchorview
12904     *
12905     * When an anchor is clicked, the anchorview widget will create a hover
12906     * object to use as a popup with user provided content. This function
12907     * terminates this popup, returning the anchorview to its normal state.
12908     *
12909     * @param obj The anchorview object
12910     */
12911    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12912
12913    /**
12914     * Set bouncing behaviour when the scrolled content reaches an edge
12915     *
12916     * Tell the internal scroller object whether it should bounce or not
12917     * when it reaches the respective edges for each axis.
12918     *
12919     * @param obj The anchorview object
12920     * @param h_bounce Whether to bounce or not in the horizontal axis
12921     * @param v_bounce Whether to bounce or not in the vertical axis
12922     *
12923     * @see elm_scroller_bounce_set()
12924     */
12925    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
12926
12927    /**
12928     * Get the set bouncing behaviour of the internal scroller
12929     *
12930     * Get whether the internal scroller should bounce when the edge of each
12931     * axis is reached scrolling.
12932     *
12933     * @param obj The anchorview object
12934     * @param h_bounce Pointer where to store the bounce state of the horizontal
12935     *                 axis
12936     * @param v_bounce Pointer where to store the bounce state of the vertical
12937     *                 axis
12938     *
12939     * @see elm_scroller_bounce_get()
12940     */
12941    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
12942
12943    /**
12944     * Appends a custom item provider to the given anchorview
12945     *
12946     * Appends the given function to the list of items providers. This list is
12947     * called, one function at a time, with the given @p data pointer, the
12948     * anchorview object and, in the @p item parameter, the item name as
12949     * referenced in its href string. Following functions in the list will be
12950     * called in order until one of them returns something different to NULL,
12951     * which should be an Evas_Object which will be used in place of the item
12952     * element.
12953     *
12954     * Items in the markup text take the form \<item relsize=16x16 vsize=full
12955     * href=item/name\>\</item\>
12956     *
12957     * @param obj The anchorview object
12958     * @param func The function to add to the list of providers
12959     * @param data User data that will be passed to the callback function
12960     *
12961     * @see elm_entry_item_provider_append()
12962     */
12963    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);
12964
12965    /**
12966     * Prepend a custom item provider to the given anchorview
12967     *
12968     * Like elm_anchorview_item_provider_append(), but it adds the function
12969     * @p func to the beginning of the list, instead of the end.
12970     *
12971     * @param obj The anchorview object
12972     * @param func The function to add to the list of providers
12973     * @param data User data that will be passed to the callback function
12974     */
12975    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);
12976
12977    /**
12978     * Remove a custom item provider from the list of the given anchorview
12979     *
12980     * Removes the function and data pairing that matches @p func and @p data.
12981     * That is, unless the same function and same user data are given, the
12982     * function will not be removed from the list. This allows us to add the
12983     * same callback several times, with different @p data pointers and be
12984     * able to remove them later without conflicts.
12985     *
12986     * @param obj The anchorview object
12987     * @param func The function to remove from the list
12988     * @param data The data matching the function to remove from the list
12989     */
12990    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);
12991
12992    /**
12993     * @}
12994     */
12995
12996    /* anchorblock */
12997    /**
12998     * @defgroup Anchorblock Anchorblock
12999     *
13000     * @image html img/widget/anchorblock/preview-00.png
13001     * @image latex img/widget/anchorblock/preview-00.eps
13002     *
13003     * Anchorblock is for displaying text that contains markup with anchors
13004     * like <c>\<a href=1234\>something\</\></c> in it.
13005     *
13006     * Besides being styled differently, the anchorblock widget provides the
13007     * necessary functionality so that clicking on these anchors brings up a
13008     * popup with user defined content such as "call", "add to contacts" or
13009     * "open web page". This popup is provided using the @ref Hover widget.
13010     *
13011     * This widget emits the following signals:
13012     * @li "anchor,clicked": will be called when an anchor is clicked. The
13013     * @p event_info parameter on the callback will be a pointer of type
13014     * ::Elm_Entry_Anchorblock_Info.
13015     *
13016     * @see Anchorview
13017     * @see Entry
13018     * @see Hover
13019     *
13020     * Since examples are usually better than plain words, we might as well
13021     * try @ref tutorial_anchorblock_example "one".
13022     */
13023
13024    /**
13025     * @addtogroup Anchorblock
13026     * @{
13027     */
13028
13029    /**
13030     * @typedef Elm_Entry_Anchorblock_Info
13031     *
13032     * The info sent in the callback for "anchor,clicked" signals emitted by
13033     * the Anchorblock widget.
13034     */
13035    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
13036
13037    /**
13038     * @struct _Elm_Entry_Anchorblock_Info
13039     *
13040     * The info sent in the callback for "anchor,clicked" signals emitted by
13041     * the Anchorblock widget.
13042     */
13043    struct _Elm_Entry_Anchorblock_Info
13044      {
13045         const char     *name; /**< Name of the anchor, as indicated in its href
13046                                    attribute */
13047         int             button; /**< The mouse button used to click on it */
13048         Evas_Object    *hover; /**< The hover object to use for the popup */
13049         struct {
13050              Evas_Coord    x, y, w, h;
13051         } anchor, /**< Geometry selection of text used as anchor */
13052           hover_parent; /**< Geometry of the object used as parent by the
13053                              hover */
13054         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
13055                                              for content on the left side of
13056                                              the hover. Before calling the
13057                                              callback, the widget will make the
13058                                              necessary calculations to check
13059                                              which sides are fit to be set with
13060                                              content, based on the position the
13061                                              hover is activated and its distance
13062                                              to the edges of its parent object
13063                                              */
13064         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
13065                                               the right side of the hover.
13066                                               See @ref hover_left */
13067         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
13068                                             of the hover. See @ref hover_left */
13069         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
13070                                                below the hover. See @ref
13071                                                hover_left */
13072      };
13073
13074 /**
13075     * Add a new Anchorblock object
13076     *
13077     * @param parent The parent object
13078     * @return The new object or NULL if it cannot be created
13079     */
13080    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13081
13082    /**
13083     * Set the text to show in the anchorblock
13084     *
13085     * Sets the text of the anchorblock to @p text. This text can include markup
13086     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
13087     * of text that will be specially styled and react to click events, ended
13088     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
13089     * "anchor,clicked" signal that you can attach a callback to with
13090     * evas_object_smart_callback_add(). The name of the anchor given in the
13091     * event info struct will be the one set in the href attribute, in this
13092     * case, anchorname.
13093     *
13094     * Other markup can be used to style the text in different ways, but it's
13095     * up to the style defined in the theme which tags do what.
13096     * @deprecated use elm_object_text_set() instead.
13097     */
13098    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
13099
13100    /**
13101     * Get the markup text set for the anchorblock
13102     *
13103     * Retrieves the text set on the anchorblock, with markup tags included.
13104     *
13105     * @param obj The anchorblock object
13106     * @return The markup text set or @c NULL if nothing was set or an error
13107     * occurred
13108     * @deprecated use elm_object_text_set() instead.
13109     */
13110    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13111
13112    /**
13113     * Set the parent of the hover popup
13114     *
13115     * Sets the parent object to use by the hover created by the anchorblock
13116     * when an anchor is clicked. See @ref Hover for more details on this.
13117     *
13118     * @param obj The anchorblock object
13119     * @param parent The object to use as parent for the hover
13120     */
13121    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13122
13123    /**
13124     * Get the parent of the hover popup
13125     *
13126     * Get the object used as parent for the hover created by the anchorblock
13127     * widget. See @ref Hover for more details on this.
13128     * If no parent is set, the same anchorblock object will be used.
13129     *
13130     * @param obj The anchorblock object
13131     * @return The object used as parent for the hover, NULL if none is set.
13132     */
13133    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13134
13135    /**
13136     * Set the style that the hover should use
13137     *
13138     * When creating the popup hover, anchorblock will request that it's
13139     * themed according to @p style.
13140     *
13141     * @param obj The anchorblock object
13142     * @param style The style to use for the underlying hover
13143     *
13144     * @see elm_object_style_set()
13145     */
13146    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
13147
13148    /**
13149     * Get the style that the hover should use
13150     *
13151     * Get the style, the hover created by anchorblock will use.
13152     *
13153     * @param obj The anchorblock object
13154     * @return The style to use by the hover. NULL means the default is used.
13155     *
13156     * @see elm_object_style_set()
13157     */
13158    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13159
13160    /**
13161     * Ends the hover popup in the anchorblock
13162     *
13163     * When an anchor is clicked, the anchorblock widget will create a hover
13164     * object to use as a popup with user provided content. This function
13165     * terminates this popup, returning the anchorblock to its normal state.
13166     *
13167     * @param obj The anchorblock object
13168     */
13169    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
13170
13171    /**
13172     * Appends a custom item provider to the given anchorblock
13173     *
13174     * Appends the given function to the list of items providers. This list is
13175     * called, one function at a time, with the given @p data pointer, the
13176     * anchorblock object and, in the @p item parameter, the item name as
13177     * referenced in its href string. Following functions in the list will be
13178     * called in order until one of them returns something different to NULL,
13179     * which should be an Evas_Object which will be used in place of the item
13180     * element.
13181     *
13182     * Items in the markup text take the form \<item relsize=16x16 vsize=full
13183     * href=item/name\>\</item\>
13184     *
13185     * @param obj The anchorblock object
13186     * @param func The function to add to the list of providers
13187     * @param data User data that will be passed to the callback function
13188     *
13189     * @see elm_entry_item_provider_append()
13190     */
13191    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);
13192
13193    /**
13194     * Prepend a custom item provider to the given anchorblock
13195     *
13196     * Like elm_anchorblock_item_provider_append(), but it adds the function
13197     * @p func to the beginning of the list, instead of the end.
13198     *
13199     * @param obj The anchorblock object
13200     * @param func The function to add to the list of providers
13201     * @param data User data that will be passed to the callback function
13202     */
13203    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);
13204
13205    /**
13206     * Remove a custom item provider from the list of the given anchorblock
13207     *
13208     * Removes the function and data pairing that matches @p func and @p data.
13209     * That is, unless the same function and same user data are given, the
13210     * function will not be removed from the list. This allows us to add the
13211     * same callback several times, with different @p data pointers and be
13212     * able to remove them later without conflicts.
13213     *
13214     * @param obj The anchorblock object
13215     * @param func The function to remove from the list
13216     * @param data The data matching the function to remove from the list
13217     */
13218    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);
13219
13220    /**
13221     * @}
13222     */
13223
13224    /**
13225     * @defgroup Bubble Bubble
13226     *
13227     * @image html img/widget/bubble/preview-00.png
13228     * @image latex img/widget/bubble/preview-00.eps
13229     * @image html img/widget/bubble/preview-01.png
13230     * @image latex img/widget/bubble/preview-01.eps
13231     * @image html img/widget/bubble/preview-02.png
13232     * @image latex img/widget/bubble/preview-02.eps
13233     *
13234     * @brief The Bubble is a widget to show text similar to how speech is
13235     * represented in comics.
13236     *
13237     * The bubble widget contains 5 important visual elements:
13238     * @li The frame is a rectangle with rounded edjes and an "arrow".
13239     * @li The @p icon is an image to which the frame's arrow points to.
13240     * @li The @p label is a text which appears to the right of the icon if the
13241     * corner is "top_left" or "bottom_left" and is right aligned to the frame
13242     * otherwise.
13243     * @li The @p info is a text which appears to the right of the label. Info's
13244     * font is of a ligther color than label.
13245     * @li The @p content is an evas object that is shown inside the frame.
13246     *
13247     * The position of the arrow, icon, label and info depends on which corner is
13248     * selected. The four available corners are:
13249     * @li "top_left" - Default
13250     * @li "top_right"
13251     * @li "bottom_left"
13252     * @li "bottom_right"
13253     *
13254     * Signals that you can add callbacks for are:
13255     * @li "clicked" - This is called when a user has clicked the bubble.
13256     *
13257     * Default contents parts of the bubble that you can use for are:
13258     * @li "default" - A content of the bubble
13259     * @li "icon" - An icon of the bubble
13260     *
13261     * Default text parts of the button widget that you can use for are:
13262     * @li NULL - Label of the bubble
13263     *
13264          * For an example of using a buble see @ref bubble_01_example_page "this".
13265     *
13266     * @{
13267     */
13268
13269    /**
13270     * Add a new bubble to the parent
13271     *
13272     * @param parent The parent object
13273     * @return The new object or NULL if it cannot be created
13274     *
13275     * This function adds a text bubble to the given parent evas object.
13276     */
13277    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13278
13279    /**
13280     * Set the label of the bubble
13281     *
13282     * @param obj The bubble object
13283     * @param label The string to set in the label
13284     *
13285     * This function sets the title of the bubble. Where this appears depends on
13286     * the selected corner.
13287     * @deprecated use elm_object_text_set() instead.
13288     */
13289    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13290
13291    /**
13292     * Get the label of the bubble
13293     *
13294     * @param obj The bubble object
13295     * @return The string of set in the label
13296     *
13297     * This function gets the title of the bubble.
13298     * @deprecated use elm_object_text_get() instead.
13299     */
13300    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13301
13302    /**
13303     * Set the info of the bubble
13304     *
13305     * @param obj The bubble object
13306     * @param info The given info about the bubble
13307     *
13308     * This function sets the info of the bubble. Where this appears depends on
13309     * the selected corner.
13310     * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
13311     */
13312    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
13313
13314    /**
13315     * Get the info of the bubble
13316     *
13317     * @param obj The bubble object
13318     *
13319     * @return The "info" string of the bubble
13320     *
13321     * This function gets the info text.
13322     * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
13323     */
13324    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13325
13326    /**
13327     * Set the content to be shown in the bubble
13328     *
13329     * Once the content object is set, a previously set one will be deleted.
13330     * If you want to keep the old content object, use the
13331     * elm_bubble_content_unset() function.
13332     *
13333     * @param obj The bubble object
13334     * @param content The given content of the bubble
13335     *
13336     * This function sets the content shown on the middle of the bubble.
13337     *
13338     * @deprecated use elm_object_content_set() instead
13339     *
13340     */
13341    EINA_DEPRECATED EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
13342
13343    /**
13344     * Get the content shown in the bubble
13345     *
13346     * Return the content object which is set for this widget.
13347     *
13348     * @param obj The bubble object
13349     * @return The content that is being used
13350     *
13351     * @deprecated use elm_object_content_get() instead
13352     *
13353     */
13354    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13355
13356    /**
13357     * Unset the content shown in the bubble
13358     *
13359     * Unparent and return the content object which was set for this widget.
13360     *
13361     * @param obj The bubble object
13362     * @return The content that was being used
13363     *
13364     * @deprecated use elm_object_content_unset() instead
13365     *
13366     */
13367    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13368
13369    /**
13370     * Set the icon of the bubble
13371     *
13372     * Once the icon object is set, a previously set one will be deleted.
13373     * If you want to keep the old content object, use the
13374     * elm_icon_content_unset() function.
13375     *
13376     * @param obj The bubble object
13377     * @param icon The given icon for the bubble
13378     *
13379     * @deprecated use elm_object_part_content_set() instead
13380     *
13381     */
13382    EINA_DEPRECATED EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
13383
13384    /**
13385     * Get the icon of the bubble
13386     *
13387     * @param obj The bubble object
13388     * @return The icon for the bubble
13389     *
13390     * This function gets the icon shown on the top left of bubble.
13391     *
13392     * @deprecated use elm_object_part_content_get() instead
13393     *
13394     */
13395    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13396
13397    /**
13398     * Unset the icon of the bubble
13399     *
13400     * Unparent and return the icon object which was set for this widget.
13401     *
13402     * @param obj The bubble object
13403     * @return The icon that was being used
13404     *
13405     * @deprecated use elm_object_part_content_unset() instead
13406     *
13407     */
13408    EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13409
13410    /**
13411     * Set the corner of the bubble
13412     *
13413     * @param obj The bubble object.
13414     * @param corner The given corner for the bubble.
13415     *
13416     * This function sets the corner of the bubble. The corner will be used to
13417     * determine where the arrow in the frame points to and where label, icon and
13418     * info are shown.
13419     *
13420     * Possible values for corner are:
13421     * @li "top_left" - Default
13422     * @li "top_right"
13423     * @li "bottom_left"
13424     * @li "bottom_right"
13425     */
13426    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
13427
13428    /**
13429     * Get the corner of the bubble
13430     *
13431     * @param obj The bubble object.
13432     * @return The given corner for the bubble.
13433     *
13434     * This function gets the selected corner of the bubble.
13435     */
13436    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13437
13438    /**
13439     * @}
13440     */
13441
13442    /**
13443     * @defgroup Photo Photo
13444     *
13445     * For displaying the photo of a person (contact). Simple, yet
13446     * with a very specific purpose.
13447     *
13448     * Signals that you can add callbacks for are:
13449     *
13450     * "clicked" - This is called when a user has clicked the photo
13451     * "drag,start" - Someone started dragging the image out of the object
13452     * "drag,end" - Dragged item was dropped (somewhere)
13453     *
13454     * @{
13455     */
13456
13457    /**
13458     * Add a new photo to the parent
13459     *
13460     * @param parent The parent object
13461     * @return The new object or NULL if it cannot be created
13462     *
13463     * @ingroup Photo
13464     */
13465    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13466
13467    /**
13468     * Set the file that will be used as photo
13469     *
13470     * @param obj The photo object
13471     * @param file The path to file that will be used as photo
13472     *
13473     * @return (1 = success, 0 = error)
13474     *
13475     * @ingroup Photo
13476     */
13477    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
13478
13479     /**
13480     * Set the file that will be used as thumbnail in the photo.
13481     *
13482     * @param obj The photo object.
13483     * @param file The path to file that will be used as thumb.
13484     * @param group The key used in case of an EET file.
13485     *
13486     * @ingroup Photo
13487     */
13488    EAPI void         elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
13489
13490    /**
13491     * Set the size that will be used on the photo
13492     *
13493     * @param obj The photo object
13494     * @param size The size that the photo will be
13495     *
13496     * @ingroup Photo
13497     */
13498    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
13499
13500    /**
13501     * Set if the photo should be completely visible or not.
13502     *
13503     * @param obj The photo object
13504     * @param fill if true the photo will be completely visible
13505     *
13506     * @ingroup Photo
13507     */
13508    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
13509
13510    /**
13511     * Set editability of the photo.
13512     *
13513     * An editable photo can be dragged to or from, and can be cut or
13514     * pasted too.  Note that pasting an image or dropping an item on
13515     * the image will delete the existing content.
13516     *
13517     * @param obj The photo object.
13518     * @param set To set of clear editablity.
13519     */
13520    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
13521
13522    /**
13523     * @}
13524     */
13525
13526    /* gesture layer */
13527    /**
13528     * @defgroup Elm_Gesture_Layer Gesture Layer
13529     * Gesture Layer Usage:
13530     *
13531     * Use Gesture Layer to detect gestures.
13532     * The advantage is that you don't have to implement
13533     * gesture detection, just set callbacks of gesture state.
13534     * By using gesture layer we make standard interface.
13535     *
13536     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
13537     * with a parent object parameter.
13538     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
13539     * call. Usually with same object as target (2nd parameter).
13540     *
13541     * Now you need to tell gesture layer what gestures you follow.
13542     * This is done with @ref elm_gesture_layer_cb_set call.
13543     * By setting the callback you actually saying to gesture layer:
13544     * I would like to know when the gesture @ref Elm_Gesture_Types
13545     * switches to state @ref Elm_Gesture_State.
13546     *
13547     * Next, you need to implement the actual action that follows the input
13548     * in your callback.
13549     *
13550     * Note that if you like to stop being reported about a gesture, just set
13551     * all callbacks referring this gesture to NULL.
13552     * (again with @ref elm_gesture_layer_cb_set)
13553     *
13554     * The information reported by gesture layer to your callback is depending
13555     * on @ref Elm_Gesture_Types:
13556     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
13557     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
13558     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
13559     *
13560     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
13561     * @ref ELM_GESTURE_MOMENTUM.
13562     *
13563     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
13564     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
13565     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
13566     * Note that we consider a flick as a line-gesture that should be completed
13567     * in flick-time-limit as defined in @ref Config.
13568     *
13569     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
13570     *
13571     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
13572     *
13573     *
13574     * Gesture Layer Tweaks:
13575     *
13576     * Note that line, flick, gestures can start without the need to remove fingers from surface.
13577     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
13578     *
13579     * Setting glayer_continues_enable to false in @ref Config will change this behavior
13580     * so gesture starts when user touches (a *DOWN event) touch-surface
13581     * and ends when no fingers touches surface (a *UP event).
13582     */
13583
13584    /**
13585     * @enum _Elm_Gesture_Types
13586     * Enum of supported gesture types.
13587     * @ingroup Elm_Gesture_Layer
13588     */
13589    enum _Elm_Gesture_Types
13590      {
13591         ELM_GESTURE_FIRST = 0,
13592
13593         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
13594         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
13595         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
13596         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
13597
13598         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
13599
13600         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
13601         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
13602
13603         ELM_GESTURE_ZOOM, /**< Zoom */
13604         ELM_GESTURE_ROTATE, /**< Rotate */
13605
13606         ELM_GESTURE_LAST
13607      };
13608
13609    /**
13610     * @typedef Elm_Gesture_Types
13611     * gesture types enum
13612     * @ingroup Elm_Gesture_Layer
13613     */
13614    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
13615
13616    /**
13617     * @enum _Elm_Gesture_State
13618     * Enum of gesture states.
13619     * @ingroup Elm_Gesture_Layer
13620     */
13621    enum _Elm_Gesture_State
13622      {
13623         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
13624         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
13625         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
13626         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
13627         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
13628      };
13629
13630    /**
13631     * @typedef Elm_Gesture_State
13632     * gesture states enum
13633     * @ingroup Elm_Gesture_Layer
13634     */
13635    typedef enum _Elm_Gesture_State Elm_Gesture_State;
13636
13637    /**
13638     * @struct _Elm_Gesture_Taps_Info
13639     * Struct holds taps info for user
13640     * @ingroup Elm_Gesture_Layer
13641     */
13642    struct _Elm_Gesture_Taps_Info
13643      {
13644         Evas_Coord x, y;         /**< Holds center point between fingers */
13645         unsigned int n;          /**< Number of fingers tapped           */
13646         unsigned int timestamp;  /**< event timestamp       */
13647      };
13648
13649    /**
13650     * @typedef Elm_Gesture_Taps_Info
13651     * holds taps info for user
13652     * @ingroup Elm_Gesture_Layer
13653     */
13654    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
13655
13656    /**
13657     * @struct _Elm_Gesture_Momentum_Info
13658     * Struct holds momentum info for user
13659     * x1 and y1 are not necessarily in sync
13660     * x1 holds x value of x direction starting point
13661     * and same holds for y1.
13662     * This is noticeable when doing V-shape movement
13663     * @ingroup Elm_Gesture_Layer
13664     */
13665    struct _Elm_Gesture_Momentum_Info
13666      {  /* Report line ends, timestamps, and momentum computed        */
13667         Evas_Coord x1; /**< Final-swipe direction starting point on X */
13668         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
13669         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
13670         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
13671
13672         unsigned int tx; /**< Timestamp of start of final x-swipe */
13673         unsigned int ty; /**< Timestamp of start of final y-swipe */
13674
13675         Evas_Coord mx; /**< Momentum on X */
13676         Evas_Coord my; /**< Momentum on Y */
13677
13678         unsigned int n;  /**< Number of fingers */
13679      };
13680
13681    /**
13682     * @typedef Elm_Gesture_Momentum_Info
13683     * holds momentum info for user
13684     * @ingroup Elm_Gesture_Layer
13685     */
13686     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
13687
13688    /**
13689     * @struct _Elm_Gesture_Line_Info
13690     * Struct holds line info for user
13691     * @ingroup Elm_Gesture_Layer
13692     */
13693    struct _Elm_Gesture_Line_Info
13694      {  /* Report line ends, timestamps, and momentum computed      */
13695         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
13696         double angle;              /**< Angle (direction) of lines  */
13697      };
13698
13699    /**
13700     * @typedef Elm_Gesture_Line_Info
13701     * Holds line info for user
13702     * @ingroup Elm_Gesture_Layer
13703     */
13704     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
13705
13706    /**
13707     * @struct _Elm_Gesture_Zoom_Info
13708     * Struct holds zoom info for user
13709     * @ingroup Elm_Gesture_Layer
13710     */
13711    struct _Elm_Gesture_Zoom_Info
13712      {
13713         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
13714         Evas_Coord radius; /**< Holds radius between fingers reported to user */
13715         double zoom;            /**< Zoom value: 1.0 means no zoom             */
13716         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
13717      };
13718
13719    /**
13720     * @typedef Elm_Gesture_Zoom_Info
13721     * Holds zoom info for user
13722     * @ingroup Elm_Gesture_Layer
13723     */
13724    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
13725
13726    /**
13727     * @struct _Elm_Gesture_Rotate_Info
13728     * Struct holds rotation info for user
13729     * @ingroup Elm_Gesture_Layer
13730     */
13731    struct _Elm_Gesture_Rotate_Info
13732      {
13733         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
13734         Evas_Coord radius; /**< Holds radius between fingers reported to user */
13735         double base_angle; /**< Holds start-angle */
13736         double angle;      /**< Rotation value: 0.0 means no rotation         */
13737         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
13738      };
13739
13740    /**
13741     * @typedef Elm_Gesture_Rotate_Info
13742     * Holds rotation info for user
13743     * @ingroup Elm_Gesture_Layer
13744     */
13745    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
13746
13747    /**
13748     * @typedef Elm_Gesture_Event_Cb
13749     * User callback used to stream gesture info from gesture layer
13750     * @param data user data
13751     * @param event_info gesture report info
13752     * Returns a flag field to be applied on the causing event.
13753     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
13754     * upon the event, in an irreversible way.
13755     *
13756     * @ingroup Elm_Gesture_Layer
13757     */
13758    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
13759
13760    /**
13761     * Use function to set callbacks to be notified about
13762     * change of state of gesture.
13763     * When a user registers a callback with this function
13764     * this means this gesture has to be tested.
13765     *
13766     * When ALL callbacks for a gesture are set to NULL
13767     * it means user isn't interested in gesture-state
13768     * and it will not be tested.
13769     *
13770     * @param obj Pointer to gesture-layer.
13771     * @param idx The gesture you would like to track its state.
13772     * @param cb callback function pointer.
13773     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
13774     * @param data user info to be sent to callback (usually, Smart Data)
13775     *
13776     * @ingroup Elm_Gesture_Layer
13777     */
13778    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);
13779
13780    /**
13781     * Call this function to get repeat-events settings.
13782     *
13783     * @param obj Pointer to gesture-layer.
13784     *
13785     * @return repeat events settings.
13786     * @see elm_gesture_layer_hold_events_set()
13787     * @ingroup Elm_Gesture_Layer
13788     */
13789    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13790
13791    /**
13792     * This function called in order to make gesture-layer repeat events.
13793     * Set this of you like to get the raw events only if gestures were not detected.
13794     * Clear this if you like gesture layer to fwd events as testing gestures.
13795     *
13796     * @param obj Pointer to gesture-layer.
13797     * @param r Repeat: TRUE/FALSE
13798     *
13799     * @ingroup Elm_Gesture_Layer
13800     */
13801    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
13802
13803    /**
13804     * This function sets step-value for zoom action.
13805     * Set step to any positive value.
13806     * Cancel step setting by setting to 0.0
13807     *
13808     * @param obj Pointer to gesture-layer.
13809     * @param s new zoom step value.
13810     *
13811     * @ingroup Elm_Gesture_Layer
13812     */
13813    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13814
13815    /**
13816     * This function sets step-value for rotate action.
13817     * Set step to any positive value.
13818     * Cancel step setting by setting to 0.0
13819     *
13820     * @param obj Pointer to gesture-layer.
13821     * @param s new roatate step value.
13822     *
13823     * @ingroup Elm_Gesture_Layer
13824     */
13825    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13826
13827    /**
13828     * This function called to attach gesture-layer to an Evas_Object.
13829     * @param obj Pointer to gesture-layer.
13830     * @param t Pointer to underlying object (AKA Target)
13831     *
13832     * @return TRUE, FALSE on success, failure.
13833     *
13834     * @ingroup Elm_Gesture_Layer
13835     */
13836    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
13837
13838    /**
13839     * Call this function to construct a new gesture-layer object.
13840     * This does not activate the gesture layer. You have to
13841     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
13842     *
13843     * @param parent the parent object.
13844     *
13845     * @return Pointer to new gesture-layer object.
13846     *
13847     * @ingroup Elm_Gesture_Layer
13848     */
13849    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13850
13851    /**
13852     * @defgroup Thumb Thumb
13853     *
13854     * @image html img/widget/thumb/preview-00.png
13855     * @image latex img/widget/thumb/preview-00.eps
13856     *
13857     * A thumb object is used for displaying the thumbnail of an image or video.
13858     * You must have compiled Elementary with Ethumb_Client support and the DBus
13859     * service must be present and auto-activated in order to have thumbnails to
13860     * be generated.
13861     *
13862     * Once the thumbnail object becomes visible, it will check if there is a
13863     * previously generated thumbnail image for the file set on it. If not, it
13864     * will start generating this thumbnail.
13865     *
13866     * Different config settings will cause different thumbnails to be generated
13867     * even on the same file.
13868     *
13869     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
13870     * Ethumb documentation to change this path, and to see other configuration
13871     * options.
13872     *
13873     * Signals that you can add callbacks for are:
13874     *
13875     * - "clicked" - This is called when a user has clicked the thumb without dragging
13876     *             around.
13877     * - "clicked,double" - This is called when a user has double-clicked the thumb.
13878     * - "press" - This is called when a user has pressed down the thumb.
13879     * - "generate,start" - The thumbnail generation started.
13880     * - "generate,stop" - The generation process stopped.
13881     * - "generate,error" - The generation failed.
13882     * - "load,error" - The thumbnail image loading failed.
13883     *
13884     * available styles:
13885     * - default
13886     * - noframe
13887     *
13888     * An example of use of thumbnail:
13889     *
13890     * - @ref thumb_example_01
13891     */
13892
13893    /**
13894     * @addtogroup Thumb
13895     * @{
13896     */
13897
13898    /**
13899     * @enum _Elm_Thumb_Animation_Setting
13900     * @typedef Elm_Thumb_Animation_Setting
13901     *
13902     * Used to set if a video thumbnail is animating or not.
13903     *
13904     * @ingroup Thumb
13905     */
13906    typedef enum _Elm_Thumb_Animation_Setting
13907      {
13908         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
13909         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
13910         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
13911         ELM_THUMB_ANIMATION_LAST
13912      } Elm_Thumb_Animation_Setting;
13913
13914    /**
13915     * Add a new thumb object to the parent.
13916     *
13917     * @param parent The parent object.
13918     * @return The new object or NULL if it cannot be created.
13919     *
13920     * @see elm_thumb_file_set()
13921     * @see elm_thumb_ethumb_client_get()
13922     *
13923     * @ingroup Thumb
13924     */
13925    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13926
13927    /**
13928     * Reload thumbnail if it was generated before.
13929     *
13930     * @param obj The thumb object to reload
13931     *
13932     * This is useful if the ethumb client configuration changed, like its
13933     * size, aspect or any other property one set in the handle returned
13934     * by elm_thumb_ethumb_client_get().
13935     *
13936     * If the options didn't change, the thumbnail won't be generated again, but
13937     * the old one will still be used.
13938     *
13939     * @see elm_thumb_file_set()
13940     *
13941     * @ingroup Thumb
13942     */
13943    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
13944
13945    /**
13946     * Set the file that will be used as thumbnail.
13947     *
13948     * @param obj The thumb object.
13949     * @param file The path to file that will be used as thumb.
13950     * @param key The key used in case of an EET file.
13951     *
13952     * The file can be an image or a video (in that case, acceptable extensions are:
13953     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
13954     * function elm_thumb_animate().
13955     *
13956     * @see elm_thumb_file_get()
13957     * @see elm_thumb_reload()
13958     * @see elm_thumb_animate()
13959     *
13960     * @ingroup Thumb
13961     */
13962    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
13963
13964    /**
13965     * Get the image or video path and key used to generate the thumbnail.
13966     *
13967     * @param obj The thumb object.
13968     * @param file Pointer to filename.
13969     * @param key Pointer to key.
13970     *
13971     * @see elm_thumb_file_set()
13972     * @see elm_thumb_path_get()
13973     *
13974     * @ingroup Thumb
13975     */
13976    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13977
13978    /**
13979     * Get the path and key to the image or video generated by ethumb.
13980     *
13981     * One just need to make sure that the thumbnail was generated before getting
13982     * its path; otherwise, the path will be NULL. One way to do that is by asking
13983     * for the path when/after the "generate,stop" smart callback is called.
13984     *
13985     * @param obj The thumb object.
13986     * @param file Pointer to thumb path.
13987     * @param key Pointer to thumb key.
13988     *
13989     * @see elm_thumb_file_get()
13990     *
13991     * @ingroup Thumb
13992     */
13993    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13994
13995    /**
13996     * Set the animation state for the thumb object. If its content is an animated
13997     * video, you may start/stop the animation or tell it to play continuously and
13998     * looping.
13999     *
14000     * @param obj The thumb object.
14001     * @param setting The animation setting.
14002     *
14003     * @see elm_thumb_file_set()
14004     *
14005     * @ingroup Thumb
14006     */
14007    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
14008
14009    /**
14010     * Get the animation state for the thumb object.
14011     *
14012     * @param obj The thumb object.
14013     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
14014     * on errors.
14015     *
14016     * @see elm_thumb_animate_set()
14017     *
14018     * @ingroup Thumb
14019     */
14020    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14021
14022    /**
14023     * Get the ethumb_client handle so custom configuration can be made.
14024     *
14025     * @return Ethumb_Client instance or NULL.
14026     *
14027     * This must be called before the objects are created to be sure no object is
14028     * visible and no generation started.
14029     *
14030     * Example of usage:
14031     *
14032     * @code
14033     * #include <Elementary.h>
14034     * #ifndef ELM_LIB_QUICKLAUNCH
14035     * EAPI_MAIN int
14036     * elm_main(int argc, char **argv)
14037     * {
14038     *    Ethumb_Client *client;
14039     *
14040     *    elm_need_ethumb();
14041     *
14042     *    // ... your code
14043     *
14044     *    client = elm_thumb_ethumb_client_get();
14045     *    if (!client)
14046     *      {
14047     *         ERR("could not get ethumb_client");
14048     *         return 1;
14049     *      }
14050     *    ethumb_client_size_set(client, 100, 100);
14051     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
14052     *    // ... your code
14053     *
14054     *    // Create elm_thumb objects here
14055     *
14056     *    elm_run();
14057     *    elm_shutdown();
14058     *    return 0;
14059     * }
14060     * #endif
14061     * ELM_MAIN()
14062     * @endcode
14063     *
14064     * @note There's only one client handle for Ethumb, so once a configuration
14065     * change is done to it, any other request for thumbnails (for any thumbnail
14066     * object) will use that configuration. Thus, this configuration is global.
14067     *
14068     * @ingroup Thumb
14069     */
14070    EAPI void                        *elm_thumb_ethumb_client_get(void);
14071
14072    /**
14073     * Get the ethumb_client connection state.
14074     *
14075     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
14076     * otherwise.
14077     */
14078    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
14079
14080    /**
14081     * Make the thumbnail 'editable'.
14082     *
14083     * @param obj Thumb object.
14084     * @param set Turn on or off editability. Default is @c EINA_FALSE.
14085     *
14086     * This means the thumbnail is a valid drag target for drag and drop, and can be
14087     * cut or pasted too.
14088     *
14089     * @see elm_thumb_editable_get()
14090     *
14091     * @ingroup Thumb
14092     */
14093    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
14094
14095    /**
14096     * Make the thumbnail 'editable'.
14097     *
14098     * @param obj Thumb object.
14099     * @return Editability.
14100     *
14101     * This means the thumbnail is a valid drag target for drag and drop, and can be
14102     * cut or pasted too.
14103     *
14104     * @see elm_thumb_editable_set()
14105     *
14106     * @ingroup Thumb
14107     */
14108    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14109
14110    /**
14111     * @}
14112     */
14113
14114    /**
14115     * @defgroup Web Web
14116     *
14117     * @image html img/widget/web/preview-00.png
14118     * @image latex img/widget/web/preview-00.eps
14119     *
14120     * A web object is used for displaying web pages (HTML/CSS/JS)
14121     * using WebKit-EFL. You must have compiled Elementary with
14122     * ewebkit support.
14123     *
14124     * Signals that you can add callbacks for are:
14125     * @li "download,request": A file download has been requested. Event info is
14126     * a pointer to a Elm_Web_Download
14127     * @li "editorclient,contents,changed": Editor client's contents changed
14128     * @li "editorclient,selection,changed": Editor client's selection changed
14129     * @li "frame,created": A new frame was created. Event info is an
14130     * Evas_Object which can be handled with WebKit's ewk_frame API
14131     * @li "icon,received": An icon was received by the main frame
14132     * @li "inputmethod,changed": Input method changed. Event info is an
14133     * Eina_Bool indicating whether it's enabled or not
14134     * @li "js,windowobject,clear": JS window object has been cleared
14135     * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
14136     * is a char *link[2], where the first string contains the URL the link
14137     * points to, and the second one the title of the link
14138     * @li "link,hover,out": Mouse cursor left the link
14139     * @li "load,document,finished": Loading of a document finished. Event info
14140     * is the frame that finished loading
14141     * @li "load,error": Load failed. Event info is a pointer to
14142     * Elm_Web_Frame_Load_Error
14143     * @li "load,finished": Load finished. Event info is NULL on success, on
14144     * error it's a pointer to Elm_Web_Frame_Load_Error
14145     * @li "load,newwindow,show": A new window was created and is ready to be
14146     * shown
14147     * @li "load,progress": Overall load progress. Event info is a pointer to
14148     * a double containing a value between 0.0 and 1.0
14149     * @li "load,provisional": Started provisional load
14150     * @li "load,started": Loading of a document started
14151     * @li "menubar,visible,get": Queries if the menubar is visible. Event info
14152     * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
14153     * the menubar is visible, or EINA_FALSE in case it's not
14154     * @li "menubar,visible,set": Informs menubar visibility. Event info is
14155     * an Eina_Bool indicating the visibility
14156     * @li "popup,created": A dropdown widget was activated, requesting its
14157     * popup menu to be created. Event info is a pointer to Elm_Web_Menu
14158     * @li "popup,willdelete": The web object is ready to destroy the popup
14159     * object created. Event info is a pointer to Elm_Web_Menu
14160     * @li "ready": Page is fully loaded
14161     * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
14162     * info is a pointer to Eina_Bool where the visibility state should be set
14163     * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
14164     * is an Eina_Bool with the visibility state set
14165     * @li "statusbar,text,set": Text of the statusbar changed. Even info is
14166     * a string with the new text
14167     * @li "statusbar,visible,get": Queries visibility of the status bar.
14168     * Event info is a pointer to Eina_Bool where the visibility state should be
14169     * set.
14170     * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
14171     * an Eina_Bool with the visibility value
14172     * @li "title,changed": Title of the main frame changed. Event info is a
14173     * string with the new title
14174     * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
14175     * is a pointer to Eina_Bool where the visibility state should be set
14176     * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
14177     * info is an Eina_Bool with the visibility state
14178     * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
14179     * a string with the text to show
14180     * @li "uri,changed": URI of the main frame changed. Event info is a string
14181     * with the new URI
14182     * @li "view,resized": The web object internal's view changed sized
14183     * @li "windows,close,request": A JavaScript request to close the current
14184     * window was requested
14185     * @li "zoom,animated,end": Animated zoom finished
14186     *
14187     * available styles:
14188     * - default
14189     *
14190     * An example of use of web:
14191     *
14192     * - @ref web_example_01 TBD
14193     */
14194
14195    /**
14196     * @addtogroup Web
14197     * @{
14198     */
14199
14200    /**
14201     * Structure used to report load errors.
14202     *
14203     * Load errors are reported as signal by elm_web. All the strings are
14204     * temporary references and should @b not be used after the signal
14205     * callback returns. If it's required, make copies with strdup() or
14206     * eina_stringshare_add() (they are not even guaranteed to be
14207     * stringshared, so must use eina_stringshare_add() and not
14208     * eina_stringshare_ref()).
14209     */
14210    typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
14211
14212    /**
14213     * Structure used to report load errors.
14214     *
14215     * Load errors are reported as signal by elm_web. All the strings are
14216     * temporary references and should @b not be used after the signal
14217     * callback returns. If it's required, make copies with strdup() or
14218     * eina_stringshare_add() (they are not even guaranteed to be
14219     * stringshared, so must use eina_stringshare_add() and not
14220     * eina_stringshare_ref()).
14221     */
14222    struct _Elm_Web_Frame_Load_Error
14223      {
14224         int code; /**< Numeric error code */
14225         Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
14226         const char *domain; /**< Error domain name */
14227         const char *description; /**< Error description (already localized) */
14228         const char *failing_url; /**< The URL that failed to load */
14229         Evas_Object *frame; /**< Frame object that produced the error */
14230      };
14231
14232    /**
14233     * The possibles types that the items in a menu can be
14234     */
14235    typedef enum _Elm_Web_Menu_Item_Type
14236      {
14237         ELM_WEB_MENU_SEPARATOR,
14238         ELM_WEB_MENU_GROUP,
14239         ELM_WEB_MENU_OPTION
14240      } Elm_Web_Menu_Item_Type;
14241
14242    /**
14243     * Structure describing the items in a menu
14244     */
14245    typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
14246
14247    /**
14248     * Structure describing the items in a menu
14249     */
14250    struct _Elm_Web_Menu_Item
14251      {
14252         const char *text; /**< The text for the item */
14253         Elm_Web_Menu_Item_Type type; /**< The type of the item */
14254      };
14255
14256    /**
14257     * Structure describing the menu of a popup
14258     *
14259     * This structure will be passed as the @c event_info for the "popup,create"
14260     * signal, which is emitted when a dropdown menu is opened. Users wanting
14261     * to handle these popups by themselves should listen to this signal and
14262     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
14263     * property as @c EINA_FALSE means that the user will not handle the popup
14264     * and the default implementation will be used.
14265     *
14266     * When the popup is ready to be dismissed, a "popup,willdelete" signal
14267     * will be emitted to notify the user that it can destroy any objects and
14268     * free all data related to it.
14269     *
14270     * @see elm_web_popup_selected_set()
14271     * @see elm_web_popup_destroy()
14272     */
14273    typedef struct _Elm_Web_Menu Elm_Web_Menu;
14274
14275    /**
14276     * Structure describing the menu of a popup
14277     *
14278     * This structure will be passed as the @c event_info for the "popup,create"
14279     * signal, which is emitted when a dropdown menu is opened. Users wanting
14280     * to handle these popups by themselves should listen to this signal and
14281     * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
14282     * property as @c EINA_FALSE means that the user will not handle the popup
14283     * and the default implementation will be used.
14284     *
14285     * When the popup is ready to be dismissed, a "popup,willdelete" signal
14286     * will be emitted to notify the user that it can destroy any objects and
14287     * free all data related to it.
14288     *
14289     * @see elm_web_popup_selected_set()
14290     * @see elm_web_popup_destroy()
14291     */
14292    struct _Elm_Web_Menu
14293      {
14294         Eina_List *items; /**< List of #Elm_Web_Menu_Item */
14295         int x; /**< The X position of the popup, relative to the elm_web object */
14296         int y; /**< The Y position of the popup, relative to the elm_web object */
14297         int width; /**< Width of the popup menu */
14298         int height; /**< Height of the popup menu */
14299
14300         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. */
14301      };
14302
14303    typedef struct _Elm_Web_Download Elm_Web_Download;
14304    struct _Elm_Web_Download
14305      {
14306         const char *url;
14307      };
14308
14309    /**
14310     * Types of zoom available.
14311     */
14312    typedef enum _Elm_Web_Zoom_Mode
14313      {
14314         ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_web_zoom_set */
14315         ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
14316         ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
14317         ELM_WEB_ZOOM_MODE_LAST
14318      } Elm_Web_Zoom_Mode;
14319
14320    /**
14321     * Opaque handler containing the features (such as statusbar, menubar, etc)
14322     * that are to be set on a newly requested window.
14323     */
14324    typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
14325
14326    /**
14327     * Callback type for the create_window hook.
14328     *
14329     * The function parameters are:
14330     * @li @p data User data pointer set when setting the hook function
14331     * @li @p obj The elm_web object requesting the new window
14332     * @li @p js Set to @c EINA_TRUE if the request was originated from
14333     * JavaScript. @c EINA_FALSE otherwise.
14334     * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
14335     * the features requested for the new window.
14336     *
14337     * The returned value of the function should be the @c elm_web widget where
14338     * the request will be loaded. That is, if a new window or tab is created,
14339     * the elm_web widget in it should be returned, and @b NOT the window
14340     * object.
14341     * Returning @c NULL should cancel the request.
14342     *
14343     * @see elm_web_window_create_hook_set()
14344     */
14345    typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
14346
14347    /**
14348     * Callback type for the JS alert hook.
14349     *
14350     * The function parameters are:
14351     * @li @p data User data pointer set when setting the hook function
14352     * @li @p obj The elm_web object requesting the new window
14353     * @li @p message The message to show in the alert dialog
14354     *
14355     * The function should return the object representing the alert dialog.
14356     * Elm_Web will run a second main loop to handle the dialog and normal
14357     * flow of the application will be restored when the object is deleted, so
14358     * the user should handle the popup properly in order to delete the object
14359     * when the action is finished.
14360     * If the function returns @c NULL the popup will be ignored.
14361     *
14362     * @see elm_web_dialog_alert_hook_set()
14363     */
14364    typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
14365
14366    /**
14367     * Callback type for the JS confirm hook.
14368     *
14369     * The function parameters are:
14370     * @li @p data User data pointer set when setting the hook function
14371     * @li @p obj The elm_web object requesting the new window
14372     * @li @p message The message to show in the confirm dialog
14373     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
14374     * the user selected @c Ok, @c EINA_FALSE otherwise.
14375     *
14376     * The function should return the object representing the confirm dialog.
14377     * Elm_Web will run a second main loop to handle the dialog and normal
14378     * flow of the application will be restored when the object is deleted, so
14379     * the user should handle the popup properly in order to delete the object
14380     * when the action is finished.
14381     * If the function returns @c NULL the popup will be ignored.
14382     *
14383     * @see elm_web_dialog_confirm_hook_set()
14384     */
14385    typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
14386
14387    /**
14388     * Callback type for the JS prompt hook.
14389     *
14390     * The function parameters are:
14391     * @li @p data User data pointer set when setting the hook function
14392     * @li @p obj The elm_web object requesting the new window
14393     * @li @p message The message to show in the prompt dialog
14394     * @li @p def_value The default value to present the user in the entry
14395     * @li @p value Pointer where to store the value given by the user. Must
14396     * be a malloc'ed string or @c NULL if the user cancelled the popup.
14397     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
14398     * the user selected @c Ok, @c EINA_FALSE otherwise.
14399     *
14400     * The function should return the object representing the prompt dialog.
14401     * Elm_Web will run a second main loop to handle the dialog and normal
14402     * flow of the application will be restored when the object is deleted, so
14403     * the user should handle the popup properly in order to delete the object
14404     * when the action is finished.
14405     * If the function returns @c NULL the popup will be ignored.
14406     *
14407     * @see elm_web_dialog_prompt_hook_set()
14408     */
14409    typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
14410
14411    /**
14412     * Callback type for the JS file selector hook.
14413     *
14414     * The function parameters are:
14415     * @li @p data User data pointer set when setting the hook function
14416     * @li @p obj The elm_web object requesting the new window
14417     * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
14418     * @li @p accept_types Mime types accepted
14419     * @li @p selected Pointer where to store the list of malloc'ed strings
14420     * containing the path to each file selected. Must be @c NULL if the file
14421     * dialog is cancelled
14422     * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
14423     * the user selected @c Ok, @c EINA_FALSE otherwise.
14424     *
14425     * The function should return the object representing the file selector
14426     * dialog.
14427     * Elm_Web will run a second main loop to handle the dialog and normal
14428     * flow of the application will be restored when the object is deleted, so
14429     * the user should handle the popup properly in order to delete the object
14430     * when the action is finished.
14431     * If the function returns @c NULL the popup will be ignored.
14432     *
14433     * @see elm_web_dialog_file selector_hook_set()
14434     */
14435    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);
14436
14437    /**
14438     * Callback type for the JS console message hook.
14439     *
14440     * When a console message is added from JavaScript, any set function to the
14441     * console message hook will be called for the user to handle. There is no
14442     * default implementation of this hook.
14443     *
14444     * The function parameters are:
14445     * @li @p data User data pointer set when setting the hook function
14446     * @li @p obj The elm_web object that originated the message
14447     * @li @p message The message sent
14448     * @li @p line_number The line number
14449     * @li @p source_id Source id
14450     *
14451     * @see elm_web_console_message_hook_set()
14452     */
14453    typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
14454
14455    /**
14456     * Add a new web object to the parent.
14457     *
14458     * @param parent The parent object.
14459     * @return The new object or NULL if it cannot be created.
14460     *
14461     * @see elm_web_uri_set()
14462     * @see elm_web_webkit_view_get()
14463     */
14464    EAPI Evas_Object                 *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14465
14466    /**
14467     * Get internal ewk_view object from web object.
14468     *
14469     * Elementary may not provide some low level features of EWebKit,
14470     * instead of cluttering the API with proxy methods we opted to
14471     * return the internal reference. Be careful using it as it may
14472     * interfere with elm_web behavior.
14473     *
14474     * @param obj The web object.
14475     * @return The internal ewk_view object or NULL if it does not
14476     *         exist. (Failure to create or Elementary compiled without
14477     *         ewebkit)
14478     *
14479     * @see elm_web_add()
14480     */
14481    EAPI Evas_Object                 *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14482
14483    /**
14484     * Sets the function to call when a new window is requested
14485     *
14486     * This hook will be called when a request to create a new window is
14487     * issued from the web page loaded.
14488     * There is no default implementation for this feature, so leaving this
14489     * unset or passing @c NULL in @p func will prevent new windows from
14490     * opening.
14491     *
14492     * @param obj The web object where to set the hook function
14493     * @param func The hook function to be called when a window is requested
14494     * @param data User data
14495     */
14496    EAPI void                         elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
14497
14498    /**
14499     * Sets the function to call when an alert dialog
14500     *
14501     * This hook will be called when a JavaScript alert dialog is requested.
14502     * If no function is set or @c NULL is passed in @p func, the default
14503     * implementation will take place.
14504     *
14505     * @param obj The web object where to set the hook function
14506     * @param func The callback function to be used
14507     * @param data User data
14508     *
14509     * @see elm_web_inwin_mode_set()
14510     */
14511    EAPI void                         elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
14512
14513    /**
14514     * Sets the function to call when an confirm dialog
14515     *
14516     * This hook will be called when a JavaScript confirm dialog is requested.
14517     * If no function is set or @c NULL is passed in @p func, the default
14518     * implementation will take place.
14519     *
14520     * @param obj The web object where to set the hook function
14521     * @param func The callback function to be used
14522     * @param data User data
14523     *
14524     * @see elm_web_inwin_mode_set()
14525     */
14526    EAPI void                         elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
14527
14528    /**
14529     * Sets the function to call when an prompt dialog
14530     *
14531     * This hook will be called when a JavaScript prompt dialog is requested.
14532     * If no function is set or @c NULL is passed in @p func, the default
14533     * implementation will take place.
14534     *
14535     * @param obj The web object where to set the hook function
14536     * @param func The callback function to be used
14537     * @param data User data
14538     *
14539     * @see elm_web_inwin_mode_set()
14540     */
14541    EAPI void                         elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
14542
14543    /**
14544     * Sets the function to call when an file selector dialog
14545     *
14546     * This hook will be called when a JavaScript file selector dialog is
14547     * requested.
14548     * If no function is set or @c NULL is passed in @p func, the default
14549     * implementation will take place.
14550     *
14551     * @param obj The web object where to set the hook function
14552     * @param func The callback function to be used
14553     * @param data User data
14554     *
14555     * @see elm_web_inwin_mode_set()
14556     */
14557    EAPI void                         elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
14558
14559    /**
14560     * Sets the function to call when a console message is emitted from JS
14561     *
14562     * This hook will be called when a console message is emitted from
14563     * JavaScript. There is no default implementation for this feature.
14564     *
14565     * @param obj The web object where to set the hook function
14566     * @param func The callback function to be used
14567     * @param data User data
14568     */
14569    EAPI void                         elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
14570
14571    /**
14572     * Gets the status of the tab propagation
14573     *
14574     * @param obj The web object to query
14575     * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
14576     *
14577     * @see elm_web_tab_propagate_set()
14578     */
14579    EAPI Eina_Bool                    elm_web_tab_propagate_get(const Evas_Object *obj);
14580
14581    /**
14582     * Sets whether to use tab propagation
14583     *
14584     * If tab propagation is enabled, whenever the user presses the Tab key,
14585     * Elementary will handle it and switch focus to the next widget.
14586     * The default value is disabled, where WebKit will handle the Tab key to
14587     * cycle focus though its internal objects, jumping to the next widget
14588     * only when that cycle ends.
14589     *
14590     * @param obj The web object
14591     * @param propagate Whether to propagate Tab keys to Elementary or not
14592     */
14593    EAPI void                         elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
14594
14595    /**
14596     * Sets the URI for the web object
14597     *
14598     * It must be a full URI, with resource included, in the form
14599     * http://www.enlightenment.org or file:///tmp/something.html
14600     *
14601     * @param obj The web object
14602     * @param uri The URI to set
14603     * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
14604     */
14605    EAPI Eina_Bool                    elm_web_uri_set(Evas_Object *obj, const char *uri);
14606
14607    /**
14608     * Gets the current URI for the object
14609     *
14610     * The returned string must not be freed and is guaranteed to be
14611     * stringshared.
14612     *
14613     * @param obj The web object
14614     * @return A stringshared internal string with the current URI, or NULL on
14615     * failure
14616     */
14617    EAPI const char                  *elm_web_uri_get(const Evas_Object *obj);
14618
14619    /**
14620     * Gets the current title
14621     *
14622     * The returned string must not be freed and is guaranteed to be
14623     * stringshared.
14624     *
14625     * @param obj The web object
14626     * @return A stringshared internal string with the current title, or NULL on
14627     * failure
14628     */
14629    EAPI const char                  *elm_web_title_get(const Evas_Object *obj);
14630
14631    /**
14632     * Sets the background color to be used by the web object
14633     *
14634     * This is the color that will be used by default when the loaded page
14635     * does not set it's own. Color values are pre-multiplied.
14636     *
14637     * @param obj The web object
14638     * @param r Red component
14639     * @param g Green component
14640     * @param b Blue component
14641     * @param a Alpha component
14642     */
14643    EAPI void                         elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
14644
14645    /**
14646     * Gets the background color to be used by the web object
14647     *
14648     * This is the color that will be used by default when the loaded page
14649     * does not set it's own. Color values are pre-multiplied.
14650     *
14651     * @param obj The web object
14652     * @param r Red component
14653     * @param g Green component
14654     * @param b Blue component
14655     * @param a Alpha component
14656     */
14657    EAPI void                         elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
14658
14659    /**
14660     * Gets a copy of the currently selected text
14661     *
14662     * The string returned must be freed by the user when it's done with it.
14663     *
14664     * @param obj The web object
14665     * @return A newly allocated string, or NULL if nothing is selected or an
14666     * error occurred
14667     */
14668    EAPI char                        *elm_view_selection_get(const Evas_Object *obj);
14669
14670    /**
14671     * Tells the web object which index in the currently open popup was selected
14672     *
14673     * When the user handles the popup creation from the "popup,created" signal,
14674     * it needs to tell the web object which item was selected by calling this
14675     * function with the index corresponding to the item.
14676     *
14677     * @param obj The web object
14678     * @param index The index selected
14679     *
14680     * @see elm_web_popup_destroy()
14681     */
14682    EAPI void                         elm_web_popup_selected_set(Evas_Object *obj, int index);
14683
14684    /**
14685     * Dismisses an open dropdown popup
14686     *
14687     * When the popup from a dropdown widget is to be dismissed, either after
14688     * selecting an option or to cancel it, this function must be called, which
14689     * will later emit an "popup,willdelete" signal to notify the user that
14690     * any memory and objects related to this popup can be freed.
14691     *
14692     * @param obj The web object
14693     * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
14694     * if there was no menu to destroy
14695     */
14696    EAPI Eina_Bool                    elm_web_popup_destroy(Evas_Object *obj);
14697
14698    /**
14699     * Searches the given string in a document.
14700     *
14701     * @param obj The web object where to search the text
14702     * @param string String to search
14703     * @param case_sensitive If search should be case sensitive or not
14704     * @param forward If search is from cursor and on or backwards
14705     * @param wrap If search should wrap at the end
14706     *
14707     * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
14708     * or failure
14709     */
14710    EAPI Eina_Bool                    elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
14711
14712    /**
14713     * Marks matches of the given string in a document.
14714     *
14715     * @param obj The web object where to search text
14716     * @param string String to match
14717     * @param case_sensitive If match should be case sensitive or not
14718     * @param highlight If matches should be highlighted
14719     * @param limit Maximum amount of matches, or zero to unlimited
14720     *
14721     * @return number of matched @a string
14722     */
14723    EAPI unsigned int                 elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
14724
14725    /**
14726     * Clears all marked matches in the document
14727     *
14728     * @param obj The web object
14729     *
14730     * @return EINA_TRUE on success, EINA_FALSE otherwise
14731     */
14732    EAPI Eina_Bool                    elm_web_text_matches_unmark_all(Evas_Object *obj);
14733
14734    /**
14735     * Sets whether to highlight the matched marks
14736     *
14737     * If enabled, marks set with elm_web_text_matches_mark() will be
14738     * highlighted.
14739     *
14740     * @param obj The web object
14741     * @param highlight Whether to highlight the marks or not
14742     *
14743     * @return EINA_TRUE on success, EINA_FALSE otherwise
14744     */
14745    EAPI Eina_Bool                    elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
14746
14747    /**
14748     * Gets whether highlighting marks is enabled
14749     *
14750     * @param The web object
14751     *
14752     * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
14753     * otherwise
14754     */
14755    EAPI Eina_Bool                    elm_web_text_matches_highlight_get(const Evas_Object *obj);
14756
14757    /**
14758     * Gets the overall loading progress of the page
14759     *
14760     * Returns the estimated loading progress of the page, with a value between
14761     * 0.0 and 1.0. This is an estimated progress accounting for all the frames
14762     * included in the page.
14763     *
14764     * @param The web object
14765     *
14766     * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
14767     * failure
14768     */
14769    EAPI double                       elm_web_load_progress_get(const Evas_Object *obj);
14770
14771    /**
14772     * Stops loading the current page
14773     *
14774     * Cancels the loading of the current page in the web object. This will
14775     * cause a "load,error" signal to be emitted, with the is_cancellation
14776     * flag set to EINA_TRUE.
14777     *
14778     * @param obj The web object
14779     *
14780     * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
14781     */
14782    EAPI Eina_Bool                    elm_web_stop(Evas_Object *obj);
14783
14784    /**
14785     * Requests a reload of the current document in the object
14786     *
14787     * @param obj The web object
14788     *
14789     * @return EINA_TRUE on success, EINA_FALSE otherwise
14790     */
14791    EAPI Eina_Bool                    elm_web_reload(Evas_Object *obj);
14792
14793    /**
14794     * Requests a reload of the current document, avoiding any existing caches
14795     *
14796     * @param obj The web object
14797     *
14798     * @return EINA_TRUE on success, EINA_FALSE otherwise
14799     */
14800    EAPI Eina_Bool                    elm_web_reload_full(Evas_Object *obj);
14801
14802    /**
14803     * Goes back one step in the browsing history
14804     *
14805     * This is equivalent to calling elm_web_object_navigate(obj, -1);
14806     *
14807     * @param obj The web object
14808     *
14809     * @return EINA_TRUE on success, EINA_FALSE otherwise
14810     *
14811     * @see elm_web_history_enable_set()
14812     * @see elm_web_back_possible()
14813     * @see elm_web_forward()
14814     * @see elm_web_navigate()
14815     */
14816    EAPI Eina_Bool                    elm_web_back(Evas_Object *obj);
14817
14818    /**
14819     * Goes forward one step in the browsing history
14820     *
14821     * This is equivalent to calling elm_web_object_navigate(obj, 1);
14822     *
14823     * @param obj The web object
14824     *
14825     * @return EINA_TRUE on success, EINA_FALSE otherwise
14826     *
14827     * @see elm_web_history_enable_set()
14828     * @see elm_web_forward_possible()
14829     * @see elm_web_back()
14830     * @see elm_web_navigate()
14831     */
14832    EAPI Eina_Bool                    elm_web_forward(Evas_Object *obj);
14833
14834    /**
14835     * Jumps the given number of steps in the browsing history
14836     *
14837     * The @p steps value can be a negative integer to back in history, or a
14838     * positive to move forward.
14839     *
14840     * @param obj The web object
14841     * @param steps The number of steps to jump
14842     *
14843     * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
14844     * history exists to jump the given number of steps
14845     *
14846     * @see elm_web_history_enable_set()
14847     * @see elm_web_navigate_possible()
14848     * @see elm_web_back()
14849     * @see elm_web_forward()
14850     */
14851    EAPI Eina_Bool                    elm_web_navigate(Evas_Object *obj, int steps);
14852
14853    /**
14854     * Queries whether it's possible to go back in history
14855     *
14856     * @param obj The web object
14857     *
14858     * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
14859     * otherwise
14860     */
14861    EAPI Eina_Bool                    elm_web_back_possible(Evas_Object *obj);
14862
14863    /**
14864     * Queries whether it's possible to go forward in history
14865     *
14866     * @param obj The web object
14867     *
14868     * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
14869     * otherwise
14870     */
14871    EAPI Eina_Bool                    elm_web_forward_possible(Evas_Object *obj);
14872
14873    /**
14874     * Queries whether it's possible to jump the given number of steps
14875     *
14876     * The @p steps value can be a negative integer to back in history, or a
14877     * positive to move forward.
14878     *
14879     * @param obj The web object
14880     * @param steps The number of steps to check for
14881     *
14882     * @return EINA_TRUE if enough history exists to perform the given jump,
14883     * EINA_FALSE otherwise
14884     */
14885    EAPI Eina_Bool                    elm_web_navigate_possible(Evas_Object *obj, int steps);
14886
14887    /**
14888     * Gets whether browsing history is enabled for the given object
14889     *
14890     * @param obj The web object
14891     *
14892     * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
14893     */
14894    EAPI Eina_Bool                    elm_web_history_enable_get(const Evas_Object *obj);
14895
14896    /**
14897     * Enables or disables the browsing history
14898     *
14899     * @param obj The web object
14900     * @param enable Whether to enable or disable the browsing history
14901     */
14902    EAPI void                         elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
14903
14904    /**
14905     * Sets the zoom level of the web object
14906     *
14907     * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
14908     * values meaning zoom in and lower meaning zoom out. This function will
14909     * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
14910     * is ::ELM_WEB_ZOOM_MODE_MANUAL.
14911     *
14912     * @param obj The web object
14913     * @param zoom The zoom level to set
14914     */
14915    EAPI void                         elm_web_zoom_set(Evas_Object *obj, double zoom);
14916
14917    /**
14918     * Gets the current zoom level set on the web object
14919     *
14920     * Note that this is the zoom level set on the web object and not that
14921     * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
14922     * the two zoom levels should match, but for the other two modes the
14923     * Webkit zoom is calculated internally to match the chosen mode without
14924     * changing the zoom level set for the web object.
14925     *
14926     * @param obj The web object
14927     *
14928     * @return The zoom level set on the object
14929     */
14930    EAPI double                       elm_web_zoom_get(const Evas_Object *obj);
14931
14932    /**
14933     * Sets the zoom mode to use
14934     *
14935     * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
14936     * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
14937     *
14938     * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
14939     * with the elm_web_zoom_set() function.
14940     * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
14941     * make sure the entirety of the web object's contents are shown.
14942     * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
14943     * fit the contents in the web object's size, without leaving any space
14944     * unused.
14945     *
14946     * @param obj The web object
14947     * @param mode The mode to set
14948     */
14949    EAPI void                         elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
14950
14951    /**
14952     * Gets the currently set zoom mode
14953     *
14954     * @param obj The web object
14955     *
14956     * @return The current zoom mode set for the object, or
14957     * ::ELM_WEB_ZOOM_MODE_LAST on error
14958     */
14959    EAPI Elm_Web_Zoom_Mode            elm_web_zoom_mode_get(const Evas_Object *obj);
14960
14961    /**
14962     * Shows the given region in the web object
14963     *
14964     * @param obj The web object
14965     * @param x The x coordinate of the region to show
14966     * @param y The y coordinate of the region to show
14967     * @param w The width of the region to show
14968     * @param h The height of the region to show
14969     */
14970    EAPI void                         elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
14971
14972    /**
14973     * Brings in the region to the visible area
14974     *
14975     * Like elm_web_region_show(), but it animates the scrolling of the object
14976     * to show the area
14977     *
14978     * @param obj The web object
14979     * @param x The x coordinate of the region to show
14980     * @param y The y coordinate of the region to show
14981     * @param w The width of the region to show
14982     * @param h The height of the region to show
14983     */
14984    EAPI void                         elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
14985
14986    /**
14987     * Sets the default dialogs to use an Inwin instead of a normal window
14988     *
14989     * If set, then the default implementation for the JavaScript dialogs and
14990     * file selector will be opened in an Inwin. Otherwise they will use a
14991     * normal separated window.
14992     *
14993     * @param obj The web object
14994     * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
14995     */
14996    EAPI void                         elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
14997
14998    /**
14999     * Gets whether Inwin mode is set for the current object
15000     *
15001     * @param obj The web object
15002     *
15003     * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
15004     */
15005    EAPI Eina_Bool                    elm_web_inwin_mode_get(const Evas_Object *obj);
15006
15007    EAPI void                         elm_web_window_features_ref(Elm_Web_Window_Features *wf);
15008    EAPI void                         elm_web_window_features_unref(Elm_Web_Window_Features *wf);
15009    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);
15010    EAPI void                         elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
15011
15012    /**
15013     * @}
15014     */
15015
15016    /**
15017     * @defgroup Hoversel Hoversel
15018     *
15019     * @image html img/widget/hoversel/preview-00.png
15020     * @image latex img/widget/hoversel/preview-00.eps
15021     *
15022     * A hoversel is a button that pops up a list of items (automatically
15023     * choosing the direction to display) that have a label and, optionally, an
15024     * icon to select from. It is a convenience widget to avoid the need to do
15025     * all the piecing together yourself. It is intended for a small number of
15026     * items in the hoversel menu (no more than 8), though is capable of many
15027     * more.
15028     *
15029     * Signals that you can add callbacks for are:
15030     * "clicked" - the user clicked the hoversel button and popped up the sel
15031     * "selected" - an item in the hoversel list is selected. event_info is the item
15032     * "dismissed" - the hover is dismissed
15033     *
15034     * Default contents parts of the hoversel widget that you can use for are:
15035     * @li "icon" - An icon of the hoversel
15036     * 
15037     * Default text parts of the hoversel widget that you can use for are:
15038     * @li "default" - Label of the hoversel
15039     *  
15040     * Supported elm_object common APIs.
15041     * @li elm_object_disabled_set
15042     * @li elm_object_text_set
15043     * @li elm_object_part_text_set
15044     * @li elm_object_text_get
15045     * @li elm_object_part_text_get
15046     * @li elm_object_content_set
15047     * @li elm_object_part_content_set
15048     * @li elm_object_content_unset
15049     * @li elm_object_part_content_unset
15050     *
15051     * Supported elm_object_item common APIs.
15052     * @li elm_object_item_text_get
15053     * @li elm_object_item_part_text_get
15054     *
15055     * See @ref tutorial_hoversel for an example.
15056     * @{
15057     */
15058
15059    /**
15060     * @brief Add a new Hoversel object
15061     *
15062     * @param parent The parent object
15063     * @return The new object or NULL if it cannot be created
15064     */
15065    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15066
15067    /**
15068     * @brief This sets the hoversel to expand horizontally.
15069     *
15070     * @param obj The hoversel object
15071     * @param horizontal If true, the hover will expand horizontally to the
15072     * right.
15073     *
15074     * @note The initial button will display horizontally regardless of this
15075     * setting.
15076     */
15077    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15078
15079    /**
15080     * @brief This returns whether the hoversel is set to expand horizontally.
15081     *
15082     * @param obj The hoversel object
15083     * @return If true, the hover will expand horizontally to the right.
15084     *
15085     * @see elm_hoversel_horizontal_set()
15086     */
15087    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15088
15089    /**
15090     * @brief Set the Hover parent
15091     *
15092     * @param obj The hoversel object
15093     * @param parent The parent to use
15094     *
15095     * Sets the hover parent object, the area that will be darkened when the
15096     * hoversel is clicked. Should probably be the window that the hoversel is
15097     * in. See @ref Hover objects for more information.
15098     */
15099    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15100    /**
15101     * @brief Get the Hover parent
15102     *
15103     * @param obj The hoversel object
15104     * @return The used parent
15105     *
15106     * Gets the hover parent object.
15107     *
15108     * @see elm_hoversel_hover_parent_set()
15109     */
15110    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15111
15112    /**
15113     * @brief Set the hoversel button label
15114     *
15115     * @param obj The hoversel object
15116     * @param label The label text.
15117     *
15118     * This sets the label of the button that is always visible (before it is
15119     * clicked and expanded).
15120     *
15121     * @deprecated elm_object_text_set()
15122     */
15123    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15124
15125    /**
15126     * @brief Get the hoversel button label
15127     *
15128     * @param obj The hoversel object
15129     * @return The label text.
15130     *
15131     * @deprecated elm_object_text_get()
15132     */
15133    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15134
15135    /**
15136     * @brief Set the icon of the hoversel button
15137     *
15138     * @param obj The hoversel object
15139     * @param icon The icon object
15140     *
15141     * Sets the icon of the button that is always visible (before it is clicked
15142     * and expanded).  Once the icon object is set, a previously set one will be
15143     * deleted, if you want to keep that old content object, use the
15144     * elm_hoversel_icon_unset() function.
15145     *
15146     * @see elm_object_content_set() for the button widget
15147     * @deprecated Use elm_object_item_part_content_set() instead
15148     */
15149    EINA_DEPRECATED EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15150
15151    /**
15152     * @brief Get the icon of the hoversel button
15153     *
15154     * @param obj The hoversel object
15155     * @return The icon object
15156     *
15157     * Get the icon of the button that is always visible (before it is clicked
15158     * and expanded). Also see elm_object_content_get() for the button widget.
15159     *
15160     * @see elm_hoversel_icon_set()
15161     * @deprecated Use elm_object_item_part_content_get() instead
15162     */
15163    EINA_DEPRECATED EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15164
15165    /**
15166     * @brief Get and unparent the icon of the hoversel button
15167     *
15168     * @param obj The hoversel object
15169     * @return The icon object that was being used
15170     *
15171     * Unparent and return the icon of the button that is always visible
15172     * (before it is clicked and expanded).
15173     *
15174     * @see elm_hoversel_icon_set()
15175     * @see elm_object_content_unset() for the button widget
15176     * @deprecated Use elm_object_item_part_content_unset() instead
15177     */
15178    EINA_DEPRECATED EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15179
15180    /**
15181     * @brief This triggers the hoversel popup from code, the same as if the user
15182     * had clicked the button.
15183     *
15184     * @param obj The hoversel object
15185     */
15186    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
15187
15188    /**
15189     * @brief This dismisses the hoversel popup as if the user had clicked
15190     * outside the hover.
15191     *
15192     * @param obj The hoversel object
15193     */
15194    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
15195
15196    /**
15197     * @brief Returns whether the hoversel is expanded.
15198     *
15199     * @param obj The hoversel object
15200     * @return  This will return EINA_TRUE if the hoversel is expanded or
15201     * EINA_FALSE if it is not expanded.
15202     */
15203    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15204
15205    /**
15206     * @brief This will remove all the children items from the hoversel.
15207     *
15208     * @param obj The hoversel object
15209     *
15210     * @warning Should @b not be called while the hoversel is active; use
15211     * elm_hoversel_expanded_get() to check first.
15212     *
15213     * @see elm_hoversel_item_del_cb_set()
15214     * @see elm_hoversel_item_del()
15215     */
15216    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
15217
15218    /**
15219     * @brief Get the list of items within the given hoversel.
15220     *
15221     * @param obj The hoversel object
15222     * @return Returns a list of Elm_Object_Item*
15223     *
15224     * @see elm_hoversel_item_add()
15225     */
15226    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15227
15228    /**
15229     * @brief Add an item to the hoversel button
15230     *
15231     * @param obj The hoversel object
15232     * @param label The text label to use for the item (NULL if not desired)
15233     * @param icon_file An image file path on disk to use for the icon or standard
15234     * icon name (NULL if not desired)
15235     * @param icon_type The icon type if relevant
15236     * @param func Convenience function to call when this item is selected
15237     * @param data Data to pass to item-related functions
15238     * @return A handle to the item added.
15239     *
15240     * This adds an item to the hoversel to show when it is clicked. Note: if you
15241     * need to use an icon from an edje file then use
15242     * elm_hoversel_item_icon_set() right after the this function, and set
15243     * icon_file to NULL here.
15244     *
15245     * For more information on what @p icon_file and @p icon_type are see the
15246     * @ref Icon "icon documentation".
15247     */
15248    EAPI Elm_Object_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);
15249
15250    /**
15251     * @brief Delete an item from the hoversel
15252     *
15253     * @param it The item to delete
15254     *
15255     * This deletes the item from the hoversel (should not be called while the
15256     * hoversel is active; use elm_hoversel_expanded_get() to check first).
15257     *
15258     * @see elm_hoversel_item_add()
15259     * @see elm_hoversel_item_del_cb_set()
15260     */
15261    EAPI void               elm_hoversel_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15262
15263    /**
15264     * @brief Set the function to be called when an item from the hoversel is
15265     * freed.
15266     *
15267     * @param item The item to set the callback on
15268     * @param func The function called
15269     *
15270     * That function will receive these parameters:
15271     * @li void * item data
15272     * @li Evas_Object * hoversel object
15273     * @li Elm_Object_Item * hoversel item
15274     *
15275     * @see elm_hoversel_item_add()
15276     */
15277    EAPI void               elm_hoversel_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15278
15279    /**
15280     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
15281     * that will be passed to associated function callbacks.
15282     *
15283     * @param it The item to get the data from
15284     * @return The data pointer set with elm_hoversel_item_add()
15285     *
15286     * @see elm_hoversel_item_add()
15287     * @deprecated Use elm_object_item_data_get() instead
15288     */
15289    EINA_DEPRECATED EAPI void              *elm_hoversel_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15290
15291    /**
15292     * @brief This returns the label text of the given hoversel item.
15293     *
15294     * @param it The item to get the label
15295     * @return The label text of the hoversel item
15296     *
15297     * @see elm_hoversel_item_add()
15298     * @deprecated Use elm_object_item_text_get() instead
15299     */
15300    EINA_DEPRECATED EAPI const char        *elm_hoversel_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15301
15302    /**
15303     * @brief This sets the icon for the given hoversel item.
15304     *
15305     * @param item The item to set the icon
15306     * @param icon_file An image file path on disk to use for the icon or standard
15307     * icon name
15308     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
15309     * to NULL if the icon is not an edje file
15310     * @param icon_type The icon type
15311     *
15312     * The icon can be loaded from the standard set, from an image file, or from
15313     * an edje file.
15314     *
15315     * @see elm_hoversel_item_add()
15316     */
15317    EAPI void               elm_hoversel_item_icon_set(Elm_Object_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type) EINA_ARG_NONNULL(1);
15318
15319    /**
15320     * @brief Get the icon object of the hoversel item
15321     *
15322     * @param item The item to get the icon from
15323     * @param icon_file The image file path on disk used for the icon or standard
15324     * icon name
15325     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
15326     * if the icon is not an edje file
15327     * @param icon_type The icon type
15328     *
15329     * @see elm_hoversel_item_icon_set()
15330     * @see elm_hoversel_item_add()
15331     */
15332    EAPI void               elm_hoversel_item_icon_get(const Elm_Object_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type) EINA_ARG_NONNULL(1);
15333
15334    /**
15335     * @}
15336     */
15337
15338    /**
15339     * @defgroup Toolbar Toolbar
15340     * @ingroup Elementary
15341     *
15342     * @image html img/widget/toolbar/preview-00.png
15343     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
15344     *
15345     * @image html img/toolbar.png
15346     * @image latex img/toolbar.eps width=\textwidth
15347     *
15348     * A toolbar is a widget that displays a list of items inside
15349     * a box. It can be scrollable, show a menu with items that don't fit
15350     * to toolbar size or even crop them.
15351     *
15352     * Only one item can be selected at a time.
15353     *
15354     * Items can have multiple states, or show menus when selected by the user.
15355     *
15356     * Smart callbacks one can listen to:
15357     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
15358     * - "language,changed" - when the program language changes
15359     *
15360     * Available styles for it:
15361     * - @c "default"
15362     * - @c "transparent" - no background or shadow, just show the content
15363     *
15364     * Default text parts of the toolbar items that you can use for are:
15365     * @li "default" - label of the toolbar item
15366     *  
15367     * Supported elm_object_item common APIs.
15368     * @li elm_object_item_disabled_set
15369     * @li elm_object_item_text_set
15370     * @li elm_object_item_part_text_set
15371     * @li elm_object_item_text_get
15372     * @li elm_object_item_part_text_get
15373     *
15374     * List of examples:
15375     * @li @ref toolbar_example_01
15376     * @li @ref toolbar_example_02
15377     * @li @ref toolbar_example_03
15378     */
15379
15380    /**
15381     * @addtogroup Toolbar
15382     * @{
15383     */
15384
15385    /**
15386     * @enum _Elm_Toolbar_Shrink_Mode
15387     * @typedef Elm_Toolbar_Shrink_Mode
15388     *
15389     * Set toolbar's items display behavior, it can be scrollabel,
15390     * show a menu with exceeding items, or simply hide them.
15391     *
15392     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
15393     * from elm config.
15394     *
15395     * Values <b> don't </b> work as bitmask, only one can be choosen.
15396     *
15397     * @see elm_toolbar_mode_shrink_set()
15398     * @see elm_toolbar_mode_shrink_get()
15399     *
15400     * @ingroup Toolbar
15401     */
15402    typedef enum _Elm_Toolbar_Shrink_Mode
15403      {
15404         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
15405         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
15406         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
15407         ELM_TOOLBAR_SHRINK_MENU,   /**< Inserts a button to pop up a menu with exceeding items. */
15408         ELM_TOOLBAR_SHRINK_LAST    /**< Indicates error if returned by elm_toolbar_shrink_mode_get() */
15409      } Elm_Toolbar_Shrink_Mode;
15410
15411    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(). */
15412
15413    /**
15414     * Add a new toolbar widget to the given parent Elementary
15415     * (container) object.
15416     *
15417     * @param parent The parent object.
15418     * @return a new toolbar widget handle or @c NULL, on errors.
15419     *
15420     * This function inserts a new toolbar widget on the canvas.
15421     *
15422     * @ingroup Toolbar
15423     */
15424    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15425
15426    /**
15427     * Set the icon size, in pixels, to be used by toolbar items.
15428     *
15429     * @param obj The toolbar object
15430     * @param icon_size The icon size in pixels
15431     *
15432     * @note Default value is @c 32. It reads value from elm config.
15433     *
15434     * @see elm_toolbar_icon_size_get()
15435     *
15436     * @ingroup Toolbar
15437     */
15438    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
15439
15440    /**
15441     * Get the icon size, in pixels, to be used by toolbar items.
15442     *
15443     * @param obj The toolbar object.
15444     * @return The icon size in pixels.
15445     *
15446     * @see elm_toolbar_icon_size_set() for details.
15447     *
15448     * @ingroup Toolbar
15449     */
15450    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15451
15452    /**
15453     * Sets icon lookup order, for toolbar items' icons.
15454     *
15455     * @param obj The toolbar object.
15456     * @param order The icon lookup order.
15457     *
15458     * Icons added before calling this function will not be affected.
15459     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
15460     *
15461     * @see elm_toolbar_icon_order_lookup_get()
15462     *
15463     * @ingroup Toolbar
15464     */
15465    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
15466
15467    /**
15468     * Gets the icon lookup order.
15469     *
15470     * @param obj The toolbar object.
15471     * @return The icon lookup order.
15472     *
15473     * @see elm_toolbar_icon_order_lookup_set() for details.
15474     *
15475     * @ingroup Toolbar
15476     */
15477    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15478
15479    /**
15480     * Set whether the toolbar should always have an item selected.
15481     *
15482     * @param obj The toolbar object.
15483     * @param wrap @c EINA_TRUE to enable always-select mode or @c EINA_FALSE to
15484     * disable it.
15485     *
15486     * This will cause the toolbar to always have an item selected, and clicking
15487     * the selected item will not cause a selected event to be emitted. Enabling this mode
15488     * will immediately select the first toolbar item.
15489     *
15490     * Always-selected is disabled by default.
15491     *
15492     * @see elm_toolbar_always_select_mode_get().
15493     *
15494     * @ingroup Toolbar
15495     */
15496    EAPI void                    elm_toolbar_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
15497
15498    /**
15499     * Get whether the toolbar should always have an item selected.
15500     *
15501     * @param obj The toolbar object.
15502     * @return @c EINA_TRUE means an item will always be selected, @c EINA_FALSE indicates
15503     * that it is possible to have no items selected. If @p obj is @c NULL, @c EINA_FALSE is returned.
15504     *
15505     * @see elm_toolbar_always_select_mode_set() for details.
15506     *
15507     * @ingroup Toolbar
15508     */
15509    EAPI Eina_Bool               elm_toolbar_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15510
15511    /**
15512     * Set whether the toolbar items' should be selected by the user or not.
15513     *
15514     * @param obj The toolbar object.
15515     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
15516     * enable it.
15517     *
15518     * This will turn off the ability to select items entirely and they will
15519     * neither appear selected nor emit selected signals. The clicked
15520     * callback function will still be called.
15521     *
15522     * Selection is enabled by default.
15523     *
15524     * @see elm_toolbar_no_select_mode_get().
15525     *
15526     * @ingroup Toolbar
15527     */
15528    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
15529
15530    /**
15531     * Set whether the toolbar items' should be selected by the user or not.
15532     *
15533     * @param obj The toolbar object.
15534     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
15535     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
15536     *
15537     * @see elm_toolbar_no_select_mode_set() for details.
15538     *
15539     * @ingroup Toolbar
15540     */
15541    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15542
15543    /**
15544     * Append item to the toolbar.
15545     *
15546     * @param obj The toolbar object.
15547     * @param icon A string with icon name or the absolute path of an image file.
15548     * @param label The label of the item.
15549     * @param func The function to call when the item is clicked.
15550     * @param data The data to associate with the item for related callbacks.
15551     * @return The created item or @c NULL upon failure.
15552     *
15553     * A new item will be created and appended to the toolbar, i.e., will
15554     * be set as @b last item.
15555     *
15556     * Items created with this method can be deleted with
15557     * elm_toolbar_item_del().
15558     *
15559     * Associated @p data can be properly freed when item is deleted if a
15560     * callback function is set with elm_toolbar_item_del_cb_set().
15561     *
15562     * If a function is passed as argument, it will be called everytime this item
15563     * is selected, i.e., the user clicks over an unselected item.
15564     * If such function isn't needed, just passing
15565     * @c NULL as @p func is enough. The same should be done for @p data.
15566     *
15567     * Toolbar will load icon image from fdo or current theme.
15568     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15569     * If an absolute path is provided it will load it direct from a file.
15570     *
15571     * @see elm_toolbar_item_icon_set()
15572     * @see elm_toolbar_item_del()
15573     * @see elm_toolbar_item_del_cb_set()
15574     *
15575     * @ingroup Toolbar
15576     */
15577    EAPI Elm_Object_Item       *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15578
15579    /**
15580     * Prepend item to the toolbar.
15581     *
15582     * @param obj The toolbar object.
15583     * @param icon A string with icon name or the absolute path of an image file.
15584     * @param label The label of the item.
15585     * @param func The function to call when the item is clicked.
15586     * @param data The data to associate with the item for related callbacks.
15587     * @return The created item or @c NULL upon failure.
15588     *
15589     * A new item will be created and prepended to the toolbar, i.e., will
15590     * be set as @b first item.
15591     *
15592     * Items created with this method can be deleted with
15593     * elm_toolbar_item_del().
15594     *
15595     * Associated @p data can be properly freed when item is deleted if a
15596     * callback function is set with elm_toolbar_item_del_cb_set().
15597     *
15598     * If a function is passed as argument, it will be called everytime this item
15599     * is selected, i.e., the user clicks over an unselected item.
15600     * If such function isn't needed, just passing
15601     * @c NULL as @p func is enough. The same should be done for @p data.
15602     *
15603     * Toolbar will load icon image from fdo or current theme.
15604     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15605     * If an absolute path is provided it will load it direct from a file.
15606     *
15607     * @see elm_toolbar_item_icon_set()
15608     * @see elm_toolbar_item_del()
15609     * @see elm_toolbar_item_del_cb_set()
15610     *
15611     * @ingroup Toolbar
15612     */
15613    EAPI Elm_Object_Item       *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15614
15615    /**
15616     * Insert a new item into the toolbar object before item @p before.
15617     *
15618     * @param obj The toolbar object.
15619     * @param before The toolbar item to insert before.
15620     * @param icon A string with icon name or the absolute path of an image file.
15621     * @param label The label of the item.
15622     * @param func The function to call when the item is clicked.
15623     * @param data The data to associate with the item for related callbacks.
15624     * @return The created item or @c NULL upon failure.
15625     *
15626     * A new item will be created and added to the toolbar. Its position in
15627     * this toolbar will be just before item @p before.
15628     *
15629     * Items created with this method can be deleted with
15630     * elm_toolbar_item_del().
15631     *
15632     * Associated @p data can be properly freed when item is deleted if a
15633     * callback function is set with elm_toolbar_item_del_cb_set().
15634     *
15635     * If a function is passed as argument, it will be called everytime this item
15636     * is selected, i.e., the user clicks over an unselected item.
15637     * If such function isn't needed, just passing
15638     * @c NULL as @p func is enough. The same should be done for @p data.
15639     *
15640     * Toolbar will load icon image from fdo or current theme.
15641     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15642     * If an absolute path is provided it will load it direct from a file.
15643     *
15644     * @see elm_toolbar_item_icon_set()
15645     * @see elm_toolbar_item_del()
15646     * @see elm_toolbar_item_del_cb_set()
15647     *
15648     * @ingroup Toolbar
15649     */
15650    EAPI Elm_Object_Item       *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15651
15652    /**
15653     * Insert a new item into the toolbar object after item @p after.
15654     *
15655     * @param obj The toolbar object.
15656     * @param after The toolbar item to insert after.
15657     * @param icon A string with icon name or the absolute path of an image file.
15658     * @param label The label of the item.
15659     * @param func The function to call when the item is clicked.
15660     * @param data The data to associate with the item for related callbacks.
15661     * @return The created item or @c NULL upon failure.
15662     *
15663     * A new item will be created and added to the toolbar. Its position in
15664     * this toolbar will be just after item @p after.
15665     *
15666     * Items created with this method can be deleted with
15667     * elm_toolbar_item_del().
15668     *
15669     * Associated @p data can be properly freed when item is deleted if a
15670     * callback function is set with elm_toolbar_item_del_cb_set().
15671     *
15672     * If a function is passed as argument, it will be called everytime this item
15673     * is selected, i.e., the user clicks over an unselected item.
15674     * If such function isn't needed, just passing
15675     * @c NULL as @p func is enough. The same should be done for @p data.
15676     *
15677     * Toolbar will load icon image from fdo or current theme.
15678     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15679     * If an absolute path is provided it will load it direct from a file.
15680     *
15681     * @see elm_toolbar_item_icon_set()
15682     * @see elm_toolbar_item_del()
15683     * @see elm_toolbar_item_del_cb_set()
15684     *
15685     * @ingroup Toolbar
15686     */
15687    EAPI Elm_Object_Item       *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15688
15689    /**
15690     * Get the first item in the given toolbar widget's list of
15691     * items.
15692     *
15693     * @param obj The toolbar object
15694     * @return The first item or @c NULL, if it has no items (and on
15695     * errors)
15696     *
15697     * @see elm_toolbar_item_append()
15698     * @see elm_toolbar_last_item_get()
15699     *
15700     * @ingroup Toolbar
15701     */
15702    EAPI Elm_Object_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15703
15704    /**
15705     * Get the last item in the given toolbar widget's list of
15706     * items.
15707     *
15708     * @param obj The toolbar object
15709     * @return The last item or @c NULL, if it has no items (and on
15710     * errors)
15711     *
15712     * @see elm_toolbar_item_prepend()
15713     * @see elm_toolbar_first_item_get()
15714     *
15715     * @ingroup Toolbar
15716     */
15717    EAPI Elm_Object_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15718
15719    /**
15720     * Get the item after @p item in toolbar.
15721     *
15722     * @param it The toolbar item.
15723     * @return The item after @p item, or @c NULL if none or on failure.
15724     *
15725     * @note If it is the last item, @c NULL will be returned.
15726     *
15727     * @see elm_toolbar_item_append()
15728     *
15729     * @ingroup Toolbar
15730     */
15731    EAPI Elm_Object_Item       *elm_toolbar_item_next_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15732
15733    /**
15734     * Get the item before @p item in toolbar.
15735     *
15736     * @param item The toolbar item.
15737     * @return The item before @p item, or @c NULL if none or on failure.
15738     *
15739     * @note If it is the first item, @c NULL will be returned.
15740     *
15741     * @see elm_toolbar_item_prepend()
15742     *
15743     * @ingroup Toolbar
15744     */
15745    EAPI Elm_Object_Item       *elm_toolbar_item_prev_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15746
15747    /**
15748     * Get the toolbar object from an item.
15749     *
15750     * @param it The item.
15751     * @return The toolbar object.
15752     *
15753     * This returns the toolbar object itself that an item belongs to.
15754     *
15755          * @deprecated use elm_object_item_object_get() instead.
15756     * @ingroup Toolbar
15757     */
15758    EINA_DEPRECATED EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15759
15760    /**
15761     * Set the priority of a toolbar item.
15762     *
15763     * @param it The toolbar item.
15764     * @param priority The item priority. The default is zero.
15765     *
15766     * This is used only when the toolbar shrink mode is set to
15767     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
15768     * When space is less than required, items with low priority
15769     * will be removed from the toolbar and added to a dynamically-created menu,
15770     * while items with higher priority will remain on the toolbar,
15771     * with the same order they were added.
15772     *
15773     * @see elm_toolbar_item_priority_get()
15774     *
15775     * @ingroup Toolbar
15776     */
15777    EAPI void                    elm_toolbar_item_priority_set(Elm_Object_Item *it, int priority) EINA_ARG_NONNULL(1);
15778
15779    /**
15780     * Get the priority of a toolbar item.
15781     *
15782     * @param it The toolbar item.
15783     * @return The @p item priority, or @c 0 on failure.
15784     *
15785     * @see elm_toolbar_item_priority_set() for details.
15786     *
15787     * @ingroup Toolbar
15788     */
15789    EAPI int                     elm_toolbar_item_priority_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15790
15791    /**
15792     * Get the label of item.
15793     *
15794     * @param it The item of toolbar.
15795     * @return The label of item.
15796     *
15797     * The return value is a pointer to the label associated to @p item when
15798     * it was created, with function elm_toolbar_item_append() or similar,
15799     * or later,
15800     * with function elm_toolbar_item_label_set. If no label
15801     * was passed as argument, it will return @c NULL.
15802     *
15803     * @see elm_toolbar_item_label_set() for more details.
15804     * @see elm_toolbar_item_append()
15805     *
15806          * @deprecated use elm_object_item_text_get() instead.
15807     * @ingroup Toolbar
15808     */
15809    EINA_DEPRECATED EAPI const char             *elm_toolbar_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15810
15811    /**
15812     * Set the label of item.
15813     *
15814     * @param it The item of toolbar.
15815     * @param text The label of item.
15816     *
15817     * The label to be displayed by the item.
15818     * Label will be placed at icons bottom (if set).
15819     *
15820     * If a label was passed as argument on item creation, with function
15821     * elm_toolbar_item_append() or similar, it will be already
15822     * displayed by the item.
15823     *
15824     * @see elm_toolbar_item_label_get()
15825     * @see elm_toolbar_item_append()
15826     *
15827          * @deprecated use elm_object_item_text_set() instead
15828     * @ingroup Toolbar
15829     */
15830    EINA_DEPRECATED EAPI void                    elm_toolbar_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
15831
15832    /**
15833     * Return the data associated with a given toolbar widget item.
15834     *
15835     * @param it The toolbar widget item handle.
15836     * @return The data associated with @p item.
15837     *
15838     * @see elm_toolbar_item_data_set()
15839     *
15840     * @deprecated use elm_object_item_data_get() instead.
15841     * @ingroup Toolbar
15842     */
15843    EINA_DEPRECATED EAPI void                   *elm_toolbar_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15844
15845    /**
15846     * Set the data associated with a given toolbar widget item.
15847     *
15848     * @param it The toolbar widget item handle
15849     * @param data The new data pointer to set to @p item.
15850     *
15851     * This sets new item data on @p item.
15852     *
15853     * @warning The old data pointer won't be touched by this function, so
15854     * the user had better to free that old data himself/herself.
15855     *
15856     * @deprecated use elm_object_item_data_set() instead.
15857     * @ingroup Toolbar
15858     */
15859    EINA_DEPRECATED EAPI void                    elm_toolbar_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
15860
15861    /**
15862     * Returns a pointer to a toolbar item by its label.
15863     *
15864     * @param obj The toolbar object.
15865     * @param label The label of the item to find.
15866     *
15867     * @return The pointer to the toolbar item matching @p label or @c NULL
15868     * on failure.
15869     *
15870     * @ingroup Toolbar
15871     */
15872    EAPI Elm_Object_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15873
15874    /*
15875     * Get whether the @p item is selected or not.
15876     *
15877     * @param it The toolbar item.
15878     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15879     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15880     *
15881     * @see elm_toolbar_selected_item_set() for details.
15882     * @see elm_toolbar_item_selected_get()
15883     *
15884     * @ingroup Toolbar
15885     */
15886    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15887
15888    /**
15889     * Set the selected state of an item.
15890     *
15891     * @param it The toolbar item
15892     * @param selected The selected state
15893     *
15894     * This sets the selected state of the given item @p it.
15895     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15896     *
15897     * If a new item is selected the previosly selected will be unselected.
15898     * Previoulsy selected item can be get with function
15899     * elm_toolbar_selected_item_get().
15900     *
15901     * Selected items will be highlighted.
15902     *
15903     * @see elm_toolbar_item_selected_get()
15904     * @see elm_toolbar_selected_item_get()
15905     *
15906     * @ingroup Toolbar
15907     */
15908    EAPI void                    elm_toolbar_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
15909
15910    /**
15911     * Get the selected item.
15912     *
15913     * @param obj The toolbar object.
15914     * @return The selected toolbar item.
15915     *
15916     * The selected item can be unselected with function
15917     * elm_toolbar_item_selected_set().
15918     *
15919     * The selected item always will be highlighted on toolbar.
15920     *
15921     * @see elm_toolbar_selected_items_get()
15922     *
15923     * @ingroup Toolbar
15924     */
15925    EAPI Elm_Object_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15926
15927    /**
15928     * Set the icon associated with @p item.
15929     *
15930     * @param obj The parent of this item.
15931     * @param it The toolbar item.
15932     * @param icon A string with icon name or the absolute path of an image file.
15933     *
15934     * Toolbar will load icon image from fdo or current theme.
15935     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15936     * If an absolute path is provided it will load it direct from a file.
15937     *
15938     * @see elm_toolbar_icon_order_lookup_set()
15939     * @see elm_toolbar_icon_order_lookup_get()
15940     *
15941     * @ingroup Toolbar
15942     */
15943    EAPI void                    elm_toolbar_item_icon_set(Elm_Object_Item *it, const char *icon) EINA_ARG_NONNULL(1);
15944
15945    /**
15946     * Get the string used to set the icon of @p item.
15947     *
15948     * @param it The toolbar item.
15949     * @return The string associated with the icon object.
15950     *
15951     * @see elm_toolbar_item_icon_set() for details.
15952     *
15953     * @ingroup Toolbar
15954     */
15955    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15956
15957    /**
15958     * Get the object of @p item.
15959     *
15960     * @param it The toolbar item.
15961     * @return The object
15962     *
15963     * @ingroup Toolbar
15964     */
15965    EAPI Evas_Object            *elm_toolbar_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15966
15967    /**
15968     * Get the icon object of @p item.
15969     *
15970     * @param it The toolbar item.
15971     * @return The icon object
15972     *
15973     * @see elm_toolbar_item_icon_set(), elm_toolbar_item_icon_file_set(),
15974     * or elm_toolbar_item_icon_memfile_set() for details.
15975     *
15976     * @ingroup Toolbar
15977     */
15978    EAPI Evas_Object            *elm_toolbar_item_icon_object_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15979
15980    /**
15981     * Set the icon associated with @p item to an image in a binary buffer.
15982     *
15983     * @param it The toolbar item.
15984     * @param img The binary data that will be used as an image
15985     * @param size The size of binary data @p img
15986     * @param format Optional format of @p img to pass to the image loader
15987     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
15988     *
15989     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
15990     *
15991     * @note The icon image set by this function can be changed by
15992     * elm_toolbar_item_icon_set().
15993     *
15994     * @ingroup Toolbar
15995     */
15996    EAPI Eina_Bool elm_toolbar_item_icon_memfile_set(Elm_Object_Item *it, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1);
15997
15998    /**
15999     * Set the icon associated with @p item to an image in a binary buffer.
16000     *
16001     * @param it The toolbar item.
16002     * @param file The file that contains the image
16003     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
16004     *
16005     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
16006     *
16007     * @note The icon image set by this function can be changed by
16008     * elm_toolbar_item_icon_set().
16009     *
16010     * @ingroup Toolbar
16011     */
16012    EAPI Eina_Bool elm_toolbar_item_icon_file_set(Elm_Object_Item *it, const char *file, const char *key) EINA_ARG_NONNULL(1);
16013
16014    /**
16015     * Delete them item from the toolbar.
16016     *
16017     * @param it The item of toolbar to be deleted.
16018     *
16019     * @see elm_toolbar_item_append()
16020     * @see elm_toolbar_item_del_cb_set()
16021     *
16022     * @ingroup Toolbar
16023     */
16024    EAPI void                    elm_toolbar_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16025
16026    /**
16027     * Set the function called when a toolbar item is freed.
16028     *
16029     * @param it The item to set the callback on.
16030     * @param func The function called.
16031     *
16032     * If there is a @p func, then it will be called prior item's memory release.
16033     * That will be called with the following arguments:
16034     * @li item's data;
16035     * @li item's Evas object;
16036     * @li item itself;
16037     *
16038     * This way, a data associated to a toolbar item could be properly freed.
16039     *
16040     * @ingroup Toolbar
16041     */
16042    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16043
16044    /**
16045     * Get a value whether toolbar item is disabled or not.
16046     *
16047     * @param it The item.
16048     * @return The disabled state.
16049     *
16050     * @see elm_toolbar_item_disabled_set() for more details.
16051     *
16052     * @deprecated use elm_object_item_disabled_get() instead.
16053     * @ingroup Toolbar
16054     */
16055    EINA_DEPRECATED EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16056
16057    /**
16058     * Sets the disabled/enabled state of a toolbar item.
16059     *
16060     * @param it The item.
16061     * @param disabled The disabled state.
16062     *
16063     * A disabled item cannot be selected or unselected. It will also
16064     * change its appearance (generally greyed out). This sets the
16065     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
16066     * enabled).
16067     *
16068     * @deprecated use elm_object_item_disabled_set() instead.
16069     * @ingroup Toolbar
16070     */
16071    EINA_DEPRECATED EAPI void                    elm_toolbar_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16072
16073    /**
16074     * Set or unset item as a separator.
16075     *
16076     * @param it The toolbar item.
16077     * @param setting @c EINA_TRUE to set item @p item as separator or
16078     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
16079     *
16080     * Items aren't set as separator by default.
16081     *
16082     * If set as separator it will display separator theme, so won't display
16083     * icons or label.
16084     *
16085     * @see elm_toolbar_item_separator_get()
16086     *
16087     * @ingroup Toolbar
16088     */
16089    EAPI void                    elm_toolbar_item_separator_set(Elm_Object_Item *it, Eina_Bool separator) EINA_ARG_NONNULL(1);
16090
16091    /**
16092     * Get a value whether item is a separator or not.
16093     *
16094     * @param it The toolbar item.
16095     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
16096     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
16097     *
16098     * @see elm_toolbar_item_separator_set() for details.
16099     *
16100     * @ingroup Toolbar
16101     */
16102    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16103
16104    /**
16105     * Set the shrink state of toolbar @p obj.
16106     *
16107     * @param obj The toolbar object.
16108     * @param shrink_mode Toolbar's items display behavior.
16109     *
16110     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
16111     * but will enforce a minimun size so all the items will fit, won't scroll
16112     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
16113     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
16114     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
16115     *
16116     * @ingroup Toolbar
16117     */
16118    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
16119
16120    /**
16121     * Get the shrink mode of toolbar @p obj.
16122     *
16123     * @param obj The toolbar object.
16124     * @return Toolbar's items display behavior.
16125     *
16126     * @see elm_toolbar_mode_shrink_set() for details.
16127     *
16128     * @ingroup Toolbar
16129     */
16130    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16131
16132    /**
16133     * Enable/disable homogeneous mode.
16134     *
16135     * @param obj The toolbar object
16136     * @param homogeneous Assume the items within the toolbar are of the
16137     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
16138     *
16139     * This will enable the homogeneous mode where items are of the same size.
16140     * @see elm_toolbar_homogeneous_get()
16141     *
16142     * @ingroup Toolbar
16143     */
16144    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
16145
16146    /**
16147     * Get whether the homogeneous mode is enabled.
16148     *
16149     * @param obj The toolbar object.
16150     * @return Assume the items within the toolbar are of the same height
16151     * and width (EINA_TRUE = on, EINA_FALSE = off).
16152     *
16153     * @see elm_toolbar_homogeneous_set()
16154     *
16155     * @ingroup Toolbar
16156     */
16157    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16158
16159    /**
16160     * Set the parent object of the toolbar items' menus.
16161     *
16162     * @param obj The toolbar object.
16163     * @param parent The parent of the menu objects.
16164     *
16165     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
16166     *
16167     * For more details about setting the parent for toolbar menus, see
16168     * elm_menu_parent_set().
16169     *
16170     * @see elm_menu_parent_set() for details.
16171     * @see elm_toolbar_item_menu_set() for details.
16172     *
16173     * @ingroup Toolbar
16174     */
16175    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
16176
16177    /**
16178     * Get the parent object of the toolbar items' menus.
16179     *
16180     * @param obj The toolbar object.
16181     * @return The parent of the menu objects.
16182     *
16183     * @see elm_toolbar_menu_parent_set() for details.
16184     *
16185     * @ingroup Toolbar
16186     */
16187    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16188
16189    /**
16190     * Set the alignment of the items.
16191     *
16192     * @param obj The toolbar object.
16193     * @param align The new alignment, a float between <tt> 0.0 </tt>
16194     * and <tt> 1.0 </tt>.
16195     *
16196     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
16197     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
16198     * items.
16199     *
16200     * Centered items by default.
16201     *
16202     * @see elm_toolbar_align_get()
16203     *
16204     * @ingroup Toolbar
16205     */
16206    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
16207
16208    /**
16209     * Get the alignment of the items.
16210     *
16211     * @param obj The toolbar object.
16212     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
16213     * <tt> 1.0 </tt>.
16214     *
16215     * @see elm_toolbar_align_set() for details.
16216     *
16217     * @ingroup Toolbar
16218     */
16219    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16220
16221    /**
16222     * Set whether the toolbar item opens a menu.
16223     *
16224     * @param it The toolbar item.
16225     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
16226     *
16227     * A toolbar item can be set to be a menu, using this function.
16228     *
16229     * Once it is set to be a menu, it can be manipulated through the
16230     * menu-like function elm_toolbar_menu_parent_set() and the other
16231     * elm_menu functions, using the Evas_Object @c menu returned by
16232     * elm_toolbar_item_menu_get().
16233     *
16234     * So, items to be displayed in this item's menu should be added with
16235     * elm_menu_item_add().
16236     *
16237     * The following code exemplifies the most basic usage:
16238     * @code
16239     * tb = elm_toolbar_add(win)
16240     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
16241     * elm_toolbar_item_menu_set(item, EINA_TRUE);
16242     * elm_toolbar_menu_parent_set(tb, win);
16243     * menu = elm_toolbar_item_menu_get(item);
16244     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
16245     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
16246     * NULL);
16247     * @endcode
16248     *
16249     * @see elm_toolbar_item_menu_get()
16250     *
16251     * @ingroup Toolbar
16252     */
16253    EAPI void                    elm_toolbar_item_menu_set(Elm_Object_Item *it, Eina_Bool menu) EINA_ARG_NONNULL(1);
16254
16255    /**
16256     * Get toolbar item's menu.
16257     *
16258     * @param it The toolbar item.
16259     * @return Item's menu object or @c NULL on failure.
16260     *
16261     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
16262     * this function will set it.
16263     *
16264     * @see elm_toolbar_item_menu_set() for details.
16265     *
16266     * @ingroup Toolbar
16267     */
16268    EAPI Evas_Object            *elm_toolbar_item_menu_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16269
16270    /**
16271     * Add a new state to @p item.
16272     *
16273     * @param it The toolbar item.
16274     * @param icon A string with icon name or the absolute path of an image file.
16275     * @param label The label of the new state.
16276     * @param func The function to call when the item is clicked when this
16277     * state is selected.
16278     * @param data The data to associate with the state.
16279     * @return The toolbar item state, or @c NULL upon failure.
16280     *
16281     * Toolbar will load icon image from fdo or current theme.
16282     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
16283     * If an absolute path is provided it will load it direct from a file.
16284     *
16285     * States created with this function can be removed with
16286     * elm_toolbar_item_state_del().
16287     *
16288     * @see elm_toolbar_item_state_del()
16289     * @see elm_toolbar_item_state_sel()
16290     * @see elm_toolbar_item_state_get()
16291     *
16292     * @ingroup Toolbar
16293     */
16294    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Object_Item *it, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16295
16296    /**
16297     * Delete a previoulsy added state to @p item.
16298     *
16299     * @param it The toolbar item.
16300     * @param state The state to be deleted.
16301     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
16302     *
16303     * @see elm_toolbar_item_state_add()
16304     */
16305    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Object_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
16306
16307    /**
16308     * Set @p state as the current state of @p it.
16309     *
16310     * @param it The toolbar item.
16311     * @param state The state to use.
16312     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
16313     *
16314     * If @p state is @c NULL, it won't select any state and the default item's
16315     * icon and label will be used. It's the same behaviour than
16316     * elm_toolbar_item_state_unser().
16317     *
16318     * @see elm_toolbar_item_state_unset()
16319     *
16320     * @ingroup Toolbar
16321     */
16322    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Object_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
16323
16324    /**
16325     * Unset the state of @p it.
16326     *
16327     * @param it The toolbar item.
16328     *
16329     * The default icon and label from this item will be displayed.
16330     *
16331     * @see elm_toolbar_item_state_set() for more details.
16332     *
16333     * @ingroup Toolbar
16334     */
16335    EAPI void                    elm_toolbar_item_state_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16336
16337    /**
16338     * Get the current state of @p it.
16339     *
16340     * @param it The toolbar item.
16341     * @return The selected state or @c NULL if none is selected or on failure.
16342     *
16343     * @see elm_toolbar_item_state_set() for details.
16344     * @see elm_toolbar_item_state_unset()
16345     * @see elm_toolbar_item_state_add()
16346     *
16347     * @ingroup Toolbar
16348     */
16349    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16350
16351    /**
16352     * Get the state after selected state in toolbar's @p item.
16353     *
16354     * @param it The toolbar item to change state.
16355     * @return The state after current state, or @c NULL on failure.
16356     *
16357     * If last state is selected, this function will return first state.
16358     *
16359     * @see elm_toolbar_item_state_set()
16360     * @see elm_toolbar_item_state_add()
16361     *
16362     * @ingroup Toolbar
16363     */
16364    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16365
16366    /**
16367     * Get the state before selected state in toolbar's @p item.
16368     *
16369     * @param it The toolbar item to change state.
16370     * @return The state before current state, or @c NULL on failure.
16371     *
16372     * If first state is selected, this function will return last state.
16373     *
16374     * @see elm_toolbar_item_state_set()
16375     * @see elm_toolbar_item_state_add()
16376     *
16377     * @ingroup Toolbar
16378     */
16379    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16380
16381    /**
16382     * Set the text to be shown in a given toolbar item's tooltips.
16383     *
16384     * @param it toolbar item.
16385     * @param text The text to set in the content.
16386     *
16387     * Setup the text as tooltip to object. The item can have only one tooltip,
16388     * so any previous tooltip data - set with this function or
16389     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
16390     *
16391     * @see elm_object_tooltip_text_set() for more details.
16392     *
16393     * @ingroup Toolbar
16394     */
16395    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Object_Item *it, const char *text) EINA_ARG_NONNULL(1);
16396
16397    /**
16398     * Set the content to be shown in the tooltip item.
16399     *
16400     * Setup the tooltip to item. The item can have only one tooltip,
16401     * so any previous tooltip data is removed. @p func(with @p data) will
16402     * be called every time that need show the tooltip and it should
16403     * return a valid Evas_Object. This object is then managed fully by
16404     * tooltip system and is deleted when the tooltip is gone.
16405     *
16406     * @param it the toolbar item being attached a tooltip.
16407     * @param func the function used to create the tooltip contents.
16408     * @param data what to provide to @a func as callback data/context.
16409     * @param del_cb called when data is not needed anymore, either when
16410     *        another callback replaces @a func, the tooltip is unset with
16411     *        elm_toolbar_item_tooltip_unset() or the owner @a item
16412     *        dies. This callback receives as the first parameter the
16413     *        given @a data, and @c event_info is the item.
16414     *
16415     * @see elm_object_tooltip_content_cb_set() for more details.
16416     *
16417     * @ingroup Toolbar
16418     */
16419    EAPI void             elm_toolbar_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
16420
16421    /**
16422     * Unset tooltip from item.
16423     *
16424     * @param it toolbar item to remove previously set tooltip.
16425     *
16426     * Remove tooltip from item. The callback provided as del_cb to
16427     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
16428     * it is not used anymore.
16429     *
16430     * @see elm_object_tooltip_unset() for more details.
16431     * @see elm_toolbar_item_tooltip_content_cb_set()
16432     *
16433     * @ingroup Toolbar
16434     */
16435    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16436
16437    /**
16438     * Sets a different style for this item tooltip.
16439     *
16440     * @note before you set a style you should define a tooltip with
16441     *       elm_toolbar_item_tooltip_content_cb_set() or
16442     *       elm_toolbar_item_tooltip_text_set()
16443     *
16444     * @param it toolbar item with tooltip already set.
16445     * @param style the theme style to use (default, transparent, ...)
16446     *
16447     * @see elm_object_tooltip_style_set() for more details.
16448     *
16449     * @ingroup Toolbar
16450     */
16451    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Object_Item *it, const char *style) EINA_ARG_NONNULL(1);
16452
16453    /**
16454     * Get the style for this item tooltip.
16455     *
16456     * @param it toolbar item with tooltip already set.
16457     * @return style the theme style in use, defaults to "default". If the
16458     *         object does not have a tooltip set, then NULL is returned.
16459     *
16460     * @see elm_object_tooltip_style_get() for more details.
16461     * @see elm_toolbar_item_tooltip_style_set()
16462     *
16463     * @ingroup Toolbar
16464     */
16465    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16466
16467    /**
16468     * Set the type of mouse pointer/cursor decoration to be shown,
16469     * when the mouse pointer is over the given toolbar widget item
16470     *
16471     * @param it toolbar item to customize cursor on
16472     * @param cursor the cursor type's name
16473     *
16474     * This function works analogously as elm_object_cursor_set(), but
16475     * here the cursor's changing area is restricted to the item's
16476     * area, and not the whole widget's. Note that that item cursors
16477     * have precedence over widget cursors, so that a mouse over an
16478     * item with custom cursor set will always show @b that cursor.
16479     *
16480     * If this function is called twice for an object, a previously set
16481     * cursor will be unset on the second call.
16482     *
16483     * @see elm_object_cursor_set()
16484     * @see elm_toolbar_item_cursor_get()
16485     * @see elm_toolbar_item_cursor_unset()
16486     *
16487     * @ingroup Toolbar
16488     */
16489    EAPI void             elm_toolbar_item_cursor_set(Elm_Object_Item *it, const char *cursor) EINA_ARG_NONNULL(1);
16490
16491    /*
16492     * Get the type of mouse pointer/cursor decoration set to be shown,
16493     * when the mouse pointer is over the given toolbar widget item
16494     *
16495     * @param it toolbar item with custom cursor set
16496     * @return the cursor type's name or @c NULL, if no custom cursors
16497     * were set to @p item (and on errors)
16498     *
16499     * @see elm_object_cursor_get()
16500     * @see elm_toolbar_item_cursor_set()
16501     * @see elm_toolbar_item_cursor_unset()
16502     *
16503     * @ingroup Toolbar
16504     */
16505    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16506
16507    /**
16508     * Unset any custom mouse pointer/cursor decoration set to be
16509     * shown, when the mouse pointer is over the given toolbar widget
16510     * item, thus making it show the @b default cursor again.
16511     *
16512     * @param it a toolbar item
16513     *
16514     * Use this call to undo any custom settings on this item's cursor
16515     * decoration, bringing it back to defaults (no custom style set).
16516     *
16517     * @see elm_object_cursor_unset()
16518     * @see elm_toolbar_item_cursor_set()
16519     *
16520     * @ingroup Toolbar
16521     */
16522    EAPI void             elm_toolbar_item_cursor_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16523
16524    /**
16525     * Set a different @b style for a given custom cursor set for a
16526     * toolbar item.
16527     *
16528     * @param it toolbar item with custom cursor set
16529     * @param style the <b>theme style</b> to use (e.g. @c "default",
16530     * @c "transparent", etc)
16531     *
16532     * This function only makes sense when one is using custom mouse
16533     * cursor decorations <b>defined in a theme file</b>, which can have,
16534     * given a cursor name/type, <b>alternate styles</b> on it. It
16535     * works analogously as elm_object_cursor_style_set(), but here
16536     * applyed only to toolbar item objects.
16537     *
16538     * @warning Before you set a cursor style you should have definen a
16539     *       custom cursor previously on the item, with
16540     *       elm_toolbar_item_cursor_set()
16541     *
16542     * @see elm_toolbar_item_cursor_engine_only_set()
16543     * @see elm_toolbar_item_cursor_style_get()
16544     *
16545     * @ingroup Toolbar
16546     */
16547    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Object_Item *it, const char *style) EINA_ARG_NONNULL(1);
16548
16549    /**
16550     * Get the current @b style set for a given toolbar item's custom
16551     * cursor
16552     *
16553     * @param it toolbar item with custom cursor set.
16554     * @return style the cursor style in use. If the object does not
16555     *         have a cursor set, then @c NULL is returned.
16556     *
16557     * @see elm_toolbar_item_cursor_style_set() for more details
16558     *
16559     * @ingroup Toolbar
16560     */
16561    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16562
16563    /**
16564     * Set if the (custom)cursor for a given toolbar item should be
16565     * searched in its theme, also, or should only rely on the
16566     * rendering engine.
16567     *
16568     * @param it item with custom (custom) cursor already set on
16569     * @param engine_only Use @c EINA_TRUE to have cursors looked for
16570     * only on those provided by the rendering engine, @c EINA_FALSE to
16571     * have them searched on the widget's theme, as well.
16572     *
16573     * @note This call is of use only if you've set a custom cursor
16574     * for toolbar items, with elm_toolbar_item_cursor_set().
16575     *
16576     * @note By default, cursors will only be looked for between those
16577     * provided by the rendering engine.
16578     *
16579     * @ingroup Toolbar
16580     */
16581    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
16582
16583    /**
16584     * Get if the (custom) cursor for a given toolbar item is being
16585     * searched in its theme, also, or is only relying on the rendering
16586     * engine.
16587     *
16588     * @param it a toolbar item
16589     * @return @c EINA_TRUE, if cursors are being looked for only on
16590     * those provided by the rendering engine, @c EINA_FALSE if they
16591     * are being searched on the widget's theme, as well.
16592     *
16593     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
16594     *
16595     * @ingroup Toolbar
16596     */
16597    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16598
16599    /**
16600     * Change a toolbar's orientation
16601     * @param obj The toolbar object
16602     * @param vertical If @c EINA_TRUE, the toolbar is vertical
16603     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
16604     * @ingroup Toolbar
16605     * @deprecated use elm_toolbar_horizontal_set() instead.
16606     */
16607    EINA_DEPRECATED EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
16608
16609    /**
16610     * Change a toolbar's orientation
16611     * @param obj The toolbar object
16612     * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
16613     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
16614     * @ingroup Toolbar
16615     */
16616    EAPI void             elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16617
16618    /**
16619     * Get a toolbar's orientation
16620     * @param obj The toolbar object
16621     * @return If @c EINA_TRUE, the toolbar is vertical
16622     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
16623     * @ingroup Toolbar
16624     * @deprecated use elm_toolbar_horizontal_get() instead.
16625     */
16626    EINA_DEPRECATED EAPI Eina_Bool        elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16627
16628    /**
16629     * Get a toolbar's orientation
16630     * @param obj The toolbar object
16631     * @return If @c EINA_TRUE, the toolbar is horizontal
16632     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
16633     * @ingroup Toolbar
16634     */
16635    EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
16636    /**
16637     * @}
16638     */
16639
16640    /**
16641     * @defgroup Tooltips Tooltips
16642     *
16643     * The Tooltip is an (internal, for now) smart object used to show a
16644     * content in a frame on mouse hover of objects(or widgets), with
16645     * tips/information about them.
16646     *
16647     * @{
16648     */
16649
16650    EAPI double       elm_tooltip_delay_get(void);
16651    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
16652    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
16653    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
16654    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
16655    EAPI void         elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text) EINA_ARG_NONNULL(1, 3);
16656 #define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
16657    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);
16658    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16659    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
16660    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16661    EAPI Eina_Bool    elm_object_tooltip_window_mode_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
16662    EAPI Eina_Bool    elm_object_tooltip_window_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16663
16664    /**
16665     * @}
16666     */
16667
16668    /**
16669     * @defgroup Cursors Cursors
16670     *
16671     * The Elementary cursor is an internal smart object used to
16672     * customize the mouse cursor displayed over objects (or
16673     * widgets). In the most common scenario, the cursor decoration
16674     * comes from the graphical @b engine Elementary is running
16675     * on. Those engines may provide different decorations for cursors,
16676     * and Elementary provides functions to choose them (think of X11
16677     * cursors, as an example).
16678     *
16679     * There's also the possibility of, besides using engine provided
16680     * cursors, also use ones coming from Edje theming files. Both
16681     * globally and per widget, Elementary makes it possible for one to
16682     * make the cursors lookup to be held on engines only or on
16683     * Elementary's theme file, too. To set cursor's hot spot,
16684     * two data items should be added to cursor's theme: "hot_x" and
16685     * "hot_y", that are the offset from upper-left corner of the cursor
16686     * (coordinates 0,0).
16687     *
16688     * @{
16689     */
16690
16691    /**
16692     * Set the cursor to be shown when mouse is over the object
16693     *
16694     * Set the cursor that will be displayed when mouse is over the
16695     * object. The object can have only one cursor set to it, so if
16696     * this function is called twice for an object, the previous set
16697     * will be unset.
16698     * If using X cursors, a definition of all the valid cursor names
16699     * is listed on Elementary_Cursors.h. If an invalid name is set
16700     * the default cursor will be used.
16701     *
16702     * @param obj the object being set a cursor.
16703     * @param cursor the cursor name to be used.
16704     *
16705     * @ingroup Cursors
16706     */
16707    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
16708
16709    /**
16710     * Get the cursor to be shown when mouse is over the object
16711     *
16712     * @param obj an object with cursor already set.
16713     * @return the cursor name.
16714     *
16715     * @ingroup Cursors
16716     */
16717    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16718
16719    /**
16720     * Unset cursor for object
16721     *
16722     * Unset cursor for object, and set the cursor to default if the mouse
16723     * was over this object.
16724     *
16725     * @param obj Target object
16726     * @see elm_object_cursor_set()
16727     *
16728     * @ingroup Cursors
16729     */
16730    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16731
16732    /**
16733     * Sets a different style for this object cursor.
16734     *
16735     * @note before you set a style you should define a cursor with
16736     *       elm_object_cursor_set()
16737     *
16738     * @param obj an object with cursor already set.
16739     * @param style the theme style to use (default, transparent, ...)
16740     *
16741     * @ingroup Cursors
16742     */
16743    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
16744
16745    /**
16746     * Get the style for this object cursor.
16747     *
16748     * @param obj an object with cursor already set.
16749     * @return style the theme style in use, defaults to "default". If the
16750     *         object does not have a cursor set, then NULL is returned.
16751     *
16752     * @ingroup Cursors
16753     */
16754    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16755
16756    /**
16757     * Set if the cursor set should be searched on the theme or should use
16758     * the provided by the engine, only.
16759     *
16760     * @note before you set if should look on theme you should define a cursor
16761     * with elm_object_cursor_set(). By default it will only look for cursors
16762     * provided by the engine.
16763     *
16764     * @param obj an object with cursor already set.
16765     * @param engine_only boolean to define it cursors should be looked only
16766     * between the provided by the engine or searched on widget's theme as well.
16767     *
16768     * @ingroup Cursors
16769     */
16770    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
16771
16772    /**
16773     * Get the cursor engine only usage for this object cursor.
16774     *
16775     * @param obj an object with cursor already set.
16776     * @return engine_only boolean to define it cursors should be
16777     * looked only between the provided by the engine or searched on
16778     * widget's theme as well. If the object does not have a cursor
16779     * set, then EINA_FALSE is returned.
16780     *
16781     * @ingroup Cursors
16782     */
16783    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16784
16785    /**
16786     * Get the configured cursor engine only usage
16787     *
16788     * This gets the globally configured exclusive usage of engine cursors.
16789     *
16790     * @return 1 if only engine cursors should be used
16791     * @ingroup Cursors
16792     */
16793    EAPI int          elm_cursor_engine_only_get(void);
16794
16795    /**
16796     * Set the configured cursor engine only usage
16797     *
16798     * This sets the globally configured exclusive usage of engine cursors.
16799     * It won't affect cursors set before changing this value.
16800     *
16801     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
16802     * look for them on theme before.
16803     * @return EINA_TRUE if value is valid and setted (0 or 1)
16804     * @ingroup Cursors
16805     */
16806    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
16807
16808    /**
16809     * @}
16810     */
16811
16812    /**
16813     * @defgroup Menu Menu
16814     *
16815     * @image html img/widget/menu/preview-00.png
16816     * @image latex img/widget/menu/preview-00.eps
16817     *
16818     * A menu is a list of items displayed above its parent. When the menu is
16819     * showing its parent is darkened. Each item can have a sub-menu. The menu
16820     * object can be used to display a menu on a right click event, in a toolbar,
16821     * anywhere.
16822     *
16823     * Signals that you can add callbacks for are:
16824     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
16825     *
16826     * Default contents parts of the menu items that you can use for are:
16827     * @li "default" - A main content of the menu item
16828     *
16829     * Default text parts of the menu items that you can use for are:
16830     * @li "default" - label in the menu item
16831     *
16832     * @see @ref tutorial_menu
16833     * @{
16834     */
16835
16836    /**
16837     * @brief Add a new menu to the parent
16838     *
16839     * @param parent The parent object.
16840     * @return The new object or NULL if it cannot be created.
16841     */
16842    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16843
16844    /**
16845     * @brief Set the parent for the given menu widget
16846     *
16847     * @param obj The menu object.
16848     * @param parent The new parent.
16849     */
16850    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
16851
16852    /**
16853     * @brief Get the parent for the given menu widget
16854     *
16855     * @param obj The menu object.
16856     * @return The parent.
16857     *
16858     * @see elm_menu_parent_set()
16859     */
16860    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16861
16862    /**
16863     * @brief Move the menu to a new position
16864     *
16865     * @param obj The menu object.
16866     * @param x The new position.
16867     * @param y The new position.
16868     *
16869     * Sets the top-left position of the menu to (@p x,@p y).
16870     *
16871     * @note @p x and @p y coordinates are relative to parent.
16872     */
16873    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
16874
16875    /**
16876     * @brief Close a opened menu
16877     *
16878     * @param obj the menu object
16879     * @return void
16880     *
16881     * Hides the menu and all it's sub-menus.
16882     */
16883    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
16884
16885    /**
16886     * @brief Returns a list of @p item's items.
16887     *
16888     * @param obj The menu object
16889     * @return An Eina_List* of @p item's items
16890     */
16891    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16892
16893    /**
16894     * @brief Get the Evas_Object of an Elm_Object_Item
16895     *
16896     * @param it The menu item object.
16897     * @return The edje object containing the swallowed content
16898     *
16899     * @warning Don't manipulate this object!
16900     *
16901     */
16902    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16903
16904    /**
16905     * @brief Add an item at the end of the given menu widget
16906     *
16907     * @param obj The menu object.
16908     * @param parent The parent menu item (optional)
16909     * @param icon An icon display on the item. The icon will be destryed by the menu.
16910     * @param label The label of the item.
16911     * @param func Function called when the user select the item.
16912     * @param data Data sent by the callback.
16913     * @return Returns the new item.
16914     */
16915    EAPI Elm_Object_Item     *elm_menu_item_add(Evas_Object *obj, Elm_Object_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16916
16917    /**
16918     * @brief Add an object swallowed in an item at the end of the given menu
16919     * widget
16920     *
16921     * @param obj The menu object.
16922     * @param parent The parent menu item (optional)
16923     * @param subobj The object to swallow
16924     * @param func Function called when the user select the item.
16925     * @param data Data sent by the callback.
16926     * @return Returns the new item.
16927     *
16928     * Add an evas object as an item to the menu.
16929     */
16930    EAPI Elm_Object_Item     *elm_menu_item_add_object(Evas_Object *obj, Elm_Object_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16931
16932    /**
16933     * @brief Set the label of a menu item
16934     *
16935     * @param it The menu item object.
16936     * @param label The label to set for @p item
16937     *
16938     * @warning Don't use this funcion on items created with
16939     * elm_menu_item_add_object() or elm_menu_item_separator_add().
16940     *
16941     * @deprecated Use elm_object_item_text_set() instead
16942     */
16943    EINA_DEPRECATED EAPI void               elm_menu_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
16944
16945    /**
16946     * @brief Get the label of a menu item
16947     *
16948     * @param it The menu item object.
16949     * @return The label of @p item
16950          * @deprecated Use elm_object_item_text_get() instead
16951     */
16952    EINA_DEPRECATED EAPI const char        *elm_menu_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16953
16954    /**
16955     * @brief Set the icon of a menu item to the standard icon with name @p icon
16956     *
16957     * @param it The menu item object.
16958     * @param icon The icon object to set for the content of @p item
16959     *
16960     * Once this icon is set, any previously set icon will be deleted.
16961     */
16962    EAPI void               elm_menu_item_object_icon_name_set(Elm_Object_Item *it, const char *icon) EINA_ARG_NONNULL(1, 2);
16963
16964    /**
16965     * @brief Get the string representation from the icon of a menu item
16966     *
16967     * @param it The menu item object.
16968     * @return The string representation of @p item's icon or NULL
16969     *
16970     * @see elm_menu_item_object_icon_name_set()
16971     */
16972    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16973
16974    /**
16975     * @brief Set the content object of a menu item
16976     *
16977     * @param it The menu item object
16978     * @param The content object or NULL
16979     * @return EINA_TRUE on success, else EINA_FALSE
16980     *
16981     * Use this function to change the object swallowed by a menu item, deleting
16982     * any previously swallowed object.
16983     *
16984     * @deprecated Use elm_object_item_content_set() instead
16985     */
16986    EINA_DEPRECATED EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Object_Item *it, Evas_Object *obj) EINA_ARG_NONNULL(1);
16987
16988    /**
16989     * @brief Get the content object of a menu item
16990     *
16991     * @param it The menu item object
16992     * @return The content object or NULL
16993     * @note If @p item was added with elm_menu_item_add_object, this
16994     * function will return the object passed, else it will return the
16995     * icon object.
16996     *
16997     * @see elm_menu_item_object_content_set()
16998     *
16999     * @deprecated Use elm_object_item_content_get() instead
17000     */
17001    EINA_DEPRECATED EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17002
17003    /**
17004     * @brief Set the selected state of @p item.
17005     *
17006     * @param it The menu item object.
17007     * @param selected The selected/unselected state of the item
17008     */
17009    EAPI void               elm_menu_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
17010
17011    /**
17012     * @brief Get the selected state of @p item.
17013     *
17014     * @param it The menu item object.
17015     * @return The selected/unselected state of the item
17016     *
17017     * @see elm_menu_item_selected_set()
17018     */
17019    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17020
17021    /**
17022     * @brief Set the disabled state of @p item.
17023     *
17024     * @param it The menu item object.
17025     * @param disabled The enabled/disabled state of the item
17026     * @deprecated Use elm_object_item_disabled_set() instead
17027     */
17028    EINA_DEPRECATED EAPI void               elm_menu_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17029
17030    /**
17031     * @brief Get the disabled state of @p item.
17032     *
17033     * @param it The menu item object.
17034     * @return The enabled/disabled state of the item
17035     *
17036     * @see elm_menu_item_disabled_set()
17037     * @deprecated Use elm_object_item_disabled_get() instead
17038     */
17039    EINA_DEPRECATED EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17040
17041    /**
17042     * @brief Add a separator item to menu @p obj under @p parent.
17043     *
17044     * @param obj The menu object
17045     * @param parent The item to add the separator under
17046     * @return The created item or NULL on failure
17047     *
17048     * This is item is a @ref Separator.
17049     */
17050    EAPI Elm_Object_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Object_Item *parent) EINA_ARG_NONNULL(1);
17051
17052    /**
17053     * @brief Returns whether @p item is a separator.
17054     *
17055     * @param it The item to check
17056     * @return If true, @p item is a separator
17057     *
17058     * @see elm_menu_item_separator_add()
17059     */
17060    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17061
17062    /**
17063     * @brief Deletes an item from the menu.
17064     *
17065     * @param it The item to delete.
17066     *
17067     * @see elm_menu_item_add()
17068     */
17069    EAPI void               elm_menu_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17070
17071    /**
17072     * @brief Set the function called when a menu item is deleted.
17073     *
17074     * @param it The item to set the callback on
17075     * @param func The function called
17076     *
17077     * @see elm_menu_item_add()
17078     * @see elm_menu_item_del()
17079     */
17080    EAPI void               elm_menu_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17081
17082    /**
17083     * @brief Returns the data associated with menu item @p item.
17084     *
17085     * @param it The item
17086     * @return The data associated with @p item or NULL if none was set.
17087     *
17088     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
17089     *
17090     * @deprecated Use elm_object_item_data_get() instead
17091     */
17092    EINA_DEPRECATED EAPI void              *elm_menu_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17093
17094    /**
17095     * @brief Sets the data to be associated with menu item @p item.
17096     *
17097     * @param it The item
17098     * @param data The data to be associated with @p item
17099     *
17100     * @deprecated Use elm_object_item_data_set() instead
17101     */
17102    EINA_DEPRECATED EAPI void               elm_menu_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
17103
17104    /**
17105     * @brief Returns a list of @p item's subitems.
17106     *
17107     * @param it The item
17108     * @return An Eina_List* of @p item's subitems
17109     *
17110     * @see elm_menu_add()
17111     */
17112    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17113
17114    /**
17115     * @brief Get the position of a menu item
17116     *
17117     * @param it The menu item
17118     * @return The item's index
17119     *
17120     * This function returns the index position of a menu item in a menu.
17121     * For a sub-menu, this number is relative to the first item in the sub-menu.
17122     *
17123     * @note Index values begin with 0
17124     */
17125    EAPI unsigned int       elm_menu_item_index_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1) EINA_PURE;
17126
17127    /**
17128     * @brief @brief Return a menu item's owner menu
17129     *
17130     * @param it The menu item
17131     * @return The menu object owning @p item, or NULL on failure
17132     *
17133     * Use this function to get the menu object owning an item.
17134     */
17135    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1) EINA_PURE;
17136
17137    /**
17138     * @brief Get the selected item in the menu
17139     *
17140     * @param obj The menu object
17141     * @return The selected item, or NULL if none
17142     *
17143     * @see elm_menu_item_selected_get()
17144     * @see elm_menu_item_selected_set()
17145     */
17146    EAPI Elm_Object_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
17147
17148    /**
17149     * @brief Get the last item in the menu
17150     *
17151     * @param obj The menu object
17152     * @return The last item, or NULL if none
17153     */
17154    EAPI Elm_Object_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
17155
17156    /**
17157     * @brief Get the first item in the menu
17158     *
17159     * @param obj The menu object
17160     * @return The first item, or NULL if none
17161     */
17162    EAPI Elm_Object_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
17163
17164    /**
17165     * @brief Get the next item in the menu.
17166     *
17167     * @param it The menu item object.
17168     * @return The item after it, or NULL if none
17169     */
17170    EAPI Elm_Object_Item *elm_menu_item_next_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17171
17172    /**
17173     * @brief Get the previous item in the menu.
17174     *
17175     * @param it The menu item object.
17176     * @return The item before it, or NULL if none
17177     */
17178    EAPI Elm_Object_Item *elm_menu_item_prev_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17179
17180    /**
17181     * @}
17182     */
17183
17184    /**
17185     * @defgroup List List
17186     * @ingroup Elementary
17187     *
17188     * @image html img/widget/list/preview-00.png
17189     * @image latex img/widget/list/preview-00.eps width=\textwidth
17190     *
17191     * @image html img/list.png
17192     * @image latex img/list.eps width=\textwidth
17193     *
17194     * A list widget is a container whose children are displayed vertically or
17195     * horizontally, in order, and can be selected.
17196     * The list can accept only one or multiple items selection. Also has many
17197     * modes of items displaying.
17198     *
17199     * A list is a very simple type of list widget.  For more robust
17200     * lists, @ref Genlist should probably be used.
17201     *
17202     * Smart callbacks one can listen to:
17203     * - @c "activated" - The user has double-clicked or pressed
17204     *   (enter|return|spacebar) on an item. The @c event_info parameter
17205     *   is the item that was activated.
17206     * - @c "clicked,double" - The user has double-clicked an item.
17207     *   The @c event_info parameter is the item that was double-clicked.
17208     * - "selected" - when the user selected an item
17209     * - "unselected" - when the user unselected an item
17210     * - "longpressed" - an item in the list is long-pressed
17211     * - "edge,top" - the list is scrolled until the top edge
17212     * - "edge,bottom" - the list is scrolled until the bottom edge
17213     * - "edge,left" - the list is scrolled until the left edge
17214     * - "edge,right" - the list is scrolled until the right edge
17215     * - "language,changed" - the program's language changed
17216     *
17217     * Available styles for it:
17218     * - @c "default"
17219     *
17220     * List of examples:
17221     * @li @ref list_example_01
17222     * @li @ref list_example_02
17223     * @li @ref list_example_03
17224     */
17225
17226    /**
17227     * @addtogroup List
17228     * @{
17229     */
17230
17231    /**
17232     * @enum _Elm_List_Mode
17233     * @typedef Elm_List_Mode
17234     *
17235     * Set list's resize behavior, transverse axis scroll and
17236     * items cropping. See each mode's description for more details.
17237     *
17238     * @note Default value is #ELM_LIST_SCROLL.
17239     *
17240     * Values <b> don't </b> work as bitmask, only one can be choosen.
17241     *
17242     * @see elm_list_mode_set()
17243     * @see elm_list_mode_get()
17244     *
17245     * @ingroup List
17246     */
17247    typedef enum _Elm_List_Mode
17248      {
17249         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. */
17250         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). */
17251         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. */
17252         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. */
17253         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
17254      } Elm_List_Mode;
17255
17256    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().  */
17257
17258    /**
17259     * Add a new list widget to the given parent Elementary
17260     * (container) object.
17261     *
17262     * @param parent The parent object.
17263     * @return a new list widget handle or @c NULL, on errors.
17264     *
17265     * This function inserts a new list widget on the canvas.
17266     *
17267     * @ingroup List
17268     */
17269    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17270
17271    /**
17272     * Starts the list.
17273     *
17274     * @param obj The list object
17275     *
17276     * @note Call before running show() on the list object.
17277     * @warning If not called, it won't display the list properly.
17278     *
17279     * @code
17280     * li = elm_list_add(win);
17281     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
17282     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
17283     * elm_list_go(li);
17284     * evas_object_show(li);
17285     * @endcode
17286     *
17287     * @ingroup List
17288     */
17289    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
17290
17291    /**
17292     * Enable or disable multiple items selection on the list object.
17293     *
17294     * @param obj The list object
17295     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
17296     * disable it.
17297     *
17298     * Disabled by default. If disabled, the user can select a single item of
17299     * the list each time. Selected items are highlighted on list.
17300     * If enabled, many items can be selected.
17301     *
17302     * If a selected item is selected again, it will be unselected.
17303     *
17304     * @see elm_list_multi_select_get()
17305     *
17306     * @ingroup List
17307     */
17308    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
17309
17310    /**
17311     * Get a value whether multiple items selection is enabled or not.
17312     *
17313     * @see elm_list_multi_select_set() for details.
17314     *
17315     * @param obj The list object.
17316     * @return @c EINA_TRUE means multiple items selection is enabled.
17317     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
17318     * @c EINA_FALSE is returned.
17319     *
17320     * @ingroup List
17321     */
17322    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17323
17324    /**
17325     * Set which mode to use for the list object.
17326     *
17327     * @param obj The list object
17328     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
17329     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
17330     *
17331     * Set list's resize behavior, transverse axis scroll and
17332     * items cropping. See each mode's description for more details.
17333     *
17334     * @note Default value is #ELM_LIST_SCROLL.
17335     *
17336     * Only one can be set, if a previous one was set, it will be changed
17337     * by the new mode set. Bitmask won't work as well.
17338     *
17339     * @see elm_list_mode_get()
17340     *
17341     * @ingroup List
17342     */
17343    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
17344
17345    /**
17346     * Get the mode the list is at.
17347     *
17348     * @param obj The list object
17349     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
17350     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
17351     *
17352     * @note see elm_list_mode_set() for more information.
17353     *
17354     * @ingroup List
17355     */
17356    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17357
17358    /**
17359     * Enable or disable horizontal mode on the list object.
17360     *
17361     * @param obj The list object.
17362     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
17363     * disable it, i.e., to enable vertical mode.
17364     *
17365     * @note Vertical mode is set by default.
17366     *
17367     * On horizontal mode items are displayed on list from left to right,
17368     * instead of from top to bottom. Also, the list will scroll horizontally.
17369     * Each item will presents left icon on top and right icon, or end, at
17370     * the bottom.
17371     *
17372     * @see elm_list_horizontal_get()
17373     *
17374     * @ingroup List
17375     */
17376    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17377
17378    /**
17379     * Get a value whether horizontal mode is enabled or not.
17380     *
17381     * @param obj The list object.
17382     * @return @c EINA_TRUE means horizontal mode selection is enabled.
17383     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
17384     * @c EINA_FALSE is returned.
17385     *
17386     * @see elm_list_horizontal_set() for details.
17387     *
17388     * @ingroup List
17389     */
17390    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17391
17392    /**
17393     * Enable or disable always select mode on the list object.
17394     *
17395     * @param obj The list object
17396     * @param always_select @c EINA_TRUE to enable always select mode or
17397     * @c EINA_FALSE to disable it.
17398     *
17399     * @note Always select mode is disabled by default.
17400     *
17401     * Default behavior of list items is to only call its callback function
17402     * the first time it's pressed, i.e., when it is selected. If a selected
17403     * item is pressed again, and multi-select is disabled, it won't call
17404     * this function (if multi-select is enabled it will unselect the item).
17405     *
17406     * If always select is enabled, it will call the callback function
17407     * everytime a item is pressed, so it will call when the item is selected,
17408     * and again when a selected item is pressed.
17409     *
17410     * @see elm_list_always_select_mode_get()
17411     * @see elm_list_multi_select_set()
17412     *
17413     * @ingroup List
17414     */
17415    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
17416
17417    /**
17418     * Get a value whether always select mode is enabled or not, meaning that
17419     * an item will always call its callback function, even if already selected.
17420     *
17421     * @param obj The list object
17422     * @return @c EINA_TRUE means horizontal mode selection is enabled.
17423     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
17424     * @c EINA_FALSE is returned.
17425     *
17426     * @see elm_list_always_select_mode_set() for details.
17427     *
17428     * @ingroup List
17429     */
17430    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17431
17432    /**
17433     * Set bouncing behaviour when the scrolled content reaches an edge.
17434     *
17435     * Tell the internal scroller object whether it should bounce or not
17436     * when it reaches the respective edges for each axis.
17437     *
17438     * @param obj The list object
17439     * @param h_bounce Whether to bounce or not in the horizontal axis.
17440     * @param v_bounce Whether to bounce or not in the vertical axis.
17441     *
17442     * @see elm_scroller_bounce_set()
17443     *
17444     * @ingroup List
17445     */
17446    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
17447
17448    /**
17449     * Get the bouncing behaviour of the internal scroller.
17450     *
17451     * Get whether the internal scroller should bounce when the edge of each
17452     * axis is reached scrolling.
17453     *
17454     * @param obj The list object.
17455     * @param h_bounce Pointer where to store the bounce state of the horizontal
17456     * axis.
17457     * @param v_bounce Pointer where to store the bounce state of the vertical
17458     * axis.
17459     *
17460     * @see elm_scroller_bounce_get()
17461     * @see elm_list_bounce_set()
17462     *
17463     * @ingroup List
17464     */
17465    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
17466
17467    /**
17468     * Set the scrollbar policy.
17469     *
17470     * @param obj The list object
17471     * @param policy_h Horizontal scrollbar policy.
17472     * @param policy_v Vertical scrollbar policy.
17473     *
17474     * This sets the scrollbar visibility policy for the given scroller.
17475     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
17476     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
17477     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
17478     * This applies respectively for the horizontal and vertical scrollbars.
17479     *
17480     * The both are disabled by default, i.e., are set to
17481     * #ELM_SCROLLER_POLICY_OFF.
17482     *
17483     * @ingroup List
17484     */
17485    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17486
17487    /**
17488     * Get the scrollbar policy.
17489     *
17490     * @see elm_list_scroller_policy_get() for details.
17491     *
17492     * @param obj The list object.
17493     * @param policy_h Pointer where to store horizontal scrollbar policy.
17494     * @param policy_v Pointer where to store vertical scrollbar policy.
17495     *
17496     * @ingroup List
17497     */
17498    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);
17499
17500    /**
17501     * Append a new item to the list object.
17502     *
17503     * @param obj The list object.
17504     * @param label The label of the list item.
17505     * @param icon The icon object to use for the left side of the item. An
17506     * icon can be any Evas object, but usually it is an icon created
17507     * with elm_icon_add().
17508     * @param end The icon object to use for the right side of the item. An
17509     * icon can be any Evas object.
17510     * @param func The function to call when the item is clicked.
17511     * @param data The data to associate with the item for related callbacks.
17512     *
17513     * @return The created item or @c NULL upon failure.
17514     *
17515     * A new item will be created and appended to the list, i.e., will
17516     * be set as @b last item.
17517     *
17518     * Items created with this method can be deleted with
17519     * elm_list_item_del().
17520     *
17521     * Associated @p data can be properly freed when item is deleted if a
17522     * callback function is set with elm_list_item_del_cb_set().
17523     *
17524     * If a function is passed as argument, it will be called everytime this item
17525     * is selected, i.e., the user clicks over an unselected item.
17526     * If always select is enabled it will call this function every time
17527     * user clicks over an item (already selected or not).
17528     * If such function isn't needed, just passing
17529     * @c NULL as @p func is enough. The same should be done for @p data.
17530     *
17531     * Simple example (with no function callback or data associated):
17532     * @code
17533     * li = elm_list_add(win);
17534     * ic = elm_icon_add(win);
17535     * elm_icon_file_set(ic, "path/to/image", NULL);
17536     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
17537     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
17538     * elm_list_go(li);
17539     * evas_object_show(li);
17540     * @endcode
17541     *
17542     * @see elm_list_always_select_mode_set()
17543     * @see elm_list_item_del()
17544     * @see elm_list_item_del_cb_set()
17545     * @see elm_list_clear()
17546     * @see elm_icon_add()
17547     *
17548     * @ingroup List
17549     */
17550    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);
17551
17552    /**
17553     * Prepend a new item to the list object.
17554     *
17555     * @param obj The list object.
17556     * @param label The label of the list item.
17557     * @param icon The icon object to use for the left side of the item. An
17558     * icon can be any Evas object, but usually it is an icon created
17559     * with elm_icon_add().
17560     * @param end The icon object to use for the right side of the item. An
17561     * icon can be any Evas object.
17562     * @param func The function to call when the item is clicked.
17563     * @param data The data to associate with the item for related callbacks.
17564     *
17565     * @return The created item or @c NULL upon failure.
17566     *
17567     * A new item will be created and prepended to the list, i.e., will
17568     * be set as @b first item.
17569     *
17570     * Items created with this method can be deleted with
17571     * elm_list_item_del().
17572     *
17573     * Associated @p data can be properly freed when item is deleted if a
17574     * callback function is set with elm_list_item_del_cb_set().
17575     *
17576     * If a function is passed as argument, it will be called everytime this item
17577     * is selected, i.e., the user clicks over an unselected item.
17578     * If always select is enabled it will call this function every time
17579     * user clicks over an item (already selected or not).
17580     * If such function isn't needed, just passing
17581     * @c NULL as @p func is enough. The same should be done for @p data.
17582     *
17583     * @see elm_list_item_append() for a simple code example.
17584     * @see elm_list_always_select_mode_set()
17585     * @see elm_list_item_del()
17586     * @see elm_list_item_del_cb_set()
17587     * @see elm_list_clear()
17588     * @see elm_icon_add()
17589     *
17590     * @ingroup List
17591     */
17592    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);
17593
17594    /**
17595     * Insert a new item into the list object before item @p before.
17596     *
17597     * @param obj The list object.
17598     * @param before The list item to insert before.
17599     * @param label The label of the list item.
17600     * @param icon The icon object to use for the left side of the item. An
17601     * icon can be any Evas object, but usually it is an icon created
17602     * with elm_icon_add().
17603     * @param end The icon object to use for the right side of the item. An
17604     * icon can be any Evas object.
17605     * @param func The function to call when the item is clicked.
17606     * @param data The data to associate with the item for related callbacks.
17607     *
17608     * @return The created item or @c NULL upon failure.
17609     *
17610     * A new item will be created and added to the list. Its position in
17611     * this list will be just before item @p before.
17612     *
17613     * Items created with this method can be deleted with
17614     * elm_list_item_del().
17615     *
17616     * Associated @p data can be properly freed when item is deleted if a
17617     * callback function is set with elm_list_item_del_cb_set().
17618     *
17619     * If a function is passed as argument, it will be called everytime this item
17620     * is selected, i.e., the user clicks over an unselected item.
17621     * If always select is enabled it will call this function every time
17622     * user clicks over an item (already selected or not).
17623     * If such function isn't needed, just passing
17624     * @c NULL as @p func is enough. The same should be done for @p data.
17625     *
17626     * @see elm_list_item_append() for a simple code example.
17627     * @see elm_list_always_select_mode_set()
17628     * @see elm_list_item_del()
17629     * @see elm_list_item_del_cb_set()
17630     * @see elm_list_clear()
17631     * @see elm_icon_add()
17632     *
17633     * @ingroup List
17634     */
17635    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);
17636
17637    /**
17638     * Insert a new item into the list object after item @p after.
17639     *
17640     * @param obj The list object.
17641     * @param after The list item to insert after.
17642     * @param label The label of the list item.
17643     * @param icon The icon object to use for the left side of the item. An
17644     * icon can be any Evas object, but usually it is an icon created
17645     * with elm_icon_add().
17646     * @param end The icon object to use for the right side of the item. An
17647     * icon can be any Evas object.
17648     * @param func The function to call when the item is clicked.
17649     * @param data The data to associate with the item for related callbacks.
17650     *
17651     * @return The created item or @c NULL upon failure.
17652     *
17653     * A new item will be created and added to the list. Its position in
17654     * this list will be just after item @p after.
17655     *
17656     * Items created with this method can be deleted with
17657     * elm_list_item_del().
17658     *
17659     * Associated @p data can be properly freed when item is deleted if a
17660     * callback function is set with elm_list_item_del_cb_set().
17661     *
17662     * If a function is passed as argument, it will be called everytime this item
17663     * is selected, i.e., the user clicks over an unselected item.
17664     * If always select is enabled it will call this function every time
17665     * user clicks over an item (already selected or not).
17666     * If such function isn't needed, just passing
17667     * @c NULL as @p func is enough. The same should be done for @p data.
17668     *
17669     * @see elm_list_item_append() for a simple code example.
17670     * @see elm_list_always_select_mode_set()
17671     * @see elm_list_item_del()
17672     * @see elm_list_item_del_cb_set()
17673     * @see elm_list_clear()
17674     * @see elm_icon_add()
17675     *
17676     * @ingroup List
17677     */
17678    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);
17679
17680    /**
17681     * Insert a new item into the sorted list object.
17682     *
17683     * @param obj The list object.
17684     * @param label The label of the list item.
17685     * @param icon The icon object to use for the left side of the item. An
17686     * icon can be any Evas object, but usually it is an icon created
17687     * with elm_icon_add().
17688     * @param end The icon object to use for the right side of the item. An
17689     * icon can be any Evas object.
17690     * @param func The function to call when the item is clicked.
17691     * @param data The data to associate with the item for related callbacks.
17692     * @param cmp_func The comparing function to be used to sort list
17693     * items <b>by #Elm_List_Item item handles</b>. This function will
17694     * receive two items and compare them, returning a non-negative integer
17695     * if the second item should be place after the first, or negative value
17696     * if should be placed before.
17697     *
17698     * @return The created item or @c NULL upon failure.
17699     *
17700     * @note This function inserts values into a list object assuming it was
17701     * sorted and the result will be sorted.
17702     *
17703     * A new item will be created and added to the list. Its position in
17704     * this list will be found comparing the new item with previously inserted
17705     * items using function @p cmp_func.
17706     *
17707     * Items created with this method can be deleted with
17708     * elm_list_item_del().
17709     *
17710     * Associated @p data can be properly freed when item is deleted if a
17711     * callback function is set with elm_list_item_del_cb_set().
17712     *
17713     * If a function is passed as argument, it will be called everytime this item
17714     * is selected, i.e., the user clicks over an unselected item.
17715     * If always select is enabled it will call this function every time
17716     * user clicks over an item (already selected or not).
17717     * If such function isn't needed, just passing
17718     * @c NULL as @p func is enough. The same should be done for @p data.
17719     *
17720     * @see elm_list_item_append() for a simple code example.
17721     * @see elm_list_always_select_mode_set()
17722     * @see elm_list_item_del()
17723     * @see elm_list_item_del_cb_set()
17724     * @see elm_list_clear()
17725     * @see elm_icon_add()
17726     *
17727     * @ingroup List
17728     */
17729    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);
17730
17731    /**
17732     * Remove all list's items.
17733     *
17734     * @param obj The list object
17735     *
17736     * @see elm_list_item_del()
17737     * @see elm_list_item_append()
17738     *
17739     * @ingroup List
17740     */
17741    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
17742
17743    /**
17744     * Get a list of all the list items.
17745     *
17746     * @param obj The list object
17747     * @return An @c Eina_List of list items, #Elm_List_Item,
17748     * or @c NULL on failure.
17749     *
17750     * @see elm_list_item_append()
17751     * @see elm_list_item_del()
17752     * @see elm_list_clear()
17753     *
17754     * @ingroup List
17755     */
17756    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17757
17758    /**
17759     * Get the selected item.
17760     *
17761     * @param obj The list object.
17762     * @return The selected list item.
17763     *
17764     * The selected item can be unselected with function
17765     * elm_list_item_selected_set().
17766     *
17767     * The selected item always will be highlighted on list.
17768     *
17769     * @see elm_list_selected_items_get()
17770     *
17771     * @ingroup List
17772     */
17773    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17774
17775    /**
17776     * Return a list of the currently selected list items.
17777     *
17778     * @param obj The list object.
17779     * @return An @c Eina_List of list items, #Elm_List_Item,
17780     * or @c NULL on failure.
17781     *
17782     * Multiple items can be selected if multi select is enabled. It can be
17783     * done with elm_list_multi_select_set().
17784     *
17785     * @see elm_list_selected_item_get()
17786     * @see elm_list_multi_select_set()
17787     *
17788     * @ingroup List
17789     */
17790    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17791
17792    /**
17793     * Set the selected state of an item.
17794     *
17795     * @param item The list item
17796     * @param selected The selected state
17797     *
17798     * This sets the selected state of the given item @p it.
17799     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
17800     *
17801     * If a new item is selected the previosly selected will be unselected,
17802     * unless multiple selection is enabled with elm_list_multi_select_set().
17803     * Previoulsy selected item can be get with function
17804     * elm_list_selected_item_get().
17805     *
17806     * Selected items will be highlighted.
17807     *
17808     * @see elm_list_item_selected_get()
17809     * @see elm_list_selected_item_get()
17810     * @see elm_list_multi_select_set()
17811     *
17812     * @ingroup List
17813     */
17814    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17815
17816    /*
17817     * Get whether the @p item is selected or not.
17818     *
17819     * @param item The list item.
17820     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
17821     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
17822     *
17823     * @see elm_list_selected_item_set() for details.
17824     * @see elm_list_item_selected_get()
17825     *
17826     * @ingroup List
17827     */
17828    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17829
17830    /**
17831     * Set or unset item as a separator.
17832     *
17833     * @param it The list item.
17834     * @param setting @c EINA_TRUE to set item @p it as separator or
17835     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
17836     *
17837     * Items aren't set as separator by default.
17838     *
17839     * If set as separator it will display separator theme, so won't display
17840     * icons or label.
17841     *
17842     * @see elm_list_item_separator_get()
17843     *
17844     * @ingroup List
17845     */
17846    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
17847
17848    /**
17849     * Get a value whether item is a separator or not.
17850     *
17851     * @see elm_list_item_separator_set() for details.
17852     *
17853     * @param it The list item.
17854     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
17855     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
17856     *
17857     * @ingroup List
17858     */
17859    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17860
17861    /**
17862     * Show @p item in the list view.
17863     *
17864     * @param item The list item to be shown.
17865     *
17866     * It won't animate list until item is visible. If such behavior is wanted,
17867     * use elm_list_bring_in() intead.
17868     *
17869     * @ingroup List
17870     */
17871    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17872
17873    /**
17874     * Bring in the given item to list view.
17875     *
17876     * @param item The item.
17877     *
17878     * This causes list to jump to the given item @p item and show it
17879     * (by scrolling), if it is not fully visible.
17880     *
17881     * This may use animation to do so and take a period of time.
17882     *
17883     * If animation isn't wanted, elm_list_item_show() can be used.
17884     *
17885     * @ingroup List
17886     */
17887    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17888
17889    /**
17890     * Delete them item from the list.
17891     *
17892     * @param item The item of list to be deleted.
17893     *
17894     * If deleting all list items is required, elm_list_clear()
17895     * should be used instead of getting items list and deleting each one.
17896     *
17897     * @see elm_list_clear()
17898     * @see elm_list_item_append()
17899     * @see elm_list_item_del_cb_set()
17900     *
17901     * @ingroup List
17902     */
17903    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17904
17905    /**
17906     * Set the function called when a list item is freed.
17907     *
17908     * @param item The item to set the callback on
17909     * @param func The function called
17910     *
17911     * If there is a @p func, then it will be called prior item's memory release.
17912     * That will be called with the following arguments:
17913     * @li item's data;
17914     * @li item's Evas object;
17915     * @li item itself;
17916     *
17917     * This way, a data associated to a list item could be properly freed.
17918     *
17919     * @ingroup List
17920     */
17921    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17922
17923    /**
17924     * Get the data associated to the item.
17925     *
17926     * @param item The list item
17927     * @return The data associated to @p item
17928     *
17929     * The return value is a pointer to data associated to @p item when it was
17930     * created, with function elm_list_item_append() or similar. If no data
17931     * was passed as argument, it will return @c NULL.
17932     *
17933     * @see elm_list_item_append()
17934     *
17935     * @ingroup List
17936     */
17937    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17938
17939    /**
17940     * Get the left side icon associated to the item.
17941     *
17942     * @param item The list item
17943     * @return The left side icon associated to @p item
17944     *
17945     * The return value is a pointer to the icon associated to @p item when
17946     * it was
17947     * created, with function elm_list_item_append() or similar, or later
17948     * with function elm_list_item_icon_set(). If no icon
17949     * was passed as argument, it will return @c NULL.
17950     *
17951     * @see elm_list_item_append()
17952     * @see elm_list_item_icon_set()
17953     *
17954     * @ingroup List
17955     */
17956    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17957
17958    /**
17959     * Set the left side icon associated to the item.
17960     *
17961     * @param item The list item
17962     * @param icon The left side icon object to associate with @p item
17963     *
17964     * The icon object to use at left side of the item. An
17965     * icon can be any Evas object, but usually it is an icon created
17966     * with elm_icon_add().
17967     *
17968     * Once the icon object is set, a previously set one will be deleted.
17969     * @warning Setting the same icon for two items will cause the icon to
17970     * dissapear from the first item.
17971     *
17972     * If an icon was passed as argument on item creation, with function
17973     * elm_list_item_append() or similar, it will be already
17974     * associated to the item.
17975     *
17976     * @see elm_list_item_append()
17977     * @see elm_list_item_icon_get()
17978     *
17979     * @ingroup List
17980     */
17981    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
17982
17983    /**
17984     * Get the right side icon associated to the item.
17985     *
17986     * @param item The list item
17987     * @return The right side icon associated to @p item
17988     *
17989     * The return value is a pointer to the icon associated to @p item when
17990     * it was
17991     * created, with function elm_list_item_append() or similar, or later
17992     * with function elm_list_item_icon_set(). If no icon
17993     * was passed as argument, it will return @c NULL.
17994     *
17995     * @see elm_list_item_append()
17996     * @see elm_list_item_icon_set()
17997     *
17998     * @ingroup List
17999     */
18000    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18001
18002    /**
18003     * Set the right side icon associated to the item.
18004     *
18005     * @param item The list item
18006     * @param end The right side icon object to associate with @p item
18007     *
18008     * The icon object to use at right side of the item. An
18009     * icon can be any Evas object, but usually it is an icon created
18010     * with elm_icon_add().
18011     *
18012     * Once the icon object is set, a previously set one will be deleted.
18013     * @warning Setting the same icon for two items will cause the icon to
18014     * dissapear from the first item.
18015     *
18016     * If an icon was passed as argument on item creation, with function
18017     * elm_list_item_append() or similar, it will be already
18018     * associated to the item.
18019     *
18020     * @see elm_list_item_append()
18021     * @see elm_list_item_end_get()
18022     *
18023     * @ingroup List
18024     */
18025    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
18026
18027    /**
18028     * Gets the base object of the item.
18029     *
18030     * @param item The list item
18031     * @return The base object associated with @p item
18032     *
18033     * Base object is the @c Evas_Object that represents that item.
18034     *
18035     * @ingroup List
18036     */
18037    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18038    EINA_DEPRECATED EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18039
18040    /**
18041     * Get the label of item.
18042     *
18043     * @param item The item of list.
18044     * @return The label of item.
18045     *
18046     * The return value is a pointer to the label associated to @p item when
18047     * it was created, with function elm_list_item_append(), or later
18048     * with function elm_list_item_label_set. If no label
18049     * was passed as argument, it will return @c NULL.
18050     *
18051     * @see elm_list_item_label_set() for more details.
18052     * @see elm_list_item_append()
18053     *
18054     * @ingroup List
18055     */
18056    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18057
18058    /**
18059     * Set the label of item.
18060     *
18061     * @param item The item of list.
18062     * @param text The label of item.
18063     *
18064     * The label to be displayed by the item.
18065     * Label will be placed between left and right side icons (if set).
18066     *
18067     * If a label was passed as argument on item creation, with function
18068     * elm_list_item_append() or similar, it will be already
18069     * displayed by the item.
18070     *
18071     * @see elm_list_item_label_get()
18072     * @see elm_list_item_append()
18073     *
18074     * @ingroup List
18075     */
18076    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
18077
18078    /**
18079     * Get the item before @p it in list.
18080     *
18081     * @param it The list item.
18082     * @return The item before @p it, or @c NULL if none or on failure.
18083     *
18084     * @note If it is the first item, @c NULL will be returned.
18085     *
18086     * @see elm_list_item_append()
18087     * @see elm_list_items_get()
18088     *
18089     * @ingroup List
18090     */
18091    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
18092
18093    /**
18094     * Get the item after @p it in list.
18095     *
18096     * @param it The list item.
18097     * @return The item after @p it, or @c NULL if none or on failure.
18098     *
18099     * @note If it is the last item, @c NULL will be returned.
18100     *
18101     * @see elm_list_item_append()
18102     * @see elm_list_items_get()
18103     *
18104     * @ingroup List
18105     */
18106    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
18107
18108    /**
18109     * Sets the disabled/enabled state of a list item.
18110     *
18111     * @param it The item.
18112     * @param disabled The disabled state.
18113     *
18114     * A disabled item cannot be selected or unselected. It will also
18115     * change its appearance (generally greyed out). This sets the
18116     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
18117     * enabled).
18118     *
18119     * @ingroup List
18120     */
18121    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
18122
18123    /**
18124     * Get a value whether list item is disabled or not.
18125     *
18126     * @param it The item.
18127     * @return The disabled state.
18128     *
18129     * @see elm_list_item_disabled_set() for more details.
18130     *
18131     * @ingroup List
18132     */
18133    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
18134
18135    /**
18136     * Set the text to be shown in a given list item's tooltips.
18137     *
18138     * @param item Target item.
18139     * @param text The text to set in the content.
18140     *
18141     * Setup the text as tooltip to object. The item can have only one tooltip,
18142     * so any previous tooltip data - set with this function or
18143     * elm_list_item_tooltip_content_cb_set() - is removed.
18144     *
18145     * @see elm_object_tooltip_text_set() for more details.
18146     *
18147     * @ingroup List
18148     */
18149    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
18150
18151    /**
18152     * @brief Disable size restrictions on an object's tooltip
18153     * @param item The tooltip's anchor object
18154     * @param disable If EINA_TRUE, size restrictions are disabled
18155     * @return EINA_FALSE on failure, EINA_TRUE on success
18156     *
18157     * This function allows a tooltip to expand beyond its parant window's canvas.
18158     * It will instead be limited only by the size of the display.
18159     */
18160    EAPI Eina_Bool        elm_list_item_tooltip_window_mode_set(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
18161    /**
18162     * @brief Retrieve size restriction state of an object's tooltip
18163     * @param obj The tooltip's anchor object
18164     * @return If EINA_TRUE, size restrictions are disabled
18165     *
18166     * This function returns whether a tooltip is allowed to expand beyond
18167     * its parant window's canvas.
18168     * It will instead be limited only by the size of the display.
18169     */
18170    EAPI Eina_Bool        elm_list_item_tooltip_window_mode_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18171
18172    /**
18173     * Set the content to be shown in the tooltip item.
18174     *
18175     * Setup the tooltip to item. The item can have only one tooltip,
18176     * so any previous tooltip data is removed. @p func(with @p data) will
18177     * be called every time that need show the tooltip and it should
18178     * return a valid Evas_Object. This object is then managed fully by
18179     * tooltip system and is deleted when the tooltip is gone.
18180     *
18181     * @param item the list item being attached a tooltip.
18182     * @param func the function used to create the tooltip contents.
18183     * @param data what to provide to @a func as callback data/context.
18184     * @param del_cb called when data is not needed anymore, either when
18185     *        another callback replaces @a func, the tooltip is unset with
18186     *        elm_list_item_tooltip_unset() or the owner @a item
18187     *        dies. This callback receives as the first parameter the
18188     *        given @a data, and @c event_info is the item.
18189     *
18190     * @see elm_object_tooltip_content_cb_set() for more details.
18191     *
18192     * @ingroup List
18193     */
18194    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);
18195
18196    /**
18197     * Unset tooltip from item.
18198     *
18199     * @param item list item to remove previously set tooltip.
18200     *
18201     * Remove tooltip from item. The callback provided as del_cb to
18202     * elm_list_item_tooltip_content_cb_set() will be called to notify
18203     * it is not used anymore.
18204     *
18205     * @see elm_object_tooltip_unset() for more details.
18206     * @see elm_list_item_tooltip_content_cb_set()
18207     *
18208     * @ingroup List
18209     */
18210    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
18211
18212    /**
18213     * Sets a different style for this item tooltip.
18214     *
18215     * @note before you set a style you should define a tooltip with
18216     *       elm_list_item_tooltip_content_cb_set() or
18217     *       elm_list_item_tooltip_text_set()
18218     *
18219     * @param item list item with tooltip already set.
18220     * @param style the theme style to use (default, transparent, ...)
18221     *
18222     * @see elm_object_tooltip_style_set() for more details.
18223     *
18224     * @ingroup List
18225     */
18226    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
18227
18228    /**
18229     * Get the style for this item tooltip.
18230     *
18231     * @param item list item with tooltip already set.
18232     * @return style the theme style in use, defaults to "default". If the
18233     *         object does not have a tooltip set, then NULL is returned.
18234     *
18235     * @see elm_object_tooltip_style_get() for more details.
18236     * @see elm_list_item_tooltip_style_set()
18237     *
18238     * @ingroup List
18239     */
18240    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18241
18242    /**
18243     * Set the type of mouse pointer/cursor decoration to be shown,
18244     * when the mouse pointer is over the given list widget item
18245     *
18246     * @param item list item to customize cursor on
18247     * @param cursor the cursor type's name
18248     *
18249     * This function works analogously as elm_object_cursor_set(), but
18250     * here the cursor's changing area is restricted to the item's
18251     * area, and not the whole widget's. Note that that item cursors
18252     * have precedence over widget cursors, so that a mouse over an
18253     * item with custom cursor set will always show @b that cursor.
18254     *
18255     * If this function is called twice for an object, a previously set
18256     * cursor will be unset on the second call.
18257     *
18258     * @see elm_object_cursor_set()
18259     * @see elm_list_item_cursor_get()
18260     * @see elm_list_item_cursor_unset()
18261     *
18262     * @ingroup List
18263     */
18264    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
18265
18266    /*
18267     * Get the type of mouse pointer/cursor decoration set to be shown,
18268     * when the mouse pointer is over the given list widget item
18269     *
18270     * @param item list item with custom cursor set
18271     * @return the cursor type's name or @c NULL, if no custom cursors
18272     * were set to @p item (and on errors)
18273     *
18274     * @see elm_object_cursor_get()
18275     * @see elm_list_item_cursor_set()
18276     * @see elm_list_item_cursor_unset()
18277     *
18278     * @ingroup List
18279     */
18280    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18281
18282    /**
18283     * Unset any custom mouse pointer/cursor decoration set to be
18284     * shown, when the mouse pointer is over the given list widget
18285     * item, thus making it show the @b default cursor again.
18286     *
18287     * @param item a list item
18288     *
18289     * Use this call to undo any custom settings on this item's cursor
18290     * decoration, bringing it back to defaults (no custom style set).
18291     *
18292     * @see elm_object_cursor_unset()
18293     * @see elm_list_item_cursor_set()
18294     *
18295     * @ingroup List
18296     */
18297    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
18298
18299    /**
18300     * Set a different @b style for a given custom cursor set for a
18301     * list item.
18302     *
18303     * @param item list item with custom cursor set
18304     * @param style the <b>theme style</b> to use (e.g. @c "default",
18305     * @c "transparent", etc)
18306     *
18307     * This function only makes sense when one is using custom mouse
18308     * cursor decorations <b>defined in a theme file</b>, which can have,
18309     * given a cursor name/type, <b>alternate styles</b> on it. It
18310     * works analogously as elm_object_cursor_style_set(), but here
18311     * applyed only to list item objects.
18312     *
18313     * @warning Before you set a cursor style you should have definen a
18314     *       custom cursor previously on the item, with
18315     *       elm_list_item_cursor_set()
18316     *
18317     * @see elm_list_item_cursor_engine_only_set()
18318     * @see elm_list_item_cursor_style_get()
18319     *
18320     * @ingroup List
18321     */
18322    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
18323
18324    /**
18325     * Get the current @b style set for a given list item's custom
18326     * cursor
18327     *
18328     * @param item list item with custom cursor set.
18329     * @return style the cursor style in use. If the object does not
18330     *         have a cursor set, then @c NULL is returned.
18331     *
18332     * @see elm_list_item_cursor_style_set() for more details
18333     *
18334     * @ingroup List
18335     */
18336    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18337
18338    /**
18339     * Set if the (custom)cursor for a given list item should be
18340     * searched in its theme, also, or should only rely on the
18341     * rendering engine.
18342     *
18343     * @param item item with custom (custom) cursor already set on
18344     * @param engine_only Use @c EINA_TRUE to have cursors looked for
18345     * only on those provided by the rendering engine, @c EINA_FALSE to
18346     * have them searched on the widget's theme, as well.
18347     *
18348     * @note This call is of use only if you've set a custom cursor
18349     * for list items, with elm_list_item_cursor_set().
18350     *
18351     * @note By default, cursors will only be looked for between those
18352     * provided by the rendering engine.
18353     *
18354     * @ingroup List
18355     */
18356    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
18357
18358    /**
18359     * Get if the (custom) cursor for a given list item is being
18360     * searched in its theme, also, or is only relying on the rendering
18361     * engine.
18362     *
18363     * @param item a list item
18364     * @return @c EINA_TRUE, if cursors are being looked for only on
18365     * those provided by the rendering engine, @c EINA_FALSE if they
18366     * are being searched on the widget's theme, as well.
18367     *
18368     * @see elm_list_item_cursor_engine_only_set(), for more details
18369     *
18370     * @ingroup List
18371     */
18372    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18373
18374    /**
18375     * @}
18376     */
18377
18378    /**
18379     * @defgroup Slider Slider
18380     * @ingroup Elementary
18381     *
18382     * @image html img/widget/slider/preview-00.png
18383     * @image latex img/widget/slider/preview-00.eps width=\textwidth
18384     *
18385     * The slider adds a dragable ā€œsliderā€ widget for selecting the value of
18386     * something within a range.
18387     *
18388     * A slider can be horizontal or vertical. It can contain an Icon and has a
18389     * primary label as well as a units label (that is formatted with floating
18390     * point values and thus accepts a printf-style format string, like
18391     * ā€œ%1.2f unitsā€. There is also an indicator string that may be somewhere
18392     * else (like on the slider itself) that also accepts a format string like
18393     * units. Label, Icon Unit and Indicator strings/objects are optional.
18394     *
18395     * A slider may be inverted which means values invert, with high vales being
18396     * on the left or top and low values on the right or bottom (as opposed to
18397     * normally being low on the left or top and high on the bottom and right).
18398     *
18399     * The slider should have its minimum and maximum values set by the
18400     * application with  elm_slider_min_max_set() and value should also be set by
18401     * the application before use with  elm_slider_value_set(). The span of the
18402     * slider is its length (horizontally or vertically). This will be scaled by
18403     * the object or applications scaling factor. At any point code can query the
18404     * slider for its value with elm_slider_value_get().
18405     *
18406     * Smart callbacks one can listen to:
18407     * - "changed" - Whenever the slider value is changed by the user.
18408     * - "slider,drag,start" - dragging the slider indicator around has started.
18409     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
18410     * - "delay,changed" - A short time after the value is changed by the user.
18411     * This will be called only when the user stops dragging for
18412     * a very short period or when they release their
18413     * finger/mouse, so it avoids possibly expensive reactions to
18414     * the value change.
18415     *
18416     * Available styles for it:
18417     * - @c "default"
18418     *
18419     * Default contents parts of the slider widget that you can use for are:
18420     * @li "icon" - An icon of the slider
18421     * @li "end" - A end part content of the slider
18422     *
18423     * Default text parts of the silder widget that you can use for are:
18424     * @li "default" - Label of the silder
18425     * Here is an example on its usage:
18426     * @li @ref slider_example
18427     */
18428
18429    /**
18430     * @addtogroup Slider
18431     * @{
18432     */
18433
18434    /**
18435     * Add a new slider widget to the given parent Elementary
18436     * (container) object.
18437     *
18438     * @param parent The parent object.
18439     * @return a new slider widget handle or @c NULL, on errors.
18440     *
18441     * This function inserts a new slider widget on the canvas.
18442     *
18443     * @ingroup Slider
18444     */
18445    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18446
18447    /**
18448     * Set the label of a given slider widget
18449     *
18450     * @param obj The progress bar object
18451     * @param label The text label string, in UTF-8
18452     *
18453     * @ingroup Slider
18454     * @deprecated use elm_object_text_set() instead.
18455     */
18456    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18457
18458    /**
18459     * Get the label of a given slider widget
18460     *
18461     * @param obj The progressbar object
18462     * @return The text label string, in UTF-8
18463     *
18464     * @ingroup Slider
18465     * @deprecated use elm_object_text_get() instead.
18466     */
18467    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18468
18469    /**
18470     * Set the icon object of the slider object.
18471     *
18472     * @param obj The slider object.
18473     * @param icon The icon object.
18474     *
18475     * On horizontal mode, icon is placed at left, and on vertical mode,
18476     * placed at top.
18477     *
18478     * @note Once the icon object is set, a previously set one will be deleted.
18479     * If you want to keep that old content object, use the
18480     * elm_slider_icon_unset() function.
18481     *
18482     * @warning If the object being set does not have minimum size hints set,
18483     * it won't get properly displayed.
18484     *
18485     * @ingroup Slider
18486     * @deprecated use elm_object_part_content_set() instead.
18487     */
18488    EINA_DEPRECATED EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18489
18490    /**
18491     * Unset an icon set on a given slider widget.
18492     *
18493     * @param obj The slider object.
18494     * @return The icon object that was being used, if any was set, or
18495     * @c NULL, otherwise (and on errors).
18496     *
18497     * On horizontal mode, icon is placed at left, and on vertical mode,
18498     * placed at top.
18499     *
18500     * This call will unparent and return the icon object which was set
18501     * for this widget, previously, on success.
18502     *
18503     * @see elm_slider_icon_set() for more details
18504     * @see elm_slider_icon_get()
18505     * @deprecated use elm_object_part_content_unset() instead.
18506     *
18507     * @ingroup Slider
18508     */
18509    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18510
18511    /**
18512     * Retrieve the icon object set for a given slider widget.
18513     *
18514     * @param obj The slider object.
18515     * @return The icon object's handle, if @p obj had one set, or @c NULL,
18516     * otherwise (and on errors).
18517     *
18518     * On horizontal mode, icon is placed at left, and on vertical mode,
18519     * placed at top.
18520     *
18521     * @see elm_slider_icon_set() for more details
18522     * @see elm_slider_icon_unset()
18523     *
18524     * @deprecated use elm_object_part_content_get() instead.
18525     *
18526     * @ingroup Slider
18527     */
18528    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18529
18530    /**
18531     * Set the end object of the slider object.
18532     *
18533     * @param obj The slider object.
18534     * @param end The end object.
18535     *
18536     * On horizontal mode, end is placed at left, and on vertical mode,
18537     * placed at bottom.
18538     *
18539     * @note Once the icon object is set, a previously set one will be deleted.
18540     * If you want to keep that old content object, use the
18541     * elm_slider_end_unset() function.
18542     *
18543     * @warning If the object being set does not have minimum size hints set,
18544     * it won't get properly displayed.
18545     *
18546     * @deprecated use elm_object_part_content_set() instead.
18547     *
18548     * @ingroup Slider
18549     */
18550    EINA_DEPRECATED EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
18551
18552    /**
18553     * Unset an end object set on a given slider widget.
18554     *
18555     * @param obj The slider object.
18556     * @return The end object that was being used, if any was set, or
18557     * @c NULL, otherwise (and on errors).
18558     *
18559     * On horizontal mode, end is placed at left, and on vertical mode,
18560     * placed at bottom.
18561     *
18562     * This call will unparent and return the icon object which was set
18563     * for this widget, previously, on success.
18564     *
18565     * @see elm_slider_end_set() for more details.
18566     * @see elm_slider_end_get()
18567     *
18568     * @deprecated use elm_object_part_content_unset() instead
18569     * instead.
18570     *
18571     * @ingroup Slider
18572     */
18573    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18574
18575    /**
18576     * Retrieve the end object set for a given slider widget.
18577     *
18578     * @param obj The slider object.
18579     * @return The end object's handle, if @p obj had one set, or @c NULL,
18580     * otherwise (and on errors).
18581     *
18582     * On horizontal mode, icon is placed at right, and on vertical mode,
18583     * placed at bottom.
18584     *
18585     * @see elm_slider_end_set() for more details.
18586     * @see elm_slider_end_unset()
18587     *
18588     *
18589     * @deprecated use elm_object_part_content_get() instead
18590     * instead.
18591     *
18592     * @ingroup Slider
18593     */
18594    EINA_DEPRECATED EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18595
18596    /**
18597     * Set the (exact) length of the bar region of a given slider widget.
18598     *
18599     * @param obj The slider object.
18600     * @param size The length of the slider's bar region.
18601     *
18602     * This sets the minimum width (when in horizontal mode) or height
18603     * (when in vertical mode) of the actual bar area of the slider
18604     * @p obj. This in turn affects the object's minimum size. Use
18605     * this when you're not setting other size hints expanding on the
18606     * given direction (like weight and alignment hints) and you would
18607     * like it to have a specific size.
18608     *
18609     * @note Icon, end, label, indicator and unit text around @p obj
18610     * will require their
18611     * own space, which will make @p obj to require more the @p size,
18612     * actually.
18613     *
18614     * @see elm_slider_span_size_get()
18615     *
18616     * @ingroup Slider
18617     */
18618    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
18619
18620    /**
18621     * Get the length set for the bar region of a given slider widget
18622     *
18623     * @param obj The slider object.
18624     * @return The length of the slider's bar region.
18625     *
18626     * If that size was not set previously, with
18627     * elm_slider_span_size_set(), this call will return @c 0.
18628     *
18629     * @ingroup Slider
18630     */
18631    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18632
18633    /**
18634     * Set the format string for the unit label.
18635     *
18636     * @param obj The slider object.
18637     * @param format The format string for the unit display.
18638     *
18639     * Unit label is displayed all the time, if set, after slider's bar.
18640     * In horizontal mode, at right and in vertical mode, at bottom.
18641     *
18642     * If @c NULL, unit label won't be visible. If not it sets the format
18643     * string for the label text. To the label text is provided a floating point
18644     * value, so the label text can display up to 1 floating point value.
18645     * Note that this is optional.
18646     *
18647     * Use a format string such as "%1.2f meters" for example, and it will
18648     * display values like: "3.14 meters" for a value equal to 3.14159.
18649     *
18650     * Default is unit label disabled.
18651     *
18652     * @see elm_slider_indicator_format_get()
18653     *
18654     * @ingroup Slider
18655     */
18656    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
18657
18658    /**
18659     * Get the unit label format of the slider.
18660     *
18661     * @param obj The slider object.
18662     * @return The unit label format string in UTF-8.
18663     *
18664     * Unit label is displayed all the time, if set, after slider's bar.
18665     * In horizontal mode, at right and in vertical mode, at bottom.
18666     *
18667     * @see elm_slider_unit_format_set() for more
18668     * information on how this works.
18669     *
18670     * @ingroup Slider
18671     */
18672    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18673
18674    /**
18675     * Set the format string for the indicator label.
18676     *
18677     * @param obj The slider object.
18678     * @param indicator The format string for the indicator display.
18679     *
18680     * The slider may display its value somewhere else then unit label,
18681     * for example, above the slider knob that is dragged around. This function
18682     * sets the format string used for this.
18683     *
18684     * If @c NULL, indicator label won't be visible. If not it sets the format
18685     * string for the label text. To the label text is provided a floating point
18686     * value, so the label text can display up to 1 floating point value.
18687     * Note that this is optional.
18688     *
18689     * Use a format string such as "%1.2f meters" for example, and it will
18690     * display values like: "3.14 meters" for a value equal to 3.14159.
18691     *
18692     * Default is indicator label disabled.
18693     *
18694     * @see elm_slider_indicator_format_get()
18695     *
18696     * @ingroup Slider
18697     */
18698    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
18699
18700    /**
18701     * Get the indicator label format of the slider.
18702     *
18703     * @param obj The slider object.
18704     * @return The indicator label format string in UTF-8.
18705     *
18706     * The slider may display its value somewhere else then unit label,
18707     * for example, above the slider knob that is dragged around. This function
18708     * gets the format string used for this.
18709     *
18710     * @see elm_slider_indicator_format_set() for more
18711     * information on how this works.
18712     *
18713     * @ingroup Slider
18714     */
18715    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18716
18717    /**
18718     * Set the format function pointer for the indicator label
18719     *
18720     * @param obj The slider object.
18721     * @param func The indicator format function.
18722     * @param free_func The freeing function for the format string.
18723     *
18724     * Set the callback function to format the indicator string.
18725     *
18726     * @see elm_slider_indicator_format_set() for more info on how this works.
18727     *
18728     * @ingroup Slider
18729     */
18730   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);
18731
18732   /**
18733    * Set the format function pointer for the units label
18734    *
18735    * @param obj The slider object.
18736    * @param func The units format function.
18737    * @param free_func The freeing function for the format string.
18738    *
18739    * Set the callback function to format the indicator string.
18740    *
18741    * @see elm_slider_units_format_set() for more info on how this works.
18742    *
18743    * @ingroup Slider
18744    */
18745   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);
18746
18747   /**
18748    * Set the orientation of a given slider widget.
18749    *
18750    * @param obj The slider object.
18751    * @param horizontal Use @c EINA_TRUE to make @p obj to be
18752    * @b horizontal, @c EINA_FALSE to make it @b vertical.
18753    *
18754    * Use this function to change how your slider is to be
18755    * disposed: vertically or horizontally.
18756    *
18757    * By default it's displayed horizontally.
18758    *
18759    * @see elm_slider_horizontal_get()
18760    *
18761    * @ingroup Slider
18762    */
18763    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
18764
18765    /**
18766     * Retrieve the orientation of a given slider widget
18767     *
18768     * @param obj The slider object.
18769     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
18770     * @c EINA_FALSE if it's @b vertical (and on errors).
18771     *
18772     * @see elm_slider_horizontal_set() for more details.
18773     *
18774     * @ingroup Slider
18775     */
18776    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18777
18778    /**
18779     * Set the minimum and maximum values for the slider.
18780     *
18781     * @param obj The slider object.
18782     * @param min The minimum value.
18783     * @param max The maximum value.
18784     *
18785     * Define the allowed range of values to be selected by the user.
18786     *
18787     * If actual value is less than @p min, it will be updated to @p min. If it
18788     * is bigger then @p max, will be updated to @p max. Actual value can be
18789     * get with elm_slider_value_get().
18790     *
18791     * By default, min is equal to 0.0, and max is equal to 1.0.
18792     *
18793     * @warning Maximum must be greater than minimum, otherwise behavior
18794     * is undefined.
18795     *
18796     * @see elm_slider_min_max_get()
18797     *
18798     * @ingroup Slider
18799     */
18800    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
18801
18802    /**
18803     * Get the minimum and maximum values of the slider.
18804     *
18805     * @param obj The slider object.
18806     * @param min Pointer where to store the minimum value.
18807     * @param max Pointer where to store the maximum value.
18808     *
18809     * @note If only one value is needed, the other pointer can be passed
18810     * as @c NULL.
18811     *
18812     * @see elm_slider_min_max_set() for details.
18813     *
18814     * @ingroup Slider
18815     */
18816    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
18817
18818    /**
18819     * Set the value the slider displays.
18820     *
18821     * @param obj The slider object.
18822     * @param val The value to be displayed.
18823     *
18824     * Value will be presented on the unit label following format specified with
18825     * elm_slider_unit_format_set() and on indicator with
18826     * elm_slider_indicator_format_set().
18827     *
18828     * @warning The value must to be between min and max values. This values
18829     * are set by elm_slider_min_max_set().
18830     *
18831     * @see elm_slider_value_get()
18832     * @see elm_slider_unit_format_set()
18833     * @see elm_slider_indicator_format_set()
18834     * @see elm_slider_min_max_set()
18835     *
18836     * @ingroup Slider
18837     */
18838    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
18839
18840    /**
18841     * Get the value displayed by the spinner.
18842     *
18843     * @param obj The spinner object.
18844     * @return The value displayed.
18845     *
18846     * @see elm_spinner_value_set() for details.
18847     *
18848     * @ingroup Slider
18849     */
18850    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18851
18852    /**
18853     * Invert a given slider widget's displaying values order
18854     *
18855     * @param obj The slider object.
18856     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
18857     * @c EINA_FALSE to bring it back to default, non-inverted values.
18858     *
18859     * A slider may be @b inverted, in which state it gets its
18860     * values inverted, with high vales being on the left or top and
18861     * low values on the right or bottom, as opposed to normally have
18862     * the low values on the former and high values on the latter,
18863     * respectively, for horizontal and vertical modes.
18864     *
18865     * @see elm_slider_inverted_get()
18866     *
18867     * @ingroup Slider
18868     */
18869    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
18870
18871    /**
18872     * Get whether a given slider widget's displaying values are
18873     * inverted or not.
18874     *
18875     * @param obj The slider object.
18876     * @return @c EINA_TRUE, if @p obj has inverted values,
18877     * @c EINA_FALSE otherwise (and on errors).
18878     *
18879     * @see elm_slider_inverted_set() for more details.
18880     *
18881     * @ingroup Slider
18882     */
18883    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18884
18885    /**
18886     * Set whether to enlarge slider indicator (augmented knob) or not.
18887     *
18888     * @param obj The slider object.
18889     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
18890     * let the knob always at default size.
18891     *
18892     * By default, indicator will be bigger while dragged by the user.
18893     *
18894     * @warning It won't display values set with
18895     * elm_slider_indicator_format_set() if you disable indicator.
18896     *
18897     * @ingroup Slider
18898     */
18899    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
18900
18901    /**
18902     * Get whether a given slider widget's enlarging indicator or not.
18903     *
18904     * @param obj The slider object.
18905     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
18906     * @c EINA_FALSE otherwise (and on errors).
18907     *
18908     * @see elm_slider_indicator_show_set() for details.
18909     *
18910     * @ingroup Slider
18911     */
18912    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18913
18914    /**
18915     * @}
18916     */
18917
18918    /**
18919     * @addtogroup Actionslider Actionslider
18920     *
18921     * @image html img/widget/actionslider/preview-00.png
18922     * @image latex img/widget/actionslider/preview-00.eps
18923     *
18924     * An actionslider is a switcher for 2 or 3 labels with customizable magnet
18925     * properties. The user drags and releases the indicator, to choose a label.
18926     *
18927     * Labels occupy the following positions.
18928     * a. Left
18929     * b. Right
18930     * c. Center
18931     *
18932     * Positions can be enabled or disabled.
18933     *
18934     * Magnets can be set on the above positions.
18935     *
18936     * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
18937     *
18938     * @note By default all positions are set as enabled.
18939     *
18940     * Signals that you can add callbacks for are:
18941     *
18942     * "selected" - when user selects an enabled position (the label is passed
18943     *              as event info)".
18944     * @n
18945     * "pos_changed" - when the indicator reaches any of the positions("left",
18946     *                 "right" or "center").
18947     *
18948     * See an example of actionslider usage @ref actionslider_example_page "here"
18949     * @{
18950     */
18951    typedef enum _Elm_Actionslider_Pos
18952      {
18953         ELM_ACTIONSLIDER_NONE = 0,
18954         ELM_ACTIONSLIDER_LEFT = 1 << 0,
18955         ELM_ACTIONSLIDER_CENTER = 1 << 1,
18956         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
18957         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
18958      } Elm_Actionslider_Pos;
18959
18960    /**
18961     * Add a new actionslider to the parent.
18962     *
18963     * @param parent The parent object
18964     * @return The new actionslider object or NULL if it cannot be created
18965     */
18966    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18967
18968    /**
18969     * Set actionslider labels.
18970     *
18971     * @param obj The actionslider object
18972     * @param left_label The label to be set on the left.
18973     * @param center_label The label to be set on the center.
18974     * @param right_label The label to be set on the right.
18975     * @deprecated use elm_object_text_set() instead.
18976     */
18977    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);
18978
18979    /**
18980     * Get actionslider labels.
18981     *
18982     * @param obj The actionslider object
18983     * @param left_label A char** to place the left_label of @p obj into.
18984     * @param center_label A char** to place the center_label of @p obj into.
18985     * @param right_label A char** to place the right_label of @p obj into.
18986     * @deprecated use elm_object_text_set() instead.
18987     */
18988    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);
18989
18990    /**
18991     * Get actionslider selected label.
18992     *
18993     * @param obj The actionslider object
18994     * @return The selected label
18995     */
18996    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18997
18998    /**
18999     * Set actionslider indicator position.
19000     *
19001     * @param obj The actionslider object.
19002     * @param pos The position of the indicator.
19003     */
19004    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
19005
19006    /**
19007     * Get actionslider indicator position.
19008     *
19009     * @param obj The actionslider object.
19010     * @return The position of the indicator.
19011     */
19012    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19013
19014    /**
19015     * Set actionslider magnet position. To make multiple positions magnets @c or
19016     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
19017     *
19018     * @param obj The actionslider object.
19019     * @param pos Bit mask indicating the magnet positions.
19020     */
19021    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
19022
19023    /**
19024     * Get actionslider magnet position.
19025     *
19026     * @param obj The actionslider object.
19027     * @return The positions with magnet property.
19028     */
19029    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19030
19031    /**
19032     * Set actionslider enabled position. To set multiple positions as enabled @c or
19033     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
19034     *
19035     * @note All the positions are enabled by default.
19036     *
19037     * @param obj The actionslider object.
19038     * @param pos Bit mask indicating the enabled positions.
19039     */
19040    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
19041
19042    /**
19043     * Get actionslider enabled position.
19044     *
19045     * @param obj The actionslider object.
19046     * @return The enabled positions.
19047     */
19048    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19049
19050    /**
19051     * Set the label used on the indicator.
19052     *
19053     * @param obj The actionslider object
19054     * @param label The label to be set on the indicator.
19055     * @deprecated use elm_object_text_set() instead.
19056     */
19057    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19058
19059    /**
19060     * Get the label used on the indicator object.
19061     *
19062     * @param obj The actionslider object
19063     * @return The indicator label
19064     * @deprecated use elm_object_text_get() instead.
19065     */
19066    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
19067
19068    /**
19069     * @}
19070     */
19071
19072    /**
19073     * @defgroup Genlist Genlist
19074     *
19075     * @image html img/widget/genlist/preview-00.png
19076     * @image latex img/widget/genlist/preview-00.eps
19077     * @image html img/genlist.png
19078     * @image latex img/genlist.eps
19079     *
19080     * This widget aims to have more expansive list than the simple list in
19081     * Elementary that could have more flexible items and allow many more entries
19082     * while still being fast and low on memory usage. At the same time it was
19083     * also made to be able to do tree structures. But the price to pay is more
19084     * complexity when it comes to usage. If all you want is a simple list with
19085     * icons and a single text, use the normal @ref List object.
19086     *
19087     * Genlist has a fairly large API, mostly because it's relatively complex,
19088     * trying to be both expansive, powerful and efficient. First we will begin
19089     * an overview on the theory behind genlist.
19090     *
19091     * @section Genlist_Item_Class Genlist item classes - creating items
19092     *
19093     * In order to have the ability to add and delete items on the fly, genlist
19094     * implements a class (callback) system where the application provides a
19095     * structure with information about that type of item (genlist may contain
19096     * multiple different items with different classes, states and styles).
19097     * Genlist will call the functions in this struct (methods) when an item is
19098     * "realized" (i.e., created dynamically, while the user is scrolling the
19099     * grid). All objects will simply be deleted when no longer needed with
19100     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
19101     * following members:
19102     * - @c item_style - This is a constant string and simply defines the name
19103     *   of the item style. It @b must be specified and the default should be @c
19104     *   "default".
19105     *
19106     * - @c func - A struct with pointers to functions that will be called when
19107     *   an item is going to be actually created. All of them receive a @c data
19108     *   parameter that will point to the same data passed to
19109     *   elm_genlist_item_append() and related item creation functions, and a @c
19110     *   obj parameter that points to the genlist object itself.
19111     *
19112     * The function pointers inside @c func are @c text_get, @c content_get, @c
19113     * state_get and @c del. The 3 first functions also receive a @c part
19114     * parameter described below. A brief description of these functions follows:
19115     *
19116     * - @c text_get - The @c part parameter is the name string of one of the
19117     *   existing text parts in the Edje group implementing the item's theme.
19118     *   This function @b must return a strdup'()ed string, as the caller will
19119     *   free() it when done. See #Elm_Genlist_Item_Text_Get_Cb.
19120     * - @c content_get - The @c part parameter is the name string of one of the
19121     *   existing (content) swallow parts in the Edje group implementing the item's
19122     *   theme. It must return @c NULL, when no content is desired, or a valid
19123     *   object handle, otherwise.  The object will be deleted by the genlist on
19124     *   its deletion or when the item is "unrealized".  See
19125     *   #Elm_Genlist_Item_Content_Get_Cb.
19126     * - @c func.state_get - The @c part parameter is the name string of one of
19127     *   the state parts in the Edje group implementing the item's theme. Return
19128     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
19129     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
19130     *   and @c "elm" as "emission" and "source" arguments, respectively, when
19131     *   the state is true (the default is false), where @c XXX is the name of
19132     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
19133     * - @c func.del - This is intended for use when genlist items are deleted,
19134     *   so any data attached to the item (e.g. its data parameter on creation)
19135     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
19136     *
19137     * available item styles:
19138     * - default
19139     * - default_style - The text part is a textblock
19140     *
19141     * @image html img/widget/genlist/preview-04.png
19142     * @image latex img/widget/genlist/preview-04.eps
19143     *
19144     * - double_label
19145     *
19146     * @image html img/widget/genlist/preview-01.png
19147     * @image latex img/widget/genlist/preview-01.eps
19148     *
19149     * - icon_top_text_bottom
19150     *
19151     * @image html img/widget/genlist/preview-02.png
19152     * @image latex img/widget/genlist/preview-02.eps
19153     *
19154     * - group_index
19155     *
19156     * @image html img/widget/genlist/preview-03.png
19157     * @image latex img/widget/genlist/preview-03.eps
19158     *
19159     * @section Genlist_Items Structure of items
19160     *
19161     * An item in a genlist can have 0 or more texts (they can be regular
19162     * text or textblock Evas objects - that's up to the style to determine), 0
19163     * or more contents (which are simply objects swallowed into the genlist item's
19164     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
19165     * behavior left to the user to define. The Edje part names for each of
19166     * these properties will be looked up, in the theme file for the genlist,
19167     * under the Edje (string) data items named @c "labels", @c "contents" and @c
19168     * "states", respectively. For each of those properties, if more than one
19169     * part is provided, they must have names listed separated by spaces in the
19170     * data fields. For the default genlist item theme, we have @b one text 
19171     * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
19172     * "elm.swallow.end") and @b no state parts.
19173     *
19174     * A genlist item may be at one of several styles. Elementary provides one
19175     * by default - "default", but this can be extended by system or application
19176     * custom themes/overlays/extensions (see @ref Theme "themes" for more
19177     * details).
19178     *
19179     * @section Genlist_Manipulation Editing and Navigating
19180     *
19181     * Items can be added by several calls. All of them return a @ref
19182     * Elm_Genlist_Item handle that is an internal member inside the genlist.
19183     * They all take a data parameter that is meant to be used for a handle to
19184     * the applications internal data (eg the struct with the original item
19185     * data). The parent parameter is the parent genlist item this belongs to if
19186     * it is a tree or an indexed group, and NULL if there is no parent. The
19187     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
19188     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
19189     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
19190     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
19191     * is set then this item is group index item that is displayed at the top
19192     * until the next group comes. The func parameter is a convenience callback
19193     * that is called when the item is selected and the data parameter will be
19194     * the func_data parameter, obj be the genlist object and event_info will be
19195     * the genlist item.
19196     *
19197     * elm_genlist_item_append() adds an item to the end of the list, or if
19198     * there is a parent, to the end of all the child items of the parent.
19199     * elm_genlist_item_prepend() is the same but adds to the beginning of
19200     * the list or children list. elm_genlist_item_insert_before() inserts at
19201     * item before another item and elm_genlist_item_insert_after() inserts after
19202     * the indicated item.
19203     *
19204     * The application can clear the list with elm_genlist_clear() which deletes
19205     * all the items in the list and elm_genlist_item_del() will delete a specific
19206     * item. elm_genlist_item_subitems_clear() will clear all items that are
19207     * children of the indicated parent item.
19208     *
19209     * To help inspect list items you can jump to the item at the top of the list
19210     * with elm_genlist_first_item_get() which will return the item pointer, and
19211     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
19212     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
19213     * and previous items respectively relative to the indicated item. Using
19214     * these calls you can walk the entire item list/tree. Note that as a tree
19215     * the items are flattened in the list, so elm_genlist_item_parent_get() will
19216     * let you know which item is the parent (and thus know how to skip them if
19217     * wanted).
19218     *
19219     * @section Genlist_Muti_Selection Multi-selection
19220     *
19221     * If the application wants multiple items to be able to be selected,
19222     * elm_genlist_multi_select_set() can enable this. If the list is
19223     * single-selection only (the default), then elm_genlist_selected_item_get()
19224     * will return the selected item, if any, or NULL if none is selected. If the
19225     * list is multi-select then elm_genlist_selected_items_get() will return a
19226     * list (that is only valid as long as no items are modified (added, deleted,
19227     * selected or unselected)).
19228     *
19229     * @section Genlist_Usage_Hints Usage hints
19230     *
19231     * There are also convenience functions. elm_genlist_item_genlist_get() will
19232     * return the genlist object the item belongs to. elm_genlist_item_show()
19233     * will make the scroller scroll to show that specific item so its visible.
19234     * elm_genlist_item_data_get() returns the data pointer set by the item
19235     * creation functions.
19236     *
19237     * If an item changes (state of boolean changes, text or contents change),
19238     * then use elm_genlist_item_update() to have genlist update the item with
19239     * the new state. Genlist will re-realize the item thus call the functions
19240     * in the _Elm_Genlist_Item_Class for that item.
19241     *
19242     * To programmatically (un)select an item use elm_genlist_item_selected_set().
19243     * To get its selected state use elm_genlist_item_selected_get(). Similarly
19244     * to expand/contract an item and get its expanded state, use
19245     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
19246     * again to make an item disabled (unable to be selected and appear
19247     * differently) use elm_genlist_item_disabled_set() to set this and
19248     * elm_genlist_item_disabled_get() to get the disabled state.
19249     *
19250     * In general to indicate how the genlist should expand items horizontally to
19251     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
19252     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
19253     * mode means that if items are too wide to fit, the scroller will scroll
19254     * horizontally. Otherwise items are expanded to fill the width of the
19255     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
19256     * to the viewport width and limited to that size. This can be combined with
19257     * a different style that uses edjes' ellipsis feature (cutting text off like
19258     * this: "tex...").
19259     *
19260     * Items will only call their selection func and callback when first becoming
19261     * selected. Any further clicks will do nothing, unless you enable always
19262     * select with elm_genlist_always_select_mode_set(). This means even if
19263     * selected, every click will make the selected callbacks be called.
19264     * elm_genlist_no_select_mode_set() will turn off the ability to select
19265     * items entirely and they will neither appear selected nor call selected
19266     * callback functions.
19267     *
19268     * Remember that you can create new styles and add your own theme augmentation
19269     * per application with elm_theme_extension_add(). If you absolutely must
19270     * have a specific style that overrides any theme the user or system sets up
19271     * you can use elm_theme_overlay_add() to add such a file.
19272     *
19273     * @section Genlist_Implementation Implementation
19274     *
19275     * Evas tracks every object you create. Every time it processes an event
19276     * (mouse move, down, up etc.) it needs to walk through objects and find out
19277     * what event that affects. Even worse every time it renders display updates,
19278     * in order to just calculate what to re-draw, it needs to walk through many
19279     * many many objects. Thus, the more objects you keep active, the more
19280     * overhead Evas has in just doing its work. It is advisable to keep your
19281     * active objects to the minimum working set you need. Also remember that
19282     * object creation and deletion carries an overhead, so there is a
19283     * middle-ground, which is not easily determined. But don't keep massive lists
19284     * of objects you can't see or use. Genlist does this with list objects. It
19285     * creates and destroys them dynamically as you scroll around. It groups them
19286     * into blocks so it can determine the visibility etc. of a whole block at
19287     * once as opposed to having to walk the whole list. This 2-level list allows
19288     * for very large numbers of items to be in the list (tests have used up to
19289     * 2,000,000 items). Also genlist employs a queue for adding items. As items
19290     * may be different sizes, every item added needs to be calculated as to its
19291     * size and thus this presents a lot of overhead on populating the list, this
19292     * genlist employs a queue. Any item added is queued and spooled off over
19293     * time, actually appearing some time later, so if your list has many members
19294     * you may find it takes a while for them to all appear, with your process
19295     * consuming a lot of CPU while it is busy spooling.
19296     *
19297     * Genlist also implements a tree structure, but it does so with callbacks to
19298     * the application, with the application filling in tree structures when
19299     * requested (allowing for efficient building of a very deep tree that could
19300     * even be used for file-management). See the above smart signal callbacks for
19301     * details.
19302     *
19303     * @section Genlist_Smart_Events Genlist smart events
19304     *
19305     * Signals that you can add callbacks for are:
19306     * - @c "activated" - The user has double-clicked or pressed
19307     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
19308     *   item that was activated.
19309     * - @c "clicked,double" - The user has double-clicked an item.  The @c
19310     *   event_info parameter is the item that was double-clicked.
19311     * - @c "selected" - This is called when a user has made an item selected.
19312     *   The event_info parameter is the genlist item that was selected.
19313     * - @c "unselected" - This is called when a user has made an item
19314     *   unselected. The event_info parameter is the genlist item that was
19315     *   unselected.
19316     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
19317     *   called and the item is now meant to be expanded. The event_info
19318     *   parameter is the genlist item that was indicated to expand.  It is the
19319     *   job of this callback to then fill in the child items.
19320     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
19321     *   called and the item is now meant to be contracted. The event_info
19322     *   parameter is the genlist item that was indicated to contract. It is the
19323     *   job of this callback to then delete the child items.
19324     * - @c "expand,request" - This is called when a user has indicated they want
19325     *   to expand a tree branch item. The callback should decide if the item can
19326     *   expand (has any children) and then call elm_genlist_item_expanded_set()
19327     *   appropriately to set the state. The event_info parameter is the genlist
19328     *   item that was indicated to expand.
19329     * - @c "contract,request" - This is called when a user has indicated they
19330     *   want to contract a tree branch item. The callback should decide if the
19331     *   item can contract (has any children) and then call
19332     *   elm_genlist_item_expanded_set() appropriately to set the state. The
19333     *   event_info parameter is the genlist item that was indicated to contract.
19334     * - @c "realized" - This is called when the item in the list is created as a
19335     *   real evas object. event_info parameter is the genlist item that was
19336     *   created. The object may be deleted at any time, so it is up to the
19337     *   caller to not use the object pointer from elm_genlist_item_object_get()
19338     *   in a way where it may point to freed objects.
19339     * - @c "unrealized" - This is called just before an item is unrealized.
19340     *   After this call content objects provided will be deleted and the item
19341     *   object itself delete or be put into a floating cache.
19342     * - @c "drag,start,up" - This is called when the item in the list has been
19343     *   dragged (not scrolled) up.
19344     * - @c "drag,start,down" - This is called when the item in the list has been
19345     *   dragged (not scrolled) down.
19346     * - @c "drag,start,left" - This is called when the item in the list has been
19347     *   dragged (not scrolled) left.
19348     * - @c "drag,start,right" - This is called when the item in the list has
19349     *   been dragged (not scrolled) right.
19350     * - @c "drag,stop" - This is called when the item in the list has stopped
19351     *   being dragged.
19352     * - @c "drag" - This is called when the item in the list is being dragged.
19353     * - @c "longpressed" - This is called when the item is pressed for a certain
19354     *   amount of time. By default it's 1 second.
19355     * - @c "scroll,anim,start" - This is called when scrolling animation has
19356     *   started.
19357     * - @c "scroll,anim,stop" - This is called when scrolling animation has
19358     *   stopped.
19359     * - @c "scroll,drag,start" - This is called when dragging the content has
19360     *   started.
19361     * - @c "scroll,drag,stop" - This is called when dragging the content has
19362     *   stopped.
19363     * - @c "edge,top" - This is called when the genlist is scrolled until
19364     *   the top edge.
19365     * - @c "edge,bottom" - This is called when the genlist is scrolled
19366     *   until the bottom edge.
19367     * - @c "edge,left" - This is called when the genlist is scrolled
19368     *   until the left edge.
19369     * - @c "edge,right" - This is called when the genlist is scrolled
19370     *   until the right edge.
19371     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
19372     *   swiped left.
19373     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
19374     *   swiped right.
19375     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
19376     *   swiped up.
19377     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
19378     *   swiped down.
19379     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
19380     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
19381     *   multi-touch pinched in.
19382     * - @c "swipe" - This is called when the genlist is swiped.
19383     * - @c "moved" - This is called when a genlist item is moved.
19384     * - @c "language,changed" - This is called when the program's language is
19385     *   changed.
19386     *
19387     * @section Genlist_Examples Examples
19388     *
19389     * Here is a list of examples that use the genlist, trying to show some of
19390     * its capabilities:
19391     * - @ref genlist_example_01
19392     * - @ref genlist_example_02
19393     * - @ref genlist_example_03
19394     * - @ref genlist_example_04
19395     * - @ref genlist_example_05
19396     */
19397
19398    /**
19399     * @addtogroup Genlist
19400     * @{
19401     */
19402
19403    /**
19404     * @enum _Elm_Genlist_Item_Flags
19405     * @typedef Elm_Genlist_Item_Flags
19406     *
19407     * Defines if the item is of any special type (has subitems or it's the
19408     * index of a group), or is just a simple item.
19409     *
19410     * @ingroup Genlist
19411     */
19412    typedef enum _Elm_Genlist_Item_Flags
19413      {
19414         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
19415         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
19416         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
19417      } Elm_Genlist_Item_Flags;
19418    typedef enum _Elm_Genlist_Item_Field_Flags
19419      {
19420         ELM_GENLIST_ITEM_FIELD_ALL = 0,
19421         ELM_GENLIST_ITEM_FIELD_LABEL = (1 << 0),
19422         ELM_GENLIST_ITEM_FIELD_CONTENT = (1 << 1),
19423         ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2)
19424      } Elm_Genlist_Item_Field_Flags;
19425    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
19426    #define Elm_Genlist_Item_Class Elm_Gen_Item_Class
19427    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
19428    #define Elm_Genlist_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
19429    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
19430
19431    /**
19432     * Text fetching class function for Elm_Gen_Item_Class.
19433     * @param data The data passed in the item creation function
19434     * @param obj The base widget object
19435     * @param part The part name of the swallow
19436     * @return The allocated (NOT stringshared) string to set as the text
19437     */
19438    typedef char        *(*Elm_Genlist_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part);
19439
19440    /**
19441     * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
19442     * @param data The data passed in the item creation function
19443     * @param obj The base widget object
19444     * @param part The part name of the swallow
19445     * @return The content object to swallow
19446     */
19447    typedef Evas_Object *(*Elm_Genlist_Item_Content_Get_Cb)  (void *data, Evas_Object *obj, const char *part);
19448
19449    /**
19450     * State fetching class function for Elm_Gen_Item_Class.
19451     * @param data The data passed in the item creation function
19452     * @param obj The base widget object
19453     * @param part The part name of the swallow
19454     * @return The hell if I know
19455     */
19456    typedef Eina_Bool    (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
19457
19458    /**
19459     * Deletion class function for Elm_Gen_Item_Class.
19460     * @param data The data passed in the item creation function
19461     * @param obj The base widget object
19462     */
19463    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj);
19464
19465    /**
19466     * @struct _Elm_Genlist_Item_Class
19467     *
19468     * Genlist item class definition structs.
19469     *
19470     * This struct contains the style and fetching functions that will define the
19471     * contents of each item.
19472     *
19473     * @see @ref Genlist_Item_Class
19474     */
19475    struct _Elm_Genlist_Item_Class
19476      {
19477         const char                *item_style; /**< style of this class. */
19478         struct Elm_Genlist_Item_Class_Func
19479           {
19480              Elm_Genlist_Item_Text_Get_Cb    text_get; /**< Text fetching class function for genlist item classes.*/
19481              Elm_Genlist_Item_Content_Get_Cb content_get; /**< Content fetching class function for genlist item classes. */
19482              Elm_Genlist_Item_State_Get_Cb   state_get; /**< State fetching class function for genlist item classes. */
19483              Elm_Genlist_Item_Del_Cb         del; /**< Deletion class function for genlist item classes. */
19484           } func;
19485      };
19486    #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
19487    /**
19488     * Add a new genlist widget to the given parent Elementary
19489     * (container) object
19490     *
19491     * @param parent The parent object
19492     * @return a new genlist widget handle or @c NULL, on errors
19493     *
19494     * This function inserts a new genlist widget on the canvas.
19495     *
19496     * @see elm_genlist_item_append()
19497     * @see elm_genlist_item_del()
19498     * @see elm_genlist_clear()
19499     *
19500     * @ingroup Genlist
19501     */
19502    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19503
19504    /**
19505     * Remove all items from a given genlist widget.
19506     *
19507     * @param obj The genlist object
19508     *
19509     * This removes (and deletes) all items in @p obj, leaving it empty.
19510     *
19511     * @see elm_genlist_item_del(), to remove just one item.
19512     *
19513     * @ingroup Genlist
19514     */
19515    EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
19516
19517    /**
19518     * Enable or disable multi-selection in the genlist
19519     *
19520     * @param obj The genlist object
19521     * @param multi Multi-select enable/disable. Default is disabled.
19522     *
19523     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
19524     * the list. This allows more than 1 item to be selected. To retrieve the list
19525     * of selected items, use elm_genlist_selected_items_get().
19526     *
19527     * @see elm_genlist_selected_items_get()
19528     * @see elm_genlist_multi_select_get()
19529     *
19530     * @ingroup Genlist
19531     */
19532    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
19533
19534    /**
19535     * Gets if multi-selection in genlist is enabled or disabled.
19536     *
19537     * @param obj The genlist object
19538     * @return Multi-select enabled/disabled
19539     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
19540     *
19541     * @see elm_genlist_multi_select_set()
19542     *
19543     * @ingroup Genlist
19544     */
19545    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19546
19547    /**
19548     * This sets the horizontal stretching mode.
19549     *
19550     * @param obj The genlist object
19551     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
19552     *
19553     * This sets the mode used for sizing items horizontally. Valid modes
19554     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
19555     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
19556     * the scroller will scroll horizontally. Otherwise items are expanded
19557     * to fill the width of the viewport of the scroller. If it is
19558     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
19559     * limited to that size.
19560     *
19561     * @see elm_genlist_horizontal_get()
19562     *
19563     * @ingroup Genlist
19564     */
19565    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
19566    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
19567
19568    /**
19569     * Gets the horizontal stretching mode.
19570     *
19571     * @param obj The genlist object
19572     * @return The mode to use
19573     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
19574     *
19575     * @see elm_genlist_horizontal_set()
19576     *
19577     * @ingroup Genlist
19578     */
19579    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19580    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19581
19582    /**
19583     * Set the always select mode.
19584     *
19585     * @param obj The genlist object
19586     * @param always_select The always select mode (@c EINA_TRUE = on, @c
19587     * EINA_FALSE = off). Default is @c EINA_FALSE.
19588     *
19589     * Items will only call their selection func and callback when first
19590     * becoming selected. Any further clicks will do nothing, unless you
19591     * enable always select with elm_genlist_always_select_mode_set().
19592     * This means that, even if selected, every click will make the selected
19593     * callbacks be called.
19594     *
19595     * @see elm_genlist_always_select_mode_get()
19596     *
19597     * @ingroup Genlist
19598     */
19599    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
19600
19601    /**
19602     * Get the always select mode.
19603     *
19604     * @param obj The genlist object
19605     * @return The always select mode
19606     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
19607     *
19608     * @see elm_genlist_always_select_mode_set()
19609     *
19610     * @ingroup Genlist
19611     */
19612    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19613
19614    /**
19615     * Enable/disable the no select mode.
19616     *
19617     * @param obj The genlist object
19618     * @param no_select The no select mode
19619     * (EINA_TRUE = on, EINA_FALSE = off)
19620     *
19621     * This will turn off the ability to select items entirely and they
19622     * will neither appear selected nor call selected callback functions.
19623     *
19624     * @see elm_genlist_no_select_mode_get()
19625     *
19626     * @ingroup Genlist
19627     */
19628    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
19629
19630    /**
19631     * Gets whether the no select mode is enabled.
19632     *
19633     * @param obj The genlist object
19634     * @return The no select mode
19635     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
19636     *
19637     * @see elm_genlist_no_select_mode_set()
19638     *
19639     * @ingroup Genlist
19640     */
19641    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19642
19643    /**
19644     * Enable/disable compress mode.
19645     *
19646     * @param obj The genlist object
19647     * @param compress The compress mode
19648     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
19649     *
19650     * This will enable the compress mode where items are "compressed"
19651     * horizontally to fit the genlist scrollable viewport width. This is
19652     * special for genlist.  Do not rely on
19653     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
19654     * work as genlist needs to handle it specially.
19655     *
19656     * @see elm_genlist_compress_mode_get()
19657     *
19658     * @ingroup Genlist
19659     */
19660    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
19661
19662    /**
19663     * Get whether the compress mode is enabled.
19664     *
19665     * @param obj The genlist object
19666     * @return The compress mode
19667     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
19668     *
19669     * @see elm_genlist_compress_mode_set()
19670     *
19671     * @ingroup Genlist
19672     */
19673    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19674
19675    /**
19676     * Enable/disable height-for-width mode.
19677     *
19678     * @param obj The genlist object
19679     * @param setting The height-for-width mode (@c EINA_TRUE = on,
19680     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
19681     *
19682     * With height-for-width mode the item width will be fixed (restricted
19683     * to a minimum of) to the list width when calculating its size in
19684     * order to allow the height to be calculated based on it. This allows,
19685     * for instance, text block to wrap lines if the Edje part is
19686     * configured with "text.min: 0 1".
19687     *
19688     * @note This mode will make list resize slower as it will have to
19689     *       recalculate every item height again whenever the list width
19690     *       changes!
19691     *
19692     * @note When height-for-width mode is enabled, it also enables
19693     *       compress mode (see elm_genlist_compress_mode_set()) and
19694     *       disables homogeneous (see elm_genlist_homogeneous_set()).
19695     *
19696     * @ingroup Genlist
19697     */
19698    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
19699
19700    /**
19701     * Get whether the height-for-width mode is enabled.
19702     *
19703     * @param obj The genlist object
19704     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
19705     * off)
19706     *
19707     * @ingroup Genlist
19708     */
19709    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19710
19711    /**
19712     * Enable/disable horizontal and vertical bouncing effect.
19713     *
19714     * @param obj The genlist object
19715     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
19716     * EINA_FALSE = off). Default is @c EINA_FALSE.
19717     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
19718     * EINA_FALSE = off). Default is @c EINA_TRUE.
19719     *
19720     * This will enable or disable the scroller bouncing effect for the
19721     * genlist. See elm_scroller_bounce_set() for details.
19722     *
19723     * @see elm_scroller_bounce_set()
19724     * @see elm_genlist_bounce_get()
19725     *
19726     * @ingroup Genlist
19727     */
19728    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
19729
19730    /**
19731     * Get whether the horizontal and vertical bouncing effect is enabled.
19732     *
19733     * @param obj The genlist object
19734     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
19735     * option is set.
19736     * @param v_bounce Pointer to a bool to receive if the bounce vertically
19737     * option is set.
19738     *
19739     * @see elm_genlist_bounce_set()
19740     *
19741     * @ingroup Genlist
19742     */
19743    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
19744
19745    /**
19746     * Enable/disable homogeneous mode.
19747     *
19748     * @param obj The genlist object
19749     * @param homogeneous Assume the items within the genlist are of the
19750     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
19751     * EINA_FALSE.
19752     *
19753     * This will enable the homogeneous mode where items are of the same
19754     * height and width so that genlist may do the lazy-loading at its
19755     * maximum (which increases the performance for scrolling the list). This
19756     * implies 'compressed' mode.
19757     *
19758     * @see elm_genlist_compress_mode_set()
19759     * @see elm_genlist_homogeneous_get()
19760     *
19761     * @ingroup Genlist
19762     */
19763    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
19764
19765    /**
19766     * Get whether the homogeneous mode is enabled.
19767     *
19768     * @param obj The genlist object
19769     * @return Assume the items within the genlist are of the same height
19770     * and width (EINA_TRUE = on, EINA_FALSE = off)
19771     *
19772     * @see elm_genlist_homogeneous_set()
19773     *
19774     * @ingroup Genlist
19775     */
19776    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19777
19778    /**
19779     * Set the maximum number of items within an item block
19780     *
19781     * @param obj The genlist object
19782     * @param n   Maximum number of items within an item block. Default is 32.
19783     *
19784     * This will configure the block count to tune to the target with
19785     * particular performance matrix.
19786     *
19787     * A block of objects will be used to reduce the number of operations due to
19788     * many objects in the screen. It can determine the visibility, or if the
19789     * object has changed, it theme needs to be updated, etc. doing this kind of
19790     * calculation to the entire block, instead of per object.
19791     *
19792     * The default value for the block count is enough for most lists, so unless
19793     * you know you will have a lot of objects visible in the screen at the same
19794     * time, don't try to change this.
19795     *
19796     * @see elm_genlist_block_count_get()
19797     * @see @ref Genlist_Implementation
19798     *
19799     * @ingroup Genlist
19800     */
19801    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
19802
19803    /**
19804     * Get the maximum number of items within an item block
19805     *
19806     * @param obj The genlist object
19807     * @return Maximum number of items within an item block
19808     *
19809     * @see elm_genlist_block_count_set()
19810     *
19811     * @ingroup Genlist
19812     */
19813    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19814
19815    /**
19816     * Set the timeout in seconds for the longpress event.
19817     *
19818     * @param obj The genlist object
19819     * @param timeout timeout in seconds. Default is 1.
19820     *
19821     * This option will change how long it takes to send an event "longpressed"
19822     * after the mouse down signal is sent to the list. If this event occurs, no
19823     * "clicked" event will be sent.
19824     *
19825     * @see elm_genlist_longpress_timeout_set()
19826     *
19827     * @ingroup Genlist
19828     */
19829    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
19830
19831    /**
19832     * Get the timeout in seconds for the longpress event.
19833     *
19834     * @param obj The genlist object
19835     * @return timeout in seconds
19836     *
19837     * @see elm_genlist_longpress_timeout_get()
19838     *
19839     * @ingroup Genlist
19840     */
19841    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19842
19843    /**
19844     * Append a new item in a given genlist widget.
19845     *
19846     * @param obj The genlist object
19847     * @param itc The item class for the item
19848     * @param data The item data
19849     * @param parent The parent item, or NULL if none
19850     * @param flags Item flags
19851     * @param func Convenience function called when the item is selected
19852     * @param func_data Data passed to @p func above.
19853     * @return A handle to the item added or @c NULL if not possible
19854     *
19855     * This adds the given item to the end of the list or the end of
19856     * the children list if the @p parent is given.
19857     *
19858     * @see elm_genlist_item_prepend()
19859     * @see elm_genlist_item_insert_before()
19860     * @see elm_genlist_item_insert_after()
19861     * @see elm_genlist_item_del()
19862     *
19863     * @ingroup Genlist
19864     */
19865    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);
19866
19867    /**
19868     * Prepend a new item in a given genlist widget.
19869     *
19870     * @param obj The genlist object
19871     * @param itc The item class for the item
19872     * @param data The item data
19873     * @param parent The parent item, or NULL if none
19874     * @param flags Item flags
19875     * @param func Convenience function called when the item is selected
19876     * @param func_data Data passed to @p func above.
19877     * @return A handle to the item added or NULL if not possible
19878     *
19879     * This adds an item to the beginning of the list or beginning of the
19880     * children of the parent if given.
19881     *
19882     * @see elm_genlist_item_append()
19883     * @see elm_genlist_item_insert_before()
19884     * @see elm_genlist_item_insert_after()
19885     * @see elm_genlist_item_del()
19886     *
19887     * @ingroup Genlist
19888     */
19889    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);
19890
19891    /**
19892     * Insert an item before another in a genlist widget
19893     *
19894     * @param obj The genlist object
19895     * @param itc The item class for the item
19896     * @param data The item data
19897     * @param before The item to place this new one before.
19898     * @param flags Item flags
19899     * @param func Convenience function called when the item is selected
19900     * @param func_data Data passed to @p func above.
19901     * @return A handle to the item added or @c NULL if not possible
19902     *
19903     * This inserts an item before another in the list. It will be in the
19904     * same tree level or group as the item it is inserted before.
19905     *
19906     * @see elm_genlist_item_append()
19907     * @see elm_genlist_item_prepend()
19908     * @see elm_genlist_item_insert_after()
19909     * @see elm_genlist_item_del()
19910     *
19911     * @ingroup Genlist
19912     */
19913    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);
19914
19915    /**
19916     * Insert an item after another in a genlist widget
19917     *
19918     * @param obj The genlist object
19919     * @param itc The item class for the item
19920     * @param data The item data
19921     * @param after The item to place this new one after.
19922     * @param flags Item flags
19923     * @param func Convenience function called when the item is selected
19924     * @param func_data Data passed to @p func above.
19925     * @return A handle to the item added or @c NULL if not possible
19926     *
19927     * This inserts an item after another in the list. It will be in the
19928     * same tree level or group as the item it is inserted after.
19929     *
19930     * @see elm_genlist_item_append()
19931     * @see elm_genlist_item_prepend()
19932     * @see elm_genlist_item_insert_before()
19933     * @see elm_genlist_item_del()
19934     *
19935     * @ingroup Genlist
19936     */
19937    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);
19938
19939    /**
19940     * Insert a new item into the sorted genlist object
19941     *
19942     * @param obj The genlist object
19943     * @param itc The item class for the item
19944     * @param data The item data
19945     * @param parent The parent item, or NULL if none
19946     * @param flags Item flags
19947     * @param comp The function called for the sort
19948     * @param func Convenience function called when item selected
19949     * @param func_data Data passed to @p func above.
19950     * @return A handle to the item added or NULL if not possible
19951     *
19952     * @ingroup Genlist
19953     */
19954    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);
19955    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);
19956
19957    /* operations to retrieve existing items */
19958    /**
19959     * Get the selectd item in the genlist.
19960     *
19961     * @param obj The genlist object
19962     * @return The selected item, or NULL if none is selected.
19963     *
19964     * This gets the selected item in the list (if multi-selection is enabled, only
19965     * the item that was first selected in the list is returned - which is not very
19966     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
19967     * used).
19968     *
19969     * If no item is selected, NULL is returned.
19970     *
19971     * @see elm_genlist_selected_items_get()
19972     *
19973     * @ingroup Genlist
19974     */
19975    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19976
19977    /**
19978     * Get a list of selected items in the genlist.
19979     *
19980     * @param obj The genlist object
19981     * @return The list of selected items, or NULL if none are selected.
19982     *
19983     * It returns a list of the selected items. This list pointer is only valid so
19984     * long as the selection doesn't change (no items are selected or unselected, or
19985     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
19986     * pointers. The order of the items in this list is the order which they were
19987     * selected, i.e. the first item in this list is the first item that was
19988     * selected, and so on.
19989     *
19990     * @note If not in multi-select mode, consider using function
19991     * elm_genlist_selected_item_get() instead.
19992     *
19993     * @see elm_genlist_multi_select_set()
19994     * @see elm_genlist_selected_item_get()
19995     *
19996     * @ingroup Genlist
19997     */
19998    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19999
20000    /**
20001     * Get the mode item style of items in the genlist
20002     * @param obj The genlist object
20003     * @return The mode item style string, or NULL if none is specified
20004     *
20005     * This is a constant string and simply defines the name of the
20006     * style that will be used for mode animations. It can be
20007     * @c NULL if you don't plan to use Genlist mode. See
20008     * elm_genlist_item_mode_set() for more info.
20009     *
20010     * @ingroup Genlist
20011     */
20012    EAPI const char       *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20013
20014    /**
20015     * Set the mode item style of items in the genlist
20016     * @param obj The genlist object
20017     * @param style The mode item style string, or NULL if none is desired
20018     *
20019     * This is a constant string and simply defines the name of the
20020     * style that will be used for mode animations. It can be
20021     * @c NULL if you don't plan to use Genlist mode. See
20022     * elm_genlist_item_mode_set() for more info.
20023     *
20024     * @ingroup Genlist
20025     */
20026    EAPI void              elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
20027
20028    /**
20029     * Get a list of realized items in genlist
20030     *
20031     * @param obj The genlist object
20032     * @return The list of realized items, nor NULL if none are realized.
20033     *
20034     * This returns a list of the realized items in the genlist. The list
20035     * contains Elm_Genlist_Item pointers. The list must be freed by the
20036     * caller when done with eina_list_free(). The item pointers in the
20037     * list are only valid so long as those items are not deleted or the
20038     * genlist is not deleted.
20039     *
20040     * @see elm_genlist_realized_items_update()
20041     *
20042     * @ingroup Genlist
20043     */
20044    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20045
20046    /**
20047     * Get the item that is at the x, y canvas coords.
20048     *
20049     * @param obj The gelinst object.
20050     * @param x The input x coordinate
20051     * @param y The input y coordinate
20052     * @param posret The position relative to the item returned here
20053     * @return The item at the coordinates or NULL if none
20054     *
20055     * This returns the item at the given coordinates (which are canvas
20056     * relative, not object-relative). If an item is at that coordinate,
20057     * that item handle is returned, and if @p posret is not NULL, the
20058     * integer pointed to is set to a value of -1, 0 or 1, depending if
20059     * the coordinate is on the upper portion of that item (-1), on the
20060     * middle section (0) or on the lower part (1). If NULL is returned as
20061     * an item (no item found there), then posret may indicate -1 or 1
20062     * based if the coordinate is above or below all items respectively in
20063     * the genlist.
20064     *
20065     * @ingroup Genlist
20066     */
20067    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);
20068
20069    /**
20070     * Get the first item in the genlist
20071     *
20072     * This returns the first item in the list.
20073     *
20074     * @param obj The genlist object
20075     * @return The first item, or NULL if none
20076     *
20077     * @ingroup Genlist
20078     */
20079    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20080
20081    /**
20082     * Get the last item in the genlist
20083     *
20084     * This returns the last item in the list.
20085     *
20086     * @return The last item, or NULL if none
20087     *
20088     * @ingroup Genlist
20089     */
20090    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20091
20092    /**
20093     * Set the scrollbar policy
20094     *
20095     * @param obj The genlist object
20096     * @param policy_h Horizontal scrollbar policy.
20097     * @param policy_v Vertical scrollbar policy.
20098     *
20099     * This sets the scrollbar visibility policy for the given genlist
20100     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
20101     * made visible if it is needed, and otherwise kept hidden.
20102     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
20103     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
20104     * respectively for the horizontal and vertical scrollbars. Default is
20105     * #ELM_SMART_SCROLLER_POLICY_AUTO
20106     *
20107     * @see elm_genlist_scroller_policy_get()
20108     *
20109     * @ingroup Genlist
20110     */
20111    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
20112
20113    /**
20114     * Get the scrollbar policy
20115     *
20116     * @param obj The genlist object
20117     * @param policy_h Pointer to store the horizontal scrollbar policy.
20118     * @param policy_v Pointer to store the vertical scrollbar policy.
20119     *
20120     * @see elm_genlist_scroller_policy_set()
20121     *
20122     * @ingroup Genlist
20123     */
20124    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);
20125
20126    /**
20127     * Get the @b next item in a genlist widget's internal list of items,
20128     * given a handle to one of those items.
20129     *
20130     * @param item The genlist item to fetch next from
20131     * @return The item after @p item, or @c NULL if there's none (and
20132     * on errors)
20133     *
20134     * This returns the item placed after the @p item, on the container
20135     * genlist.
20136     *
20137     * @see elm_genlist_item_prev_get()
20138     *
20139     * @ingroup Genlist
20140     */
20141    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20142
20143    /**
20144     * Get the @b previous item in a genlist widget's internal list of items,
20145     * given a handle to one of those items.
20146     *
20147     * @param item The genlist item to fetch previous from
20148     * @return The item before @p item, or @c NULL if there's none (and
20149     * on errors)
20150     *
20151     * This returns the item placed before the @p item, on the container
20152     * genlist.
20153     *
20154     * @see elm_genlist_item_next_get()
20155     *
20156     * @ingroup Genlist
20157     */
20158    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20159
20160    /**
20161     * Get the genlist object's handle which contains a given genlist
20162     * item
20163     *
20164     * @param item The item to fetch the container from
20165     * @return The genlist (parent) object
20166     *
20167     * This returns the genlist object itself that an item belongs to.
20168     *
20169     * @ingroup Genlist
20170     */
20171    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20172
20173    /**
20174     * Get the parent item of the given item
20175     *
20176     * @param it The item
20177     * @return The parent of the item or @c NULL if it has no parent.
20178     *
20179     * This returns the item that was specified as parent of the item @p it on
20180     * elm_genlist_item_append() and insertion related functions.
20181     *
20182     * @ingroup Genlist
20183     */
20184    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20185
20186    /**
20187     * Remove all sub-items (children) of the given item
20188     *
20189     * @param it The item
20190     *
20191     * This removes all items that are children (and their descendants) of the
20192     * given item @p it.
20193     *
20194     * @see elm_genlist_clear()
20195     * @see elm_genlist_item_del()
20196     *
20197     * @ingroup Genlist
20198     */
20199    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20200
20201    /**
20202     * Set whether a given genlist item is selected or not
20203     *
20204     * @param it The item
20205     * @param selected Use @c EINA_TRUE, to make it selected, @c
20206     * EINA_FALSE to make it unselected
20207     *
20208     * This sets the selected state of an item. If multi selection is
20209     * not enabled on the containing genlist and @p selected is @c
20210     * EINA_TRUE, any other previously selected items will get
20211     * unselected in favor of this new one.
20212     *
20213     * @see elm_genlist_item_selected_get()
20214     *
20215     * @ingroup Genlist
20216     */
20217    EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
20218
20219    /**
20220     * Get whether a given genlist item is selected or not
20221     *
20222     * @param it The item
20223     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
20224     *
20225     * @see elm_genlist_item_selected_set() for more details
20226     *
20227     * @ingroup Genlist
20228     */
20229    EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20230
20231    /**
20232     * Sets the expanded state of an item.
20233     *
20234     * @param it The item
20235     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
20236     *
20237     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
20238     * expanded or not.
20239     *
20240     * The theme will respond to this change visually, and a signal "expanded" or
20241     * "contracted" will be sent from the genlist with a pointer to the item that
20242     * has been expanded/contracted.
20243     *
20244     * Calling this function won't show or hide any child of this item (if it is
20245     * a parent). You must manually delete and create them on the callbacks fo
20246     * the "expanded" or "contracted" signals.
20247     *
20248     * @see elm_genlist_item_expanded_get()
20249     *
20250     * @ingroup Genlist
20251     */
20252    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
20253
20254    /**
20255     * Get the expanded state of an item
20256     *
20257     * @param it The item
20258     * @return The expanded state
20259     *
20260     * This gets the expanded state of an item.
20261     *
20262     * @see elm_genlist_item_expanded_set()
20263     *
20264     * @ingroup Genlist
20265     */
20266    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20267
20268    /**
20269     * Get the depth of expanded item
20270     *
20271     * @param it The genlist item object
20272     * @return The depth of expanded item
20273     *
20274     * @ingroup Genlist
20275     */
20276    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20277
20278    /**
20279     * Set whether a given genlist item is disabled or not.
20280     *
20281     * @param it The item
20282     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
20283     * to enable it back.
20284     *
20285     * A disabled item cannot be selected or unselected. It will also
20286     * change its appearance, to signal the user it's disabled.
20287     *
20288     * @see elm_genlist_item_disabled_get()
20289     *
20290     * @ingroup Genlist
20291     */
20292    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
20293
20294    /**
20295     * Get whether a given genlist item is disabled or not.
20296     *
20297     * @param it The item
20298     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
20299     * (and on errors).
20300     *
20301     * @see elm_genlist_item_disabled_set() for more details
20302     *
20303     * @ingroup Genlist
20304     */
20305    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20306
20307    /**
20308     * Sets the display only state of an item.
20309     *
20310     * @param it The item
20311     * @param display_only @c EINA_TRUE if the item is display only, @c
20312     * EINA_FALSE otherwise.
20313     *
20314     * A display only item cannot be selected or unselected. It is for
20315     * display only and not selecting or otherwise clicking, dragging
20316     * etc. by the user, thus finger size rules will not be applied to
20317     * this item.
20318     *
20319     * It's good to set group index items to display only state.
20320     *
20321     * @see elm_genlist_item_display_only_get()
20322     *
20323     * @ingroup Genlist
20324     */
20325    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
20326
20327    /**
20328     * Get the display only state of an item
20329     *
20330     * @param it The item
20331     * @return @c EINA_TRUE if the item is display only, @c
20332     * EINA_FALSE otherwise.
20333     *
20334     * @see elm_genlist_item_display_only_set()
20335     *
20336     * @ingroup Genlist
20337     */
20338    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20339
20340    /**
20341     * Show the portion of a genlist's internal list containing a given
20342     * item, immediately.
20343     *
20344     * @param it The item to display
20345     *
20346     * This causes genlist to jump to the given item @p it and show it (by
20347     * immediately scrolling to that position), if it is not fully visible.
20348     *
20349     * @see elm_genlist_item_bring_in()
20350     * @see elm_genlist_item_top_show()
20351     * @see elm_genlist_item_middle_show()
20352     *
20353     * @ingroup Genlist
20354     */
20355    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20356
20357    /**
20358     * Animatedly bring in, to the visible are of a genlist, a given
20359     * item on it.
20360     *
20361     * @param it The item to display
20362     *
20363     * This causes genlist to jump to the given item @p it and show it (by
20364     * animatedly scrolling), if it is not fully visible. This may use animation
20365     * to do so and take a period of time
20366     *
20367     * @see elm_genlist_item_show()
20368     * @see elm_genlist_item_top_bring_in()
20369     * @see elm_genlist_item_middle_bring_in()
20370     *
20371     * @ingroup Genlist
20372     */
20373    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20374
20375    /**
20376     * Show the portion of a genlist's internal list containing a given
20377     * item, immediately.
20378     *
20379     * @param it The item to display
20380     *
20381     * This causes genlist to jump to the given item @p it and show it (by
20382     * immediately scrolling to that position), if it is not fully visible.
20383     *
20384     * The item will be positioned at the top of the genlist viewport.
20385     *
20386     * @see elm_genlist_item_show()
20387     * @see elm_genlist_item_top_bring_in()
20388     *
20389     * @ingroup Genlist
20390     */
20391    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20392
20393    /**
20394     * Animatedly bring in, to the visible are of a genlist, a given
20395     * item on it.
20396     *
20397     * @param it The item
20398     *
20399     * This causes genlist to jump to the given item @p it and show it (by
20400     * animatedly scrolling), if it is not fully visible. This may use animation
20401     * to do so and take a period of time
20402     *
20403     * The item will be positioned at the top of the genlist viewport.
20404     *
20405     * @see elm_genlist_item_bring_in()
20406     * @see elm_genlist_item_top_show()
20407     *
20408     * @ingroup Genlist
20409     */
20410    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20411
20412    /**
20413     * Show the portion of a genlist's internal list containing a given
20414     * item, immediately.
20415     *
20416     * @param it The item to display
20417     *
20418     * This causes genlist to jump to the given item @p it and show it (by
20419     * immediately scrolling to that position), if it is not fully visible.
20420     *
20421     * The item will be positioned at the middle of the genlist viewport.
20422     *
20423     * @see elm_genlist_item_show()
20424     * @see elm_genlist_item_middle_bring_in()
20425     *
20426     * @ingroup Genlist
20427     */
20428    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20429
20430    /**
20431     * Animatedly bring in, to the visible are of a genlist, a given
20432     * item on it.
20433     *
20434     * @param it The item
20435     *
20436     * This causes genlist to jump to the given item @p it and show it (by
20437     * animatedly scrolling), if it is not fully visible. This may use animation
20438     * to do so and take a period of time
20439     *
20440     * The item will be positioned at the middle of the genlist viewport.
20441     *
20442     * @see elm_genlist_item_bring_in()
20443     * @see elm_genlist_item_middle_show()
20444     *
20445     * @ingroup Genlist
20446     */
20447    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20448
20449    /**
20450     * Remove a genlist item from the its parent, deleting it.
20451     *
20452     * @param item The item to be removed.
20453     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
20454     *
20455     * @see elm_genlist_clear(), to remove all items in a genlist at
20456     * once.
20457     *
20458     * @ingroup Genlist
20459     */
20460    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20461
20462    /**
20463     * Return the data associated to a given genlist item
20464     *
20465     * @param item The genlist item.
20466     * @return the data associated to this item.
20467     *
20468     * This returns the @c data value passed on the
20469     * elm_genlist_item_append() and related item addition calls.
20470     *
20471     * @see elm_genlist_item_append()
20472     * @see elm_genlist_item_data_set()
20473     *
20474     * @ingroup Genlist
20475     */
20476    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20477
20478    /**
20479     * Set the data associated to a given genlist item
20480     *
20481     * @param item The genlist item
20482     * @param data The new data pointer to set on it
20483     *
20484     * This @b overrides the @c data value passed on the
20485     * elm_genlist_item_append() and related item addition calls. This
20486     * function @b won't call elm_genlist_item_update() automatically,
20487     * so you'd issue it afterwards if you want to hove the item
20488     * updated to reflect the that new data.
20489     *
20490     * @see elm_genlist_item_data_get()
20491     *
20492     * @ingroup Genlist
20493     */
20494    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
20495
20496    /**
20497     * Tells genlist to "orphan" contents fetchs by the item class
20498     *
20499     * @param it The item
20500     *
20501     * This instructs genlist to release references to contents in the item,
20502     * meaning that they will no longer be managed by genlist and are
20503     * floating "orphans" that can be re-used elsewhere if the user wants
20504     * to.
20505     *
20506     * @ingroup Genlist
20507     */
20508    EAPI void               elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20509    EINA_DEPRECATED EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20510
20511    /**
20512     * Get the real Evas object created to implement the view of a
20513     * given genlist item
20514     *
20515     * @param item The genlist item.
20516     * @return the Evas object implementing this item's view.
20517     *
20518     * This returns the actual Evas object used to implement the
20519     * specified genlist item's view. This may be @c NULL, as it may
20520     * not have been created or may have been deleted, at any time, by
20521     * the genlist. <b>Do not modify this object</b> (move, resize,
20522     * show, hide, etc.), as the genlist is controlling it. This
20523     * function is for querying, emitting custom signals or hooking
20524     * lower level callbacks for events on that object. Do not delete
20525     * this object under any circumstances.
20526     *
20527     * @see elm_genlist_item_data_get()
20528     *
20529     * @ingroup Genlist
20530     */
20531    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20532
20533    /**
20534     * Update the contents of an item
20535     *
20536     * @param it The item
20537     *
20538     * This updates an item by calling all the item class functions again
20539     * to get the contents, texts and states. Use this when the original
20540     * item data has changed and the changes are desired to be reflected.
20541     *
20542     * Use elm_genlist_realized_items_update() to update all already realized
20543     * items.
20544     *
20545     * @see elm_genlist_realized_items_update()
20546     *
20547     * @ingroup Genlist
20548     */
20549    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20550
20551    /**
20552     * Promote an item to the top of the list
20553     *
20554     * @param it The item
20555     *
20556     * @ingroup Genlist
20557     */
20558    EAPI void               elm_genlist_item_promote(Elm_Gen_Item *it) EINA_ARG_NONNULL(1);
20559
20560    /**
20561     * Demote an item to the end of the list
20562     *
20563     * @param it The item
20564     *
20565     * @ingroup Genlist
20566     */
20567    EAPI void               elm_genlist_item_demote(Elm_Gen_Item *it) EINA_ARG_NONNULL(1);
20568
20569    /**
20570     * Update the part of an item
20571     *
20572     * @param it The item
20573     * @param parts The name of item's part
20574     * @param itf The flags of item's part type
20575     *
20576     * This updates an item's part by calling item's fetching functions again
20577     * to get the contents, texts and states. Use this when the original
20578     * item data has changed and the changes are desired to be reflected.
20579     * Second parts argument is used for globbing to match '*', '?', and '.'
20580     * It can be used at updating multi fields.
20581     *
20582     * Use elm_genlist_realized_items_update() to update an item's all
20583     * property.
20584     *
20585     * @see elm_genlist_item_update()
20586     *
20587     * @ingroup Genlist
20588     */
20589    EAPI void               elm_genlist_item_fields_update(Elm_Genlist_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf) EINA_ARG_NONNULL(1);
20590
20591    /**
20592     * Update the item class of an item
20593     *
20594     * @param it The item
20595     * @param itc The item class for the item
20596     *
20597     * This sets another class fo the item, changing the way that it is
20598     * displayed. After changing the item class, elm_genlist_item_update() is
20599     * called on the item @p it.
20600     *
20601     * @ingroup Genlist
20602     */
20603    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
20604    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20605
20606    /**
20607     * Set the text to be shown in a given genlist item's tooltips.
20608     *
20609     * @param item The genlist item
20610     * @param text The text to set in the content
20611     *
20612     * This call will setup the text to be used as tooltip to that item
20613     * (analogous to elm_object_tooltip_text_set(), but being item
20614     * tooltips with higher precedence than object tooltips). It can
20615     * have only one tooltip at a time, so any previous tooltip data
20616     * will get removed.
20617     *
20618     * In order to set a content or something else as a tooltip, look at
20619     * elm_genlist_item_tooltip_content_cb_set().
20620     *
20621     * @ingroup Genlist
20622     */
20623    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
20624
20625    /**
20626     * Set the content to be shown in a given genlist item's tooltips
20627     *
20628     * @param item The genlist item.
20629     * @param func The function returning the tooltip contents.
20630     * @param data What to provide to @a func as callback data/context.
20631     * @param del_cb Called when data is not needed anymore, either when
20632     *        another callback replaces @p func, the tooltip is unset with
20633     *        elm_genlist_item_tooltip_unset() or the owner @p item
20634     *        dies. This callback receives as its first parameter the
20635     *        given @p data, being @c event_info the item handle.
20636     *
20637     * This call will setup the tooltip's contents to @p item
20638     * (analogous to elm_object_tooltip_content_cb_set(), but being
20639     * item tooltips with higher precedence than object tooltips). It
20640     * can have only one tooltip at a time, so any previous tooltip
20641     * content will get removed. @p func (with @p data) will be called
20642     * every time Elementary needs to show the tooltip and it should
20643     * return a valid Evas object, which will be fully managed by the
20644     * tooltip system, getting deleted when the tooltip is gone.
20645     *
20646     * In order to set just a text as a tooltip, look at
20647     * elm_genlist_item_tooltip_text_set().
20648     *
20649     * @ingroup Genlist
20650     */
20651    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);
20652
20653    /**
20654     * Unset a tooltip from a given genlist item
20655     *
20656     * @param item genlist item to remove a previously set tooltip from.
20657     *
20658     * This call removes any tooltip set on @p item. The callback
20659     * provided as @c del_cb to
20660     * elm_genlist_item_tooltip_content_cb_set() will be called to
20661     * notify it is not used anymore (and have resources cleaned, if
20662     * need be).
20663     *
20664     * @see elm_genlist_item_tooltip_content_cb_set()
20665     *
20666     * @ingroup Genlist
20667     */
20668    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20669
20670    /**
20671     * Set a different @b style for a given genlist item's tooltip.
20672     *
20673     * @param item genlist item with tooltip set
20674     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
20675     * "default", @c "transparent", etc)
20676     *
20677     * Tooltips can have <b>alternate styles</b> to be displayed on,
20678     * which are defined by the theme set on Elementary. This function
20679     * works analogously as elm_object_tooltip_style_set(), but here
20680     * applied only to genlist item objects. The default style for
20681     * tooltips is @c "default".
20682     *
20683     * @note before you set a style you should define a tooltip with
20684     *       elm_genlist_item_tooltip_content_cb_set() or
20685     *       elm_genlist_item_tooltip_text_set()
20686     *
20687     * @see elm_genlist_item_tooltip_style_get()
20688     *
20689     * @ingroup Genlist
20690     */
20691    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
20692
20693    /**
20694     * Get the style set a given genlist item's tooltip.
20695     *
20696     * @param item genlist item with tooltip already set on.
20697     * @return style the theme style in use, which defaults to
20698     *         "default". If the object does not have a tooltip set,
20699     *         then @c NULL is returned.
20700     *
20701     * @see elm_genlist_item_tooltip_style_set() for more details
20702     *
20703     * @ingroup Genlist
20704     */
20705    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20706
20707    /**
20708     * @brief Disable size restrictions on an object's tooltip
20709     * @param item The tooltip's anchor object
20710     * @param disable If EINA_TRUE, size restrictions are disabled
20711     * @return EINA_FALSE on failure, EINA_TRUE on success
20712     *
20713     * This function allows a tooltip to expand beyond its parant window's canvas.
20714     * It will instead be limited only by the size of the display.
20715     */
20716    EAPI Eina_Bool          elm_genlist_item_tooltip_window_mode_set(Elm_Genlist_Item *item, Eina_Bool disable);
20717
20718    /**
20719     * @brief Retrieve size restriction state of an object's tooltip
20720     * @param item The tooltip's anchor object
20721     * @return If EINA_TRUE, size restrictions are disabled
20722     *
20723     * This function returns whether a tooltip is allowed to expand beyond
20724     * its parant window's canvas.
20725     * It will instead be limited only by the size of the display.
20726     */
20727    EAPI Eina_Bool          elm_genlist_item_tooltip_window_mode_get(const Elm_Genlist_Item *item);
20728
20729    /**
20730     * Set the type of mouse pointer/cursor decoration to be shown,
20731     * when the mouse pointer is over the given genlist widget item
20732     *
20733     * @param item genlist item to customize cursor on
20734     * @param cursor the cursor type's name
20735     *
20736     * This function works analogously as elm_object_cursor_set(), but
20737     * here the cursor's changing area is restricted to the item's
20738     * area, and not the whole widget's. Note that that item cursors
20739     * have precedence over widget cursors, so that a mouse over @p
20740     * item will always show cursor @p type.
20741     *
20742     * If this function is called twice for an object, a previously set
20743     * cursor will be unset on the second call.
20744     *
20745     * @see elm_object_cursor_set()
20746     * @see elm_genlist_item_cursor_get()
20747     * @see elm_genlist_item_cursor_unset()
20748     *
20749     * @ingroup Genlist
20750     */
20751    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
20752
20753    /**
20754     * Get the type of mouse pointer/cursor decoration set to be shown,
20755     * when the mouse pointer is over the given genlist widget item
20756     *
20757     * @param item genlist item with custom cursor set
20758     * @return the cursor type's name or @c NULL, if no custom cursors
20759     * were set to @p item (and on errors)
20760     *
20761     * @see elm_object_cursor_get()
20762     * @see elm_genlist_item_cursor_set() for more details
20763     * @see elm_genlist_item_cursor_unset()
20764     *
20765     * @ingroup Genlist
20766     */
20767    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20768
20769    /**
20770     * Unset any custom mouse pointer/cursor decoration set to be
20771     * shown, when the mouse pointer is over the given genlist widget
20772     * item, thus making it show the @b default cursor again.
20773     *
20774     * @param item a genlist item
20775     *
20776     * Use this call to undo any custom settings on this item's cursor
20777     * decoration, bringing it back to defaults (no custom style set).
20778     *
20779     * @see elm_object_cursor_unset()
20780     * @see elm_genlist_item_cursor_set() for more details
20781     *
20782     * @ingroup Genlist
20783     */
20784    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20785
20786    /**
20787     * Set a different @b style for a given custom cursor set for a
20788     * genlist item.
20789     *
20790     * @param item genlist item with custom cursor set
20791     * @param style the <b>theme style</b> to use (e.g. @c "default",
20792     * @c "transparent", etc)
20793     *
20794     * This function only makes sense when one is using custom mouse
20795     * cursor decorations <b>defined in a theme file</b> , which can
20796     * have, given a cursor name/type, <b>alternate styles</b> on
20797     * it. It works analogously as elm_object_cursor_style_set(), but
20798     * here applied only to genlist item objects.
20799     *
20800     * @warning Before you set a cursor style you should have defined a
20801     *       custom cursor previously on the item, with
20802     *       elm_genlist_item_cursor_set()
20803     *
20804     * @see elm_genlist_item_cursor_engine_only_set()
20805     * @see elm_genlist_item_cursor_style_get()
20806     *
20807     * @ingroup Genlist
20808     */
20809    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
20810
20811    /**
20812     * Get the current @b style set for a given genlist item's custom
20813     * cursor
20814     *
20815     * @param item genlist item with custom cursor set.
20816     * @return style the cursor style in use. If the object does not
20817     *         have a cursor set, then @c NULL is returned.
20818     *
20819     * @see elm_genlist_item_cursor_style_set() for more details
20820     *
20821     * @ingroup Genlist
20822     */
20823    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20824
20825    /**
20826     * Set if the (custom) cursor for a given genlist item should be
20827     * searched in its theme, also, or should only rely on the
20828     * rendering engine.
20829     *
20830     * @param item item with custom (custom) cursor already set on
20831     * @param engine_only Use @c EINA_TRUE to have cursors looked for
20832     * only on those provided by the rendering engine, @c EINA_FALSE to
20833     * have them searched on the widget's theme, as well.
20834     *
20835     * @note This call is of use only if you've set a custom cursor
20836     * for genlist items, with elm_genlist_item_cursor_set().
20837     *
20838     * @note By default, cursors will only be looked for between those
20839     * provided by the rendering engine.
20840     *
20841     * @ingroup Genlist
20842     */
20843    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
20844
20845    /**
20846     * Get if the (custom) cursor for a given genlist item is being
20847     * searched in its theme, also, or is only relying on the rendering
20848     * engine.
20849     *
20850     * @param item a genlist item
20851     * @return @c EINA_TRUE, if cursors are being looked for only on
20852     * those provided by the rendering engine, @c EINA_FALSE if they
20853     * are being searched on the widget's theme, as well.
20854     *
20855     * @see elm_genlist_item_cursor_engine_only_set(), for more details
20856     *
20857     * @ingroup Genlist
20858     */
20859    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20860
20861    /**
20862     * Update the contents of all realized items.
20863     *
20864     * @param obj The genlist object.
20865     *
20866     * This updates all realized items by calling all the item class functions again
20867     * to get the contents, texts and states. Use this when the original
20868     * item data has changed and the changes are desired to be reflected.
20869     *
20870     * To update just one item, use elm_genlist_item_update().
20871     *
20872     * @see elm_genlist_realized_items_get()
20873     * @see elm_genlist_item_update()
20874     *
20875     * @ingroup Genlist
20876     */
20877    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
20878
20879    /**
20880     * Activate a genlist mode on an item
20881     *
20882     * @param item The genlist item
20883     * @param mode Mode name
20884     * @param mode_set Boolean to define set or unset mode.
20885     *
20886     * A genlist mode is a different way of selecting an item. Once a mode is
20887     * activated on an item, any other selected item is immediately unselected.
20888     * This feature provides an easy way of implementing a new kind of animation
20889     * for selecting an item, without having to entirely rewrite the item style
20890     * theme. However, the elm_genlist_selected_* API can't be used to get what
20891     * item is activate for a mode.
20892     *
20893     * The current item style will still be used, but applying a genlist mode to
20894     * an item will select it using a different kind of animation.
20895     *
20896     * The current active item for a mode can be found by
20897     * elm_genlist_mode_item_get().
20898     *
20899     * The characteristics of genlist mode are:
20900     * - Only one mode can be active at any time, and for only one item.
20901     * - Genlist handles deactivating other items when one item is activated.
20902     * - A mode is defined in the genlist theme (edc), and more modes can easily
20903     *   be added.
20904     * - A mode style and the genlist item style are different things. They
20905     *   can be combined to provide a default style to the item, with some kind
20906     *   of animation for that item when the mode is activated.
20907     *
20908     * When a mode is activated on an item, a new view for that item is created.
20909     * The theme of this mode defines the animation that will be used to transit
20910     * the item from the old view to the new view. This second (new) view will be
20911     * active for that item while the mode is active on the item, and will be
20912     * destroyed after the mode is totally deactivated from that item.
20913     *
20914     * @see elm_genlist_mode_get()
20915     * @see elm_genlist_mode_item_get()
20916     *
20917     * @ingroup Genlist
20918     */
20919    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
20920
20921    /**
20922     * Get the last (or current) genlist mode used.
20923     *
20924     * @param obj The genlist object
20925     *
20926     * This function just returns the name of the last used genlist mode. It will
20927     * be the current mode if it's still active.
20928     *
20929     * @see elm_genlist_item_mode_set()
20930     * @see elm_genlist_mode_item_get()
20931     *
20932     * @ingroup Genlist
20933     */
20934    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20935
20936    /**
20937     * Get active genlist mode item
20938     *
20939     * @param obj The genlist object
20940     * @return The active item for that current mode. Or @c NULL if no item is
20941     * activated with any mode.
20942     *
20943     * This function returns the item that was activated with a mode, by the
20944     * function elm_genlist_item_mode_set().
20945     *
20946     * @see elm_genlist_item_mode_set()
20947     * @see elm_genlist_mode_get()
20948     *
20949     * @ingroup Genlist
20950     */
20951    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20952
20953    /**
20954     * Set reorder mode
20955     *
20956     * @param obj The genlist object
20957     * @param reorder_mode The reorder mode
20958     * (EINA_TRUE = on, EINA_FALSE = off)
20959     *
20960     * @ingroup Genlist
20961     */
20962    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
20963
20964    /**
20965     * Get the reorder mode
20966     *
20967     * @param obj The genlist object
20968     * @return The reorder mode
20969     * (EINA_TRUE = on, EINA_FALSE = off)
20970     *
20971     * @ingroup Genlist
20972     */
20973    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20974
20975    /**
20976     * @}
20977     */
20978
20979    /**
20980     * @defgroup Check Check
20981     *
20982     * @image html img/widget/check/preview-00.png
20983     * @image latex img/widget/check/preview-00.eps
20984     * @image html img/widget/check/preview-01.png
20985     * @image latex img/widget/check/preview-01.eps
20986     * @image html img/widget/check/preview-02.png
20987     * @image latex img/widget/check/preview-02.eps
20988     *
20989     * @brief The check widget allows for toggling a value between true and
20990     * false.
20991     *
20992     * Check objects are a lot like radio objects in layout and functionality
20993     * except they do not work as a group, but independently and only toggle the
20994     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
20995     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
20996     * returns the current state. For convenience, like the radio objects, you
20997     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
20998     * for it to modify.
20999     *
21000     * Signals that you can add callbacks for are:
21001     * "changed" - This is called whenever the user changes the state of one of
21002     *             the check object(event_info is NULL).
21003     *
21004     * Default contents parts of the check widget that you can use for are:
21005     * @li "icon" - An icon of the check
21006     *
21007     * Default text parts of the check widget that you can use for are:
21008     * @li "elm.text" - Label of the check
21009     *
21010     * @ref tutorial_check should give you a firm grasp of how to use this widget
21011     * .
21012     * @{
21013     */
21014    /**
21015     * @brief Add a new Check object
21016     *
21017     * @param parent The parent object
21018     * @return The new object or NULL if it cannot be created
21019     */
21020    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21021
21022    /**
21023     * @brief Set the text label of the check object
21024     *
21025     * @param obj The check object
21026     * @param label The text label string in UTF-8
21027     *
21028     * @deprecated use elm_object_text_set() instead.
21029     */
21030    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21031
21032    /**
21033     * @brief Get the text label of the check object
21034     *
21035     * @param obj The check object
21036     * @return The text label string in UTF-8
21037     *
21038     * @deprecated use elm_object_text_get() instead.
21039     */
21040    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21041
21042    /**
21043     * @brief Set the icon object of the check object
21044     *
21045     * @param obj The check object
21046     * @param icon The icon object
21047     *
21048     * Once the icon object is set, a previously set one will be deleted.
21049     * If you want to keep that old content object, use the
21050     * elm_object_content_unset() function.
21051     *
21052     * @deprecated use elm_object_part_content_set() instead.
21053     *
21054     */
21055    EINA_DEPRECATED EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21056
21057    /**
21058     * @brief Get the icon object of the check object
21059     *
21060     * @param obj The check object
21061     * @return The icon object
21062     *
21063     * @deprecated use elm_object_part_content_get() instead.
21064     *
21065     */
21066    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21067
21068    /**
21069     * @brief Unset the icon used for the check object
21070     *
21071     * @param obj The check object
21072     * @return The icon object that was being used
21073     *
21074     * Unparent and return the icon object which was set for this widget.
21075     *
21076     * @deprecated use elm_object_part_content_unset() instead.
21077     *
21078     */
21079    EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21080
21081    /**
21082     * @brief Set the on/off state of the check object
21083     *
21084     * @param obj The check object
21085     * @param state The state to use (1 == on, 0 == off)
21086     *
21087     * This sets the state of the check. If set
21088     * with elm_check_state_pointer_set() the state of that variable is also
21089     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
21090     */
21091    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
21092
21093    /**
21094     * @brief Get the state of the check object
21095     *
21096     * @param obj The check object
21097     * @return The boolean state
21098     */
21099    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21100
21101    /**
21102     * @brief Set a convenience pointer to a boolean to change
21103     *
21104     * @param obj The check object
21105     * @param statep Pointer to the boolean to modify
21106     *
21107     * This sets a pointer to a boolean, that, in addition to the check objects
21108     * state will also be modified directly. To stop setting the object pointed
21109     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
21110     * then when this is called, the check objects state will also be modified to
21111     * reflect the value of the boolean @p statep points to, just like calling
21112     * elm_check_state_set().
21113     */
21114    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
21115    EINA_DEPRECATED EAPI void         elm_check_states_labels_set(Evas_Object *obj, const char *ontext, const char *offtext) EINA_ARG_NONNULL(1,2,3);
21116    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);
21117
21118    /**
21119     * @}
21120     */
21121
21122    /**
21123     * @defgroup Radio Radio
21124     *
21125     * @image html img/widget/radio/preview-00.png
21126     * @image latex img/widget/radio/preview-00.eps
21127     *
21128     * @brief Radio is a widget that allows for 1 or more options to be displayed
21129     * and have the user choose only 1 of them.
21130     *
21131     * A radio object contains an indicator, an optional Label and an optional
21132     * icon object. While it's possible to have a group of only one radio they,
21133     * are normally used in groups of 2 or more. To add a radio to a group use
21134     * elm_radio_group_add(). The radio object(s) will select from one of a set
21135     * of integer values, so any value they are configuring needs to be mapped to
21136     * a set of integers. To configure what value that radio object represents,
21137     * use  elm_radio_state_value_set() to set the integer it represents. To set
21138     * the value the whole group(which one is currently selected) is to indicate
21139     * use elm_radio_value_set() on any group member, and to get the groups value
21140     * use elm_radio_value_get(). For convenience the radio objects are also able
21141     * to directly set an integer(int) to the value that is selected. To specify
21142     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
21143     * The radio objects will modify this directly. That implies the pointer must
21144     * point to valid memory for as long as the radio objects exist.
21145     *
21146     * Signals that you can add callbacks for are:
21147     * @li changed - This is called whenever the user changes the state of one of
21148     * the radio objects within the group of radio objects that work together.
21149     *
21150     * Default contents parts of the radio widget that you can use for are:
21151     * @li "icon" - An icon of the radio
21152     *
21153     * @ref tutorial_radio show most of this API in action.
21154     * @{
21155     */
21156
21157    /**
21158     * @brief Add a new radio to the parent
21159     *
21160     * @param parent The parent object
21161     * @return The new object or NULL if it cannot be created
21162     */
21163    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21164
21165    /**
21166     * @brief Set the text label of the radio object
21167     *
21168     * @param obj The radio object
21169     * @param label The text label string in UTF-8
21170     *
21171     * @deprecated use elm_object_text_set() instead.
21172     */
21173    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21174
21175    /**
21176     * @brief Get the text label of the radio object
21177     *
21178     * @param obj The radio object
21179     * @return The text label string in UTF-8
21180     *
21181     * @deprecated use elm_object_text_set() instead.
21182     */
21183    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21184
21185    /**
21186     * @brief Set the icon object of the radio object
21187     *
21188     * @param obj The radio object
21189     * @param icon The icon object
21190     *
21191     * Once the icon object is set, a previously set one will be deleted. If you
21192     * want to keep that old content object, use the elm_radio_icon_unset()
21193     * function.
21194     *
21195     * @deprecated use elm_object_part_content_set() instead.
21196     *
21197     */
21198    EINA_DEPRECATED EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21199
21200    /**
21201     * @brief Get the icon object of the radio object
21202     *
21203     * @param obj The radio object
21204     * @return The icon object
21205     *
21206     * @see elm_radio_icon_set()
21207     *
21208     * @deprecated use elm_object_part_content_get() instead.
21209     *
21210     */
21211    EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21212
21213    /**
21214     * @brief Unset the icon used for the radio object
21215     *
21216     * @param obj The radio object
21217     * @return The icon object that was being used
21218     *
21219     * Unparent and return the icon object which was set for this widget.
21220     *
21221     * @see elm_radio_icon_set()
21222     * @deprecated use elm_object_part_content_unset() instead.
21223     *
21224     */
21225    EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21226
21227    /**
21228     * @brief Add this radio to a group of other radio objects
21229     *
21230     * @param obj The radio object
21231     * @param group Any object whose group the @p obj is to join.
21232     *
21233     * Radio objects work in groups. Each member should have a different integer
21234     * value assigned. In order to have them work as a group, they need to know
21235     * about each other. This adds the given radio object to the group of which
21236     * the group object indicated is a member.
21237     */
21238    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
21239
21240    /**
21241     * @brief Set the integer value that this radio object represents
21242     *
21243     * @param obj The radio object
21244     * @param value The value to use if this radio object is selected
21245     *
21246     * This sets the value of the radio.
21247     */
21248    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
21249
21250    /**
21251     * @brief Get the integer value that this radio object represents
21252     *
21253     * @param obj The radio object
21254     * @return The value used if this radio object is selected
21255     *
21256     * This gets the value of the radio.
21257     *
21258     * @see elm_radio_value_set()
21259     */
21260    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21261
21262    /**
21263     * @brief Set the value of the radio.
21264     *
21265     * @param obj The radio object
21266     * @param value The value to use for the group
21267     *
21268     * This sets the value of the radio group and will also set the value if
21269     * pointed to, to the value supplied, but will not call any callbacks.
21270     */
21271    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
21272
21273    /**
21274     * @brief Get the state of the radio object
21275     *
21276     * @param obj The radio object
21277     * @return The integer state
21278     */
21279    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21280
21281    /**
21282     * @brief Set a convenience pointer to a integer to change
21283     *
21284     * @param obj The radio object
21285     * @param valuep Pointer to the integer to modify
21286     *
21287     * This sets a pointer to a integer, that, in addition to the radio objects
21288     * state will also be modified directly. To stop setting the object pointed
21289     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
21290     * when this is called, the radio objects state will also be modified to
21291     * reflect the value of the integer valuep points to, just like calling
21292     * elm_radio_value_set().
21293     */
21294    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
21295
21296    /**
21297     * @}
21298     */
21299
21300    /**
21301     * @defgroup Pager Pager
21302     *
21303     * @image html img/widget/pager/preview-00.png
21304     * @image latex img/widget/pager/preview-00.eps
21305     *
21306     * @brief Widget that allows flipping between one or more ā€œpagesā€
21307     * of objects.
21308     *
21309     * The flipping between pages of objects is animated. All content
21310     * in the pager is kept in a stack, being the last content added
21311     * (visible one) on the top of that stack.
21312     *
21313     * Objects can be pushed or popped from the stack or deleted as
21314     * well. Pushes and pops will animate the widget accordingly to its
21315     * style (a pop will also delete the child object once the
21316     * animation is finished). Any object already in the pager can be
21317     * promoted to the top (from its current stacking position) through
21318     * the use of elm_pager_content_promote(). New objects are pushed
21319     * to the top with elm_pager_content_push(). When the top item is
21320     * no longer wanted, simply pop it with elm_pager_content_pop() and
21321     * it will also be deleted. If an object is no longer needed and is
21322     * not the top item, just delete it as normal. You can query which
21323     * objects are the top and bottom with
21324     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
21325     *
21326     * Signals that you can add callbacks for are:
21327     * - @c "show,finished" - when a new page is actually shown on the top
21328     * - @c "hide,finished" - when a previous page is hidden
21329     *
21330     * Only after the first of that signals the child object is
21331     * guaranteed to be visible, as in @c evas_object_visible_get().
21332     *
21333     * This widget has the following styles available:
21334     * - @c "default"
21335     * - @c "fade"
21336     * - @c "fade_translucide"
21337     * - @c "fade_invisible"
21338     *
21339     * @note These styles affect only the flipping animations on the
21340     * default theme; the appearance when not animating is unaffected
21341     * by them.
21342     *
21343     * @ref tutorial_pager gives a good overview of the usage of the API.
21344     * @{
21345     */
21346
21347    /**
21348     * Add a new pager to the parent
21349     *
21350     * @param parent The parent object
21351     * @return The new object or NULL if it cannot be created
21352     *
21353     * @ingroup Pager
21354     */
21355    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21356
21357    /**
21358     * @brief Push an object to the top of the pager stack (and show it).
21359     *
21360     * @param obj The pager object
21361     * @param content The object to push
21362     *
21363     * The object pushed becomes a child of the pager, it will be controlled and
21364     * deleted when the pager is deleted.
21365     *
21366     * @note If the content is already in the stack use
21367     * elm_pager_content_promote().
21368     * @warning Using this function on @p content already in the stack results in
21369     * undefined behavior.
21370     */
21371    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
21372
21373    /**
21374     * @brief Pop the object that is on top of the stack
21375     *
21376     * @param obj The pager object
21377     *
21378     * This pops the object that is on the top(visible) of the pager, makes it
21379     * disappear, then deletes the object. The object that was underneath it on
21380     * the stack will become visible.
21381     */
21382    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
21383
21384    /**
21385     * @brief Moves an object already in the pager stack to the top of the stack.
21386     *
21387     * @param obj The pager object
21388     * @param content The object to promote
21389     *
21390     * This will take the @p content and move it to the top of the stack as
21391     * if it had been pushed there.
21392     *
21393     * @note If the content isn't already in the stack use
21394     * elm_pager_content_push().
21395     * @warning Using this function on @p content not already in the stack
21396     * results in undefined behavior.
21397     */
21398    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
21399
21400    /**
21401     * @brief Return the object at the bottom of the pager stack
21402     *
21403     * @param obj The pager object
21404     * @return The bottom object or NULL if none
21405     */
21406    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21407
21408    /**
21409     * @brief  Return the object at the top of the pager stack
21410     *
21411     * @param obj The pager object
21412     * @return The top object or NULL if none
21413     */
21414    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21415
21416    /**
21417     * @}
21418     */
21419
21420    /**
21421     * @defgroup Slideshow Slideshow
21422     *
21423     * @image html img/widget/slideshow/preview-00.png
21424     * @image latex img/widget/slideshow/preview-00.eps
21425     *
21426     * This widget, as the name indicates, is a pre-made image
21427     * slideshow panel, with API functions acting on (child) image
21428     * items presentation. Between those actions, are:
21429     * - advance to next/previous image
21430     * - select the style of image transition animation
21431     * - set the exhibition time for each image
21432     * - start/stop the slideshow
21433     *
21434     * The transition animations are defined in the widget's theme,
21435     * consequently new animations can be added without having to
21436     * update the widget's code.
21437     *
21438     * @section Slideshow_Items Slideshow items
21439     *
21440     * For slideshow items, just like for @ref Genlist "genlist" ones,
21441     * the user defines a @b classes, specifying functions that will be
21442     * called on the item's creation and deletion times.
21443     *
21444     * The #Elm_Slideshow_Item_Class structure contains the following
21445     * members:
21446     *
21447     * - @c func.get - When an item is displayed, this function is
21448     *   called, and it's where one should create the item object, de
21449     *   facto. For example, the object can be a pure Evas image object
21450     *   or an Elementary @ref Photocam "photocam" widget. See
21451     *   #SlideshowItemGetFunc.
21452     * - @c func.del - When an item is no more displayed, this function
21453     *   is called, where the user must delete any data associated to
21454     *   the item. See #SlideshowItemDelFunc.
21455     *
21456     * @section Slideshow_Caching Slideshow caching
21457     *
21458     * The slideshow provides facilities to have items adjacent to the
21459     * one being displayed <b>already "realized"</b> (i.e. loaded) for
21460     * you, so that the system does not have to decode image data
21461     * anymore at the time it has to actually switch images on its
21462     * viewport. The user is able to set the numbers of items to be
21463     * cached @b before and @b after the current item, in the widget's
21464     * item list.
21465     *
21466     * Smart events one can add callbacks for are:
21467     *
21468     * - @c "changed" - when the slideshow switches its view to a new
21469     *   item. event_info parameter in callback contains the current visible item
21470     * - @c "transition,end" - when a slide transition ends. event_info parameter
21471     *   in callback contains the current visible item
21472     *
21473     * List of examples for the slideshow widget:
21474     * @li @ref slideshow_example
21475     */
21476
21477    /**
21478     * @addtogroup Slideshow
21479     * @{
21480     */
21481
21482    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
21483    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
21484    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
21485    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
21486
21487    /**
21488     * @struct _Elm_Slideshow_Item_Class
21489     *
21490     * Slideshow item class definition. See @ref Slideshow_Items for
21491     * field details.
21492     */
21493    struct _Elm_Slideshow_Item_Class
21494      {
21495         struct _Elm_Slideshow_Item_Class_Func
21496           {
21497              SlideshowItemGetFunc get;
21498              SlideshowItemDelFunc del;
21499           } func;
21500      }; /**< #Elm_Slideshow_Item_Class member definitions */
21501
21502    /**
21503     * Add a new slideshow widget to the given parent Elementary
21504     * (container) object
21505     *
21506     * @param parent The parent object
21507     * @return A new slideshow widget handle or @c NULL, on errors
21508     *
21509     * This function inserts a new slideshow widget on the canvas.
21510     *
21511     * @ingroup Slideshow
21512     */
21513    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21514
21515    /**
21516     * Add (append) a new item in a given slideshow widget.
21517     *
21518     * @param obj The slideshow object
21519     * @param itc The item class for the item
21520     * @param data The item's data
21521     * @return A handle to the item added or @c NULL, on errors
21522     *
21523     * Add a new item to @p obj's internal list of items, appending it.
21524     * The item's class must contain the function really fetching the
21525     * image object to show for this item, which could be an Evas image
21526     * object or an Elementary photo, for example. The @p data
21527     * parameter is going to be passed to both class functions of the
21528     * item.
21529     *
21530     * @see #Elm_Slideshow_Item_Class
21531     * @see elm_slideshow_item_sorted_insert()
21532     * @see elm_object_item_data_set()
21533     *
21534     * @ingroup Slideshow
21535     */
21536    EAPI Elm_Object_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
21537
21538    /**
21539     * Insert a new item into the given slideshow widget, using the @p func
21540     * function to sort items (by item handles).
21541     *
21542     * @param obj The slideshow object
21543     * @param itc The item class for the item
21544     * @param data The item's data
21545     * @param func The comparing function to be used to sort slideshow
21546     * items <b>by #Elm_Slideshow_Item item handles</b>
21547     * @return Returns The slideshow item handle, on success, or
21548     * @c NULL, on errors
21549     *
21550     * Add a new item to @p obj's internal list of items, in a position
21551     * determined by the @p func comparing function. The item's class
21552     * must contain the function really fetching the image object to
21553     * show for this item, which could be an Evas image object or an
21554     * Elementary photo, for example. The @p data parameter is going to
21555     * be passed to both class functions of the item.
21556     *
21557     * @see #Elm_Slideshow_Item_Class
21558     * @see elm_slideshow_item_add()
21559     *
21560     * @ingroup Slideshow
21561     */
21562    EAPI Elm_Object_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func) EINA_ARG_NONNULL(1);
21563
21564    /**
21565     * Display a given slideshow widget's item, programmatically.
21566     *
21567     * @param it The item to display on @p obj's viewport
21568     *
21569     * The change between the current item and @p item will use the
21570     * transition @p obj is set to use (@see
21571     * elm_slideshow_transition_set()).
21572     *
21573     * @ingroup Slideshow
21574     */
21575    EAPI void                elm_slideshow_show(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21576
21577    /**
21578     * Slide to the @b next item, in a given slideshow widget
21579     *
21580     * @param obj The slideshow object
21581     *
21582     * The sliding animation @p obj is set to use will be the
21583     * transition effect used, after this call is issued.
21584     *
21585     * @note If the end of the slideshow's internal list of items is
21586     * reached, it'll wrap around to the list's beginning, again.
21587     *
21588     * @ingroup Slideshow
21589     */
21590    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
21591
21592    /**
21593     * Slide to the @b previous item, in a given slideshow widget
21594     *
21595     * @param obj The slideshow object
21596     *
21597     * The sliding animation @p obj is set to use will be the
21598     * transition effect used, after this call is issued.
21599     *
21600     * @note If the beginning of the slideshow's internal list of items
21601     * is reached, it'll wrap around to the list's end, again.
21602     *
21603     * @ingroup Slideshow
21604     */
21605    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
21606
21607    /**
21608     * Returns the list of sliding transition/effect names available, for a
21609     * given slideshow widget.
21610     *
21611     * @param obj The slideshow object
21612     * @return The list of transitions (list of @b stringshared strings
21613     * as data)
21614     *
21615     * The transitions, which come from @p obj's theme, must be an EDC
21616     * data item named @c "transitions" on the theme file, with (prefix)
21617     * names of EDC programs actually implementing them.
21618     *
21619     * The available transitions for slideshows on the default theme are:
21620     * - @c "fade" - the current item fades out, while the new one
21621     *   fades in to the slideshow's viewport.
21622     * - @c "black_fade" - the current item fades to black, and just
21623     *   then, the new item will fade in.
21624     * - @c "horizontal" - the current item slides horizontally, until
21625     *   it gets out of the slideshow's viewport, while the new item
21626     *   comes from the left to take its place.
21627     * - @c "vertical" - the current item slides vertically, until it
21628     *   gets out of the slideshow's viewport, while the new item comes
21629     *   from the bottom to take its place.
21630     * - @c "square" - the new item starts to appear from the middle of
21631     *   the current one, but with a tiny size, growing until its
21632     *   target (full) size and covering the old one.
21633     *
21634     * @warning The stringshared strings get no new references
21635     * exclusive to the user grabbing the list, here, so if you'd like
21636     * to use them out of this call's context, you'd better @c
21637     * eina_stringshare_ref() them.
21638     *
21639     * @see elm_slideshow_transition_set()
21640     *
21641     * @ingroup Slideshow
21642     */
21643    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21644
21645    /**
21646     * Set the current slide transition/effect in use for a given
21647     * slideshow widget
21648     *
21649     * @param obj The slideshow object
21650     * @param transition The new transition's name string
21651     *
21652     * If @p transition is implemented in @p obj's theme (i.e., is
21653     * contained in the list returned by
21654     * elm_slideshow_transitions_get()), this new sliding effect will
21655     * be used on the widget.
21656     *
21657     * @see elm_slideshow_transitions_get() for more details
21658     *
21659     * @ingroup Slideshow
21660     */
21661    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
21662
21663    /**
21664     * Get the current slide transition/effect in use for a given
21665     * slideshow widget
21666     *
21667     * @param obj The slideshow object
21668     * @return The current transition's name
21669     *
21670     * @see elm_slideshow_transition_set() for more details
21671     *
21672     * @ingroup Slideshow
21673     */
21674    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21675
21676    /**
21677     * Set the interval between each image transition on a given
21678     * slideshow widget, <b>and start the slideshow, itself</b>
21679     *
21680     * @param obj The slideshow object
21681     * @param timeout The new displaying timeout for images
21682     *
21683     * After this call, the slideshow widget will start cycling its
21684     * view, sequentially and automatically, with the images of the
21685     * items it has. The time between each new image displayed is going
21686     * to be @p timeout, in @b seconds. If a different timeout was set
21687     * previously and an slideshow was in progress, it will continue
21688     * with the new time between transitions, after this call.
21689     *
21690     * @note A value less than or equal to 0 on @p timeout will disable
21691     * the widget's internal timer, thus halting any slideshow which
21692     * could be happening on @p obj.
21693     *
21694     * @see elm_slideshow_timeout_get()
21695     *
21696     * @ingroup Slideshow
21697     */
21698    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
21699
21700    /**
21701     * Get the interval set for image transitions on a given slideshow
21702     * widget.
21703     *
21704     * @param obj The slideshow object
21705     * @return Returns the timeout set on it
21706     *
21707     * @see elm_slideshow_timeout_set() for more details
21708     *
21709     * @ingroup Slideshow
21710     */
21711    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21712
21713    /**
21714     * Set if, after a slideshow is started, for a given slideshow
21715     * widget, its items should be displayed cyclically or not.
21716     *
21717     * @param obj The slideshow object
21718     * @param loop Use @c EINA_TRUE to make it cycle through items or
21719     * @c EINA_FALSE for it to stop at the end of @p obj's internal
21720     * list of items
21721     *
21722     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
21723     * ignore what is set by this functions, i.e., they'll @b always
21724     * cycle through items. This affects only the "automatic"
21725     * slideshow, as set by elm_slideshow_timeout_set().
21726     *
21727     * @see elm_slideshow_loop_get()
21728     *
21729     * @ingroup Slideshow
21730     */
21731    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
21732
21733    /**
21734     * Get if, after a slideshow is started, for a given slideshow
21735     * widget, its items are to be displayed cyclically or not.
21736     *
21737     * @param obj The slideshow object
21738     * @return @c EINA_TRUE, if the items in @p obj will be cycled
21739     * through or @c EINA_FALSE, otherwise
21740     *
21741     * @see elm_slideshow_loop_set() for more details
21742     *
21743     * @ingroup Slideshow
21744     */
21745    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21746
21747    /**
21748     * Remove all items from a given slideshow widget
21749     *
21750     * @param obj The slideshow object
21751     *
21752     * This removes (and deletes) all items in @p obj, leaving it
21753     * empty.
21754     *
21755     * @see elm_slideshow_item_del(), to remove just one item.
21756     *
21757     * @ingroup Slideshow
21758     */
21759    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
21760
21761    /**
21762     * Get the internal list of items in a given slideshow widget.
21763     *
21764     * @param obj The slideshow object
21765     * @return The list of items (#Elm_Object_Item as data) or
21766     * @c NULL on errors.
21767     *
21768     * This list is @b not to be modified in any way and must not be
21769     * freed. Use the list members with functions like
21770     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
21771     *
21772     * @warning This list is only valid until @p obj object's internal
21773     * items list is changed. It should be fetched again with another
21774     * call to this function when changes happen.
21775     *
21776     * @ingroup Slideshow
21777     */
21778    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21779
21780    /**
21781     * Delete a given item from a slideshow widget.
21782     *
21783     * @param it The slideshow item
21784     *
21785     * @ingroup Slideshow
21786     */
21787    EAPI void                elm_slideshow_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21788
21789    /**
21790     * Return the data associated with a given slideshow item
21791     *
21792     * @param it The slideshow item
21793     * @return Returns the data associated to this item
21794     *
21795     * @deprecated use elm_object_item_data_get() instead
21796     * @ingroup Slideshow
21797     */
21798    EINA_DEPRECATED EAPI void               *elm_slideshow_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21799
21800    /**
21801     * Returns the currently displayed item, in a given slideshow widget
21802     *
21803     * @param obj The slideshow object
21804     * @return A handle to the item being displayed in @p obj or
21805     * @c NULL, if none is (and on errors)
21806     *
21807     * @ingroup Slideshow
21808     */
21809    EAPI Elm_Object_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21810
21811    /**
21812     * Get the real Evas object created to implement the view of a
21813     * given slideshow item
21814     *
21815     * @param item The slideshow item.
21816     * @return the Evas object implementing this item's view.
21817     *
21818     * This returns the actual Evas object used to implement the
21819     * specified slideshow item's view. This may be @c NULL, as it may
21820     * not have been created or may have been deleted, at any time, by
21821     * the slideshow. <b>Do not modify this object</b> (move, resize,
21822     * show, hide, etc.), as the slideshow is controlling it. This
21823     * function is for querying, emitting custom signals or hooking
21824     * lower level callbacks for events on that object. Do not delete
21825     * this object under any circumstances.
21826     *
21827     * @see elm_slideshow_item_data_get()
21828     *
21829     * @ingroup Slideshow
21830     */
21831    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Object_Item* it) EINA_ARG_NONNULL(1);
21832
21833    /**
21834     * Get the the item, in a given slideshow widget, placed at
21835     * position @p nth, in its internal items list
21836     *
21837     * @param obj The slideshow object
21838     * @param nth The number of the item to grab a handle to (0 being
21839     * the first)
21840     * @return The item stored in @p obj at position @p nth or @c NULL,
21841     * if there's no item with that index (and on errors)
21842     *
21843     * @ingroup Slideshow
21844     */
21845    EAPI Elm_Object_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
21846
21847    /**
21848     * Set the current slide layout in use for a given slideshow widget
21849     *
21850     * @param obj The slideshow object
21851     * @param layout The new layout's name string
21852     *
21853     * If @p layout is implemented in @p obj's theme (i.e., is contained
21854     * in the list returned by elm_slideshow_layouts_get()), this new
21855     * images layout will be used on the widget.
21856     *
21857     * @see elm_slideshow_layouts_get() for more details
21858     *
21859     * @ingroup Slideshow
21860     */
21861    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
21862
21863    /**
21864     * Get the current slide layout in use for a given slideshow widget
21865     *
21866     * @param obj The slideshow object
21867     * @return The current layout's name
21868     *
21869     * @see elm_slideshow_layout_set() for more details
21870     *
21871     * @ingroup Slideshow
21872     */
21873    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21874
21875    /**
21876     * Returns the list of @b layout names available, for a given
21877     * slideshow widget.
21878     *
21879     * @param obj The slideshow object
21880     * @return The list of layouts (list of @b stringshared strings
21881     * as data)
21882     *
21883     * Slideshow layouts will change how the widget is to dispose each
21884     * image item in its viewport, with regard to cropping, scaling,
21885     * etc.
21886     *
21887     * The layouts, which come from @p obj's theme, must be an EDC
21888     * data item name @c "layouts" on the theme file, with (prefix)
21889     * names of EDC programs actually implementing them.
21890     *
21891     * The available layouts for slideshows on the default theme are:
21892     * - @c "fullscreen" - item images with original aspect, scaled to
21893     *   touch top and down slideshow borders or, if the image's heigh
21894     *   is not enough, left and right slideshow borders.
21895     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
21896     *   one, but always leaving 10% of the slideshow's dimensions of
21897     *   distance between the item image's borders and the slideshow
21898     *   borders, for each axis.
21899     *
21900     * @warning The stringshared strings get no new references
21901     * exclusive to the user grabbing the list, here, so if you'd like
21902     * to use them out of this call's context, you'd better @c
21903     * eina_stringshare_ref() them.
21904     *
21905     * @see elm_slideshow_layout_set()
21906     *
21907     * @ingroup Slideshow
21908     */
21909    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21910
21911    /**
21912     * Set the number of items to cache, on a given slideshow widget,
21913     * <b>before the current item</b>
21914     *
21915     * @param obj The slideshow object
21916     * @param count Number of items to cache before the current one
21917     *
21918     * The default value for this property is @c 2. See
21919     * @ref Slideshow_Caching "slideshow caching" for more details.
21920     *
21921     * @see elm_slideshow_cache_before_get()
21922     *
21923     * @ingroup Slideshow
21924     */
21925    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
21926
21927    /**
21928     * Retrieve the number of items to cache, on a given slideshow widget,
21929     * <b>before the current item</b>
21930     *
21931     * @param obj The slideshow object
21932     * @return The number of items set to be cached before the current one
21933     *
21934     * @see elm_slideshow_cache_before_set() for more details
21935     *
21936     * @ingroup Slideshow
21937     */
21938    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21939
21940    /**
21941     * Set the number of items to cache, on a given slideshow widget,
21942     * <b>after the current item</b>
21943     *
21944     * @param obj The slideshow object
21945     * @param count Number of items to cache after the current one
21946     *
21947     * The default value for this property is @c 2. See
21948     * @ref Slideshow_Caching "slideshow caching" for more details.
21949     *
21950     * @see elm_slideshow_cache_after_get()
21951     *
21952     * @ingroup Slideshow
21953     */
21954    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
21955
21956    /**
21957     * Retrieve the number of items to cache, on a given slideshow widget,
21958     * <b>after the current item</b>
21959     *
21960     * @param obj The slideshow object
21961     * @return The number of items set to be cached after the current one
21962     *
21963     * @see elm_slideshow_cache_after_set() for more details
21964     *
21965     * @ingroup Slideshow
21966     */
21967    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21968
21969    /**
21970     * Get the number of items stored in a given slideshow widget
21971     *
21972     * @param obj The slideshow object
21973     * @return The number of items on @p obj, at the moment of this call
21974     *
21975     * @ingroup Slideshow
21976     */
21977    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21978
21979    /**
21980     * @}
21981     */
21982
21983    /**
21984     * @defgroup Fileselector File Selector
21985     *
21986     * @image html img/widget/fileselector/preview-00.png
21987     * @image latex img/widget/fileselector/preview-00.eps
21988     *
21989     * A file selector is a widget that allows a user to navigate
21990     * through a file system, reporting file selections back via its
21991     * API.
21992     *
21993     * It contains shortcut buttons for home directory (@c ~) and to
21994     * jump one directory upwards (..), as well as cancel/ok buttons to
21995     * confirm/cancel a given selection. After either one of those two
21996     * former actions, the file selector will issue its @c "done" smart
21997     * callback.
21998     *
21999     * There's a text entry on it, too, showing the name of the current
22000     * selection. There's the possibility of making it editable, so it
22001     * is useful on file saving dialogs on applications, where one
22002     * gives a file name to save contents to, in a given directory in
22003     * the system. This custom file name will be reported on the @c
22004     * "done" smart callback (explained in sequence).
22005     *
22006     * Finally, it has a view to display file system items into in two
22007     * possible forms:
22008     * - list
22009     * - grid
22010     *
22011     * If Elementary is built with support of the Ethumb thumbnailing
22012     * library, the second form of view will display preview thumbnails
22013     * of files which it supports.
22014     *
22015     * Smart callbacks one can register to:
22016     *
22017     * - @c "selected" - the user has clicked on a file (when not in
22018     *      folders-only mode) or directory (when in folders-only mode)
22019     * - @c "directory,open" - the list has been populated with new
22020     *      content (@c event_info is a pointer to the directory's
22021     *      path, a @b stringshared string)
22022     * - @c "done" - the user has clicked on the "ok" or "cancel"
22023     *      buttons (@c event_info is a pointer to the selection's
22024     *      path, a @b stringshared string)
22025     *
22026     * Here is an example on its usage:
22027     * @li @ref fileselector_example
22028     */
22029
22030    /**
22031     * @addtogroup Fileselector
22032     * @{
22033     */
22034
22035    /**
22036     * Defines how a file selector widget is to layout its contents
22037     * (file system entries).
22038     */
22039    typedef enum _Elm_Fileselector_Mode
22040      {
22041         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
22042         ELM_FILESELECTOR_GRID, /**< layout as a grid */
22043         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
22044      } Elm_Fileselector_Mode;
22045
22046    /**
22047     * Add a new file selector widget to the given parent Elementary
22048     * (container) object
22049     *
22050     * @param parent The parent object
22051     * @return a new file selector widget handle or @c NULL, on errors
22052     *
22053     * This function inserts a new file selector widget on the canvas.
22054     *
22055     * @ingroup Fileselector
22056     */
22057    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22058
22059    /**
22060     * Enable/disable the file name entry box where the user can type
22061     * in a name for a file, in a given file selector widget
22062     *
22063     * @param obj The file selector object
22064     * @param is_save @c EINA_TRUE to make the file selector a "saving
22065     * dialog", @c EINA_FALSE otherwise
22066     *
22067     * Having the entry editable is useful on file saving dialogs on
22068     * applications, where one gives a file name to save contents to,
22069     * in a given directory in the system. This custom file name will
22070     * be reported on the @c "done" smart callback.
22071     *
22072     * @see elm_fileselector_is_save_get()
22073     *
22074     * @ingroup Fileselector
22075     */
22076    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
22077
22078    /**
22079     * Get whether the given file selector is in "saving dialog" mode
22080     *
22081     * @param obj The file selector object
22082     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
22083     * mode, @c EINA_FALSE otherwise (and on errors)
22084     *
22085     * @see elm_fileselector_is_save_set() for more details
22086     *
22087     * @ingroup Fileselector
22088     */
22089    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22090
22091    /**
22092     * Enable/disable folder-only view for a given file selector widget
22093     *
22094     * @param obj The file selector object
22095     * @param only @c EINA_TRUE to make @p obj only display
22096     * directories, @c EINA_FALSE to make files to be displayed in it
22097     * too
22098     *
22099     * If enabled, the widget's view will only display folder items,
22100     * naturally.
22101     *
22102     * @see elm_fileselector_folder_only_get()
22103     *
22104     * @ingroup Fileselector
22105     */
22106    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
22107
22108    /**
22109     * Get whether folder-only view is set for a given file selector
22110     * widget
22111     *
22112     * @param obj The file selector object
22113     * @return only @c EINA_TRUE if @p obj is only displaying
22114     * directories, @c EINA_FALSE if files are being displayed in it
22115     * too (and on errors)
22116     *
22117     * @see elm_fileselector_folder_only_get()
22118     *
22119     * @ingroup Fileselector
22120     */
22121    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22122
22123    /**
22124     * Enable/disable the "ok" and "cancel" buttons on a given file
22125     * selector widget
22126     *
22127     * @param obj The file selector object
22128     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
22129     *
22130     * @note A file selector without those buttons will never emit the
22131     * @c "done" smart event, and is only usable if one is just hooking
22132     * to the other two events.
22133     *
22134     * @see elm_fileselector_buttons_ok_cancel_get()
22135     *
22136     * @ingroup Fileselector
22137     */
22138    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
22139
22140    /**
22141     * Get whether the "ok" and "cancel" buttons on a given file
22142     * selector widget are being shown.
22143     *
22144     * @param obj The file selector object
22145     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
22146     * otherwise (and on errors)
22147     *
22148     * @see elm_fileselector_buttons_ok_cancel_set() for more details
22149     *
22150     * @ingroup Fileselector
22151     */
22152    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22153
22154    /**
22155     * Enable/disable a tree view in the given file selector widget,
22156     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
22157     *
22158     * @param obj The file selector object
22159     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
22160     * disable
22161     *
22162     * In a tree view, arrows are created on the sides of directories,
22163     * allowing them to expand in place.
22164     *
22165     * @note If it's in other mode, the changes made by this function
22166     * will only be visible when one switches back to "list" mode.
22167     *
22168     * @see elm_fileselector_expandable_get()
22169     *
22170     * @ingroup Fileselector
22171     */
22172    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
22173
22174    /**
22175     * Get whether tree view is enabled for the given file selector
22176     * widget
22177     *
22178     * @param obj The file selector object
22179     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
22180     * otherwise (and or errors)
22181     *
22182     * @see elm_fileselector_expandable_set() for more details
22183     *
22184     * @ingroup Fileselector
22185     */
22186    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22187
22188    /**
22189     * Set, programmatically, the @b directory that a given file
22190     * selector widget will display contents from
22191     *
22192     * @param obj The file selector object
22193     * @param path The path to display in @p obj
22194     *
22195     * This will change the @b directory that @p obj is displaying. It
22196     * will also clear the text entry area on the @p obj object, which
22197     * displays select files' names.
22198     *
22199     * @see elm_fileselector_path_get()
22200     *
22201     * @ingroup Fileselector
22202     */
22203    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
22204
22205    /**
22206     * Get the parent directory's path that a given file selector
22207     * widget is displaying
22208     *
22209     * @param obj The file selector object
22210     * @return The (full) path of the directory the file selector is
22211     * displaying, a @b stringshared string
22212     *
22213     * @see elm_fileselector_path_set()
22214     *
22215     * @ingroup Fileselector
22216     */
22217    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22218
22219    /**
22220     * Set, programmatically, the currently selected file/directory in
22221     * the given file selector widget
22222     *
22223     * @param obj The file selector object
22224     * @param path The (full) path to a file or directory
22225     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
22226     * latter case occurs if the directory or file pointed to do not
22227     * exist.
22228     *
22229     * @see elm_fileselector_selected_get()
22230     *
22231     * @ingroup Fileselector
22232     */
22233    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
22234
22235    /**
22236     * Get the currently selected item's (full) path, in the given file
22237     * selector widget
22238     *
22239     * @param obj The file selector object
22240     * @return The absolute path of the selected item, a @b
22241     * stringshared string
22242     *
22243     * @note Custom editions on @p obj object's text entry, if made,
22244     * will appear on the return string of this function, naturally.
22245     *
22246     * @see elm_fileselector_selected_set() for more details
22247     *
22248     * @ingroup Fileselector
22249     */
22250    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22251
22252    /**
22253     * Set the mode in which a given file selector widget will display
22254     * (layout) file system entries in its view
22255     *
22256     * @param obj The file selector object
22257     * @param mode The mode of the fileselector, being it one of
22258     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
22259     * first one, naturally, will display the files in a list. The
22260     * latter will make the widget to display its entries in a grid
22261     * form.
22262     *
22263     * @note By using elm_fileselector_expandable_set(), the user may
22264     * trigger a tree view for that list.
22265     *
22266     * @note If Elementary is built with support of the Ethumb
22267     * thumbnailing library, the second form of view will display
22268     * preview thumbnails of files which it supports. You must have
22269     * elm_need_ethumb() called in your Elementary for thumbnailing to
22270     * work, though.
22271     *
22272     * @see elm_fileselector_expandable_set().
22273     * @see elm_fileselector_mode_get().
22274     *
22275     * @ingroup Fileselector
22276     */
22277    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
22278
22279    /**
22280     * Get the mode in which a given file selector widget is displaying
22281     * (layouting) file system entries in its view
22282     *
22283     * @param obj The fileselector object
22284     * @return The mode in which the fileselector is at
22285     *
22286     * @see elm_fileselector_mode_set() for more details
22287     *
22288     * @ingroup Fileselector
22289     */
22290    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22291
22292    /**
22293     * @}
22294     */
22295
22296    /**
22297     * @defgroup Progressbar Progress bar
22298     *
22299     * The progress bar is a widget for visually representing the
22300     * progress status of a given job/task.
22301     *
22302     * A progress bar may be horizontal or vertical. It may display an
22303     * icon besides it, as well as primary and @b units labels. The
22304     * former is meant to label the widget as a whole, while the
22305     * latter, which is formatted with floating point values (and thus
22306     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
22307     * units"</c>), is meant to label the widget's <b>progress
22308     * value</b>. Label, icon and unit strings/objects are @b optional
22309     * for progress bars.
22310     *
22311     * A progress bar may be @b inverted, in which state it gets its
22312     * values inverted, with high values being on the left or top and
22313     * low values on the right or bottom, as opposed to normally have
22314     * the low values on the former and high values on the latter,
22315     * respectively, for horizontal and vertical modes.
22316     *
22317     * The @b span of the progress, as set by
22318     * elm_progressbar_span_size_set(), is its length (horizontally or
22319     * vertically), unless one puts size hints on the widget to expand
22320     * on desired directions, by any container. That length will be
22321     * scaled by the object or applications scaling factor. At any
22322     * point code can query the progress bar for its value with
22323     * elm_progressbar_value_get().
22324     *
22325     * Available widget styles for progress bars:
22326     * - @c "default"
22327     * - @c "wheel" (simple style, no text, no progression, only
22328     *      "pulse" effect is available)
22329     *
22330     * Default contents parts of the progressbar widget that you can use for are:
22331     * @li "icon" - An icon of the progressbar
22332     *
22333     * Here is an example on its usage:
22334     * @li @ref progressbar_example
22335     */
22336
22337    /**
22338     * Add a new progress bar widget to the given parent Elementary
22339     * (container) object
22340     *
22341     * @param parent The parent object
22342     * @return a new progress bar widget handle or @c NULL, on errors
22343     *
22344     * This function inserts a new progress bar widget on the canvas.
22345     *
22346     * @ingroup Progressbar
22347     */
22348    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22349
22350    /**
22351     * Set whether a given progress bar widget is at "pulsing mode" or
22352     * not.
22353     *
22354     * @param obj The progress bar object
22355     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
22356     * @c EINA_FALSE to put it back to its default one
22357     *
22358     * By default, progress bars will display values from the low to
22359     * high value boundaries. There are, though, contexts in which the
22360     * state of progression of a given task is @b unknown.  For those,
22361     * one can set a progress bar widget to a "pulsing state", to give
22362     * the user an idea that some computation is being held, but
22363     * without exact progress values. In the default theme it will
22364     * animate its bar with the contents filling in constantly and back
22365     * to non-filled, in a loop. To start and stop this pulsing
22366     * animation, one has to explicitly call elm_progressbar_pulse().
22367     *
22368     * @see elm_progressbar_pulse_get()
22369     * @see elm_progressbar_pulse()
22370     *
22371     * @ingroup Progressbar
22372     */
22373    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
22374
22375    /**
22376     * Get whether a given progress bar widget is at "pulsing mode" or
22377     * not.
22378     *
22379     * @param obj The progress bar object
22380     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
22381     * if it's in the default one (and on errors)
22382     *
22383     * @ingroup Progressbar
22384     */
22385    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22386
22387    /**
22388     * Start/stop a given progress bar "pulsing" animation, if its
22389     * under that mode
22390     *
22391     * @param obj The progress bar object
22392     * @param state @c EINA_TRUE, to @b start the pulsing animation,
22393     * @c EINA_FALSE to @b stop it
22394     *
22395     * @note This call won't do anything if @p obj is not under "pulsing mode".
22396     *
22397     * @see elm_progressbar_pulse_set() for more details.
22398     *
22399     * @ingroup Progressbar
22400     */
22401    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
22402
22403    /**
22404     * Set the progress value (in percentage) on a given progress bar
22405     * widget
22406     *
22407     * @param obj The progress bar object
22408     * @param val The progress value (@b must be between @c 0.0 and @c
22409     * 1.0)
22410     *
22411     * Use this call to set progress bar levels.
22412     *
22413     * @note If you passes a value out of the specified range for @p
22414     * val, it will be interpreted as the @b closest of the @b boundary
22415     * values in the range.
22416     *
22417     * @ingroup Progressbar
22418     */
22419    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
22420
22421    /**
22422     * Get the progress value (in percentage) on a given progress bar
22423     * widget
22424     *
22425     * @param obj The progress bar object
22426     * @return The value of the progressbar
22427     *
22428     * @see elm_progressbar_value_set() for more details
22429     *
22430     * @ingroup Progressbar
22431     */
22432    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22433
22434    /**
22435     * Set the label of a given progress bar widget
22436     *
22437     * @param obj The progress bar object
22438     * @param label The text label string, in UTF-8
22439     *
22440     * @ingroup Progressbar
22441     * @deprecated use elm_object_text_set() instead.
22442     */
22443    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
22444
22445    /**
22446     * Get the label of a given progress bar widget
22447     *
22448     * @param obj The progressbar object
22449     * @return The text label string, in UTF-8
22450     *
22451     * @ingroup Progressbar
22452     * @deprecated use elm_object_text_set() instead.
22453     */
22454    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22455
22456    /**
22457     * Set the icon object of a given progress bar widget
22458     *
22459     * @param obj The progress bar object
22460     * @param icon The icon object
22461     *
22462     * Use this call to decorate @p obj with an icon next to it.
22463     *
22464     * @note Once the icon object is set, a previously set one will be
22465     * deleted. If you want to keep that old content object, use the
22466     * elm_progressbar_icon_unset() function.
22467     *
22468     * @see elm_progressbar_icon_get()
22469     * @deprecated use elm_object_part_content_set() instead.
22470     *
22471     * @ingroup Progressbar
22472     */
22473    EINA_DEPRECATED EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
22474
22475    /**
22476     * Retrieve the icon object set for a given progress bar widget
22477     *
22478     * @param obj The progress bar object
22479     * @return The icon object's handle, if @p obj had one set, or @c NULL,
22480     * otherwise (and on errors)
22481     *
22482     * @see elm_progressbar_icon_set() for more details
22483     * @deprecated use elm_object_part_content_get() instead.
22484     *
22485     * @ingroup Progressbar
22486     */
22487    EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22488
22489    /**
22490     * Unset an icon set on a given progress bar widget
22491     *
22492     * @param obj The progress bar object
22493     * @return The icon object that was being used, if any was set, or
22494     * @c NULL, otherwise (and on errors)
22495     *
22496     * This call will unparent and return the icon object which was set
22497     * for this widget, previously, on success.
22498     *
22499     * @see elm_progressbar_icon_set() for more details
22500     * @deprecated use elm_object_part_content_unset() instead.
22501     *
22502     * @ingroup Progressbar
22503     */
22504    EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22505
22506    /**
22507     * Set the (exact) length of the bar region of a given progress bar
22508     * widget
22509     *
22510     * @param obj The progress bar object
22511     * @param size The length of the progress bar's bar region
22512     *
22513     * This sets the minimum width (when in horizontal mode) or height
22514     * (when in vertical mode) of the actual bar area of the progress
22515     * bar @p obj. This in turn affects the object's minimum size. Use
22516     * this when you're not setting other size hints expanding on the
22517     * given direction (like weight and alignment hints) and you would
22518     * like it to have a specific size.
22519     *
22520     * @note Icon, label and unit text around @p obj will require their
22521     * own space, which will make @p obj to require more the @p size,
22522     * actually.
22523     *
22524     * @see elm_progressbar_span_size_get()
22525     *
22526     * @ingroup Progressbar
22527     */
22528    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
22529
22530    /**
22531     * Get the length set for the bar region of a given progress bar
22532     * widget
22533     *
22534     * @param obj The progress bar object
22535     * @return The length of the progress bar's bar region
22536     *
22537     * If that size was not set previously, with
22538     * elm_progressbar_span_size_set(), this call will return @c 0.
22539     *
22540     * @ingroup Progressbar
22541     */
22542    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22543
22544    /**
22545     * Set the format string for a given progress bar widget's units
22546     * label
22547     *
22548     * @param obj The progress bar object
22549     * @param format The format string for @p obj's units label
22550     *
22551     * If @c NULL is passed on @p format, it will make @p obj's units
22552     * area to be hidden completely. If not, it'll set the <b>format
22553     * string</b> for the units label's @b text. The units label is
22554     * provided a floating point value, so the units text is up display
22555     * at most one floating point falue. Note that the units label is
22556     * optional. Use a format string such as "%1.2f meters" for
22557     * example.
22558     *
22559     * @note The default format string for a progress bar is an integer
22560     * percentage, as in @c "%.0f %%".
22561     *
22562     * @see elm_progressbar_unit_format_get()
22563     *
22564     * @ingroup Progressbar
22565     */
22566    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
22567
22568    /**
22569     * Retrieve the format string set for a given progress bar widget's
22570     * units label
22571     *
22572     * @param obj The progress bar object
22573     * @return The format set string for @p obj's units label or
22574     * @c NULL, if none was set (and on errors)
22575     *
22576     * @see elm_progressbar_unit_format_set() for more details
22577     *
22578     * @ingroup Progressbar
22579     */
22580    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22581
22582    /**
22583     * Set the orientation of a given progress bar widget
22584     *
22585     * @param obj The progress bar object
22586     * @param horizontal Use @c EINA_TRUE to make @p obj to be
22587     * @b horizontal, @c EINA_FALSE to make it @b vertical
22588     *
22589     * Use this function to change how your progress bar is to be
22590     * disposed: vertically or horizontally.
22591     *
22592     * @see elm_progressbar_horizontal_get()
22593     *
22594     * @ingroup Progressbar
22595     */
22596    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22597
22598    /**
22599     * Retrieve the orientation of a given progress bar widget
22600     *
22601     * @param obj The progress bar object
22602     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22603     * @c EINA_FALSE if it's @b vertical (and on errors)
22604     *
22605     * @see elm_progressbar_horizontal_set() for more details
22606     *
22607     * @ingroup Progressbar
22608     */
22609    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22610
22611    /**
22612     * Invert a given progress bar widget's displaying values order
22613     *
22614     * @param obj The progress bar object
22615     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
22616     * @c EINA_FALSE to bring it back to default, non-inverted values.
22617     *
22618     * A progress bar may be @b inverted, in which state it gets its
22619     * values inverted, with high values being on the left or top and
22620     * low values on the right or bottom, as opposed to normally have
22621     * the low values on the former and high values on the latter,
22622     * respectively, for horizontal and vertical modes.
22623     *
22624     * @see elm_progressbar_inverted_get()
22625     *
22626     * @ingroup Progressbar
22627     */
22628    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
22629
22630    /**
22631     * Get whether a given progress bar widget's displaying values are
22632     * inverted or not
22633     *
22634     * @param obj The progress bar object
22635     * @return @c EINA_TRUE, if @p obj has inverted values,
22636     * @c EINA_FALSE otherwise (and on errors)
22637     *
22638     * @see elm_progressbar_inverted_set() for more details
22639     *
22640     * @ingroup Progressbar
22641     */
22642    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22643
22644    /**
22645     * @defgroup Separator Separator
22646     *
22647     * @brief Separator is a very thin object used to separate other objects.
22648     *
22649     * A separator can be vertical or horizontal.
22650     *
22651     * @ref tutorial_separator is a good example of how to use a separator.
22652     * @{
22653     */
22654    /**
22655     * @brief Add a separator object to @p parent
22656     *
22657     * @param parent The parent object
22658     *
22659     * @return The separator object, or NULL upon failure
22660     */
22661    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22662    /**
22663     * @brief Set the horizontal mode of a separator object
22664     *
22665     * @param obj The separator object
22666     * @param horizontal If true, the separator is horizontal
22667     */
22668    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22669    /**
22670     * @brief Get the horizontal mode of a separator object
22671     *
22672     * @param obj The separator object
22673     * @return If true, the separator is horizontal
22674     *
22675     * @see elm_separator_horizontal_set()
22676     */
22677    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22678    /**
22679     * @}
22680     */
22681
22682    /**
22683     * @defgroup Spinner Spinner
22684     * @ingroup Elementary
22685     *
22686     * @image html img/widget/spinner/preview-00.png
22687     * @image latex img/widget/spinner/preview-00.eps
22688     *
22689     * A spinner is a widget which allows the user to increase or decrease
22690     * numeric values using arrow buttons, or edit values directly, clicking
22691     * over it and typing the new value.
22692     *
22693     * By default the spinner will not wrap and has a label
22694     * of "%.0f" (just showing the integer value of the double).
22695     *
22696     * A spinner has a label that is formatted with floating
22697     * point values and thus accepts a printf-style format string, like
22698     * ā€œ%1.2f unitsā€.
22699     *
22700     * It also allows specific values to be replaced by pre-defined labels.
22701     *
22702     * Smart callbacks one can register to:
22703     *
22704     * - "changed" - Whenever the spinner value is changed.
22705     * - "delay,changed" - A short time after the value is changed by the user.
22706     *    This will be called only when the user stops dragging for a very short
22707     *    period or when they release their finger/mouse, so it avoids possibly
22708     *    expensive reactions to the value change.
22709     *
22710     * Available styles for it:
22711     * - @c "default";
22712     * - @c "vertical": up/down buttons at the right side and text left aligned.
22713     *
22714     * Here is an example on its usage:
22715     * @ref spinner_example
22716     */
22717
22718    /**
22719     * @addtogroup Spinner
22720     * @{
22721     */
22722
22723    /**
22724     * Add a new spinner widget to the given parent Elementary
22725     * (container) object.
22726     *
22727     * @param parent The parent object.
22728     * @return a new spinner widget handle or @c NULL, on errors.
22729     *
22730     * This function inserts a new spinner widget on the canvas.
22731     *
22732     * @ingroup Spinner
22733     *
22734     */
22735    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22736
22737    /**
22738     * Set the format string of the displayed label.
22739     *
22740     * @param obj The spinner object.
22741     * @param fmt The format string for the label display.
22742     *
22743     * If @c NULL, this sets the format to "%.0f". If not it sets the format
22744     * string for the label text. The label text is provided a floating point
22745     * value, so the label text can display up to 1 floating point value.
22746     * Note that this is optional.
22747     *
22748     * Use a format string such as "%1.2f meters" for example, and it will
22749     * display values like: "3.14 meters" for a value equal to 3.14159.
22750     *
22751     * Default is "%0.f".
22752     *
22753     * @see elm_spinner_label_format_get()
22754     *
22755     * @ingroup Spinner
22756     */
22757    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
22758
22759    /**
22760     * Get the label format of the spinner.
22761     *
22762     * @param obj The spinner object.
22763     * @return The text label format string in UTF-8.
22764     *
22765     * @see elm_spinner_label_format_set() for details.
22766     *
22767     * @ingroup Spinner
22768     */
22769    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22770
22771    /**
22772     * Set the minimum and maximum values for the spinner.
22773     *
22774     * @param obj The spinner object.
22775     * @param min The minimum value.
22776     * @param max The maximum value.
22777     *
22778     * Define the allowed range of values to be selected by the user.
22779     *
22780     * If actual value is less than @p min, it will be updated to @p min. If it
22781     * is bigger then @p max, will be updated to @p max. Actual value can be
22782     * get with elm_spinner_value_get().
22783     *
22784     * By default, min is equal to 0, and max is equal to 100.
22785     *
22786     * @warning Maximum must be greater than minimum.
22787     *
22788     * @see elm_spinner_min_max_get()
22789     *
22790     * @ingroup Spinner
22791     */
22792    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
22793
22794    /**
22795     * Get the minimum and maximum values of the spinner.
22796     *
22797     * @param obj The spinner object.
22798     * @param min Pointer where to store the minimum value.
22799     * @param max Pointer where to store the maximum value.
22800     *
22801     * @note If only one value is needed, the other pointer can be passed
22802     * as @c NULL.
22803     *
22804     * @see elm_spinner_min_max_set() for details.
22805     *
22806     * @ingroup Spinner
22807     */
22808    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
22809
22810    /**
22811     * Set the step used to increment or decrement the spinner value.
22812     *
22813     * @param obj The spinner object.
22814     * @param step The step value.
22815     *
22816     * This value will be incremented or decremented to the displayed value.
22817     * It will be incremented while the user keep right or top arrow pressed,
22818     * and will be decremented while the user keep left or bottom arrow pressed.
22819     *
22820     * The interval to increment / decrement can be set with
22821     * elm_spinner_interval_set().
22822     *
22823     * By default step value is equal to 1.
22824     *
22825     * @see elm_spinner_step_get()
22826     *
22827     * @ingroup Spinner
22828     */
22829    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
22830
22831    /**
22832     * Get the step used to increment or decrement the spinner value.
22833     *
22834     * @param obj The spinner object.
22835     * @return The step value.
22836     *
22837     * @see elm_spinner_step_get() for more details.
22838     *
22839     * @ingroup Spinner
22840     */
22841    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22842
22843    /**
22844     * Set the value the spinner displays.
22845     *
22846     * @param obj The spinner object.
22847     * @param val The value to be displayed.
22848     *
22849     * Value will be presented on the label following format specified with
22850     * elm_spinner_format_set().
22851     *
22852     * @warning The value must to be between min and max values. This values
22853     * are set by elm_spinner_min_max_set().
22854     *
22855     * @see elm_spinner_value_get().
22856     * @see elm_spinner_format_set().
22857     * @see elm_spinner_min_max_set().
22858     *
22859     * @ingroup Spinner
22860     */
22861    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
22862
22863    /**
22864     * Get the value displayed by the spinner.
22865     *
22866     * @param obj The spinner object.
22867     * @return The value displayed.
22868     *
22869     * @see elm_spinner_value_set() for details.
22870     *
22871     * @ingroup Spinner
22872     */
22873    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22874
22875    /**
22876     * Set whether the spinner should wrap when it reaches its
22877     * minimum or maximum value.
22878     *
22879     * @param obj The spinner object.
22880     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
22881     * disable it.
22882     *
22883     * Disabled by default. If disabled, when the user tries to increment the
22884     * value,
22885     * but displayed value plus step value is bigger than maximum value,
22886     * the spinner
22887     * won't allow it. The same happens when the user tries to decrement it,
22888     * but the value less step is less than minimum value.
22889     *
22890     * When wrap is enabled, in such situations it will allow these changes,
22891     * but will get the value that would be less than minimum and subtracts
22892     * from maximum. Or add the value that would be more than maximum to
22893     * the minimum.
22894     *
22895     * E.g.:
22896     * @li min value = 10
22897     * @li max value = 50
22898     * @li step value = 20
22899     * @li displayed value = 20
22900     *
22901     * When the user decrement value (using left or bottom arrow), it will
22902     * displays @c 40, because max - (min - (displayed - step)) is
22903     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
22904     *
22905     * @see elm_spinner_wrap_get().
22906     *
22907     * @ingroup Spinner
22908     */
22909    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
22910
22911    /**
22912     * Get whether the spinner should wrap when it reaches its
22913     * minimum or maximum value.
22914     *
22915     * @param obj The spinner object
22916     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
22917     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22918     *
22919     * @see elm_spinner_wrap_set() for details.
22920     *
22921     * @ingroup Spinner
22922     */
22923    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22924
22925    /**
22926     * Set whether the spinner can be directly edited by the user or not.
22927     *
22928     * @param obj The spinner object.
22929     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
22930     * don't allow users to edit it directly.
22931     *
22932     * Spinner objects can have edition @b disabled, in which state they will
22933     * be changed only by arrows.
22934     * Useful for contexts
22935     * where you don't want your users to interact with it writting the value.
22936     * Specially
22937     * when using special values, the user can see real value instead
22938     * of special label on edition.
22939     *
22940     * It's enabled by default.
22941     *
22942     * @see elm_spinner_editable_get()
22943     *
22944     * @ingroup Spinner
22945     */
22946    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22947
22948    /**
22949     * Get whether the spinner can be directly edited by the user or not.
22950     *
22951     * @param obj The spinner object.
22952     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
22953     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22954     *
22955     * @see elm_spinner_editable_set() for details.
22956     *
22957     * @ingroup Spinner
22958     */
22959    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22960
22961    /**
22962     * Set a special string to display in the place of the numerical value.
22963     *
22964     * @param obj The spinner object.
22965     * @param value The value to be replaced.
22966     * @param label The label to be used.
22967     *
22968     * It's useful for cases when a user should select an item that is
22969     * better indicated by a label than a value. For example, weekdays or months.
22970     *
22971     * E.g.:
22972     * @code
22973     * sp = elm_spinner_add(win);
22974     * elm_spinner_min_max_set(sp, 1, 3);
22975     * elm_spinner_special_value_add(sp, 1, "January");
22976     * elm_spinner_special_value_add(sp, 2, "February");
22977     * elm_spinner_special_value_add(sp, 3, "March");
22978     * evas_object_show(sp);
22979     * @endcode
22980     *
22981     * @ingroup Spinner
22982     */
22983    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
22984
22985    /**
22986     * Set the interval on time updates for an user mouse button hold
22987     * on spinner widgets' arrows.
22988     *
22989     * @param obj The spinner object.
22990     * @param interval The (first) interval value in seconds.
22991     *
22992     * This interval value is @b decreased while the user holds the
22993     * mouse pointer either incrementing or decrementing spinner's value.
22994     *
22995     * This helps the user to get to a given value distant from the
22996     * current one easier/faster, as it will start to change quicker and
22997     * quicker on mouse button holds.
22998     *
22999     * The calculation for the next change interval value, starting from
23000     * the one set with this call, is the previous interval divided by
23001     * @c 1.05, so it decreases a little bit.
23002     *
23003     * The default starting interval value for automatic changes is
23004     * @c 0.85 seconds.
23005     *
23006     * @see elm_spinner_interval_get()
23007     *
23008     * @ingroup Spinner
23009     */
23010    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23011
23012    /**
23013     * Get the interval on time updates for an user mouse button hold
23014     * on spinner widgets' arrows.
23015     *
23016     * @param obj The spinner object.
23017     * @return The (first) interval value, in seconds, set on it.
23018     *
23019     * @see elm_spinner_interval_set() for more details.
23020     *
23021     * @ingroup Spinner
23022     */
23023    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23024
23025    /**
23026     * @}
23027     */
23028
23029    /**
23030     * @defgroup Index Index
23031     *
23032     * @image html img/widget/index/preview-00.png
23033     * @image latex img/widget/index/preview-00.eps
23034     *
23035     * An index widget gives you an index for fast access to whichever
23036     * group of other UI items one might have. It's a list of text
23037     * items (usually letters, for alphabetically ordered access).
23038     *
23039     * Index widgets are by default hidden and just appear when the
23040     * user clicks over it's reserved area in the canvas. In its
23041     * default theme, it's an area one @ref Fingers "finger" wide on
23042     * the right side of the index widget's container.
23043     *
23044     * When items on the index are selected, smart callbacks get
23045     * called, so that its user can make other container objects to
23046     * show a given area or child object depending on the index item
23047     * selected. You'd probably be using an index together with @ref
23048     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
23049     * "general grids".
23050     *
23051     * Smart events one  can add callbacks for are:
23052     * - @c "changed" - When the selected index item changes. @c
23053     *      event_info is the selected item's data pointer.
23054     * - @c "delay,changed" - When the selected index item changes, but
23055     *      after a small idling period. @c event_info is the selected
23056     *      item's data pointer.
23057     * - @c "selected" - When the user releases a mouse button and
23058     *      selects an item. @c event_info is the selected item's data
23059     *      pointer.
23060     * - @c "level,up" - when the user moves a finger from the first
23061     *      level to the second level
23062     * - @c "level,down" - when the user moves a finger from the second
23063     *      level to the first level
23064     *
23065     * The @c "delay,changed" event is so that it'll wait a small time
23066     * before actually reporting those events and, moreover, just the
23067     * last event happening on those time frames will actually be
23068     * reported.
23069     *
23070     * Here are some examples on its usage:
23071     * @li @ref index_example_01
23072     * @li @ref index_example_02
23073     */
23074
23075    /**
23076     * @addtogroup Index
23077     * @{
23078     */
23079
23080    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
23081
23082    /**
23083     * Add a new index widget to the given parent Elementary
23084     * (container) object
23085     *
23086     * @param parent The parent object
23087     * @return a new index widget handle or @c NULL, on errors
23088     *
23089     * This function inserts a new index widget on the canvas.
23090     *
23091     * @ingroup Index
23092     */
23093    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23094
23095    /**
23096     * Set whether a given index widget is or not visible,
23097     * programatically.
23098     *
23099     * @param obj The index object
23100     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
23101     *
23102     * Not to be confused with visible as in @c evas_object_show() --
23103     * visible with regard to the widget's auto hiding feature.
23104     *
23105     * @see elm_index_active_get()
23106     *
23107     * @ingroup Index
23108     */
23109    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
23110
23111    /**
23112     * Get whether a given index widget is currently visible or not.
23113     *
23114     * @param obj The index object
23115     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
23116     *
23117     * @see elm_index_active_set() for more details
23118     *
23119     * @ingroup Index
23120     */
23121    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23122
23123    /**
23124     * Set the items level for a given index widget.
23125     *
23126     * @param obj The index object.
23127     * @param level @c 0 or @c 1, the currently implemented levels.
23128     *
23129     * @see elm_index_item_level_get()
23130     *
23131     * @ingroup Index
23132     */
23133    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
23134
23135    /**
23136     * Get the items level set for a given index widget.
23137     *
23138     * @param obj The index object.
23139     * @return @c 0 or @c 1, which are the levels @p obj might be at.
23140     *
23141     * @see elm_index_item_level_set() for more information
23142     *
23143     * @ingroup Index
23144     */
23145    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23146
23147    /**
23148     * Returns the last selected item, for a given index widget.
23149     *
23150     * @param obj The index object.
23151     * @return The last item @b selected on @p obj (or @c NULL, on errors).
23152     *
23153     * @ingroup Index
23154     */
23155    EAPI Elm_Index_Item *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
23156
23157    /**
23158     * Append a new item on a given index widget.
23159     *
23160     * @param obj The index object.
23161     * @param letter Letter under which the item should be indexed
23162     * @param item The item data to set for the index's item
23163     *
23164     * Despite the most common usage of the @p letter argument is for
23165     * single char strings, one could use arbitrary strings as index
23166     * entries.
23167     *
23168     * @c item will be the pointer returned back on @c "changed", @c
23169     * "delay,changed" and @c "selected" smart events.
23170     *
23171     * @ingroup Index
23172     */
23173    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
23174
23175    /**
23176     * Prepend a new item on a given index widget.
23177     *
23178     * @param obj The index object.
23179     * @param letter Letter under which the item should be indexed
23180     * @param item The item data to set for the index's item
23181     *
23182     * Despite the most common usage of the @p letter argument is for
23183     * single char strings, one could use arbitrary strings as index
23184     * entries.
23185     *
23186     * @c item will be the pointer returned back on @c "changed", @c
23187     * "delay,changed" and @c "selected" smart events.
23188     *
23189     * @ingroup Index
23190     */
23191    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
23192
23193    /**
23194     * Append a new item, on a given index widget, <b>after the item
23195     * having @p relative as data</b>.
23196     *
23197     * @param obj The index object.
23198     * @param letter Letter under which the item should be indexed
23199     * @param item The item data to set for the index's item
23200     * @param relative The index item to be the predecessor of this new one
23201     *
23202     * Despite the most common usage of the @p letter argument is for
23203     * single char strings, one could use arbitrary strings as index
23204     * entries.
23205     *
23206     * @c item will be the pointer returned back on @c "changed", @c
23207     * "delay,changed" and @c "selected" smart events.
23208     *
23209     * @note If @p relative is @c NULL this function will behave as
23210     * elm_index_item_append().
23211     *
23212     * @ingroup Index
23213     */
23214    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const Elm_Index_Item *relative) EINA_ARG_NONNULL(1);
23215
23216    /**
23217     * Prepend a new item, on a given index widget, <b>after the item
23218     * having @p relative as data</b>.
23219     *
23220     * @param obj The index object.
23221     * @param letter Letter under which the item should be indexed
23222     * @param item The item data to set for the index's item
23223     * @param relative The index item to be the successor of this new one
23224     *
23225     * Despite the most common usage of the @p letter argument is for
23226     * single char strings, one could use arbitrary strings as index
23227     * entries.
23228     *
23229     * @c item will be the pointer returned back on @c "changed", @c
23230     * "delay,changed" and @c "selected" smart events.
23231     *
23232     * @note If @p relative is @c NULL this function will behave as
23233     * elm_index_item_prepend().
23234     *
23235     * @ingroup Index
23236     */
23237    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const Elm_Index_Item *relative) EINA_ARG_NONNULL(1);
23238
23239    /**
23240     * Insert a new item into the given index widget, using @p cmp_func
23241     * function to sort items (by item handles).
23242     *
23243     * @param obj The index object.
23244     * @param letter Letter under which the item should be indexed
23245     * @param item The item data to set for the index's item
23246     * @param cmp_func The comparing function to be used to sort index
23247     * items <b>by #Elm_Index_Item item handles</b>
23248     * @param cmp_data_func A @b fallback function to be called for the
23249     * sorting of index items <b>by item data</b>). It will be used
23250     * when @p cmp_func returns @c 0 (equality), which means an index
23251     * item with provided item data already exists. To decide which
23252     * data item should be pointed to by the index item in question, @p
23253     * cmp_data_func will be used. If @p cmp_data_func returns a
23254     * non-negative value, the previous index item data will be
23255     * replaced by the given @p item pointer. If the previous data need
23256     * to be freed, it should be done by the @p cmp_data_func function,
23257     * because all references to it will be lost. If this function is
23258     * not provided (@c NULL is given), index items will be @b
23259     * duplicated, if @p cmp_func returns @c 0.
23260     *
23261     * Despite the most common usage of the @p letter argument is for
23262     * single char strings, one could use arbitrary strings as index
23263     * entries.
23264     *
23265     * @c item will be the pointer returned back on @c "changed", @c
23266     * "delay,changed" and @c "selected" smart events.
23267     *
23268     * @ingroup Index
23269     */
23270    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);
23271
23272    /**
23273     * Remove an item from a given index widget, <b>to be referenced by
23274     * it's data value</b>.
23275     *
23276     * @param obj The index object
23277     * @param item The item to be removed from @p obj
23278     *
23279     * If a deletion callback is set, via elm_index_item_del_cb_set(),
23280     * that callback function will be called by this one.
23281     *
23282     * @ingroup Index
23283     */
23284    EAPI void            elm_index_item_del(Evas_Object *obj, Elm_Index_Item *item) EINA_ARG_NONNULL(1);
23285
23286    /**
23287     * Find a given index widget's item, <b>using item data</b>.
23288     *
23289     * @param obj The index object
23290     * @param item The item data pointed to by the desired index item
23291     * @return The index item handle, if found, or @c NULL otherwise
23292     *
23293     * @ingroup Index
23294     */
23295    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
23296
23297    /**
23298     * Removes @b all items from a given index widget.
23299     *
23300     * @param obj The index object.
23301     *
23302     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
23303     * that callback function will be called for each item in @p obj.
23304     *
23305     * @ingroup Index
23306     */
23307    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23308
23309    /**
23310     * Go to a given items level on a index widget
23311     *
23312     * @param obj The index object
23313     * @param level The index level (one of @c 0 or @c 1)
23314     *
23315     * @ingroup Index
23316     */
23317    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
23318
23319    /**
23320     * Return the data associated with a given index widget item
23321     *
23322     * @param it The index widget item handle
23323     * @return The data associated with @p it
23324     *
23325     * @see elm_index_item_data_set()
23326     *
23327     * @ingroup Index
23328     */
23329    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
23330
23331    /**
23332     * Set the data associated with a given index widget item
23333     *
23334     * @param it The index widget item handle
23335     * @param data The new data pointer to set to @p it
23336     *
23337     * This sets new item data on @p it.
23338     *
23339     * @warning The old data pointer won't be touched by this function, so
23340     * the user had better to free that old data himself/herself.
23341     *
23342     * @ingroup Index
23343     */
23344    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
23345
23346    /**
23347     * Set the function to be called when a given index widget item is freed.
23348     *
23349     * @param it The item to set the callback on
23350     * @param func The function to call on the item's deletion
23351     *
23352     * When called, @p func will have both @c data and @c event_info
23353     * arguments with the @p it item's data value and, naturally, the
23354     * @c obj argument with a handle to the parent index widget.
23355     *
23356     * @ingroup Index
23357     */
23358    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
23359
23360    /**
23361     * Get the letter (string) set on a given index widget item.
23362     *
23363     * @param it The index item handle
23364     * @return The letter string set on @p it
23365     *
23366     * @ingroup Index
23367     */
23368    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
23369
23370    /**
23371     * @}
23372     */
23373
23374    /**
23375     * @defgroup Photocam Photocam
23376     *
23377     * @image html img/widget/photocam/preview-00.png
23378     * @image latex img/widget/photocam/preview-00.eps
23379     *
23380     * This is a widget specifically for displaying high-resolution digital
23381     * camera photos giving speedy feedback (fast load), low memory footprint
23382     * and zooming and panning as well as fitting logic. It is entirely focused
23383     * on jpeg images, and takes advantage of properties of the jpeg format (via
23384     * evas loader features in the jpeg loader).
23385     *
23386     * Signals that you can add callbacks for are:
23387     * @li "clicked" - This is called when a user has clicked the photo without
23388     *                 dragging around.
23389     * @li "press" - This is called when a user has pressed down on the photo.
23390     * @li "longpressed" - This is called when a user has pressed down on the
23391     *                     photo for a long time without dragging around.
23392     * @li "clicked,double" - This is called when a user has double-clicked the
23393     *                        photo.
23394     * @li "load" - Photo load begins.
23395     * @li "loaded" - This is called when the image file load is complete for the
23396     *                first view (low resolution blurry version).
23397     * @li "load,detail" - Photo detailed data load begins.
23398     * @li "loaded,detail" - This is called when the image file load is complete
23399     *                      for the detailed image data (full resolution needed).
23400     * @li "zoom,start" - Zoom animation started.
23401     * @li "zoom,stop" - Zoom animation stopped.
23402     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
23403     * @li "scroll" - the content has been scrolled (moved)
23404     * @li "scroll,anim,start" - scrolling animation has started
23405     * @li "scroll,anim,stop" - scrolling animation has stopped
23406     * @li "scroll,drag,start" - dragging the contents around has started
23407     * @li "scroll,drag,stop" - dragging the contents around has stopped
23408     *
23409     * @ref tutorial_photocam shows the API in action.
23410     * @{
23411     */
23412
23413    /**
23414     * @brief Types of zoom available.
23415     */
23416    typedef enum _Elm_Photocam_Zoom_Mode
23417      {
23418         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_photocam_zoom_set */
23419         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
23420         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
23421         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN, /**< Unzoom until photo fits in photocam */
23422         ELM_PHOTOCAM_ZOOM_MODE_LAST
23423      } Elm_Photocam_Zoom_Mode;
23424
23425    /**
23426     * @brief Add a new Photocam object
23427     *
23428     * @param parent The parent object
23429     * @return The new object or NULL if it cannot be created
23430     */
23431    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23432
23433    /**
23434     * @brief Set the photo file to be shown
23435     *
23436     * @param obj The photocam object
23437     * @param file The photo file
23438     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
23439     *
23440     * This sets (and shows) the specified file (with a relative or absolute
23441     * path) and will return a load error (same error that
23442     * evas_object_image_load_error_get() will return). The image will change and
23443     * adjust its size at this point and begin a background load process for this
23444     * photo that at some time in the future will be displayed at the full
23445     * quality needed.
23446     */
23447    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
23448
23449    /**
23450     * @brief Returns the path of the current image file
23451     *
23452     * @param obj The photocam object
23453     * @return Returns the path
23454     *
23455     * @see elm_photocam_file_set()
23456     */
23457    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23458
23459    /**
23460     * @brief Set the zoom level of the photo
23461     *
23462     * @param obj The photocam object
23463     * @param zoom The zoom level to set
23464     *
23465     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
23466     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
23467     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
23468     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
23469     * 16, 32, etc.).
23470     */
23471    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
23472
23473    /**
23474     * @brief Get the zoom level of the photo
23475     *
23476     * @param obj The photocam object
23477     * @return The current zoom level
23478     *
23479     * This returns the current zoom level of the photocam object. Note that if
23480     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
23481     * (which is the default), the zoom level may be changed at any time by the
23482     * photocam object itself to account for photo size and photocam viewpoer
23483     * size.
23484     *
23485     * @see elm_photocam_zoom_set()
23486     * @see elm_photocam_zoom_mode_set()
23487     */
23488    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23489
23490    /**
23491     * @brief Set the zoom mode
23492     *
23493     * @param obj The photocam object
23494     * @param mode The desired mode
23495     *
23496     * This sets the zoom mode to manual or one of several automatic levels.
23497     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
23498     * elm_photocam_zoom_set() and will stay at that level until changed by code
23499     * or until zoom mode is changed. This is the default mode. The Automatic
23500     * modes will allow the photocam object to automatically adjust zoom mode
23501     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
23502     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
23503     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
23504     * pixels within the frame are left unfilled.
23505     */
23506    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
23507
23508    /**
23509     * @brief Get the zoom mode
23510     *
23511     * @param obj The photocam object
23512     * @return The current zoom mode
23513     *
23514     * This gets the current zoom mode of the photocam object.
23515     *
23516     * @see elm_photocam_zoom_mode_set()
23517     */
23518    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23519
23520    /**
23521     * @brief Get the current image pixel width and height
23522     *
23523     * @param obj The photocam object
23524     * @param w A pointer to the width return
23525     * @param h A pointer to the height return
23526     *
23527     * This gets the current photo pixel width and height (for the original).
23528     * The size will be returned in the integers @p w and @p h that are pointed
23529     * to.
23530     */
23531    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
23532
23533    /**
23534     * @brief Get the area of the image that is currently shown
23535     *
23536     * @param obj
23537     * @param x A pointer to the X-coordinate of region
23538     * @param y A pointer to the Y-coordinate of region
23539     * @param w A pointer to the width
23540     * @param h A pointer to the height
23541     *
23542     * @see elm_photocam_image_region_show()
23543     * @see elm_photocam_image_region_bring_in()
23544     */
23545    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
23546
23547    /**
23548     * @brief Set the viewed portion of the image
23549     *
23550     * @param obj The photocam object
23551     * @param x X-coordinate of region in image original pixels
23552     * @param y Y-coordinate of region in image original pixels
23553     * @param w Width of region in image original pixels
23554     * @param h Height of region in image original pixels
23555     *
23556     * This shows the region of the image without using animation.
23557     */
23558    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
23559
23560    /**
23561     * @brief Bring in the viewed portion of the image
23562     *
23563     * @param obj The photocam object
23564     * @param x X-coordinate of region in image original pixels
23565     * @param y Y-coordinate of region in image original pixels
23566     * @param w Width of region in image original pixels
23567     * @param h Height of region in image original pixels
23568     *
23569     * This shows the region of the image using animation.
23570     */
23571    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
23572
23573    /**
23574     * @brief Set the paused state for photocam
23575     *
23576     * @param obj The photocam object
23577     * @param paused The pause state to set
23578     *
23579     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
23580     * photocam. The default is off. This will stop zooming using animation on
23581     * zoom levels changes and change instantly. This will stop any existing
23582     * animations that are running.
23583     */
23584    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
23585
23586    /**
23587     * @brief Get the paused state for photocam
23588     *
23589     * @param obj The photocam object
23590     * @return The current paused state
23591     *
23592     * This gets the current paused state for the photocam object.
23593     *
23594     * @see elm_photocam_paused_set()
23595     */
23596    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23597
23598    /**
23599     * @brief Get the internal low-res image used for photocam
23600     *
23601     * @param obj The photocam object
23602     * @return The internal image object handle, or NULL if none exists
23603     *
23604     * This gets the internal image object inside photocam. Do not modify it. It
23605     * is for inspection only, and hooking callbacks to. Nothing else. It may be
23606     * deleted at any time as well.
23607     */
23608    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23609
23610    /**
23611     * @brief Set the photocam scrolling bouncing.
23612     *
23613     * @param obj The photocam object
23614     * @param h_bounce bouncing for horizontal
23615     * @param v_bounce bouncing for vertical
23616     */
23617    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
23618
23619    /**
23620     * @brief Get the photocam scrolling bouncing.
23621     *
23622     * @param obj The photocam object
23623     * @param h_bounce bouncing for horizontal
23624     * @param v_bounce bouncing for vertical
23625     *
23626     * @see elm_photocam_bounce_set()
23627     */
23628    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
23629
23630    /**
23631     * @}
23632     */
23633
23634    /**
23635     * @defgroup Map Map
23636     * @ingroup Elementary
23637     *
23638     * @image html img/widget/map/preview-00.png
23639     * @image latex img/widget/map/preview-00.eps
23640     *
23641     * This is a widget specifically for displaying a map. It uses basically
23642     * OpenStreetMap provider http://www.openstreetmap.org/,
23643     * but custom providers can be added.
23644     *
23645     * It supports some basic but yet nice features:
23646     * @li zoom and scroll
23647     * @li markers with content to be displayed when user clicks over it
23648     * @li group of markers
23649     * @li routes
23650     *
23651     * Smart callbacks one can listen to:
23652     *
23653     * - "clicked" - This is called when a user has clicked the map without
23654     *   dragging around.
23655     * - "press" - This is called when a user has pressed down on the map.
23656     * - "longpressed" - This is called when a user has pressed down on the map
23657     *   for a long time without dragging around.
23658     * - "clicked,double" - This is called when a user has double-clicked
23659     *   the map.
23660     * - "load,detail" - Map detailed data load begins.
23661     * - "loaded,detail" - This is called when all currently visible parts of
23662     *   the map are loaded.
23663     * - "zoom,start" - Zoom animation started.
23664     * - "zoom,stop" - Zoom animation stopped.
23665     * - "zoom,change" - Zoom changed when using an auto zoom mode.
23666     * - "scroll" - the content has been scrolled (moved).
23667     * - "scroll,anim,start" - scrolling animation has started.
23668     * - "scroll,anim,stop" - scrolling animation has stopped.
23669     * - "scroll,drag,start" - dragging the contents around has started.
23670     * - "scroll,drag,stop" - dragging the contents around has stopped.
23671     * - "downloaded" - This is called when all currently required map images
23672     *   are downloaded.
23673     * - "route,load" - This is called when route request begins.
23674     * - "route,loaded" - This is called when route request ends.
23675     * - "name,load" - This is called when name request begins.
23676     * - "name,loaded- This is called when name request ends.
23677     *
23678     * Available style for map widget:
23679     * - @c "default"
23680     *
23681     * Available style for markers:
23682     * - @c "radio"
23683     * - @c "radio2"
23684     * - @c "empty"
23685     *
23686     * Available style for marker bubble:
23687     * - @c "default"
23688     *
23689     * List of examples:
23690     * @li @ref map_example_01
23691     * @li @ref map_example_02
23692     * @li @ref map_example_03
23693     */
23694
23695    /**
23696     * @addtogroup Map
23697     * @{
23698     */
23699
23700    /**
23701     * @enum _Elm_Map_Zoom_Mode
23702     * @typedef Elm_Map_Zoom_Mode
23703     *
23704     * Set map's zoom behavior. It can be set to manual or automatic.
23705     *
23706     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
23707     *
23708     * Values <b> don't </b> work as bitmask, only one can be choosen.
23709     *
23710     * @note Valid sizes are 2^zoom, consequently the map may be smaller
23711     * than the scroller view.
23712     *
23713     * @see elm_map_zoom_mode_set()
23714     * @see elm_map_zoom_mode_get()
23715     *
23716     * @ingroup Map
23717     */
23718    typedef enum _Elm_Map_Zoom_Mode
23719      {
23720         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controlled manually by elm_map_zoom_set(). It's set by default. */
23721         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
23722         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
23723         ELM_MAP_ZOOM_MODE_LAST
23724      } Elm_Map_Zoom_Mode;
23725
23726    /**
23727     * @enum _Elm_Map_Route_Sources
23728     * @typedef Elm_Map_Route_Sources
23729     *
23730     * Set route service to be used. By default used source is
23731     * #ELM_MAP_ROUTE_SOURCE_YOURS.
23732     *
23733     * @see elm_map_route_source_set()
23734     * @see elm_map_route_source_get()
23735     *
23736     * @ingroup Map
23737     */
23738    typedef enum _Elm_Map_Route_Sources
23739      {
23740         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
23741         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. */
23742         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
23743         ELM_MAP_ROUTE_SOURCE_LAST
23744      } Elm_Map_Route_Sources;
23745
23746    typedef enum _Elm_Map_Name_Sources
23747      {
23748         ELM_MAP_NAME_SOURCE_NOMINATIM,
23749         ELM_MAP_NAME_SOURCE_LAST
23750      } Elm_Map_Name_Sources;
23751
23752    /**
23753     * @enum _Elm_Map_Route_Type
23754     * @typedef Elm_Map_Route_Type
23755     *
23756     * Set type of transport used on route.
23757     *
23758     * @see elm_map_route_add()
23759     *
23760     * @ingroup Map
23761     */
23762    typedef enum _Elm_Map_Route_Type
23763      {
23764         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
23765         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
23766         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
23767         ELM_MAP_ROUTE_TYPE_LAST
23768      } Elm_Map_Route_Type;
23769
23770    /**
23771     * @enum _Elm_Map_Route_Method
23772     * @typedef Elm_Map_Route_Method
23773     *
23774     * Set the routing method, what should be priorized, time or distance.
23775     *
23776     * @see elm_map_route_add()
23777     *
23778     * @ingroup Map
23779     */
23780    typedef enum _Elm_Map_Route_Method
23781      {
23782         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
23783         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
23784         ELM_MAP_ROUTE_METHOD_LAST
23785      } Elm_Map_Route_Method;
23786
23787    typedef enum _Elm_Map_Name_Method
23788      {
23789         ELM_MAP_NAME_METHOD_SEARCH,
23790         ELM_MAP_NAME_METHOD_REVERSE,
23791         ELM_MAP_NAME_METHOD_LAST
23792      } Elm_Map_Name_Method;
23793
23794    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(). */
23795    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(). */
23796    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(). */
23797    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(). */
23798    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
23799    typedef struct _Elm_Map_Track           Elm_Map_Track;
23800
23801    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. */
23802    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
23803    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
23804    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
23805
23806    typedef char        *(*ElmMapModuleSourceFunc) (void);
23807    typedef int          (*ElmMapModuleZoomMinFunc) (void);
23808    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
23809    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
23810    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
23811    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
23812    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
23813    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
23814    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
23815
23816    /**
23817     * Add a new map widget to the given parent Elementary (container) object.
23818     *
23819     * @param parent The parent object.
23820     * @return a new map widget handle or @c NULL, on errors.
23821     *
23822     * This function inserts a new map widget on the canvas.
23823     *
23824     * @ingroup Map
23825     */
23826    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23827
23828    /**
23829     * Set the zoom level of the map.
23830     *
23831     * @param obj The map object.
23832     * @param zoom The zoom level to set.
23833     *
23834     * This sets the zoom level.
23835     *
23836     * It will respect limits defined by elm_map_source_zoom_min_set() and
23837     * elm_map_source_zoom_max_set().
23838     *
23839     * By default these values are 0 (world map) and 18 (maximum zoom).
23840     *
23841     * This function should be used when zoom mode is set to
23842     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
23843     * with elm_map_zoom_mode_set().
23844     *
23845     * @see elm_map_zoom_mode_set().
23846     * @see elm_map_zoom_get().
23847     *
23848     * @ingroup Map
23849     */
23850    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23851
23852    /**
23853     * Get the zoom level of the map.
23854     *
23855     * @param obj The map object.
23856     * @return The current zoom level.
23857     *
23858     * This returns the current zoom level of the map object.
23859     *
23860     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
23861     * (which is the default), the zoom level may be changed at any time by the
23862     * map object itself to account for map size and map viewport size.
23863     *
23864     * @see elm_map_zoom_set() for details.
23865     *
23866     * @ingroup Map
23867     */
23868    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23869
23870    /**
23871     * Set the zoom mode used by the map object.
23872     *
23873     * @param obj The map object.
23874     * @param mode The zoom mode of the map, being it one of
23875     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
23876     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
23877     *
23878     * This sets the zoom mode to manual or one of the automatic levels.
23879     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
23880     * elm_map_zoom_set() and will stay at that level until changed by code
23881     * or until zoom mode is changed. This is the default mode.
23882     *
23883     * The Automatic modes will allow the map object to automatically
23884     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
23885     * adjust zoom so the map fits inside the scroll frame with no pixels
23886     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
23887     * ensure no pixels within the frame are left unfilled. Do not forget that
23888     * the valid sizes are 2^zoom, consequently the map may be smaller than
23889     * the scroller view.
23890     *
23891     * @see elm_map_zoom_set()
23892     *
23893     * @ingroup Map
23894     */
23895    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
23896
23897    /**
23898     * Get the zoom mode used by the map object.
23899     *
23900     * @param obj The map object.
23901     * @return The zoom mode of the map, being it one of
23902     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
23903     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
23904     *
23905     * This function returns the current zoom mode used by the map object.
23906     *
23907     * @see elm_map_zoom_mode_set() for more details.
23908     *
23909     * @ingroup Map
23910     */
23911    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23912
23913    /**
23914     * Get the current coordinates of the map.
23915     *
23916     * @param obj The map object.
23917     * @param lon Pointer where to store longitude.
23918     * @param lat Pointer where to store latitude.
23919     *
23920     * This gets the current center coordinates of the map object. It can be
23921     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
23922     *
23923     * @see elm_map_geo_region_bring_in()
23924     * @see elm_map_geo_region_show()
23925     *
23926     * @ingroup Map
23927     */
23928    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
23929
23930    /**
23931     * Animatedly bring in given coordinates to the center of the map.
23932     *
23933     * @param obj The map object.
23934     * @param lon Longitude to center at.
23935     * @param lat Latitude to center at.
23936     *
23937     * This causes map to jump to the given @p lat and @p lon coordinates
23938     * and show it (by scrolling) in the center of the viewport, if it is not
23939     * already centered. This will use animation to do so and take a period
23940     * of time to complete.
23941     *
23942     * @see elm_map_geo_region_show() for a function to avoid animation.
23943     * @see elm_map_geo_region_get()
23944     *
23945     * @ingroup Map
23946     */
23947    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23948
23949    /**
23950     * Show the given coordinates at the center of the map, @b immediately.
23951     *
23952     * @param obj The map object.
23953     * @param lon Longitude to center at.
23954     * @param lat Latitude to center at.
23955     *
23956     * This causes map to @b redraw its viewport's contents to the
23957     * region contining the given @p lat and @p lon, that will be moved to the
23958     * center of the map.
23959     *
23960     * @see elm_map_geo_region_bring_in() for a function to move with animation.
23961     * @see elm_map_geo_region_get()
23962     *
23963     * @ingroup Map
23964     */
23965    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23966
23967    /**
23968     * Pause or unpause the map.
23969     *
23970     * @param obj The map object.
23971     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
23972     * to unpause it.
23973     *
23974     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
23975     * for map.
23976     *
23977     * The default is off.
23978     *
23979     * This will stop zooming using animation, changing zoom levels will
23980     * change instantly. This will stop any existing animations that are running.
23981     *
23982     * @see elm_map_paused_get()
23983     *
23984     * @ingroup Map
23985     */
23986    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
23987
23988    /**
23989     * Get a value whether map is paused or not.
23990     *
23991     * @param obj The map object.
23992     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
23993     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
23994     *
23995     * This gets the current paused state for the map object.
23996     *
23997     * @see elm_map_paused_set() for details.
23998     *
23999     * @ingroup Map
24000     */
24001    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24002
24003    /**
24004     * Set to show markers during zoom level changes or not.
24005     *
24006     * @param obj The map object.
24007     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
24008     * to show them.
24009     *
24010     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
24011     * for map.
24012     *
24013     * The default is off.
24014     *
24015     * This will stop zooming using animation, changing zoom levels will
24016     * change instantly. This will stop any existing animations that are running.
24017     *
24018     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
24019     * for the markers.
24020     *
24021     * The default  is off.
24022     *
24023     * Enabling it will force the map to stop displaying the markers during
24024     * zoom level changes. Set to on if you have a large number of markers.
24025     *
24026     * @see elm_map_paused_markers_get()
24027     *
24028     * @ingroup Map
24029     */
24030    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
24031
24032    /**
24033     * Get a value whether markers will be displayed on zoom level changes or not
24034     *
24035     * @param obj The map object.
24036     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
24037     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
24038     *
24039     * This gets the current markers paused state for the map object.
24040     *
24041     * @see elm_map_paused_markers_set() for details.
24042     *
24043     * @ingroup Map
24044     */
24045    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24046
24047    /**
24048     * Get the information of downloading status.
24049     *
24050     * @param obj The map object.
24051     * @param try_num Pointer where to store number of tiles being downloaded.
24052     * @param finish_num Pointer where to store number of tiles successfully
24053     * downloaded.
24054     *
24055     * This gets the current downloading status for the map object, the number
24056     * of tiles being downloaded and the number of tiles already downloaded.
24057     *
24058     * @ingroup Map
24059     */
24060    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
24061
24062    /**
24063     * Convert a pixel coordinate (x,y) into a geographic coordinate
24064     * (longitude, latitude).
24065     *
24066     * @param obj The map object.
24067     * @param x the coordinate.
24068     * @param y the coordinate.
24069     * @param size the size in pixels of the map.
24070     * The map is a square and generally his size is : pow(2.0, zoom)*256.
24071     * @param lon Pointer where to store the longitude that correspond to x.
24072     * @param lat Pointer where to store the latitude that correspond to y.
24073     *
24074     * @note Origin pixel point is the top left corner of the viewport.
24075     * Map zoom and size are taken on account.
24076     *
24077     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
24078     *
24079     * @ingroup Map
24080     */
24081    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);
24082
24083    /**
24084     * Convert a geographic coordinate (longitude, latitude) into a pixel
24085     * coordinate (x, y).
24086     *
24087     * @param obj The map object.
24088     * @param lon the longitude.
24089     * @param lat the latitude.
24090     * @param size the size in pixels of the map. The map is a square
24091     * and generally his size is : pow(2.0, zoom)*256.
24092     * @param x Pointer where to store the horizontal pixel coordinate that
24093     * correspond to the longitude.
24094     * @param y Pointer where to store the vertical pixel coordinate that
24095     * correspond to the latitude.
24096     *
24097     * @note Origin pixel point is the top left corner of the viewport.
24098     * Map zoom and size are taken on account.
24099     *
24100     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
24101     *
24102     * @ingroup Map
24103     */
24104    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);
24105
24106    /**
24107     * Convert a geographic coordinate (longitude, latitude) into a name
24108     * (address).
24109     *
24110     * @param obj The map object.
24111     * @param lon the longitude.
24112     * @param lat the latitude.
24113     * @return name A #Elm_Map_Name handle for this coordinate.
24114     *
24115     * To get the string for this address, elm_map_name_address_get()
24116     * should be used.
24117     *
24118     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
24119     *
24120     * @ingroup Map
24121     */
24122    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
24123
24124    /**
24125     * Convert a name (address) into a geographic coordinate
24126     * (longitude, latitude).
24127     *
24128     * @param obj The map object.
24129     * @param name The address.
24130     * @return name A #Elm_Map_Name handle for this address.
24131     *
24132     * To get the longitude and latitude, elm_map_name_region_get()
24133     * should be used.
24134     *
24135     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
24136     *
24137     * @ingroup Map
24138     */
24139    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
24140
24141    /**
24142     * Convert a pixel coordinate into a rotated pixel coordinate.
24143     *
24144     * @param obj The map object.
24145     * @param x horizontal coordinate of the point to rotate.
24146     * @param y vertical coordinate of the point to rotate.
24147     * @param cx rotation's center horizontal position.
24148     * @param cy rotation's center vertical position.
24149     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
24150     * @param xx Pointer where to store rotated x.
24151     * @param yy Pointer where to store rotated y.
24152     *
24153     * @ingroup Map
24154     */
24155    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);
24156
24157    /**
24158     * Add a new marker to the map object.
24159     *
24160     * @param obj The map object.
24161     * @param lon The longitude of the marker.
24162     * @param lat The latitude of the marker.
24163     * @param clas The class, to use when marker @b isn't grouped to others.
24164     * @param clas_group The class group, to use when marker is grouped to others
24165     * @param data The data passed to the callbacks.
24166     *
24167     * @return The created marker or @c NULL upon failure.
24168     *
24169     * A marker will be created and shown in a specific point of the map, defined
24170     * by @p lon and @p lat.
24171     *
24172     * It will be displayed using style defined by @p class when this marker
24173     * is displayed alone (not grouped). A new class can be created with
24174     * elm_map_marker_class_new().
24175     *
24176     * If the marker is grouped to other markers, it will be displayed with
24177     * style defined by @p class_group. Markers with the same group are grouped
24178     * if they are close. A new group class can be created with
24179     * elm_map_marker_group_class_new().
24180     *
24181     * Markers created with this method can be deleted with
24182     * elm_map_marker_remove().
24183     *
24184     * A marker can have associated content to be displayed by a bubble,
24185     * when a user click over it, as well as an icon. These objects will
24186     * be fetch using class' callback functions.
24187     *
24188     * @see elm_map_marker_class_new()
24189     * @see elm_map_marker_group_class_new()
24190     * @see elm_map_marker_remove()
24191     *
24192     * @ingroup Map
24193     */
24194    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);
24195
24196    /**
24197     * Set the maximum numbers of markers' content to be displayed in a group.
24198     *
24199     * @param obj The map object.
24200     * @param max The maximum numbers of items displayed in a bubble.
24201     *
24202     * A bubble will be displayed when the user clicks over the group,
24203     * and will place the content of markers that belong to this group
24204     * inside it.
24205     *
24206     * A group can have a long list of markers, consequently the creation
24207     * of the content of the bubble can be very slow.
24208     *
24209     * In order to avoid this, a maximum number of items is displayed
24210     * in a bubble.
24211     *
24212     * By default this number is 30.
24213     *
24214     * Marker with the same group class are grouped if they are close.
24215     *
24216     * @see elm_map_marker_add()
24217     *
24218     * @ingroup Map
24219     */
24220    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
24221
24222    /**
24223     * Remove a marker from the map.
24224     *
24225     * @param marker The marker to remove.
24226     *
24227     * @see elm_map_marker_add()
24228     *
24229     * @ingroup Map
24230     */
24231    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24232
24233    /**
24234     * Get the current coordinates of the marker.
24235     *
24236     * @param marker marker.
24237     * @param lat Pointer where to store the marker's latitude.
24238     * @param lon Pointer where to store the marker's longitude.
24239     *
24240     * These values are set when adding markers, with function
24241     * elm_map_marker_add().
24242     *
24243     * @see elm_map_marker_add()
24244     *
24245     * @ingroup Map
24246     */
24247    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
24248
24249    /**
24250     * Animatedly bring in given marker to the center of the map.
24251     *
24252     * @param marker The marker to center at.
24253     *
24254     * This causes map to jump to the given @p marker's coordinates
24255     * and show it (by scrolling) in the center of the viewport, if it is not
24256     * already centered. This will use animation to do so and take a period
24257     * of time to complete.
24258     *
24259     * @see elm_map_marker_show() for a function to avoid animation.
24260     * @see elm_map_marker_region_get()
24261     *
24262     * @ingroup Map
24263     */
24264    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24265
24266    /**
24267     * Show the given marker at the center of the map, @b immediately.
24268     *
24269     * @param marker The marker to center at.
24270     *
24271     * This causes map to @b redraw its viewport's contents to the
24272     * region contining the given @p marker's coordinates, that will be
24273     * moved to the center of the map.
24274     *
24275     * @see elm_map_marker_bring_in() for a function to move with animation.
24276     * @see elm_map_markers_list_show() if more than one marker need to be
24277     * displayed.
24278     * @see elm_map_marker_region_get()
24279     *
24280     * @ingroup Map
24281     */
24282    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24283
24284    /**
24285     * Move and zoom the map to display a list of markers.
24286     *
24287     * @param markers A list of #Elm_Map_Marker handles.
24288     *
24289     * The map will be centered on the center point of the markers in the list.
24290     * Then the map will be zoomed in order to fit the markers using the maximum
24291     * zoom which allows display of all the markers.
24292     *
24293     * @warning All the markers should belong to the same map object.
24294     *
24295     * @see elm_map_marker_show() to show a single marker.
24296     * @see elm_map_marker_bring_in()
24297     *
24298     * @ingroup Map
24299     */
24300    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
24301
24302    /**
24303     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
24304     *
24305     * @param marker The marker wich content should be returned.
24306     * @return Return the evas object if it exists, else @c NULL.
24307     *
24308     * To set callback function #ElmMapMarkerGetFunc for the marker class,
24309     * elm_map_marker_class_get_cb_set() should be used.
24310     *
24311     * This content is what will be inside the bubble that will be displayed
24312     * when an user clicks over the marker.
24313     *
24314     * This returns the actual Evas object used to be placed inside
24315     * the bubble. This may be @c NULL, as it may
24316     * not have been created or may have been deleted, at any time, by
24317     * the map. <b>Do not modify this object</b> (move, resize,
24318     * show, hide, etc.), as the map is controlling it. This
24319     * function is for querying, emitting custom signals or hooking
24320     * lower level callbacks for events on that object. Do not delete
24321     * this object under any circumstances.
24322     *
24323     * @ingroup Map
24324     */
24325    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24326
24327    /**
24328     * Update the marker
24329     *
24330     * @param marker The marker to be updated.
24331     *
24332     * If a content is set to this marker, it will call function to delete it,
24333     * #ElmMapMarkerDelFunc, and then will fetch the content again with
24334     * #ElmMapMarkerGetFunc.
24335     *
24336     * These functions are set for the marker class with
24337     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
24338     *
24339     * @ingroup Map
24340     */
24341    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24342
24343    /**
24344     * Close all the bubbles opened by the user.
24345     *
24346     * @param obj The map object.
24347     *
24348     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
24349     * when the user clicks on a marker.
24350     *
24351     * This functions is set for the marker class with
24352     * elm_map_marker_class_get_cb_set().
24353     *
24354     * @ingroup Map
24355     */
24356    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
24357
24358    /**
24359     * Create a new group class.
24360     *
24361     * @param obj The map object.
24362     * @return Returns the new group class.
24363     *
24364     * Each marker must be associated to a group class. Markers in the same
24365     * group are grouped if they are close.
24366     *
24367     * The group class defines the style of the marker when a marker is grouped
24368     * to others markers. When it is alone, another class will be used.
24369     *
24370     * A group class will need to be provided when creating a marker with
24371     * elm_map_marker_add().
24372     *
24373     * Some properties and functions can be set by class, as:
24374     * - style, with elm_map_group_class_style_set()
24375     * - data - to be associated to the group class. It can be set using
24376     *   elm_map_group_class_data_set().
24377     * - min zoom to display markers, set with
24378     *   elm_map_group_class_zoom_displayed_set().
24379     * - max zoom to group markers, set using
24380     *   elm_map_group_class_zoom_grouped_set().
24381     * - visibility - set if markers will be visible or not, set with
24382     *   elm_map_group_class_hide_set().
24383     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
24384     *   It can be set using elm_map_group_class_icon_cb_set().
24385     *
24386     * @see elm_map_marker_add()
24387     * @see elm_map_group_class_style_set()
24388     * @see elm_map_group_class_data_set()
24389     * @see elm_map_group_class_zoom_displayed_set()
24390     * @see elm_map_group_class_zoom_grouped_set()
24391     * @see elm_map_group_class_hide_set()
24392     * @see elm_map_group_class_icon_cb_set()
24393     *
24394     * @ingroup Map
24395     */
24396    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
24397
24398    /**
24399     * Set the marker's style of a group class.
24400     *
24401     * @param clas The group class.
24402     * @param style The style to be used by markers.
24403     *
24404     * Each marker must be associated to a group class, and will use the style
24405     * defined by such class when grouped to other markers.
24406     *
24407     * The following styles are provided by default theme:
24408     * @li @c radio - blue circle
24409     * @li @c radio2 - green circle
24410     * @li @c empty
24411     *
24412     * @see elm_map_group_class_new() for more details.
24413     * @see elm_map_marker_add()
24414     *
24415     * @ingroup Map
24416     */
24417    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
24418
24419    /**
24420     * Set the icon callback function of a group class.
24421     *
24422     * @param clas The group class.
24423     * @param icon_get The callback function that will return the icon.
24424     *
24425     * Each marker must be associated to a group class, and it can display a
24426     * custom icon. The function @p icon_get must return this icon.
24427     *
24428     * @see elm_map_group_class_new() for more details.
24429     * @see elm_map_marker_add()
24430     *
24431     * @ingroup Map
24432     */
24433    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
24434
24435    /**
24436     * Set the data associated to the group class.
24437     *
24438     * @param clas The group class.
24439     * @param data The new user data.
24440     *
24441     * This data will be passed for callback functions, like icon get callback,
24442     * that can be set with elm_map_group_class_icon_cb_set().
24443     *
24444     * If a data was previously set, the object will lose the pointer for it,
24445     * so if needs to be freed, you must do it yourself.
24446     *
24447     * @see elm_map_group_class_new() for more details.
24448     * @see elm_map_group_class_icon_cb_set()
24449     * @see elm_map_marker_add()
24450     *
24451     * @ingroup Map
24452     */
24453    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
24454
24455    /**
24456     * Set the minimum zoom from where the markers are displayed.
24457     *
24458     * @param clas The group class.
24459     * @param zoom The minimum zoom.
24460     *
24461     * Markers only will be displayed when the map is displayed at @p zoom
24462     * or bigger.
24463     *
24464     * @see elm_map_group_class_new() for more details.
24465     * @see elm_map_marker_add()
24466     *
24467     * @ingroup Map
24468     */
24469    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
24470
24471    /**
24472     * Set the zoom from where the markers are no more grouped.
24473     *
24474     * @param clas The group class.
24475     * @param zoom The maximum zoom.
24476     *
24477     * Markers only will be grouped when the map is displayed at
24478     * less than @p zoom.
24479     *
24480     * @see elm_map_group_class_new() for more details.
24481     * @see elm_map_marker_add()
24482     *
24483     * @ingroup Map
24484     */
24485    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
24486
24487    /**
24488     * Set if the markers associated to the group class @clas are hidden or not.
24489     *
24490     * @param clas The group class.
24491     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
24492     * to show them.
24493     *
24494     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
24495     * is to show them.
24496     *
24497     * @ingroup Map
24498     */
24499    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
24500
24501    /**
24502     * Create a new marker class.
24503     *
24504     * @param obj The map object.
24505     * @return Returns the new group class.
24506     *
24507     * Each marker must be associated to a class.
24508     *
24509     * The marker class defines the style of the marker when a marker is
24510     * displayed alone, i.e., not grouped to to others markers. When grouped
24511     * it will use group class style.
24512     *
24513     * A marker class will need to be provided when creating a marker with
24514     * elm_map_marker_add().
24515     *
24516     * Some properties and functions can be set by class, as:
24517     * - style, with elm_map_marker_class_style_set()
24518     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
24519     *   It can be set using elm_map_marker_class_icon_cb_set().
24520     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
24521     *   Set using elm_map_marker_class_get_cb_set().
24522     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
24523     *   Set using elm_map_marker_class_del_cb_set().
24524     *
24525     * @see elm_map_marker_add()
24526     * @see elm_map_marker_class_style_set()
24527     * @see elm_map_marker_class_icon_cb_set()
24528     * @see elm_map_marker_class_get_cb_set()
24529     * @see elm_map_marker_class_del_cb_set()
24530     *
24531     * @ingroup Map
24532     */
24533    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
24534
24535    /**
24536     * Set the marker's style of a marker class.
24537     *
24538     * @param clas The marker class.
24539     * @param style The style to be used by markers.
24540     *
24541     * Each marker must be associated to a marker class, and will use the style
24542     * defined by such class when alone, i.e., @b not grouped to other markers.
24543     *
24544     * The following styles are provided by default theme:
24545     * @li @c radio
24546     * @li @c radio2
24547     * @li @c empty
24548     *
24549     * @see elm_map_marker_class_new() for more details.
24550     * @see elm_map_marker_add()
24551     *
24552     * @ingroup Map
24553     */
24554    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
24555
24556    /**
24557     * Set the icon callback function of a marker class.
24558     *
24559     * @param clas The marker class.
24560     * @param icon_get The callback function that will return the icon.
24561     *
24562     * Each marker must be associated to a marker class, and it can display a
24563     * custom icon. The function @p icon_get must return this icon.
24564     *
24565     * @see elm_map_marker_class_new() for more details.
24566     * @see elm_map_marker_add()
24567     *
24568     * @ingroup Map
24569     */
24570    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
24571
24572    /**
24573     * Set the bubble content callback function of a marker class.
24574     *
24575     * @param clas The marker class.
24576     * @param get The callback function that will return the content.
24577     *
24578     * Each marker must be associated to a marker class, and it can display a
24579     * a content on a bubble that opens when the user click over the marker.
24580     * The function @p get must return this content object.
24581     *
24582     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
24583     * can be used.
24584     *
24585     * @see elm_map_marker_class_new() for more details.
24586     * @see elm_map_marker_class_del_cb_set()
24587     * @see elm_map_marker_add()
24588     *
24589     * @ingroup Map
24590     */
24591    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
24592
24593    /**
24594     * Set the callback function used to delete bubble content of a marker class.
24595     *
24596     * @param clas The marker class.
24597     * @param del The callback function that will delete the content.
24598     *
24599     * Each marker must be associated to a marker class, and it can display a
24600     * a content on a bubble that opens when the user click over the marker.
24601     * The function to return such content can be set with
24602     * elm_map_marker_class_get_cb_set().
24603     *
24604     * If this content must be freed, a callback function need to be
24605     * set for that task with this function.
24606     *
24607     * If this callback is defined it will have to delete (or not) the
24608     * object inside, but if the callback is not defined the object will be
24609     * destroyed with evas_object_del().
24610     *
24611     * @see elm_map_marker_class_new() for more details.
24612     * @see elm_map_marker_class_get_cb_set()
24613     * @see elm_map_marker_add()
24614     *
24615     * @ingroup Map
24616     */
24617    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
24618
24619    /**
24620     * Get the list of available sources.
24621     *
24622     * @param obj The map object.
24623     * @return The source names list.
24624     *
24625     * It will provide a list with all available sources, that can be set as
24626     * current source with elm_map_source_name_set(), or get with
24627     * elm_map_source_name_get().
24628     *
24629     * Available sources:
24630     * @li "Mapnik"
24631     * @li "Osmarender"
24632     * @li "CycleMap"
24633     * @li "Maplint"
24634     *
24635     * @see elm_map_source_name_set() for more details.
24636     * @see elm_map_source_name_get()
24637     *
24638     * @ingroup Map
24639     */
24640    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24641
24642    /**
24643     * Set the source of the map.
24644     *
24645     * @param obj The map object.
24646     * @param source The source to be used.
24647     *
24648     * Map widget retrieves images that composes the map from a web service.
24649     * This web service can be set with this method.
24650     *
24651     * A different service can return a different maps with different
24652     * information and it can use different zoom values.
24653     *
24654     * The @p source_name need to match one of the names provided by
24655     * elm_map_source_names_get().
24656     *
24657     * The current source can be get using elm_map_source_name_get().
24658     *
24659     * @see elm_map_source_names_get()
24660     * @see elm_map_source_name_get()
24661     *
24662     *
24663     * @ingroup Map
24664     */
24665    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
24666
24667    /**
24668     * Get the name of currently used source.
24669     *
24670     * @param obj The map object.
24671     * @return Returns the name of the source in use.
24672     *
24673     * @see elm_map_source_name_set() for more details.
24674     *
24675     * @ingroup Map
24676     */
24677    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24678
24679    /**
24680     * Set the source of the route service to be used by the map.
24681     *
24682     * @param obj The map object.
24683     * @param source The route service to be used, being it one of
24684     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
24685     * and #ELM_MAP_ROUTE_SOURCE_ORS.
24686     *
24687     * Each one has its own algorithm, so the route retrieved may
24688     * differ depending on the source route. Now, only the default is working.
24689     *
24690     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
24691     * http://www.yournavigation.org/.
24692     *
24693     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
24694     * assumptions. Its routing core is based on Contraction Hierarchies.
24695     *
24696     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
24697     *
24698     * @see elm_map_route_source_get().
24699     *
24700     * @ingroup Map
24701     */
24702    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
24703
24704    /**
24705     * Get the current route source.
24706     *
24707     * @param obj The map object.
24708     * @return The source of the route service used by the map.
24709     *
24710     * @see elm_map_route_source_set() for details.
24711     *
24712     * @ingroup Map
24713     */
24714    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24715
24716    /**
24717     * Set the minimum zoom of the source.
24718     *
24719     * @param obj The map object.
24720     * @param zoom New minimum zoom value to be used.
24721     *
24722     * By default, it's 0.
24723     *
24724     * @ingroup Map
24725     */
24726    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
24727
24728    /**
24729     * Get the minimum zoom of the source.
24730     *
24731     * @param obj The map object.
24732     * @return Returns the minimum zoom of the source.
24733     *
24734     * @see elm_map_source_zoom_min_set() for details.
24735     *
24736     * @ingroup Map
24737     */
24738    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24739
24740    /**
24741     * Set the maximum zoom of the source.
24742     *
24743     * @param obj The map object.
24744     * @param zoom New maximum zoom value to be used.
24745     *
24746     * By default, it's 18.
24747     *
24748     * @ingroup Map
24749     */
24750    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
24751
24752    /**
24753     * Get the maximum zoom of the source.
24754     *
24755     * @param obj The map object.
24756     * @return Returns the maximum zoom of the source.
24757     *
24758     * @see elm_map_source_zoom_min_set() for details.
24759     *
24760     * @ingroup Map
24761     */
24762    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24763
24764    /**
24765     * Set the user agent used by the map object to access routing services.
24766     *
24767     * @param obj The map object.
24768     * @param user_agent The user agent to be used by the map.
24769     *
24770     * User agent is a client application implementing a network protocol used
24771     * in communications within a clientā€“server distributed computing system
24772     *
24773     * The @p user_agent identification string will transmitted in a header
24774     * field @c User-Agent.
24775     *
24776     * @see elm_map_user_agent_get()
24777     *
24778     * @ingroup Map
24779     */
24780    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
24781
24782    /**
24783     * Get the user agent used by the map object.
24784     *
24785     * @param obj The map object.
24786     * @return The user agent identification string used by the map.
24787     *
24788     * @see elm_map_user_agent_set() for details.
24789     *
24790     * @ingroup Map
24791     */
24792    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24793
24794    /**
24795     * Add a new route to the map object.
24796     *
24797     * @param obj The map object.
24798     * @param type The type of transport to be considered when tracing a route.
24799     * @param method The routing method, what should be priorized.
24800     * @param flon The start longitude.
24801     * @param flat The start latitude.
24802     * @param tlon The destination longitude.
24803     * @param tlat The destination latitude.
24804     *
24805     * @return The created route or @c NULL upon failure.
24806     *
24807     * A route will be traced by point on coordinates (@p flat, @p flon)
24808     * to point on coordinates (@p tlat, @p tlon), using the route service
24809     * set with elm_map_route_source_set().
24810     *
24811     * It will take @p type on consideration to define the route,
24812     * depending if the user will be walking or driving, the route may vary.
24813     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
24814     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
24815     *
24816     * Another parameter is what the route should priorize, the minor distance
24817     * or the less time to be spend on the route. So @p method should be one
24818     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
24819     *
24820     * Routes created with this method can be deleted with
24821     * elm_map_route_remove(), colored with elm_map_route_color_set(),
24822     * and distance can be get with elm_map_route_distance_get().
24823     *
24824     * @see elm_map_route_remove()
24825     * @see elm_map_route_color_set()
24826     * @see elm_map_route_distance_get()
24827     * @see elm_map_route_source_set()
24828     *
24829     * @ingroup Map
24830     */
24831    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);
24832
24833    /**
24834     * Remove a route from the map.
24835     *
24836     * @param route The route to remove.
24837     *
24838     * @see elm_map_route_add()
24839     *
24840     * @ingroup Map
24841     */
24842    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24843
24844    /**
24845     * Set the route color.
24846     *
24847     * @param route The route object.
24848     * @param r Red channel value, from 0 to 255.
24849     * @param g Green channel value, from 0 to 255.
24850     * @param b Blue channel value, from 0 to 255.
24851     * @param a Alpha channel value, from 0 to 255.
24852     *
24853     * It uses an additive color model, so each color channel represents
24854     * how much of each primary colors must to be used. 0 represents
24855     * ausence of this color, so if all of the three are set to 0,
24856     * the color will be black.
24857     *
24858     * These component values should be integers in the range 0 to 255,
24859     * (single 8-bit byte).
24860     *
24861     * This sets the color used for the route. By default, it is set to
24862     * solid red (r = 255, g = 0, b = 0, a = 255).
24863     *
24864     * For alpha channel, 0 represents completely transparent, and 255, opaque.
24865     *
24866     * @see elm_map_route_color_get()
24867     *
24868     * @ingroup Map
24869     */
24870    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24871
24872    /**
24873     * Get the route color.
24874     *
24875     * @param route The route object.
24876     * @param r Pointer where to store the red channel value.
24877     * @param g Pointer where to store the green channel value.
24878     * @param b Pointer where to store the blue channel value.
24879     * @param a Pointer where to store the alpha channel value.
24880     *
24881     * @see elm_map_route_color_set() for details.
24882     *
24883     * @ingroup Map
24884     */
24885    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24886
24887    /**
24888     * Get the route distance in kilometers.
24889     *
24890     * @param route The route object.
24891     * @return The distance of route (unit : km).
24892     *
24893     * @ingroup Map
24894     */
24895    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24896
24897    /**
24898     * Get the information of route nodes.
24899     *
24900     * @param route The route object.
24901     * @return Returns a string with the nodes of route.
24902     *
24903     * @ingroup Map
24904     */
24905    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24906
24907    /**
24908     * Get the information of route waypoint.
24909     *
24910     * @param route the route object.
24911     * @return Returns a string with information about waypoint of route.
24912     *
24913     * @ingroup Map
24914     */
24915    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24916
24917    /**
24918     * Get the address of the name.
24919     *
24920     * @param name The name handle.
24921     * @return Returns the address string of @p name.
24922     *
24923     * This gets the coordinates of the @p name, created with one of the
24924     * conversion functions.
24925     *
24926     * @see elm_map_utils_convert_name_into_coord()
24927     * @see elm_map_utils_convert_coord_into_name()
24928     *
24929     * @ingroup Map
24930     */
24931    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
24932
24933    /**
24934     * Get the current coordinates of the name.
24935     *
24936     * @param name The name handle.
24937     * @param lat Pointer where to store the latitude.
24938     * @param lon Pointer where to store The longitude.
24939     *
24940     * This gets the coordinates of the @p name, created with one of the
24941     * conversion functions.
24942     *
24943     * @see elm_map_utils_convert_name_into_coord()
24944     * @see elm_map_utils_convert_coord_into_name()
24945     *
24946     * @ingroup Map
24947     */
24948    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
24949
24950    /**
24951     * Remove a name from the map.
24952     *
24953     * @param name The name to remove.
24954     *
24955     * Basically the struct handled by @p name will be freed, so convertions
24956     * between address and coordinates will be lost.
24957     *
24958     * @see elm_map_utils_convert_name_into_coord()
24959     * @see elm_map_utils_convert_coord_into_name()
24960     *
24961     * @ingroup Map
24962     */
24963    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
24964
24965    /**
24966     * Rotate the map.
24967     *
24968     * @param obj The map object.
24969     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
24970     * @param cx Rotation's center horizontal position.
24971     * @param cy Rotation's center vertical position.
24972     *
24973     * @see elm_map_rotate_get()
24974     *
24975     * @ingroup Map
24976     */
24977    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
24978
24979    /**
24980     * Get the rotate degree of the map
24981     *
24982     * @param obj The map object
24983     * @param degree Pointer where to store degrees from 0.0 to 360.0
24984     * to rotate arount Z axis.
24985     * @param cx Pointer where to store rotation's center horizontal position.
24986     * @param cy Pointer where to store rotation's center vertical position.
24987     *
24988     * @see elm_map_rotate_set() to set map rotation.
24989     *
24990     * @ingroup Map
24991     */
24992    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);
24993
24994    /**
24995     * Enable or disable mouse wheel to be used to zoom in / out the map.
24996     *
24997     * @param obj The map object.
24998     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
24999     * to enable it.
25000     *
25001     * Mouse wheel can be used for the user to zoom in or zoom out the map.
25002     *
25003     * It's disabled by default.
25004     *
25005     * @see elm_map_wheel_disabled_get()
25006     *
25007     * @ingroup Map
25008     */
25009    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
25010
25011    /**
25012     * Get a value whether mouse wheel is enabled or not.
25013     *
25014     * @param obj The map object.
25015     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
25016     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25017     *
25018     * Mouse wheel can be used for the user to zoom in or zoom out the map.
25019     *
25020     * @see elm_map_wheel_disabled_set() for details.
25021     *
25022     * @ingroup Map
25023     */
25024    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25025
25026 #ifdef ELM_EMAP
25027    /**
25028     * Add a track on the map
25029     *
25030     * @param obj The map object.
25031     * @param emap The emap route object.
25032     * @return The route object. This is an elm object of type Route.
25033     *
25034     * @see elm_route_add() for details.
25035     *
25036     * @ingroup Map
25037     */
25038    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
25039 #endif
25040
25041    /**
25042     * Remove a track from the map
25043     *
25044     * @param obj The map object.
25045     * @param route The track to remove.
25046     *
25047     * @ingroup Map
25048     */
25049    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
25050
25051    /**
25052     * @}
25053     */
25054
25055    /* Route */
25056    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
25057 #ifdef ELM_EMAP
25058    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
25059 #endif
25060    EAPI double elm_route_lon_min_get(Evas_Object *obj);
25061    EAPI double elm_route_lat_min_get(Evas_Object *obj);
25062    EAPI double elm_route_lon_max_get(Evas_Object *obj);
25063    EAPI double elm_route_lat_max_get(Evas_Object *obj);
25064
25065
25066    /**
25067     * @defgroup Panel Panel
25068     *
25069     * @image html img/widget/panel/preview-00.png
25070     * @image latex img/widget/panel/preview-00.eps
25071     *
25072     * @brief A panel is a type of animated container that contains subobjects.
25073     * It can be expanded or contracted by clicking the button on it's edge.
25074     *
25075     * Orientations are as follows:
25076     * @li ELM_PANEL_ORIENT_TOP
25077     * @li ELM_PANEL_ORIENT_LEFT
25078     * @li ELM_PANEL_ORIENT_RIGHT
25079     *
25080     * Default contents parts of the panel widget that you can use for are:
25081     * @li "default" - A content of the panel
25082     *
25083     * @ref tutorial_panel shows one way to use this widget.
25084     * @{
25085     */
25086    typedef enum _Elm_Panel_Orient
25087      {
25088         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
25089         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
25090         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
25091         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
25092      } Elm_Panel_Orient;
25093
25094    /**
25095     * @brief Adds a panel object
25096     *
25097     * @param parent The parent object
25098     *
25099     * @return The panel object, or NULL on failure
25100     */
25101    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25102
25103    /**
25104     * @brief Sets the orientation of the panel
25105     *
25106     * @param parent The parent object
25107     * @param orient The panel orientation. Can be one of the following:
25108     * @li ELM_PANEL_ORIENT_TOP
25109     * @li ELM_PANEL_ORIENT_LEFT
25110     * @li ELM_PANEL_ORIENT_RIGHT
25111     *
25112     * Sets from where the panel will (dis)appear.
25113     */
25114    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
25115
25116    /**
25117     * @brief Get the orientation of the panel.
25118     *
25119     * @param obj The panel object
25120     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
25121     */
25122    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25123
25124    /**
25125     * @brief Set the content of the panel.
25126     *
25127     * @param obj The panel object
25128     * @param content The panel content
25129     *
25130     * Once the content object is set, a previously set one will be deleted.
25131     * If you want to keep that old content object, use the
25132     * elm_panel_content_unset() function.
25133     *
25134     * @deprecated use elm_object_content_set() instead
25135     *
25136     */
25137    EINA_DEPRECATED EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25138
25139    /**
25140     * @brief Get the content of the panel.
25141     *
25142     * @param obj The panel object
25143     * @return The content that is being used
25144     *
25145     * Return the content object which is set for this widget.
25146     *
25147     * @see elm_panel_content_set()
25148     *
25149     * @deprecated use elm_object_content_get() instead
25150     *
25151     */
25152    EINA_DEPRECATED EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25153
25154    /**
25155     * @brief Unset the content of the panel.
25156     *
25157     * @param obj The panel object
25158     * @return The content that was being used
25159     *
25160     * Unparent and return the content object which was set for this widget.
25161     *
25162     * @see elm_panel_content_set()
25163     *
25164     * @deprecated use elm_object_content_unset() instead
25165     *
25166     */
25167    EINA_DEPRECATED EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25168
25169    /**
25170     * @brief Set the state of the panel.
25171     *
25172     * @param obj The panel object
25173     * @param hidden If true, the panel will run the animation to contract
25174     */
25175    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
25176
25177    /**
25178     * @brief Get the state of the panel.
25179     *
25180     * @param obj The panel object
25181     * @param hidden If true, the panel is in the "hide" state
25182     */
25183    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25184
25185    /**
25186     * @brief Toggle the hidden state of the panel from code
25187     *
25188     * @param obj The panel object
25189     */
25190    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
25191
25192    /**
25193     * @}
25194     */
25195
25196    /**
25197     * @defgroup Panes Panes
25198     * @ingroup Elementary
25199     *
25200     * @image html img/widget/panes/preview-00.png
25201     * @image latex img/widget/panes/preview-00.eps width=\textwidth
25202     *
25203     * @image html img/panes.png
25204     * @image latex img/panes.eps width=\textwidth
25205     *
25206     * The panes adds a dragable bar between two contents. When dragged
25207     * this bar will resize contents size.
25208     *
25209     * Panes can be displayed vertically or horizontally, and contents
25210     * size proportion can be customized (homogeneous by default).
25211     *
25212     * Smart callbacks one can listen to:
25213     * - "press" - The panes has been pressed (button wasn't released yet).
25214     * - "unpressed" - The panes was released after being pressed.
25215     * - "clicked" - The panes has been clicked>
25216     * - "clicked,double" - The panes has been double clicked
25217     *
25218     * Available styles for it:
25219     * - @c "default"
25220     *
25221     * Default contents parts of the panes widget that you can use for are:
25222     * @li "left" - A leftside content of the panes
25223     * @li "right" - A rightside content of the panes
25224     *
25225     * If panes is displayed vertically, left content will be displayed at
25226     * top.
25227     *
25228     * Here is an example on its usage:
25229     * @li @ref panes_example
25230     */
25231
25232    /**
25233     * @addtogroup Panes
25234     * @{
25235     */
25236
25237    /**
25238     * Add a new panes widget to the given parent Elementary
25239     * (container) object.
25240     *
25241     * @param parent The parent object.
25242     * @return a new panes widget handle or @c NULL, on errors.
25243     *
25244     * This function inserts a new panes widget on the canvas.
25245     *
25246     * @ingroup Panes
25247     */
25248    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25249
25250    /**
25251     * Set the left content of the panes widget.
25252     *
25253     * @param obj The panes object.
25254     * @param content The new left content object.
25255     *
25256     * Once the content object is set, a previously set one will be deleted.
25257     * If you want to keep that old content object, use the
25258     * elm_panes_content_left_unset() function.
25259     *
25260     * If panes is displayed vertically, left content will be displayed at
25261     * top.
25262     *
25263     * @see elm_panes_content_left_get()
25264     * @see elm_panes_content_right_set() to set content on the other side.
25265     *
25266     * @deprecated use elm_object_part_content_set() instead
25267     *
25268     * @ingroup Panes
25269     */
25270    EINA_DEPRECATED EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25271
25272    /**
25273     * Set the right content of the panes widget.
25274     *
25275     * @param obj The panes object.
25276     * @param content The new right content object.
25277     *
25278     * Once the content object is set, a previously set one will be deleted.
25279     * If you want to keep that old content object, use the
25280     * elm_panes_content_right_unset() function.
25281     *
25282     * If panes is displayed vertically, left content will be displayed at
25283     * bottom.
25284     *
25285     * @see elm_panes_content_right_get()
25286     * @see elm_panes_content_left_set() to set content on the other side.
25287     *
25288     * @deprecated use elm_object_part_content_set() instead
25289     *
25290     * @ingroup Panes
25291     */
25292    EINA_DEPRECATED EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25293
25294    /**
25295     * Get the left content of the panes.
25296     *
25297     * @param obj The panes object.
25298     * @return The left content object that is being used.
25299     *
25300     * Return the left content object which is set for this widget.
25301     *
25302     * @see elm_panes_content_left_set() for details.
25303     *
25304     * @deprecated use elm_object_part_content_get() instead
25305     *
25306     * @ingroup Panes
25307     */
25308    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25309
25310    /**
25311     * Get the right content of the panes.
25312     *
25313     * @param obj The panes object
25314     * @return The right content object that is being used
25315     *
25316     * Return the right content object which is set for this widget.
25317     *
25318     * @see elm_panes_content_right_set() for details.
25319     *
25320     * @deprecated use elm_object_part_content_get() instead
25321     *
25322     * @ingroup Panes
25323     */
25324    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25325
25326    /**
25327     * Unset the left content used for the panes.
25328     *
25329     * @param obj The panes object.
25330     * @return The left content object that was being used.
25331     *
25332     * Unparent and return the left content object which was set for this widget.
25333     *
25334     * @see elm_panes_content_left_set() for details.
25335     * @see elm_panes_content_left_get().
25336     *
25337     * @deprecated use elm_object_part_content_unset() instead
25338     *
25339     * @ingroup Panes
25340     */
25341    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25342
25343    /**
25344     * Unset the right content used for the panes.
25345     *
25346     * @param obj The panes object.
25347     * @return The right content object that was being used.
25348     *
25349     * Unparent and return the right content object which was set for this
25350     * widget.
25351     *
25352     * @see elm_panes_content_right_set() for details.
25353     * @see elm_panes_content_right_get().
25354     *
25355     * @deprecated use elm_object_part_content_unset() instead
25356     *
25357     * @ingroup Panes
25358     */
25359    EINA_DEPRECATED EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25360
25361    /**
25362     * Get the size proportion of panes widget's left side.
25363     *
25364     * @param obj The panes object.
25365     * @return float value between 0.0 and 1.0 representing size proportion
25366     * of left side.
25367     *
25368     * @see elm_panes_content_left_size_set() for more details.
25369     *
25370     * @ingroup Panes
25371     */
25372    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25373
25374    /**
25375     * Set the size proportion of panes widget's left side.
25376     *
25377     * @param obj The panes object.
25378     * @param size Value between 0.0 and 1.0 representing size proportion
25379     * of left side.
25380     *
25381     * By default it's homogeneous, i.e., both sides have the same size.
25382     *
25383     * If something different is required, it can be set with this function.
25384     * For example, if the left content should be displayed over
25385     * 75% of the panes size, @p size should be passed as @c 0.75.
25386     * This way, right content will be resized to 25% of panes size.
25387     *
25388     * If displayed vertically, left content is displayed at top, and
25389     * right content at bottom.
25390     *
25391     * @note This proportion will change when user drags the panes bar.
25392     *
25393     * @see elm_panes_content_left_size_get()
25394     *
25395     * @ingroup Panes
25396     */
25397    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
25398
25399   /**
25400    * Set the orientation of a given panes widget.
25401    *
25402    * @param obj The panes object.
25403    * @param horizontal Use @c EINA_TRUE to make @p obj to be
25404    * @b horizontal, @c EINA_FALSE to make it @b vertical.
25405    *
25406    * Use this function to change how your panes is to be
25407    * disposed: vertically or horizontally.
25408    *
25409    * By default it's displayed horizontally.
25410    *
25411    * @see elm_panes_horizontal_get()
25412    *
25413    * @ingroup Panes
25414    */
25415    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
25416
25417    /**
25418     * Retrieve the orientation of a given panes widget.
25419     *
25420     * @param obj The panes object.
25421     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
25422     * @c EINA_FALSE if it's @b vertical (and on errors).
25423     *
25424     * @see elm_panes_horizontal_set() for more details.
25425     *
25426     * @ingroup Panes
25427     */
25428    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25429    EAPI void                  elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
25430    EAPI Eina_Bool             elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25431
25432    /**
25433     * @}
25434     */
25435
25436    /**
25437     * @defgroup Flip Flip
25438     *
25439     * @image html img/widget/flip/preview-00.png
25440     * @image latex img/widget/flip/preview-00.eps
25441     *
25442     * This widget holds 2 content objects(Evas_Object): one on the front and one
25443     * on the back. It allows you to flip from front to back and vice-versa using
25444     * various animations.
25445     *
25446     * If either the front or back contents are not set the flip will treat that
25447     * as transparent. So if you wore to set the front content but not the back,
25448     * and then call elm_flip_go() you would see whatever is below the flip.
25449     *
25450     * For a list of supported animations see elm_flip_go().
25451     *
25452     * Signals that you can add callbacks for are:
25453     * "animate,begin" - when a flip animation was started
25454     * "animate,done" - when a flip animation is finished
25455     *
25456     * @ref tutorial_flip show how to use most of the API.
25457     *
25458     * @{
25459     */
25460    typedef enum _Elm_Flip_Mode
25461      {
25462         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
25463         ELM_FLIP_ROTATE_X_CENTER_AXIS,
25464         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
25465         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
25466         ELM_FLIP_CUBE_LEFT,
25467         ELM_FLIP_CUBE_RIGHT,
25468         ELM_FLIP_CUBE_UP,
25469         ELM_FLIP_CUBE_DOWN,
25470         ELM_FLIP_PAGE_LEFT,
25471         ELM_FLIP_PAGE_RIGHT,
25472         ELM_FLIP_PAGE_UP,
25473         ELM_FLIP_PAGE_DOWN
25474      } Elm_Flip_Mode;
25475    typedef enum _Elm_Flip_Interaction
25476      {
25477         ELM_FLIP_INTERACTION_NONE,
25478         ELM_FLIP_INTERACTION_ROTATE,
25479         ELM_FLIP_INTERACTION_CUBE,
25480         ELM_FLIP_INTERACTION_PAGE
25481      } Elm_Flip_Interaction;
25482    typedef enum _Elm_Flip_Direction
25483      {
25484         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
25485         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
25486         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
25487         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
25488      } Elm_Flip_Direction;
25489
25490    /**
25491     * @brief Add a new flip to the parent
25492     *
25493     * @param parent The parent object
25494     * @return The new object or NULL if it cannot be created
25495     */
25496    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25497
25498    /**
25499     * @brief Set the front content of the flip widget.
25500     *
25501     * @param obj The flip object
25502     * @param content The new front content object
25503     *
25504     * Once the content object is set, a previously set one will be deleted.
25505     * If you want to keep that old content object, use the
25506     * elm_flip_content_front_unset() function.
25507     */
25508    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25509
25510    /**
25511     * @brief Set the back content of the flip widget.
25512     *
25513     * @param obj The flip object
25514     * @param content The new back content object
25515     *
25516     * Once the content object is set, a previously set one will be deleted.
25517     * If you want to keep that old content object, use the
25518     * elm_flip_content_back_unset() function.
25519     */
25520    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25521
25522    /**
25523     * @brief Get the front content used for the flip
25524     *
25525     * @param obj The flip object
25526     * @return The front content object that is being used
25527     *
25528     * Return the front content object which is set for this widget.
25529     */
25530    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25531
25532    /**
25533     * @brief Get the back content used for the flip
25534     *
25535     * @param obj The flip object
25536     * @return The back content object that is being used
25537     *
25538     * Return the back content object which is set for this widget.
25539     */
25540    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25541
25542    /**
25543     * @brief Unset the front content used for the flip
25544     *
25545     * @param obj The flip object
25546     * @return The front content object that was being used
25547     *
25548     * Unparent and return the front content object which was set for this widget.
25549     */
25550    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25551
25552    /**
25553     * @brief Unset the back content used for the flip
25554     *
25555     * @param obj The flip object
25556     * @return The back content object that was being used
25557     *
25558     * Unparent and return the back content object which was set for this widget.
25559     */
25560    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25561
25562    /**
25563     * @brief Get flip front visibility state
25564     *
25565     * @param obj The flip objct
25566     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
25567     * showing.
25568     */
25569    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25570
25571    /**
25572     * @brief Set flip perspective
25573     *
25574     * @param obj The flip object
25575     * @param foc The coordinate to set the focus on
25576     * @param x The X coordinate
25577     * @param y The Y coordinate
25578     *
25579     * @warning This function currently does nothing.
25580     */
25581    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
25582
25583    /**
25584     * @brief Runs the flip animation
25585     *
25586     * @param obj The flip object
25587     * @param mode The mode type
25588     *
25589     * Flips the front and back contents using the @p mode animation. This
25590     * efectively hides the currently visible content and shows the hidden one.
25591     *
25592     * There a number of possible animations to use for the flipping:
25593     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
25594     * around a horizontal axis in the middle of its height, the other content
25595     * is shown as the other side of the flip.
25596     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
25597     * around a vertical axis in the middle of its width, the other content is
25598     * shown as the other side of the flip.
25599     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
25600     * around a diagonal axis in the middle of its width, the other content is
25601     * shown as the other side of the flip.
25602     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
25603     * around a diagonal axis in the middle of its height, the other content is
25604     * shown as the other side of the flip.
25605     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
25606     * as if the flip was a cube, the other content is show as the right face of
25607     * the cube.
25608     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
25609     * right as if the flip was a cube, the other content is show as the left
25610     * face of the cube.
25611     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
25612     * flip was a cube, the other content is show as the bottom face of the cube.
25613     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
25614     * the flip was a cube, the other content is show as the upper face of the
25615     * cube.
25616     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
25617     * if the flip was a book, the other content is shown as the page below that.
25618     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
25619     * as if the flip was a book, the other content is shown as the page below
25620     * that.
25621     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
25622     * flip was a book, the other content is shown as the page below that.
25623     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
25624     * flip was a book, the other content is shown as the page below that.
25625     *
25626     * @image html elm_flip.png
25627     * @image latex elm_flip.eps width=\textwidth
25628     */
25629    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
25630
25631    /**
25632     * @brief Set the interactive flip mode
25633     *
25634     * @param obj The flip object
25635     * @param mode The interactive flip mode to use
25636     *
25637     * This sets if the flip should be interactive (allow user to click and
25638     * drag a side of the flip to reveal the back page and cause it to flip).
25639     * By default a flip is not interactive. You may also need to set which
25640     * sides of the flip are "active" for flipping and how much space they use
25641     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
25642     * and elm_flip_interacton_direction_hitsize_set()
25643     *
25644     * The four avilable mode of interaction are:
25645     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
25646     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
25647     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
25648     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
25649     *
25650     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
25651     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
25652     * happen, those can only be acheived with elm_flip_go();
25653     */
25654    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
25655
25656    /**
25657     * @brief Get the interactive flip mode
25658     *
25659     * @param obj The flip object
25660     * @return The interactive flip mode
25661     *
25662     * Returns the interactive flip mode set by elm_flip_interaction_set()
25663     */
25664    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
25665
25666    /**
25667     * @brief Set which directions of the flip respond to interactive flip
25668     *
25669     * @param obj The flip object
25670     * @param dir The direction to change
25671     * @param enabled If that direction is enabled or not
25672     *
25673     * By default all directions are disabled, so you may want to enable the
25674     * desired directions for flipping if you need interactive flipping. You must
25675     * call this function once for each direction that should be enabled.
25676     *
25677     * @see elm_flip_interaction_set()
25678     */
25679    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
25680
25681    /**
25682     * @brief Get the enabled state of that flip direction
25683     *
25684     * @param obj The flip object
25685     * @param dir The direction to check
25686     * @return If that direction is enabled or not
25687     *
25688     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
25689     *
25690     * @see elm_flip_interaction_set()
25691     */
25692    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
25693
25694    /**
25695     * @brief Set the amount of the flip that is sensitive to interactive flip
25696     *
25697     * @param obj The flip object
25698     * @param dir The direction to modify
25699     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
25700     *
25701     * Set the amount of the flip that is sensitive to interactive flip, with 0
25702     * representing no area in the flip and 1 representing the entire flip. There
25703     * is however a consideration to be made in that the area will never be
25704     * smaller than the finger size set(as set in your Elementary configuration).
25705     *
25706     * @see elm_flip_interaction_set()
25707     */
25708    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
25709
25710    /**
25711     * @brief Get the amount of the flip that is sensitive to interactive flip
25712     *
25713     * @param obj The flip object
25714     * @param dir The direction to check
25715     * @return The size set for that direction
25716     *
25717     * Returns the amount os sensitive area set by
25718     * elm_flip_interacton_direction_hitsize_set().
25719     */
25720    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
25721
25722    /**
25723     * @}
25724     */
25725
25726    /* scrolledentry */
25727    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25728    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
25729    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25730    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
25731    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25732    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
25733    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25734    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
25735    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25736    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25737    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
25738    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
25739    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
25740    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25741    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
25742    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
25743    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
25744    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
25745    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
25746    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
25747    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25748    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25749    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25750    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25751    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
25752    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
25753    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25754    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25755    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25756    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25757    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25758    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
25759    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
25760    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
25761    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25762    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);
25763    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
25764    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25765    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);
25766    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
25767    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);
25768    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
25769    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25770    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25771    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
25772    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
25773    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25774    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25775    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
25776    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);
25777    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);
25778    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);
25779    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);
25780    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);
25781    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);
25782    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
25783    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
25784    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
25785    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
25786    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25787    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
25788    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
25789
25790    /**
25791     * @defgroup Conformant Conformant
25792     * @ingroup Elementary
25793     *
25794     * @image html img/widget/conformant/preview-00.png
25795     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
25796     *
25797     * @image html img/conformant.png
25798     * @image latex img/conformant.eps width=\textwidth
25799     *
25800     * The aim is to provide a widget that can be used in elementary apps to
25801     * account for space taken up by the indicator, virtual keypad & softkey
25802     * windows when running the illume2 module of E17.
25803     *
25804     * So conformant content will be sized and positioned considering the
25805     * space required for such stuff, and when they popup, as a keyboard
25806     * shows when an entry is selected, conformant content won't change.
25807     *
25808     * Available styles for it:
25809     * - @c "default"
25810     *
25811     * Default contents parts of the conformant widget that you can use for are:
25812     * @li "default" - A content of the conformant
25813     *
25814     * See how to use this widget in this example:
25815     * @ref conformant_example
25816     */
25817
25818    /**
25819     * @addtogroup Conformant
25820     * @{
25821     */
25822
25823    /**
25824     * Add a new conformant widget to the given parent Elementary
25825     * (container) object.
25826     *
25827     * @param parent The parent object.
25828     * @return A new conformant widget handle or @c NULL, on errors.
25829     *
25830     * This function inserts a new conformant widget on the canvas.
25831     *
25832     * @ingroup Conformant
25833     */
25834    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25835
25836    /**
25837     * Set the content of the conformant widget.
25838     *
25839     * @param obj The conformant object.
25840     * @param content The content to be displayed by the conformant.
25841     *
25842     * Content will be sized and positioned considering the space required
25843     * to display a virtual keyboard. So it won't fill all the conformant
25844     * size. This way is possible to be sure that content won't resize
25845     * or be re-positioned after the keyboard is displayed.
25846     *
25847     * Once the content object is set, a previously set one will be deleted.
25848     * If you want to keep that old content object, use the
25849     * elm_object_content_unset() function.
25850     *
25851     * @see elm_object_content_unset()
25852     * @see elm_object_content_get()
25853     *
25854     * @deprecated use elm_object_content_set() instead
25855     *
25856     * @ingroup Conformant
25857     */
25858    EINA_DEPRECATED EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25859
25860    /**
25861     * Get the content of the conformant widget.
25862     *
25863     * @param obj The conformant object.
25864     * @return The content that is being used.
25865     *
25866     * Return the content object which is set for this widget.
25867     * It won't be unparent from conformant. For that, use
25868     * elm_object_content_unset().
25869     *
25870     * @see elm_object_content_set().
25871     * @see elm_object_content_unset()
25872     *
25873     * @deprecated use elm_object_content_get() instead
25874     *
25875     * @ingroup Conformant
25876     */
25877    EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25878
25879    /**
25880     * Unset the content of the conformant widget.
25881     *
25882     * @param obj The conformant object.
25883     * @return The content that was being used.
25884     *
25885     * Unparent and return the content object which was set for this widget.
25886     *
25887     * @see elm_object_content_set().
25888     *
25889     * @deprecated use elm_object_content_unset() instead
25890     *
25891     * @ingroup Conformant
25892     */
25893    EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25894
25895    /**
25896     * Returns the Evas_Object that represents the content area.
25897     *
25898     * @param obj The conformant object.
25899     * @return The content area of the widget.
25900     *
25901     * @ingroup Conformant
25902     */
25903    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25904
25905    /**
25906     * @}
25907     */
25908
25909    /**
25910     * @defgroup Mapbuf Mapbuf
25911     * @ingroup Elementary
25912     *
25913     * @image html img/widget/mapbuf/preview-00.png
25914     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
25915     *
25916     * This holds one content object and uses an Evas Map of transformation
25917     * points to be later used with this content. So the content will be
25918     * moved, resized, etc as a single image. So it will improve performance
25919     * when you have a complex interafce, with a lot of elements, and will
25920     * need to resize or move it frequently (the content object and its
25921     * children).
25922     *
25923     * Default contents parts of the mapbuf widget that you can use for are:
25924     * @li "default" - A content of the mapbuf
25925     *
25926     * To enable map, elm_mapbuf_enabled_set() should be used.
25927     *
25928     * See how to use this widget in this example:
25929     * @ref mapbuf_example
25930     */
25931
25932    /**
25933     * @addtogroup Mapbuf
25934     * @{
25935     */
25936
25937    /**
25938     * Add a new mapbuf widget to the given parent Elementary
25939     * (container) object.
25940     *
25941     * @param parent The parent object.
25942     * @return A new mapbuf widget handle or @c NULL, on errors.
25943     *
25944     * This function inserts a new mapbuf widget on the canvas.
25945     *
25946     * @ingroup Mapbuf
25947     */
25948    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25949
25950    /**
25951     * Set the content of the mapbuf.
25952     *
25953     * @param obj The mapbuf object.
25954     * @param content The content that will be filled in this mapbuf object.
25955     *
25956     * Once the content object is set, a previously set one will be deleted.
25957     * If you want to keep that old content object, use the
25958     * elm_mapbuf_content_unset() function.
25959     *
25960     * To enable map, elm_mapbuf_enabled_set() should be used.
25961     *
25962     * @deprecated use elm_object_content_set() instead
25963     *
25964     * @ingroup Mapbuf
25965     */
25966    EINA_DEPRECATED EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25967
25968    /**
25969     * Get the content of the mapbuf.
25970     *
25971     * @param obj The mapbuf object.
25972     * @return The content that is being used.
25973     *
25974     * Return the content object which is set for this widget.
25975     *
25976     * @see elm_mapbuf_content_set() for details.
25977     *
25978     * @deprecated use elm_object_content_get() instead
25979     *
25980     * @ingroup Mapbuf
25981     */
25982    EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25983
25984    /**
25985     * Unset the content of the mapbuf.
25986     *
25987     * @param obj The mapbuf object.
25988     * @return The content that was being used.
25989     *
25990     * Unparent and return the content object which was set for this widget.
25991     *
25992     * @see elm_mapbuf_content_set() for details.
25993     *
25994     * @deprecated use elm_object_content_unset() instead
25995     *
25996     * @ingroup Mapbuf
25997     */
25998    EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25999
26000    /**
26001     * Enable or disable the map.
26002     *
26003     * @param obj The mapbuf object.
26004     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
26005     *
26006     * This enables the map that is set or disables it. On enable, the object
26007     * geometry will be saved, and the new geometry will change (position and
26008     * size) to reflect the map geometry set.
26009     *
26010     * Also, when enabled, alpha and smooth states will be used, so if the
26011     * content isn't solid, alpha should be enabled, for example, otherwise
26012     * a black retangle will fill the content.
26013     *
26014     * When disabled, the stored map will be freed and geometry prior to
26015     * enabling the map will be restored.
26016     *
26017     * It's disabled by default.
26018     *
26019     * @see elm_mapbuf_alpha_set()
26020     * @see elm_mapbuf_smooth_set()
26021     *
26022     * @ingroup Mapbuf
26023     */
26024    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
26025
26026    /**
26027     * Get a value whether map is enabled or not.
26028     *
26029     * @param obj The mapbuf object.
26030     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
26031     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26032     *
26033     * @see elm_mapbuf_enabled_set() for details.
26034     *
26035     * @ingroup Mapbuf
26036     */
26037    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26038
26039    /**
26040     * Enable or disable smooth map rendering.
26041     *
26042     * @param obj The mapbuf object.
26043     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
26044     * to disable it.
26045     *
26046     * This sets smoothing for map rendering. If the object is a type that has
26047     * its own smoothing settings, then both the smooth settings for this object
26048     * and the map must be turned off.
26049     *
26050     * By default smooth maps are enabled.
26051     *
26052     * @ingroup Mapbuf
26053     */
26054    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
26055
26056    /**
26057     * Get a value whether smooth map rendering is enabled or not.
26058     *
26059     * @param obj The mapbuf object.
26060     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
26061     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26062     *
26063     * @see elm_mapbuf_smooth_set() for details.
26064     *
26065     * @ingroup Mapbuf
26066     */
26067    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26068
26069    /**
26070     * Set or unset alpha flag for map rendering.
26071     *
26072     * @param obj The mapbuf object.
26073     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
26074     * to disable it.
26075     *
26076     * This sets alpha flag for map rendering. If the object is a type that has
26077     * its own alpha settings, then this will take precedence. Only image objects
26078     * have this currently. It stops alpha blending of the map area, and is
26079     * useful if you know the object and/or all sub-objects is 100% solid.
26080     *
26081     * Alpha is enabled by default.
26082     *
26083     * @ingroup Mapbuf
26084     */
26085    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
26086
26087    /**
26088     * Get a value whether alpha blending is enabled or not.
26089     *
26090     * @param obj The mapbuf object.
26091     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
26092     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26093     *
26094     * @see elm_mapbuf_alpha_set() for details.
26095     *
26096     * @ingroup Mapbuf
26097     */
26098    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26099
26100    /**
26101     * @}
26102     */
26103
26104    /**
26105     * @defgroup Flipselector Flip Selector
26106     *
26107     * @image html img/widget/flipselector/preview-00.png
26108     * @image latex img/widget/flipselector/preview-00.eps
26109     *
26110     * A flip selector is a widget to show a set of @b text items, one
26111     * at a time, with the same sheet switching style as the @ref Clock
26112     * "clock" widget, when one changes the current displaying sheet
26113     * (thus, the "flip" in the name).
26114     *
26115     * User clicks to flip sheets which are @b held for some time will
26116     * make the flip selector to flip continuosly and automatically for
26117     * the user. The interval between flips will keep growing in time,
26118     * so that it helps the user to reach an item which is distant from
26119     * the current selection.
26120     *
26121     * Smart callbacks one can register to:
26122     * - @c "selected" - when the widget's selected text item is changed
26123     * - @c "overflowed" - when the widget's current selection is changed
26124     *   from the first item in its list to the last
26125     * - @c "underflowed" - when the widget's current selection is changed
26126     *   from the last item in its list to the first
26127     *
26128     * Available styles for it:
26129     * - @c "default"
26130     *
26131          * To set/get the label of the flipselector item, you can use
26132          * elm_object_item_text_set/get APIs.
26133          * Once the text is set, a previously set one will be deleted.
26134          *
26135     * Here is an example on its usage:
26136     * @li @ref flipselector_example
26137     */
26138
26139    /**
26140     * @addtogroup Flipselector
26141     * @{
26142     */
26143
26144    /**
26145     * Add a new flip selector widget to the given parent Elementary
26146     * (container) widget
26147     *
26148     * @param parent The parent object
26149     * @return a new flip selector widget handle or @c NULL, on errors
26150     *
26151     * This function inserts a new flip selector widget on the canvas.
26152     *
26153     * @ingroup Flipselector
26154     */
26155    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26156
26157    /**
26158     * Programmatically select the next item of a flip selector widget
26159     *
26160     * @param obj The flipselector object
26161     *
26162     * @note The selection will be animated. Also, if it reaches the
26163     * end of its list of member items, it will continue with the first
26164     * one onwards.
26165     *
26166     * @ingroup Flipselector
26167     */
26168    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
26169
26170    /**
26171     * Programmatically select the previous item of a flip selector
26172     * widget
26173     *
26174     * @param obj The flipselector object
26175     *
26176     * @note The selection will be animated.  Also, if it reaches the
26177     * beginning of its list of member items, it will continue with the
26178     * last one backwards.
26179     *
26180     * @ingroup Flipselector
26181     */
26182    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
26183
26184    /**
26185     * Append a (text) item to a flip selector widget
26186     *
26187     * @param obj The flipselector object
26188     * @param label The (text) label of the new item
26189     * @param func Convenience callback function to take place when
26190     * item is selected
26191     * @param data Data passed to @p func, above
26192     * @return A handle to the item added or @c NULL, on errors
26193     *
26194     * The widget's list of labels to show will be appended with the
26195     * given value. If the user wishes so, a callback function pointer
26196     * can be passed, which will get called when this same item is
26197     * selected.
26198     *
26199     * @note The current selection @b won't be modified by appending an
26200     * element to the list.
26201     *
26202     * @note The maximum length of the text label is going to be
26203     * determined <b>by the widget's theme</b>. Strings larger than
26204     * that value are going to be @b truncated.
26205     *
26206     * @ingroup Flipselector
26207     */
26208    EAPI Elm_Object_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
26209
26210    /**
26211     * Prepend a (text) item to a flip selector widget
26212     *
26213     * @param obj The flipselector object
26214     * @param label The (text) label of the new item
26215     * @param func Convenience callback function to take place when
26216     * item is selected
26217     * @param data Data passed to @p func, above
26218     * @return A handle to the item added or @c NULL, on errors
26219     *
26220     * The widget's list of labels to show will be prepended with the
26221     * given value. If the user wishes so, a callback function pointer
26222     * can be passed, which will get called when this same item is
26223     * selected.
26224     *
26225     * @note The current selection @b won't be modified by prepending
26226     * an element to the list.
26227     *
26228     * @note The maximum length of the text label is going to be
26229     * determined <b>by the widget's theme</b>. Strings larger than
26230     * that value are going to be @b truncated.
26231     *
26232     * @ingroup Flipselector
26233     */
26234    EAPI Elm_Object_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
26235
26236    /**
26237     * Get the internal list of items in a given flip selector widget.
26238     *
26239     * @param obj The flipselector object
26240     * @return The list of items (#Elm_Object_Item as data) or
26241     * @c NULL on errors.
26242     *
26243     * This list is @b not to be modified in any way and must not be
26244     * freed. Use the list members with functions like
26245     * elm_object_item_text_set(),
26246     * elm_object_item_text_get(),
26247     * elm_flipselector_item_del(),
26248     * elm_flipselector_item_selected_get(),
26249     * elm_flipselector_item_selected_set().
26250     *
26251     * @warning This list is only valid until @p obj object's internal
26252     * items list is changed. It should be fetched again with another
26253     * call to this function when changes happen.
26254     *
26255     * @ingroup Flipselector
26256     */
26257    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26258
26259    /**
26260     * Get the first item in the given flip selector widget's list of
26261     * items.
26262     *
26263     * @param obj The flipselector object
26264     * @return The first item or @c NULL, if it has no items (and on
26265     * errors)
26266     *
26267     * @see elm_flipselector_item_append()
26268     * @see elm_flipselector_last_item_get()
26269     *
26270     * @ingroup Flipselector
26271     */
26272    EAPI Elm_Object_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26273
26274    /**
26275     * Get the last item in the given flip selector widget's list of
26276     * items.
26277     *
26278     * @param obj The flipselector object
26279     * @return The last item or @c NULL, if it has no items (and on
26280     * errors)
26281     *
26282     * @see elm_flipselector_item_prepend()
26283     * @see elm_flipselector_first_item_get()
26284     *
26285     * @ingroup Flipselector
26286     */
26287    EAPI Elm_Object_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26288
26289    /**
26290     * Get the currently selected item in a flip selector widget.
26291     *
26292     * @param obj The flipselector object
26293     * @return The selected item or @c NULL, if the widget has no items
26294     * (and on erros)
26295     *
26296     * @ingroup Flipselector
26297     */
26298    EAPI Elm_Object_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26299
26300    /**
26301     * Set whether a given flip selector widget's item should be the
26302     * currently selected one.
26303     *
26304     * @param it The flip selector item
26305     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
26306     *
26307     * This sets whether @p item is or not the selected (thus, under
26308     * display) one. If @p item is different than one under display,
26309     * the latter will be unselected. If the @p item is set to be
26310     * unselected, on the other hand, the @b first item in the widget's
26311     * internal members list will be the new selected one.
26312     *
26313     * @see elm_flipselector_item_selected_get()
26314     *
26315     * @ingroup Flipselector
26316     */
26317    EAPI void                       elm_flipselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
26318
26319    /**
26320     * Get whether a given flip selector widget's item is the currently
26321     * selected one.
26322     *
26323     * @param it The flip selector item
26324     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
26325     * (or on errors).
26326     *
26327     * @see elm_flipselector_item_selected_set()
26328     *
26329     * @ingroup Flipselector
26330     */
26331    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26332
26333    /**
26334     * Delete a given item from a flip selector widget.
26335     *
26336     * @param it The item to delete
26337     *
26338     * @ingroup Flipselector
26339     */
26340    EAPI void                       elm_flipselector_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26341
26342    /**
26343     * Get the label of a given flip selector widget's item.
26344     *
26345     * @param it The item to get label from
26346     * @return The text label of @p item or @c NULL, on errors
26347     *
26348     * @see elm_object_item_text_set()
26349     *
26350     * @deprecated see elm_object_item_text_get() instead
26351     * @ingroup Flipselector
26352     */
26353    EINA_DEPRECATED EAPI const char                *elm_flipselector_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26354
26355    /**
26356     * Set the label of a given flip selector widget's item.
26357     *
26358     * @param it The item to set label on
26359     * @param label The text label string, in UTF-8 encoding
26360     *
26361     * @see elm_object_item_text_get()
26362     *
26363          * @deprecated see elm_object_item_text_set() instead
26364     * @ingroup Flipselector
26365     */
26366    EINA_DEPRECATED EAPI void                       elm_flipselector_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26367
26368    /**
26369     * Gets the item before @p item in a flip selector widget's
26370     * internal list of items.
26371     *
26372     * @param it The item to fetch previous from
26373     * @return The item before the @p item, in its parent's list. If
26374     *         there is no previous item for @p item or there's an
26375     *         error, @c NULL is returned.
26376     *
26377     * @see elm_flipselector_item_next_get()
26378     *
26379     * @ingroup Flipselector
26380     */
26381    EAPI Elm_Object_Item     *elm_flipselector_item_prev_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26382
26383    /**
26384     * Gets the item after @p item in a flip selector widget's
26385     * internal list of items.
26386     *
26387     * @param it The item to fetch next from
26388     * @return The item after the @p item, in its parent's list. If
26389     *         there is no next item for @p item or there's an
26390     *         error, @c NULL is returned.
26391     *
26392     * @see elm_flipselector_item_next_get()
26393     *
26394     * @ingroup Flipselector
26395     */
26396    EAPI Elm_Object_Item     *elm_flipselector_item_next_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26397
26398    /**
26399     * Set the interval on time updates for an user mouse button hold
26400     * on a flip selector widget.
26401     *
26402     * @param obj The flip selector object
26403     * @param interval The (first) interval value in seconds
26404     *
26405     * This interval value is @b decreased while the user holds the
26406     * mouse pointer either flipping up or flipping doww a given flip
26407     * selector.
26408     *
26409     * This helps the user to get to a given item distant from the
26410     * current one easier/faster, as it will start to flip quicker and
26411     * quicker on mouse button holds.
26412     *
26413     * The calculation for the next flip interval value, starting from
26414     * the one set with this call, is the previous interval divided by
26415     * 1.05, so it decreases a little bit.
26416     *
26417     * The default starting interval value for automatic flips is
26418     * @b 0.85 seconds.
26419     *
26420     * @see elm_flipselector_interval_get()
26421     *
26422     * @ingroup Flipselector
26423     */
26424    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
26425
26426    /**
26427     * Get the interval on time updates for an user mouse button hold
26428     * on a flip selector widget.
26429     *
26430     * @param obj The flip selector object
26431     * @return The (first) interval value, in seconds, set on it
26432     *
26433     * @see elm_flipselector_interval_set() for more details
26434     *
26435     * @ingroup Flipselector
26436     */
26437    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26438    /**
26439     * @}
26440     */
26441
26442    /**
26443     * @addtogroup Calendar
26444     * @{
26445     */
26446
26447    /**
26448     * @enum _Elm_Calendar_Mark_Repeat
26449     * @typedef Elm_Calendar_Mark_Repeat
26450     *
26451     * Event periodicity, used to define if a mark should be repeated
26452     * @b beyond event's day. It's set when a mark is added.
26453     *
26454     * So, for a mark added to 13th May with periodicity set to WEEKLY,
26455     * there will be marks every week after this date. Marks will be displayed
26456     * at 13th, 20th, 27th, 3rd June ...
26457     *
26458     * Values don't work as bitmask, only one can be choosen.
26459     *
26460     * @see elm_calendar_mark_add()
26461     *
26462     * @ingroup Calendar
26463     */
26464    typedef enum _Elm_Calendar_Mark_Repeat
26465      {
26466         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
26467         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
26468         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
26469         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*/
26470         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. */
26471      } Elm_Calendar_Mark_Repeat;
26472
26473    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(). */
26474
26475    /**
26476     * Add a new calendar widget to the given parent Elementary
26477     * (container) object.
26478     *
26479     * @param parent The parent object.
26480     * @return a new calendar widget handle or @c NULL, on errors.
26481     *
26482     * This function inserts a new calendar widget on the canvas.
26483     *
26484     * @ref calendar_example_01
26485     *
26486     * @ingroup Calendar
26487     */
26488    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26489
26490    /**
26491     * Get weekdays names displayed by the calendar.
26492     *
26493     * @param obj The calendar object.
26494     * @return Array of seven strings to be used as weekday names.
26495     *
26496     * By default, weekdays abbreviations get from system are displayed:
26497     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
26498     * The first string is related to Sunday, the second to Monday...
26499     *
26500     * @see elm_calendar_weekdays_name_set()
26501     *
26502     * @ref calendar_example_05
26503     *
26504     * @ingroup Calendar
26505     */
26506    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26507
26508    /**
26509     * Set weekdays names to be displayed by the calendar.
26510     *
26511     * @param obj The calendar object.
26512     * @param weekdays Array of seven strings to be used as weekday names.
26513     * @warning It must have 7 elements, or it will access invalid memory.
26514     * @warning The strings must be NULL terminated ('@\0').
26515     *
26516     * By default, weekdays abbreviations get from system are displayed:
26517     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
26518     *
26519     * The first string should be related to Sunday, the second to Monday...
26520     *
26521     * The usage should be like this:
26522     * @code
26523     *   const char *weekdays[] =
26524     *   {
26525     *      "Sunday", "Monday", "Tuesday", "Wednesday",
26526     *      "Thursday", "Friday", "Saturday"
26527     *   };
26528     *   elm_calendar_weekdays_names_set(calendar, weekdays);
26529     * @endcode
26530     *
26531     * @see elm_calendar_weekdays_name_get()
26532     *
26533     * @ref calendar_example_02
26534     *
26535     * @ingroup Calendar
26536     */
26537    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
26538
26539    /**
26540     * Set the minimum and maximum values for the year
26541     *
26542     * @param obj The calendar object
26543     * @param min The minimum year, greater than 1901;
26544     * @param max The maximum year;
26545     *
26546     * Maximum must be greater than minimum, except if you don't wan't to set
26547     * maximum year.
26548     * Default values are 1902 and -1.
26549     *
26550     * If the maximum year is a negative value, it will be limited depending
26551     * on the platform architecture (year 2037 for 32 bits);
26552     *
26553     * @see elm_calendar_min_max_year_get()
26554     *
26555     * @ref calendar_example_03
26556     *
26557     * @ingroup Calendar
26558     */
26559    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
26560
26561    /**
26562     * Get the minimum and maximum values for the year
26563     *
26564     * @param obj The calendar object.
26565     * @param min The minimum year.
26566     * @param max The maximum year.
26567     *
26568     * Default values are 1902 and -1.
26569     *
26570     * @see elm_calendar_min_max_year_get() for more details.
26571     *
26572     * @ref calendar_example_05
26573     *
26574     * @ingroup Calendar
26575     */
26576    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
26577
26578    /**
26579     * Enable or disable day selection
26580     *
26581     * @param obj The calendar object.
26582     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
26583     * disable it.
26584     *
26585     * Enabled by default. If disabled, the user still can select months,
26586     * but not days. Selected days are highlighted on calendar.
26587     * It should be used if you won't need such selection for the widget usage.
26588     *
26589     * When a day is selected, or month is changed, smart callbacks for
26590     * signal "changed" will be called.
26591     *
26592     * @see elm_calendar_day_selection_enable_get()
26593     *
26594     * @ref calendar_example_04
26595     *
26596     * @ingroup Calendar
26597     */
26598    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
26599
26600    /**
26601     * Get a value whether day selection is enabled or not.
26602     *
26603     * @see elm_calendar_day_selection_enable_set() for details.
26604     *
26605     * @param obj The calendar object.
26606     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
26607     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
26608     *
26609     * @ref calendar_example_05
26610     *
26611     * @ingroup Calendar
26612     */
26613    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26614
26615
26616    /**
26617     * Set selected date to be highlighted on calendar.
26618     *
26619     * @param obj The calendar object.
26620     * @param selected_time A @b tm struct to represent the selected date.
26621     *
26622     * Set the selected date, changing the displayed month if needed.
26623     * Selected date changes when the user goes to next/previous month or
26624     * select a day pressing over it on calendar.
26625     *
26626     * @see elm_calendar_selected_time_get()
26627     *
26628     * @ref calendar_example_04
26629     *
26630     * @ingroup Calendar
26631     */
26632    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
26633
26634    /**
26635     * Get selected date.
26636     *
26637     * @param obj The calendar object
26638     * @param selected_time A @b tm struct to point to selected date
26639     * @return EINA_FALSE means an error ocurred and returned time shouldn't
26640     * be considered.
26641     *
26642     * Get date selected by the user or set by function
26643     * elm_calendar_selected_time_set().
26644     * Selected date changes when the user goes to next/previous month or
26645     * select a day pressing over it on calendar.
26646     *
26647     * @see elm_calendar_selected_time_get()
26648     *
26649     * @ref calendar_example_05
26650     *
26651     * @ingroup Calendar
26652     */
26653    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
26654
26655    /**
26656     * Set a function to format the string that will be used to display
26657     * month and year;
26658     *
26659     * @param obj The calendar object
26660     * @param format_function Function to set the month-year string given
26661     * the selected date
26662     *
26663     * By default it uses strftime with "%B %Y" format string.
26664     * It should allocate the memory that will be used by the string,
26665     * that will be freed by the widget after usage.
26666     * A pointer to the string and a pointer to the time struct will be provided.
26667     *
26668     * Example:
26669     * @code
26670     * static char *
26671     * _format_month_year(struct tm *selected_time)
26672     * {
26673     *    char buf[32];
26674     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
26675     *    return strdup(buf);
26676     * }
26677     *
26678     * elm_calendar_format_function_set(calendar, _format_month_year);
26679     * @endcode
26680     *
26681     * @ref calendar_example_02
26682     *
26683     * @ingroup Calendar
26684     */
26685    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
26686
26687    /**
26688     * Add a new mark to the calendar
26689     *
26690     * @param obj The calendar object
26691     * @param mark_type A string used to define the type of mark. It will be
26692     * emitted to the theme, that should display a related modification on these
26693     * days representation.
26694     * @param mark_time A time struct to represent the date of inclusion of the
26695     * mark. For marks that repeats it will just be displayed after the inclusion
26696     * date in the calendar.
26697     * @param repeat Repeat the event following this periodicity. Can be a unique
26698     * mark (that don't repeat), daily, weekly, monthly or annually.
26699     * @return The created mark or @p NULL upon failure.
26700     *
26701     * Add a mark that will be drawn in the calendar respecting the insertion
26702     * time and periodicity. It will emit the type as signal to the widget theme.
26703     * Default theme supports "holiday" and "checked", but it can be extended.
26704     *
26705     * It won't immediately update the calendar, drawing the marks.
26706     * For this, call elm_calendar_marks_draw(). However, when user selects
26707     * next or previous month calendar forces marks drawn.
26708     *
26709     * Marks created with this method can be deleted with
26710     * elm_calendar_mark_del().
26711     *
26712     * Example
26713     * @code
26714     * struct tm selected_time;
26715     * time_t current_time;
26716     *
26717     * current_time = time(NULL) + 5 * 84600;
26718     * localtime_r(&current_time, &selected_time);
26719     * elm_calendar_mark_add(cal, "holiday", selected_time,
26720     *     ELM_CALENDAR_ANNUALLY);
26721     *
26722     * current_time = time(NULL) + 1 * 84600;
26723     * localtime_r(&current_time, &selected_time);
26724     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
26725     *
26726     * elm_calendar_marks_draw(cal);
26727     * @endcode
26728     *
26729     * @see elm_calendar_marks_draw()
26730     * @see elm_calendar_mark_del()
26731     *
26732     * @ref calendar_example_06
26733     *
26734     * @ingroup Calendar
26735     */
26736    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);
26737
26738    /**
26739     * Delete mark from the calendar.
26740     *
26741     * @param mark The mark to be deleted.
26742     *
26743     * If deleting all calendar marks is required, elm_calendar_marks_clear()
26744     * should be used instead of getting marks list and deleting each one.
26745     *
26746     * @see elm_calendar_mark_add()
26747     *
26748     * @ref calendar_example_06
26749     *
26750     * @ingroup Calendar
26751     */
26752    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
26753
26754    /**
26755     * Remove all calendar's marks
26756     *
26757     * @param obj The calendar object.
26758     *
26759     * @see elm_calendar_mark_add()
26760     * @see elm_calendar_mark_del()
26761     *
26762     * @ingroup Calendar
26763     */
26764    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26765
26766    /**
26767     * Get a list of all the calendar marks.
26768     *
26769     * @param obj The calendar object.
26770     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
26771     *
26772     * @see elm_calendar_mark_add()
26773     * @see elm_calendar_mark_del()
26774     * @see elm_calendar_marks_clear()
26775     *
26776     * @ingroup Calendar
26777     */
26778    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26779
26780    /**
26781     * Draw calendar marks.
26782     *
26783     * @param obj The calendar object.
26784     *
26785     * Should be used after adding, removing or clearing marks.
26786     * It will go through the entire marks list updating the calendar.
26787     * If lots of marks will be added, add all the marks and then call
26788     * this function.
26789     *
26790     * When the month is changed, i.e. user selects next or previous month,
26791     * marks will be drawed.
26792     *
26793     * @see elm_calendar_mark_add()
26794     * @see elm_calendar_mark_del()
26795     * @see elm_calendar_marks_clear()
26796     *
26797     * @ref calendar_example_06
26798     *
26799     * @ingroup Calendar
26800     */
26801    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
26802
26803    /**
26804     * Set a day text color to the same that represents Saturdays.
26805     *
26806     * @param obj The calendar object.
26807     * @param pos The text position. Position is the cell counter, from left
26808     * to right, up to down. It starts on 0 and ends on 41.
26809     *
26810     * @deprecated use elm_calendar_mark_add() instead like:
26811     *
26812     * @code
26813     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
26814     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
26815     * @endcode
26816     *
26817     * @see elm_calendar_mark_add()
26818     *
26819     * @ingroup Calendar
26820     */
26821    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26822
26823    /**
26824     * Set a day text color to the same that represents Sundays.
26825     *
26826     * @param obj The calendar object.
26827     * @param pos The text position. Position is the cell counter, from left
26828     * to right, up to down. It starts on 0 and ends on 41.
26829
26830     * @deprecated use elm_calendar_mark_add() instead like:
26831     *
26832     * @code
26833     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
26834     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
26835     * @endcode
26836     *
26837     * @see elm_calendar_mark_add()
26838     *
26839     * @ingroup Calendar
26840     */
26841    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26842
26843    /**
26844     * Set a day text color to the same that represents Weekdays.
26845     *
26846     * @param obj The calendar object
26847     * @param pos The text position. Position is the cell counter, from left
26848     * to right, up to down. It starts on 0 and ends on 41.
26849     *
26850     * @deprecated use elm_calendar_mark_add() instead like:
26851     *
26852     * @code
26853     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
26854     *
26855     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
26856     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26857     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
26858     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26859     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
26860     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26861     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
26862     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26863     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
26864     * @endcode
26865     *
26866     * @see elm_calendar_mark_add()
26867     *
26868     * @ingroup Calendar
26869     */
26870    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26871
26872    /**
26873     * Set the interval on time updates for an user mouse button hold
26874     * on calendar widgets' month selection.
26875     *
26876     * @param obj The calendar object
26877     * @param interval The (first) interval value in seconds
26878     *
26879     * This interval value is @b decreased while the user holds the
26880     * mouse pointer either selecting next or previous month.
26881     *
26882     * This helps the user to get to a given month distant from the
26883     * current one easier/faster, as it will start to change quicker and
26884     * quicker on mouse button holds.
26885     *
26886     * The calculation for the next change interval value, starting from
26887     * the one set with this call, is the previous interval divided by
26888     * 1.05, so it decreases a little bit.
26889     *
26890     * The default starting interval value for automatic changes is
26891     * @b 0.85 seconds.
26892     *
26893     * @see elm_calendar_interval_get()
26894     *
26895     * @ingroup Calendar
26896     */
26897    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
26898
26899    /**
26900     * Get the interval on time updates for an user mouse button hold
26901     * on calendar widgets' month selection.
26902     *
26903     * @param obj The calendar object
26904     * @return The (first) interval value, in seconds, set on it
26905     *
26906     * @see elm_calendar_interval_set() for more details
26907     *
26908     * @ingroup Calendar
26909     */
26910    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26911
26912    /**
26913     * @}
26914     */
26915
26916    /**
26917     * @defgroup Diskselector Diskselector
26918     * @ingroup Elementary
26919     *
26920     * @image html img/widget/diskselector/preview-00.png
26921     * @image latex img/widget/diskselector/preview-00.eps
26922     *
26923     * A diskselector is a kind of list widget. It scrolls horizontally,
26924     * and can contain label and icon objects. Three items are displayed
26925     * with the selected one in the middle.
26926     *
26927     * It can act like a circular list with round mode and labels can be
26928     * reduced for a defined length for side items.
26929     *
26930     * Smart callbacks one can listen to:
26931     * - "selected" - when item is selected, i.e. scroller stops.
26932     *
26933     * Available styles for it:
26934     * - @c "default"
26935     *
26936     * List of examples:
26937     * @li @ref diskselector_example_01
26938     * @li @ref diskselector_example_02
26939     */
26940
26941    /**
26942     * @addtogroup Diskselector
26943     * @{
26944     */
26945
26946    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(). */
26947
26948    /**
26949     * Add a new diskselector widget to the given parent Elementary
26950     * (container) object.
26951     *
26952     * @param parent The parent object.
26953     * @return a new diskselector widget handle or @c NULL, on errors.
26954     *
26955     * This function inserts a new diskselector widget on the canvas.
26956     *
26957     * @ingroup Diskselector
26958     */
26959    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26960
26961    /**
26962     * Enable or disable round mode.
26963     *
26964     * @param obj The diskselector object.
26965     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
26966     * disable it.
26967     *
26968     * Disabled by default. If round mode is enabled the items list will
26969     * work like a circle list, so when the user reaches the last item,
26970     * the first one will popup.
26971     *
26972     * @see elm_diskselector_round_get()
26973     *
26974     * @ingroup Diskselector
26975     */
26976    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
26977
26978    /**
26979     * Get a value whether round mode is enabled or not.
26980     *
26981     * @see elm_diskselector_round_set() for details.
26982     *
26983     * @param obj The diskselector object.
26984     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
26985     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26986     *
26987     * @ingroup Diskselector
26988     */
26989    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26990
26991    /**
26992     * Get the side labels max length.
26993     *
26994     * @deprecated use elm_diskselector_side_label_length_get() instead:
26995     *
26996     * @param obj The diskselector object.
26997     * @return The max length defined for side labels, or 0 if not a valid
26998     * diskselector.
26999     *
27000     * @ingroup Diskselector
27001     */
27002    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27003
27004    /**
27005     * Set the side labels max length.
27006     *
27007     * @deprecated use elm_diskselector_side_label_length_set() instead:
27008     *
27009     * @param obj The diskselector object.
27010     * @param len The max length defined for side labels.
27011     *
27012     * @ingroup Diskselector
27013     */
27014    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
27015
27016    /**
27017     * Get the side labels max length.
27018     *
27019     * @see elm_diskselector_side_label_length_set() for details.
27020     *
27021     * @param obj The diskselector object.
27022     * @return The max length defined for side labels, or 0 if not a valid
27023     * diskselector.
27024     *
27025     * @ingroup Diskselector
27026     */
27027    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27028
27029    /**
27030     * Set the side labels max length.
27031     *
27032     * @param obj The diskselector object.
27033     * @param len The max length defined for side labels.
27034     *
27035     * Length is the number of characters of items' label that will be
27036     * visible when it's set on side positions. It will just crop
27037     * the string after defined size. E.g.:
27038     *
27039     * An item with label "January" would be displayed on side position as
27040     * "Jan" if max length is set to 3, or "Janu", if this property
27041     * is set to 4.
27042     *
27043     * When it's selected, the entire label will be displayed, except for
27044     * width restrictions. In this case label will be cropped and "..."
27045     * will be concatenated.
27046     *
27047     * Default side label max length is 3.
27048     *
27049     * This property will be applyed over all items, included before or
27050     * later this function call.
27051     *
27052     * @ingroup Diskselector
27053     */
27054    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
27055
27056    /**
27057     * Set the number of items to be displayed.
27058     *
27059     * @param obj The diskselector object.
27060     * @param num The number of items the diskselector will display.
27061     *
27062     * Default value is 3, and also it's the minimun. If @p num is less
27063     * than 3, it will be set to 3.
27064     *
27065     * Also, it can be set on theme, using data item @c display_item_num
27066     * on group "elm/diskselector/item/X", where X is style set.
27067     * E.g.:
27068     *
27069     * group { name: "elm/diskselector/item/X";
27070     * data {
27071     *     item: "display_item_num" "5";
27072     *     }
27073     *
27074     * @ingroup Diskselector
27075     */
27076    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
27077
27078    /**
27079     * Get the number of items in the diskselector object.
27080     *
27081     * @param obj The diskselector object.
27082     *
27083     * @ingroup Diskselector
27084     */
27085    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27086
27087    /**
27088     * Set bouncing behaviour when the scrolled content reaches an edge.
27089     *
27090     * Tell the internal scroller object whether it should bounce or not
27091     * when it reaches the respective edges for each axis.
27092     *
27093     * @param obj The diskselector object.
27094     * @param h_bounce Whether to bounce or not in the horizontal axis.
27095     * @param v_bounce Whether to bounce or not in the vertical axis.
27096     *
27097     * @see elm_scroller_bounce_set()
27098     *
27099     * @ingroup Diskselector
27100     */
27101    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
27102
27103    /**
27104     * Get the bouncing behaviour of the internal scroller.
27105     *
27106     * Get whether the internal scroller should bounce when the edge of each
27107     * axis is reached scrolling.
27108     *
27109     * @param obj The diskselector object.
27110     * @param h_bounce Pointer where to store the bounce state of the horizontal
27111     * axis.
27112     * @param v_bounce Pointer where to store the bounce state of the vertical
27113     * axis.
27114     *
27115     * @see elm_scroller_bounce_get()
27116     * @see elm_diskselector_bounce_set()
27117     *
27118     * @ingroup Diskselector
27119     */
27120    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
27121
27122    /**
27123     * Get the scrollbar policy.
27124     *
27125     * @see elm_diskselector_scroller_policy_get() for details.
27126     *
27127     * @param obj The diskselector object.
27128     * @param policy_h Pointer where to store horizontal scrollbar policy.
27129     * @param policy_v Pointer where to store vertical scrollbar policy.
27130     *
27131     * @ingroup Diskselector
27132     */
27133    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);
27134
27135    /**
27136     * Set the scrollbar policy.
27137     *
27138     * @param obj The diskselector object.
27139     * @param policy_h Horizontal scrollbar policy.
27140     * @param policy_v Vertical scrollbar policy.
27141     *
27142     * This sets the scrollbar visibility policy for the given scroller.
27143     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
27144     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
27145     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
27146     * This applies respectively for the horizontal and vertical scrollbars.
27147     *
27148     * The both are disabled by default, i.e., are set to
27149     * #ELM_SCROLLER_POLICY_OFF.
27150     *
27151     * @ingroup Diskselector
27152     */
27153    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
27154
27155    /**
27156     * Remove all diskselector's items.
27157     *
27158     * @param obj The diskselector object.
27159     *
27160     * @see elm_diskselector_item_del()
27161     * @see elm_diskselector_item_append()
27162     *
27163     * @ingroup Diskselector
27164     */
27165    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
27166
27167    /**
27168     * Get a list of all the diskselector items.
27169     *
27170     * @param obj The diskselector object.
27171     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
27172     * or @c NULL on failure.
27173     *
27174     * @see elm_diskselector_item_append()
27175     * @see elm_diskselector_item_del()
27176     * @see elm_diskselector_clear()
27177     *
27178     * @ingroup Diskselector
27179     */
27180    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27181
27182    /**
27183     * Appends a new item to the diskselector object.
27184     *
27185     * @param obj The diskselector object.
27186     * @param label The label of the diskselector item.
27187     * @param icon The icon object to use at left side of the item. An
27188     * icon can be any Evas object, but usually it is an icon created
27189     * with elm_icon_add().
27190     * @param func The function to call when the item is selected.
27191     * @param data The data to associate with the item for related callbacks.
27192     *
27193     * @return The created item or @c NULL upon failure.
27194     *
27195     * A new item will be created and appended to the diskselector, i.e., will
27196     * be set as last item. Also, if there is no selected item, it will
27197     * be selected. This will always happens for the first appended item.
27198     *
27199     * If no icon is set, label will be centered on item position, otherwise
27200     * the icon will be placed at left of the label, that will be shifted
27201     * to the right.
27202     *
27203     * Items created with this method can be deleted with
27204     * elm_diskselector_item_del().
27205     *
27206     * Associated @p data can be properly freed when item is deleted if a
27207     * callback function is set with elm_diskselector_item_del_cb_set().
27208     *
27209     * If a function is passed as argument, it will be called everytime this item
27210     * is selected, i.e., the user stops the diskselector with this
27211     * item on center position. If such function isn't needed, just passing
27212     * @c NULL as @p func is enough. The same should be done for @p data.
27213     *
27214     * Simple example (with no function callback or data associated):
27215     * @code
27216     * disk = elm_diskselector_add(win);
27217     * ic = elm_icon_add(win);
27218     * elm_icon_file_set(ic, "path/to/image", NULL);
27219     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
27220     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
27221     * @endcode
27222     *
27223     * @see elm_diskselector_item_del()
27224     * @see elm_diskselector_item_del_cb_set()
27225     * @see elm_diskselector_clear()
27226     * @see elm_icon_add()
27227     *
27228     * @ingroup Diskselector
27229     */
27230    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);
27231
27232
27233    /**
27234     * Delete them item from the diskselector.
27235     *
27236     * @param it The item of diskselector to be deleted.
27237     *
27238     * If deleting all diskselector items is required, elm_diskselector_clear()
27239     * should be used instead of getting items list and deleting each one.
27240     *
27241     * @see elm_diskselector_clear()
27242     * @see elm_diskselector_item_append()
27243     * @see elm_diskselector_item_del_cb_set()
27244     *
27245     * @ingroup Diskselector
27246     */
27247    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27248
27249    /**
27250     * Set the function called when a diskselector item is freed.
27251     *
27252     * @param it The item to set the callback on
27253     * @param func The function called
27254     *
27255     * If there is a @p func, then it will be called prior item's memory release.
27256     * That will be called with the following arguments:
27257     * @li item's data;
27258     * @li item's Evas object;
27259     * @li item itself;
27260     *
27261     * This way, a data associated to a diskselector item could be properly
27262     * freed.
27263     *
27264     * @ingroup Diskselector
27265     */
27266    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
27267
27268    /**
27269     * Get the data associated to the item.
27270     *
27271     * @param it The diskselector item
27272     * @return The data associated to @p it
27273     *
27274     * The return value is a pointer to data associated to @p item when it was
27275     * created, with function elm_diskselector_item_append(). If no data
27276     * was passed as argument, it will return @c NULL.
27277     *
27278     * @see elm_diskselector_item_append()
27279     *
27280     * @ingroup Diskselector
27281     */
27282    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27283
27284    /**
27285     * Set the icon associated to the item.
27286     *
27287     * @param it The diskselector item
27288     * @param icon The icon object to associate with @p it
27289     *
27290     * The icon object to use at left side of the item. An
27291     * icon can be any Evas object, but usually it is an icon created
27292     * with elm_icon_add().
27293     *
27294     * Once the icon object is set, a previously set one will be deleted.
27295     * @warning Setting the same icon for two items will cause the icon to
27296     * dissapear from the first item.
27297     *
27298     * If an icon was passed as argument on item creation, with function
27299     * elm_diskselector_item_append(), it will be already
27300     * associated to the item.
27301     *
27302     * @see elm_diskselector_item_append()
27303     * @see elm_diskselector_item_icon_get()
27304     *
27305     * @ingroup Diskselector
27306     */
27307    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
27308
27309    /**
27310     * Get the icon associated to the item.
27311     *
27312     * @param it The diskselector item
27313     * @return The icon associated to @p it
27314     *
27315     * The return value is a pointer to the icon associated to @p item when it was
27316     * created, with function elm_diskselector_item_append(), or later
27317     * with function elm_diskselector_item_icon_set. If no icon
27318     * was passed as argument, it will return @c NULL.
27319     *
27320     * @see elm_diskselector_item_append()
27321     * @see elm_diskselector_item_icon_set()
27322     *
27323     * @ingroup Diskselector
27324     */
27325    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27326
27327    /**
27328     * Set the label of item.
27329     *
27330     * @param it The item of diskselector.
27331     * @param label The label of item.
27332     *
27333     * The label to be displayed by the item.
27334     *
27335     * If no icon is set, label will be centered on item position, otherwise
27336     * the icon will be placed at left of the label, that will be shifted
27337     * to the right.
27338     *
27339     * An item with label "January" would be displayed on side position as
27340     * "Jan" if max length is set to 3 with function
27341     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
27342     * is set to 4.
27343     *
27344     * When this @p item is selected, the entire label will be displayed,
27345     * except for width restrictions.
27346     * In this case label will be cropped and "..." will be concatenated,
27347     * but only for display purposes. It will keep the entire string, so
27348     * if diskselector is resized the remaining characters will be displayed.
27349     *
27350     * If a label was passed as argument on item creation, with function
27351     * elm_diskselector_item_append(), it will be already
27352     * displayed by the item.
27353     *
27354     * @see elm_diskselector_side_label_lenght_set()
27355     * @see elm_diskselector_item_label_get()
27356     * @see elm_diskselector_item_append()
27357     *
27358     * @ingroup Diskselector
27359     */
27360    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
27361
27362    /**
27363     * Get the label of item.
27364     *
27365     * @param it The item of diskselector.
27366     * @return The label of item.
27367     *
27368     * The return value is a pointer to the label associated to @p item when it was
27369     * created, with function elm_diskselector_item_append(), or later
27370     * with function elm_diskselector_item_label_set. If no label
27371     * was passed as argument, it will return @c NULL.
27372     *
27373     * @see elm_diskselector_item_label_set() for more details.
27374     * @see elm_diskselector_item_append()
27375     *
27376     * @ingroup Diskselector
27377     */
27378    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27379
27380    /**
27381     * Get the selected item.
27382     *
27383     * @param obj The diskselector object.
27384     * @return The selected diskselector item.
27385     *
27386     * The selected item can be unselected with function
27387     * elm_diskselector_item_selected_set(), and the first item of
27388     * diskselector will be selected.
27389     *
27390     * The selected item always will be centered on diskselector, with
27391     * full label displayed, i.e., max lenght set to side labels won't
27392     * apply on the selected item. More details on
27393     * elm_diskselector_side_label_length_set().
27394     *
27395     * @ingroup Diskselector
27396     */
27397    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27398
27399    /**
27400     * Set the selected state of an item.
27401     *
27402     * @param it The diskselector item
27403     * @param selected The selected state
27404     *
27405     * This sets the selected state of the given item @p it.
27406     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
27407     *
27408     * If a new item is selected the previosly selected will be unselected.
27409     * Previoulsy selected item can be get with function
27410     * elm_diskselector_selected_item_get().
27411     *
27412     * If the item @p it is unselected, the first item of diskselector will
27413     * be selected.
27414     *
27415     * Selected items will be visible on center position of diskselector.
27416     * So if it was on another position before selected, or was invisible,
27417     * diskselector will animate items until the selected item reaches center
27418     * position.
27419     *
27420     * @see elm_diskselector_item_selected_get()
27421     * @see elm_diskselector_selected_item_get()
27422     *
27423     * @ingroup Diskselector
27424     */
27425    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
27426
27427    /*
27428     * Get whether the @p item is selected or not.
27429     *
27430     * @param it The diskselector item.
27431     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
27432     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
27433     *
27434     * @see elm_diskselector_selected_item_set() for details.
27435     * @see elm_diskselector_item_selected_get()
27436     *
27437     * @ingroup Diskselector
27438     */
27439    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27440
27441    /**
27442     * Get the first item of the diskselector.
27443     *
27444     * @param obj The diskselector object.
27445     * @return The first item, or @c NULL if none.
27446     *
27447     * The list of items follows append order. So it will return the first
27448     * item appended to the widget that wasn't deleted.
27449     *
27450     * @see elm_diskselector_item_append()
27451     * @see elm_diskselector_items_get()
27452     *
27453     * @ingroup Diskselector
27454     */
27455    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27456
27457    /**
27458     * Get the last item of the diskselector.
27459     *
27460     * @param obj The diskselector object.
27461     * @return The last item, or @c NULL if none.
27462     *
27463     * The list of items follows append order. So it will return last first
27464     * item appended to the widget that wasn't deleted.
27465     *
27466     * @see elm_diskselector_item_append()
27467     * @see elm_diskselector_items_get()
27468     *
27469     * @ingroup Diskselector
27470     */
27471    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27472
27473    /**
27474     * Get the item before @p item in diskselector.
27475     *
27476     * @param it The diskselector item.
27477     * @return The item before @p item, or @c NULL if none or on failure.
27478     *
27479     * The list of items follows append order. So it will return item appended
27480     * just before @p item and that wasn't deleted.
27481     *
27482     * If it is the first item, @c NULL will be returned.
27483     * First item can be get by elm_diskselector_first_item_get().
27484     *
27485     * @see elm_diskselector_item_append()
27486     * @see elm_diskselector_items_get()
27487     *
27488     * @ingroup Diskselector
27489     */
27490    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27491
27492    /**
27493     * Get the item after @p item in diskselector.
27494     *
27495     * @param it The diskselector item.
27496     * @return The item after @p item, or @c NULL if none or on failure.
27497     *
27498     * The list of items follows append order. So it will return item appended
27499     * just after @p item and that wasn't deleted.
27500     *
27501     * If it is the last item, @c NULL will be returned.
27502     * Last item can be get by elm_diskselector_last_item_get().
27503     *
27504     * @see elm_diskselector_item_append()
27505     * @see elm_diskselector_items_get()
27506     *
27507     * @ingroup Diskselector
27508     */
27509    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27510
27511    /**
27512     * Set the text to be shown in the diskselector item.
27513     *
27514     * @param item Target item
27515     * @param text The text to set in the content
27516     *
27517     * Setup the text as tooltip to object. The item can have only one tooltip,
27518     * so any previous tooltip data is removed.
27519     *
27520     * @see elm_object_tooltip_text_set() for more details.
27521     *
27522     * @ingroup Diskselector
27523     */
27524    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
27525
27526    /**
27527     * Set the content to be shown in the tooltip item.
27528     *
27529     * Setup the tooltip to item. The item can have only one tooltip,
27530     * so any previous tooltip data is removed. @p func(with @p data) will
27531     * be called every time that need show the tooltip and it should
27532     * return a valid Evas_Object. This object is then managed fully by
27533     * tooltip system and is deleted when the tooltip is gone.
27534     *
27535     * @param item the diskselector item being attached a tooltip.
27536     * @param func the function used to create the tooltip contents.
27537     * @param data what to provide to @a func as callback data/context.
27538     * @param del_cb called when data is not needed anymore, either when
27539     *        another callback replaces @p func, the tooltip is unset with
27540     *        elm_diskselector_item_tooltip_unset() or the owner @a item
27541     *        dies. This callback receives as the first parameter the
27542     *        given @a data, and @c event_info is the item.
27543     *
27544     * @see elm_object_tooltip_content_cb_set() for more details.
27545     *
27546     * @ingroup Diskselector
27547     */
27548    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);
27549
27550    /**
27551     * Unset tooltip from item.
27552     *
27553     * @param item diskselector item to remove previously set tooltip.
27554     *
27555     * Remove tooltip from item. The callback provided as del_cb to
27556     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
27557     * it is not used anymore.
27558     *
27559     * @see elm_object_tooltip_unset() for more details.
27560     * @see elm_diskselector_item_tooltip_content_cb_set()
27561     *
27562     * @ingroup Diskselector
27563     */
27564    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27565
27566    /**
27567     * Sets a different style for this item tooltip.
27568     *
27569     * @note before you set a style you should define a tooltip with
27570     *       elm_diskselector_item_tooltip_content_cb_set() or
27571     *       elm_diskselector_item_tooltip_text_set()
27572     *
27573     * @param item diskselector item with tooltip already set.
27574     * @param style the theme style to use (default, transparent, ...)
27575     *
27576     * @see elm_object_tooltip_style_set() for more details.
27577     *
27578     * @ingroup Diskselector
27579     */
27580    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
27581
27582    /**
27583     * Get the style for this item tooltip.
27584     *
27585     * @param item diskselector item with tooltip already set.
27586     * @return style the theme style in use, defaults to "default". If the
27587     *         object does not have a tooltip set, then NULL is returned.
27588     *
27589     * @see elm_object_tooltip_style_get() for more details.
27590     * @see elm_diskselector_item_tooltip_style_set()
27591     *
27592     * @ingroup Diskselector
27593     */
27594    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27595
27596    /**
27597     * Set the cursor to be shown when mouse is over the diskselector item
27598     *
27599     * @param item Target item
27600     * @param cursor the cursor name to be used.
27601     *
27602     * @see elm_object_cursor_set() for more details.
27603     *
27604     * @ingroup Diskselector
27605     */
27606    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
27607
27608    /**
27609     * Get the cursor to be shown when mouse is over the diskselector item
27610     *
27611     * @param item diskselector item with cursor already set.
27612     * @return the cursor name.
27613     *
27614     * @see elm_object_cursor_get() for more details.
27615     * @see elm_diskselector_cursor_set()
27616     *
27617     * @ingroup Diskselector
27618     */
27619    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27620
27621    /**
27622     * Unset the cursor to be shown when mouse is over the diskselector item
27623     *
27624     * @param item Target item
27625     *
27626     * @see elm_object_cursor_unset() for more details.
27627     * @see elm_diskselector_cursor_set()
27628     *
27629     * @ingroup Diskselector
27630     */
27631    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27632
27633    /**
27634     * Sets a different style for this item cursor.
27635     *
27636     * @note before you set a style you should define a cursor with
27637     *       elm_diskselector_item_cursor_set()
27638     *
27639     * @param item diskselector item with cursor already set.
27640     * @param style the theme style to use (default, transparent, ...)
27641     *
27642     * @see elm_object_cursor_style_set() for more details.
27643     *
27644     * @ingroup Diskselector
27645     */
27646    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
27647
27648    /**
27649     * Get the style for this item cursor.
27650     *
27651     * @param item diskselector item with cursor already set.
27652     * @return style the theme style in use, defaults to "default". If the
27653     *         object does not have a cursor set, then @c NULL is returned.
27654     *
27655     * @see elm_object_cursor_style_get() for more details.
27656     * @see elm_diskselector_item_cursor_style_set()
27657     *
27658     * @ingroup Diskselector
27659     */
27660    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27661
27662
27663    /**
27664     * Set if the cursor set should be searched on the theme or should use
27665     * the provided by the engine, only.
27666     *
27667     * @note before you set if should look on theme you should define a cursor
27668     * with elm_diskselector_item_cursor_set().
27669     * By default it will only look for cursors provided by the engine.
27670     *
27671     * @param item widget item with cursor already set.
27672     * @param engine_only boolean to define if cursors set with
27673     * elm_diskselector_item_cursor_set() should be searched only
27674     * between cursors provided by the engine or searched on widget's
27675     * theme as well.
27676     *
27677     * @see elm_object_cursor_engine_only_set() for more details.
27678     *
27679     * @ingroup Diskselector
27680     */
27681    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
27682
27683    /**
27684     * Get the cursor engine only usage for this item cursor.
27685     *
27686     * @param item widget item with cursor already set.
27687     * @return engine_only boolean to define it cursors should be looked only
27688     * between the provided by the engine or searched on widget's theme as well.
27689     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
27690     *
27691     * @see elm_object_cursor_engine_only_get() for more details.
27692     * @see elm_diskselector_item_cursor_engine_only_set()
27693     *
27694     * @ingroup Diskselector
27695     */
27696    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27697
27698    /**
27699     * @}
27700     */
27701
27702    /**
27703     * @defgroup Colorselector Colorselector
27704     *
27705     * @{
27706     *
27707     * @image html img/widget/colorselector/preview-00.png
27708     * @image latex img/widget/colorselector/preview-00.eps
27709     *
27710     * @brief Widget for user to select a color.
27711     *
27712     * Signals that you can add callbacks for are:
27713     * "changed" - When the color value changes(event_info is NULL).
27714     *
27715     * See @ref tutorial_colorselector.
27716     */
27717    /**
27718     * @brief Add a new colorselector to the parent
27719     *
27720     * @param parent The parent object
27721     * @return The new object or NULL if it cannot be created
27722     *
27723     * @ingroup Colorselector
27724     */
27725    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27726    /**
27727     * Set a color for the colorselector
27728     *
27729     * @param obj   Colorselector object
27730     * @param r     r-value of color
27731     * @param g     g-value of color
27732     * @param b     b-value of color
27733     * @param a     a-value of color
27734     *
27735     * @ingroup Colorselector
27736     */
27737    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
27738    /**
27739     * Get a color from the colorselector
27740     *
27741     * @param obj   Colorselector object
27742     * @param r     integer pointer for r-value of color
27743     * @param g     integer pointer for g-value of color
27744     * @param b     integer pointer for b-value of color
27745     * @param a     integer pointer for a-value of color
27746     *
27747     * @ingroup Colorselector
27748     */
27749    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
27750    /**
27751     * @}
27752     */
27753
27754    /**
27755     * @defgroup Ctxpopup Ctxpopup
27756     *
27757     * @image html img/widget/ctxpopup/preview-00.png
27758     * @image latex img/widget/ctxpopup/preview-00.eps
27759     *
27760     * @brief Context popup widet.
27761     *
27762     * A ctxpopup is a widget that, when shown, pops up a list of items.
27763     * It automatically chooses an area inside its parent object's view
27764     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
27765     * optimally fit into it. In the default theme, it will also point an
27766     * arrow to it's top left position at the time one shows it. Ctxpopup
27767     * items have a label and/or an icon. It is intended for a small
27768     * number of items (hence the use of list, not genlist).
27769     *
27770     * @note Ctxpopup is a especialization of @ref Hover.
27771     *
27772     * Signals that you can add callbacks for are:
27773     * "dismissed" - the ctxpopup was dismissed
27774     *
27775     * Default contents parts of the ctxpopup widget that you can use for are:
27776     * @li "default" - A content of the ctxpopup
27777     *
27778     * Default contents parts of the ctxpopup items that you can use for are:
27779     * @li "icon" - An icon in the title area
27780     *
27781     * Default text parts of the ctxpopup items that you can use for are:
27782     * @li "default" - Title label in the title area
27783     *
27784     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
27785     * @{
27786     */
27787
27788    /**
27789     * @addtogroup Ctxpopup
27790     * @{
27791     */
27792
27793    typedef enum _Elm_Ctxpopup_Direction
27794      {
27795         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
27796                                           area */
27797         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
27798                                            the clicked area */
27799         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
27800                                           the clicked area */
27801         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
27802                                         area */
27803         ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
27804      } Elm_Ctxpopup_Direction;
27805
27806    /**
27807     * @brief Add a new Ctxpopup object to the parent.
27808     *
27809     * @param parent Parent object
27810     * @return New object or @c NULL, if it cannot be created
27811     *
27812     * @ingroup Ctxpopup
27813     */
27814    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27815
27816    /**
27817     * @brief Set the Ctxpopup's parent
27818     *
27819     * @param obj The ctxpopup object
27820     * @param area The parent to use
27821     *
27822     * Set the parent object.
27823     *
27824     * @note elm_ctxpopup_add() will automatically call this function
27825     * with its @c parent argument.
27826     *
27827     * @see elm_ctxpopup_add()
27828     * @see elm_hover_parent_set()
27829     *
27830     * @ingroup Ctxpopup
27831     */
27832    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
27833
27834    /**
27835     * @brief Get the Ctxpopup's parent
27836     *
27837     * @param obj The ctxpopup object
27838     *
27839     * @see elm_ctxpopup_hover_parent_set() for more information
27840     *
27841     * @ingroup Ctxpopup
27842     */
27843    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27844
27845    /**
27846     * @brief Clear all items in the given ctxpopup object.
27847     *
27848     * @param obj Ctxpopup object
27849     *
27850     * @ingroup Ctxpopup
27851     */
27852    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
27853
27854    /**
27855     * @brief Change the ctxpopup's orientation to horizontal or vertical.
27856     *
27857     * @param obj Ctxpopup object
27858     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
27859     *
27860     * @ingroup Ctxpopup
27861     */
27862    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
27863
27864    /**
27865     * @brief Get the value of current ctxpopup object's orientation.
27866     *
27867     * @param obj Ctxpopup object
27868     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
27869     *
27870     * @see elm_ctxpopup_horizontal_set()
27871     *
27872     * @ingroup Ctxpopup
27873     */
27874    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27875
27876    /**
27877     * @brief Add a new item to a ctxpopup object.
27878     *
27879     * @param obj Ctxpopup object
27880     * @param icon Icon to be set on new item
27881     * @param label The Label of the new item
27882     * @param func Convenience function called when item selected
27883     * @param data Data passed to @p func
27884     * @return A handle to the item added or @c NULL, on errors
27885     *
27886     * @warning Ctxpopup can't hold both an item list and a content at the same
27887     * time. When an item is added, any previous content will be removed.
27888     *
27889     * @see elm_ctxpopup_content_set()
27890     *
27891     * @ingroup Ctxpopup
27892     */
27893    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);
27894
27895    /**
27896     * @brief Delete the given item in a ctxpopup object.
27897     *
27898     * @param it Ctxpopup item to be deleted
27899     *
27900     * @see elm_ctxpopup_item_append()
27901     *
27902     * @ingroup Ctxpopup
27903     */
27904    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27905
27906    /**
27907     * @brief Set the ctxpopup item's state as disabled or enabled.
27908     *
27909     * @param it Ctxpopup item to be enabled/disabled
27910     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
27911     *
27912     * When disabled the item is greyed out to indicate it's state.
27913     * @deprecated use elm_object_item_disabled_set() instead
27914     *
27915     * @ingroup Ctxpopup
27916     */
27917    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
27918
27919    /**
27920     * @brief Get the ctxpopup item's disabled/enabled state.
27921     *
27922     * @param it Ctxpopup item to be enabled/disabled
27923     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
27924     *
27925     * @see elm_ctxpopup_item_disabled_set()
27926     * @deprecated use elm_object_item_disabled_get() instead
27927     *
27928     * @ingroup Ctxpopup
27929     */
27930    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27931
27932    /**
27933     * @brief Get the icon object for the given ctxpopup item.
27934     *
27935     * @param it Ctxpopup item
27936     * @return icon object or @c NULL, if the item does not have icon or an error
27937     * occurred
27938     *
27939     * @see elm_ctxpopup_item_append()
27940     * @see elm_ctxpopup_item_icon_set()
27941     *
27942     * @deprecated use elm_object_item_part_content_get() instead
27943     *
27944     * @ingroup Ctxpopup
27945     */
27946    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27947
27948    /**
27949     * @brief Sets the side icon associated with the ctxpopup item
27950     *
27951     * @param it Ctxpopup item
27952     * @param icon Icon object to be set
27953     *
27954     * Once the icon object is set, a previously set one will be deleted.
27955     * @warning Setting the same icon for two items will cause the icon to
27956     * dissapear from the first item.
27957     *
27958     * @see elm_ctxpopup_item_append()
27959     *
27960     * @deprecated use elm_object_item_part_content_set() instead
27961     *
27962     * @ingroup Ctxpopup
27963     */
27964    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
27965
27966    /**
27967     * @brief Get the label for the given ctxpopup item.
27968     *
27969     * @param it Ctxpopup item
27970     * @return label string or @c NULL, if the item does not have label or an
27971     * error occured
27972     *
27973     * @see elm_ctxpopup_item_append()
27974     * @see elm_ctxpopup_item_label_set()
27975     *
27976     * @deprecated use elm_object_item_text_get() instead
27977     *
27978     * @ingroup Ctxpopup
27979     */
27980    EINA_DEPRECATED EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27981
27982    /**
27983     * @brief (Re)set the label on the given ctxpopup item.
27984     *
27985     * @param it Ctxpopup item
27986     * @param label String to set as label
27987     *
27988     * @deprecated use elm_object_item_text_set() instead
27989     *
27990     * @ingroup Ctxpopup
27991     */
27992    EINA_DEPRECATED EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
27993
27994    /**
27995     * @brief Set an elm widget as the content of the ctxpopup.
27996     *
27997     * @param obj Ctxpopup object
27998     * @param content Content to be swallowed
27999     *
28000     * If the content object is already set, a previous one will bedeleted. If
28001     * you want to keep that old content object, use the
28002     * elm_ctxpopup_content_unset() function.
28003     *
28004     * @warning Ctxpopup can't hold both a item list and a content at the same
28005     * time. When a content is set, any previous items will be removed.
28006     *
28007     * @deprecated use elm_object_content_set() instead
28008     *
28009     * @ingroup Ctxpopup
28010     */
28011    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
28012
28013    /**
28014     * @brief Unset the ctxpopup content
28015     *
28016     * @param obj Ctxpopup object
28017     * @return The content that was being used
28018     *
28019     * Unparent and return the content object which was set for this widget.
28020     *
28021     * @deprecated use elm_object_content_unset()
28022     *
28023     * @see elm_ctxpopup_content_set()
28024     *
28025     * @deprecated use elm_object_content_unset() instead
28026     *
28027     * @ingroup Ctxpopup
28028     */
28029    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
28030
28031    /**
28032     * @brief Set the direction priority of a ctxpopup.
28033     *
28034     * @param obj Ctxpopup object
28035     * @param first 1st priority of direction
28036     * @param second 2nd priority of direction
28037     * @param third 3th priority of direction
28038     * @param fourth 4th priority of direction
28039     *
28040     * This functions gives a chance to user to set the priority of ctxpopup
28041     * showing direction. This doesn't guarantee the ctxpopup will appear in the
28042     * requested direction.
28043     *
28044     * @see Elm_Ctxpopup_Direction
28045     *
28046     * @ingroup Ctxpopup
28047     */
28048    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);
28049
28050    /**
28051     * @brief Get the direction priority of a ctxpopup.
28052     *
28053     * @param obj Ctxpopup object
28054     * @param first 1st priority of direction to be returned
28055     * @param second 2nd priority of direction to be returned
28056     * @param third 3th priority of direction to be returned
28057     * @param fourth 4th priority of direction to be returned
28058     *
28059     * @see elm_ctxpopup_direction_priority_set() for more information.
28060     *
28061     * @ingroup Ctxpopup
28062     */
28063    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);
28064
28065    /**
28066     * @brief Get the current direction of a ctxpopup.
28067     *
28068     * @param obj Ctxpopup object
28069     * @return current direction of a ctxpopup
28070     *
28071     * @warning Once the ctxpopup showed up, the direction would be determined
28072     *
28073     * @ingroup Ctxpopup
28074     */
28075    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28076
28077    /**
28078     * @}
28079     */
28080
28081    /* transit */
28082    /**
28083     *
28084     * @defgroup Transit Transit
28085     * @ingroup Elementary
28086     *
28087     * Transit is designed to apply various animated transition effects to @c
28088     * Evas_Object, such like translation, rotation, etc. For using these
28089     * effects, create an @ref Elm_Transit and add the desired transition effects.
28090     *
28091     * Once the effects are added into transit, they will be automatically
28092     * managed (their callback will be called until the duration is ended, and
28093     * they will be deleted on completion).
28094     *
28095     * Example:
28096     * @code
28097     * Elm_Transit *trans = elm_transit_add();
28098     * elm_transit_object_add(trans, obj);
28099     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
28100     * elm_transit_duration_set(transit, 1);
28101     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
28102     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
28103     * elm_transit_repeat_times_set(transit, 3);
28104     * @endcode
28105     *
28106     * Some transition effects are used to change the properties of objects. They
28107     * are:
28108     * @li @ref elm_transit_effect_translation_add
28109     * @li @ref elm_transit_effect_color_add
28110     * @li @ref elm_transit_effect_rotation_add
28111     * @li @ref elm_transit_effect_wipe_add
28112     * @li @ref elm_transit_effect_zoom_add
28113     * @li @ref elm_transit_effect_resizing_add
28114     *
28115     * Other transition effects are used to make one object disappear and another
28116     * object appear on its old place. These effects are:
28117     *
28118     * @li @ref elm_transit_effect_flip_add
28119     * @li @ref elm_transit_effect_resizable_flip_add
28120     * @li @ref elm_transit_effect_fade_add
28121     * @li @ref elm_transit_effect_blend_add
28122     *
28123     * It's also possible to make a transition chain with @ref
28124     * elm_transit_chain_transit_add.
28125     *
28126     * @warning We strongly recommend to use elm_transit just when edje can not do
28127     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
28128     * animations can be manipulated inside the theme.
28129     *
28130     * List of examples:
28131     * @li @ref transit_example_01_explained
28132     * @li @ref transit_example_02_explained
28133     * @li @ref transit_example_03_c
28134     * @li @ref transit_example_04_c
28135     *
28136     * @{
28137     */
28138
28139    /**
28140     * @enum Elm_Transit_Tween_Mode
28141     *
28142     * The type of acceleration used in the transition.
28143     */
28144    typedef enum
28145      {
28146         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
28147         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
28148                                              over time, then decrease again
28149                                              and stop slowly */
28150         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
28151                                              speed over time */
28152         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
28153                                             over time */
28154      } Elm_Transit_Tween_Mode;
28155
28156    /**
28157     * @enum Elm_Transit_Effect_Flip_Axis
28158     *
28159     * The axis where flip effect should be applied.
28160     */
28161    typedef enum
28162      {
28163         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
28164         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
28165      } Elm_Transit_Effect_Flip_Axis;
28166
28167    /**
28168     * @enum Elm_Transit_Effect_Wipe_Dir
28169     *
28170     * The direction where the wipe effect should occur.
28171     */
28172    typedef enum
28173      {
28174         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
28175         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
28176         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
28177         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
28178      } Elm_Transit_Effect_Wipe_Dir;
28179
28180    /** @enum Elm_Transit_Effect_Wipe_Type
28181     *
28182     * Whether the wipe effect should show or hide the object.
28183     */
28184    typedef enum
28185      {
28186         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
28187                                              animation */
28188         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
28189                                             animation */
28190      } Elm_Transit_Effect_Wipe_Type;
28191
28192    /**
28193     * @typedef Elm_Transit
28194     *
28195     * The Transit created with elm_transit_add(). This type has the information
28196     * about the objects which the transition will be applied, and the
28197     * transition effects that will be used. It also contains info about
28198     * duration, number of repetitions, auto-reverse, etc.
28199     */
28200    typedef struct _Elm_Transit Elm_Transit;
28201    typedef void Elm_Transit_Effect;
28202
28203    /**
28204     * @typedef Elm_Transit_Effect_Transition_Cb
28205     *
28206     * Transition callback called for this effect on each transition iteration.
28207     */
28208    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
28209
28210    /**
28211     * Elm_Transit_Effect_End_Cb
28212     *
28213     * Transition callback called for this effect when the transition is over.
28214     */
28215    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
28216
28217    /**
28218     * Elm_Transit_Del_Cb
28219     *
28220     * A callback called when the transit is deleted.
28221     */
28222    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
28223
28224    /**
28225     * Add new transit.
28226     *
28227     * @note Is not necessary to delete the transit object, it will be deleted at
28228     * the end of its operation.
28229     * @note The transit will start playing when the program enter in the main loop, is not
28230     * necessary to give a start to the transit.
28231     *
28232     * @return The transit object.
28233     *
28234     * @ingroup Transit
28235     */
28236    EAPI Elm_Transit                *elm_transit_add(void);
28237
28238    /**
28239     * Stops the animation and delete the @p transit object.
28240     *
28241     * Call this function if you wants to stop the animation before the duration
28242     * time. Make sure the @p transit object is still alive with
28243     * elm_transit_del_cb_set() function.
28244     * All added effects will be deleted, calling its repective data_free_cb
28245     * functions. The function setted by elm_transit_del_cb_set() will be called.
28246     *
28247     * @see elm_transit_del_cb_set()
28248     *
28249     * @param transit The transit object to be deleted.
28250     *
28251     * @ingroup Transit
28252     * @warning Just call this function if you are sure the transit is alive.
28253     */
28254    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
28255
28256    /**
28257     * Add a new effect to the transit.
28258     *
28259     * @note The cb function and the data are the key to the effect. If you try to
28260     * add an already added effect, nothing is done.
28261     * @note After the first addition of an effect in @p transit, if its
28262     * effect list become empty again, the @p transit will be killed by
28263     * elm_transit_del(transit) function.
28264     *
28265     * Exemple:
28266     * @code
28267     * Elm_Transit *transit = elm_transit_add();
28268     * elm_transit_effect_add(transit,
28269     *                        elm_transit_effect_blend_op,
28270     *                        elm_transit_effect_blend_context_new(),
28271     *                        elm_transit_effect_blend_context_free);
28272     * @endcode
28273     *
28274     * @param transit The transit object.
28275     * @param transition_cb The operation function. It is called when the
28276     * animation begins, it is the function that actually performs the animation.
28277     * It is called with the @p data, @p transit and the time progression of the
28278     * animation (a double value between 0.0 and 1.0).
28279     * @param effect The context data of the effect.
28280     * @param end_cb The function to free the context data, it will be called
28281     * at the end of the effect, it must finalize the animation and free the
28282     * @p data.
28283     *
28284     * @ingroup Transit
28285     * @warning The transit free the context data at the and of the transition with
28286     * the data_free_cb function, do not use the context data in another transit.
28287     */
28288    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);
28289
28290    /**
28291     * Delete an added effect.
28292     *
28293     * This function will remove the effect from the @p transit, calling the
28294     * data_free_cb to free the @p data.
28295     *
28296     * @see elm_transit_effect_add()
28297     *
28298     * @note If the effect is not found, nothing is done.
28299     * @note If the effect list become empty, this function will call
28300     * elm_transit_del(transit), that is, it will kill the @p transit.
28301     *
28302     * @param transit The transit object.
28303     * @param transition_cb The operation function.
28304     * @param effect The context data of the effect.
28305     *
28306     * @ingroup Transit
28307     */
28308    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);
28309
28310    /**
28311     * Add new object to apply the effects.
28312     *
28313     * @note After the first addition of an object in @p transit, if its
28314     * object list become empty again, the @p transit will be killed by
28315     * elm_transit_del(transit) function.
28316     * @note If the @p obj belongs to another transit, the @p obj will be
28317     * removed from it and it will only belong to the @p transit. If the old
28318     * transit stays without objects, it will die.
28319     * @note When you add an object into the @p transit, its state from
28320     * evas_object_pass_events_get(obj) is saved, and it is applied when the
28321     * transit ends, if you change this state whith evas_object_pass_events_set()
28322     * after add the object, this state will change again when @p transit stops to
28323     * run.
28324     *
28325     * @param transit The transit object.
28326     * @param obj Object to be animated.
28327     *
28328     * @ingroup Transit
28329     * @warning It is not allowed to add a new object after transit begins to go.
28330     */
28331    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
28332
28333    /**
28334     * Removes an added object from the transit.
28335     *
28336     * @note If the @p obj is not in the @p transit, nothing is done.
28337     * @note If the list become empty, this function will call
28338     * elm_transit_del(transit), that is, it will kill the @p transit.
28339     *
28340     * @param transit The transit object.
28341     * @param obj Object to be removed from @p transit.
28342     *
28343     * @ingroup Transit
28344     * @warning It is not allowed to remove objects after transit begins to go.
28345     */
28346    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
28347
28348    /**
28349     * Get the objects of the transit.
28350     *
28351     * @param transit The transit object.
28352     * @return a Eina_List with the objects from the transit.
28353     *
28354     * @ingroup Transit
28355     */
28356    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28357
28358    /**
28359     * Enable/disable keeping up the objects states.
28360     * If it is not kept, the objects states will be reset when transition ends.
28361     *
28362     * @note @p transit can not be NULL.
28363     * @note One state includes geometry, color, map data.
28364     *
28365     * @param transit The transit object.
28366     * @param state_keep Keeping or Non Keeping.
28367     *
28368     * @ingroup Transit
28369     */
28370    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
28371
28372    /**
28373     * Get a value whether the objects states will be reset or not.
28374     *
28375     * @note @p transit can not be NULL
28376     *
28377     * @see elm_transit_objects_final_state_keep_set()
28378     *
28379     * @param transit The transit object.
28380     * @return EINA_TRUE means the states of the objects will be reset.
28381     * If @p transit is NULL, EINA_FALSE is returned
28382     *
28383     * @ingroup Transit
28384     */
28385    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28386
28387    /**
28388     * Set the event enabled when transit is operating.
28389     *
28390     * If @p enabled is EINA_TRUE, the objects of the transit will receives
28391     * events from mouse and keyboard during the animation.
28392     * @note When you add an object with elm_transit_object_add(), its state from
28393     * evas_object_pass_events_get(obj) is saved, and it is applied when the
28394     * transit ends, if you change this state with evas_object_pass_events_set()
28395     * after adding the object, this state will change again when @p transit stops
28396     * to run.
28397     *
28398     * @param transit The transit object.
28399     * @param enabled Events are received when enabled is @c EINA_TRUE, and
28400     * ignored otherwise.
28401     *
28402     * @ingroup Transit
28403     */
28404    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
28405
28406    /**
28407     * Get the value of event enabled status.
28408     *
28409     * @see elm_transit_event_enabled_set()
28410     *
28411     * @param transit The Transit object
28412     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
28413     * EINA_FALSE is returned
28414     *
28415     * @ingroup Transit
28416     */
28417    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28418
28419    /**
28420     * Set the user-callback function when the transit is deleted.
28421     *
28422     * @note Using this function twice will overwrite the first function setted.
28423     * @note the @p transit object will be deleted after call @p cb function.
28424     *
28425     * @param transit The transit object.
28426     * @param cb Callback function pointer. This function will be called before
28427     * the deletion of the transit.
28428     * @param data Callback funtion user data. It is the @p op parameter.
28429     *
28430     * @ingroup Transit
28431     */
28432    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
28433
28434    /**
28435     * Set reverse effect automatically.
28436     *
28437     * If auto reverse is setted, after running the effects with the progress
28438     * parameter from 0 to 1, it will call the effecs again with the progress
28439     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
28440     * where the duration was setted with the function elm_transit_add and
28441     * the repeat with the function elm_transit_repeat_times_set().
28442     *
28443     * @param transit The transit object.
28444     * @param reverse EINA_TRUE means the auto_reverse is on.
28445     *
28446     * @ingroup Transit
28447     */
28448    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
28449
28450    /**
28451     * Get if the auto reverse is on.
28452     *
28453     * @see elm_transit_auto_reverse_set()
28454     *
28455     * @param transit The transit object.
28456     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
28457     * EINA_FALSE is returned
28458     *
28459     * @ingroup Transit
28460     */
28461    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28462
28463    /**
28464     * Set the transit repeat count. Effect will be repeated by repeat count.
28465     *
28466     * This function sets the number of repetition the transit will run after
28467     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
28468     * If the @p repeat is a negative number, it will repeat infinite times.
28469     *
28470     * @note If this function is called during the transit execution, the transit
28471     * will run @p repeat times, ignoring the times it already performed.
28472     *
28473     * @param transit The transit object
28474     * @param repeat Repeat count
28475     *
28476     * @ingroup Transit
28477     */
28478    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
28479
28480    /**
28481     * Get the transit repeat count.
28482     *
28483     * @see elm_transit_repeat_times_set()
28484     *
28485     * @param transit The Transit object.
28486     * @return The repeat count. If @p transit is NULL
28487     * 0 is returned
28488     *
28489     * @ingroup Transit
28490     */
28491    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28492
28493    /**
28494     * Set the transit animation acceleration type.
28495     *
28496     * This function sets the tween mode of the transit that can be:
28497     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
28498     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
28499     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
28500     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
28501     *
28502     * @param transit The transit object.
28503     * @param tween_mode The tween type.
28504     *
28505     * @ingroup Transit
28506     */
28507    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
28508
28509    /**
28510     * Get the transit animation acceleration type.
28511     *
28512     * @note @p transit can not be NULL
28513     *
28514     * @param transit The transit object.
28515     * @return The tween type. If @p transit is NULL
28516     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
28517     *
28518     * @ingroup Transit
28519     */
28520    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28521
28522    /**
28523     * Set the transit animation time
28524     *
28525     * @note @p transit can not be NULL
28526     *
28527     * @param transit The transit object.
28528     * @param duration The animation time.
28529     *
28530     * @ingroup Transit
28531     */
28532    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
28533
28534    /**
28535     * Get the transit animation time
28536     *
28537     * @note @p transit can not be NULL
28538     *
28539     * @param transit The transit object.
28540     *
28541     * @return The transit animation time.
28542     *
28543     * @ingroup Transit
28544     */
28545    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28546
28547    /**
28548     * Starts the transition.
28549     * Once this API is called, the transit begins to measure the time.
28550     *
28551     * @note @p transit can not be NULL
28552     *
28553     * @param transit The transit object.
28554     *
28555     * @ingroup Transit
28556     */
28557    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
28558
28559    /**
28560     * Pause/Resume the transition.
28561     *
28562     * If you call elm_transit_go again, the transit will be started from the
28563     * beginning, and will be unpaused.
28564     *
28565     * @note @p transit can not be NULL
28566     *
28567     * @param transit The transit object.
28568     * @param paused Whether the transition should be paused or not.
28569     *
28570     * @ingroup Transit
28571     */
28572    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
28573
28574    /**
28575     * Get the value of paused status.
28576     *
28577     * @see elm_transit_paused_set()
28578     *
28579     * @note @p transit can not be NULL
28580     *
28581     * @param transit The transit object.
28582     * @return EINA_TRUE means transition is paused. If @p transit is NULL
28583     * EINA_FALSE is returned
28584     *
28585     * @ingroup Transit
28586     */
28587    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28588
28589    /**
28590     * Get the time progression of the animation (a double value between 0.0 and 1.0).
28591     *
28592     * The value returned is a fraction (current time / total time). It
28593     * represents the progression position relative to the total.
28594     *
28595     * @note @p transit can not be NULL
28596     *
28597     * @param transit The transit object.
28598     *
28599     * @return The time progression value. If @p transit is NULL
28600     * 0 is returned
28601     *
28602     * @ingroup Transit
28603     */
28604    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28605
28606    /**
28607     * Makes the chain relationship between two transits.
28608     *
28609     * @note @p transit can not be NULL. Transit would have multiple chain transits.
28610     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
28611     *
28612     * @param transit The transit object.
28613     * @param chain_transit The chain transit object. This transit will be operated
28614     *        after transit is done.
28615     *
28616     * This function adds @p chain_transit transition to a chain after the @p
28617     * transit, and will be started as soon as @p transit ends. See @ref
28618     * transit_example_02_explained for a full example.
28619     *
28620     * @ingroup Transit
28621     */
28622    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
28623
28624    /**
28625     * Cut off the chain relationship between two transits.
28626     *
28627     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
28628     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
28629     *
28630     * @param transit The transit object.
28631     * @param chain_transit The chain transit object.
28632     *
28633     * This function remove the @p chain_transit transition from the @p transit.
28634     *
28635     * @ingroup Transit
28636     */
28637    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
28638
28639    /**
28640     * Get the current chain transit list.
28641     *
28642     * @note @p transit can not be NULL.
28643     *
28644     * @param transit The transit object.
28645     * @return chain transit list.
28646     *
28647     * @ingroup Transit
28648     */
28649    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
28650
28651    /**
28652     * Add the Resizing Effect to Elm_Transit.
28653     *
28654     * @note This API is one of the facades. It creates resizing effect context
28655     * and add it's required APIs to elm_transit_effect_add.
28656     *
28657     * @see elm_transit_effect_add()
28658     *
28659     * @param transit Transit object.
28660     * @param from_w Object width size when effect begins.
28661     * @param from_h Object height size when effect begins.
28662     * @param to_w Object width size when effect ends.
28663     * @param to_h Object height size when effect ends.
28664     * @return Resizing effect context data.
28665     *
28666     * @ingroup Transit
28667     */
28668    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);
28669
28670    /**
28671     * Add the Translation Effect to Elm_Transit.
28672     *
28673     * @note This API is one of the facades. It creates translation effect context
28674     * and add it's required APIs to elm_transit_effect_add.
28675     *
28676     * @see elm_transit_effect_add()
28677     *
28678     * @param transit Transit object.
28679     * @param from_dx X Position variation when effect begins.
28680     * @param from_dy Y Position variation when effect begins.
28681     * @param to_dx X Position variation when effect ends.
28682     * @param to_dy Y Position variation when effect ends.
28683     * @return Translation effect context data.
28684     *
28685     * @ingroup Transit
28686     * @warning It is highly recommended just create a transit with this effect when
28687     * the window that the objects of the transit belongs has already been created.
28688     * This is because this effect needs the geometry information about the objects,
28689     * and if the window was not created yet, it can get a wrong information.
28690     */
28691    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);
28692
28693    /**
28694     * Add the Zoom Effect to Elm_Transit.
28695     *
28696     * @note This API is one of the facades. It creates zoom effect context
28697     * and add it's required APIs to elm_transit_effect_add.
28698     *
28699     * @see elm_transit_effect_add()
28700     *
28701     * @param transit Transit object.
28702     * @param from_rate Scale rate when effect begins (1 is current rate).
28703     * @param to_rate Scale rate when effect ends.
28704     * @return Zoom effect context data.
28705     *
28706     * @ingroup Transit
28707     * @warning It is highly recommended just create a transit with this effect when
28708     * the window that the objects of the transit belongs has already been created.
28709     * This is because this effect needs the geometry information about the objects,
28710     * and if the window was not created yet, it can get a wrong information.
28711     */
28712    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
28713
28714    /**
28715     * Add the Flip Effect to Elm_Transit.
28716     *
28717     * @note This API is one of the facades. It creates flip effect context
28718     * and add it's required APIs to elm_transit_effect_add.
28719     * @note This effect is applied to each pair of objects in the order they are listed
28720     * in the transit list of objects. The first object in the pair will be the
28721     * "front" object and the second will be the "back" object.
28722     *
28723     * @see elm_transit_effect_add()
28724     *
28725     * @param transit Transit object.
28726     * @param axis Flipping Axis(X or Y).
28727     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
28728     * @return Flip effect context data.
28729     *
28730     * @ingroup Transit
28731     * @warning It is highly recommended just create a transit with this effect when
28732     * the window that the objects of the transit belongs has already been created.
28733     * This is because this effect needs the geometry information about the objects,
28734     * and if the window was not created yet, it can get a wrong information.
28735     */
28736    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
28737
28738    /**
28739     * Add the Resizable Flip Effect to Elm_Transit.
28740     *
28741     * @note This API is one of the facades. It creates resizable flip effect context
28742     * and add it's required APIs to elm_transit_effect_add.
28743     * @note This effect is applied to each pair of objects in the order they are listed
28744     * in the transit list of objects. The first object in the pair will be the
28745     * "front" object and the second will be the "back" object.
28746     *
28747     * @see elm_transit_effect_add()
28748     *
28749     * @param transit Transit object.
28750     * @param axis Flipping Axis(X or Y).
28751     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
28752     * @return Resizable flip effect context data.
28753     *
28754     * @ingroup Transit
28755     * @warning It is highly recommended just create a transit with this effect when
28756     * the window that the objects of the transit belongs has already been created.
28757     * This is because this effect needs the geometry information about the objects,
28758     * and if the window was not created yet, it can get a wrong information.
28759     */
28760    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
28761
28762    /**
28763     * Add the Wipe Effect to Elm_Transit.
28764     *
28765     * @note This API is one of the facades. It creates wipe effect context
28766     * and add it's required APIs to elm_transit_effect_add.
28767     *
28768     * @see elm_transit_effect_add()
28769     *
28770     * @param transit Transit object.
28771     * @param type Wipe type. Hide or show.
28772     * @param dir Wipe Direction.
28773     * @return Wipe effect context data.
28774     *
28775     * @ingroup Transit
28776     * @warning It is highly recommended just create a transit with this effect when
28777     * the window that the objects of the transit belongs has already been created.
28778     * This is because this effect needs the geometry information about the objects,
28779     * and if the window was not created yet, it can get a wrong information.
28780     */
28781    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
28782
28783    /**
28784     * Add the Color Effect to Elm_Transit.
28785     *
28786     * @note This API is one of the facades. It creates color effect context
28787     * and add it's required APIs to elm_transit_effect_add.
28788     *
28789     * @see elm_transit_effect_add()
28790     *
28791     * @param transit        Transit object.
28792     * @param  from_r        RGB R when effect begins.
28793     * @param  from_g        RGB G when effect begins.
28794     * @param  from_b        RGB B when effect begins.
28795     * @param  from_a        RGB A when effect begins.
28796     * @param  to_r          RGB R when effect ends.
28797     * @param  to_g          RGB G when effect ends.
28798     * @param  to_b          RGB B when effect ends.
28799     * @param  to_a          RGB A when effect ends.
28800     * @return               Color effect context data.
28801     *
28802     * @ingroup Transit
28803     */
28804    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);
28805
28806    /**
28807     * Add the Fade Effect to Elm_Transit.
28808     *
28809     * @note This API is one of the facades. It creates fade effect context
28810     * and add it's required APIs to elm_transit_effect_add.
28811     * @note This effect is applied to each pair of objects in the order they are listed
28812     * in the transit list of objects. The first object in the pair will be the
28813     * "before" object and the second will be the "after" object.
28814     *
28815     * @see elm_transit_effect_add()
28816     *
28817     * @param transit Transit object.
28818     * @return Fade effect context data.
28819     *
28820     * @ingroup Transit
28821     * @warning It is highly recommended just create a transit with this effect when
28822     * the window that the objects of the transit belongs has already been created.
28823     * This is because this effect needs the color information about the objects,
28824     * and if the window was not created yet, it can get a wrong information.
28825     */
28826    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
28827
28828    /**
28829     * Add the Blend Effect to Elm_Transit.
28830     *
28831     * @note This API is one of the facades. It creates blend effect context
28832     * and add it's required APIs to elm_transit_effect_add.
28833     * @note This effect is applied to each pair of objects in the order they are listed
28834     * in the transit list of objects. The first object in the pair will be the
28835     * "before" object and the second will be the "after" object.
28836     *
28837     * @see elm_transit_effect_add()
28838     *
28839     * @param transit Transit object.
28840     * @return Blend effect context data.
28841     *
28842     * @ingroup Transit
28843     * @warning It is highly recommended just create a transit with this effect when
28844     * the window that the objects of the transit belongs has already been created.
28845     * This is because this effect needs the color information about the objects,
28846     * and if the window was not created yet, it can get a wrong information.
28847     */
28848    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
28849
28850    /**
28851     * Add the Rotation Effect to Elm_Transit.
28852     *
28853     * @note This API is one of the facades. It creates rotation effect context
28854     * and add it's required APIs to elm_transit_effect_add.
28855     *
28856     * @see elm_transit_effect_add()
28857     *
28858     * @param transit Transit object.
28859     * @param from_degree Degree when effect begins.
28860     * @param to_degree Degree when effect is ends.
28861     * @return Rotation effect context data.
28862     *
28863     * @ingroup Transit
28864     * @warning It is highly recommended just create a transit with this effect when
28865     * the window that the objects of the transit belongs has already been created.
28866     * This is because this effect needs the geometry information about the objects,
28867     * and if the window was not created yet, it can get a wrong information.
28868     */
28869    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
28870
28871    /**
28872     * Add the ImageAnimation Effect to Elm_Transit.
28873     *
28874     * @note This API is one of the facades. It creates image animation effect context
28875     * and add it's required APIs to elm_transit_effect_add.
28876     * The @p images parameter is a list images paths. This list and
28877     * its contents will be deleted at the end of the effect by
28878     * elm_transit_effect_image_animation_context_free() function.
28879     *
28880     * Example:
28881     * @code
28882     * char buf[PATH_MAX];
28883     * Eina_List *images = NULL;
28884     * Elm_Transit *transi = elm_transit_add();
28885     *
28886     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
28887     * images = eina_list_append(images, eina_stringshare_add(buf));
28888     *
28889     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
28890     * images = eina_list_append(images, eina_stringshare_add(buf));
28891     * elm_transit_effect_image_animation_add(transi, images);
28892     *
28893     * @endcode
28894     *
28895     * @see elm_transit_effect_add()
28896     *
28897     * @param transit Transit object.
28898     * @param images Eina_List of images file paths. This list and
28899     * its contents will be deleted at the end of the effect by
28900     * elm_transit_effect_image_animation_context_free() function.
28901     * @return Image Animation effect context data.
28902     *
28903     * @ingroup Transit
28904     */
28905    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
28906    /**
28907     * @}
28908     */
28909
28910    typedef struct _Elm_Store                      Elm_Store;
28911    typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
28912    typedef struct _Elm_Store_Item                 Elm_Store_Item;
28913    typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
28914    typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
28915    typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
28916    typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
28917    typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
28918    typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
28919    typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
28920    typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
28921
28922    typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
28923    typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
28924    typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
28925    typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
28926
28927    typedef enum
28928      {
28929         ELM_STORE_ITEM_MAPPING_NONE = 0,
28930         ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
28931         ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
28932         ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
28933         ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
28934         ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
28935         // can add more here as needed by common apps
28936         ELM_STORE_ITEM_MAPPING_LAST
28937      } Elm_Store_Item_Mapping_Type;
28938
28939    struct _Elm_Store_Item_Mapping_Icon
28940      {
28941         // FIXME: allow edje file icons
28942         int                   w, h;
28943         Elm_Icon_Lookup_Order lookup_order;
28944         Eina_Bool             standard_name : 1;
28945         Eina_Bool             no_scale : 1;
28946         Eina_Bool             smooth : 1;
28947         Eina_Bool             scale_up : 1;
28948         Eina_Bool             scale_down : 1;
28949      };
28950
28951    struct _Elm_Store_Item_Mapping_Empty
28952      {
28953         Eina_Bool             dummy;
28954      };
28955
28956    struct _Elm_Store_Item_Mapping_Photo
28957      {
28958         int                   size;
28959      };
28960
28961    struct _Elm_Store_Item_Mapping_Custom
28962      {
28963         Elm_Store_Item_Mapping_Cb func;
28964      };
28965
28966    struct _Elm_Store_Item_Mapping
28967      {
28968         Elm_Store_Item_Mapping_Type     type;
28969         const char                     *part;
28970         int                             offset;
28971         union
28972           {
28973              Elm_Store_Item_Mapping_Empty  empty;
28974              Elm_Store_Item_Mapping_Icon   icon;
28975              Elm_Store_Item_Mapping_Photo  photo;
28976              Elm_Store_Item_Mapping_Custom custom;
28977              // add more types here
28978           } details;
28979      };
28980
28981    struct _Elm_Store_Item_Info
28982      {
28983         Elm_Genlist_Item_Class       *item_class;
28984         const Elm_Store_Item_Mapping *mapping;
28985         void                         *data;
28986         char                         *sort_id;
28987      };
28988
28989    struct _Elm_Store_Item_Info_Filesystem
28990      {
28991         Elm_Store_Item_Info  base;
28992         char                *path;
28993      };
28994
28995 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
28996 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
28997
28998    EAPI void                    elm_store_free(Elm_Store *st);
28999
29000    EAPI Elm_Store              *elm_store_filesystem_new(void);
29001    EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
29002    EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29003    EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29004
29005    EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
29006
29007    EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
29008    EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29009    EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
29010    EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
29011    EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
29012    EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29013
29014    EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
29015    EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
29016    EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29017    EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
29018    EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29019    EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29020    EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29021
29022    /**
29023     * @defgroup SegmentControl SegmentControl
29024     * @ingroup Elementary
29025     *
29026     * @image html img/widget/segment_control/preview-00.png
29027     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
29028     *
29029     * @image html img/segment_control.png
29030     * @image latex img/segment_control.eps width=\textwidth
29031     *
29032     * Segment control widget is a horizontal control made of multiple segment
29033     * items, each segment item functioning similar to discrete two state button.
29034     * A segment control groups the items together and provides compact
29035     * single button with multiple equal size segments.
29036     *
29037     * Segment item size is determined by base widget
29038     * size and the number of items added.
29039     * Only one segment item can be at selected state. A segment item can display
29040     * combination of Text and any Evas_Object like Images or other widget.
29041     *
29042     * Smart callbacks one can listen to:
29043     * - "changed" - When the user clicks on a segment item which is not
29044     *   previously selected and get selected. The event_info parameter is the
29045     *   segment item pointer.
29046     *
29047     * Available styles for it:
29048     * - @c "default"
29049     *
29050     * Here is an example on its usage:
29051     * @li @ref segment_control_example
29052     */
29053
29054    /**
29055     * @addtogroup SegmentControl
29056     * @{
29057     */
29058
29059    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
29060
29061    /**
29062     * Add a new segment control widget to the given parent Elementary
29063     * (container) object.
29064     *
29065     * @param parent The parent object.
29066     * @return a new segment control widget handle or @c NULL, on errors.
29067     *
29068     * This function inserts a new segment control widget on the canvas.
29069     *
29070     * @ingroup SegmentControl
29071     */
29072    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
29073
29074    /**
29075     * Append a new item to the segment control object.
29076     *
29077     * @param obj The segment control object.
29078     * @param icon The icon object to use for the left side of the item. An
29079     * icon can be any Evas object, but usually it is an icon created
29080     * with elm_icon_add().
29081     * @param label The label of the item.
29082     *        Note that, NULL is different from empty string "".
29083     * @return The created item or @c NULL upon failure.
29084     *
29085     * A new item will be created and appended to the segment control, i.e., will
29086     * be set as @b last item.
29087     *
29088     * If it should be inserted at another position,
29089     * elm_segment_control_item_insert_at() should be used instead.
29090     *
29091     * Items created with this function can be deleted with function
29092     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
29093     *
29094     * @note @p label set to @c NULL is different from empty string "".
29095     * If an item
29096     * only has icon, it will be displayed bigger and centered. If it has
29097     * icon and label, even that an empty string, icon will be smaller and
29098     * positioned at left.
29099     *
29100     * Simple example:
29101     * @code
29102     * sc = elm_segment_control_add(win);
29103     * ic = elm_icon_add(win);
29104     * elm_icon_file_set(ic, "path/to/image", NULL);
29105     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
29106     * elm_segment_control_item_add(sc, ic, "label");
29107     * evas_object_show(sc);
29108     * @endcode
29109     *
29110     * @see elm_segment_control_item_insert_at()
29111     * @see elm_segment_control_item_del()
29112     *
29113     * @ingroup SegmentControl
29114     */
29115    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
29116
29117    /**
29118     * Insert a new item to the segment control object at specified position.
29119     *
29120     * @param obj The segment control object.
29121     * @param icon The icon object to use for the left side of the item. An
29122     * icon can be any Evas object, but usually it is an icon created
29123     * with elm_icon_add().
29124     * @param label The label of the item.
29125     * @param index Item position. Value should be between 0 and items count.
29126     * @return The created item or @c NULL upon failure.
29127
29128     * Index values must be between @c 0, when item will be prepended to
29129     * segment control, and items count, that can be get with
29130     * elm_segment_control_item_count_get(), case when item will be appended
29131     * to segment control, just like elm_segment_control_item_add().
29132     *
29133     * Items created with this function can be deleted with function
29134     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
29135     *
29136     * @note @p label set to @c NULL is different from empty string "".
29137     * If an item
29138     * only has icon, it will be displayed bigger and centered. If it has
29139     * icon and label, even that an empty string, icon will be smaller and
29140     * positioned at left.
29141     *
29142     * @see elm_segment_control_item_add()
29143     * @see elm_segment_control_item_count_get()
29144     * @see elm_segment_control_item_del()
29145     *
29146     * @ingroup SegmentControl
29147     */
29148    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);
29149
29150    /**
29151     * Remove a segment control item from its parent, deleting it.
29152     *
29153     * @param it The item to be removed.
29154     *
29155     * Items can be added with elm_segment_control_item_add() or
29156     * elm_segment_control_item_insert_at().
29157     *
29158     * @ingroup SegmentControl
29159     */
29160    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
29161
29162    /**
29163     * Remove a segment control item at given index from its parent,
29164     * deleting it.
29165     *
29166     * @param obj The segment control object.
29167     * @param index The position of the segment control item to be deleted.
29168     *
29169     * Items can be added with elm_segment_control_item_add() or
29170     * elm_segment_control_item_insert_at().
29171     *
29172     * @ingroup SegmentControl
29173     */
29174    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29175
29176    /**
29177     * Get the Segment items count from segment control.
29178     *
29179     * @param obj The segment control object.
29180     * @return Segment items count.
29181     *
29182     * It will just return the number of items added to segment control @p obj.
29183     *
29184     * @ingroup SegmentControl
29185     */
29186    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29187
29188    /**
29189     * Get the item placed at specified index.
29190     *
29191     * @param obj The segment control object.
29192     * @param index The index of the segment item.
29193     * @return The segment control item or @c NULL on failure.
29194     *
29195     * Index is the position of an item in segment control widget. Its
29196     * range is from @c 0 to <tt> count - 1 </tt>.
29197     * Count is the number of items, that can be get with
29198     * elm_segment_control_item_count_get().
29199     *
29200     * @ingroup SegmentControl
29201     */
29202    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29203
29204    /**
29205     * Get the label of item.
29206     *
29207     * @param obj The segment control object.
29208     * @param index The index of the segment item.
29209     * @return The label of the item at @p index.
29210     *
29211     * The return value is a pointer to the label associated to the item when
29212     * it was created, with function elm_segment_control_item_add(), or later
29213     * with function elm_segment_control_item_label_set. If no label
29214     * was passed as argument, it will return @c NULL.
29215     *
29216     * @see elm_segment_control_item_label_set() for more details.
29217     * @see elm_segment_control_item_add()
29218     *
29219     * @ingroup SegmentControl
29220     */
29221    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29222
29223    /**
29224     * Set the label of item.
29225     *
29226     * @param it The item of segment control.
29227     * @param text The label of item.
29228     *
29229     * The label to be displayed by the item.
29230     * Label will be at right of the icon (if set).
29231     *
29232     * If a label was passed as argument on item creation, with function
29233     * elm_control_segment_item_add(), it will be already
29234     * displayed by the item.
29235     *
29236     * @see elm_segment_control_item_label_get()
29237     * @see elm_segment_control_item_add()
29238     *
29239     * @ingroup SegmentControl
29240     */
29241    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
29242
29243    /**
29244     * Get the icon associated to the item.
29245     *
29246     * @param obj The segment control object.
29247     * @param index The index of the segment item.
29248     * @return The left side icon associated to the item at @p index.
29249     *
29250     * The return value is a pointer to the icon associated to the item when
29251     * it was created, with function elm_segment_control_item_add(), or later
29252     * with function elm_segment_control_item_icon_set(). If no icon
29253     * was passed as argument, it will return @c NULL.
29254     *
29255     * @see elm_segment_control_item_add()
29256     * @see elm_segment_control_item_icon_set()
29257     *
29258     * @ingroup SegmentControl
29259     */
29260    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29261
29262    /**
29263     * Set the icon associated to the item.
29264     *
29265     * @param it The segment control item.
29266     * @param icon The icon object to associate with @p it.
29267     *
29268     * The icon object to use at left side of the item. An
29269     * icon can be any Evas object, but usually it is an icon created
29270     * with elm_icon_add().
29271     *
29272     * Once the icon object is set, a previously set one will be deleted.
29273     * @warning Setting the same icon for two items will cause the icon to
29274     * dissapear from the first item.
29275     *
29276     * If an icon was passed as argument on item creation, with function
29277     * elm_segment_control_item_add(), it will be already
29278     * associated to the item.
29279     *
29280     * @see elm_segment_control_item_add()
29281     * @see elm_segment_control_item_icon_get()
29282     *
29283     * @ingroup SegmentControl
29284     */
29285    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
29286
29287    /**
29288     * Get the index of an item.
29289     *
29290     * @param it The segment control item.
29291     * @return The position of item in segment control widget.
29292     *
29293     * Index is the position of an item in segment control widget. Its
29294     * range is from @c 0 to <tt> count - 1 </tt>.
29295     * Count is the number of items, that can be get with
29296     * elm_segment_control_item_count_get().
29297     *
29298     * @ingroup SegmentControl
29299     */
29300    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
29301
29302    /**
29303     * Get the base object of the item.
29304     *
29305     * @param it The segment control item.
29306     * @return The base object associated with @p it.
29307     *
29308     * Base object is the @c Evas_Object that represents that item.
29309     *
29310     * @ingroup SegmentControl
29311     */
29312    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
29313
29314    /**
29315     * Get the selected item.
29316     *
29317     * @param obj The segment control object.
29318     * @return The selected item or @c NULL if none of segment items is
29319     * selected.
29320     *
29321     * The selected item can be unselected with function
29322     * elm_segment_control_item_selected_set().
29323     *
29324     * The selected item always will be highlighted on segment control.
29325     *
29326     * @ingroup SegmentControl
29327     */
29328    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29329
29330    /**
29331     * Set the selected state of an item.
29332     *
29333     * @param it The segment control item
29334     * @param select The selected state
29335     *
29336     * This sets the selected state of the given item @p it.
29337     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
29338     *
29339     * If a new item is selected the previosly selected will be unselected.
29340     * Previoulsy selected item can be get with function
29341     * elm_segment_control_item_selected_get().
29342     *
29343     * The selected item always will be highlighted on segment control.
29344     *
29345     * @see elm_segment_control_item_selected_get()
29346     *
29347     * @ingroup SegmentControl
29348     */
29349    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
29350
29351    /**
29352     * @}
29353     */
29354
29355    /**
29356     * @defgroup Grid Grid
29357     *
29358     * The grid is a grid layout widget that lays out a series of children as a
29359     * fixed "grid" of widgets using a given percentage of the grid width and
29360     * height each using the child object.
29361     *
29362     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
29363     * widgets size itself. The default is 100 x 100, so that means the
29364     * position and sizes of children will effectively be percentages (0 to 100)
29365     * of the width or height of the grid widget
29366     *
29367     * @{
29368     */
29369
29370    /**
29371     * Add a new grid to the parent
29372     *
29373     * @param parent The parent object
29374     * @return The new object or NULL if it cannot be created
29375     *
29376     * @ingroup Grid
29377     */
29378    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
29379
29380    /**
29381     * Set the virtual size of the grid
29382     *
29383     * @param obj The grid object
29384     * @param w The virtual width of the grid
29385     * @param h The virtual height of the grid
29386     *
29387     * @ingroup Grid
29388     */
29389    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
29390
29391    /**
29392     * Get the virtual size of the grid
29393     *
29394     * @param obj The grid object
29395     * @param w Pointer to integer to store the virtual width of the grid
29396     * @param h Pointer to integer to store the virtual height of the grid
29397     *
29398     * @ingroup Grid
29399     */
29400    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
29401
29402    /**
29403     * Pack child at given position and size
29404     *
29405     * @param obj The grid object
29406     * @param subobj The child to pack
29407     * @param x The virtual x coord at which to pack it
29408     * @param y The virtual y coord at which to pack it
29409     * @param w The virtual width at which to pack it
29410     * @param h The virtual height at which to pack it
29411     *
29412     * @ingroup Grid
29413     */
29414    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
29415
29416    /**
29417     * Unpack a child from a grid object
29418     *
29419     * @param obj The grid object
29420     * @param subobj The child to unpack
29421     *
29422     * @ingroup Grid
29423     */
29424    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
29425
29426    /**
29427     * Faster way to remove all child objects from a grid object.
29428     *
29429     * @param obj The grid object
29430     * @param clear If true, it will delete just removed children
29431     *
29432     * @ingroup Grid
29433     */
29434    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
29435
29436    /**
29437     * Set packing of an existing child at to position and size
29438     *
29439     * @param subobj The child to set packing of
29440     * @param x The virtual x coord at which to pack it
29441     * @param y The virtual y coord at which to pack it
29442     * @param w The virtual width at which to pack it
29443     * @param h The virtual height at which to pack it
29444     *
29445     * @ingroup Grid
29446     */
29447    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
29448
29449    /**
29450     * get packing of a child
29451     *
29452     * @param subobj The child to query
29453     * @param x Pointer to integer to store the virtual x coord
29454     * @param y Pointer to integer to store the virtual y coord
29455     * @param w Pointer to integer to store the virtual width
29456     * @param h Pointer to integer to store the virtual height
29457     *
29458     * @ingroup Grid
29459     */
29460    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
29461
29462    /**
29463     * @}
29464     */
29465
29466    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
29467    EINA_DEPRECATED EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
29468    EINA_DEPRECATED EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
29469    EAPI void         elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
29470    EAPI Eina_Bool    elm_factory_maxmin_mode_get(const Evas_Object *obj);
29471    EAPI void         elm_factory_maxmin_reset_set(Evas_Object *obj);
29472
29473    /**
29474     * @defgroup Video Video
29475     *
29476     * @addtogroup Video
29477     * @{
29478     *
29479     * Elementary comes with two object that help design application that need
29480     * to display video. The main one, Elm_Video, display a video by using Emotion.
29481     * It does embedded the video inside an Edje object, so you can do some
29482     * animation depending on the video state change. It does also implement a
29483     * ressource management policy to remove this burden from the application writer.
29484     *
29485     * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
29486     * It take care of updating its content according to Emotion event and provide a
29487     * way to theme itself. It also does automatically raise the priority of the
29488     * linked Elm_Video so it will use the video decoder if available. It also does
29489     * activate the remember function on the linked Elm_Video object.
29490     *
29491     * Signals that you can add callback for are :
29492     *
29493     * "forward,clicked" - the user clicked the forward button.
29494     * "info,clicked" - the user clicked the info button.
29495     * "next,clicked" - the user clicked the next button.
29496     * "pause,clicked" - the user clicked the pause button.
29497     * "play,clicked" - the user clicked the play button.
29498     * "prev,clicked" - the user clicked the prev button.
29499     * "rewind,clicked" - the user clicked the rewind button.
29500     * "stop,clicked" - the user clicked the stop button.
29501     *
29502     * Default contents parts of the player widget that you can use for are:
29503     * @li "video" - A video of the player
29504     *
29505     */
29506
29507    /**
29508     * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
29509     *
29510     * @param parent The parent object
29511     * @return a new player widget handle or @c NULL, on errors.
29512     *
29513     * This function inserts a new player widget on the canvas.
29514     *
29515     * @see elm_object_part_content_set()
29516     *
29517     * @ingroup Video
29518     */
29519    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
29520
29521    /**
29522     * @brief Link a Elm_Payer with an Elm_Video object.
29523     *
29524     * @param player the Elm_Player object.
29525     * @param video The Elm_Video object.
29526     *
29527     * This mean that action on the player widget will affect the
29528     * video object and the state of the video will be reflected in
29529     * the player itself.
29530     *
29531     * @see elm_player_add()
29532     * @see elm_video_add()
29533     * @deprecated use elm_object_part_content_set() instead
29534     *
29535     * @ingroup Video
29536     */
29537    EINA_DEPRECATED EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
29538
29539    /**
29540     * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
29541     *
29542     * @param parent The parent object
29543     * @return a new video widget handle or @c NULL, on errors.
29544     *
29545     * This function inserts a new video widget on the canvas.
29546     *
29547     * @seeelm_video_file_set()
29548     * @see elm_video_uri_set()
29549     *
29550     * @ingroup Video
29551     */
29552    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
29553
29554    /**
29555     * @brief Define the file that will be the video source.
29556     *
29557     * @param video The video object to define the file for.
29558     * @param filename The file to target.
29559     *
29560     * This function will explicitly define a filename as a source
29561     * for the video of the Elm_Video object.
29562     *
29563     * @see elm_video_uri_set()
29564     * @see elm_video_add()
29565     * @see elm_player_add()
29566     *
29567     * @ingroup Video
29568     */
29569    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
29570
29571    /**
29572     * @brief Define the uri that will be the video source.
29573     *
29574     * @param video The video object to define the file for.
29575     * @param uri The uri to target.
29576     *
29577     * This function will define an uri as a source for the video of the
29578     * Elm_Video object. URI could be remote source of video, like http:// or local source
29579     * like for example WebCam who are most of the time v4l2:// (but that depend and
29580     * you should use Emotion API to request and list the available Webcam on your system).
29581     *
29582     * @see elm_video_file_set()
29583     * @see elm_video_add()
29584     * @see elm_player_add()
29585     *
29586     * @ingroup Video
29587     */
29588    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
29589
29590    /**
29591     * @brief Get the underlying Emotion object.
29592     *
29593     * @param video The video object to proceed the request on.
29594     * @return the underlying Emotion object.
29595     *
29596     * @ingroup Video
29597     */
29598    EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
29599
29600    /**
29601     * @brief Start to play the video
29602     *
29603     * @param video The video object to proceed the request on.
29604     *
29605     * Start to play the video and cancel all suspend state.
29606     *
29607     * @ingroup Video
29608     */
29609    EAPI void elm_video_play(Evas_Object *video);
29610
29611    /**
29612     * @brief Pause the video
29613     *
29614     * @param video The video object to proceed the request on.
29615     *
29616     * Pause the video and start a timer to trigger suspend mode.
29617     *
29618     * @ingroup Video
29619     */
29620    EAPI void elm_video_pause(Evas_Object *video);
29621
29622    /**
29623     * @brief Stop the video
29624     *
29625     * @param video The video object to proceed the request on.
29626     *
29627     * Stop the video and put the emotion in deep sleep mode.
29628     *
29629     * @ingroup Video
29630     */
29631    EAPI void elm_video_stop(Evas_Object *video);
29632
29633    /**
29634     * @brief Is the video actually playing.
29635     *
29636     * @param video The video object to proceed the request on.
29637     * @return EINA_TRUE if the video is actually playing.
29638     *
29639     * You should consider watching event on the object instead of polling
29640     * the object state.
29641     *
29642     * @ingroup Video
29643     */
29644    EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
29645
29646    /**
29647     * @brief Is it possible to seek inside the video.
29648     *
29649     * @param video The video object to proceed the request on.
29650     * @return EINA_TRUE if is possible to seek inside the video.
29651     *
29652     * @ingroup Video
29653     */
29654    EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
29655
29656    /**
29657     * @brief Is the audio muted.
29658     *
29659     * @param video The video object to proceed the request on.
29660     * @return EINA_TRUE if the audio is muted.
29661     *
29662     * @ingroup Video
29663     */
29664    EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
29665
29666    /**
29667     * @brief Change the mute state of the Elm_Video object.
29668     *
29669     * @param video The video object to proceed the request on.
29670     * @param mute The new mute state.
29671     *
29672     * @ingroup Video
29673     */
29674    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
29675
29676    /**
29677     * @brief Get the audio level of the current video.
29678     *
29679     * @param video The video object to proceed the request on.
29680     * @return the current audio level.
29681     *
29682     * @ingroup Video
29683     */
29684    EAPI double elm_video_audio_level_get(const Evas_Object *video);
29685
29686    /**
29687     * @brief Set the audio level of anElm_Video object.
29688     *
29689     * @param video The video object to proceed the request on.
29690     * @param volume The new audio volume.
29691     *
29692     * @ingroup Video
29693     */
29694    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
29695
29696    EAPI double elm_video_play_position_get(const Evas_Object *video);
29697    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
29698    EAPI double elm_video_play_length_get(const Evas_Object *video);
29699    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
29700    EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
29701    EAPI const char *elm_video_title_get(const Evas_Object *video);
29702    /**
29703     * @}
29704     */
29705
29706    /**
29707     * @defgroup Naviframe Naviframe
29708     * @ingroup Elementary
29709     *
29710     * @brief Naviframe is a kind of view manager for the applications.
29711     *
29712     * Naviframe provides functions to switch different pages with stack
29713     * mechanism. It means if one page(item) needs to be changed to the new one,
29714     * then naviframe would push the new page to it's internal stack. Of course,
29715     * it can be back to the previous page by popping the top page. Naviframe
29716     * provides some transition effect while the pages are switching (same as
29717     * pager).
29718     *
29719     * Since each item could keep the different styles, users could keep the
29720     * same look & feel for the pages or different styles for the items in it's
29721     * application.
29722     *
29723     * Signals that you can add callback for are:
29724     * @li "transition,finished" - When the transition is finished in changing
29725     *     the item
29726     * @li "title,clicked" - User clicked title area
29727     *
29728     * Default contents parts of the naviframe items that you can use for are:
29729     * @li "default" - A main content of the page
29730     * @li "icon" - An icon in the title area
29731     * @li "prev_btn" - A button to go to the previous page
29732     * @li "next_btn" - A button to go to the next page
29733     *
29734     * Default text parts of the naviframe items that you can use for are:
29735     * @li "default" - Title label in the title area
29736     * @li "subtitle" - Sub-title label in the title area
29737     *
29738     * Supported elm_object common APIs.
29739     * @li elm_object_signal_emit
29740     *
29741     * Supported elm_object_item common APIs.
29742     * @li elm_object_item_text_set
29743     * @li elm_object_item_part_text_set
29744     * @li elm_object_item_text_get
29745     * @li elm_object_item_part_text_get
29746     * @li elm_object_item_content_set
29747     * @li elm_object_item_part_content_set
29748     * @li elm_object_item_content_get
29749     * @li elm_object_item_part_content_get
29750     * @li elm_object_item_content_unset
29751     * @li elm_object_item_part_content_unset
29752     * @li elm_object_item_signal_emit
29753     *
29754     * @ref tutorial_naviframe gives a good overview of the usage of the API.
29755     */
29756
29757    /**
29758     * @addtogroup Naviframe
29759     * @{
29760     */
29761
29762    /**
29763     * @brief Add a new Naviframe object to the parent.
29764     *
29765     * @param parent Parent object
29766     * @return New object or @c NULL, if it cannot be created
29767     *
29768     * @ingroup Naviframe
29769     */
29770    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
29771
29772    /**
29773     * @brief Push a new item to the top of the naviframe stack (and show it).
29774     *
29775     * @param obj The naviframe object
29776     * @param title_label The label in the title area. The name of the title
29777     *        label part is "elm.text.title"
29778     * @param prev_btn The button to go to the previous item. If it is NULL,
29779     *        then naviframe will create a back button automatically. The name of
29780     *        the prev_btn part is "elm.swallow.prev_btn"
29781     * @param next_btn The button to go to the next item. Or It could be just an
29782     *        extra function button. The name of the next_btn part is
29783     *        "elm.swallow.next_btn"
29784     * @param content The main content object. The name of content part is
29785     *        "elm.swallow.content"
29786     * @param item_style The current item style name. @c NULL would be default.
29787     * @return The created item or @c NULL upon failure.
29788     *
29789     * The item pushed becomes one page of the naviframe, this item will be
29790     * deleted when it is popped.
29791     *
29792     * @see also elm_naviframe_item_style_set()
29793     * @see also elm_naviframe_item_insert_before()
29794     * @see also elm_naviframe_item_insert_after()
29795     *
29796     * The following styles are available for this item:
29797     * @li @c "default"
29798     *
29799     * @ingroup Naviframe
29800     */
29801    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);
29802
29803    /**
29804     * @brief Insert a new item into the naviframe before item @p before.
29805     *
29806     * @param before The naviframe item to insert before.
29807     * @param title_label The label in the title area. The name of the title
29808     *        label part is "elm.text.title"
29809     * @param prev_btn The button to go to the previous item. If it is NULL,
29810     *        then naviframe will create a back button automatically. The name of
29811     *        the prev_btn part is "elm.swallow.prev_btn"
29812     * @param next_btn The button to go to the next item. Or It could be just an
29813     *        extra function button. The name of the next_btn part is
29814     *        "elm.swallow.next_btn"
29815     * @param content The main content object. The name of content part is
29816     *        "elm.swallow.content"
29817     * @param item_style The current item style name. @c NULL would be default.
29818     * @return The created item or @c NULL upon failure.
29819     *
29820     * The item is inserted into the naviframe straight away without any
29821     * transition operations. This item will be deleted when it is popped.
29822     *
29823     * @see also elm_naviframe_item_style_set()
29824     * @see also elm_naviframe_item_push()
29825     * @see also elm_naviframe_item_insert_after()
29826     *
29827     * The following styles are available for this item:
29828     * @li @c "default"
29829     *
29830     * @ingroup Naviframe
29831     */
29832    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);
29833
29834    /**
29835     * @brief Insert a new item into the naviframe after item @p after.
29836     *
29837     * @param after The naviframe item to insert after.
29838     * @param title_label The label in the title area. The name of the title
29839     *        label part is "elm.text.title"
29840     * @param prev_btn The button to go to the previous item. If it is NULL,
29841     *        then naviframe will create a back button automatically. The name of
29842     *        the prev_btn part is "elm.swallow.prev_btn"
29843     * @param next_btn The button to go to the next item. Or It could be just an
29844     *        extra function button. The name of the next_btn part is
29845     *        "elm.swallow.next_btn"
29846     * @param content The main content object. The name of content part is
29847     *        "elm.swallow.content"
29848     * @param item_style The current item style name. @c NULL would be default.
29849     * @return The created item or @c NULL upon failure.
29850     *
29851     * The item is inserted into the naviframe straight away without any
29852     * transition operations. This item will be deleted when it is popped.
29853     *
29854     * @see also elm_naviframe_item_style_set()
29855     * @see also elm_naviframe_item_push()
29856     * @see also elm_naviframe_item_insert_before()
29857     *
29858     * The following styles are available for this item:
29859     * @li @c "default"
29860     *
29861     * @ingroup Naviframe
29862     */
29863    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);
29864
29865    /**
29866     * @brief Pop an item that is on top of the stack
29867     *
29868     * @param obj The naviframe object
29869     * @return @c NULL or the content object(if the
29870     *         elm_naviframe_content_preserve_on_pop_get is true).
29871     *
29872     * This pops an item that is on the top(visible) of the naviframe, makes it
29873     * disappear, then deletes the item. The item that was underneath it on the
29874     * stack will become visible.
29875     *
29876     * @see also elm_naviframe_content_preserve_on_pop_get()
29877     *
29878     * @ingroup Naviframe
29879     */
29880    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
29881
29882    /**
29883     * @brief Pop the items between the top and the above one on the given item.
29884     *
29885     * @param it The naviframe item
29886     *
29887     * @ingroup Naviframe
29888     */
29889    EAPI void                elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29890
29891    /**
29892     * Promote an item already in the naviframe stack to the top of the stack
29893     *
29894     * @param it The naviframe item
29895     *
29896     * This will take the indicated item and promote it to the top of the stack
29897     * as if it had been pushed there. The item must already be inside the
29898     * naviframe stack to work.
29899     *
29900     */
29901    EAPI void                elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29902
29903    /**
29904     * @brief Delete the given item instantly.
29905     *
29906     * @param it The naviframe item
29907     *
29908     * This just deletes the given item from the naviframe item list instantly.
29909     * So this would not emit any signals for view transitions but just change
29910     * the current view if the given item is a top one.
29911     *
29912     * @ingroup Naviframe
29913     */
29914    EAPI void                elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29915
29916    /**
29917     * @brief preserve the content objects when items are popped.
29918     *
29919     * @param obj The naviframe object
29920     * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
29921     *
29922     * @see also elm_naviframe_content_preserve_on_pop_get()
29923     *
29924     * @ingroup Naviframe
29925     */
29926    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
29927
29928    /**
29929     * @brief Get a value whether preserve mode is enabled or not.
29930     *
29931     * @param obj The naviframe object
29932     * @return If @c EINA_TRUE, preserve mode is enabled
29933     *
29934     * @see also elm_naviframe_content_preserve_on_pop_set()
29935     *
29936     * @ingroup Naviframe
29937     */
29938    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29939
29940    /**
29941     * @brief Get a top item on the naviframe stack
29942     *
29943     * @param obj The naviframe object
29944     * @return The top item on the naviframe stack or @c NULL, if the stack is
29945     *         empty
29946     *
29947     * @ingroup Naviframe
29948     */
29949    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29950
29951    /**
29952     * @brief Get a bottom item on the naviframe stack
29953     *
29954     * @param obj The naviframe object
29955     * @return The bottom item on the naviframe stack or @c NULL, if the stack is
29956     *         empty
29957     *
29958     * @ingroup Naviframe
29959     */
29960    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29961
29962    /**
29963     * @brief Set an item style
29964     *
29965     * @param obj The naviframe item
29966     * @param item_style The current item style name. @c NULL would be default
29967     *
29968     * The following styles are available for this item:
29969     * @li @c "default"
29970     *
29971     * @see also elm_naviframe_item_style_get()
29972     *
29973     * @ingroup Naviframe
29974     */
29975    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
29976
29977    /**
29978     * @brief Get an item style
29979     *
29980     * @param obj The naviframe item
29981     * @return The current item style name
29982     *
29983     * @see also elm_naviframe_item_style_set()
29984     *
29985     * @ingroup Naviframe
29986     */
29987    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29988
29989    /**
29990     * @brief Show/Hide the title area
29991     *
29992     * @param it The naviframe item
29993     * @param visible If @c EINA_TRUE, title area will be visible, hidden
29994     *        otherwise
29995     *
29996     * When the title area is invisible, then the controls would be hidden so as     * to expand the content area to full-size.
29997     *
29998     * @see also elm_naviframe_item_title_visible_get()
29999     *
30000     * @ingroup Naviframe
30001     */
30002    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
30003
30004    /**
30005     * @brief Get a value whether title area is visible or not.
30006     *
30007     * @param it The naviframe item
30008     * @return If @c EINA_TRUE, title area is visible
30009     *
30010     * @see also elm_naviframe_item_title_visible_set()
30011     *
30012     * @ingroup Naviframe
30013     */
30014    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
30015
30016    /**
30017     * @brief Set creating prev button automatically or not
30018     *
30019     * @param obj The naviframe object
30020     * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
30021     *        be created internally when you pass the @c NULL to the prev_btn
30022     *        parameter in elm_naviframe_item_push
30023     *
30024     * @see also elm_naviframe_item_push()
30025     *
30026     * @ingroup Naviframe
30027     */
30028    EAPI void                elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
30029
30030    /**
30031     * @brief Get a value whether prev button(back button) will be auto pushed or
30032     *        not.
30033     *
30034     * @param obj The naviframe object
30035     * @return If @c EINA_TRUE, prev button will be auto pushed.
30036     *
30037     * @see also elm_naviframe_item_push()
30038     *           elm_naviframe_prev_btn_auto_pushed_set()
30039     *
30040     * @ingroup Naviframe
30041     */
30042    EAPI Eina_Bool           elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30043
30044    /**
30045     * @brief Get a list of all the naviframe items.
30046     *
30047     * @param obj The naviframe object
30048     * @return An Eina_Inlist* of naviframe items, #Elm_Object_Item,
30049     * or @c NULL on failure.
30050     *
30051     * @ingroup Naviframe
30052     */
30053    EAPI Eina_Inlist        *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30054
30055    /**
30056     * @brief Set the event enabled when pushing/popping items
30057     *
30058     * If @c enabled is EINA_TRUE, the contents of the naviframe item will
30059     * receives events from mouse and keyboard during view changing such as
30060     * item push/pop.
30061     *
30062     * @param obj The naviframe object
30063     * @param enabled Events are received when enabled is @c EINA_TRUE, and
30064     * ignored otherwise.
30065     *
30066     * @warning Events will be blocked by calling evas_object_freeze_events_set()
30067     * internally. So don't call the API whiling pushing/popping items.
30068     *
30069     * @see elm_naviframe_event_enabled_get()
30070     * @see evas_object_freeze_events_set()
30071     *
30072     * @ingroup Naviframe
30073     */
30074    EAPI void                elm_naviframe_event_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
30075
30076    /**
30077     * @brief Get the value of event enabled status.
30078     *
30079     * @param obj The naviframe object
30080     * @return EINA_TRUE, when event is enabled
30081     *
30082     * @see elm_naviframe_event_enabled_set()
30083     *
30084     * @ingroup Naviframe
30085     */
30086    EAPI Eina_Bool           elm_naviframe_event_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30087
30088    /**
30089     * @}
30090     */
30091
30092    /**
30093     * @defgroup Multibuttonentry Multibuttonentry
30094     *
30095     * A Multibuttonentry is a widget to allow a user enter text and manage it as a number of buttons
30096     * Each text button is inserted by pressing the "return" key. If there is no space in the current row,
30097     * a new button is added to the next row. When a text button is pressed, it will become focused.
30098     * Backspace removes the focus.
30099     * When the Multibuttonentry loses focus items longer than 1 lines are shrunk to one line.
30100     *
30101     * Smart callbacks one can register:
30102     * - @c "item,selected" - when item is selected. May be called on backspace key.
30103     * - @c "item,added" - when a new multibuttonentry item is added.
30104     * - @c "item,deleted" - when a multibuttonentry item is deleted.
30105     * - @c "item,clicked" - selected item of multibuttonentry is clicked.
30106     * - @c "clicked" - when multibuttonentry is clicked.
30107     * - @c "focused" - when multibuttonentry is focused.
30108     * - @c "unfocused" - when multibuttonentry is unfocused.
30109     * - @c "expanded" - when multibuttonentry is expanded.
30110     * - @c "shrank" - when multibuttonentry is shrank.
30111     * - @c "shrank,state,changed" - when shrink mode state of multibuttonentry is changed.
30112     *
30113     * Here is an example on its usage:
30114     * @li @ref multibuttonentry_example
30115     */
30116
30117    /**
30118     * @addtogroup Multibuttonentry
30119     * @{
30120     */
30121
30122    typedef struct _Multibuttonentry_Item Elm_Multibuttonentry_Item;
30123    typedef Eina_Bool (*Elm_Multibuttonentry_Item_Filter_callback) (Evas_Object *obj, const char *item_label, void *item_data, void *data);
30124
30125    /**
30126     * @brief Add a new multibuttonentry to the parent
30127     *
30128     * @param parent The parent object
30129     * @return The new object or NULL if it cannot be created
30130     *
30131     */
30132    EAPI Evas_Object               *elm_multibuttonentry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
30133
30134    /**
30135     * Get the label
30136     *
30137     * @param obj The multibuttonentry object
30138     * @return The label, or NULL if none
30139     *
30140     */
30141    EAPI const char                *elm_multibuttonentry_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30142
30143    /**
30144     * Set the label
30145     *
30146     * @param obj The multibuttonentry object
30147     * @param label The text label string
30148     *
30149     */
30150    EAPI void                       elm_multibuttonentry_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
30151
30152    /**
30153     * Get the entry of the multibuttonentry object
30154     *
30155     * @param obj The multibuttonentry object
30156     * @return The entry object, or NULL if none
30157     *
30158     */
30159    EAPI Evas_Object               *elm_multibuttonentry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30160
30161    /**
30162     * Get the guide text
30163     *
30164     * @param obj The multibuttonentry object
30165     * @return The guide text, or NULL if none
30166     *
30167     */
30168    EAPI const char *               elm_multibuttonentry_guide_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30169
30170    /**
30171     * Set the guide text
30172     *
30173     * @param obj The multibuttonentry object
30174     * @param label The guide text string
30175     *
30176     */
30177    EAPI void                       elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext) EINA_ARG_NONNULL(1);
30178
30179    /**
30180     * Get the value of shrink_mode state.
30181     *
30182     * @param obj The multibuttonentry object
30183     * @param the value of shrink mode state.
30184     *
30185     */
30186    EAPI int                        elm_multibuttonentry_shrink_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30187
30188    /**
30189     * Set/Unset the multibuttonentry to shrink mode state of single line
30190     *
30191     * @param obj The multibuttonentry object
30192     * @param the value of shrink_mode state. set this to 1 to set the multibuttonentry to shrink state of single line. set this to 0 to unset the contracted state.
30193     *
30194     */
30195    EAPI void                       elm_multibuttonentry_shrink_mode_set(Evas_Object *obj, int shrink) EINA_ARG_NONNULL(1);
30196
30197    /**
30198     * Prepend a new item to the multibuttonentry
30199     *
30200     * @param obj The multibuttonentry object
30201     * @param label The label of new item
30202     * @param data The ponter to the data to be attached
30203     * @return A handle to the item added or NULL if not possible
30204     *
30205     */
30206    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prepend(Evas_Object *obj, const char *label, void *data) EINA_ARG_NONNULL(1);
30207
30208    /**
30209     * Append a new item to the multibuttonentry
30210     *
30211     * @param obj The multibuttonentry object
30212     * @param label The label of new item
30213     * @param data The ponter to the data to be attached
30214     * @return A handle to the item added or NULL if not possible
30215     *
30216     */
30217    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_append(Evas_Object *obj, const char *label, void *data) EINA_ARG_NONNULL(1);
30218
30219    /**
30220     * Add a new item to the multibuttonentry before the indicated object
30221     *
30222     * reference.
30223     * @param obj The multibuttonentry object
30224     * @param before The item before which to add it
30225     * @param label The label of new item
30226     * @param data The ponter to the data to be attached
30227     * @return A handle to the item added or NULL if not possible
30228     *
30229     */
30230    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_insert_before(Evas_Object *obj, Elm_Multibuttonentry_Item *before, const char *label, void *data) EINA_ARG_NONNULL(1);
30231
30232    /**
30233     * Add a new item to the multibuttonentry after the indicated object
30234     *
30235     * @param obj The multibuttonentry object
30236     * @param after The item after which to add it
30237     * @param label The label of new item
30238     * @param data The ponter to the data to be attached
30239     * @return A handle to the item added or NULL if not possible
30240     *
30241     */
30242    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_insert_after(Evas_Object *obj, Elm_Multibuttonentry_Item *after, const char *label, void *data) EINA_ARG_NONNULL(1);
30243
30244    /**
30245     * Get a list of items in the multibuttonentry
30246     *
30247     * @param obj The multibuttonentry object
30248     * @return The list of items, or NULL if none
30249     *
30250     */
30251    EAPI const Eina_List           *elm_multibuttonentry_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30252
30253    /**
30254     * Get the first item in the multibuttonentry
30255     *
30256     * @param obj The multibuttonentry object
30257     * @return The first item, or NULL if none
30258     *
30259     */
30260    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30261
30262    /**
30263     * Get the last item in the multibuttonentry
30264     *
30265     * @param obj The multibuttonentry object
30266     * @return The last item, or NULL if none
30267     *
30268     */
30269    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30270
30271    /**
30272     * Get the selected item in the multibuttonentry
30273     *
30274     * @param obj The multibuttonentry object
30275     * @return The selected item, or NULL if none
30276     *
30277     */
30278    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30279
30280    /**
30281     * Set the selected state of an item
30282     *
30283     * @param item The item
30284     * @param selected if it's EINA_TRUE, select the item otherwise, unselect the item
30285     *
30286     */
30287    EAPI void                       elm_multibuttonentry_item_select(Elm_Multibuttonentry_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
30288
30289    /**
30290     * unselect all items.
30291     *
30292     * @param obj The multibuttonentry object
30293     *
30294     */
30295    EAPI void                       elm_multibuttonentry_item_unselect_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
30296
30297    /**
30298     * Delete a given item
30299     *
30300     * @param item The item
30301     *
30302     */
30303    EAPI void                       elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30304
30305    /**
30306     * Remove all items in the multibuttonentry.
30307     *
30308     * @param obj The multibuttonentry object
30309     *
30310     */
30311    EAPI void                       elm_multibuttonentry_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
30312
30313    /**
30314     * Get the label of a given item
30315     *
30316     * @param item The item
30317     * @return The label of a given item, or NULL if none
30318     *
30319     */
30320    EAPI const char                *elm_multibuttonentry_item_label_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30321
30322    /**
30323     * Set the label of a given item
30324     *
30325     * @param item The item
30326     * @param label The text label string
30327     *
30328     */
30329    EAPI void                       elm_multibuttonentry_item_label_set(Elm_Multibuttonentry_Item *item, const char *str) EINA_ARG_NONNULL(1);
30330
30331    /**
30332     * Get the previous item in the multibuttonentry
30333     *
30334     * @param item The item
30335     * @return The item before the item @p item
30336     *
30337     */
30338    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prev_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30339
30340    /**
30341     * Get the next item in the multibuttonentry
30342     *
30343     * @param item The item
30344     * @return The item after the item @p item
30345     *
30346     */
30347    EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_next_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30348
30349    /**
30350     * Append a item filter function for text inserted in the Multibuttonentry
30351     *
30352     * Append the given callback to the list. This functions will be called
30353     * whenever any text is inserted into the Multibuttonentry, with the text to be inserted
30354     * as a parameter. The callback function is free to alter the text in any way
30355     * it wants, but it must remember to free the given pointer and update it.
30356     * If the new text is to be discarded, the function can free it and set it text
30357     * parameter to NULL. This will also prevent any following filters from being
30358     * called.
30359     *
30360     * @param obj The multibuttonentryentry object
30361     * @param func The function to use as item filter
30362     * @param data User data to pass to @p func
30363     *
30364     */
30365    EAPI void elm_multibuttonentry_item_filter_append(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
30366
30367    /**
30368     * Prepend a filter function for text inserted in the Multibuttentry
30369     *
30370     * Prepend the given callback to the list. See elm_multibuttonentry_item_filter_append()
30371     * for more information
30372     *
30373     * @param obj The multibuttonentry object
30374     * @param func The function to use as text filter
30375     * @param data User data to pass to @p func
30376     *
30377     */
30378    EAPI void elm_multibuttonentry_item_filter_prepend(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
30379
30380    /**
30381     * Remove a filter from the list
30382     *
30383     * Removes the given callback from the filter list. See elm_multibuttonentry_item_filter_append()
30384     * for more information.
30385     *
30386     * @param obj The multibuttonentry object
30387     * @param func The filter function to remove
30388     * @param data The user data passed when adding the function
30389     *
30390     */
30391    EAPI void elm_multibuttonentry_item_filter_remove(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
30392
30393    /**
30394     * @}
30395     */
30396
30397    /**
30398     * @addtogroup CopyPaste
30399     * @{
30400     */
30401
30402    typedef struct _Elm_Selection_Data Elm_Selection_Data;
30403    typedef Eina_Bool (*Elm_Drop_Cb) (void *d, Evas_Object *o, Elm_Selection_Data *data);
30404
30405    typedef enum _Elm_Sel_Type
30406    {
30407       ELM_SEL_PRIMARY,
30408       ELM_SEL_SECONDARY,
30409       ELM_SEL_CLIPBOARD,
30410       ELM_SEL_XDND,
30411
30412       ELM_SEL_MAX,
30413    } Elm_Sel_Type;
30414
30415    typedef enum _Elm_Sel_Format
30416    {
30417       /** Targets: for matching every atom requesting */
30418       ELM_SEL_TARGETS       = -1,
30419       /** they come from outside of elm */
30420       ELM_SEL_FORMAT_NONE   = 0x0,
30421       /** Plain unformated text: Used for things that don't want rich markup */
30422       ELM_SEL_FORMAT_TEXT   = 0x01,
30423       /** Edje textblock markup, including inline images */
30424       ELM_SEL_FORMAT_MARKUP = 0x02,
30425       /** Images */
30426       ELM_SEL_FORMAT_IMAGE  = 0x04,
30427       /** Vcards */
30428       ELM_SEL_FORMAT_VCARD  = 0x08,
30429       /** Raw HTMLish things for widgets that want that stuff (hello webkit!) */
30430       ELM_SEL_FORMAT_HTML   = 0x10,
30431
30432       ELM_SEL_FORMAT_MAX
30433    } Elm_Sel_Format;
30434
30435    struct _Elm_Selection_Data
30436    {
30437       int                   x, y;
30438       Elm_Sel_Format        format;
30439       void                 *data;
30440       int                   len;
30441    };
30442
30443    /**
30444     * @brief Set a data of a widget to copy and paste.
30445     *
30446     * Append the given callback to the list. This functions will be called
30447     * called.
30448     *
30449     * @param selection selection type for copying and pasting
30450     * @param widget The source widget pointer
30451     * @param format Type of selection format
30452     * @param buf The pointer of data source
30453     * @return If EINA_TRUE, setting data is success.
30454     *
30455     * @ingroup CopyPaste
30456     *
30457     */
30458
30459    EAPI Eina_Bool            elm_cnp_selection_set(Elm_Sel_Type selection, Evas_Object *widget, Elm_Sel_Format format, const char *buf);
30460
30461    /**
30462     * @brief Retrive the data from the widget which is set for copying and pasting.
30463     *
30464     * Getting the data from the widget which is set for copying and pasting.
30465     * Mainly the widget is elm_entry. If then @p datacb and @p udata are
30466     * can be NULL. If not, @p datacb and @p udata are used for retriving data.
30467     *
30468     * @see also elm_cnp_selection_set()
30469     *
30470     * @param selection selection type for copying and pasting
30471     * @param widget The source widget pointer
30472     * @param datacb The user data callback if the target widget isn't elm_entry
30473     * @param udata The user data pointer for @p datacb
30474     * @return If EINA_TRUE, getting data is success.
30475     *
30476     * @ingroup CopyPaste
30477     *
30478     */
30479
30480    EAPI Eina_Bool            elm_cnp_selection_get(Elm_Sel_Type selection, Elm_Sel_Format format, Evas_Object *widget, Elm_Drop_Cb datacb, void *udata);
30481
30482    /**
30483     * @brief Clear the data in the widget which is set for copying and pasting.
30484     *
30485     * Clear the data in the widget. Normally this function isn't need to call.
30486     *
30487     * @see also elm_cnp_selection_set()
30488     *
30489     * @param selection selection type for copying and pasting
30490     * @param widget The source widget pointer
30491     * @return If EINA_TRUE, clearing data is success.
30492     *
30493     * @ingroup CopyPaste
30494     *
30495     */
30496
30497    EAPI Eina_Bool            elm_cnp_selection_clear(Elm_Sel_Type selection, Evas_Object *widget);
30498
30499    /**
30500     * @}
30501     */
30502
30503 #ifdef __cplusplus
30504 }
30505 #endif
30506
30507 #endif