3 * vim:ts=8:sw=3:sts=3:expandtab:cino=>5n-3f0^-2{2(0W1st0
8 @brief Elementary Widget Library
13 @image html elementary.png
17 @section intro What is Elementary?
19 This is a VERY SIMPLE toolkit. It is not meant for writing extensive desktop
20 applications (yet). Small simple ones with simple needs.
22 It is meant to make the programmers work almost brainless but give them lots
25 @li @ref Start - Go here to quickly get started with writing Apps
27 @section organization Organization
29 One can divide Elemementary into three main groups:
30 @li @ref infralist - These are modules that deal with Elementary as a whole.
31 @li @ref widgetslist - These are the widgets you'll compose your UI out of.
32 @li @ref containerslist - These are the containers in which the widgets will be
35 @section license License
37 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
38 all files in the source tree.
40 @section ack Acknowledgements
41 There is a lot that goes into making a widget set, and they don't happen out of
42 nothing. It's like trying to make everyone everywhere happy, regardless of age,
43 gender, race or nationality - and that is really tough. So thanks to people and
44 organisations behind this, as listed in the @ref authors page.
49 * @defgroup Start Getting Started
51 * To write an Elementary app, you can get started with the following:
54 #include <Elementary.h>
56 elm_main(int argc, char **argv)
58 // create window(s) here and do any application init
59 elm_run(); // run main loop
60 elm_shutdown(); // after mainloop finishes running, shutdown
61 return 0; // exit 0 for exit code
66 * To use autotools (which helps in many ways in the long run, like being able
67 * to immediately create releases of your software directly from your tree
68 * and ensure everything needed to buiuld it is there) you will need a
69 * configure.ac, Makefile.am and autogen.sh file.
74 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
76 AC_CONFIG_SRCDIR(configure.ac)
77 AM_CONFIG_HEADER(config.h)
79 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
80 PKG_CHECK_MODULES([ELEMENTARY], elementary)
87 AUTOMAKE_OPTIONS = 1.4 foreign
88 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
90 INCLUDES = -I$(top_srcdir)
94 myapp_SOURCES = main.c
95 myapp_LDADD = @ELEMENTARY_LIBS@
96 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
103 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
104 echo "Running autoheader..." ; autoheader || exit 1
105 echo "Running autoconf..." ; autoconf || exit 1
106 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
110 * To generate all the things needed to bootstrap just run:
116 * This will generate Makefile.in's, the confgure script and everything else.
117 * After this it works like all normal autotools projects:
124 * Note sudo was assumed to get root permissions, as this would install in
125 * /usr/local which is system-owned. Use any way you like to gain root, or
126 * specify a different prefix with configure:
129 ./confiugre --prefix=$HOME/mysoftware
132 * Also remember that autotools buys you some useful commands like:
137 * This uninstalls the software after it was installed with "make install".
138 * It is very useful to clear up what you built if you wish to clean the
145 * This firstly checks if your build tree is "clean" and ready for
146 * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
147 * ready to upload and distribute to the world, that contains the generated
148 * Makefile.in's and configure script. The users do not need to run
149 * autogen.sh - just configure and on. They don't need autotools installed.
150 * This tarball also builds cleanly, has all the sources it needs to build
151 * included (that is sources for your application, not libraries it depends
152 * on like Elementary). It builds cleanly in a buildroot and does not
153 * contain any files that are temporarily generated like binaries and other
154 * build-generated files, so the tarball is clean, and no need to worry
155 * about cleaning up your tree before packaging.
161 * This cleans up all build files (binaries, objects etc.) from the tree.
167 * This cleans out all files from the build and from configure's output too.
170 make maintainer-clean
173 * This deletes all the files autogen.sh will produce so the tree is clean
174 * to be put into a revision-control system (like CVS, SVN or GIT for example).
176 * There is a more advanced way of making use of the quicklaunch infrastructure
177 * in Elementary (which will not be covered here due to its more advanced
180 * Now let's actually create an interactive "Hello World" gui that you can
181 * click the ok button to exit. It's more code because this now does something
182 * much more significant, but it's still very simple:
185 #include <Elementary.h>
188 on_done(void *data, Evas_Object *obj, void *event_info)
190 // quit the mainloop (elm_run function will return)
195 elm_main(int argc, char **argv)
197 Evas_Object *win, *bg, *box, *lab, *btn;
199 // new window - do the usual and give it a name, title and delete handler
200 win = elm_win_add(NULL, "hello", ELM_WIN_BASIC);
201 elm_win_title_set(win, "Hello");
202 // when the user clicks "close" on a window there is a request to delete
203 evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
206 bg = elm_bg_add(win);
207 // add object as a resize object for the window (controls window minimum
208 // size as well as gets resized if window is resized)
209 elm_win_resize_object_add(win, bg);
210 evas_object_show(bg);
212 // add a box object - default is vertical. a box holds children in a row,
213 // either horizontally or vertically. nothing more.
214 box = elm_box_add(win);
215 // make the box hotizontal
216 elm_box_horizontal_set(box, EINA_TRUE);
217 // add object as a resize object for the window (controls window minimum
218 // size as well as gets resized if window is resized)
219 elm_win_resize_object_add(win, box);
220 evas_object_show(box);
222 // add a label widget, set the text and put it in the pad frame
223 lab = elm_label_add(win);
224 // set default text of the label
225 elm_object_text_set(lab, "Hello out there world!");
226 // pack the label at the end of the box
227 elm_box_pack_end(box, lab);
228 evas_object_show(lab);
231 btn = elm_button_add(win);
232 // set default text of button to "OK"
233 elm_object_text_set(btn, "OK");
234 // pack the button at the end of the box
235 elm_box_pack_end(box, btn);
236 evas_object_show(btn);
237 // call on_done when button is clicked
238 evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
240 // now we are done, show the window
241 evas_object_show(win);
243 // run the mainloop and process events and callbacks
253 @page authors Authors
254 @author Carsten Haitzler <raster@@rasterman.com>
255 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
256 @author Cedric Bail <cedric.bail@@free.fr>
257 @author Vincent Torri <vtorri@@univ-evry.fr>
258 @author Daniel Kolesa <quaker66@@gmail.com>
259 @author Jaime Thomas <avi.thomas@@gmail.com>
260 @author Swisscom - http://www.swisscom.ch/
261 @author Christopher Michael <devilhorns@@comcast.net>
262 @author Marco Trevisan (Treviño) <mail@@3v1n0.net>
263 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
264 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
265 @author Brian Wang <brian.wang.0721@@gmail.com>
266 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
267 @author Samsung Electronics <tbd>
268 @author Samsung SAIT <tbd>
269 @author Brett Nash <nash@@nash.id.au>
270 @author Bruno Dilly <bdilly@@profusion.mobi>
271 @author Rafael Fonseca <rfonseca@@profusion.mobi>
272 @author Chuneon Park <hermet@@hermet.pe.kr>
273 @author Woohyun Jung <wh0705.jung@@samsung.com>
274 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
275 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
276 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
277 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
278 @author Gustavo Lima Chaves <glima@@profusion.mobi>
279 @author Fabiano Fidêncio <fidencio@@profusion.mobi>
280 @author Tiago Falcão <tiago@@profusion.mobi>
281 @author Otavio Pontes <otavio@@profusion.mobi>
282 @author Viktor Kojouharov <vkojouharov@@gmail.com>
283 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
284 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
285 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
286 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
287 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
288 @author Jihoon Kim <jihoon48.kim@@samsung.com>
289 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
290 @author Tom Hacohen <tom@@stosb.com>
291 @author Aharon Hillel <a.hillel@@partner.samsung.com>
292 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
293 @author Shinwoo Kim <kimcinoo@@gmail.com>
294 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
295 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
297 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
298 contact with the developers and maintainers.
306 * @brief Elementary's API
311 @ELM_UNIX_DEF@ ELM_UNIX
312 @ELM_WIN32_DEF@ ELM_WIN32
313 @ELM_WINCE_DEF@ ELM_WINCE
314 @ELM_EDBUS_DEF@ ELM_EDBUS
315 @ELM_EFREET_DEF@ ELM_EFREET
316 @ELM_ETHUMB_DEF@ ELM_ETHUMB
317 @ELM_EMAP_DEF@ ELM_EMAP
318 @ELM_DEBUG_DEF@ ELM_DEBUG
319 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
320 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
322 /* Standard headers for standard system calls etc. */
327 #include <sys/types.h>
328 #include <sys/stat.h>
329 #include <sys/time.h>
330 #include <sys/param.h>
343 # ifdef ELM_LIBINTL_H
344 # include <libintl.h>
355 #if defined (ELM_WIN32) || defined (ELM_WINCE)
358 # define alloca _alloca
369 #include <Ecore_Evas.h>
370 #include <Ecore_File.h>
371 #include <Ecore_IMF.h>
372 #include <Ecore_Con.h>
381 # include <Efreet_Mime.h>
382 # include <Efreet_Trash.h>
386 # include <Ethumb_Client.h>
398 # ifdef ELEMENTARY_BUILD
400 # define EAPI __declspec(dllexport)
403 # endif /* ! DLL_EXPORT */
405 # define EAPI __declspec(dllimport)
406 # endif /* ! EFL_EVAS_BUILD */
410 # define EAPI __attribute__ ((visibility("default")))
417 #endif /* ! _WIN32 */
420 /* allow usage from c++ */
425 #define ELM_VERSION_MAJOR @VMAJ@
426 #define ELM_VERSION_MINOR @VMIN@
428 typedef struct _Elm_Version
436 EAPI extern Elm_Version *elm_version;
439 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
440 #define ELM_PI 3.14159265358979323846
443 * @defgroup General General
445 * @brief General Elementary API. Functions that don't relate to
446 * Elementary objects specifically.
448 * Here are documented functions which init/shutdown the library,
449 * that apply to generic Elementary objects, that deal with
450 * configuration, et cetera.
452 * @ref general_functions_example_page "This" example contemplates
453 * some of these functions.
457 * @addtogroup General
462 * Defines couple of standard Evas_Object layers to be used
463 * with evas_object_layer_set().
465 * @note whenever extending with new values, try to keep some padding
466 * to siblings so there is room for further extensions.
468 typedef enum _Elm_Object_Layer
470 ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
471 ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
472 ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
473 ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
474 ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
475 ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
478 /**************************************************************************/
479 EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
482 * Emitted when any Elementary's policy value is changed.
484 EAPI extern int ELM_EVENT_POLICY_CHANGED;
487 * @typedef Elm_Event_Policy_Changed
489 * Data on the event when an Elementary policy has changed
491 typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
494 * @struct _Elm_Event_Policy_Changed
496 * Data on the event when an Elementary policy has changed
498 struct _Elm_Event_Policy_Changed
500 unsigned int policy; /**< the policy identifier */
501 int new_value; /**< value the policy had before the change */
502 int old_value; /**< new value the policy got */
506 * Policy identifiers.
508 typedef enum _Elm_Policy
510 ELM_POLICY_QUIT, /**< under which circunstances the application
511 * should quit automatically. @see
515 } Elm_Policy; /**< Elementary policy identifiers/groups enumeration. @see elm_policy_set()
518 typedef enum _Elm_Policy_Quit
520 ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
522 ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
524 * window is closed */
525 } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
527 typedef enum _Elm_Focus_Direction
531 } Elm_Focus_Direction;
533 typedef enum _Elm_Text_Format
535 ELM_TEXT_FORMAT_PLAIN_UTF8,
536 ELM_TEXT_FORMAT_MARKUP_UTF8
540 * Line wrapping types.
542 typedef enum _Elm_Wrap_Type
544 ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
545 ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
546 ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
547 ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
552 * @typedef Elm_Object_Item
553 * An Elementary Object item handle.
556 typedef struct _Elm_Object_Item Elm_Object_Item;
560 * Called back when a widget's tooltip is activated and needs content.
561 * @param data user-data given to elm_object_tooltip_content_cb_set()
562 * @param obj owner widget.
563 * @param tooltip The tooltip object (affix content to this!)
565 typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
568 * Called back when a widget's item tooltip is activated and needs content.
569 * @param data user-data given to elm_object_tooltip_content_cb_set()
570 * @param obj owner widget.
571 * @param tooltip The tooltip object (affix content to this!)
572 * @param item context dependent item. As an example, if tooltip was
573 * set on Elm_List_Item, then it is of this type.
575 typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
577 typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info);
579 #ifndef ELM_LIB_QUICKLAUNCH
580 #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 */
582 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
585 /**************************************************************************/
589 * Initialize Elementary
591 * @param[in] argc System's argument count value
592 * @param[in] argv System's pointer to array of argument strings
593 * @return The init counter value.
595 * This function initializes Elementary and increments a counter of
596 * the number of calls to it. It returs the new counter's value.
598 * @warning This call is exported only for use by the @c ELM_MAIN()
599 * macro. There is no need to use this if you use this macro (which
600 * is highly advisable). An elm_main() should contain the entry
601 * point code for your application, having the same prototype as
602 * elm_init(), and @b not being static (putting the @c EAPI symbol
603 * in front of its type declaration is advisable). The @c
604 * ELM_MAIN() call should be placed just after it.
607 * @dontinclude bg_example_01.c
611 * See the full @ref bg_example_01_c "example".
613 * @see elm_shutdown().
616 EAPI int elm_init(int argc, char **argv);
619 * Shut down Elementary
621 * @return The init counter value.
623 * This should be called at the end of your application, just
624 * before it ceases to do any more processing. This will clean up
625 * any permanent resources your application may have allocated via
626 * Elementary that would otherwise persist.
628 * @see elm_init() for an example
632 EAPI int elm_shutdown(void);
635 * Run Elementary's main loop
637 * This call should be issued just after all initialization is
638 * completed. This function will not return until elm_exit() is
639 * called. It will keep looping, running the main
640 * (event/processing) loop for Elementary.
642 * @see elm_init() for an example
646 EAPI void elm_run(void);
649 * Exit Elementary's main loop
651 * If this call is issued, it will flag the main loop to cease
652 * processing and return back to its parent function (usually your
653 * elm_main() function).
655 * @see elm_init() for an example. There, just after a request to
656 * close the window comes, the main loop will be left.
658 * @note By using the #ELM_POLICY_QUIT on your Elementary
659 * applications, you'll this function called automatically for you.
663 EAPI void elm_exit(void);
666 * Provide information in order to make Elementary determine the @b
667 * run time location of the software in question, so other data files
668 * such as images, sound files, executable utilities, libraries,
669 * modules and locale files can be found.
671 * @param mainfunc This is your application's main function name,
672 * whose binary's location is to be found. Providing @c NULL
673 * will make Elementary not to use it
674 * @param dom This will be used as the application's "domain", in the
675 * form of a prefix to any environment variables that may
676 * override prefix detection and the directory name, inside the
677 * standard share or data directories, where the software's
678 * data files will be looked for.
679 * @param checkfile This is an (optional) magic file's path to check
680 * for existence (and it must be located in the data directory,
681 * under the share directory provided above). Its presence will
682 * help determine the prefix found was correct. Pass @c NULL if
683 * the check is not to be done.
685 * This function allows one to re-locate the application somewhere
686 * else after compilation, if the developer wishes for easier
687 * distribution of pre-compiled binaries.
689 * The prefix system is designed to locate where the given software is
690 * installed (under a common path prefix) at run time and then report
691 * specific locations of this prefix and common directories inside
692 * this prefix like the binary, library, data and locale directories,
693 * through the @c elm_app_*_get() family of functions.
695 * Call elm_app_info_set() early on before you change working
696 * directory or anything about @c argv[0], so it gets accurate
699 * It will then try and trace back which file @p mainfunc comes from,
700 * if provided, to determine the application's prefix directory.
702 * The @p dom parameter provides a string prefix to prepend before
703 * environment variables, allowing a fallback to @b specific
704 * environment variables to locate the software. You would most
705 * probably provide a lowercase string there, because it will also
706 * serve as directory domain, explained next. For environment
707 * variables purposes, this string is made uppercase. For example if
708 * @c "myapp" is provided as the prefix, then the program would expect
709 * @c "MYAPP_PREFIX" as a master environment variable to specify the
710 * exact install prefix for the software, or more specific environment
711 * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
712 * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
713 * the user or scripts before launching. If not provided (@c NULL),
714 * environment variables will not be used to override compiled-in
715 * defaults or auto detections.
717 * The @p dom string also provides a subdirectory inside the system
718 * shared data directory for data files. For example, if the system
719 * directory is @c /usr/local/share, then this directory name is
720 * appended, creating @c /usr/local/share/myapp, if it @p was @c
721 * "myapp". It is expected the application installs data files in
724 * The @p checkfile is a file name or path of something inside the
725 * share or data directory to be used to test that the prefix
726 * detection worked. For example, your app will install a wallpaper
727 * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
728 * check that this worked, provide @c "images/wallpaper.jpg" as the @p
731 * @see elm_app_compile_bin_dir_set()
732 * @see elm_app_compile_lib_dir_set()
733 * @see elm_app_compile_data_dir_set()
734 * @see elm_app_compile_locale_set()
735 * @see elm_app_prefix_dir_get()
736 * @see elm_app_bin_dir_get()
737 * @see elm_app_lib_dir_get()
738 * @see elm_app_data_dir_get()
739 * @see elm_app_locale_dir_get()
741 EAPI void elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
744 * Provide information on the @b fallback application's binaries
745 * directory, on scenarios where they get overriden by
746 * elm_app_info_set().
748 * @param dir The path to the default binaries directory (compile time
751 * @note Elementary will as well use this path to determine actual
752 * names of binaries' directory paths, maybe changing it to be @c
753 * something/local/bin instead of @c something/bin, only, for
756 * @warning You should call this function @b before
757 * elm_app_info_set().
759 EAPI void elm_app_compile_bin_dir_set(const char *dir);
762 * Provide information on the @b fallback application's libraries
763 * directory, on scenarios where they get overriden by
764 * elm_app_info_set().
766 * @param dir The path to the default libraries directory (compile
769 * @note Elementary will as well use this path to determine actual
770 * names of libraries' directory paths, maybe changing it to be @c
771 * something/lib32 or @c something/lib64 instead of @c something/lib,
774 * @warning You should call this function @b before
775 * elm_app_info_set().
777 EAPI void elm_app_compile_lib_dir_set(const char *dir);
780 * Provide information on the @b fallback application's data
781 * directory, on scenarios where they get overriden by
782 * elm_app_info_set().
784 * @param dir The path to the default data directory (compile time
787 * @note Elementary will as well use this path to determine actual
788 * names of data directory paths, maybe changing it to be @c
789 * something/local/share instead of @c something/share, only, for
792 * @warning You should call this function @b before
793 * elm_app_info_set().
795 EAPI void elm_app_compile_data_dir_set(const char *dir);
798 * Provide information on the @b fallback application's locale
799 * directory, on scenarios where they get overriden by
800 * elm_app_info_set().
802 * @param dir The path to the default locale directory (compile time
805 * @warning You should call this function @b before
806 * elm_app_info_set().
808 EAPI void elm_app_compile_locale_set(const char *dir);
811 * Retrieve the application's run time prefix directory, as set by
812 * elm_app_info_set() and the way (environment) the application was
815 * @return The directory prefix the application is actually using
817 EAPI const char *elm_app_prefix_dir_get(void);
820 * Retrieve the application's run time binaries prefix directory, as
821 * set by elm_app_info_set() and the way (environment) the application
824 * @return The binaries directory prefix the application is actually
827 EAPI const char *elm_app_bin_dir_get(void);
830 * Retrieve the application's run time libraries prefix directory, as
831 * set by elm_app_info_set() and the way (environment) the application
834 * @return The libraries directory prefix the application is actually
837 EAPI const char *elm_app_lib_dir_get(void);
840 * Retrieve the application's run time data prefix directory, as
841 * set by elm_app_info_set() and the way (environment) the application
844 * @return The data directory prefix the application is actually
847 EAPI const char *elm_app_data_dir_get(void);
850 * Retrieve the application's run time locale prefix directory, as
851 * set by elm_app_info_set() and the way (environment) the application
854 * @return The locale directory prefix the application is actually
857 EAPI const char *elm_app_locale_dir_get(void);
859 EAPI void elm_quicklaunch_mode_set(Eina_Bool ql_on);
860 EAPI Eina_Bool elm_quicklaunch_mode_get(void);
861 EAPI int elm_quicklaunch_init(int argc, char **argv);
862 EAPI int elm_quicklaunch_sub_init(int argc, char **argv);
863 EAPI int elm_quicklaunch_sub_shutdown(void);
864 EAPI int elm_quicklaunch_shutdown(void);
865 EAPI void elm_quicklaunch_seed(void);
866 EAPI Eina_Bool elm_quicklaunch_prepare(int argc, char **argv);
867 EAPI Eina_Bool elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
868 EAPI void elm_quicklaunch_cleanup(void);
869 EAPI int elm_quicklaunch_fallback(int argc, char **argv);
870 EAPI char *elm_quicklaunch_exe_path_get(const char *exe);
872 EAPI Eina_Bool elm_need_efreet(void);
873 EAPI Eina_Bool elm_need_e_dbus(void);
876 * This must be called before any other function that handle with
877 * elm_thumb objects or ethumb_client instances.
881 EAPI Eina_Bool elm_need_ethumb(void);
884 * Set a new policy's value (for a given policy group/identifier).
886 * @param policy policy identifier, as in @ref Elm_Policy.
887 * @param value policy value, which depends on the identifier
889 * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
891 * Elementary policies define applications' behavior,
892 * somehow. These behaviors are divided in policy groups (see
893 * #Elm_Policy enumeration). This call will emit the Ecore event
894 * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
895 * handlers. An #Elm_Event_Policy_Changed struct will be passed,
898 * @note Currently, we have only one policy identifier/group
899 * (#ELM_POLICY_QUIT), which has two possible values.
903 EAPI Eina_Bool elm_policy_set(unsigned int policy, int value);
906 * Gets the policy value set for given policy identifier.
908 * @param policy policy identifier, as in #Elm_Policy.
909 * @return The currently set policy value, for that
910 * identifier. Will be @c 0 if @p policy passed is invalid.
914 EAPI int elm_policy_get(unsigned int policy);
917 * Set a label of an object
919 * @param obj The Elementary object
920 * @param part The text part name to set (NULL for the default label)
921 * @param label The new text of the label
923 * @note Elementary objects may have many labels (e.g. Action Slider)
927 EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
929 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
932 * Get a label of an object
934 * @param obj The Elementary object
935 * @param part The text part name to get (NULL for the default label)
936 * @return text of the label or NULL for any error
938 * @note Elementary objects may have many labels (e.g. Action Slider)
942 EAPI const char *elm_object_text_part_get(const Evas_Object *obj, const char *part);
944 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
947 * Set a content of an object
949 * @param obj The Elementary object
950 * @param part The content part name to set (NULL for the default content)
951 * @param content The new content of the object
953 * @note Elementary objects may have many contents
957 EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
959 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
962 * Get a content of an object
964 * @param obj The Elementary object
965 * @param item The content part name to get (NULL for the default content)
966 * @return content of the object or NULL for any error
968 * @note Elementary objects may have many contents
972 EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
974 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
977 * Unset a content of an object
979 * @param obj The Elementary object
980 * @param item The content part name to unset (NULL for the default content)
982 * @note Elementary objects may have many contents
986 EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
988 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
991 * Set a content of an object item
993 * @param it The Elementary object item
994 * @param part The content part name to unset (NULL for the default content)
995 * @param content The new content of the object item
997 * @note Elementary object items may have many contents
1001 EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1003 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
1006 * Get a content of an object item
1008 * @param it The Elementary object item
1009 * @param part The content part name to unset (NULL for the default content)
1010 * @return content of the object item or NULL for any error
1012 * @note Elementary object items may have many contents
1016 EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *item);
1018 #define elm_object_item_content_get(it, content) elm_object_item_content_part_get((it), NULL, (content))
1021 * Unset a content of an object item
1023 * @param it The Elementary object item
1024 * @param part The content part name to unset (NULL for the default content)
1026 * @note Elementary object items may have many contents
1030 EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1032 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
1035 * Set a label of an objec itemt
1037 * @param it The Elementary object item
1038 * @param part The text part name to set (NULL for the default label)
1039 * @param label The new text of the label
1041 * @note Elementary object items may have many labels
1045 EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1047 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
1050 * Get a label of an object
1052 * @param it The Elementary object item
1053 * @param part The text part name to get (NULL for the default label)
1054 * @return text of the label or NULL for any error
1056 * @note Elementary object items may have many labels
1060 EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1062 #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
1069 * @defgroup Caches Caches
1071 * These are functions which let one fine-tune some cache values for
1072 * Elementary applications, thus allowing for performance adjustments.
1078 * Flush all caches & dump all data that can be to lean down to use
1083 EAPI void elm_all_flush(void);
1086 * Get the configured cache flush interval time
1088 * This gets the globally configured cache flush interval time, in
1091 * @return The cache flush interval time
1094 * @see elm_all_flush()
1096 EAPI int elm_cache_flush_interval_get(void);
1099 * Set the configured cache flush interval time
1101 * This sets the globally configured cache flush interval time, in ticks
1103 * @param size The cache flush interval time
1106 * @see elm_all_flush()
1108 EAPI void elm_cache_flush_interval_set(int size);
1111 * Set the configured cache flush interval time for all applications on the
1114 * This sets the globally configured cache flush interval time -- in ticks
1115 * -- for all applications on the display.
1117 * @param size The cache flush interval time
1120 EAPI void elm_cache_flush_interval_all_set(int size);
1123 * Get the configured cache flush enabled state
1125 * This gets the globally configured cache flush state - if it is enabled
1126 * or not. When cache flushing is enabled, elementary will regularly
1127 * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1128 * memory and allow usage to re-seed caches and data in memory where it
1129 * can do so. An idle application will thus minimise its memory usage as
1130 * data will be freed from memory and not be re-loaded as it is idle and
1131 * not rendering or doing anything graphically right now.
1133 * @return The cache flush state
1136 * @see elm_all_flush()
1138 EAPI Eina_Bool elm_cache_flush_enabled_get(void);
1141 * Set the configured cache flush enabled state
1143 * This sets the globally configured cache flush enabled state
1145 * @param size The cache flush enabled state
1148 * @see elm_all_flush()
1150 EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled);
1153 * Set the configured cache flush enabled state for all applications on the
1156 * This sets the globally configured cache flush enabled state for all
1157 * applications on the display.
1159 * @param size The cache flush enabled state
1162 EAPI void elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1165 * Get the configured font cache size
1167 * This gets the globally configured font cache size, in bytes
1169 * @return The font cache size
1172 EAPI int elm_font_cache_get(void);
1175 * Set the configured font cache size
1177 * This sets the globally configured font cache size, in bytes
1179 * @param size The font cache size
1182 EAPI void elm_font_cache_set(int size);
1185 * Set the configured font cache size for all applications on the
1188 * This sets the globally configured font cache size -- in bytes
1189 * -- for all applications on the display.
1191 * @param size The font cache size
1194 EAPI void elm_font_cache_all_set(int size);
1197 * Get the configured image cache size
1199 * This gets the globally configured image cache size, in bytes
1201 * @return The image cache size
1204 EAPI int elm_image_cache_get(void);
1207 * Set the configured image cache size
1209 * This sets the globally configured image cache size, in bytes
1211 * @param size The image cache size
1214 EAPI void elm_image_cache_set(int size);
1217 * Set the configured image cache size for all applications on the
1220 * This sets the globally configured image cache size -- in bytes
1221 * -- for all applications on the display.
1223 * @param size The image cache size
1226 EAPI void elm_image_cache_all_set(int size);
1229 * Get the configured edje file cache size.
1231 * This gets the globally configured edje file cache size, in number
1234 * @return The edje file cache size
1237 EAPI int elm_edje_file_cache_get(void);
1240 * Set the configured edje file cache size
1242 * This sets the globally configured edje file cache size, in number
1245 * @param size The edje file cache size
1248 EAPI void elm_edje_file_cache_set(int size);
1251 * Set the configured edje file cache size for all applications on the
1254 * This sets the globally configured edje file cache size -- in number
1255 * of files -- for all applications on the display.
1257 * @param size The edje file cache size
1260 EAPI void elm_edje_file_cache_all_set(int size);
1263 * Get the configured edje collections (groups) cache size.
1265 * This gets the globally configured edje collections cache size, in
1266 * number of collections.
1268 * @return The edje collections cache size
1271 EAPI int elm_edje_collection_cache_get(void);
1274 * Set the configured edje collections (groups) cache size
1276 * This sets the globally configured edje collections cache size, in
1277 * number of collections.
1279 * @param size The edje collections cache size
1282 EAPI void elm_edje_collection_cache_set(int size);
1285 * Set the configured edje collections (groups) cache size for all
1286 * applications on the display
1288 * This sets the globally configured edje collections cache size -- in
1289 * number of collections -- for all applications on the display.
1291 * @param size The edje collections cache size
1294 EAPI void elm_edje_collection_cache_all_set(int size);
1301 * @defgroup Scaling Widget Scaling
1303 * Different widgets can be scaled independently. These functions
1304 * allow you to manipulate this scaling on a per-widget basis. The
1305 * object and all its children get their scaling factors multiplied
1306 * by the scale factor set. This is multiplicative, in that if a
1307 * child also has a scale size set it is in turn multiplied by its
1308 * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
1309 * double size, @c 0.5 is half, etc.
1311 * @ref general_functions_example_page "This" example contemplates
1312 * some of these functions.
1316 * Get the global scaling factor
1318 * This gets the globally configured scaling factor that is applied to all
1321 * @return The scaling factor
1324 EAPI double elm_scale_get(void);
1327 * Set the global scaling factor
1329 * This sets the globally configured scaling factor that is applied to all
1332 * @param scale The scaling factor to set
1335 EAPI void elm_scale_set(double scale);
1338 * Set the global scaling factor for all applications on the display
1340 * This sets the globally configured scaling factor that is applied to all
1341 * objects for all applications.
1342 * @param scale The scaling factor to set
1345 EAPI void elm_scale_all_set(double scale);
1348 * Set the scaling factor for a given Elementary object
1350 * @param obj The Elementary to operate on
1351 * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1356 EAPI void elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1359 * Get the scaling factor for a given Elementary object
1361 * @param obj The object
1362 * @return The scaling factor set by elm_object_scale_set()
1366 EAPI double elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1369 * @defgroup UI-Mirroring Selective Widget mirroring
1371 * These functions allow you to set ui-mirroring on specific
1372 * widgets or the whole interface. Widgets can be in one of two
1373 * modes, automatic and manual. Automatic means they'll be changed
1374 * according to the system mirroring mode and manual means only
1375 * explicit changes will matter. You are not supposed to change
1376 * mirroring state of a widget set to automatic, will mostly work,
1377 * but the behavior is not really defined.
1382 EAPI Eina_Bool elm_mirrored_get(void);
1383 EAPI void elm_mirrored_set(Eina_Bool mirrored);
1386 * Get the system mirrored mode. This determines the default mirrored mode
1389 * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1391 EAPI Eina_Bool elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1394 * Set the system mirrored mode. This determines the default mirrored mode
1397 * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1399 EAPI void elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1402 * Returns the widget's mirrored mode setting.
1404 * @param obj The widget.
1405 * @return mirrored mode setting of the object.
1408 EAPI Eina_Bool elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1411 * Sets the widget's mirrored mode setting.
1412 * When widget in automatic mode, it follows the system mirrored mode set by
1413 * elm_mirrored_set().
1414 * @param obj The widget.
1415 * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1417 EAPI void elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1424 * Set the style to use by a widget
1426 * Sets the style name that will define the appearance of a widget. Styles
1427 * vary from widget to widget and may also be defined by other themes
1428 * by means of extensions and overlays.
1430 * @param obj The Elementary widget to style
1431 * @param style The style name to use
1433 * @see elm_theme_extension_add()
1434 * @see elm_theme_extension_del()
1435 * @see elm_theme_overlay_add()
1436 * @see elm_theme_overlay_del()
1440 EAPI void elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1442 * Get the style used by the widget
1444 * This gets the style being used for that widget. Note that the string
1445 * pointer is only valid as longas the object is valid and the style doesn't
1448 * @param obj The Elementary widget to query for its style
1449 * @return The style name used
1451 * @see elm_object_style_set()
1455 EAPI const char *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1458 * @defgroup Styles Styles
1460 * Widgets can have different styles of look. These generic API's
1461 * set styles of widgets, if they support them (and if the theme(s)
1464 * @ref general_functions_example_page "This" example contemplates
1465 * some of these functions.
1469 * Set the disabled state of an Elementary object.
1471 * @param obj The Elementary object to operate on
1472 * @param disabled The state to put in in: @c EINA_TRUE for
1473 * disabled, @c EINA_FALSE for enabled
1475 * Elementary objects can be @b disabled, in which state they won't
1476 * receive input and, in general, will be themed differently from
1477 * their normal state, usually greyed out. Useful for contexts
1478 * where you don't want your users to interact with some of the
1479 * parts of you interface.
1481 * This sets the state for the widget, either disabling it or
1486 EAPI void elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1489 * Get the disabled state of an Elementary object.
1491 * @param obj The Elementary object to operate on
1492 * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1493 * if it's enabled (or on errors)
1495 * This gets the state of the widget, which might be enabled or disabled.
1499 EAPI Eina_Bool elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1502 * @defgroup WidgetNavigation Widget Tree Navigation.
1504 * How to check if an Evas Object is an Elementary widget? How to
1505 * get the first elementary widget that is parent of the given
1506 * object? These are all covered in widget tree navigation.
1508 * @ref general_functions_example_page "This" example contemplates
1509 * some of these functions.
1513 * Check if the given Evas Object is an Elementary widget.
1515 * @param obj the object to query.
1516 * @return @c EINA_TRUE if it is an elementary widget variant,
1517 * @c EINA_FALSE otherwise
1518 * @ingroup WidgetNavigation
1520 EAPI Eina_Bool elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1523 * Get the first parent of the given object that is an Elementary
1526 * @param obj the Elementary object to query parent from.
1527 * @return the parent object that is an Elementary widget, or @c
1528 * NULL, if it was not found.
1530 * Use this to query for an object's parent widget.
1532 * @note Most of Elementary users wouldn't be mixing non-Elementary
1533 * smart objects in the objects tree of an application, as this is
1534 * an advanced usage of Elementary with Evas. So, except for the
1535 * application's window, which is the root of that tree, all other
1536 * objects would have valid Elementary widget parents.
1538 * @ingroup WidgetNavigation
1540 EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1543 * Get the top level parent of an Elementary widget.
1545 * @param obj The object to query.
1546 * @return The top level Elementary widget, or @c NULL if parent cannot be
1548 * @ingroup WidgetNavigation
1550 EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1553 * Get the string that represents this Elementary widget.
1555 * @note Elementary is weird and exposes itself as a single
1556 * Evas_Object_Smart_Class of type "elm_widget", so
1557 * evas_object_type_get() always return that, making debug and
1558 * language bindings hard. This function tries to mitigate this
1559 * problem, but the solution is to change Elementary to use
1560 * proper inheritance.
1562 * @param obj the object to query.
1563 * @return Elementary widget name, or @c NULL if not a valid widget.
1564 * @ingroup WidgetNavigation
1566 EAPI const char *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1569 * @defgroup Config Elementary Config
1571 * Elementary configuration is formed by a set options bounded to a
1572 * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1573 * "finger size", etc. These are functions with which one syncronizes
1574 * changes made to those values to the configuration storing files, de
1575 * facto. You most probably don't want to use the functions in this
1576 * group unlees you're writing an elementary configuration manager.
1582 * Save back Elementary's configuration, so that it will persist on
1585 * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1588 * This function will take effect -- thus, do I/O -- immediately. Use
1589 * it when you want to apply all configuration changes at once. The
1590 * current configuration set will get saved onto the current profile
1591 * configuration file.
1594 EAPI Eina_Bool elm_config_save(void);
1597 * Reload Elementary's configuration, bounded to current selected
1600 * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1603 * Useful when you want to force reloading of configuration values for
1604 * a profile. If one removes user custom configuration directories,
1605 * for example, it will force a reload with system values insted.
1608 EAPI void elm_config_reload(void);
1615 * @defgroup Profile Elementary Profile
1617 * Profiles are pre-set options that affect the whole look-and-feel of
1618 * Elementary-based applications. There are, for example, profiles
1619 * aimed at desktop computer applications and others aimed at mobile,
1620 * touchscreen-based ones. You most probably don't want to use the
1621 * functions in this group unlees you're writing an elementary
1622 * configuration manager.
1628 * Get Elementary's profile in use.
1630 * This gets the global profile that is applied to all Elementary
1633 * @return The profile's name
1636 EAPI const char *elm_profile_current_get(void);
1639 * Get an Elementary's profile directory path in the filesystem. One
1640 * may want to fetch a system profile's dir or an user one (fetched
1643 * @param profile The profile's name
1644 * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
1645 * or a system one (@c EINA_FALSE)
1646 * @return The profile's directory path.
1649 * @note You must free it with elm_profile_dir_free().
1651 EAPI const char *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1654 * Free an Elementary's profile directory path, as returned by
1655 * elm_profile_dir_get().
1657 * @param p_dir The profile's path
1661 EAPI void elm_profile_dir_free(const char *p_dir);
1664 * Get Elementary's list of available profiles.
1666 * @return The profiles list. List node data are the profile name
1670 * @note One must free this list, after usage, with the function
1671 * elm_profile_list_free().
1673 EAPI Eina_List *elm_profile_list_get(void);
1676 * Free Elementary's list of available profiles.
1678 * @param l The profiles list, as returned by elm_profile_list_get().
1682 EAPI void elm_profile_list_free(Eina_List *l);
1685 * Set Elementary's profile.
1687 * This sets the global profile that is applied to Elementary
1688 * applications. Just the process the call comes from will be
1691 * @param profile The profile's name
1695 EAPI void elm_profile_set(const char *profile);
1698 * Set Elementary's profile.
1700 * This sets the global profile that is applied to all Elementary
1701 * applications. All running Elementary windows will be affected.
1703 * @param profile The profile's name
1707 EAPI void elm_profile_all_set(const char *profile);
1714 * @defgroup Engine Elementary Engine
1716 * These are functions setting and querying which rendering engine
1717 * Elementary will use for drawing its windows' pixels.
1719 * The following are the available engines:
1720 * @li "software_x11"
1723 * @li "software_16_x11"
1724 * @li "software_8_x11"
1727 * @li "software_gdi"
1728 * @li "software_16_wince_gdi"
1730 * @li "software_16_sdl"
1738 * @brief Get Elementary's rendering engine in use.
1740 * @return The rendering engine's name
1741 * @note there's no need to free the returned string, here.
1743 * This gets the global rendering engine that is applied to all Elementary
1746 * @see elm_engine_set()
1748 EAPI const char *elm_engine_current_get(void);
1751 * @brief Set Elementary's rendering engine for use.
1753 * @param engine The rendering engine's name
1755 * This sets global rendering engine that is applied to all Elementary
1756 * applications. Note that it will take effect only to Elementary windows
1757 * created after this is called.
1759 * @see elm_win_add()
1761 EAPI void elm_engine_set(const char *engine);
1768 * @defgroup Fonts Elementary Fonts
1770 * These are functions dealing with font rendering, selection and the
1771 * like for Elementary applications. One might fetch which system
1772 * fonts are there to use and set custom fonts for individual classes
1773 * of UI items containing text (text classes).
1778 typedef struct _Elm_Text_Class
1784 typedef struct _Elm_Font_Overlay
1786 const char *text_class;
1788 Evas_Font_Size size;
1791 typedef struct _Elm_Font_Properties
1795 } Elm_Font_Properties;
1798 * Get Elementary's list of supported text classes.
1800 * @return The text classes list, with @c Elm_Text_Class blobs as data.
1803 * Release the list with elm_text_classes_list_free().
1805 EAPI const Eina_List *elm_text_classes_list_get(void);
1808 * Free Elementary's list of supported text classes.
1812 * @see elm_text_classes_list_get().
1814 EAPI void elm_text_classes_list_free(const Eina_List *list);
1817 * Get Elementary's list of font overlays, set with
1818 * elm_font_overlay_set().
1820 * @return The font overlays list, with @c Elm_Font_Overlay blobs as
1825 * For each text class, one can set a <b>font overlay</b> for it,
1826 * overriding the default font properties for that class coming from
1827 * the theme in use. There is no need to free this list.
1829 * @see elm_font_overlay_set() and elm_font_overlay_unset().
1831 EAPI const Eina_List *elm_font_overlay_list_get(void);
1834 * Set a font overlay for a given Elementary text class.
1836 * @param text_class Text class name
1837 * @param font Font name and style string
1838 * @param size Font size
1842 * @p font has to be in the format returned by
1843 * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
1844 * and elm_font_overlay_unset().
1846 EAPI void elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1849 * Unset a font overlay for a given Elementary text class.
1851 * @param text_class Text class name
1855 * This will bring back text elements belonging to text class
1856 * @p text_class back to their default font settings.
1858 EAPI void elm_font_overlay_unset(const char *text_class);
1861 * Apply the changes made with elm_font_overlay_set() and
1862 * elm_font_overlay_unset() on the current Elementary window.
1866 * This applies all font overlays set to all objects in the UI.
1868 EAPI void elm_font_overlay_apply(void);
1871 * Apply the changes made with elm_font_overlay_set() and
1872 * elm_font_overlay_unset() on all Elementary application windows.
1876 * This applies all font overlays set to all objects in the UI.
1878 EAPI void elm_font_overlay_all_apply(void);
1881 * Translate a font (family) name string in fontconfig's font names
1882 * syntax into an @c Elm_Font_Properties struct.
1884 * @param font The font name and styles string
1885 * @return the font properties struct
1889 * @note The reverse translation can be achived with
1890 * elm_font_fontconfig_name_get(), for one style only (single font
1891 * instance, not family).
1893 EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
1896 * Free font properties return by elm_font_properties_get().
1898 * @param efp the font properties struct
1902 EAPI void elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
1905 * Translate a font name, bound to a style, into fontconfig's font names
1908 * @param name The font (family) name
1909 * @param style The given style (may be @c NULL)
1911 * @return the font name and style string
1915 * @note The reverse translation can be achived with
1916 * elm_font_properties_get(), for one style only (single font
1917 * instance, not family).
1919 EAPI const char *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
1922 * Free the font string return by elm_font_fontconfig_name_get().
1924 * @param efp the font properties struct
1928 EAPI void elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
1931 * Create a font hash table of available system fonts.
1933 * One must call it with @p list being the return value of
1934 * evas_font_available_list(). The hash will be indexed by font
1935 * (family) names, being its values @c Elm_Font_Properties blobs.
1937 * @param list The list of available system fonts, as returned by
1938 * evas_font_available_list().
1939 * @return the font hash.
1943 * @note The user is supposed to get it populated at least with 3
1944 * default font families (Sans, Serif, Monospace), which should be
1945 * present on most systems.
1947 EAPI Eina_Hash *elm_font_available_hash_add(Eina_List *list);
1950 * Free the hash return by elm_font_available_hash_add().
1952 * @param hash the hash to be freed.
1956 EAPI void elm_font_available_hash_del(Eina_Hash *hash);
1963 * @defgroup Fingers Fingers
1965 * Elementary is designed to be finger-friendly for touchscreens,
1966 * and so in addition to scaling for display resolution, it can
1967 * also scale based on finger "resolution" (or size). You can then
1968 * customize the granularity of the areas meant to receive clicks
1971 * Different profiles may have pre-set values for finger sizes.
1973 * @ref general_functions_example_page "This" example contemplates
1974 * some of these functions.
1980 * Get the configured "finger size"
1982 * @return The finger size
1984 * This gets the globally configured finger size, <b>in pixels</b>
1988 EAPI Evas_Coord elm_finger_size_get(void);
1991 * Set the configured finger size
1993 * This sets the globally configured finger size in pixels
1995 * @param size The finger size
1998 EAPI void elm_finger_size_set(Evas_Coord size);
2001 * Set the configured finger size for all applications on the display
2003 * This sets the globally configured finger size in pixels for all
2004 * applications on the display
2006 * @param size The finger size
2009 EAPI void elm_finger_size_all_set(Evas_Coord size);
2016 * @defgroup Focus Focus
2018 * An Elementary application has, at all times, one (and only one)
2019 * @b focused object. This is what determines where the input
2020 * events go to within the application's window. Also, focused
2021 * objects can be decorated differently, in order to signal to the
2022 * user where the input is, at a given moment.
2024 * Elementary applications also have the concept of <b>focus
2025 * chain</b>: one can cycle through all the windows' focusable
2026 * objects by input (tab key) or programmatically. The default
2027 * focus chain for an application is the one define by the order in
2028 * which the widgets where added in code. One will cycle through
2029 * top level widgets, and, for each one containg sub-objects, cycle
2030 * through them all, before returning to the level
2031 * above. Elementary also allows one to set @b custom focus chains
2032 * for their applications.
2034 * Besides the focused decoration a widget may exhibit, when it
2035 * gets focus, Elementary has a @b global focus highlight object
2036 * that can be enabled for a window. If one chooses to do so, this
2037 * extra highlight effect will surround the current focused object,
2040 * @note Some Elementary widgets are @b unfocusable, after
2041 * creation, by their very nature: they are not meant to be
2042 * interacted with input events, but are there just for visual
2045 * @ref general_functions_example_page "This" example contemplates
2046 * some of these functions.
2050 * Get the enable status of the focus highlight
2052 * This gets whether the highlight on focused objects is enabled or not
2055 EAPI Eina_Bool elm_focus_highlight_enabled_get(void);
2058 * Set the enable status of the focus highlight
2060 * Set whether to show or not the highlight on focused objects
2061 * @param enable Enable highlight if EINA_TRUE, disable otherwise
2064 EAPI void elm_focus_highlight_enabled_set(Eina_Bool enable);
2067 * Get the enable status of the highlight animation
2069 * Get whether the focus highlight, if enabled, will animate its switch from
2070 * one object to the next
2073 EAPI Eina_Bool elm_focus_highlight_animate_get(void);
2076 * Set the enable status of the highlight animation
2078 * Set whether the focus highlight, if enabled, will animate its switch from
2079 * one object to the next
2080 * @param animate Enable animation if EINA_TRUE, disable otherwise
2083 EAPI void elm_focus_highlight_animate_set(Eina_Bool animate);
2086 * Get the whether an Elementary object has the focus or not.
2088 * @param obj The Elementary object to get the information from
2089 * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2090 * not (and on errors).
2092 * @see elm_object_focus_set()
2096 EAPI Eina_Bool elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2099 * Set/unset focus to a given Elementary object.
2101 * @param obj The Elementary object to operate on.
2102 * @param enable @c EINA_TRUE Set focus to a given object,
2103 * @c EINA_FALSE Unset focus to a given object.
2105 * @note When you set focus to this object, if it can handle focus, will
2106 * take the focus away from the one who had it previously and will, for
2107 * now on, be the one receiving input events. Unsetting focus will remove
2108 * the focus from @p obj, passing it back to the previous element in the
2111 * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2115 EAPI void elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2118 * Make a given Elementary object the focused one.
2120 * @param obj The Elementary object to make focused.
2122 * @note This object, if it can handle focus, will take the focus
2123 * away from the one who had it previously and will, for now on, be
2124 * the one receiving input events.
2126 * @see elm_object_focus_get()
2127 * @deprecated use elm_object_focus_set() instead.
2131 EINA_DEPRECATED EAPI void elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2134 * Remove the focus from an Elementary object
2136 * @param obj The Elementary to take focus from
2138 * This removes the focus from @p obj, passing it back to the
2139 * previous element in the focus chain list.
2141 * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2142 * @deprecated use elm_object_focus_set() instead.
2146 EINA_DEPRECATED EAPI void elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2149 * Set the ability for an Element object to be focused
2151 * @param obj The Elementary object to operate on
2152 * @param enable @c EINA_TRUE if the object can be focused, @c
2153 * EINA_FALSE if not (and on errors)
2155 * This sets whether the object @p obj is able to take focus or
2156 * not. Unfocusable objects do nothing when programmatically
2157 * focused, being the nearest focusable parent object the one
2158 * really getting focus. Also, when they receive mouse input, they
2159 * will get the event, but not take away the focus from where it
2164 EAPI void elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2167 * Get whether an Elementary object is focusable or not
2169 * @param obj The Elementary object to operate on
2170 * @return @c EINA_TRUE if the object is allowed to be focused, @c
2171 * EINA_FALSE if not (and on errors)
2173 * @note Objects which are meant to be interacted with by input
2174 * events are created able to be focused, by default. All the
2179 EAPI Eina_Bool elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2182 * Set custom focus chain.
2184 * This function overwrites any previous custom focus chain within
2185 * the list of objects. The previous list will be deleted and this list
2186 * will be managed by elementary. After it is set, don't modify it.
2188 * @note On focus cycle, only will be evaluated children of this container.
2190 * @param obj The container object
2191 * @param objs Chain of objects to pass focus
2194 EAPI void elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2197 * Unset custom focus chain
2199 * @param obj The container object
2202 EAPI void elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2205 * Get custom focus chain
2207 * @param obj The container object
2210 EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2213 * Append object to custom focus chain.
2215 * @note If relative_child equal to NULL or not in custom chain, the object
2216 * will be added in end.
2218 * @note On focus cycle, only will be evaluated children of this container.
2220 * @param obj The container object
2221 * @param child The child to be added in custom chain
2222 * @param relative_child The relative object to position the child
2225 EAPI void elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2228 * Prepend object to custom focus chain.
2230 * @note If relative_child equal to NULL or not in custom chain, the object
2231 * will be added in begin.
2233 * @note On focus cycle, only will be evaluated children of this container.
2235 * @param obj The container object
2236 * @param child The child to be added in custom chain
2237 * @param relative_child The relative object to position the child
2240 EAPI void elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2243 * Give focus to next object in object tree.
2245 * Give focus to next object in focus chain of one object sub-tree.
2246 * If the last object of chain already have focus, the focus will go to the
2247 * first object of chain.
2249 * @param obj The object root of sub-tree
2250 * @param dir Direction to cycle the focus
2254 EAPI void elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2257 * Give focus to near object in one direction.
2259 * Give focus to near object in direction of one object.
2260 * If none focusable object in given direction, the focus will not change.
2262 * @param obj The reference object
2263 * @param x Horizontal component of direction to focus
2264 * @param y Vertical component of direction to focus
2268 EAPI void elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2271 * Make the elementary object and its children to be unfocusable
2274 * @param obj The Elementary object to operate on
2275 * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2276 * @c EINA_FALSE for focusable.
2278 * This sets whether the object @p obj and its children objects
2279 * are able to take focus or not. If the tree is set as unfocusable,
2280 * newest focused object which is not in this tree will get focus.
2281 * This API can be helpful for an object to be deleted.
2282 * When an object will be deleted soon, it and its children may not
2283 * want to get focus (by focus reverting or by other focus controls).
2284 * Then, just use this API before deleting.
2286 * @see elm_object_tree_unfocusable_get()
2290 EAPI void elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
2293 * Get whether an Elementary object and its children are unfocusable or not.
2295 * @param obj The Elementary object to get the information from
2296 * @return @c EINA_TRUE, if the tree is unfocussable,
2297 * @c EINA_FALSE if not (and on errors).
2299 * @see elm_object_tree_unfocusable_set()
2303 EAPI Eina_Bool elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
2306 * @defgroup Scrolling Scrolling
2308 * These are functions setting how scrollable views in Elementary
2309 * widgets should behave on user interaction.
2315 * Get whether scrollers should bounce when they reach their
2316 * viewport's edge during a scroll.
2318 * @return the thumb scroll bouncing state
2320 * This is the default behavior for touch screens, in general.
2321 * @ingroup Scrolling
2323 EAPI Eina_Bool elm_scroll_bounce_enabled_get(void);
2326 * Set whether scrollers should bounce when they reach their
2327 * viewport's edge during a scroll.
2329 * @param enabled the thumb scroll bouncing state
2331 * @see elm_thumbscroll_bounce_enabled_get()
2332 * @ingroup Scrolling
2334 EAPI void elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2337 * Set whether scrollers should bounce when they reach their
2338 * viewport's edge during a scroll, for all Elementary application
2341 * @param enabled the thumb scroll bouncing state
2343 * @see elm_thumbscroll_bounce_enabled_get()
2344 * @ingroup Scrolling
2346 EAPI void elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2349 * Get the amount of inertia a scroller will impose at bounce
2352 * @return the thumb scroll bounce friction
2354 * @ingroup Scrolling
2356 EAPI double elm_scroll_bounce_friction_get(void);
2359 * Set the amount of inertia a scroller will impose at bounce
2362 * @param friction the thumb scroll bounce friction
2364 * @see elm_thumbscroll_bounce_friction_get()
2365 * @ingroup Scrolling
2367 EAPI void elm_scroll_bounce_friction_set(double friction);
2370 * Set the amount of inertia a scroller will impose at bounce
2371 * animations, for all Elementary application windows.
2373 * @param friction the thumb scroll bounce friction
2375 * @see elm_thumbscroll_bounce_friction_get()
2376 * @ingroup Scrolling
2378 EAPI void elm_scroll_bounce_friction_all_set(double friction);
2381 * Get the amount of inertia a <b>paged</b> scroller will impose at
2382 * page fitting animations.
2384 * @return the page scroll friction
2386 * @ingroup Scrolling
2388 EAPI double elm_scroll_page_scroll_friction_get(void);
2391 * Set the amount of inertia a <b>paged</b> scroller will impose at
2392 * page fitting animations.
2394 * @param friction the page scroll friction
2396 * @see elm_thumbscroll_page_scroll_friction_get()
2397 * @ingroup Scrolling
2399 EAPI void elm_scroll_page_scroll_friction_set(double friction);
2402 * Set the amount of inertia a <b>paged</b> scroller will impose at
2403 * page fitting animations, for all Elementary application windows.
2405 * @param friction the page scroll friction
2407 * @see elm_thumbscroll_page_scroll_friction_get()
2408 * @ingroup Scrolling
2410 EAPI void elm_scroll_page_scroll_friction_all_set(double friction);
2413 * Get the amount of inertia a scroller will impose at region bring
2416 * @return the bring in scroll friction
2418 * @ingroup Scrolling
2420 EAPI double elm_scroll_bring_in_scroll_friction_get(void);
2423 * Set the amount of inertia a scroller will impose at region bring
2426 * @param friction the bring in scroll friction
2428 * @see elm_thumbscroll_bring_in_scroll_friction_get()
2429 * @ingroup Scrolling
2431 EAPI void elm_scroll_bring_in_scroll_friction_set(double friction);
2434 * Set the amount of inertia a scroller will impose at region bring
2435 * animations, for all Elementary application windows.
2437 * @param friction the bring in scroll friction
2439 * @see elm_thumbscroll_bring_in_scroll_friction_get()
2440 * @ingroup Scrolling
2442 EAPI void elm_scroll_bring_in_scroll_friction_all_set(double friction);
2445 * Get the amount of inertia scrollers will impose at animations
2446 * triggered by Elementary widgets' zooming API.
2448 * @return the zoom friction
2450 * @ingroup Scrolling
2452 EAPI double elm_scroll_zoom_friction_get(void);
2455 * Set the amount of inertia scrollers will impose at animations
2456 * triggered by Elementary widgets' zooming API.
2458 * @param friction the zoom friction
2460 * @see elm_thumbscroll_zoom_friction_get()
2461 * @ingroup Scrolling
2463 EAPI void elm_scroll_zoom_friction_set(double friction);
2466 * Set the amount of inertia scrollers will impose at animations
2467 * triggered by Elementary widgets' zooming API, for all Elementary
2468 * application windows.
2470 * @param friction the zoom friction
2472 * @see elm_thumbscroll_zoom_friction_get()
2473 * @ingroup Scrolling
2475 EAPI void elm_scroll_zoom_friction_all_set(double friction);
2478 * Get whether scrollers should be draggable from any point in their
2481 * @return the thumb scroll state
2483 * @note This is the default behavior for touch screens, in general.
2484 * @note All other functions namespaced with "thumbscroll" will only
2485 * have effect if this mode is enabled.
2487 * @ingroup Scrolling
2489 EAPI Eina_Bool elm_scroll_thumbscroll_enabled_get(void);
2492 * Set whether scrollers should be draggable from any point in their
2495 * @param enabled the thumb scroll state
2497 * @see elm_thumbscroll_enabled_get()
2498 * @ingroup Scrolling
2500 EAPI void elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2503 * Set whether scrollers should be draggable from any point in their
2504 * views, for all Elementary application windows.
2506 * @param enabled the thumb scroll state
2508 * @see elm_thumbscroll_enabled_get()
2509 * @ingroup Scrolling
2511 EAPI void elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2514 * Get the number of pixels one should travel while dragging a
2515 * scroller's view to actually trigger scrolling.
2517 * @return the thumb scroll threshould
2519 * One would use higher values for touch screens, in general, because
2520 * of their inherent imprecision.
2521 * @ingroup Scrolling
2523 EAPI unsigned int elm_scroll_thumbscroll_threshold_get(void);
2526 * Set the number of pixels one should travel while dragging a
2527 * scroller's view to actually trigger scrolling.
2529 * @param threshold the thumb scroll threshould
2531 * @see elm_thumbscroll_threshould_get()
2532 * @ingroup Scrolling
2534 EAPI void elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2537 * Set the number of pixels one should travel while dragging a
2538 * scroller's view to actually trigger scrolling, for all Elementary
2539 * application windows.
2541 * @param threshold the thumb scroll threshould
2543 * @see elm_thumbscroll_threshould_get()
2544 * @ingroup Scrolling
2546 EAPI void elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2549 * Get the minimum speed of mouse cursor movement which will trigger
2550 * list self scrolling animation after a mouse up event
2553 * @return the thumb scroll momentum threshould
2555 * @ingroup Scrolling
2557 EAPI double elm_scroll_thumbscroll_momentum_threshold_get(void);
2560 * Set the minimum speed of mouse cursor movement which will trigger
2561 * list self scrolling animation after a mouse up event
2564 * @param threshold the thumb scroll momentum threshould
2566 * @see elm_thumbscroll_momentum_threshould_get()
2567 * @ingroup Scrolling
2569 EAPI void elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2572 * Set the minimum speed of mouse cursor movement which will trigger
2573 * list self scrolling animation after a mouse up event
2574 * (pixels/second), for all Elementary application windows.
2576 * @param threshold the thumb scroll momentum threshould
2578 * @see elm_thumbscroll_momentum_threshould_get()
2579 * @ingroup Scrolling
2581 EAPI void elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2584 * Get the amount of inertia a scroller will impose at self scrolling
2587 * @return the thumb scroll friction
2589 * @ingroup Scrolling
2591 EAPI double elm_scroll_thumbscroll_friction_get(void);
2594 * Set the amount of inertia a scroller will impose at self scrolling
2597 * @param friction the thumb scroll friction
2599 * @see elm_thumbscroll_friction_get()
2600 * @ingroup Scrolling
2602 EAPI void elm_scroll_thumbscroll_friction_set(double friction);
2605 * Set the amount of inertia a scroller will impose at self scrolling
2606 * animations, for all Elementary application windows.
2608 * @param friction the thumb scroll friction
2610 * @see elm_thumbscroll_friction_get()
2611 * @ingroup Scrolling
2613 EAPI void elm_scroll_thumbscroll_friction_all_set(double friction);
2616 * Get the amount of lag between your actual mouse cursor dragging
2617 * movement and a scroller's view movement itself, while pushing it
2618 * into bounce state manually.
2620 * @return the thumb scroll border friction
2622 * @ingroup Scrolling
2624 EAPI double elm_scroll_thumbscroll_border_friction_get(void);
2627 * Set the amount of lag between your actual mouse cursor dragging
2628 * movement and a scroller's view movement itself, while pushing it
2629 * into bounce state manually.
2631 * @param friction the thumb scroll border friction. @c 0.0 for
2632 * perfect synchrony between two movements, @c 1.0 for maximum
2635 * @see elm_thumbscroll_border_friction_get()
2636 * @note parameter value will get bound to 0.0 - 1.0 interval, always
2638 * @ingroup Scrolling
2640 EAPI void elm_scroll_thumbscroll_border_friction_set(double friction);
2643 * Set the amount of lag between your actual mouse cursor dragging
2644 * movement and a scroller's view movement itself, while pushing it
2645 * into bounce state manually, for all Elementary application windows.
2647 * @param friction the thumb scroll border friction. @c 0.0 for
2648 * perfect synchrony between two movements, @c 1.0 for maximum
2651 * @see elm_thumbscroll_border_friction_get()
2652 * @note parameter value will get bound to 0.0 - 1.0 interval, always
2654 * @ingroup Scrolling
2656 EAPI void elm_scroll_thumbscroll_border_friction_all_set(double friction);
2663 * @defgroup Scrollhints Scrollhints
2665 * Objects when inside a scroller can scroll, but this may not always be
2666 * desirable in certain situations. This allows an object to hint to itself
2667 * and parents to "not scroll" in one of 2 ways. If any chilkd object of a
2668 * scroller has pushed a scroll freeze or hold then it affects all parent
2669 * scrollers until all children have released them.
2671 * 1. To hold on scrolling. This means just flicking and dragging may no
2672 * longer scroll, but pressing/dragging near an edge of the scroller will
2673 * still scroll. This is automatically used by the entry object when
2676 * 2. To totally freeze scrolling. This means it stops. until
2683 * Push the scroll hold by 1
2685 * This increments the scroll hold count by one. If it is more than 0 it will
2686 * take effect on the parents of the indicated object.
2688 * @param obj The object
2689 * @ingroup Scrollhints
2691 EAPI void elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2694 * Pop the scroll hold by 1
2696 * This decrements the scroll hold count by one. If it is more than 0 it will
2697 * take effect on the parents of the indicated object.
2699 * @param obj The object
2700 * @ingroup Scrollhints
2702 EAPI void elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2705 * Push the scroll freeze by 1
2707 * This increments the scroll freeze count by one. If it is more
2708 * than 0 it will take effect on the parents of the indicated
2711 * @param obj The object
2712 * @ingroup Scrollhints
2714 EAPI void elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2717 * Pop the scroll freeze by 1
2719 * This decrements the scroll freeze count by one. If it is more
2720 * than 0 it will take effect on the parents of the indicated
2723 * @param obj The object
2724 * @ingroup Scrollhints
2726 EAPI void elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2729 * Lock the scrolling of the given widget (and thus all parents)
2731 * This locks the given object from scrolling in the X axis (and implicitly
2732 * also locks all parent scrollers too from doing the same).
2734 * @param obj The object
2735 * @param lock The lock state (1 == locked, 0 == unlocked)
2736 * @ingroup Scrollhints
2738 EAPI void elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2741 * Lock the scrolling of the given widget (and thus all parents)
2743 * This locks the given object from scrolling in the Y axis (and implicitly
2744 * also locks all parent scrollers too from doing the same).
2746 * @param obj The object
2747 * @param lock The lock state (1 == locked, 0 == unlocked)
2748 * @ingroup Scrollhints
2750 EAPI void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2753 * Get the scrolling lock of the given widget
2755 * This gets the lock for X axis scrolling.
2757 * @param obj The object
2758 * @ingroup Scrollhints
2760 EAPI Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2763 * Get the scrolling lock of the given widget
2765 * This gets the lock for X axis scrolling.
2767 * @param obj The object
2768 * @ingroup Scrollhints
2770 EAPI Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2777 * Send a signal to the widget edje object.
2779 * This function sends a signal to the edje object of the obj. An
2780 * edje program can respond to a signal by specifying matching
2781 * 'signal' and 'source' fields.
2783 * @param obj The object
2784 * @param emission The signal's name.
2785 * @param source The signal's source.
2788 EAPI void elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
2791 * Add a callback for a signal emitted by widget edje object.
2793 * This function connects a callback function to a signal emitted by the
2794 * edje object of the obj.
2795 * Globs can occur in either the emission or source name.
2797 * @param obj The object
2798 * @param emission The signal's name.
2799 * @param source The signal's source.
2800 * @param func The callback function to be executed when the signal is
2802 * @param data A pointer to data to pass in to the callback function.
2805 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);
2808 * Remove a signal-triggered callback from an widget edje object.
2810 * This function removes a callback, previoulsy attached to a
2811 * signal emitted by the edje object of the obj. The parameters
2812 * emission, source and func must match exactly those passed to a
2813 * previous call to elm_object_signal_callback_add(). The data
2814 * pointer that was passed to this call will be returned.
2816 * @param obj The object
2817 * @param emission The signal's name.
2818 * @param source The signal's source.
2819 * @param func The callback function to be executed when the signal is
2821 * @return The data pointer
2824 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);
2827 * Add a callback for a event emitted by widget or their children.
2829 * This function connects a callback function to any key_down key_up event
2830 * emitted by the @p obj or their children.
2831 * This only will be called if no other callback has consumed the event.
2832 * If you want consume the event, and no other get it, func should return
2833 * EINA_TRUE and put EVAS_EVENT_FLAG_ON_HOLD in event_flags.
2835 * @warning Accept duplicated callback addition.
2837 * @param obj The object
2838 * @param func The callback function to be executed when the event is
2840 * @param data Data to pass in to the callback function.
2843 EAPI void elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
2846 * Remove a event callback from an widget.
2848 * This function removes a callback, previoulsy attached to event emission
2850 * The parameters func and data must match exactly those passed to
2851 * a previous call to elm_object_event_callback_add(). The data pointer that
2852 * was passed to this call will be returned.
2854 * @param obj The object
2855 * @param func The callback function to be executed when the event is
2857 * @param data Data to pass in to the callback function.
2858 * @return The data pointer
2861 EAPI void *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
2864 * Adjust size of an element for finger usage.
2866 * @param times_w How many fingers should fit horizontally
2867 * @param w Pointer to the width size to adjust
2868 * @param times_h How many fingers should fit vertically
2869 * @param h Pointer to the height size to adjust
2871 * This takes width and height sizes (in pixels) as input and a
2872 * size multiple (which is how many fingers you want to place
2873 * within the area, being "finger" the size set by
2874 * elm_finger_size_set()), and adjusts the size to be large enough
2875 * to accommodate the resulting size -- if it doesn't already
2876 * accommodate it. On return the @p w and @p h sizes pointed to by
2877 * these parameters will be modified, on those conditions.
2879 * @note This is kind of a low level Elementary call, most useful
2880 * on size evaluation times for widgets. An external user wouldn't
2881 * be calling, most of the time.
2885 EAPI void elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
2888 * Get the duration for occuring long press event.
2890 * @return Timeout for long press event
2891 * @ingroup Longpress
2893 EAPI double elm_longpress_timeout_get(void);
2896 * Set the duration for occuring long press event.
2898 * @param lonpress_timeout Timeout for long press event
2899 * @ingroup Longpress
2901 EAPI void elm_longpress_timeout_set(double longpress_timeout);
2904 * @defgroup Debug Debug
2905 * don't use it unless you are sure
2911 * Print Tree object hierarchy in stdout
2913 * @param obj The root object
2916 EAPI void elm_object_tree_dump(const Evas_Object *top);
2919 * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
2921 * @param obj The root object
2922 * @param file The path of output file
2925 EAPI void elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
2932 * @defgroup Theme Theme
2934 * Elementary uses Edje to theme its widgets, naturally. But for the most
2935 * part this is hidden behind a simpler interface that lets the user set
2936 * extensions and choose the style of widgets in a much easier way.
2938 * Instead of thinking in terms of paths to Edje files and their groups
2939 * each time you want to change the appearance of a widget, Elementary
2940 * works so you can add any theme file with extensions or replace the
2941 * main theme at one point in the application, and then just set the style
2942 * of widgets with elm_object_style_set() and related functions. Elementary
2943 * will then look in its list of themes for a matching group and apply it,
2944 * and when the theme changes midway through the application, all widgets
2945 * will be updated accordingly.
2947 * There are three concepts you need to know to understand how Elementary
2948 * theming works: default theme, extensions and overlays.
2950 * Default theme, obviously enough, is the one that provides the default
2951 * look of all widgets. End users can change the theme used by Elementary
2952 * by setting the @c ELM_THEME environment variable before running an
2953 * application, or globally for all programs using the @c elementary_config
2954 * utility. Applications can change the default theme using elm_theme_set(),
2955 * but this can go against the user wishes, so it's not an adviced practice.
2957 * Ideally, applications should find everything they need in the already
2958 * provided theme, but there may be occasions when that's not enough and
2959 * custom styles are required to correctly express the idea. For this
2960 * cases, Elementary has extensions.
2962 * Extensions allow the application developer to write styles of its own
2963 * to apply to some widgets. This requires knowledge of how each widget
2964 * is themed, as extensions will always replace the entire group used by
2965 * the widget, so important signals and parts need to be there for the
2966 * object to behave properly (see documentation of Edje for details).
2967 * Once the theme for the extension is done, the application needs to add
2968 * it to the list of themes Elementary will look into, using
2969 * elm_theme_extension_add(), and set the style of the desired widgets as
2970 * he would normally with elm_object_style_set().
2972 * Overlays, on the other hand, can replace the look of all widgets by
2973 * overriding the default style. Like extensions, it's up to the application
2974 * developer to write the theme for the widgets it wants, the difference
2975 * being that when looking for the theme, Elementary will check first the
2976 * list of overlays, then the set theme and lastly the list of extensions,
2977 * so with overlays it's possible to replace the default view and every
2978 * widget will be affected. This is very much alike to setting the whole
2979 * theme for the application and will probably clash with the end user
2980 * options, not to mention the risk of ending up with not matching styles
2981 * across the program. Unless there's a very special reason to use them,
2982 * overlays should be avoided for the resons exposed before.
2984 * All these theme lists are handled by ::Elm_Theme instances. Elementary
2985 * keeps one default internally and every function that receives one of
2986 * these can be called with NULL to refer to this default (except for
2987 * elm_theme_free()). It's possible to create a new instance of a
2988 * ::Elm_Theme to set other theme for a specific widget (and all of its
2989 * children), but this is as discouraged, if not even more so, than using
2990 * overlays. Don't use this unless you really know what you are doing.
2992 * But to be less negative about things, you can look at the following
2994 * @li @ref theme_example_01 "Using extensions"
2995 * @li @ref theme_example_02 "Using overlays"
3000 * @typedef Elm_Theme
3002 * Opaque handler for the list of themes Elementary looks for when
3003 * rendering widgets.
3005 * Stay out of this unless you really know what you are doing. For most
3006 * cases, sticking to the default is all a developer needs.
3008 typedef struct _Elm_Theme Elm_Theme;
3011 * Create a new specific theme
3013 * This creates an empty specific theme that only uses the default theme. A
3014 * specific theme has its own private set of extensions and overlays too
3015 * (which are empty by default). Specific themes do not fall back to themes
3016 * of parent objects. They are not intended for this use. Use styles, overlays
3017 * and extensions when needed, but avoid specific themes unless there is no
3018 * other way (example: you want to have a preview of a new theme you are
3019 * selecting in a "theme selector" window. The preview is inside a scroller
3020 * and should display what the theme you selected will look like, but not
3021 * actually apply it yet. The child of the scroller will have a specific
3022 * theme set to show this preview before the user decides to apply it to all
3025 EAPI Elm_Theme *elm_theme_new(void);
3027 * Free a specific theme
3029 * @param th The theme to free
3031 * This frees a theme created with elm_theme_new().
3033 EAPI void elm_theme_free(Elm_Theme *th);
3035 * Copy the theme fom the source to the destination theme
3037 * @param th The source theme to copy from
3038 * @param thdst The destination theme to copy data to
3040 * This makes a one-time static copy of all the theme config, extensions
3041 * and overlays from @p th to @p thdst. If @p th references a theme, then
3042 * @p thdst is also set to reference it, with all the theme settings,
3043 * overlays and extensions that @p th had.
3045 EAPI void elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3047 * Tell the source theme to reference the ref theme
3049 * @param th The theme that will do the referencing
3050 * @param thref The theme that is the reference source
3052 * This clears @p th to be empty and then sets it to refer to @p thref
3053 * so @p th acts as an override to @p thref, but where its overrides
3054 * don't apply, it will fall through to @p thref for configuration.
3056 EAPI void elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3058 * Return the theme referred to
3060 * @param th The theme to get the reference from
3061 * @return The referenced theme handle
3063 * This gets the theme set as the reference theme by elm_theme_ref_set().
3064 * If no theme is set as a reference, NULL is returned.
3066 EAPI Elm_Theme *elm_theme_ref_get(Elm_Theme *th);
3068 * Return the default theme
3070 * @return The default theme handle
3072 * This returns the internal default theme setup handle that all widgets
3073 * use implicitly unless a specific theme is set. This is also often use
3074 * as a shorthand of NULL.
3076 EAPI Elm_Theme *elm_theme_default_get(void);
3078 * Prepends a theme overlay to the list of overlays
3080 * @param th The theme to add to, or if NULL, the default theme
3081 * @param item The Edje file path to be used
3083 * Use this if your application needs to provide some custom overlay theme
3084 * (An Edje file that replaces some default styles of widgets) where adding
3085 * new styles, or changing system theme configuration is not possible. Do
3086 * NOT use this instead of a proper system theme configuration. Use proper
3087 * configuration files, profiles, environment variables etc. to set a theme
3088 * so that the theme can be altered by simple confiugration by a user. Using
3089 * this call to achieve that effect is abusing the API and will create lots
3092 * @see elm_theme_extension_add()
3094 EAPI void elm_theme_overlay_add(Elm_Theme *th, const char *item);
3096 * Delete a theme overlay from the list of overlays
3098 * @param th The theme to delete from, or if NULL, the default theme
3099 * @param item The name of the theme overlay
3101 * @see elm_theme_overlay_add()
3103 EAPI void elm_theme_overlay_del(Elm_Theme *th, const char *item);
3105 * Appends a theme extension to the list of extensions.
3107 * @param th The theme to add to, or if NULL, the default theme
3108 * @param item The Edje file path to be used
3110 * This is intended when an application needs more styles of widgets or new
3111 * widget themes that the default does not provide (or may not provide). The
3112 * application has "extended" usage by coming up with new custom style names
3113 * for widgets for specific uses, but as these are not "standard", they are
3114 * not guaranteed to be provided by a default theme. This means the
3115 * application is required to provide these extra elements itself in specific
3116 * Edje files. This call adds one of those Edje files to the theme search
3117 * path to be search after the default theme. The use of this call is
3118 * encouraged when default styles do not meet the needs of the application.
3119 * Use this call instead of elm_theme_overlay_add() for almost all cases.
3121 * @see elm_object_style_set()
3123 EAPI void elm_theme_extension_add(Elm_Theme *th, const char *item);
3125 * Deletes a theme extension from the list of extensions.
3127 * @param th The theme to delete from, or if NULL, the default theme
3128 * @param item The name of the theme extension
3130 * @see elm_theme_extension_add()
3132 EAPI void elm_theme_extension_del(Elm_Theme *th, const char *item);
3134 * Set the theme search order for the given theme
3136 * @param th The theme to set the search order, or if NULL, the default theme
3137 * @param theme Theme search string
3139 * This sets the search string for the theme in path-notation from first
3140 * theme to search, to last, delimited by the : character. Example:
3142 * "shiny:/path/to/file.edj:default"
3144 * See the ELM_THEME environment variable for more information.
3146 * @see elm_theme_get()
3147 * @see elm_theme_list_get()
3149 EAPI void elm_theme_set(Elm_Theme *th, const char *theme);
3151 * Return the theme search order
3153 * @param th The theme to get the search order, or if NULL, the default theme
3154 * @return The internal search order path
3156 * This function returns a colon separated string of theme elements as
3157 * returned by elm_theme_list_get().
3159 * @see elm_theme_set()
3160 * @see elm_theme_list_get()
3162 EAPI const char *elm_theme_get(Elm_Theme *th);
3164 * Return a list of theme elements to be used in a theme.
3166 * @param th Theme to get the list of theme elements from.
3167 * @return The internal list of theme elements
3169 * This returns the internal list of theme elements (will only be valid as
3170 * long as the theme is not modified by elm_theme_set() or theme is not
3171 * freed by elm_theme_free(). This is a list of strings which must not be
3172 * altered as they are also internal. If @p th is NULL, then the default
3173 * theme element list is returned.
3175 * A theme element can consist of a full or relative path to a .edj file,
3176 * or a name, without extension, for a theme to be searched in the known
3177 * theme paths for Elemementary.
3179 * @see elm_theme_set()
3180 * @see elm_theme_get()
3182 EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3184 * Return the full patrh for a theme element
3186 * @param f The theme element name
3187 * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3188 * @return The full path to the file found.
3190 * This returns a string you should free with free() on success, NULL on
3191 * failure. This will search for the given theme element, and if it is a
3192 * full or relative path element or a simple searchable name. The returned
3193 * path is the full path to the file, if searched, and the file exists, or it
3194 * is simply the full path given in the element or a resolved path if
3195 * relative to home. The @p in_search_path boolean pointed to is set to
3196 * EINA_TRUE if the file was a searchable file andis in the search path,
3197 * and EINA_FALSE otherwise.
3199 EAPI char *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3201 * Flush the current theme.
3203 * @param th Theme to flush
3205 * This flushes caches that let elementary know where to find theme elements
3206 * in the given theme. If @p th is NULL, then the default theme is flushed.
3207 * Call this function if source theme data has changed in such a way as to
3208 * make any caches Elementary kept invalid.
3210 EAPI void elm_theme_flush(Elm_Theme *th);
3212 * This flushes all themes (default and specific ones).
3214 * This will flush all themes in the current application context, by calling
3215 * elm_theme_flush() on each of them.
3217 EAPI void elm_theme_full_flush(void);
3219 * Set the theme for all elementary using applications on the current display
3221 * @param theme The name of the theme to use. Format same as the ELM_THEME
3222 * environment variable.
3224 EAPI void elm_theme_all_set(const char *theme);
3226 * Return a list of theme elements in the theme search path
3228 * @return A list of strings that are the theme element names.
3230 * This lists all available theme files in the standard Elementary search path
3231 * for theme elements, and returns them in alphabetical order as theme
3232 * element names in a list of strings. Free this with
3233 * elm_theme_name_available_list_free() when you are done with the list.
3235 EAPI Eina_List *elm_theme_name_available_list_new(void);
3237 * Free the list returned by elm_theme_name_available_list_new()
3239 * This frees the list of themes returned by
3240 * elm_theme_name_available_list_new(). Once freed the list should no longer
3241 * be used. a new list mys be created.
3243 EAPI void elm_theme_name_available_list_free(Eina_List *list);
3245 * Set a specific theme to be used for this object and its children
3247 * @param obj The object to set the theme on
3248 * @param th The theme to set
3250 * This sets a specific theme that will be used for the given object and any
3251 * child objects it has. If @p th is NULL then the theme to be used is
3252 * cleared and the object will inherit its theme from its parent (which
3253 * ultimately will use the default theme if no specific themes are set).
3255 * Use special themes with great care as this will annoy users and make
3256 * configuration difficult. Avoid any custom themes at all if it can be
3259 EAPI void elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3261 * Get the specific theme to be used
3263 * @param obj The object to get the specific theme from
3264 * @return The specifc theme set.
3266 * This will return a specific theme set, or NULL if no specific theme is
3267 * set on that object. It will not return inherited themes from parents, only
3268 * the specific theme set for that specific object. See elm_object_theme_set()
3269 * for more information.
3271 EAPI Elm_Theme *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3277 /** @defgroup Win Win
3279 * @image html img/widget/win/preview-00.png
3280 * @image latex img/widget/win/preview-00.eps
3282 * The window class of Elementary. Contains functions to manipulate
3283 * windows. The Evas engine used to render the window contents is specified
3284 * in the system or user elementary config files (whichever is found last),
3285 * and can be overridden with the ELM_ENGINE environment variable for
3286 * testing. Engines that may be supported (depending on Evas and Ecore-Evas
3287 * compilation setup and modules actually installed at runtime) are (listed
3288 * in order of best supported and most likely to be complete and work to
3291 * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3292 * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3294 * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3296 * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3298 * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3300 * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3301 * rendering using SDL as the buffer)
3302 * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3303 * GDI with software)
3304 * @li "dfb", "directfb" (Rendering to a DirectFB window)
3305 * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3306 * grayscale using dedicated 8bit software engine in X11)
3307 * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3308 * X11 using 16bit software engine)
3309 * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3310 * (Windows CE rendering via GDI with 16bit software renderer)
3311 * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3312 * buffer with 16bit software renderer)
3314 * All engines use a simple string to select the engine to render, EXCEPT
3315 * the "shot" engine. This actually encodes the output of the virtual
3316 * screenshot and how long to delay in the engine string. The engine string
3317 * is encoded in the following way:
3319 * "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3321 * Where options are separated by a ":" char if more than one option is
3322 * given, with delay, if provided being the first option and file the last
3323 * (order is important). The delay specifies how long to wait after the
3324 * window is shown before doing the virtual "in memory" rendering and then
3325 * save the output to the file specified by the file option (and then exit).
3326 * If no delay is given, the default is 0.5 seconds. If no file is given the
3327 * default output file is "out.png". Repeat option is for continous
3328 * capturing screenshots. Repeat range is from 1 to 999 and filename is
3329 * fixed to "out001.png" Some examples of using the shot engine:
3331 * ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3332 * ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3333 * ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3334 * ELM_ENGINE="shot:delay=2.0" elementary_test
3335 * ELM_ENGINE="shot:" elementary_test
3337 * Signals that you can add callbacks for are:
3339 * @li "delete,request": the user requested to close the window. See
3340 * elm_win_autodel_set().
3341 * @li "focus,in": window got focus
3342 * @li "focus,out": window lost focus
3343 * @li "moved": window that holds the canvas was moved
3346 * @li @ref win_example_01
3351 * Defines the types of window that can be created
3353 * These are hints set on the window so that a running Window Manager knows
3354 * how the window should be handled and/or what kind of decorations it
3357 * Currently, only the X11 backed engines use them.
3359 typedef enum _Elm_Win_Type
3361 ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3362 window. Almost every window will be created with this
3364 ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3365 ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3366 window holding desktop icons. */
3367 ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3368 be kept on top of any other window by the Window
3370 ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3372 ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3373 ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3375 ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3376 ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3377 entry in a menubar is clicked. Typically used
3378 with elm_win_override_set(). This hint exists
3379 for completion only, as the EFL way of
3380 implementing a menu would not normally use a
3381 separate window for its contents. */
3382 ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3383 triggered by right-clicking an object. */
3384 ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3385 explanatory text that typically appear after the
3386 mouse cursor hovers over an object for a while.
3387 Typically used with elm_win_override_set() and also
3388 not very commonly used in the EFL. */
3389 ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3390 battery life or a new E-Mail received. */
3391 ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3392 usually used in the EFL. */
3393 ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3394 object being dragged across different windows, or even
3395 applications. Typically used with
3396 elm_win_override_set(). */
3397 ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3398 buffer. No actual window is created for this
3399 type, instead the window and all of its
3400 contents will be rendered to an image buffer.
3401 This allows to have children window inside a
3402 parent one just like any other object would
3403 be, and do other things like applying @c
3404 Evas_Map effects to it. This is the only type
3405 of window that requires the @c parent
3406 parameter of elm_win_add() to be a valid @c
3411 * The differents layouts that can be requested for the virtual keyboard.
3413 * When the application window is being managed by Illume, it may request
3414 * any of the following layouts for the virtual keyboard.
3416 typedef enum _Elm_Win_Keyboard_Mode
3418 ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3419 ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3420 ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3421 ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3422 ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3423 ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3424 ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3425 ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3426 ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3427 ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3428 ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3429 ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3430 ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3431 ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3432 ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3433 ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3434 } Elm_Win_Keyboard_Mode;
3437 * Available commands that can be sent to the Illume manager.
3439 * When running under an Illume session, a window may send commands to the
3440 * Illume manager to perform different actions.
3442 typedef enum _Elm_Illume_Command
3444 ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3446 ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3448 ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3450 ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3451 } Elm_Illume_Command;
3454 * Adds a window object. If this is the first window created, pass NULL as
3457 * @param parent Parent object to add the window to, or NULL
3458 * @param name The name of the window
3459 * @param type The window type, one of #Elm_Win_Type.
3461 * The @p parent paramter can be @c NULL for every window @p type except
3462 * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3463 * which the image object will be created.
3465 * @return The created object, or NULL on failure
3467 EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3469 * Add @p subobj as a resize object of window @p obj.
3472 * Setting an object as a resize object of the window means that the
3473 * @p subobj child's size and position will be controlled by the window
3474 * directly. That is, the object will be resized to match the window size
3475 * and should never be moved or resized manually by the developer.
3477 * In addition, resize objects of the window control what the minimum size
3478 * of it will be, as well as whether it can or not be resized by the user.
3480 * For the end user to be able to resize a window by dragging the handles
3481 * or borders provided by the Window Manager, or using any other similar
3482 * mechanism, all of the resize objects in the window should have their
3483 * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
3485 * @param obj The window object
3486 * @param subobj The resize object to add
3488 EAPI void elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3490 * Delete @p subobj as a resize object of window @p obj.
3492 * This function removes the object @p subobj from the resize objects of
3493 * the window @p obj. It will not delete the object itself, which will be
3494 * left unmanaged and should be deleted by the developer, manually handled
3495 * or set as child of some other container.
3497 * @param obj The window object
3498 * @param subobj The resize object to add
3500 EAPI void elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3502 * Set the title of the window
3504 * @param obj The window object
3505 * @param title The title to set
3507 EAPI void elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
3509 * Get the title of the window
3511 * The returned string is an internal one and should not be freed or
3512 * modified. It will also be rendered invalid if a new title is set or if
3513 * the window is destroyed.
3515 * @param obj The window object
3518 EAPI const char *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3520 * Set the window's autodel state.
3522 * When closing the window in any way outside of the program control, like
3523 * pressing the X button in the titlebar or using a command from the
3524 * Window Manager, a "delete,request" signal is emitted to indicate that
3525 * this event occurred and the developer can take any action, which may
3526 * include, or not, destroying the window object.
3528 * When the @p autodel parameter is set, the window will be automatically
3529 * destroyed when this event occurs, after the signal is emitted.
3530 * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
3531 * and is up to the program to do so when it's required.
3533 * @param obj The window object
3534 * @param autodel If true, the window will automatically delete itself when
3537 EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
3539 * Get the window's autodel state.
3541 * @param obj The window object
3542 * @return If the window will automatically delete itself when closed
3544 * @see elm_win_autodel_set()
3546 EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3548 * Activate a window object.
3550 * This function sends a request to the Window Manager to activate the
3551 * window pointed by @p obj. If honored by the WM, the window will receive
3552 * the keyboard focus.
3554 * @note This is just a request that a Window Manager may ignore, so calling
3555 * this function does not ensure in any way that the window will be the
3556 * active one after it.
3558 * @param obj The window object
3560 EAPI void elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
3562 * Lower a window object.
3564 * Places the window pointed by @p obj at the bottom of the stack, so that
3565 * no other window is covered by it.
3567 * If elm_win_override_set() is not set, the Window Manager may ignore this
3570 * @param obj The window object
3572 EAPI void elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
3574 * Raise a window object.
3576 * Places the window pointed by @p obj at the top of the stack, so that it's
3577 * not covered by any other window.
3579 * If elm_win_override_set() is not set, the Window Manager may ignore this
3582 * @param obj The window object
3584 EAPI void elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
3586 * Set the borderless state of a window.
3588 * This function requests the Window Manager to not draw any decoration
3589 * around the window.
3591 * @param obj The window object
3592 * @param borderless If true, the window is borderless
3594 EAPI void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
3596 * Get the borderless state of a window.
3598 * @param obj The window object
3599 * @return If true, the window is borderless
3601 EAPI Eina_Bool elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3603 * Set the shaped state of a window.
3605 * Shaped windows, when supported, will render the parts of the window that
3606 * has no content, transparent.
3608 * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
3609 * background object or cover the entire window in any other way, or the
3610 * parts of the canvas that have no data will show framebuffer artifacts.
3612 * @param obj The window object
3613 * @param shaped If true, the window is shaped
3615 * @see elm_win_alpha_set()
3617 EAPI void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
3619 * Get the shaped state of a window.
3621 * @param obj The window object
3622 * @return If true, the window is shaped
3624 * @see elm_win_shaped_set()
3626 EAPI Eina_Bool elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3628 * Set the alpha channel state of a window.
3630 * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
3631 * possibly making parts of the window completely or partially transparent.
3632 * This is also subject to the underlying system supporting it, like for
3633 * example, running under a compositing manager. If no compositing is
3634 * available, enabling this option will instead fallback to using shaped
3635 * windows, with elm_win_shaped_set().
3637 * @param obj The window object
3638 * @param alpha If true, the window has an alpha channel
3640 * @see elm_win_alpha_set()
3642 EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
3644 * Get the transparency state of a window.
3646 * @param obj The window object
3647 * @return If true, the window is transparent
3649 * @see elm_win_transparent_set()
3651 EAPI Eina_Bool elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3653 * Set the transparency state of a window.
3655 * Use elm_win_alpha_set() instead.
3657 * @param obj The window object
3658 * @param transparent If true, the window is transparent
3660 * @see elm_win_alpha_set()
3662 EAPI void elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
3664 * Get the alpha channel state of a window.
3666 * @param obj The window object
3667 * @return If true, the window has an alpha channel
3669 EAPI Eina_Bool elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3671 * Set the override state of a window.
3673 * A window with @p override set to EINA_TRUE will not be managed by the
3674 * Window Manager. This means that no decorations of any kind will be shown
3675 * for it, moving and resizing must be handled by the application, as well
3676 * as the window visibility.
3678 * This should not be used for normal windows, and even for not so normal
3679 * ones, it should only be used when there's a good reason and with a lot
3680 * of care. Mishandling override windows may result situations that
3681 * disrupt the normal workflow of the end user.
3683 * @param obj The window object
3684 * @param override If true, the window is overridden
3686 EAPI void elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
3688 * Get the override state of a window.
3690 * @param obj The window object
3691 * @return If true, the window is overridden
3693 * @see elm_win_override_set()
3695 EAPI Eina_Bool elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3697 * Set the fullscreen state of a window.
3699 * @param obj The window object
3700 * @param fullscreen If true, the window is fullscreen
3702 EAPI void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
3704 * Get the fullscreen state of a window.
3706 * @param obj The window object
3707 * @return If true, the window is fullscreen
3709 EAPI Eina_Bool elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3711 * Set the maximized state of a window.
3713 * @param obj The window object
3714 * @param maximized If true, the window is maximized
3716 EAPI void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
3718 * Get the maximized state of a window.
3720 * @param obj The window object
3721 * @return If true, the window is maximized
3723 EAPI Eina_Bool elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3725 * Set the iconified state of a window.
3727 * @param obj The window object
3728 * @param iconified If true, the window is iconified
3730 EAPI void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
3732 * Get the iconified state of a window.
3734 * @param obj The window object
3735 * @return If true, the window is iconified
3737 EAPI Eina_Bool elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3739 * Set the layer of the window.
3741 * What this means exactly will depend on the underlying engine used.
3743 * In the case of X11 backed engines, the value in @p layer has the
3744 * following meanings:
3745 * @li < 3: The window will be placed below all others.
3746 * @li > 5: The window will be placed above all others.
3747 * @li other: The window will be placed in the default layer.
3749 * @param obj The window object
3750 * @param layer The layer of the window
3752 EAPI void elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
3754 * Get the layer of the window.
3756 * @param obj The window object
3757 * @return The layer of the window
3759 * @see elm_win_layer_set()
3761 EAPI int elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3763 * Set the rotation of the window.
3765 * Most engines only work with multiples of 90.
3767 * This function is used to set the orientation of the window @p obj to
3768 * match that of the screen. The window itself will be resized to adjust
3769 * to the new geometry of its contents. If you want to keep the window size,
3770 * see elm_win_rotation_with_resize_set().
3772 * @param obj The window object
3773 * @param rotation The rotation of the window, in degrees (0-360),
3774 * counter-clockwise.
3776 EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3778 * Rotates the window and resizes it.
3780 * Like elm_win_rotation_set(), but it also resizes the window's contents so
3781 * that they fit inside the current window geometry.
3783 * @param obj The window object
3784 * @param layer The rotation of the window in degrees (0-360),
3785 * counter-clockwise.
3787 EAPI void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3789 * Get the rotation of the window.
3791 * @param obj The window object
3792 * @return The rotation of the window in degrees (0-360)
3794 * @see elm_win_rotation_set()
3795 * @see elm_win_rotation_with_resize_set()
3797 EAPI int elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3799 * Set the sticky state of the window.
3801 * Hints the Window Manager that the window in @p obj should be left fixed
3802 * at its position even when the virtual desktop it's on moves or changes.
3804 * @param obj The window object
3805 * @param sticky If true, the window's sticky state is enabled
3807 EAPI void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
3809 * Get the sticky state of the window.
3811 * @param obj The window object
3812 * @return If true, the window's sticky state is enabled
3814 * @see elm_win_sticky_set()
3816 EAPI Eina_Bool elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3818 * Set if this window is an illume conformant window
3820 * @param obj The window object
3821 * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
3823 EAPI void elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
3825 * Get if this window is an illume conformant window
3827 * @param obj The window object
3828 * @return A boolean if this window is illume conformant or not
3830 EAPI Eina_Bool elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3832 * Set a window to be an illume quickpanel window
3834 * By default window objects are not quickpanel windows.
3836 * @param obj The window object
3837 * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
3839 EAPI void elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
3841 * Get if this window is a quickpanel or not
3843 * @param obj The window object
3844 * @return A boolean if this window is a quickpanel or not
3846 EAPI Eina_Bool elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3848 * Set the major priority of a quickpanel window
3850 * @param obj The window object
3851 * @param priority The major priority for this quickpanel
3853 EAPI void elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
3855 * Get the major priority of a quickpanel window
3857 * @param obj The window object
3858 * @return The major priority of this quickpanel
3860 EAPI int elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3862 * Set the minor priority of a quickpanel window
3864 * @param obj The window object
3865 * @param priority The minor priority for this quickpanel
3867 EAPI void elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
3869 * Get the minor priority of a quickpanel window
3871 * @param obj The window object
3872 * @return The minor priority of this quickpanel
3874 EAPI int elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3876 * Set which zone this quickpanel should appear in
3878 * @param obj The window object
3879 * @param zone The requested zone for this quickpanel
3881 EAPI void elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
3883 * Get which zone this quickpanel should appear in
3885 * @param obj The window object
3886 * @return The requested zone for this quickpanel
3888 EAPI int elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3890 * Set the window to be skipped by keyboard focus
3892 * This sets the window to be skipped by normal keyboard input. This means
3893 * a window manager will be asked to not focus this window as well as omit
3894 * it from things like the taskbar, pager, "alt-tab" list etc. etc.
3896 * Call this and enable it on a window BEFORE you show it for the first time,
3897 * otherwise it may have no effect.
3899 * Use this for windows that have only output information or might only be
3900 * interacted with by the mouse or fingers, and never for typing input.
3901 * Be careful that this may have side-effects like making the window
3902 * non-accessible in some cases unless the window is specially handled. Use
3905 * @param obj The window object
3906 * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
3908 EAPI void elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
3910 * Send a command to the windowing environment
3912 * This is intended to work in touchscreen or small screen device
3913 * environments where there is a more simplistic window management policy in
3914 * place. This uses the window object indicated to select which part of the
3915 * environment to control (the part that this window lives in), and provides
3916 * a command and an optional parameter structure (use NULL for this if not
3919 * @param obj The window object that lives in the environment to control
3920 * @param command The command to send
3921 * @param params Optional parameters for the command
3923 EAPI void elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
3925 * Get the inlined image object handle
3927 * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
3928 * then the window is in fact an evas image object inlined in the parent
3929 * canvas. You can get this object (be careful to not manipulate it as it
3930 * is under control of elementary), and use it to do things like get pixel
3931 * data, save the image to a file, etc.
3933 * @param obj The window object to get the inlined image from
3934 * @return The inlined image object, or NULL if none exists
3936 EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
3938 * Set the enabled status for the focus highlight in a window
3940 * This function will enable or disable the focus highlight only for the
3941 * given window, regardless of the global setting for it
3943 * @param obj The window where to enable the highlight
3944 * @param enabled The enabled value for the highlight
3946 EAPI void elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
3948 * Get the enabled value of the focus highlight for this window
3950 * @param obj The window in which to check if the focus highlight is enabled
3952 * @return EINA_TRUE if enabled, EINA_FALSE otherwise
3954 EAPI Eina_Bool elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3956 * Set the style for the focus highlight on this window
3958 * Sets the style to use for theming the highlight of focused objects on
3959 * the given window. If @p style is NULL, the default will be used.
3961 * @param obj The window where to set the style
3962 * @param style The style to set
3964 EAPI void elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
3966 * Get the style set for the focus highlight object
3968 * Gets the style set for this windows highilght object, or NULL if none
3971 * @param obj The window to retrieve the highlights style from
3973 * @return The style set or NULL if none was. Default is used in that case.
3975 EAPI const char *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3977 * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
3978 * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
3979 * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
3980 * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
3981 * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
3982 * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
3983 * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
3985 * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
3986 * (blank mouse, private mouse obj, defaultmouse)
3990 * Sets the keyboard mode of the window.
3992 * @param obj The window object
3993 * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
3995 EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
3997 * Gets the keyboard mode of the window.
3999 * @param obj The window object
4000 * @return The mode, one of #Elm_Win_Keyboard_Mode
4002 EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4004 * Sets whether the window is a keyboard.
4006 * @param obj The window object
4007 * @param is_keyboard If true, the window is a virtual keyboard
4009 EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4011 * Gets whether the window is a keyboard.
4013 * @param obj The window object
4014 * @return If the window is a virtual keyboard
4016 EAPI Eina_Bool elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4019 * Get the screen position of a window.
4021 * @param obj The window object
4022 * @param x The int to store the x coordinate to
4023 * @param y The int to store the y coordinate to
4025 EAPI void elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4031 * @defgroup Inwin Inwin
4033 * @image html img/widget/inwin/preview-00.png
4034 * @image latex img/widget/inwin/preview-00.eps
4035 * @image html img/widget/inwin/preview-01.png
4036 * @image latex img/widget/inwin/preview-01.eps
4037 * @image html img/widget/inwin/preview-02.png
4038 * @image latex img/widget/inwin/preview-02.eps
4040 * An inwin is a window inside a window that is useful for a quick popup.
4041 * It does not hover.
4043 * It works by creating an object that will occupy the entire window, so it
4044 * must be created using an @ref Win "elm_win" as parent only. The inwin
4045 * object can be hidden or restacked below every other object if it's
4046 * needed to show what's behind it without destroying it. If this is done,
4047 * the elm_win_inwin_activate() function can be used to bring it back to
4048 * full visibility again.
4050 * There are three styles available in the default theme. These are:
4051 * @li default: The inwin is sized to take over most of the window it's
4053 * @li minimal: The size of the inwin will be the minimum necessary to show
4055 * @li minimal_vertical: Horizontally, the inwin takes as much space as
4056 * possible, but it's sized vertically the most it needs to fit its\
4059 * Some examples of Inwin can be found in the following:
4060 * @li @ref inwin_example_01
4065 * Adds an inwin to the current window
4067 * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4068 * Never call this function with anything other than the top-most window
4069 * as its parameter, unless you are fond of undefined behavior.
4071 * After creating the object, the widget will set itself as resize object
4072 * for the window with elm_win_resize_object_add(), so when shown it will
4073 * appear to cover almost the entire window (how much of it depends on its
4074 * content and the style used). It must not be added into other container
4075 * objects and it needs not be moved or resized manually.
4077 * @param parent The parent object
4078 * @return The new object or NULL if it cannot be created
4080 EAPI Evas_Object *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4082 * Activates an inwin object, ensuring its visibility
4084 * This function will make sure that the inwin @p obj is completely visible
4085 * by calling evas_object_show() and evas_object_raise() on it, to bring it
4086 * to the front. It also sets the keyboard focus to it, which will be passed
4089 * The object's theme will also receive the signal "elm,action,show" with
4092 * @param obj The inwin to activate
4094 EAPI void elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4096 * Set the content of an inwin object.
4098 * Once the content object is set, a previously set one will be deleted.
4099 * If you want to keep that old content object, use the
4100 * elm_win_inwin_content_unset() function.
4102 * @param obj The inwin object
4103 * @param content The object to set as content
4105 EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4107 * Get the content of an inwin object.
4109 * Return the content object which is set for this widget.
4111 * The returned object is valid as long as the inwin is still alive and no
4112 * other content is set on it. Deleting the object will notify the inwin
4113 * about it and this one will be left empty.
4115 * If you need to remove an inwin's content to be reused somewhere else,
4116 * see elm_win_inwin_content_unset().
4118 * @param obj The inwin object
4119 * @return The content that is being used
4121 EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4123 * Unset the content of an inwin object.
4125 * Unparent and return the content object which was set for this widget.
4127 * @param obj The inwin object
4128 * @return The content that was being used
4130 EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4134 /* X specific calls - won't work on non-x engines (return 0) */
4137 * Get the Ecore_X_Window of an Evas_Object
4139 * @param obj The object
4141 * @return The Ecore_X_Window of @p obj
4145 EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4147 /* smart callbacks called:
4148 * "delete,request" - the user requested to delete the window
4149 * "focus,in" - window got focus
4150 * "focus,out" - window lost focus
4151 * "moved" - window that holds the canvas was moved
4157 * @image html img/widget/bg/preview-00.png
4158 * @image latex img/widget/bg/preview-00.eps
4160 * @brief Background object, used for setting a solid color, image or Edje
4161 * group as background to a window or any container object.
4163 * The bg object is used for setting a solid background to a window or
4164 * packing into any container object. It works just like an image, but has
4165 * some properties useful to a background, like setting it to tiled,
4166 * centered, scaled or stretched.
4168 * Here is some sample code using it:
4169 * @li @ref bg_01_example_page
4170 * @li @ref bg_02_example_page
4171 * @li @ref bg_03_example_page
4175 typedef enum _Elm_Bg_Option
4177 ELM_BG_OPTION_CENTER, /**< center the background */
4178 ELM_BG_OPTION_SCALE, /**< scale the background retaining aspect ratio */
4179 ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4180 ELM_BG_OPTION_TILE /**< tile background at its original size */
4184 * Add a new background to the parent
4186 * @param parent The parent object
4187 * @return The new object or NULL if it cannot be created
4191 EAPI Evas_Object *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4194 * Set the file (image or edje) used for the background
4196 * @param obj The bg object
4197 * @param file The file path
4198 * @param group Optional key (group in Edje) within the file
4200 * This sets the image file used in the background object. The image (or edje)
4201 * will be stretched (retaining aspect if its an image file) to completely fill
4202 * the bg object. This may mean some parts are not visible.
4204 * @note Once the image of @p obj is set, a previously set one will be deleted,
4205 * even if @p file is NULL.
4209 EAPI void elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4212 * Get the file (image or edje) used for the background
4214 * @param obj The bg object
4215 * @param file The file path
4216 * @param group Optional key (group in Edje) within the file
4220 EAPI void elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4223 * Set the option used for the background image
4225 * @param obj The bg object
4226 * @param option The desired background option (TILE, SCALE)
4228 * This sets the option used for manipulating the display of the background
4229 * image. The image can be tiled or scaled.
4233 EAPI void elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4236 * Get the option used for the background image
4238 * @param obj The bg object
4239 * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4243 EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4245 * Set the option used for the background color
4247 * @param obj The bg object
4252 * This sets the color used for the background rectangle. Its range goes
4257 EAPI void elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4259 * Get the option used for the background color
4261 * @param obj The bg object
4268 EAPI void elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4271 * Set the overlay object used for the background object.
4273 * @param obj The bg object
4274 * @param overlay The overlay object
4276 * This provides a way for elm_bg to have an 'overlay' that will be on top
4277 * of the bg. Once the over object is set, a previously set one will be
4278 * deleted, even if you set the new one to NULL. If you want to keep that
4279 * old content object, use the elm_bg_overlay_unset() function.
4284 EAPI void elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4287 * Get the overlay object used for the background object.
4289 * @param obj The bg object
4290 * @return The content that is being used
4292 * Return the content object which is set for this widget
4296 EAPI Evas_Object *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4299 * Get the overlay object used for the background object.
4301 * @param obj The bg object
4302 * @return The content that was being used
4304 * Unparent and return the overlay object which was set for this widget
4308 EAPI Evas_Object *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4311 * Set the size of the pixmap representation of the image.
4313 * This option just makes sense if an image is going to be set in the bg.
4315 * @param obj The bg object
4316 * @param w The new width of the image pixmap representation.
4317 * @param h The new height of the image pixmap representation.
4319 * This function sets a new size for pixmap representation of the given bg
4320 * image. It allows the image to be loaded already in the specified size,
4321 * reducing the memory usage and load time when loading a big image with load
4322 * size set to a smaller size.
4324 * NOTE: this is just a hint, the real size of the pixmap may differ
4325 * depending on the type of image being loaded, being bigger than requested.
4329 EAPI void elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4330 /* smart callbacks called:
4334 * @defgroup Icon Icon
4336 * @image html img/widget/icon/preview-00.png
4337 * @image latex img/widget/icon/preview-00.eps
4339 * An object that provides standard icon images (delete, edit, arrows, etc.)
4340 * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4342 * The icon image requested can be in the elementary theme, or in the
4343 * freedesktop.org paths. It's possible to set the order of preference from
4344 * where the image will be used.
4346 * This API is very similar to @ref Image, but with ready to use images.
4348 * Default images provided by the theme are described below.
4350 * The first list contains icons that were first intended to be used in
4351 * toolbars, but can be used in many other places too:
4367 * Now some icons that were designed to be used in menus (but again, you can
4368 * use them anywhere else):
4373 * @li menu/arrow_down
4374 * @li menu/arrow_left
4375 * @li menu/arrow_right
4384 * And here we have some media player specific icons:
4385 * @li media_player/forward
4386 * @li media_player/info
4387 * @li media_player/next
4388 * @li media_player/pause
4389 * @li media_player/play
4390 * @li media_player/prev
4391 * @li media_player/rewind
4392 * @li media_player/stop
4394 * Signals that you can add callbacks for are:
4396 * "clicked" - This is called when a user has clicked the icon
4398 * An example of usage for this API follows:
4399 * @li @ref tutorial_icon
4407 typedef enum _Elm_Icon_Type
4414 * @enum _Elm_Icon_Lookup_Order
4415 * @typedef Elm_Icon_Lookup_Order
4417 * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4418 * theme, FDO paths, or both?
4422 typedef enum _Elm_Icon_Lookup_Order
4424 ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4425 ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4426 ELM_ICON_LOOKUP_FDO, /**< icon look up order: freedesktop */
4427 ELM_ICON_LOOKUP_THEME /**< icon look up order: theme */
4428 } Elm_Icon_Lookup_Order;
4431 * Add a new icon object to the parent.
4433 * @param parent The parent object
4434 * @return The new object or NULL if it cannot be created
4436 * @see elm_icon_file_set()
4440 EAPI Evas_Object *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4442 * Set the file that will be used as icon.
4444 * @param obj The icon object
4445 * @param file The path to file that will be used as icon image
4446 * @param group The group that the icon belongs to in edje file
4448 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4450 * @note The icon image set by this function can be changed by
4451 * elm_icon_standard_set().
4453 * @see elm_icon_file_get()
4457 EAPI Eina_Bool elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4459 * Set a location in memory to be used as an icon
4461 * @param obj The icon object
4462 * @param img The binary data that will be used as an image
4463 * @param size The size of binary data @p img
4464 * @param format Optional format of @p img to pass to the image loader
4465 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4467 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4469 * @note The icon image set by this function can be changed by
4470 * elm_icon_standard_set().
4474 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);
4476 * Get the file that will be used as icon.
4478 * @param obj The icon object
4479 * @param file The path to file that will be used as icon icon image
4480 * @param group The group that the icon belongs to in edje file
4482 * @see elm_icon_file_set()
4486 EAPI void elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4487 EAPI void elm_icon_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4489 * Set the icon by icon standards names.
4491 * @param obj The icon object
4492 * @param name The icon name
4494 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4496 * For example, freedesktop.org defines standard icon names such as "home",
4497 * "network", etc. There can be different icon sets to match those icon
4498 * keys. The @p name given as parameter is one of these "keys", and will be
4499 * used to look in the freedesktop.org paths and elementary theme. One can
4500 * change the lookup order with elm_icon_order_lookup_set().
4502 * If name is not found in any of the expected locations and it is the
4503 * absolute path of an image file, this image will be used.
4505 * @note The icon image set by this function can be changed by
4506 * elm_icon_file_set().
4508 * @see elm_icon_standard_get()
4509 * @see elm_icon_file_set()
4513 EAPI Eina_Bool elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
4515 * Get the icon name set by icon standard names.
4517 * @param obj The icon object
4518 * @return The icon name
4520 * If the icon image was set using elm_icon_file_set() instead of
4521 * elm_icon_standard_set(), then this function will return @c NULL.
4523 * @see elm_icon_standard_set()
4527 EAPI const char *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4529 * Set the smooth effect for an icon object.
4531 * @param obj The icon object
4532 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4533 * otherwise. Default is @c EINA_TRUE.
4535 * Set the scaling algorithm to be used when scaling the icon image. Smooth
4536 * scaling provides a better resulting image, but is slower.
4538 * The smooth scaling should be disabled when making animations that change
4539 * the icon size, since they will be faster. Animations that don't require
4540 * resizing of the icon can keep the smooth scaling enabled (even if the icon
4541 * is already scaled, since the scaled icon image will be cached).
4543 * @see elm_icon_smooth_get()
4547 EAPI void elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4549 * Get the smooth effect for an icon object.
4551 * @param obj The icon object
4552 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4554 * @see elm_icon_smooth_set()
4558 EAPI Eina_Bool elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4560 * Disable scaling of this object.
4562 * @param obj The icon object.
4563 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4564 * otherwise. Default is @c EINA_FALSE.
4566 * This function disables scaling of the icon object through the function
4567 * elm_object_scale_set(). However, this does not affect the object
4568 * size/resize in any way. For that effect, take a look at
4569 * elm_icon_scale_set().
4571 * @see elm_icon_no_scale_get()
4572 * @see elm_icon_scale_set()
4573 * @see elm_object_scale_set()
4577 EAPI void elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4579 * Get whether scaling is disabled on the object.
4581 * @param obj The icon object
4582 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4584 * @see elm_icon_no_scale_set()
4588 EAPI Eina_Bool elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4590 * Set if the object is (up/down) resizeable.
4592 * @param obj The icon object
4593 * @param scale_up A bool to set if the object is resizeable up. Default is
4595 * @param scale_down A bool to set if the object is resizeable down. Default
4598 * This function limits the icon object resize ability. If @p scale_up is set to
4599 * @c EINA_FALSE, the object can't have its height or width resized to a value
4600 * higher than the original icon size. Same is valid for @p scale_down.
4602 * @see elm_icon_scale_get()
4606 EAPI void elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4608 * Get if the object is (up/down) resizeable.
4610 * @param obj The icon object
4611 * @param scale_up A bool to set if the object is resizeable up
4612 * @param scale_down A bool to set if the object is resizeable down
4614 * @see elm_icon_scale_set()
4618 EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4620 * Get the object's image size
4622 * @param obj The icon object
4623 * @param w A pointer to store the width in
4624 * @param h A pointer to store the height in
4628 EAPI void elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4630 * Set if the icon fill the entire object area.
4632 * @param obj The icon object
4633 * @param fill_outside @c EINA_TRUE if the object is filled outside,
4634 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4636 * When the icon object is resized to a different aspect ratio from the
4637 * original icon image, the icon image will still keep its aspect. This flag
4638 * tells how the image should fill the object's area. They are: keep the
4639 * entire icon inside the limits of height and width of the object (@p
4640 * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
4641 * of the object, and the icon will fill the entire object (@p fill_outside
4644 * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
4645 * retain property to false. Thus, the icon image will always keep its
4646 * original aspect ratio.
4648 * @see elm_icon_fill_outside_get()
4649 * @see elm_image_fill_outside_set()
4653 EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4655 * Get if the object is filled outside.
4657 * @param obj The icon object
4658 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4660 * @see elm_icon_fill_outside_set()
4664 EAPI Eina_Bool elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4666 * Set the prescale size for the icon.
4668 * @param obj The icon object
4669 * @param size The prescale size. This value is used for both width and
4672 * This function sets a new size for pixmap representation of the given
4673 * icon. It allows the icon to be loaded already in the specified size,
4674 * reducing the memory usage and load time when loading a big icon with load
4675 * size set to a smaller size.
4677 * It's equivalent to the elm_bg_load_size_set() function for bg.
4679 * @note this is just a hint, the real size of the pixmap may differ
4680 * depending on the type of icon being loaded, being bigger than requested.
4682 * @see elm_icon_prescale_get()
4683 * @see elm_bg_load_size_set()
4687 EAPI void elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4689 * Get the prescale size for the icon.
4691 * @param obj The icon object
4692 * @return The prescale size
4694 * @see elm_icon_prescale_set()
4698 EAPI int elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4700 * Sets the icon lookup order used by elm_icon_standard_set().
4702 * @param obj The icon object
4703 * @param order The icon lookup order (can be one of
4704 * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
4705 * or ELM_ICON_LOOKUP_THEME)
4707 * @see elm_icon_order_lookup_get()
4708 * @see Elm_Icon_Lookup_Order
4712 EAPI void elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
4714 * Gets the icon lookup order.
4716 * @param obj The icon object
4717 * @return The icon lookup order
4719 * @see elm_icon_order_lookup_set()
4720 * @see Elm_Icon_Lookup_Order
4724 EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4731 * @defgroup Image Image
4733 * @image html img/widget/image/preview-00.png
4734 * @image latex img/widget/image/preview-00.eps
4736 * An object that allows one to load an image file to it. It can be used
4737 * anywhere like any other elementary widget.
4739 * This widget provides most of the functionality provided from @ref Bg or @ref
4740 * Icon, but with a slightly different API (use the one that fits better your
4743 * The features not provided by those two other image widgets are:
4744 * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
4745 * @li change the object orientation with elm_image_orient_set();
4746 * @li and turning the image editable with elm_image_editable_set().
4748 * Signals that you can add callbacks for are:
4750 * @li @c "clicked" - This is called when a user has clicked the image
4752 * An example of usage for this API follows:
4753 * @li @ref tutorial_image
4762 * @enum _Elm_Image_Orient
4763 * @typedef Elm_Image_Orient
4765 * Possible orientation options for elm_image_orient_set().
4767 * @image html elm_image_orient_set.png
4768 * @image latex elm_image_orient_set.eps width=\textwidth
4772 typedef enum _Elm_Image_Orient
4774 ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
4775 ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
4776 ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
4777 ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
4778 ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
4779 ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
4780 ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
4781 ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
4785 * Add a new image to the parent.
4787 * @param parent The parent object
4788 * @return The new object or NULL if it cannot be created
4790 * @see elm_image_file_set()
4794 EAPI Evas_Object *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4796 * Set the file that will be used as image.
4798 * @param obj The image object
4799 * @param file The path to file that will be used as image
4800 * @param group The group that the image belongs in edje file (if it's an
4803 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4805 * @see elm_image_file_get()
4809 EAPI Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4811 * Get the file that will be used as image.
4813 * @param obj The image object
4814 * @param file The path to file
4815 * @param group The group that the image belongs in edje file
4817 * @see elm_image_file_set()
4821 EAPI void elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4823 * Set the smooth effect for an image.
4825 * @param obj The image object
4826 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4827 * otherwise. Default is @c EINA_TRUE.
4829 * Set the scaling algorithm to be used when scaling the image. Smooth
4830 * scaling provides a better resulting image, but is slower.
4832 * The smooth scaling should be disabled when making animations that change
4833 * the image size, since it will be faster. Animations that don't require
4834 * resizing of the image can keep the smooth scaling enabled (even if the
4835 * image is already scaled, since the scaled image will be cached).
4837 * @see elm_image_smooth_get()
4841 EAPI void elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4843 * Get the smooth effect for an image.
4845 * @param obj The image object
4846 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4848 * @see elm_image_smooth_get()
4852 EAPI Eina_Bool elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4854 * Gets the current size of the image.
4856 * @param obj The image object.
4857 * @param w Pointer to store width, or NULL.
4858 * @param h Pointer to store height, or NULL.
4860 * This is the real size of the image, not the size of the object.
4862 * On error, neither w or h will be written.
4866 EAPI void elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4868 * Disable scaling of this object.
4870 * @param obj The image object.
4871 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4872 * otherwise. Default is @c EINA_FALSE.
4874 * This function disables scaling of the elm_image widget through the
4875 * function elm_object_scale_set(). However, this does not affect the widget
4876 * size/resize in any way. For that effect, take a look at
4877 * elm_image_scale_set().
4879 * @see elm_image_no_scale_get()
4880 * @see elm_image_scale_set()
4881 * @see elm_object_scale_set()
4885 EAPI void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4887 * Get whether scaling is disabled on the object.
4889 * @param obj The image object
4890 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4892 * @see elm_image_no_scale_set()
4896 EAPI Eina_Bool elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4898 * Set if the object is (up/down) resizeable.
4900 * @param obj The image object
4901 * @param scale_up A bool to set if the object is resizeable up. Default is
4903 * @param scale_down A bool to set if the object is resizeable down. Default
4906 * This function limits the image resize ability. If @p scale_up is set to
4907 * @c EINA_FALSE, the object can't have its height or width resized to a value
4908 * higher than the original image size. Same is valid for @p scale_down.
4910 * @see elm_image_scale_get()
4914 EAPI void elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4916 * Get if the object is (up/down) resizeable.
4918 * @param obj The image object
4919 * @param scale_up A bool to set if the object is resizeable up
4920 * @param scale_down A bool to set if the object is resizeable down
4922 * @see elm_image_scale_set()
4926 EAPI void elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4928 * Set if the image fill the entire object area when keeping the aspect ratio.
4930 * @param obj The image object
4931 * @param fill_outside @c EINA_TRUE if the object is filled outside,
4932 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4934 * When the image should keep its aspect ratio even if resized to another
4935 * aspect ratio, there are two possibilities to resize it: keep the entire
4936 * image inside the limits of height and width of the object (@p fill_outside
4937 * is @c EINA_FALSE) or let the extra width or height go outside of the object,
4938 * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
4940 * @note This option will have no effect if
4941 * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
4943 * @see elm_image_fill_outside_get()
4944 * @see elm_image_aspect_ratio_retained_set()
4948 EAPI void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4950 * Get if the object is filled outside
4952 * @param obj The image object
4953 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4955 * @see elm_image_fill_outside_set()
4959 EAPI Eina_Bool elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4961 * Set the prescale size for the image
4963 * @param obj The image object
4964 * @param size The prescale size. This value is used for both width and
4967 * This function sets a new size for pixmap representation of the given
4968 * image. It allows the image to be loaded already in the specified size,
4969 * reducing the memory usage and load time when loading a big image with load
4970 * size set to a smaller size.
4972 * It's equivalent to the elm_bg_load_size_set() function for bg.
4974 * @note this is just a hint, the real size of the pixmap may differ
4975 * depending on the type of image being loaded, being bigger than requested.
4977 * @see elm_image_prescale_get()
4978 * @see elm_bg_load_size_set()
4982 EAPI void elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4984 * Get the prescale size for the image
4986 * @param obj The image object
4987 * @return The prescale size
4989 * @see elm_image_prescale_set()
4993 EAPI int elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4995 * Set the image orientation.
4997 * @param obj The image object
4998 * @param orient The image orientation
4999 * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5000 * #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5001 * #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5002 * #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE).
5003 * Default is #ELM_IMAGE_ORIENT_NONE.
5005 * This function allows to rotate or flip the given image.
5007 * @see elm_image_orient_get()
5008 * @see @ref Elm_Image_Orient
5012 EAPI void elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5014 * Get the image orientation.
5016 * @param obj The image object
5017 * @return The image orientation
5018 * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5019 * #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5020 * #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5021 * #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE)
5023 * @see elm_image_orient_set()
5024 * @see @ref Elm_Image_Orient
5028 EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5030 * Make the image 'editable'.
5032 * @param obj Image object.
5033 * @param set Turn on or off editability. Default is @c EINA_FALSE.
5035 * This means the image is a valid drag target for drag and drop, and can be
5036 * cut or pasted too.
5040 EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5042 * Make the image 'editable'.
5044 * @param obj Image object.
5045 * @return Editability.
5047 * This means the image is a valid drag target for drag and drop, and can be
5048 * cut or pasted too.
5052 EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5054 * Get the basic Evas_Image object from this object (widget).
5056 * @param obj The image object to get the inlined image from
5057 * @return The inlined image object, or NULL if none exists
5059 * This function allows one to get the underlying @c Evas_Object of type
5060 * Image from this elementary widget. It can be useful to do things like get
5061 * the pixel data, save the image to a file, etc.
5063 * @note Be careful to not manipulate it, as it is under control of
5068 EAPI Evas_Object *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5070 * Set whether the original aspect ratio of the image should be kept on resize.
5072 * @param obj The image object.
5073 * @param retained @c EINA_TRUE if the image should retain the aspect,
5074 * @c EINA_FALSE otherwise.
5076 * The original aspect ratio (width / height) of the image is usually
5077 * distorted to match the object's size. Enabling this option will retain
5078 * this original aspect, and the way that the image is fit into the object's
5079 * area depends on the option set by elm_image_fill_outside_set().
5081 * @see elm_image_aspect_ratio_retained_get()
5082 * @see elm_image_fill_outside_set()
5086 EAPI void elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5088 * Get if the object retains the original aspect ratio.
5090 * @param obj The image object.
5091 * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5096 EAPI Eina_Bool elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5098 /* smart callbacks called:
5099 * "clicked" - the user clicked the image
5107 typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5109 typedef enum _Elm_GLView_Mode
5111 ELM_GLVIEW_ALPHA = 1,
5112 ELM_GLVIEW_DEPTH = 2,
5113 ELM_GLVIEW_STENCIL = 4
5117 * Defines a policy for the glview resizing.
5119 * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5121 typedef enum _Elm_GLView_Resize_Policy
5123 ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1, /**< Resize the internal surface along with the image */
5124 ELM_GLVIEW_RESIZE_POLICY_SCALE = 2 /**< Only reize the internal image and not the surface */
5125 } Elm_GLView_Resize_Policy;
5127 typedef enum _Elm_GLView_Render_Policy
5129 ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1, /**< Render only when there is a need for redrawing */
5130 ELM_GLVIEW_RENDER_POLICY_ALWAYS = 2 /**< Render always even when it is not visible */
5131 } Elm_GLView_Render_Policy;
5136 * A simple GLView widget that allows GL rendering.
5138 * Signals that you can add callbacks for are:
5144 * Add a new glview to the parent
5146 * @param parent The parent object
5147 * @return The new object or NULL if it cannot be created
5151 EAPI Evas_Object *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5154 * Sets the size of the glview
5156 * @param obj The glview object
5157 * @param width width of the glview object
5158 * @param height height of the glview object
5162 EAPI void elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5165 * Gets the size of the glview.
5167 * @param obj The glview object
5168 * @param width width of the glview object
5169 * @param height height of the glview object
5171 * Note that this function returns the actual image size of the
5172 * glview. This means that when the scale policy is set to
5173 * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5178 EAPI void elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5181 * Gets the gl api struct for gl rendering
5183 * @param obj The glview object
5184 * @return The api object or NULL if it cannot be created
5188 EAPI Evas_GL_API *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5191 * Set the mode of the GLView. Supports Three simple modes.
5193 * @param obj The glview object
5194 * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5195 * @return True if set properly.
5199 EAPI Eina_Bool elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5202 * Set the resize policy for the glview object.
5204 * @param obj The glview object.
5205 * @param policy The scaling policy.
5207 * By default, the resize policy is set to
5208 * ELM_GLVIEW_RESIZE_POLICY_RECREATE. When resize is called it
5209 * destroys the previous surface and recreates the newly specified
5210 * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5211 * however, glview only scales the image object and not the underlying
5216 EAPI Eina_Bool elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5219 * Set the render policy for the glview object.
5221 * @param obj The glview object.
5222 * @param policy The render policy.
5224 * By default, the render policy is set to
5225 * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND. This policy is set such
5226 * that during the render loop, glview is only redrawn if it needs
5227 * to be redrawn. (i.e. When it is visible) If the policy is set to
5228 * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5229 * whether it is visible/need redrawing or not.
5233 EAPI Eina_Bool elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5236 * Set the init function that runs once in the main loop.
5238 * @param obj The glview object.
5239 * @param func The init function to be registered.
5241 * The registered init function gets called once during the render loop.
5245 EAPI void elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5248 * Set the render function that runs in the main loop.
5250 * @param obj The glview object.
5251 * @param func The delete function to be registered.
5253 * The registered del function gets called when GLView object is deleted.
5257 EAPI void elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5260 * Set the resize function that gets called when resize happens.
5262 * @param obj The glview object.
5263 * @param func The resize function to be registered.
5267 EAPI void elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5270 * Set the render function that runs in the main loop.
5272 * @param obj The glview object.
5273 * @param func The render function to be registered.
5277 EAPI void elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5280 * Notifies that there has been changes in the GLView.
5282 * @param obj The glview object.
5286 EAPI void elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
5296 * @image html img/widget/box/preview-00.png
5297 * @image latex img/widget/box/preview-00.eps width=\textwidth
5299 * @image html img/box.png
5300 * @image latex img/box.eps width=\textwidth
5302 * A box arranges objects in a linear fashion, governed by a layout function
5303 * that defines the details of this arrangement.
5305 * By default, the box will use an internal function to set the layout to
5306 * a single row, either vertical or horizontal. This layout is affected
5307 * by a number of parameters, such as the homogeneous flag set by
5308 * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5309 * elm_box_align_set() and the hints set to each object in the box.
5311 * For this default layout, it's possible to change the orientation with
5312 * elm_box_horizontal_set(). The box will start in the vertical orientation,
5313 * placing its elements ordered from top to bottom. When horizontal is set,
5314 * the order will go from left to right. If the box is set to be
5315 * homogeneous, every object in it will be assigned the same space, that
5316 * of the largest object. Padding can be used to set some spacing between
5317 * the cell given to each object. The alignment of the box, set with
5318 * elm_box_align_set(), determines how the bounding box of all the elements
5319 * will be placed within the space given to the box widget itself.
5321 * The size hints of each object also affect how they are placed and sized
5322 * within the box. evas_object_size_hint_min_set() will give the minimum
5323 * size the object can have, and the box will use it as the basis for all
5324 * latter calculations. Elementary widgets set their own minimum size as
5325 * needed, so there's rarely any need to use it manually.
5327 * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5328 * used to tell whether the object will be allocated the minimum size it
5329 * needs or if the space given to it should be expanded. It's important
5330 * to realize that expanding the size given to the object is not the same
5331 * thing as resizing the object. It could very well end being a small
5332 * widget floating in a much larger empty space. If not set, the weight
5333 * for objects will normally be 0.0 for both axis, meaning the widget will
5334 * not be expanded. To take as much space possible, set the weight to
5335 * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5337 * Besides how much space each object is allocated, it's possible to control
5338 * how the widget will be placed within that space using
5339 * evas_object_size_hint_align_set(). By default, this value will be 0.5
5340 * for both axis, meaning the object will be centered, but any value from
5341 * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5342 * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5343 * is -1.0, means the object will be resized to fill the entire space it
5346 * In addition, customized functions to define the layout can be set, which
5347 * allow the application developer to organize the objects within the box
5348 * in any number of ways.
5350 * The special elm_box_layout_transition() function can be used
5351 * to switch from one layout to another, animating the motion of the
5352 * children of the box.
5354 * @note Objects should not be added to box objects using _add() calls.
5356 * Some examples on how to use boxes follow:
5357 * @li @ref box_example_01
5358 * @li @ref box_example_02
5363 * @typedef Elm_Box_Transition
5365 * Opaque handler containing the parameters to perform an animated
5366 * transition of the layout the box uses.
5368 * @see elm_box_transition_new()
5369 * @see elm_box_layout_set()
5370 * @see elm_box_layout_transition()
5372 typedef struct _Elm_Box_Transition Elm_Box_Transition;
5375 * Add a new box to the parent
5377 * By default, the box will be in vertical mode and non-homogeneous.
5379 * @param parent The parent object
5380 * @return The new object or NULL if it cannot be created
5382 EAPI Evas_Object *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5384 * Set the horizontal orientation
5386 * By default, box object arranges their contents vertically from top to
5388 * By calling this function with @p horizontal as EINA_TRUE, the box will
5389 * become horizontal, arranging contents from left to right.
5391 * @note This flag is ignored if a custom layout function is set.
5393 * @param obj The box object
5394 * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5395 * EINA_FALSE = vertical)
5397 EAPI void elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5399 * Get the horizontal orientation
5401 * @param obj The box object
5402 * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5404 EAPI Eina_Bool elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5406 * Set the box to arrange its children homogeneously
5408 * If enabled, homogeneous layout makes all items the same size, according
5409 * to the size of the largest of its children.
5411 * @note This flag is ignored if a custom layout function is set.
5413 * @param obj The box object
5414 * @param homogeneous The homogeneous flag
5416 EAPI void elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5418 * Get whether the box is using homogeneous mode or not
5420 * @param obj The box object
5421 * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5423 EAPI Eina_Bool elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5424 EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5425 EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5427 * Add an object to the beginning of the pack list
5429 * Pack @p subobj into the box @p obj, placing it first in the list of
5430 * children objects. The actual position the object will get on screen
5431 * depends on the layout used. If no custom layout is set, it will be at
5432 * the top or left, depending if the box is vertical or horizontal,
5435 * @param obj The box object
5436 * @param subobj The object to add to the box
5438 * @see elm_box_pack_end()
5439 * @see elm_box_pack_before()
5440 * @see elm_box_pack_after()
5441 * @see elm_box_unpack()
5442 * @see elm_box_unpack_all()
5443 * @see elm_box_clear()
5445 EAPI void elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5447 * Add an object at the end of the pack list
5449 * Pack @p subobj into the box @p obj, placing it last in the list of
5450 * children objects. The actual position the object will get on screen
5451 * depends on the layout used. If no custom layout is set, it will be at
5452 * the bottom or right, depending if the box is vertical or horizontal,
5455 * @param obj The box object
5456 * @param subobj The object to add to the box
5458 * @see elm_box_pack_start()
5459 * @see elm_box_pack_before()
5460 * @see elm_box_pack_after()
5461 * @see elm_box_unpack()
5462 * @see elm_box_unpack_all()
5463 * @see elm_box_clear()
5465 EAPI void elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5467 * Adds an object to the box before the indicated object
5469 * This will add the @p subobj to the box indicated before the object
5470 * indicated with @p before. If @p before is not already in the box, results
5471 * are undefined. Before means either to the left of the indicated object or
5472 * above it depending on orientation.
5474 * @param obj The box object
5475 * @param subobj The object to add to the box
5476 * @param before The object before which to add it
5478 * @see elm_box_pack_start()
5479 * @see elm_box_pack_end()
5480 * @see elm_box_pack_after()
5481 * @see elm_box_unpack()
5482 * @see elm_box_unpack_all()
5483 * @see elm_box_clear()
5485 EAPI void elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5487 * Adds an object to the box after the indicated object
5489 * This will add the @p subobj to the box indicated after the object
5490 * indicated with @p after. If @p after is not already in the box, results
5491 * are undefined. After means either to the right of the indicated object or
5492 * below it depending on orientation.
5494 * @param obj The box object
5495 * @param subobj The object to add to the box
5496 * @param after The object after which to add it
5498 * @see elm_box_pack_start()
5499 * @see elm_box_pack_end()
5500 * @see elm_box_pack_before()
5501 * @see elm_box_unpack()
5502 * @see elm_box_unpack_all()
5503 * @see elm_box_clear()
5505 EAPI void elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5507 * Clear the box of all children
5509 * Remove all the elements contained by the box, deleting the respective
5512 * @param obj The box object
5514 * @see elm_box_unpack()
5515 * @see elm_box_unpack_all()
5517 EAPI void elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5521 * Remove the object given by @p subobj from the box @p obj without
5524 * @param obj The box object
5526 * @see elm_box_unpack_all()
5527 * @see elm_box_clear()
5529 EAPI void elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5531 * Remove all items from the box, without deleting them
5533 * Clear the box from all children, but don't delete the respective objects.
5534 * If no other references of the box children exist, the objects will never
5535 * be deleted, and thus the application will leak the memory. Make sure
5536 * when using this function that you hold a reference to all the objects
5537 * in the box @p obj.
5539 * @param obj The box object
5541 * @see elm_box_clear()
5542 * @see elm_box_unpack()
5544 EAPI void elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5546 * Retrieve a list of the objects packed into the box
5548 * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5549 * The order of the list corresponds to the packing order the box uses.
5551 * You must free this list with eina_list_free() once you are done with it.
5553 * @param obj The box object
5555 EAPI const Eina_List *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5557 * Set the space (padding) between the box's elements.
5559 * Extra space in pixels that will be added between a box child and its
5560 * neighbors after its containing cell has been calculated. This padding
5561 * is set for all elements in the box, besides any possible padding that
5562 * individual elements may have through their size hints.
5564 * @param obj The box object
5565 * @param horizontal The horizontal space between elements
5566 * @param vertical The vertical space between elements
5568 EAPI void elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5570 * Get the space (padding) between the box's elements.
5572 * @param obj The box object
5573 * @param horizontal The horizontal space between elements
5574 * @param vertical The vertical space between elements
5576 * @see elm_box_padding_set()
5578 EAPI void elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5580 * Set the alignment of the whole bouding box of contents.
5582 * Sets how the bounding box containing all the elements of the box, after
5583 * their sizes and position has been calculated, will be aligned within
5584 * the space given for the whole box widget.
5586 * @param obj The box object
5587 * @param horizontal The horizontal alignment of elements
5588 * @param vertical The vertical alignment of elements
5590 EAPI void elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
5592 * Get the alignment of the whole bouding box of contents.
5594 * @param obj The box object
5595 * @param horizontal The horizontal alignment of elements
5596 * @param vertical The vertical alignment of elements
5598 * @see elm_box_align_set()
5600 EAPI void elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
5603 * Set the layout defining function to be used by the box
5605 * Whenever anything changes that requires the box in @p obj to recalculate
5606 * the size and position of its elements, the function @p cb will be called
5607 * to determine what the layout of the children will be.
5609 * Once a custom function is set, everything about the children layout
5610 * is defined by it. The flags set by elm_box_horizontal_set() and
5611 * elm_box_homogeneous_set() no longer have any meaning, and the values
5612 * given by elm_box_padding_set() and elm_box_align_set() are up to this
5613 * layout function to decide if they are used and how. These last two
5614 * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
5615 * passed to @p cb. The @c Evas_Object the function receives is not the
5616 * Elementary widget, but the internal Evas Box it uses, so none of the
5617 * functions described here can be used on it.
5619 * Any of the layout functions in @c Evas can be used here, as well as the
5620 * special elm_box_layout_transition().
5622 * The final @p data argument received by @p cb is the same @p data passed
5623 * here, and the @p free_data function will be called to free it
5624 * whenever the box is destroyed or another layout function is set.
5626 * Setting @p cb to NULL will revert back to the default layout function.
5628 * @param obj The box object
5629 * @param cb The callback function used for layout
5630 * @param data Data that will be passed to layout function
5631 * @param free_data Function called to free @p data
5633 * @see elm_box_layout_transition()
5635 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);
5637 * Special layout function that animates the transition from one layout to another
5639 * Normally, when switching the layout function for a box, this will be
5640 * reflected immediately on screen on the next render, but it's also
5641 * possible to do this through an animated transition.
5643 * This is done by creating an ::Elm_Box_Transition and setting the box
5644 * layout to this function.
5648 * Elm_Box_Transition *t = elm_box_transition_new(1.0,
5649 * evas_object_box_layout_vertical, // start
5650 * NULL, // data for initial layout
5651 * NULL, // free function for initial data
5652 * evas_object_box_layout_horizontal, // end
5653 * NULL, // data for final layout
5654 * NULL, // free function for final data
5655 * anim_end, // will be called when animation ends
5656 * NULL); // data for anim_end function\
5657 * elm_box_layout_set(box, elm_box_layout_transition, t,
5658 * elm_box_transition_free);
5661 * @note This function can only be used with elm_box_layout_set(). Calling
5662 * it directly will not have the expected results.
5664 * @see elm_box_transition_new
5665 * @see elm_box_transition_free
5666 * @see elm_box_layout_set
5668 EAPI void elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
5670 * Create a new ::Elm_Box_Transition to animate the switch of layouts
5672 * If you want to animate the change from one layout to another, you need
5673 * to set the layout function of the box to elm_box_layout_transition(),
5674 * passing as user data to it an instance of ::Elm_Box_Transition with the
5675 * necessary information to perform this animation. The free function to
5676 * set for the layout is elm_box_transition_free().
5678 * The parameters to create an ::Elm_Box_Transition sum up to how long
5679 * will it be, in seconds, a layout function to describe the initial point,
5680 * another for the final position of the children and one function to be
5681 * called when the whole animation ends. This last function is useful to
5682 * set the definitive layout for the box, usually the same as the end
5683 * layout for the animation, but could be used to start another transition.
5685 * @param start_layout The layout function that will be used to start the animation
5686 * @param start_layout_data The data to be passed the @p start_layout function
5687 * @param start_layout_free_data Function to free @p start_layout_data
5688 * @param end_layout The layout function that will be used to end the animation
5689 * @param end_layout_free_data The data to be passed the @p end_layout function
5690 * @param end_layout_free_data Function to free @p end_layout_data
5691 * @param transition_end_cb Callback function called when animation ends
5692 * @param transition_end_data Data to be passed to @p transition_end_cb
5693 * @return An instance of ::Elm_Box_Transition
5695 * @see elm_box_transition_new
5696 * @see elm_box_layout_transition
5698 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);
5700 * Free a Elm_Box_Transition instance created with elm_box_transition_new().
5702 * This function is mostly useful as the @c free_data parameter in
5703 * elm_box_layout_set() when elm_box_layout_transition().
5705 * @param data The Elm_Box_Transition instance to be freed.
5707 * @see elm_box_transition_new
5708 * @see elm_box_layout_transition
5710 EAPI void elm_box_transition_free(void *data);
5717 * @defgroup Button Button
5719 * @image html img/widget/button/preview-00.png
5720 * @image latex img/widget/button/preview-00.eps
5721 * @image html img/widget/button/preview-01.png
5722 * @image latex img/widget/button/preview-01.eps
5723 * @image html img/widget/button/preview-02.png
5724 * @image latex img/widget/button/preview-02.eps
5726 * This is a push-button. Press it and run some function. It can contain
5727 * a simple label and icon object and it also has an autorepeat feature.
5729 * This widgets emits the following signals:
5730 * @li "clicked": the user clicked the button (press/release).
5731 * @li "repeated": the user pressed the button without releasing it.
5732 * @li "pressed": button was pressed.
5733 * @li "unpressed": button was released after being pressed.
5734 * In all three cases, the @c event parameter of the callback will be
5737 * Also, defined in the default theme, the button has the following styles
5739 * @li default: a normal button.
5740 * @li anchor: Like default, but the button fades away when the mouse is not
5741 * over it, leaving only the text or icon.
5742 * @li hoversel_vertical: Internally used by @ref Hoversel to give a
5743 * continuous look across its options.
5744 * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
5746 * Follow through a complete example @ref button_example_01 "here".
5750 * Add a new button to the parent's canvas
5752 * @param parent The parent object
5753 * @return The new object or NULL if it cannot be created
5755 EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5757 * Set the label used in the button
5759 * The passed @p label can be NULL to clean any existing text in it and
5760 * leave the button as an icon only object.
5762 * @param obj The button object
5763 * @param label The text will be written on the button
5764 * @deprecated use elm_object_text_set() instead.
5766 EINA_DEPRECATED EAPI void elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5768 * Get the label set for the button
5770 * The string returned is an internal pointer and should not be freed or
5771 * altered. It will also become invalid when the button is destroyed.
5772 * The string returned, if not NULL, is a stringshare, so if you need to
5773 * keep it around even after the button is destroyed, you can use
5774 * eina_stringshare_ref().
5776 * @param obj The button object
5777 * @return The text set to the label, or NULL if nothing is set
5778 * @deprecated use elm_object_text_set() instead.
5780 EINA_DEPRECATED EAPI const char *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5782 * Set the icon used for the button
5784 * Setting a new icon will delete any other that was previously set, making
5785 * any reference to them invalid. If you need to maintain the previous
5786 * object alive, unset it first with elm_button_icon_unset().
5788 * @param obj The button object
5789 * @param icon The icon object for the button
5791 EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5793 * Get the icon used for the button
5795 * Return the icon object which is set for this widget. If the button is
5796 * destroyed or another icon is set, the returned object will be deleted
5797 * and any reference to it will be invalid.
5799 * @param obj The button object
5800 * @return The icon object that is being used
5802 * @see elm_button_icon_unset()
5804 EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5806 * Remove the icon set without deleting it and return the object
5808 * This function drops the reference the button holds of the icon object
5809 * and returns this last object. It is used in case you want to remove any
5810 * icon, or set another one, without deleting the actual object. The button
5811 * will be left without an icon set.
5813 * @param obj The button object
5814 * @return The icon object that was being used
5816 EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5818 * Turn on/off the autorepeat event generated when the button is kept pressed
5820 * When off, no autorepeat is performed and buttons emit a normal @c clicked
5821 * signal when they are clicked.
5823 * When on, keeping a button pressed will continuously emit a @c repeated
5824 * signal until the button is released. The time it takes until it starts
5825 * emitting the signal is given by
5826 * elm_button_autorepeat_initial_timeout_set(), and the time between each
5827 * new emission by elm_button_autorepeat_gap_timeout_set().
5829 * @param obj The button object
5830 * @param on A bool to turn on/off the event
5832 EAPI void elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
5834 * Get whether the autorepeat feature is enabled
5836 * @param obj The button object
5837 * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
5839 * @see elm_button_autorepeat_set()
5841 EAPI Eina_Bool elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5843 * Set the initial timeout before the autorepeat event is generated
5845 * Sets the timeout, in seconds, since the button is pressed until the
5846 * first @c repeated signal is emitted. If @p t is 0.0 or less, there
5847 * won't be any delay and the even will be fired the moment the button is
5850 * @param obj The button object
5851 * @param t Timeout in seconds
5853 * @see elm_button_autorepeat_set()
5854 * @see elm_button_autorepeat_gap_timeout_set()
5856 EAPI void elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
5858 * Get the initial timeout before the autorepeat event is generated
5860 * @param obj The button object
5861 * @return Timeout in seconds
5863 * @see elm_button_autorepeat_initial_timeout_set()
5865 EAPI double elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5867 * Set the interval between each generated autorepeat event
5869 * After the first @c repeated event is fired, all subsequent ones will
5870 * follow after a delay of @p t seconds for each.
5872 * @param obj The button object
5873 * @param t Interval in seconds
5875 * @see elm_button_autorepeat_initial_timeout_set()
5877 EAPI void elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
5879 * Get the interval between each generated autorepeat event
5881 * @param obj The button object
5882 * @return Interval in seconds
5884 EAPI double elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5890 * @defgroup File_Selector_Button File Selector Button
5892 * @image html img/widget/fileselector_button/preview-00.png
5893 * @image latex img/widget/fileselector_button/preview-00.eps
5894 * @image html img/widget/fileselector_button/preview-01.png
5895 * @image latex img/widget/fileselector_button/preview-01.eps
5896 * @image html img/widget/fileselector_button/preview-02.png
5897 * @image latex img/widget/fileselector_button/preview-02.eps
5899 * This is a button that, when clicked, creates an Elementary
5900 * window (or inner window) <b> with a @ref Fileselector "file
5901 * selector widget" within</b>. When a file is chosen, the (inner)
5902 * window is closed and the button emits a signal having the
5903 * selected file as it's @c event_info.
5905 * This widget encapsulates operations on its internal file
5906 * selector on its own API. There is less control over its file
5907 * selector than that one would have instatiating one directly.
5909 * The following styles are available for this button:
5912 * @li @c "hoversel_vertical"
5913 * @li @c "hoversel_vertical_entry"
5915 * Smart callbacks one can register to:
5916 * - @c "file,chosen" - the user has selected a path, whose string
5917 * pointer comes as the @c event_info data (a stringshared
5920 * Here is an example on its usage:
5921 * @li @ref fileselector_button_example
5923 * @see @ref File_Selector_Entry for a similar widget.
5928 * Add a new file selector button widget to the given parent
5929 * Elementary (container) object
5931 * @param parent The parent object
5932 * @return a new file selector button widget handle or @c NULL, on
5935 EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5938 * Set the label for a given file selector button widget
5940 * @param obj The file selector button widget
5941 * @param label The text label to be displayed on @p obj
5943 * @deprecated use elm_object_text_set() instead.
5945 EINA_DEPRECATED EAPI void elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5948 * Get the label set for a given file selector button widget
5950 * @param obj The file selector button widget
5951 * @return The button label
5953 * @deprecated use elm_object_text_set() instead.
5955 EINA_DEPRECATED EAPI const char *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5958 * Set the icon on a given file selector button widget
5960 * @param obj The file selector button widget
5961 * @param icon The icon object for the button
5963 * Once the icon object is set, a previously set one will be
5964 * deleted. If you want to keep the latter, use the
5965 * elm_fileselector_button_icon_unset() function.
5967 * @see elm_fileselector_button_icon_get()
5969 EAPI void elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5972 * Get the icon set for a given file selector button widget
5974 * @param obj The file selector button widget
5975 * @return The icon object currently set on @p obj or @c NULL, if
5978 * @see elm_fileselector_button_icon_set()
5980 EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5983 * Unset the icon used in a given file selector button widget
5985 * @param obj The file selector button widget
5986 * @return The icon object that was being used on @p obj or @c
5989 * Unparent and return the icon object which was set for this
5992 * @see elm_fileselector_button_icon_set()
5994 EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5997 * Set the title for a given file selector button widget's window
5999 * @param obj The file selector button widget
6000 * @param title The title string
6002 * This will change the window's title, when the file selector pops
6003 * out after a click on the button. Those windows have the default
6004 * (unlocalized) value of @c "Select a file" as titles.
6006 * @note It will only take any effect if the file selector
6007 * button widget is @b not under "inwin mode".
6009 * @see elm_fileselector_button_window_title_get()
6011 EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6014 * Get the title set for a given file selector button widget's
6017 * @param obj The file selector button widget
6018 * @return Title of the file selector button's window
6020 * @see elm_fileselector_button_window_title_get() for more details
6022 EAPI const char *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6025 * Set the size of a given file selector button widget's window,
6026 * holding the file selector itself.
6028 * @param obj The file selector button widget
6029 * @param width The window's width
6030 * @param height The window's height
6032 * @note it will only take any effect if the file selector button
6033 * widget is @b not under "inwin mode". The default size for the
6034 * window (when applicable) is 400x400 pixels.
6036 * @see elm_fileselector_button_window_size_get()
6038 EAPI void elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6041 * Get the size of a given file selector button widget's window,
6042 * holding the file selector itself.
6044 * @param obj The file selector button widget
6045 * @param width Pointer into which to store the width value
6046 * @param height Pointer into which to store the height value
6048 * @note Use @c NULL pointers on the size values you're not
6049 * interested in: they'll be ignored by the function.
6051 * @see elm_fileselector_button_window_size_set(), for more details
6053 EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6056 * Set the initial file system path for a given file selector
6059 * @param obj The file selector button widget
6060 * @param path The path string
6062 * It must be a <b>directory</b> path, which will have the contents
6063 * displayed initially in the file selector's view, when invoked
6064 * from @p obj. The default initial path is the @c "HOME"
6065 * environment variable's value.
6067 * @see elm_fileselector_button_path_get()
6069 EAPI void elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6072 * Get the initial file system path set for a given file selector
6075 * @param obj The file selector button widget
6076 * @return path The path string
6078 * @see elm_fileselector_button_path_set() for more details
6080 EAPI const char *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6083 * Enable/disable a tree view in the given file selector button
6084 * widget's internal file selector
6086 * @param obj The file selector button widget
6087 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6090 * This has the same effect as elm_fileselector_expandable_set(),
6091 * but now applied to a file selector button's internal file
6094 * @note There's no way to put a file selector button's internal
6095 * file selector in "grid mode", as one may do with "pure" file
6098 * @see elm_fileselector_expandable_get()
6100 EAPI void elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6103 * Get whether tree view is enabled for the given file selector
6104 * button widget's internal file selector
6106 * @param obj The file selector button widget
6107 * @return @c EINA_TRUE if @p obj widget's internal file selector
6108 * is in tree view, @c EINA_FALSE otherwise (and or errors)
6110 * @see elm_fileselector_expandable_set() for more details
6112 EAPI Eina_Bool elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6115 * Set whether a given file selector button widget's internal file
6116 * selector is to display folders only or the directory contents,
6119 * @param obj The file selector button widget
6120 * @param only @c EINA_TRUE to make @p obj widget's internal file
6121 * selector only display directories, @c EINA_FALSE to make files
6122 * to be displayed in it too
6124 * This has the same effect as elm_fileselector_folder_only_set(),
6125 * but now applied to a file selector button's internal file
6128 * @see elm_fileselector_folder_only_get()
6130 EAPI void elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6133 * Get whether a given file selector button widget's internal file
6134 * selector is displaying folders only or the directory contents,
6137 * @param obj The file selector button widget
6138 * @return @c EINA_TRUE if @p obj widget's internal file
6139 * selector is only displaying directories, @c EINA_FALSE if files
6140 * are being displayed in it too (and on errors)
6142 * @see elm_fileselector_button_folder_only_set() for more details
6144 EAPI Eina_Bool elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6147 * Enable/disable the file name entry box where the user can type
6148 * in a name for a file, in a given file selector button widget's
6149 * internal file selector.
6151 * @param obj The file selector button widget
6152 * @param is_save @c EINA_TRUE to make @p obj widget's internal
6153 * file selector a "saving dialog", @c EINA_FALSE otherwise
6155 * This has the same effect as elm_fileselector_is_save_set(),
6156 * but now applied to a file selector button's internal file
6159 * @see elm_fileselector_is_save_get()
6161 EAPI void elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6164 * Get whether the given file selector button widget's internal
6165 * file selector is in "saving dialog" mode
6167 * @param obj The file selector button widget
6168 * @return @c EINA_TRUE, if @p obj widget's internal file selector
6169 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6172 * @see elm_fileselector_button_is_save_set() for more details
6174 EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6177 * Set whether a given file selector button widget's internal file
6178 * selector will raise an Elementary "inner window", instead of a
6179 * dedicated Elementary window. By default, it won't.
6181 * @param obj The file selector button widget
6182 * @param value @c EINA_TRUE to make it use an inner window, @c
6183 * EINA_TRUE to make it use a dedicated window
6185 * @see elm_win_inwin_add() for more information on inner windows
6186 * @see elm_fileselector_button_inwin_mode_get()
6188 EAPI void elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6191 * Get whether a given file selector button widget's internal file
6192 * selector will raise an Elementary "inner window", instead of a
6193 * dedicated Elementary window.
6195 * @param obj The file selector button widget
6196 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6197 * if it will use a dedicated window
6199 * @see elm_fileselector_button_inwin_mode_set() for more details
6201 EAPI Eina_Bool elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6208 * @defgroup File_Selector_Entry File Selector Entry
6210 * @image html img/widget/fileselector_entry/preview-00.png
6211 * @image latex img/widget/fileselector_entry/preview-00.eps
6213 * This is an entry made to be filled with or display a <b>file
6214 * system path string</b>. Besides the entry itself, the widget has
6215 * a @ref File_Selector_Button "file selector button" on its side,
6216 * which will raise an internal @ref Fileselector "file selector widget",
6217 * when clicked, for path selection aided by file system
6220 * This file selector may appear in an Elementary window or in an
6221 * inner window. When a file is chosen from it, the (inner) window
6222 * is closed and the selected file's path string is exposed both as
6223 * an smart event and as the new text on the entry.
6225 * This widget encapsulates operations on its internal file
6226 * selector on its own API. There is less control over its file
6227 * selector than that one would have instatiating one directly.
6229 * Smart callbacks one can register to:
6230 * - @c "changed" - The text within the entry was changed
6231 * - @c "activated" - The entry has had editing finished and
6232 * changes are to be "committed"
6233 * - @c "press" - The entry has been clicked
6234 * - @c "longpressed" - The entry has been clicked (and held) for a
6236 * - @c "clicked" - The entry has been clicked
6237 * - @c "clicked,double" - The entry has been double clicked
6238 * - @c "focused" - The entry has received focus
6239 * - @c "unfocused" - The entry has lost focus
6240 * - @c "selection,paste" - A paste action has occurred on the
6242 * - @c "selection,copy" - A copy action has occurred on the entry
6243 * - @c "selection,cut" - A cut action has occurred on the entry
6244 * - @c "unpressed" - The file selector entry's button was released
6245 * after being pressed.
6246 * - @c "file,chosen" - The user has selected a path via the file
6247 * selector entry's internal file selector, whose string pointer
6248 * comes as the @c event_info data (a stringshared string)
6250 * Here is an example on its usage:
6251 * @li @ref fileselector_entry_example
6253 * @see @ref File_Selector_Button for a similar widget.
6258 * Add a new file selector entry widget to the given parent
6259 * Elementary (container) object
6261 * @param parent The parent object
6262 * @return a new file selector entry widget handle or @c NULL, on
6265 EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6268 * Set the label for a given file selector entry widget's button
6270 * @param obj The file selector entry widget
6271 * @param label The text label to be displayed on @p obj widget's
6274 * @deprecated use elm_object_text_set() instead.
6276 EINA_DEPRECATED EAPI void elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6279 * Get the label set for a given file selector entry widget's button
6281 * @param obj The file selector entry widget
6282 * @return The widget button's label
6284 * @deprecated use elm_object_text_set() instead.
6286 EINA_DEPRECATED EAPI const char *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6289 * Set the icon on a given file selector entry widget's button
6291 * @param obj The file selector entry widget
6292 * @param icon The icon object for the entry's button
6294 * Once the icon object is set, a previously set one will be
6295 * deleted. If you want to keep the latter, use the
6296 * elm_fileselector_entry_button_icon_unset() function.
6298 * @see elm_fileselector_entry_button_icon_get()
6300 EAPI void elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6303 * Get the icon set for a given file selector entry widget's button
6305 * @param obj The file selector entry widget
6306 * @return The icon object currently set on @p obj widget's button
6307 * or @c NULL, if none is
6309 * @see elm_fileselector_entry_button_icon_set()
6311 EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6314 * Unset the icon used in a given file selector entry widget's
6317 * @param obj The file selector entry widget
6318 * @return The icon object that was being used on @p obj widget's
6319 * button or @c NULL, on errors
6321 * Unparent and return the icon object which was set for this
6324 * @see elm_fileselector_entry_button_icon_set()
6326 EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6329 * Set the title for a given file selector entry widget's window
6331 * @param obj The file selector entry widget
6332 * @param title The title string
6334 * This will change the window's title, when the file selector pops
6335 * out after a click on the entry's button. Those windows have the
6336 * default (unlocalized) value of @c "Select a file" as titles.
6338 * @note It will only take any effect if the file selector
6339 * entry widget is @b not under "inwin mode".
6341 * @see elm_fileselector_entry_window_title_get()
6343 EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6346 * Get the title set for a given file selector entry widget's
6349 * @param obj The file selector entry widget
6350 * @return Title of the file selector entry's window
6352 * @see elm_fileselector_entry_window_title_get() for more details
6354 EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6357 * Set the size of a given file selector entry widget's window,
6358 * holding the file selector itself.
6360 * @param obj The file selector entry widget
6361 * @param width The window's width
6362 * @param height The window's height
6364 * @note it will only take any effect if the file selector entry
6365 * widget is @b not under "inwin mode". The default size for the
6366 * window (when applicable) is 400x400 pixels.
6368 * @see elm_fileselector_entry_window_size_get()
6370 EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6373 * Get the size of a given file selector entry widget's window,
6374 * holding the file selector itself.
6376 * @param obj The file selector entry widget
6377 * @param width Pointer into which to store the width value
6378 * @param height Pointer into which to store the height value
6380 * @note Use @c NULL pointers on the size values you're not
6381 * interested in: they'll be ignored by the function.
6383 * @see elm_fileselector_entry_window_size_set(), for more details
6385 EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6388 * Set the initial file system path and the entry's path string for
6389 * a given file selector entry widget
6391 * @param obj The file selector entry widget
6392 * @param path The path string
6394 * It must be a <b>directory</b> path, which will have the contents
6395 * displayed initially in the file selector's view, when invoked
6396 * from @p obj. The default initial path is the @c "HOME"
6397 * environment variable's value.
6399 * @see elm_fileselector_entry_path_get()
6401 EAPI void elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6404 * Get the entry's path string for a given file selector entry
6407 * @param obj The file selector entry widget
6408 * @return path The path string
6410 * @see elm_fileselector_entry_path_set() for more details
6412 EAPI const char *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6415 * Enable/disable a tree view in the given file selector entry
6416 * widget's internal file selector
6418 * @param obj The file selector entry widget
6419 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6422 * This has the same effect as elm_fileselector_expandable_set(),
6423 * but now applied to a file selector entry's internal file
6426 * @note There's no way to put a file selector entry's internal
6427 * file selector in "grid mode", as one may do with "pure" file
6430 * @see elm_fileselector_expandable_get()
6432 EAPI void elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6435 * Get whether tree view is enabled for the given file selector
6436 * entry widget's internal file selector
6438 * @param obj The file selector entry widget
6439 * @return @c EINA_TRUE if @p obj widget's internal file selector
6440 * is in tree view, @c EINA_FALSE otherwise (and or errors)
6442 * @see elm_fileselector_expandable_set() for more details
6444 EAPI Eina_Bool elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6447 * Set whether a given file selector entry widget's internal file
6448 * selector is to display folders only or the directory contents,
6451 * @param obj The file selector entry widget
6452 * @param only @c EINA_TRUE to make @p obj widget's internal file
6453 * selector only display directories, @c EINA_FALSE to make files
6454 * to be displayed in it too
6456 * This has the same effect as elm_fileselector_folder_only_set(),
6457 * but now applied to a file selector entry's internal file
6460 * @see elm_fileselector_folder_only_get()
6462 EAPI void elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6465 * Get whether a given file selector entry widget's internal file
6466 * selector is displaying folders only or the directory contents,
6469 * @param obj The file selector entry widget
6470 * @return @c EINA_TRUE if @p obj widget's internal file
6471 * selector is only displaying directories, @c EINA_FALSE if files
6472 * are being displayed in it too (and on errors)
6474 * @see elm_fileselector_entry_folder_only_set() for more details
6476 EAPI Eina_Bool elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6479 * Enable/disable the file name entry box where the user can type
6480 * in a name for a file, in a given file selector entry widget's
6481 * internal file selector.
6483 * @param obj The file selector entry widget
6484 * @param is_save @c EINA_TRUE to make @p obj widget's internal
6485 * file selector a "saving dialog", @c EINA_FALSE otherwise
6487 * This has the same effect as elm_fileselector_is_save_set(),
6488 * but now applied to a file selector entry's internal file
6491 * @see elm_fileselector_is_save_get()
6493 EAPI void elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6496 * Get whether the given file selector entry widget's internal
6497 * file selector is in "saving dialog" mode
6499 * @param obj The file selector entry widget
6500 * @return @c EINA_TRUE, if @p obj widget's internal file selector
6501 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6504 * @see elm_fileselector_entry_is_save_set() for more details
6506 EAPI Eina_Bool elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6509 * Set whether a given file selector entry widget's internal file
6510 * selector will raise an Elementary "inner window", instead of a
6511 * dedicated Elementary window. By default, it won't.
6513 * @param obj The file selector entry widget
6514 * @param value @c EINA_TRUE to make it use an inner window, @c
6515 * EINA_TRUE to make it use a dedicated window
6517 * @see elm_win_inwin_add() for more information on inner windows
6518 * @see elm_fileselector_entry_inwin_mode_get()
6520 EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6523 * Get whether a given file selector entry widget's internal file
6524 * selector will raise an Elementary "inner window", instead of a
6525 * dedicated Elementary window.
6527 * @param obj The file selector entry widget
6528 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6529 * if it will use a dedicated window
6531 * @see elm_fileselector_entry_inwin_mode_set() for more details
6533 EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6536 * Set the initial file system path for a given file selector entry
6539 * @param obj The file selector entry widget
6540 * @param path The path string
6542 * It must be a <b>directory</b> path, which will have the contents
6543 * displayed initially in the file selector's view, when invoked
6544 * from @p obj. The default initial path is the @c "HOME"
6545 * environment variable's value.
6547 * @see elm_fileselector_entry_path_get()
6549 EAPI void elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6552 * Get the parent directory's path to the latest file selection on
6553 * a given filer selector entry widget
6555 * @param obj The file selector object
6556 * @return The (full) path of the directory of the last selection
6557 * on @p obj widget, a @b stringshared string
6559 * @see elm_fileselector_entry_path_set()
6561 EAPI const char *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6568 * @defgroup Scroller Scroller
6570 * A scroller holds a single object and "scrolls it around". This means that
6571 * it allows the user to use a scrollbar (or a finger) to drag the viewable
6572 * region around, allowing to move through a much larger object that is
6573 * contained in the scroller. The scroiller will always have a small minimum
6574 * size by default as it won't be limited by the contents of the scroller.
6576 * Signals that you can add callbacks for are:
6577 * @li "edge,left" - the left edge of the content has been reached
6578 * @li "edge,right" - the right edge of the content has been reached
6579 * @li "edge,top" - the top edge of the content has been reached
6580 * @li "edge,bottom" - the bottom edge of the content has been reached
6581 * @li "scroll" - the content has been scrolled (moved)
6582 * @li "scroll,anim,start" - scrolling animation has started
6583 * @li "scroll,anim,stop" - scrolling animation has stopped
6584 * @li "scroll,drag,start" - dragging the contents around has started
6585 * @li "scroll,drag,stop" - dragging the contents around has stopped
6586 * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
6589 * @note When Elemementary is in embedded mode the scrollbars will not be
6590 * dragable, they appear merely as indicators of how much has been scrolled.
6591 * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
6592 * fingerscroll) won't work.
6594 * In @ref tutorial_scroller you'll find an example of how to use most of
6599 * @brief Type that controls when scrollbars should appear.
6601 * @see elm_scroller_policy_set()
6603 typedef enum _Elm_Scroller_Policy
6605 ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
6606 ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
6607 ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
6608 ELM_SCROLLER_POLICY_LAST
6609 } Elm_Scroller_Policy;
6611 * @brief Add a new scroller to the parent
6613 * @param parent The parent object
6614 * @return The new object or NULL if it cannot be created
6616 EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6618 * @brief Set the content of the scroller widget (the object to be scrolled around).
6620 * @param obj The scroller object
6621 * @param content The new content object
6623 * Once the content object is set, a previously set one will be deleted.
6624 * If you want to keep that old content object, use the
6625 * elm_scroller_content_unset() function.
6627 EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
6629 * @brief Get the content of the scroller widget
6631 * @param obj The slider object
6632 * @return The content that is being used
6634 * Return the content object which is set for this widget
6636 * @see elm_scroller_content_set()
6638 EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6640 * @brief Unset the content of the scroller widget
6642 * @param obj The slider object
6643 * @return The content that was being used
6645 * Unparent and return the content object which was set for this widget
6647 * @see elm_scroller_content_set()
6649 EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6651 * @brief Set custom theme elements for the scroller
6653 * @param obj The scroller object
6654 * @param widget The widget name to use (default is "scroller")
6655 * @param base The base name to use (default is "base")
6657 EAPI void elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
6659 * @brief Make the scroller minimum size limited to the minimum size of the content
6661 * @param obj The scroller object
6662 * @param w Enable limiting minimum size horizontally
6663 * @param h Enable limiting minimum size vertically
6665 * By default the scroller will be as small as its design allows,
6666 * irrespective of its content. This will make the scroller minimum size the
6667 * right size horizontally and/or vertically to perfectly fit its content in
6670 EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
6672 * @brief Show a specific virtual region within the scroller content object
6674 * @param obj The scroller object
6675 * @param x X coordinate of the region
6676 * @param y Y coordinate of the region
6677 * @param w Width of the region
6678 * @param h Height of the region
6680 * This will ensure all (or part if it does not fit) of the designated
6681 * region in the virtual content object (0, 0 starting at the top-left of the
6682 * virtual content object) is shown within the scroller.
6684 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);
6686 * @brief Set the scrollbar visibility policy
6688 * @param obj The scroller object
6689 * @param policy_h Horizontal scrollbar policy
6690 * @param policy_v Vertical scrollbar policy
6692 * This sets the scrollbar visibility policy for the given scroller.
6693 * ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it is
6694 * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
6695 * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
6696 * respectively for the horizontal and vertical scrollbars.
6698 EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
6700 * @brief Gets scrollbar visibility policy
6702 * @param obj The scroller object
6703 * @param policy_h Horizontal scrollbar policy
6704 * @param policy_v Vertical scrollbar policy
6706 * @see elm_scroller_policy_set()
6708 EAPI void elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
6710 * @brief Get the currently visible content region
6712 * @param obj The scroller object
6713 * @param x X coordinate of the region
6714 * @param y Y coordinate of the region
6715 * @param w Width of the region
6716 * @param h Height of the region
6718 * This gets the current region in the content object that is visible through
6719 * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
6720 * w, @p h values pointed to.
6722 * @note All coordinates are relative to the content.
6724 * @see elm_scroller_region_show()
6726 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);
6728 * @brief Get the size of the content object
6730 * @param obj The scroller object
6731 * @param w Width return
6732 * @param h Height return
6734 * This gets the size of the content object of the scroller.
6736 EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
6738 * @brief Set bouncing behavior
6740 * @param obj The scroller object
6741 * @param h_bounce Will the scroller bounce horizontally or not
6742 * @param v_bounce Will the scroller bounce vertically or not
6744 * When scrolling, the scroller may "bounce" when reaching an edge of the
6745 * content object. This is a visual way to indicate the end has been reached.
6746 * This is enabled by default for both axis. This will set if it is enabled
6747 * for that axis with the boolean parameters for each axis.
6749 EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
6751 * @brief Get the bounce mode
6753 * @param obj The Scroller object
6754 * @param h_bounce Allow bounce horizontally
6755 * @param v_bounce Allow bounce vertically
6757 * @see elm_scroller_bounce_set()
6759 EAPI void elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
6761 * @brief Set scroll page size relative to viewport size.
6763 * @param obj The scroller object
6764 * @param h_pagerel The horizontal page relative size
6765 * @param v_pagerel The vertical page relative size
6767 * The scroller is capable of limiting scrolling by the user to "pages". That
6768 * is to jump by and only show a "whole page" at a time as if the continuous
6769 * area of the scroller content is split into page sized pieces. This sets
6770 * the size of a page relative to the viewport of the scroller. 1.0 is "1
6771 * viewport" is size (horizontally or vertically). 0.0 turns it off in that
6772 * axis. This is mutually exclusive with page size
6773 * (see elm_scroller_page_size_set() for more information). Likewise 0.5
6774 * is "half a viewport". Sane usable valus are normally between 0.0 and 1.0
6775 * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
6778 EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
6780 * @brief Set scroll page size.
6782 * @param obj The scroller object
6783 * @param h_pagesize The horizontal page size
6784 * @param v_pagesize The vertical page size
6786 * This sets the page size to an absolute fixed value, with 0 turning it off
6789 * @see elm_scroller_page_relative_set()
6791 EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
6793 * @brief Show a specific virtual region within the scroller content object.
6795 * @param obj The scroller object
6796 * @param x X coordinate of the region
6797 * @param y Y coordinate of the region
6798 * @param w Width of the region
6799 * @param h Height of the region
6801 * This will ensure all (or part if it does not fit) of the designated
6802 * region in the virtual content object (0, 0 starting at the top-left of the
6803 * virtual content object) is shown within the scroller. Unlike
6804 * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
6805 * to this location (if configuration in general calls for transitions). It
6806 * may not jump immediately to the new location and make take a while and
6807 * show other content along the way.
6809 * @see elm_scroller_region_show()
6811 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);
6813 * @brief Set event propagation on a scroller
6815 * @param obj The scroller object
6816 * @param propagation If propagation is enabled or not
6818 * This enables or disabled event propagation from the scroller content to
6819 * the scroller and its parent. By default event propagation is disabled.
6821 EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
6823 * @brief Get event propagation for a scroller
6825 * @param obj The scroller object
6826 * @return The propagation state
6828 * This gets the event propagation for a scroller.
6830 * @see elm_scroller_propagate_events_set()
6832 EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj);
6838 * @defgroup Label Label
6840 * @image html img/widget/label/preview-00.png
6841 * @image latex img/widget/label/preview-00.eps
6843 * @brief Widget to display text, with simple html-like markup.
6845 * The Label widget @b doesn't allow text to overflow its boundaries, if the
6846 * text doesn't fit the geometry of the label it will be ellipsized or be
6847 * cut. Elementary provides several themes for this widget:
6848 * @li default - No animation
6849 * @li marker - Centers the text in the label and make it bold by default
6850 * @li slide_long - The entire text appears from the right of the screen and
6851 * slides until it disappears in the left of the screen(reappering on the
6853 * @li slide_short - The text appears in the left of the label and slides to
6854 * the right to show the overflow. When all of the text has been shown the
6855 * position is reset.
6856 * @li slide_bounce - The text appears in the left of the label and slides to
6857 * the right to show the overflow. When all of the text has been shown the
6858 * animation reverses, moving the text to the left.
6860 * Custom themes can of course invent new markup tags and style them any way
6863 * See @ref tutorial_label for a demonstration of how to use a label widget.
6867 * @brief Add a new label to the parent
6869 * @param parent The parent object
6870 * @return The new object or NULL if it cannot be created
6872 EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6874 * @brief Set the label on the label object
6876 * @param obj The label object
6877 * @param label The label will be used on the label object
6878 * @deprecated See elm_object_text_set()
6880 EINA_DEPRECATED EAPI void elm_label_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_set instead */
6882 * @brief Get the label used on the label object
6884 * @param obj The label object
6885 * @return The string inside the label
6886 * @deprecated See elm_object_text_get()
6888 EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
6890 * @brief Set the wrapping behavior of the label
6892 * @param obj The label object
6893 * @param wrap To wrap text or not
6895 * By default no wrapping is done. Possible values for @p wrap are:
6896 * @li ELM_WRAP_NONE - No wrapping
6897 * @li ELM_WRAP_CHAR - wrap between characters
6898 * @li ELM_WRAP_WORD - wrap between words
6899 * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
6901 EAPI void elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
6903 * @brief Get the wrapping behavior of the label
6905 * @param obj The label object
6908 * @see elm_label_line_wrap_set()
6910 EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6912 * @brief Set wrap width of the label
6914 * @param obj The label object
6915 * @param w The wrap width in pixels at a minimum where words need to wrap
6917 * This function sets the maximum width size hint of the label.
6919 * @warning This is only relevant if the label is inside a container.
6921 EAPI void elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
6923 * @brief Get wrap width of the label
6925 * @param obj The label object
6926 * @return The wrap width in pixels at a minimum where words need to wrap
6928 * @see elm_label_wrap_width_set()
6930 EAPI Evas_Coord elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6932 * @brief Set wrap height of the label
6934 * @param obj The label object
6935 * @param h The wrap height in pixels at a minimum where words need to wrap
6937 * This function sets the maximum height size hint of the label.
6939 * @warning This is only relevant if the label is inside a container.
6941 EAPI void elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
6943 * @brief get wrap width of the label
6945 * @param obj The label object
6946 * @return The wrap height in pixels at a minimum where words need to wrap
6948 EAPI Evas_Coord elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6950 * @brief Set the font size on the label object.
6952 * @param obj The label object
6953 * @param size font size
6955 * @warning NEVER use this. It is for hyper-special cases only. use styles
6956 * instead. e.g. "big", "medium", "small" - or better name them by use:
6957 * "title", "footnote", "quote" etc.
6959 EAPI void elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
6961 * @brief Set the text color on the label object
6963 * @param obj The label object
6964 * @param r Red property background color of The label object
6965 * @param g Green property background color of The label object
6966 * @param b Blue property background color of The label object
6967 * @param a Alpha property background color of The label object
6969 * @warning NEVER use this. It is for hyper-special cases only. use styles
6970 * instead. e.g. "big", "medium", "small" - or better name them by use:
6971 * "title", "footnote", "quote" etc.
6973 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);
6975 * @brief Set the text align on the label object
6977 * @param obj The label object
6978 * @param align align mode ("left", "center", "right")
6980 * @warning NEVER use this. It is for hyper-special cases only. use styles
6981 * instead. e.g. "big", "medium", "small" - or better name them by use:
6982 * "title", "footnote", "quote" etc.
6984 EAPI void elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
6986 * @brief Set background color of the label
6988 * @param obj The label object
6989 * @param r Red property background color of The label object
6990 * @param g Green property background color of The label object
6991 * @param b Blue property background color of The label object
6992 * @param a Alpha property background alpha of The label object
6994 * @warning NEVER use this. It is for hyper-special cases only. use styles
6995 * instead. e.g. "big", "medium", "small" - or better name them by use:
6996 * "title", "footnote", "quote" etc.
6998 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);
7000 * @brief Set the ellipsis behavior of the label
7002 * @param obj The label object
7003 * @param ellipsis To ellipsis text or not
7005 * If set to true and the text doesn't fit in the label an ellipsis("...")
7006 * will be shown at the end of the widget.
7008 * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7009 * choosen wrap method was ELM_WRAP_WORD.
7011 EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7013 * @brief Set the text slide of the label
7015 * @param obj The label object
7016 * @param slide To start slide or stop
7018 * If set to true the text of the label will slide throught the length of
7021 * @warning This only work with the themes "slide_short", "slide_long" and
7024 EAPI void elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7026 * @brief Get the text slide mode of the label
7028 * @param obj The label object
7029 * @return slide slide mode value
7031 * @see elm_label_slide_set()
7033 EAPI Eina_Bool elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7035 * @brief Set the slide duration(speed) of the label
7037 * @param obj The label object
7038 * @return The duration in seconds in moving text from slide begin position
7039 * to slide end position
7041 EAPI void elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7043 * @brief Get the slide duration(speed) of the label
7045 * @param obj The label object
7046 * @return The duration time in moving text from slide begin position to slide end position
7048 * @see elm_label_slide_duration_set()
7050 EAPI double elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7056 * @defgroup Toggle Toggle
7058 * @image html img/widget/toggle/preview-00.png
7059 * @image latex img/widget/toggle/preview-00.eps
7061 * @brief A toggle is a slider which can be used to toggle between
7062 * two values. It has two states: on and off.
7064 * Signals that you can add callbacks for are:
7065 * @li "changed" - Whenever the toggle value has been changed. Is not called
7066 * until the toggle is released by the cursor (assuming it
7067 * has been triggered by the cursor in the first place).
7069 * @ref tutorial_toggle show how to use a toggle.
7073 * @brief Add a toggle to @p parent.
7075 * @param parent The parent object
7077 * @return The toggle object
7079 EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7081 * @brief Sets the label to be displayed with the toggle.
7083 * @param obj The toggle object
7084 * @param label The label to be displayed
7086 * @deprecated use elm_object_text_set() instead.
7088 EINA_DEPRECATED EAPI void elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7090 * @brief Gets the label of the toggle
7092 * @param obj toggle object
7093 * @return The label of the toggle
7095 * @deprecated use elm_object_text_get() instead.
7097 EINA_DEPRECATED EAPI const char *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7099 * @brief Set the icon used for the toggle
7101 * @param obj The toggle object
7102 * @param icon The icon object for the button
7104 * Once the icon object is set, a previously set one will be deleted
7105 * If you want to keep that old content object, use the
7106 * elm_toggle_icon_unset() function.
7108 EAPI void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7110 * @brief Get the icon used for the toggle
7112 * @param obj The toggle object
7113 * @return The icon object that is being used
7115 * Return the icon object which is set for this widget.
7117 * @see elm_toggle_icon_set()
7119 EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7121 * @brief Unset the icon used for the toggle
7123 * @param obj The toggle object
7124 * @return The icon object that was being used
7126 * Unparent and return the icon object which was set for this widget.
7128 * @see elm_toggle_icon_set()
7130 EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7132 * @brief Sets the labels to be associated with the on and off states of the toggle.
7134 * @param obj The toggle object
7135 * @param onlabel The label displayed when the toggle is in the "on" state
7136 * @param offlabel The label displayed when the toggle is in the "off" state
7138 EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7140 * @brief Gets the labels associated with the on and off states of the toggle.
7142 * @param obj The toggle object
7143 * @param onlabel A char** to place the onlabel of @p obj into
7144 * @param offlabel A char** to place the offlabel of @p obj into
7146 EAPI void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7148 * @brief Sets the state of the toggle to @p state.
7150 * @param obj The toggle object
7151 * @param state The state of @p obj
7153 EAPI void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7155 * @brief Gets the state of the toggle to @p state.
7157 * @param obj The toggle object
7158 * @return The state of @p obj
7160 EAPI Eina_Bool elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7162 * @brief Sets the state pointer of the toggle to @p statep.
7164 * @param obj The toggle object
7165 * @param statep The state pointer of @p obj
7167 EAPI void elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7173 * @defgroup Frame Frame
7175 * @image html img/widget/frame/preview-00.png
7176 * @image latex img/widget/frame/preview-00.eps
7178 * @brief Frame is a widget that holds some content and has a title.
7180 * The default look is a frame with a title, but Frame supports multple
7188 * @li outdent_bottom
7190 * Of all this styles only default shows the title. Frame emits no signals.
7192 * For a detailed example see the @ref tutorial_frame.
7197 * @brief Add a new frame to the parent
7199 * @param parent The parent object
7200 * @return The new object or NULL if it cannot be created
7202 EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7204 * @brief Set the frame label
7206 * @param obj The frame object
7207 * @param label The label of this frame object
7209 * @deprecated use elm_object_text_set() instead.
7211 EINA_DEPRECATED EAPI void elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7213 * @brief Get the frame label
7215 * @param obj The frame object
7217 * @return The label of this frame objet or NULL if unable to get frame
7219 * @deprecated use elm_object_text_get() instead.
7221 EINA_DEPRECATED EAPI const char *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7223 * @brief Set the content of the frame widget
7225 * Once the content object is set, a previously set one will be deleted.
7226 * If you want to keep that old content object, use the
7227 * elm_frame_content_unset() function.
7229 * @param obj The frame object
7230 * @param content The content will be filled in this frame object
7232 EAPI void elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7234 * @brief Get the content of the frame widget
7236 * Return the content object which is set for this widget
7238 * @param obj The frame object
7239 * @return The content that is being used
7241 EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7243 * @brief Unset the content of the frame widget
7245 * Unparent and return the content object which was set for this widget
7247 * @param obj The frame object
7248 * @return The content that was being used
7250 EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7256 * @defgroup Table Table
7258 * A container widget to arrange other widgets in a table where items can
7259 * also span multiple columns or rows - even overlap (and then be raised or
7260 * lowered accordingly to adjust stacking if they do overlap).
7262 * The followin are examples of how to use a table:
7263 * @li @ref tutorial_table_01
7264 * @li @ref tutorial_table_02
7269 * @brief Add a new table to the parent
7271 * @param parent The parent object
7272 * @return The new object or NULL if it cannot be created
7274 EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7276 * @brief Set the homogeneous layout in the table
7278 * @param obj The layout object
7279 * @param homogeneous A boolean to set if the layout is homogeneous in the
7280 * table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
7282 EAPI void elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7284 * @brief Get the current table homogeneous mode.
7286 * @param obj The table object
7287 * @return A boolean to indicating if the layout is homogeneous in the table
7288 * (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
7290 EAPI Eina_Bool elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7292 * @warning <b>Use elm_table_homogeneous_set() instead</b>
7294 EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7296 * @warning <b>Use elm_table_homogeneous_get() instead</b>
7298 EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7300 * @brief Set padding between cells.
7302 * @param obj The layout object.
7303 * @param horizontal set the horizontal padding.
7304 * @param vertical set the vertical padding.
7306 * Default value is 0.
7308 EAPI void elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7310 * @brief Get padding between cells.
7312 * @param obj The layout object.
7313 * @param horizontal set the horizontal padding.
7314 * @param vertical set the vertical padding.
7316 EAPI void elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7318 * @brief Add a subobject on the table with the coordinates passed
7320 * @param obj The table object
7321 * @param subobj The subobject to be added to the table
7322 * @param x Row number
7323 * @param y Column number
7327 * @note All positioning inside the table is relative to rows and columns, so
7328 * a value of 0 for x and y, means the top left cell of the table, and a
7329 * value of 1 for w and h means @p subobj only takes that 1 cell.
7331 EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7333 * @brief Remove child from table.
7335 * @param obj The table object
7336 * @param subobj The subobject
7338 EAPI void elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7340 * @brief Faster way to remove all child objects from a table object.
7342 * @param obj The table object
7343 * @param clear If true, will delete children, else just remove from table.
7345 EAPI void elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7347 * @brief Set the packing location of an existing child of the table
7349 * @param subobj The subobject to be modified in the table
7350 * @param x Row number
7351 * @param y Column number
7355 * Modifies the position of an object already in the table.
7357 * @note All positioning inside the table is relative to rows and columns, so
7358 * a value of 0 for x and y, means the top left cell of the table, and a
7359 * value of 1 for w and h means @p subobj only takes that 1 cell.
7361 EAPI void elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7363 * @brief Get the packing location of an existing child of the table
7365 * @param subobj The subobject to be modified in the table
7366 * @param x Row number
7367 * @param y Column number
7371 * @see elm_table_pack_set()
7373 EAPI void elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7379 * @defgroup Gengrid Gengrid (Generic grid)
7381 * This widget aims to position objects in a grid layout while
7382 * actually creating and rendering only the visible ones, using the
7383 * same idea as the @ref Genlist "genlist": the user defines a @b
7384 * class for each item, specifying functions that will be called at
7385 * object creation, deletion, etc. When those items are selected by
7386 * the user, a callback function is issued. Users may interact with
7387 * a gengrid via the mouse (by clicking on items to select them and
7388 * clicking on the grid's viewport and swiping to pan the whole
7389 * view) or via the keyboard, navigating through item with the
7392 * @section Gengrid_Layouts Gengrid layouts
7394 * Gengrids may layout its items in one of two possible layouts:
7398 * When in "horizontal mode", items will be placed in @b columns,
7399 * from top to bottom and, when the space for a column is filled,
7400 * another one is started on the right, thus expanding the grid
7401 * horizontally, making for horizontal scrolling. When in "vertical
7402 * mode" , though, items will be placed in @b rows, from left to
7403 * right and, when the space for a row is filled, another one is
7404 * started below, thus expanding the grid vertically (and making
7405 * for vertical scrolling).
7407 * @section Gengrid_Items Gengrid items
7409 * An item in a gengrid can have 0 or more text labels (they can be
7410 * regular text or textblock Evas objects - that's up to the style
7411 * to determine), 0 or more icons (which are simply objects
7412 * swallowed into the gengrid item's theming Edje object) and 0 or
7413 * more <b>boolean states</b>, which have the behavior left to the
7414 * user to define. The Edje part names for each of these properties
7415 * will be looked up, in the theme file for the gengrid, under the
7416 * Edje (string) data items named @c "labels", @c "icons" and @c
7417 * "states", respectively. For each of those properties, if more
7418 * than one part is provided, they must have names listed separated
7419 * by spaces in the data fields. For the default gengrid item
7420 * theme, we have @b one label part (@c "elm.text"), @b two icon
7421 * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
7424 * A gengrid item may be at one of several styles. Elementary
7425 * provides one by default - "default", but this can be extended by
7426 * system or application custom themes/overlays/extensions (see
7427 * @ref Theme "themes" for more details).
7429 * @section Gengrid_Item_Class Gengrid item classes
7431 * In order to have the ability to add and delete items on the fly,
7432 * gengrid implements a class (callback) system where the
7433 * application provides a structure with information about that
7434 * type of item (gengrid may contain multiple different items with
7435 * different classes, states and styles). Gengrid will call the
7436 * functions in this struct (methods) when an item is "realized"
7437 * (i.e., created dynamically, while the user is scrolling the
7438 * grid). All objects will simply be deleted when no longer needed
7439 * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
7440 * contains the following members:
7441 * - @c item_style - This is a constant string and simply defines
7442 * the name of the item style. It @b must be specified and the
7443 * default should be @c "default".
7444 * - @c func.label_get - This function is called when an item
7445 * object is actually created. The @c data parameter will point to
7446 * the same data passed to elm_gengrid_item_append() and related
7447 * item creation functions. The @c obj parameter is the gengrid
7448 * object itself, while the @c part one is the name string of one
7449 * of the existing text parts in the Edje group implementing the
7450 * item's theme. This function @b must return a strdup'()ed string,
7451 * as the caller will free() it when done. See
7452 * #Elm_Gengrid_Item_Label_Get_Cb.
7453 * - @c func.icon_get - This function is called when an item object
7454 * is actually created. The @c data parameter will point to the
7455 * same data passed to elm_gengrid_item_append() and related item
7456 * creation functions. The @c obj parameter is the gengrid object
7457 * itself, while the @c part one is the name string of one of the
7458 * existing (icon) swallow parts in the Edje group implementing the
7459 * item's theme. It must return @c NULL, when no icon is desired,
7460 * or a valid object handle, otherwise. The object will be deleted
7461 * by the gengrid on its deletion or when the item is "unrealized".
7462 * See #Elm_Gengrid_Item_Icon_Get_Cb.
7463 * - @c func.state_get - This function is called when an item
7464 * object is actually created. The @c data parameter will point to
7465 * the same data passed to elm_gengrid_item_append() and related
7466 * item creation functions. The @c obj parameter is the gengrid
7467 * object itself, while the @c part one is the name string of one
7468 * of the state parts in the Edje group implementing the item's
7469 * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
7470 * true/on. Gengrids will emit a signal to its theming Edje object
7471 * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
7472 * "source" arguments, respectively, when the state is true (the
7473 * default is false), where @c XXX is the name of the (state) part.
7474 * See #Elm_Gengrid_Item_State_Get_Cb.
7475 * - @c func.del - This is called when elm_gengrid_item_del() is
7476 * called on an item or elm_gengrid_clear() is called on the
7477 * gengrid. This is intended for use when gengrid items are
7478 * deleted, so any data attached to the item (e.g. its data
7479 * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
7481 * @section Gengrid_Usage_Hints Usage hints
7483 * If the user wants to have multiple items selected at the same
7484 * time, elm_gengrid_multi_select_set() will permit it. If the
7485 * gengrid is single-selection only (the default), then
7486 * elm_gengrid_select_item_get() will return the selected item or
7487 * @c NULL, if none is selected. If the gengrid is under
7488 * multi-selection, then elm_gengrid_selected_items_get() will
7489 * return a list (that is only valid as long as no items are
7490 * modified (added, deleted, selected or unselected) of child items
7493 * If an item changes (internal (boolean) state, label or icon
7494 * changes), then use elm_gengrid_item_update() to have gengrid
7495 * update the item with the new state. A gengrid will re-"realize"
7496 * the item, thus calling the functions in the
7497 * #Elm_Gengrid_Item_Class set for that item.
7499 * To programmatically (un)select an item, use
7500 * elm_gengrid_item_selected_set(). To get its selected state use
7501 * elm_gengrid_item_selected_get(). To make an item disabled
7502 * (unable to be selected and appear differently) use
7503 * elm_gengrid_item_disabled_set() to set this and
7504 * elm_gengrid_item_disabled_get() to get the disabled state.
7506 * Grid cells will only have their selection smart callbacks called
7507 * when firstly getting selected. Any further clicks will do
7508 * nothing, unless you enable the "always select mode", with
7509 * elm_gengrid_always_select_mode_set(), thus making every click to
7510 * issue selection callbacks. elm_gengrid_no_select_mode_set() will
7511 * turn off the ability to select items entirely in the widget and
7512 * they will neither appear selected nor call the selection smart
7515 * Remember that you can create new styles and add your own theme
7516 * augmentation per application with elm_theme_extension_add(). If
7517 * you absolutely must have a specific style that overrides any
7518 * theme the user or system sets up you can use
7519 * elm_theme_overlay_add() to add such a file.
7521 * @section Gengrid_Smart_Events Gengrid smart events
7523 * Smart events that you can add callbacks for are:
7524 * - @c "activated" - The user has double-clicked or pressed
7525 * (enter|return|spacebar) on an item. The @c event_info parameter
7526 * is the gengrid item that was activated.
7527 * - @c "clicked,double" - The user has double-clicked an item.
7528 * The @c event_info parameter is the gengrid item that was double-clicked.
7529 * - @c "selected" - The user has made an item selected. The
7530 * @c event_info parameter is the gengrid item that was selected.
7531 * - @c "unselected" - The user has made an item unselected. The
7532 * @c event_info parameter is the gengrid item that was unselected.
7533 * - @c "realized" - This is called when the item in the gengrid
7534 * has its implementing Evas object instantiated, de facto. @c
7535 * event_info is the gengrid item that was created. The object
7536 * may be deleted at any time, so it is highly advised to the
7537 * caller @b not to use the object pointer returned from
7538 * elm_gengrid_item_object_get(), because it may point to freed
7540 * - @c "unrealized" - This is called when the implementing Evas
7541 * object for this item is deleted. @c event_info is the gengrid
7542 * item that was deleted.
7543 * - @c "changed" - Called when an item is added, removed, resized
7544 * or moved and when the gengrid is resized or gets "horizontal"
7546 * - @c "drag,start,up" - Called when the item in the gengrid has
7547 * been dragged (not scrolled) up.
7548 * - @c "drag,start,down" - Called when the item in the gengrid has
7549 * been dragged (not scrolled) down.
7550 * - @c "drag,start,left" - Called when the item in the gengrid has
7551 * been dragged (not scrolled) left.
7552 * - @c "drag,start,right" - Called when the item in the gengrid has
7553 * been dragged (not scrolled) right.
7554 * - @c "drag,stop" - Called when the item in the gengrid has
7555 * stopped being dragged.
7556 * - @c "drag" - Called when the item in the gengrid is being
7558 * - @c "scroll" - called when the content has been scrolled
7560 * - @c "scroll,drag,start" - called when dragging the content has
7562 * - @c "scroll,drag,stop" - called when dragging the content has
7565 * List of gendrid examples:
7566 * @li @ref gengrid_example
7570 * @addtogroup Gengrid
7574 typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
7575 typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
7576 typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
7577 typedef char *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
7578 typedef Evas_Object *(*Elm_Gengrid_Item_Icon_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for gengrid item classes. */
7579 typedef Eina_Bool (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for gengrid item classes. */
7580 typedef void (*Elm_Gengrid_Item_Del_Cb) (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
7582 typedef char *(*GridItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Label_Get_Cb. */
7583 typedef Evas_Object *(*GridItemIconGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Icon_Get_Cb. */
7584 typedef Eina_Bool (*GridItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_State_Get_Cb. */
7585 typedef void (*GridItemDelFunc) (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Del_Cb. */
7588 * @struct _Elm_Gengrid_Item_Class
7590 * Gengrid item class definition. See @ref Gengrid_Item_Class for
7593 struct _Elm_Gengrid_Item_Class
7595 const char *item_style;
7596 struct _Elm_Gengrid_Item_Class_Func
7598 Elm_Gengrid_Item_Label_Get_Cb label_get;
7599 Elm_Gengrid_Item_Icon_Get_Cb icon_get;
7600 Elm_Gengrid_Item_State_Get_Cb state_get;
7601 Elm_Gengrid_Item_Del_Cb del;
7603 }; /**< #Elm_Gengrid_Item_Class member definitions */
7606 * Add a new gengrid widget to the given parent Elementary
7607 * (container) object
7609 * @param parent The parent object
7610 * @return a new gengrid widget handle or @c NULL, on errors
7612 * This function inserts a new gengrid widget on the canvas.
7614 * @see elm_gengrid_item_size_set()
7615 * @see elm_gengrid_horizontal_set()
7616 * @see elm_gengrid_item_append()
7617 * @see elm_gengrid_item_del()
7618 * @see elm_gengrid_clear()
7622 EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7625 * Set the size for the items of a given gengrid widget
7627 * @param obj The gengrid object.
7628 * @param w The items' width.
7629 * @param h The items' height;
7631 * A gengrid, after creation, has still no information on the size
7632 * to give to each of its cells. So, you most probably will end up
7633 * with squares one @ref Fingers "finger" wide, the default
7634 * size. Use this function to force a custom size for you items,
7635 * making them as big as you wish.
7637 * @see elm_gengrid_item_size_get()
7641 EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7644 * Get the size set for the items of a given gengrid widget
7646 * @param obj The gengrid object.
7647 * @param w Pointer to a variable where to store the items' width.
7648 * @param h Pointer to a variable where to store the items' height.
7650 * @note Use @c NULL pointers on the size values you're not
7651 * interested in: they'll be ignored by the function.
7653 * @see elm_gengrid_item_size_get() for more details
7657 EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7660 * Set the items grid's alignment within a given gengrid widget
7662 * @param obj The gengrid object.
7663 * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
7664 * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
7666 * This sets the alignment of the whole grid of items of a gengrid
7667 * within its given viewport. By default, those values are both
7668 * 0.5, meaning that the gengrid will have its items grid placed
7669 * exactly in the middle of its viewport.
7671 * @note If given alignment values are out of the cited ranges,
7672 * they'll be changed to the nearest boundary values on the valid
7675 * @see elm_gengrid_align_get()
7679 EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
7682 * Get the items grid's alignment values within a given gengrid
7685 * @param obj The gengrid object.
7686 * @param align_x Pointer to a variable where to store the
7687 * horizontal alignment.
7688 * @param align_y Pointer to a variable where to store the vertical
7691 * @note Use @c NULL pointers on the alignment values you're not
7692 * interested in: they'll be ignored by the function.
7694 * @see elm_gengrid_align_set() for more details
7698 EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
7701 * Set whether a given gengrid widget is or not able have items
7704 * @param obj The gengrid object
7705 * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
7706 * @c EINA_FALSE to turn it off
7708 * If a gengrid is set to allow reordering, a click held for more
7709 * than 0.5 over a given item will highlight it specially,
7710 * signalling the gengrid has entered the reordering state. From
7711 * that time on, the user will be able to, while still holding the
7712 * mouse button down, move the item freely in the gengrid's
7713 * viewport, replacing to said item to the locations it goes to.
7714 * The replacements will be animated and, whenever the user
7715 * releases the mouse button, the item being replaced gets a new
7716 * definitive place in the grid.
7718 * @see elm_gengrid_reorder_mode_get()
7722 EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
7725 * Get whether a given gengrid widget is or not able have items
7728 * @param obj The gengrid object
7729 * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
7732 * @see elm_gengrid_reorder_mode_set() for more details
7736 EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7739 * Append a new item in a given gengrid widget.
7741 * @param obj The gengrid object.
7742 * @param gic The item class for the item.
7743 * @param data The item data.
7744 * @param func Convenience function called when the item is
7746 * @param func_data Data to be passed to @p func.
7747 * @return A handle to the item added or @c NULL, on errors.
7749 * This adds an item to the beginning of the gengrid.
7751 * @see elm_gengrid_item_prepend()
7752 * @see elm_gengrid_item_insert_before()
7753 * @see elm_gengrid_item_insert_after()
7754 * @see elm_gengrid_item_del()
7758 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);
7761 * Prepend a new item in a given gengrid widget.
7763 * @param obj The gengrid object.
7764 * @param gic The item class for the item.
7765 * @param data The item data.
7766 * @param func Convenience function called when the item is
7768 * @param func_data Data to be passed to @p func.
7769 * @return A handle to the item added or @c NULL, on errors.
7771 * This adds an item to the end of the gengrid.
7773 * @see elm_gengrid_item_append()
7774 * @see elm_gengrid_item_insert_before()
7775 * @see elm_gengrid_item_insert_after()
7776 * @see elm_gengrid_item_del()
7780 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);
7783 * Insert an item before another in a gengrid widget
7785 * @param obj The gengrid object.
7786 * @param gic The item class for the item.
7787 * @param data The item data.
7788 * @param relative The item to place this new one before.
7789 * @param func Convenience function called when the item is
7791 * @param func_data Data to be passed to @p func.
7792 * @return A handle to the item added or @c NULL, on errors.
7794 * This inserts an item before another in the gengrid.
7796 * @see elm_gengrid_item_append()
7797 * @see elm_gengrid_item_prepend()
7798 * @see elm_gengrid_item_insert_after()
7799 * @see elm_gengrid_item_del()
7803 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);
7806 * Insert an item after another in a gengrid widget
7808 * @param obj The gengrid object.
7809 * @param gic The item class for the item.
7810 * @param data The item data.
7811 * @param relative The item to place this new one after.
7812 * @param func Convenience function called when the item is
7814 * @param func_data Data to be passed to @p func.
7815 * @return A handle to the item added or @c NULL, on errors.
7817 * This inserts an item after another in the gengrid.
7819 * @see elm_gengrid_item_append()
7820 * @see elm_gengrid_item_prepend()
7821 * @see elm_gengrid_item_insert_after()
7822 * @see elm_gengrid_item_del()
7826 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);
7828 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);
7830 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);
7833 * Set whether items on a given gengrid widget are to get their
7834 * selection callbacks issued for @b every subsequent selection
7835 * click on them or just for the first click.
7837 * @param obj The gengrid object
7838 * @param always_select @c EINA_TRUE to make items "always
7839 * selected", @c EINA_FALSE, otherwise
7841 * By default, grid items will only call their selection callback
7842 * function when firstly getting selected, any subsequent further
7843 * clicks will do nothing. With this call, you make those
7844 * subsequent clicks also to issue the selection callbacks.
7846 * @note <b>Double clicks</b> will @b always be reported on items.
7848 * @see elm_gengrid_always_select_mode_get()
7852 EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
7855 * Get whether items on a given gengrid widget have their selection
7856 * callbacks issued for @b every subsequent selection click on them
7857 * or just for the first click.
7859 * @param obj The gengrid object.
7860 * @return @c EINA_TRUE if the gengrid items are "always selected",
7861 * @c EINA_FALSE, otherwise
7863 * @see elm_gengrid_always_select_mode_set() for more details
7867 EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7870 * Set whether items on a given gengrid widget can be selected or not.
7872 * @param obj The gengrid object
7873 * @param no_select @c EINA_TRUE to make items selectable,
7874 * @c EINA_FALSE otherwise
7876 * This will make items in @p obj selectable or not. In the latter
7877 * case, any user interacion on the gendrid items will neither make
7878 * them appear selected nor them call their selection callback
7881 * @see elm_gengrid_no_select_mode_get()
7885 EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
7888 * Get whether items on a given gengrid widget can be selected or
7891 * @param obj The gengrid object
7892 * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
7895 * @see elm_gengrid_no_select_mode_set() for more details
7899 EAPI Eina_Bool elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7902 * Enable or disable multi-selection in a given gengrid widget
7904 * @param obj The gengrid object.
7905 * @param multi @c EINA_TRUE, to enable multi-selection,
7906 * @c EINA_FALSE to disable it.
7908 * Multi-selection is the ability for one to have @b more than one
7909 * item selected, on a given gengrid, simultaneously. When it is
7910 * enabled, a sequence of clicks on different items will make them
7911 * all selected, progressively. A click on an already selected item
7912 * will unselect it. If interecting via the keyboard,
7913 * multi-selection is enabled while holding the "Shift" key.
7915 * @note By default, multi-selection is @b disabled on gengrids
7917 * @see elm_gengrid_multi_select_get()
7921 EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
7924 * Get whether multi-selection is enabled or disabled for a given
7927 * @param obj The gengrid object.
7928 * @return @c EINA_TRUE, if multi-selection is enabled, @c
7929 * EINA_FALSE otherwise
7931 * @see elm_gengrid_multi_select_set() for more details
7935 EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7938 * Enable or disable bouncing effect for a given gengrid widget
7940 * @param obj The gengrid object
7941 * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
7942 * @c EINA_FALSE to disable it
7943 * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
7944 * @c EINA_FALSE to disable it
7946 * The bouncing effect occurs whenever one reaches the gengrid's
7947 * edge's while panning it -- it will scroll past its limits a
7948 * little bit and return to the edge again, in a animated for,
7951 * @note By default, gengrids have bouncing enabled on both axis
7953 * @see elm_gengrid_bounce_get()
7957 EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7960 * Get whether bouncing effects are enabled or disabled, for a
7961 * given gengrid widget, on each axis
7963 * @param obj The gengrid object
7964 * @param h_bounce Pointer to a variable where to store the
7965 * horizontal bouncing flag.
7966 * @param v_bounce Pointer to a variable where to store the
7967 * vertical bouncing flag.
7969 * @see elm_gengrid_bounce_set() for more details
7973 EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7976 * Set a given gengrid widget's scrolling page size, relative to
7977 * its viewport size.
7979 * @param obj The gengrid object
7980 * @param h_pagerel The horizontal page (relative) size
7981 * @param v_pagerel The vertical page (relative) size
7983 * The gengrid's scroller is capable of binding scrolling by the
7984 * user to "pages". It means that, while scrolling and, specially
7985 * after releasing the mouse button, the grid will @b snap to the
7986 * nearest displaying page's area. When page sizes are set, the
7987 * grid's continuous content area is split into (equal) page sized
7990 * This function sets the size of a page <b>relatively to the
7991 * viewport dimensions</b> of the gengrid, for each axis. A value
7992 * @c 1.0 means "the exact viewport's size", in that axis, while @c
7993 * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
7994 * a viewport". Sane usable values are, than, between @c 0.0 and @c
7995 * 1.0. Values beyond those will make it behave behave
7996 * inconsistently. If you only want one axis to snap to pages, use
7997 * the value @c 0.0 for the other one.
7999 * There is a function setting page size values in @b absolute
8000 * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8001 * is mutually exclusive to this one.
8003 * @see elm_gengrid_page_relative_get()
8007 EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8010 * Get a given gengrid widget's scrolling page size, relative to
8011 * its viewport size.
8013 * @param obj The gengrid object
8014 * @param h_pagerel Pointer to a variable where to store the
8015 * horizontal page (relative) size
8016 * @param v_pagerel Pointer to a variable where to store the
8017 * vertical page (relative) size
8019 * @see elm_gengrid_page_relative_set() for more details
8023 EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8026 * Set a given gengrid widget's scrolling page size
8028 * @param obj The gengrid object
8029 * @param h_pagerel The horizontal page size, in pixels
8030 * @param v_pagerel The vertical page size, in pixels
8032 * The gengrid's scroller is capable of binding scrolling by the
8033 * user to "pages". It means that, while scrolling and, specially
8034 * after releasing the mouse button, the grid will @b snap to the
8035 * nearest displaying page's area. When page sizes are set, the
8036 * grid's continuous content area is split into (equal) page sized
8039 * This function sets the size of a page of the gengrid, in pixels,
8040 * for each axis. Sane usable values are, between @c 0 and the
8041 * dimensions of @p obj, for each axis. Values beyond those will
8042 * make it behave behave inconsistently. If you only want one axis
8043 * to snap to pages, use the value @c 0 for the other one.
8045 * There is a function setting page size values in @b relative
8046 * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8047 * use is mutually exclusive to this one.
8051 EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8054 * Set for what direction a given gengrid widget will expand while
8055 * placing its items.
8057 * @param obj The gengrid object.
8058 * @param setting @c EINA_TRUE to make the gengrid expand
8059 * horizontally, @c EINA_FALSE to expand vertically.
8061 * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8062 * in @b columns, from top to bottom and, when the space for a
8063 * column is filled, another one is started on the right, thus
8064 * expanding the grid horizontally. When in "vertical mode"
8065 * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8066 * to right and, when the space for a row is filled, another one is
8067 * started below, thus expanding the grid vertically.
8069 * @see elm_gengrid_horizontal_get()
8073 EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8076 * Get for what direction a given gengrid widget will expand while
8077 * placing its items.
8079 * @param obj The gengrid object.
8080 * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8081 * @c EINA_FALSE if it's set to expand vertically.
8083 * @see elm_gengrid_horizontal_set() for more detais
8087 EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8090 * Get the first item in a given gengrid widget
8092 * @param obj The gengrid object
8093 * @return The first item's handle or @c NULL, if there are no
8094 * items in @p obj (and on errors)
8096 * This returns the first item in the @p obj's internal list of
8099 * @see elm_gengrid_last_item_get()
8103 EAPI Elm_Gengrid_Item *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8106 * Get the last item in a given gengrid widget
8108 * @param obj The gengrid object
8109 * @return The last item's handle or @c NULL, if there are no
8110 * items in @p obj (and on errors)
8112 * This returns the last item in the @p obj's internal list of
8115 * @see elm_gengrid_first_item_get()
8119 EAPI Elm_Gengrid_Item *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8122 * Get the @b next item in a gengrid widget's internal list of items,
8123 * given a handle to one of those items.
8125 * @param item The gengrid item to fetch next from
8126 * @return The item after @p item, or @c NULL if there's none (and
8129 * This returns the item placed after the @p item, on the container
8132 * @see elm_gengrid_item_prev_get()
8136 EAPI Elm_Gengrid_Item *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8139 * Get the @b previous item in a gengrid widget's internal list of items,
8140 * given a handle to one of those items.
8142 * @param item The gengrid item to fetch previous from
8143 * @return The item before @p item, or @c NULL if there's none (and
8146 * This returns the item placed before the @p item, on the container
8149 * @see elm_gengrid_item_next_get()
8153 EAPI Elm_Gengrid_Item *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8156 * Get the gengrid object's handle which contains a given gengrid
8159 * @param item The item to fetch the container from
8160 * @return The gengrid (parent) object
8162 * This returns the gengrid object itself that an item belongs to.
8166 EAPI Evas_Object *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8169 * Remove a gengrid item from the its parent, deleting it.
8171 * @param item The item to be removed.
8172 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
8174 * @see elm_gengrid_clear(), to remove all items in a gengrid at
8179 EAPI void elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8182 * Update the contents of a given gengrid item
8184 * @param item The gengrid item
8186 * This updates an item by calling all the item class functions
8187 * again to get the icons, labels and states. Use this when the
8188 * original item data has changed and you want thta changes to be
8193 EAPI void elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8194 EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8195 EAPI void elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
8198 * Return the data associated to a given gengrid item
8200 * @param item The gengrid item.
8201 * @return the data associated to this item.
8203 * This returns the @c data value passed on the
8204 * elm_gengrid_item_append() and related item addition calls.
8206 * @see elm_gengrid_item_append()
8207 * @see elm_gengrid_item_data_set()
8211 EAPI void *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8214 * Set the data associated to a given gengrid item
8216 * @param item The gengrid item
8217 * @param data The new data pointer to set on it
8219 * This @b overrides the @c data value passed on the
8220 * elm_gengrid_item_append() and related item addition calls. This
8221 * function @b won't call elm_gengrid_item_update() automatically,
8222 * so you'd issue it afterwards if you want to hove the item
8223 * updated to reflect the that new data.
8225 * @see elm_gengrid_item_data_get()
8229 EAPI void elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
8232 * Get a given gengrid item's position, relative to the whole
8233 * gengrid's grid area.
8235 * @param item The Gengrid item.
8236 * @param x Pointer to variable where to store the item's <b>row
8238 * @param y Pointer to variable where to store the item's <b>column
8241 * This returns the "logical" position of the item whithin the
8242 * gengrid. For example, @c (0, 1) would stand for first row,
8247 EAPI void elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
8250 * Set whether a given gengrid item is selected or not
8252 * @param item The gengrid item
8253 * @param selected Use @c EINA_TRUE, to make it selected, @c
8254 * EINA_FALSE to make it unselected
8256 * This sets the selected state of an item. If multi selection is
8257 * not enabled on the containing gengrid and @p selected is @c
8258 * EINA_TRUE, any other previously selected items will get
8259 * unselected in favor of this new one.
8261 * @see elm_gengrid_item_selected_get()
8265 EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8268 * Get whether a given gengrid item is selected or not
8270 * @param item The gengrid item
8271 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
8273 * @see elm_gengrid_item_selected_set() for more details
8277 EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8280 * Get the real Evas object created to implement the view of a
8281 * given gengrid item
8283 * @param item The gengrid item.
8284 * @return the Evas object implementing this item's view.
8286 * This returns the actual Evas object used to implement the
8287 * specified gengrid item's view. This may be @c NULL, as it may
8288 * not have been created or may have been deleted, at any time, by
8289 * the gengrid. <b>Do not modify this object</b> (move, resize,
8290 * show, hide, etc.), as the gengrid is controlling it. This
8291 * function is for querying, emitting custom signals or hooking
8292 * lower level callbacks for events on that object. Do not delete
8293 * this object under any circumstances.
8295 * @see elm_gengrid_item_data_get()
8299 EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8302 * Show the portion of a gengrid's internal grid containing a given
8303 * item, @b immediately.
8305 * @param item The item to display
8307 * This causes gengrid to @b redraw its viewport's contents to the
8308 * region contining the given @p item item, if it is not fully
8311 * @see elm_gengrid_item_bring_in()
8315 EAPI void elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8318 * Animatedly bring in, to the visible are of a gengrid, a given
8321 * @param item The gengrid item to display
8323 * This causes gengrig to jump to the given @p item item and show
8324 * it (by scrolling), if it is not fully visible. This will use
8325 * animation to do so and take a period of time to complete.
8327 * @see elm_gengrid_item_show()
8331 EAPI void elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8334 * Set whether a given gengrid item is disabled or not.
8336 * @param item The gengrid item
8337 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
8338 * to enable it back.
8340 * A disabled item cannot be selected or unselected. It will also
8341 * change its appearance, to signal the user it's disabled.
8343 * @see elm_gengrid_item_disabled_get()
8347 EAPI void elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
8350 * Get whether a given gengrid item is disabled or not.
8352 * @param item The gengrid item
8353 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
8356 * @see elm_gengrid_item_disabled_set() for more details
8360 EAPI Eina_Bool elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8363 * Set the text to be shown in a given gengrid item's tooltips.
8365 * @param item The gengrid item
8366 * @param text The text to set in the content
8368 * This call will setup the text to be used as tooltip to that item
8369 * (analogous to elm_object_tooltip_text_set(), but being item
8370 * tooltips with higher precedence than object tooltips). It can
8371 * have only one tooltip at a time, so any previous tooltip data
8376 EAPI void elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
8379 * Set the content to be shown in a given gengrid item's tooltips
8381 * @param item The gengrid item.
8382 * @param func The function returning the tooltip contents.
8383 * @param data What to provide to @a func as callback data/context.
8384 * @param del_cb Called when data is not needed anymore, either when
8385 * another callback replaces @p func, the tooltip is unset with
8386 * elm_gengrid_item_tooltip_unset() or the owner @p item
8387 * dies. This callback receives as its first parameter the
8388 * given @p data, being @c event_info the item handle.
8390 * This call will setup the tooltip's contents to @p item
8391 * (analogous to elm_object_tooltip_content_cb_set(), but being
8392 * item tooltips with higher precedence than object tooltips). It
8393 * can have only one tooltip at a time, so any previous tooltip
8394 * content will get removed. @p func (with @p data) will be called
8395 * every time Elementary needs to show the tooltip and it should
8396 * return a valid Evas object, which will be fully managed by the
8397 * tooltip system, getting deleted when the tooltip is gone.
8401 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);
8404 * Unset a tooltip from a given gengrid item
8406 * @param item gengrid item to remove a previously set tooltip from.
8408 * This call removes any tooltip set on @p item. The callback
8409 * provided as @c del_cb to
8410 * elm_gengrid_item_tooltip_content_cb_set() will be called to
8411 * notify it is not used anymore (and have resources cleaned, if
8414 * @see elm_gengrid_item_tooltip_content_cb_set()
8418 EAPI void elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8421 * Set a different @b style for a given gengrid item's tooltip.
8423 * @param item gengrid item with tooltip set
8424 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
8425 * "default", @c "transparent", etc)
8427 * Tooltips can have <b>alternate styles</b> to be displayed on,
8428 * which are defined by the theme set on Elementary. This function
8429 * works analogously as elm_object_tooltip_style_set(), but here
8430 * applied only to gengrid item objects. The default style for
8431 * tooltips is @c "default".
8433 * @note before you set a style you should define a tooltip with
8434 * elm_gengrid_item_tooltip_content_cb_set() or
8435 * elm_gengrid_item_tooltip_text_set()
8437 * @see elm_gengrid_item_tooltip_style_get()
8441 EAPI void elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8444 * Get the style set a given gengrid item's tooltip.
8446 * @param item gengrid item with tooltip already set on.
8447 * @return style the theme style in use, which defaults to
8448 * "default". If the object does not have a tooltip set,
8449 * then @c NULL is returned.
8451 * @see elm_gengrid_item_tooltip_style_set() for more details
8455 EAPI const char *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8457 * @brief Disable size restrictions on an object's tooltip
8458 * @param item The tooltip's anchor object
8459 * @param disable If EINA_TRUE, size restrictions are disabled
8460 * @return EINA_FALSE on failure, EINA_TRUE on success
8462 * This function allows a tooltip to expand beyond its parant window's canvas.
8463 * It will instead be limited only by the size of the display.
8465 EAPI Eina_Bool elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
8467 * @brief Retrieve size restriction state of an object's tooltip
8468 * @param item The tooltip's anchor object
8469 * @return If EINA_TRUE, size restrictions are disabled
8471 * This function returns whether a tooltip is allowed to expand beyond
8472 * its parant window's canvas.
8473 * It will instead be limited only by the size of the display.
8475 EAPI Eina_Bool elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
8477 * Set the type of mouse pointer/cursor decoration to be shown,
8478 * when the mouse pointer is over the given gengrid widget item
8480 * @param item gengrid item to customize cursor on
8481 * @param cursor the cursor type's name
8483 * This function works analogously as elm_object_cursor_set(), but
8484 * here the cursor's changing area is restricted to the item's
8485 * area, and not the whole widget's. Note that that item cursors
8486 * have precedence over widget cursors, so that a mouse over @p
8487 * item will always show cursor @p type.
8489 * If this function is called twice for an object, a previously set
8490 * cursor will be unset on the second call.
8492 * @see elm_object_cursor_set()
8493 * @see elm_gengrid_item_cursor_get()
8494 * @see elm_gengrid_item_cursor_unset()
8498 EAPI void elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
8501 * Get the type of mouse pointer/cursor decoration set to be shown,
8502 * when the mouse pointer is over the given gengrid widget item
8504 * @param item gengrid item with custom cursor set
8505 * @return the cursor type's name or @c NULL, if no custom cursors
8506 * were set to @p item (and on errors)
8508 * @see elm_object_cursor_get()
8509 * @see elm_gengrid_item_cursor_set() for more details
8510 * @see elm_gengrid_item_cursor_unset()
8514 EAPI const char *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8517 * Unset any custom mouse pointer/cursor decoration set to be
8518 * shown, when the mouse pointer is over the given gengrid widget
8519 * item, thus making it show the @b default cursor again.
8521 * @param item a gengrid item
8523 * Use this call to undo any custom settings on this item's cursor
8524 * decoration, bringing it back to defaults (no custom style set).
8526 * @see elm_object_cursor_unset()
8527 * @see elm_gengrid_item_cursor_set() for more details
8531 EAPI void elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8534 * Set a different @b style for a given custom cursor set for a
8537 * @param item gengrid item with custom cursor set
8538 * @param style the <b>theme style</b> to use (e.g. @c "default",
8539 * @c "transparent", etc)
8541 * This function only makes sense when one is using custom mouse
8542 * cursor decorations <b>defined in a theme file</b> , which can
8543 * have, given a cursor name/type, <b>alternate styles</b> on
8544 * it. It works analogously as elm_object_cursor_style_set(), but
8545 * here applied only to gengrid item objects.
8547 * @warning Before you set a cursor style you should have defined a
8548 * custom cursor previously on the item, with
8549 * elm_gengrid_item_cursor_set()
8551 * @see elm_gengrid_item_cursor_engine_only_set()
8552 * @see elm_gengrid_item_cursor_style_get()
8556 EAPI void elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8559 * Get the current @b style set for a given gengrid item's custom
8562 * @param item gengrid item with custom cursor set.
8563 * @return style the cursor style in use. If the object does not
8564 * have a cursor set, then @c NULL is returned.
8566 * @see elm_gengrid_item_cursor_style_set() for more details
8570 EAPI const char *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8573 * Set if the (custom) cursor for a given gengrid item should be
8574 * searched in its theme, also, or should only rely on the
8577 * @param item item with custom (custom) cursor already set on
8578 * @param engine_only Use @c EINA_TRUE to have cursors looked for
8579 * only on those provided by the rendering engine, @c EINA_FALSE to
8580 * have them searched on the widget's theme, as well.
8582 * @note This call is of use only if you've set a custom cursor
8583 * for gengrid items, with elm_gengrid_item_cursor_set().
8585 * @note By default, cursors will only be looked for between those
8586 * provided by the rendering engine.
8590 EAPI void elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
8593 * Get if the (custom) cursor for a given gengrid item is being
8594 * searched in its theme, also, or is only relying on the rendering
8597 * @param item a gengrid item
8598 * @return @c EINA_TRUE, if cursors are being looked for only on
8599 * those provided by the rendering engine, @c EINA_FALSE if they
8600 * are being searched on the widget's theme, as well.
8602 * @see elm_gengrid_item_cursor_engine_only_set(), for more details
8606 EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8609 * Remove all items from a given gengrid widget
8611 * @param obj The gengrid object.
8613 * This removes (and deletes) all items in @p obj, leaving it
8616 * @see elm_gengrid_item_del(), to remove just one item.
8620 EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
8623 * Get the selected item in a given gengrid widget
8625 * @param obj The gengrid object.
8626 * @return The selected item's handleor @c NULL, if none is
8627 * selected at the moment (and on errors)
8629 * This returns the selected item in @p obj. If multi selection is
8630 * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
8631 * the first item in the list is selected, which might not be very
8632 * useful. For that case, see elm_gengrid_selected_items_get().
8636 EAPI Elm_Gengrid_Item *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8639 * Get <b>a list</b> of selected items in a given gengrid
8641 * @param obj The gengrid object.
8642 * @return The list of selected items or @c NULL, if none is
8643 * selected at the moment (and on errors)
8645 * This returns a list of the selected items, in the order that
8646 * they appear in the grid. This list is only valid as long as no
8647 * more items are selected or unselected (or unselected implictly
8648 * by deletion). The list contains #Elm_Gengrid_Item pointers as
8651 * @see elm_gengrid_selected_item_get()
8655 EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8662 * @defgroup Clock Clock
8664 * @image html img/widget/clock/preview-00.png
8665 * @image latex img/widget/clock/preview-00.eps
8667 * This is a @b digital clock widget. In its default theme, it has a
8668 * vintage "flipping numbers clock" appearance, which will animate
8669 * sheets of individual algarisms individually as time goes by.
8671 * A newly created clock will fetch system's time (already
8672 * considering local time adjustments) to start with, and will tick
8673 * accondingly. It may or may not show seconds.
8675 * Clocks have an @b edition mode. When in it, the sheets will
8676 * display extra arrow indications on the top and bottom and the
8677 * user may click on them to raise or lower the time values. After
8678 * it's told to exit edition mode, it will keep ticking with that
8679 * new time set (it keeps the difference from local time).
8681 * Also, when under edition mode, user clicks on the cited arrows
8682 * which are @b held for some time will make the clock to flip the
8683 * sheet, thus editing the time, continuosly and automatically for
8684 * the user. The interval between sheet flips will keep growing in
8685 * time, so that it helps the user to reach a time which is distant
8688 * The time display is, by default, in military mode (24h), but an
8689 * am/pm indicator may be optionally shown, too, when it will
8692 * Smart callbacks one can register to:
8693 * - "changed" - the clock's user changed the time
8695 * Here is an example on its usage:
8696 * @li @ref clock_example
8705 * Identifiers for which clock digits should be editable, when a
8706 * clock widget is in edition mode. Values may be ORed together to
8707 * make a mask, naturally.
8709 * @see elm_clock_edit_set()
8710 * @see elm_clock_digit_edit_set()
8712 typedef enum _Elm_Clock_Digedit
8714 ELM_CLOCK_NONE = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
8715 ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
8716 ELM_CLOCK_HOUR_UNIT = 1 << 1, /**< Unit algarism of hours value should be editable */
8717 ELM_CLOCK_MIN_DECIMAL = 1 << 2, /**< Decimal algarism of minutes value should be editable */
8718 ELM_CLOCK_MIN_UNIT = 1 << 3, /**< Unit algarism of minutes value should be editable */
8719 ELM_CLOCK_SEC_DECIMAL = 1 << 4, /**< Decimal algarism of seconds value should be editable */
8720 ELM_CLOCK_SEC_UNIT = 1 << 5, /**< Unit algarism of seconds value should be editable */
8721 ELM_CLOCK_ALL = (1 << 6) - 1 /**< All digits should be editable */
8722 } Elm_Clock_Digedit;
8725 * Add a new clock widget to the given parent Elementary
8726 * (container) object
8728 * @param parent The parent object
8729 * @return a new clock widget handle or @c NULL, on errors
8731 * This function inserts a new clock widget on the canvas.
8735 EAPI Evas_Object *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8738 * Set a clock widget's time, programmatically
8740 * @param obj The clock widget object
8741 * @param hrs The hours to set
8742 * @param min The minutes to set
8743 * @param sec The secondes to set
8745 * This function updates the time that is showed by the clock
8748 * Values @b must be set within the following ranges:
8749 * - 0 - 23, for hours
8750 * - 0 - 59, for minutes
8751 * - 0 - 59, for seconds,
8753 * even if the clock is not in "military" mode.
8755 * @warning The behavior for values set out of those ranges is @b
8760 EAPI void elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
8763 * Get a clock widget's time values
8765 * @param obj The clock object
8766 * @param[out] hrs Pointer to the variable to get the hours value
8767 * @param[out] min Pointer to the variable to get the minutes value
8768 * @param[out] sec Pointer to the variable to get the seconds value
8770 * This function gets the time set for @p obj, returning
8771 * it on the variables passed as the arguments to function
8773 * @note Use @c NULL pointers on the time values you're not
8774 * interested in: they'll be ignored by the function.
8778 EAPI void elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
8781 * Set whether a given clock widget is under <b>edition mode</b> or
8782 * under (default) displaying-only mode.
8784 * @param obj The clock object
8785 * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
8786 * put it back to "displaying only" mode
8788 * This function makes a clock's time to be editable or not <b>by
8789 * user interaction</b>. When in edition mode, clocks @b stop
8790 * ticking, until one brings them back to canonical mode. The
8791 * elm_clock_digit_edit_set() function will influence which digits
8792 * of the clock will be editable. By default, all of them will be
8793 * (#ELM_CLOCK_NONE).
8795 * @note am/pm sheets, if being shown, will @b always be editable
8796 * under edition mode.
8798 * @see elm_clock_edit_get()
8802 EAPI void elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
8805 * Retrieve whether a given clock widget is under <b>edition
8806 * mode</b> or under (default) displaying-only mode.
8808 * @param obj The clock object
8809 * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
8812 * This function retrieves whether the clock's time can be edited
8813 * or not by user interaction.
8815 * @see elm_clock_edit_set() for more details
8819 EAPI Eina_Bool elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8822 * Set what digits of the given clock widget should be editable
8823 * when in edition mode.
8825 * @param obj The clock object
8826 * @param digedit Bit mask indicating the digits to be editable
8827 * (values in #Elm_Clock_Digedit).
8829 * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
8830 * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
8833 * @see elm_clock_digit_edit_get()
8837 EAPI void elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
8840 * Retrieve what digits of the given clock widget should be
8841 * editable when in edition mode.
8843 * @param obj The clock object
8844 * @return Bit mask indicating the digits to be editable
8845 * (values in #Elm_Clock_Digedit).
8847 * @see elm_clock_digit_edit_set() for more details
8851 EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8854 * Set if the given clock widget must show hours in military or
8857 * @param obj The clock object
8858 * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
8861 * This function sets if the clock must show hours in military or
8862 * am/pm mode. In some countries like Brazil the military mode
8863 * (00-24h-format) is used, in opposition to the USA, where the
8864 * am/pm mode is more commonly used.
8866 * @see elm_clock_show_am_pm_get()
8870 EAPI void elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
8873 * Get if the given clock widget shows hours in military or am/pm
8876 * @param obj The clock object
8877 * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
8880 * This function gets if the clock shows hours in military or am/pm
8883 * @see elm_clock_show_am_pm_set() for more details
8887 EAPI Eina_Bool elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8890 * Set if the given clock widget must show time with seconds or not
8892 * @param obj The clock object
8893 * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
8895 * This function sets if the given clock must show or not elapsed
8896 * seconds. By default, they are @b not shown.
8898 * @see elm_clock_show_seconds_get()
8902 EAPI void elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
8905 * Get whether the given clock widget is showing time with seconds
8908 * @param obj The clock object
8909 * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
8911 * This function gets whether @p obj is showing or not the elapsed
8914 * @see elm_clock_show_seconds_set()
8918 EAPI Eina_Bool elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8921 * Set the interval on time updates for an user mouse button hold
8922 * on clock widgets' time edition.
8924 * @param obj The clock object
8925 * @param interval The (first) interval value in seconds
8927 * This interval value is @b decreased while the user holds the
8928 * mouse pointer either incrementing or decrementing a given the
8929 * clock digit's value.
8931 * This helps the user to get to a given time distant from the
8932 * current one easier/faster, as it will start to flip quicker and
8933 * quicker on mouse button holds.
8935 * The calculation for the next flip interval value, starting from
8936 * the one set with this call, is the previous interval divided by
8937 * 1.05, so it decreases a little bit.
8939 * The default starting interval value for automatic flips is
8942 * @see elm_clock_interval_get()
8946 EAPI void elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
8949 * Get the interval on time updates for an user mouse button hold
8950 * on clock widgets' time edition.
8952 * @param obj The clock object
8953 * @return The (first) interval value, in seconds, set on it
8955 * @see elm_clock_interval_set() for more details
8959 EAPI double elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8966 * @defgroup Layout Layout
8968 * @image html img/widget/layout/preview-00.png
8969 * @image latex img/widget/layout/preview-00.eps width=\textwidth
8971 * @image html img/layout-predefined.png
8972 * @image latex img/layout-predefined.eps width=\textwidth
8974 * This is a container widget that takes a standard Edje design file and
8975 * wraps it very thinly in a widget.
8977 * An Edje design (theme) file has a very wide range of possibilities to
8978 * describe the behavior of elements added to the Layout. Check out the Edje
8979 * documentation and the EDC reference to get more information about what can
8980 * be done with Edje.
8982 * Just like @ref List, @ref Box, and other container widgets, any
8983 * object added to the Layout will become its child, meaning that it will be
8984 * deleted if the Layout is deleted, move if the Layout is moved, and so on.
8986 * The Layout widget can contain as many Contents, Boxes or Tables as
8987 * described in its theme file. For instance, objects can be added to
8988 * different Tables by specifying the respective Table part names. The same
8989 * is valid for Content and Box.
8991 * The objects added as child of the Layout will behave as described in the
8992 * part description where they were added. There are 3 possible types of
8993 * parts where a child can be added:
8995 * @section secContent Content (SWALLOW part)
8997 * Only one object can be added to the @c SWALLOW part (but you still can
8998 * have many @c SWALLOW parts and one object on each of them). Use the @c
8999 * elm_layout_content_* set of functions to set, retrieve and unset objects
9000 * as content of the @c SWALLOW. After being set to this part, the object
9001 * size, position, visibility, clipping and other description properties
9002 * will be totally controled by the description of the given part (inside
9003 * the Edje theme file).
9005 * One can use @c evas_object_size_hint_* functions on the child to have some
9006 * kind of control over its behavior, but the resulting behavior will still
9007 * depend heavily on the @c SWALLOW part description.
9009 * The Edje theme also can change the part description, based on signals or
9010 * scripts running inside the theme. This change can also be animated. All of
9011 * this will affect the child object set as content accordingly. The object
9012 * size will be changed if the part size is changed, it will animate move if
9013 * the part is moving, and so on.
9015 * The following picture demonstrates a Layout widget with a child object
9016 * added to its @c SWALLOW:
9018 * @image html layout_swallow.png
9019 * @image latex layout_swallow.eps width=\textwidth
9021 * @section secBox Box (BOX part)
9023 * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9024 * allows one to add objects to the box and have them distributed along its
9025 * area, accordingly to the specified @a layout property (now by @a layout we
9026 * mean the chosen layouting design of the Box, not the Layout widget
9029 * A similar effect for having a box with its position, size and other things
9030 * controled by the Layout theme would be to create an Elementary @ref Box
9031 * widget and add it as a Content in the @c SWALLOW part.
9033 * The main difference of using the Layout Box is that its behavior, the box
9034 * properties like layouting format, padding, align, etc. will be all
9035 * controled by the theme. This means, for example, that a signal could be
9036 * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9037 * handled the signal by changing the box padding, or align, or both. Using
9038 * the Elementary @ref Box widget is not necessarily harder or easier, it
9039 * just depends on the circunstances and requirements.
9041 * The Layout Box can be used through the @c elm_layout_box_* set of
9044 * The following picture demonstrates a Layout widget with many child objects
9045 * added to its @c BOX part:
9047 * @image html layout_box.png
9048 * @image latex layout_box.eps width=\textwidth
9050 * @section secTable Table (TABLE part)
9052 * Just like the @ref secBox, the Layout Table is very similar to the
9053 * Elementary @ref Table widget. It allows one to add objects to the Table
9054 * specifying the row and column where the object should be added, and any
9055 * column or row span if necessary.
9057 * Again, we could have this design by adding a @ref Table widget to the @c
9058 * SWALLOW part using elm_layout_content_set(). The same difference happens
9059 * here when choosing to use the Layout Table (a @c TABLE part) instead of
9060 * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9062 * The Layout Table can be used through the @c elm_layout_table_* set of
9065 * The following picture demonstrates a Layout widget with many child objects
9066 * added to its @c TABLE part:
9068 * @image html layout_table.png
9069 * @image latex layout_table.eps width=\textwidth
9071 * @section secPredef Predefined Layouts
9073 * Another interesting thing about the Layout widget is that it offers some
9074 * predefined themes that come with the default Elementary theme. These
9075 * themes can be set by the call elm_layout_theme_set(), and provide some
9076 * basic functionality depending on the theme used.
9078 * Most of them already send some signals, some already provide a toolbar or
9079 * back and next buttons.
9081 * These are available predefined theme layouts. All of them have class = @c
9082 * layout, group = @c application, and style = one of the following options:
9084 * @li @c toolbar-content - application with toolbar and main content area
9085 * @li @c toolbar-content-back - application with toolbar and main content
9086 * area with a back button and title area
9087 * @li @c toolbar-content-back-next - application with toolbar and main
9088 * content area with a back and next buttons and title area
9089 * @li @c content-back - application with a main content area with a back
9090 * button and title area
9091 * @li @c content-back-next - application with a main content area with a
9092 * back and next buttons and title area
9093 * @li @c toolbar-vbox - application with toolbar and main content area as a
9095 * @li @c toolbar-table - application with toolbar and main content area as a
9098 * @section secExamples Examples
9100 * Some examples of the Layout widget can be found here:
9101 * @li @ref layout_example_01
9102 * @li @ref layout_example_02
9103 * @li @ref layout_example_03
9104 * @li @ref layout_example_edc
9109 * Add a new layout to the parent
9111 * @param parent The parent object
9112 * @return The new object or NULL if it cannot be created
9114 * @see elm_layout_file_set()
9115 * @see elm_layout_theme_set()
9119 EAPI Evas_Object *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9121 * Set the file that will be used as layout
9123 * @param obj The layout object
9124 * @param file The path to file (edj) that will be used as layout
9125 * @param group The group that the layout belongs in edje file
9127 * @return (1 = success, 0 = error)
9131 EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
9133 * Set the edje group from the elementary theme that will be used as layout
9135 * @param obj The layout object
9136 * @param clas the clas of the group
9137 * @param group the group
9138 * @param style the style to used
9140 * @return (1 = success, 0 = error)
9144 EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
9146 * Set the layout content.
9148 * @param obj The layout object
9149 * @param swallow The swallow part name in the edje file
9150 * @param content The child that will be added in this layout object
9152 * Once the content object is set, a previously set one will be deleted.
9153 * If you want to keep that old content object, use the
9154 * elm_layout_content_unset() function.
9156 * @note In an Edje theme, the part used as a content container is called @c
9157 * SWALLOW. This is why the parameter name is called @p swallow, but it is
9158 * expected to be a part name just like the second parameter of
9159 * elm_layout_box_append().
9161 * @see elm_layout_box_append()
9162 * @see elm_layout_content_get()
9163 * @see elm_layout_content_unset()
9168 EAPI void elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9170 * Get the child object in the given content part.
9172 * @param obj The layout object
9173 * @param swallow The SWALLOW part to get its content
9175 * @return The swallowed object or NULL if none or an error occurred
9177 * @see elm_layout_content_set()
9181 EAPI Evas_Object *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9183 * Unset the layout content.
9185 * @param obj The layout object
9186 * @param swallow The swallow part name in the edje file
9187 * @return The content that was being used
9189 * Unparent and return the content object which was set for this part.
9191 * @see elm_layout_content_set()
9195 EAPI Evas_Object *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9197 * Set the text of the given part
9199 * @param obj The layout object
9200 * @param part The TEXT part where to set the text
9201 * @param text The text to set
9204 * @deprecated use elm_object_text_* instead.
9206 EINA_DEPRECATED EAPI void elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
9208 * Get the text set in the given part
9210 * @param obj The layout object
9211 * @param part The TEXT part to retrieve the text off
9213 * @return The text set in @p part
9216 * @deprecated use elm_object_text_* instead.
9218 EINA_DEPRECATED EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
9220 * Append child to layout box part.
9222 * @param obj the layout object
9223 * @param part the box part to which the object will be appended.
9224 * @param child the child object to append to box.
9226 * Once the object is appended, it will become child of the layout. Its
9227 * lifetime will be bound to the layout, whenever the layout dies the child
9228 * will be deleted automatically. One should use elm_layout_box_remove() to
9229 * make this layout forget about the object.
9231 * @see elm_layout_box_prepend()
9232 * @see elm_layout_box_insert_before()
9233 * @see elm_layout_box_insert_at()
9234 * @see elm_layout_box_remove()
9238 EAPI void elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9240 * Prepend child to layout box part.
9242 * @param obj the layout object
9243 * @param part the box part to prepend.
9244 * @param child the child object to prepend to box.
9246 * Once the object is prepended, it will become child of the layout. Its
9247 * lifetime will be bound to the layout, whenever the layout dies the child
9248 * will be deleted automatically. One should use elm_layout_box_remove() to
9249 * make this layout forget about the object.
9251 * @see elm_layout_box_append()
9252 * @see elm_layout_box_insert_before()
9253 * @see elm_layout_box_insert_at()
9254 * @see elm_layout_box_remove()
9258 EAPI void elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9260 * Insert child to layout box part before a reference object.
9262 * @param obj the layout object
9263 * @param part the box part to insert.
9264 * @param child the child object to insert into box.
9265 * @param reference another reference object to insert before in box.
9267 * Once the object is inserted, it will become child of the layout. Its
9268 * lifetime will be bound to the layout, whenever the layout dies the child
9269 * will be deleted automatically. One should use elm_layout_box_remove() to
9270 * make this layout forget about the object.
9272 * @see elm_layout_box_append()
9273 * @see elm_layout_box_prepend()
9274 * @see elm_layout_box_insert_before()
9275 * @see elm_layout_box_remove()
9279 EAPI void elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
9281 * Insert child to layout box part at a given position.
9283 * @param obj the layout object
9284 * @param part the box part to insert.
9285 * @param child the child object to insert into box.
9286 * @param pos the numeric position >=0 to insert the child.
9288 * Once the object is inserted, it will become child of the layout. Its
9289 * lifetime will be bound to the layout, whenever the layout dies the child
9290 * will be deleted automatically. One should use elm_layout_box_remove() to
9291 * make this layout forget about the object.
9293 * @see elm_layout_box_append()
9294 * @see elm_layout_box_prepend()
9295 * @see elm_layout_box_insert_before()
9296 * @see elm_layout_box_remove()
9300 EAPI void elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
9302 * Remove a child of the given part box.
9304 * @param obj The layout object
9305 * @param part The box part name to remove child.
9306 * @param child The object to remove from box.
9307 * @return The object that was being used, or NULL if not found.
9309 * The object will be removed from the box part and its lifetime will
9310 * not be handled by the layout anymore. This is equivalent to
9311 * elm_layout_content_unset() for box.
9313 * @see elm_layout_box_append()
9314 * @see elm_layout_box_remove_all()
9318 EAPI Evas_Object *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
9320 * Remove all child of the given part box.
9322 * @param obj The layout object
9323 * @param part The box part name to remove child.
9324 * @param clear If EINA_TRUE, then all objects will be deleted as
9325 * well, otherwise they will just be removed and will be
9326 * dangling on the canvas.
9328 * The objects will be removed from the box part and their lifetime will
9329 * not be handled by the layout anymore. This is equivalent to
9330 * elm_layout_box_remove() for all box children.
9332 * @see elm_layout_box_append()
9333 * @see elm_layout_box_remove()
9337 EAPI void elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9339 * Insert child to layout table part.
9341 * @param obj the layout object
9342 * @param part the box part to pack child.
9343 * @param child_obj the child object to pack into table.
9344 * @param col the column to which the child should be added. (>= 0)
9345 * @param row the row to which the child should be added. (>= 0)
9346 * @param colspan how many columns should be used to store this object. (>=
9348 * @param rowspan how many rows should be used to store this object. (>= 1)
9350 * Once the object is inserted, it will become child of the table. Its
9351 * lifetime will be bound to the layout, and whenever the layout dies the
9352 * child will be deleted automatically. One should use
9353 * elm_layout_table_remove() to make this layout forget about the object.
9355 * If @p colspan or @p rowspan are bigger than 1, that object will occupy
9356 * more space than a single cell. For instance, the following code:
9358 * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
9361 * Would result in an object being added like the following picture:
9363 * @image html layout_colspan.png
9364 * @image latex layout_colspan.eps width=\textwidth
9366 * @see elm_layout_table_unpack()
9367 * @see elm_layout_table_clear()
9371 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);
9373 * Unpack (remove) a child of the given part table.
9375 * @param obj The layout object
9376 * @param part The table part name to remove child.
9377 * @param child_obj The object to remove from table.
9378 * @return The object that was being used, or NULL if not found.
9380 * The object will be unpacked from the table part and its lifetime
9381 * will not be handled by the layout anymore. This is equivalent to
9382 * elm_layout_content_unset() for table.
9384 * @see elm_layout_table_pack()
9385 * @see elm_layout_table_clear()
9389 EAPI Evas_Object *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
9391 * Remove all child of the given part table.
9393 * @param obj The layout object
9394 * @param part The table part name to remove child.
9395 * @param clear If EINA_TRUE, then all objects will be deleted as
9396 * well, otherwise they will just be removed and will be
9397 * dangling on the canvas.
9399 * The objects will be removed from the table part and their lifetime will
9400 * not be handled by the layout anymore. This is equivalent to
9401 * elm_layout_table_unpack() for all table children.
9403 * @see elm_layout_table_pack()
9404 * @see elm_layout_table_unpack()
9408 EAPI void elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9410 * Get the edje layout
9412 * @param obj The layout object
9414 * @return A Evas_Object with the edje layout settings loaded
9415 * with function elm_layout_file_set
9417 * This returns the edje object. It is not expected to be used to then
9418 * swallow objects via edje_object_part_swallow() for example. Use
9419 * elm_layout_content_set() instead so child object handling and sizing is
9422 * @note This function should only be used if you really need to call some
9423 * low level Edje function on this edje object. All the common stuff (setting
9424 * text, emitting signals, hooking callbacks to signals, etc.) can be done
9425 * with proper elementary functions.
9427 * @see elm_object_signal_callback_add()
9428 * @see elm_object_signal_emit()
9429 * @see elm_object_text_part_set()
9430 * @see elm_layout_content_set()
9431 * @see elm_layout_box_append()
9432 * @see elm_layout_table_pack()
9433 * @see elm_layout_data_get()
9437 EAPI Evas_Object *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9439 * Get the edje data from the given layout
9441 * @param obj The layout object
9442 * @param key The data key
9444 * @return The edje data string
9446 * This function fetches data specified inside the edje theme of this layout.
9447 * This function return NULL if data is not found.
9449 * In EDC this comes from a data block within the group block that @p
9450 * obj was loaded from. E.g.
9457 * item: "key1" "value1";
9458 * item: "key2" "value2";
9466 EAPI const char *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
9470 * @param obj The layout object
9472 * Manually forces a sizing re-evaluation. This is useful when the minimum
9473 * size required by the edje theme of this layout has changed. The change on
9474 * the minimum size required by the edje theme is not immediately reported to
9475 * the elementary layout, so one needs to call this function in order to tell
9476 * the widget (layout) that it needs to reevaluate its own size.
9478 * The minimum size of the theme is calculated based on minimum size of
9479 * parts, the size of elements inside containers like box and table, etc. All
9480 * of this can change due to state changes, and that's when this function
9483 * Also note that a standard signal of "size,eval" "elm" emitted from the
9484 * edje object will cause this to happen too.
9488 EAPI void elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
9491 * Sets a specific cursor for an edje part.
9493 * @param obj The layout object.
9494 * @param part_name a part from loaded edje group.
9495 * @param cursor cursor name to use, see Elementary_Cursor.h
9497 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9498 * part not exists or it has "mouse_events: 0".
9502 EAPI Eina_Bool elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
9505 * Get the cursor to be shown when mouse is over an edje part
9507 * @param obj The layout object.
9508 * @param part_name a part from loaded edje group.
9509 * @return the cursor name.
9513 EAPI const char *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9516 * Unsets a cursor previously set with elm_layout_part_cursor_set().
9518 * @param obj The layout object.
9519 * @param part_name a part from loaded edje group, that had a cursor set
9520 * with elm_layout_part_cursor_set().
9524 EAPI void elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9527 * Sets a specific cursor style for an edje part.
9529 * @param obj The layout object.
9530 * @param part_name a part from loaded edje group.
9531 * @param style the theme style to use (default, transparent, ...)
9533 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9534 * part not exists or it did not had a cursor set.
9538 EAPI Eina_Bool elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
9541 * Gets a specific cursor style for an edje part.
9543 * @param obj The layout object.
9544 * @param part_name a part from loaded edje group.
9546 * @return the theme style in use, defaults to "default". If the
9547 * object does not have a cursor set, then NULL is returned.
9551 EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9554 * Sets if the cursor set should be searched on the theme or should use
9555 * the provided by the engine, only.
9557 * @note before you set if should look on theme you should define a
9558 * cursor with elm_layout_part_cursor_set(). By default it will only
9559 * look for cursors provided by the engine.
9561 * @param obj The layout object.
9562 * @param part_name a part from loaded edje group.
9563 * @param engine_only if cursors should be just provided by the engine
9564 * or should also search on widget's theme as well
9566 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9567 * part not exists or it did not had a cursor set.
9571 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);
9574 * Gets a specific cursor engine_only for an edje part.
9576 * @param obj The layout object.
9577 * @param part_name a part from loaded edje group.
9579 * @return whenever the cursor is just provided by engine or also from theme.
9583 EAPI Eina_Bool elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9586 * @def elm_layout_icon_set
9587 * Convienience macro to set the icon object in a layout that follows the
9588 * Elementary naming convention for its parts.
9592 #define elm_layout_icon_set(_ly, _obj) \
9595 elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
9596 if ((_obj)) sig = "elm,state,icon,visible"; \
9597 else sig = "elm,state,icon,hidden"; \
9598 elm_object_signal_emit((_ly), sig, "elm"); \
9602 * @def elm_layout_icon_get
9603 * Convienience macro to get the icon object from a layout that follows the
9604 * Elementary naming convention for its parts.
9608 #define elm_layout_icon_get(_ly) \
9609 elm_layout_content_get((_ly), "elm.swallow.icon")
9612 * @def elm_layout_end_set
9613 * Convienience macro to set the end object in a layout that follows the
9614 * Elementary naming convention for its parts.
9618 #define elm_layout_end_set(_ly, _obj) \
9621 elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
9622 if ((_obj)) sig = "elm,state,end,visible"; \
9623 else sig = "elm,state,end,hidden"; \
9624 elm_object_signal_emit((_ly), sig, "elm"); \
9628 * @def elm_layout_end_get
9629 * Convienience macro to get the end object in a layout that follows the
9630 * Elementary naming convention for its parts.
9634 #define elm_layout_end_get(_ly) \
9635 elm_layout_content_get((_ly), "elm.swallow.end")
9638 * @def elm_layout_label_set
9639 * Convienience macro to set the label in a layout that follows the
9640 * Elementary naming convention for its parts.
9643 * @deprecated use elm_object_text_* instead.
9645 #define elm_layout_label_set(_ly, _txt) \
9646 elm_layout_text_set((_ly), "elm.text", (_txt))
9649 * @def elm_layout_label_get
9650 * Convienience macro to get the label in a layout that follows the
9651 * Elementary naming convention for its parts.
9654 * @deprecated use elm_object_text_* instead.
9656 #define elm_layout_label_get(_ly) \
9657 elm_layout_text_get((_ly), "elm.text")
9659 /* smart callbacks called:
9660 * "theme,changed" - when elm theme is changed.
9664 * @defgroup Notify Notify
9666 * @image html img/widget/notify/preview-00.png
9667 * @image latex img/widget/notify/preview-00.eps
9669 * Display a container in a particular region of the parent(top, bottom,
9670 * etc. A timeout can be set to automatically hide the notify. This is so
9671 * that, after an evas_object_show() on a notify object, if a timeout was set
9672 * on it, it will @b automatically get hidden after that time.
9674 * Signals that you can add callbacks for are:
9675 * @li "timeout" - when timeout happens on notify and it's hidden
9676 * @li "block,clicked" - when a click outside of the notify happens
9678 * @ref tutorial_notify show usage of the API.
9683 * @brief Possible orient values for notify.
9685 * This values should be used in conjunction to elm_notify_orient_set() to
9686 * set the position in which the notify should appear(relative to its parent)
9687 * and in conjunction with elm_notify_orient_get() to know where the notify
9690 typedef enum _Elm_Notify_Orient
9692 ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
9693 ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
9694 ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
9695 ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
9696 ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
9697 ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
9698 ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
9699 ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
9700 ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
9701 ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
9702 } Elm_Notify_Orient;
9704 * @brief Add a new notify to the parent
9706 * @param parent The parent object
9707 * @return The new object or NULL if it cannot be created
9709 EAPI Evas_Object *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9711 * @brief Set the content of the notify widget
9713 * @param obj The notify object
9714 * @param content The content will be filled in this notify object
9716 * Once the content object is set, a previously set one will be deleted. If
9717 * you want to keep that old content object, use the
9718 * elm_notify_content_unset() function.
9720 EAPI void elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
9722 * @brief Unset the content of the notify widget
9724 * @param obj The notify object
9725 * @return The content that was being used
9727 * Unparent and return the content object which was set for this widget
9729 * @see elm_notify_content_set()
9731 EAPI Evas_Object *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
9733 * @brief Return the content of the notify widget
9735 * @param obj The notify object
9736 * @return The content that is being used
9738 * @see elm_notify_content_set()
9740 EAPI Evas_Object *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9742 * @brief Set the notify parent
9744 * @param obj The notify object
9745 * @param content The new parent
9747 * Once the parent object is set, a previously set one will be disconnected
9750 EAPI void elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
9752 * @brief Get the notify parent
9754 * @param obj The notify object
9755 * @return The parent
9757 * @see elm_notify_parent_set()
9759 EAPI Evas_Object *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9761 * @brief Set the orientation
9763 * @param obj The notify object
9764 * @param orient The new orientation
9766 * Sets the position in which the notify will appear in its parent.
9768 * @see @ref Elm_Notify_Orient for possible values.
9770 EAPI void elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
9772 * @brief Return the orientation
9773 * @param obj The notify object
9774 * @return The orientation of the notification
9776 * @see elm_notify_orient_set()
9777 * @see Elm_Notify_Orient
9779 EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9781 * @brief Set the time interval after which the notify window is going to be
9784 * @param obj The notify object
9785 * @param time The timeout in seconds
9787 * This function sets a timeout and starts the timer controlling when the
9788 * notify is hidden. Since calling evas_object_show() on a notify restarts
9789 * the timer controlling when the notify is hidden, setting this before the
9790 * notify is shown will in effect mean starting the timer when the notify is
9793 * @note Set a value <= 0.0 to disable a running timer.
9795 * @note If the value > 0.0 and the notify is previously visible, the
9796 * timer will be started with this value, canceling any running timer.
9798 EAPI void elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
9800 * @brief Return the timeout value (in seconds)
9801 * @param obj the notify object
9803 * @see elm_notify_timeout_set()
9805 EAPI double elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9807 * @brief Sets whether events should be passed to by a click outside
9810 * @param obj The notify object
9811 * @param repeats EINA_TRUE Events are repeats, else no
9813 * When true if the user clicks outside the window the events will be caught
9814 * by the others widgets, else the events are blocked.
9816 * @note The default value is EINA_TRUE.
9818 EAPI void elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
9820 * @brief Return true if events are repeat below the notify object
9821 * @param obj the notify object
9823 * @see elm_notify_repeat_events_set()
9825 EAPI Eina_Bool elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9831 * @defgroup Hover Hover
9833 * @image html img/widget/hover/preview-00.png
9834 * @image latex img/widget/hover/preview-00.eps
9836 * A Hover object will hover over its @p parent object at the @p target
9837 * location. Anything in the background will be given a darker coloring to
9838 * indicate that the hover object is on top (at the default theme). When the
9839 * hover is clicked it is dismissed(hidden), if the contents of the hover are
9840 * clicked that @b doesn't cause the hover to be dismissed.
9842 * @note The hover object will take up the entire space of @p target
9845 * Elementary has the following styles for the hover widget:
9849 * @li hoversel_vertical
9851 * The following are the available position for content:
9863 * Signals that you can add callbacks for are:
9864 * @li "clicked" - the user clicked the empty space in the hover to dismiss
9865 * @li "smart,changed" - a content object placed under the "smart"
9866 * policy was replaced to a new slot direction.
9868 * See @ref tutorial_hover for more information.
9872 typedef enum _Elm_Hover_Axis
9874 ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
9875 ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
9876 ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
9877 ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
9880 * @brief Adds a hover object to @p parent
9882 * @param parent The parent object
9883 * @return The hover object or NULL if one could not be created
9885 EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9887 * @brief Sets the target object for the hover.
9889 * @param obj The hover object
9890 * @param target The object to center the hover onto. The hover
9892 * This function will cause the hover to be centered on the target object.
9894 EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
9896 * @brief Gets the target object for the hover.
9898 * @param obj The hover object
9899 * @param parent The object to locate the hover over.
9901 * @see elm_hover_target_set()
9903 EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9905 * @brief Sets the parent object for the hover.
9907 * @param obj The hover object
9908 * @param parent The object to locate the hover over.
9910 * This function will cause the hover to take up the entire space that the
9911 * parent object fills.
9913 EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
9915 * @brief Gets the parent object for the hover.
9917 * @param obj The hover object
9918 * @return The parent object to locate the hover over.
9920 * @see elm_hover_parent_set()
9922 EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9924 * @brief Sets the content of the hover object and the direction in which it
9927 * @param obj The hover object
9928 * @param swallow The direction that the object will be displayed
9929 * at. Accepted values are "left", "top-left", "top", "top-right",
9930 * "right", "bottom-right", "bottom", "bottom-left", "middle" and
9932 * @param content The content to place at @p swallow
9934 * Once the content object is set for a given direction, a previously
9935 * set one (on the same direction) will be deleted. If you want to
9936 * keep that old content object, use the elm_hover_content_unset()
9939 * All directions may have contents at the same time, except for
9940 * "smart". This is a special placement hint and its use case
9941 * independs of the calculations coming from
9942 * elm_hover_best_content_location_get(). Its use is for cases when
9943 * one desires only one hover content, but with a dinamic special
9944 * placement within the hover area. The content's geometry, whenever
9945 * it changes, will be used to decide on a best location not
9946 * extrapolating the hover's parent object view to show it in (still
9947 * being the hover's target determinant of its medium part -- move and
9948 * resize it to simulate finger sizes, for example). If one of the
9949 * directions other than "smart" are used, a previously content set
9950 * using it will be deleted, and vice-versa.
9952 EAPI void elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9954 * @brief Get the content of the hover object, in a given direction.
9956 * Return the content object which was set for this widget in the
9957 * @p swallow direction.
9959 * @param obj The hover object
9960 * @param swallow The direction that the object was display at.
9961 * @return The content that was being used
9963 * @see elm_hover_content_set()
9965 EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9967 * @brief Unset the content of the hover object, in a given direction.
9969 * Unparent and return the content object set at @p swallow direction.
9971 * @param obj The hover object
9972 * @param swallow The direction that the object was display at.
9973 * @return The content that was being used.
9975 * @see elm_hover_content_set()
9977 EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9979 * @brief Returns the best swallow location for content in the hover.
9981 * @param obj The hover object
9982 * @param pref_axis The preferred orientation axis for the hover object to use
9983 * @return The edje location to place content into the hover or @c
9986 * Best is defined here as the location at which there is the most available
9989 * @p pref_axis may be one of
9990 * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
9991 * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
9992 * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
9993 * - @c ELM_HOVER_AXIS_BOTH -- both
9995 * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
9996 * nescessarily be along the horizontal axis("left" or "right"). If
9997 * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
9998 * be along the vertical axis("top" or "bottom"). Chossing
9999 * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10000 * returned position may be in either axis.
10002 * @see elm_hover_content_set()
10004 EAPI const char *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10011 * @defgroup Entry Entry
10013 * @image html img/widget/entry/preview-00.png
10014 * @image latex img/widget/entry/preview-00.eps width=\textwidth
10015 * @image html img/widget/entry/preview-01.png
10016 * @image latex img/widget/entry/preview-01.eps width=\textwidth
10017 * @image html img/widget/entry/preview-02.png
10018 * @image latex img/widget/entry/preview-02.eps width=\textwidth
10019 * @image html img/widget/entry/preview-03.png
10020 * @image latex img/widget/entry/preview-03.eps width=\textwidth
10022 * An entry is a convenience widget which shows a box that the user can
10023 * enter text into. Entries by default don't scroll, so they grow to
10024 * accomodate the entire text, resizing the parent window as needed. This
10025 * can be changed with the elm_entry_scrollable_set() function.
10027 * They can also be single line or multi line (the default) and when set
10028 * to multi line mode they support text wrapping in any of the modes
10029 * indicated by #Elm_Wrap_Type.
10031 * Other features include password mode, filtering of inserted text with
10032 * elm_entry_text_filter_append() and related functions, inline "items" and
10033 * formatted markup text.
10035 * @section entry-markup Formatted text
10037 * The markup tags supported by the Entry are defined by the theme, but
10038 * even when writing new themes or extensions it's a good idea to stick to
10039 * a sane default, to maintain coherency and avoid application breakages.
10040 * Currently defined by the default theme are the following tags:
10041 * @li \<br\>: Inserts a line break.
10042 * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10044 * @li \<tab\>: Inserts a tab.
10045 * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10047 * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10048 * @li \<link\>...\</link\>: Underlines the enclosed text.
10049 * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10051 * @section entry-special Special markups
10053 * Besides those used to format text, entries support two special markup
10054 * tags used to insert clickable portions of text or items inlined within
10057 * @subsection entry-anchors Anchors
10059 * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10060 * \</a\> tags and an event will be generated when this text is clicked,
10064 * This text is outside <a href=anc-01>but this one is an anchor</a>
10067 * The @c href attribute in the opening tag gives the name that will be
10068 * used to identify the anchor and it can be any valid utf8 string.
10070 * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10071 * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10072 * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10073 * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10076 * @subsection entry-items Items
10078 * Inlined in the text, any other @c Evas_Object can be inserted by using
10079 * \<item\> tags this way:
10082 * <item size=16x16 vsize=full href=emoticon/haha></item>
10085 * Just like with anchors, the @c href identifies each item, but these need,
10086 * in addition, to indicate their size, which is done using any one of
10087 * @c size, @c absize or @c relsize attributes. These attributes take their
10088 * value in the WxH format, where W is the width and H the height of the
10091 * @li absize: Absolute pixel size for the item. Whatever value is set will
10092 * be the item's size regardless of any scale value the object may have
10093 * been set to. The final line height will be adjusted to fit larger items.
10094 * @li size: Similar to @c absize, but it's adjusted to the scale value set
10096 * @li relsize: Size is adjusted for the item to fit within the current
10099 * Besides their size, items are specificed a @c vsize value that affects
10100 * how their final size and position are calculated. The possible values
10102 * @li ascent: Item will be placed within the line's baseline and its
10103 * ascent. That is, the height between the line where all characters are
10104 * positioned and the highest point in the line. For @c size and @c absize
10105 * items, the descent value will be added to the total line height to make
10106 * them fit. @c relsize items will be adjusted to fit within this space.
10107 * @li full: Items will be placed between the descent and ascent, or the
10108 * lowest point in the line and its highest.
10110 * The next image shows different configurations of items and how they
10111 * are the previously mentioned options affect their sizes. In all cases,
10112 * the green line indicates the ascent, blue for the baseline and red for
10115 * @image html entry_item.png
10116 * @image latex entry_item.eps width=\textwidth
10118 * And another one to show how size differs from absize. In the first one,
10119 * the scale value is set to 1.0, while the second one is using one of 2.0.
10121 * @image html entry_item_scale.png
10122 * @image latex entry_item_scale.eps width=\textwidth
10124 * After the size for an item is calculated, the entry will request an
10125 * object to place in its space. For this, the functions set with
10126 * elm_entry_item_provider_append() and related functions will be called
10127 * in order until one of them returns a @c non-NULL value. If no providers
10128 * are available, or all of them return @c NULL, then the entry falls back
10129 * to one of the internal defaults, provided the name matches with one of
10132 * All of the following are currently supported:
10135 * - emoticon/angry-shout
10136 * - emoticon/crazy-laugh
10137 * - emoticon/evil-laugh
10139 * - emoticon/goggle-smile
10140 * - emoticon/grumpy
10141 * - emoticon/grumpy-smile
10142 * - emoticon/guilty
10143 * - emoticon/guilty-smile
10145 * - emoticon/half-smile
10146 * - emoticon/happy-panting
10148 * - emoticon/indifferent
10150 * - emoticon/knowing-grin
10152 * - emoticon/little-bit-sorry
10153 * - emoticon/love-lots
10155 * - emoticon/minimal-smile
10156 * - emoticon/not-happy
10157 * - emoticon/not-impressed
10159 * - emoticon/opensmile
10162 * - emoticon/squint-laugh
10163 * - emoticon/surprised
10164 * - emoticon/suspicious
10165 * - emoticon/tongue-dangling
10166 * - emoticon/tongue-poke
10168 * - emoticon/unhappy
10169 * - emoticon/very-sorry
10172 * - emoticon/worried
10175 * Alternatively, an item may reference an image by its path, using
10176 * the URI form @c file:///path/to/an/image.png and the entry will then
10177 * use that image for the item.
10179 * @section entry-files Loading and saving files
10181 * Entries have convinience functions to load text from a file and save
10182 * changes back to it after a short delay. The automatic saving is enabled
10183 * by default, but can be disabled with elm_entry_autosave_set() and files
10184 * can be loaded directly as plain text or have any markup in them
10185 * recognized. See elm_entry_file_set() for more details.
10187 * @section entry-signals Emitted signals
10189 * This widget emits the following signals:
10191 * @li "changed": The text within the entry was changed.
10192 * @li "changed,user": The text within the entry was changed because of user interaction.
10193 * @li "activated": The enter key was pressed on a single line entry.
10194 * @li "press": A mouse button has been pressed on the entry.
10195 * @li "longpressed": A mouse button has been pressed and held for a couple
10197 * @li "clicked": The entry has been clicked (mouse press and release).
10198 * @li "clicked,double": The entry has been double clicked.
10199 * @li "clicked,triple": The entry has been triple clicked.
10200 * @li "focused": The entry has received focus.
10201 * @li "unfocused": The entry has lost focus.
10202 * @li "selection,paste": A paste of the clipboard contents was requested.
10203 * @li "selection,copy": A copy of the selected text into the clipboard was
10205 * @li "selection,cut": A cut of the selected text into the clipboard was
10207 * @li "selection,start": A selection has begun and no previous selection
10209 * @li "selection,changed": The current selection has changed.
10210 * @li "selection,cleared": The current selection has been cleared.
10211 * @li "cursor,changed": The cursor has changed position.
10212 * @li "anchor,clicked": An anchor has been clicked. The event_info
10213 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10214 * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
10215 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10216 * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
10217 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10218 * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
10219 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10220 * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
10221 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10222 * @li "preedit,changed": The preedit string has changed.
10224 * @section entry-examples
10226 * An overview of the Entry API can be seen in @ref entry_example_01
10231 * @typedef Elm_Entry_Anchor_Info
10233 * The info sent in the callback for the "anchor,clicked" signals emitted
10236 typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
10238 * @struct _Elm_Entry_Anchor_Info
10240 * The info sent in the callback for the "anchor,clicked" signals emitted
10243 struct _Elm_Entry_Anchor_Info
10245 const char *name; /**< The name of the anchor, as stated in its href */
10246 int button; /**< The mouse button used to click on it */
10247 Evas_Coord x, /**< Anchor geometry, relative to canvas */
10248 y, /**< Anchor geometry, relative to canvas */
10249 w, /**< Anchor geometry, relative to canvas */
10250 h; /**< Anchor geometry, relative to canvas */
10253 * @typedef Elm_Entry_Filter_Cb
10254 * This callback type is used by entry filters to modify text.
10255 * @param data The data specified as the last param when adding the filter
10256 * @param entry The entry object
10257 * @param text A pointer to the location of the text being filtered. This data can be modified,
10258 * but any additional allocations must be managed by the user.
10259 * @see elm_entry_text_filter_append
10260 * @see elm_entry_text_filter_prepend
10262 typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
10265 * This adds an entry to @p parent object.
10267 * By default, entries are:
10271 * @li autosave is enabled
10273 * @param parent The parent object
10274 * @return The new object or NULL if it cannot be created
10276 EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10278 * Sets the entry to single line mode.
10280 * In single line mode, entries don't ever wrap when the text reaches the
10281 * edge, and instead they keep growing horizontally. Pressing the @c Enter
10282 * key will generate an @c "activate" event instead of adding a new line.
10284 * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
10285 * and pressing enter will break the text into a different line
10286 * without generating any events.
10288 * @param obj The entry object
10289 * @param single_line If true, the text in the entry
10290 * will be on a single line.
10292 EAPI void elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
10294 * Gets whether the entry is set to be single line.
10296 * @param obj The entry object
10297 * @return single_line If true, the text in the entry is set to display
10298 * on a single line.
10300 * @see elm_entry_single_line_set()
10302 EAPI Eina_Bool elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10304 * Sets the entry to password mode.
10306 * In password mode, entries are implicitly single line and the display of
10307 * any text in them is replaced with asterisks (*).
10309 * @param obj The entry object
10310 * @param password If true, password mode is enabled.
10312 EAPI void elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
10314 * Gets whether the entry is set to password mode.
10316 * @param obj The entry object
10317 * @return If true, the entry is set to display all characters
10318 * as asterisks (*).
10320 * @see elm_entry_password_set()
10322 EAPI Eina_Bool elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10324 * This sets the text displayed within the entry to @p entry.
10326 * @param obj The entry object
10327 * @param entry The text to be displayed
10329 * @deprecated Use elm_object_text_set() instead.
10331 EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10333 * This returns the text currently shown in object @p entry.
10334 * See also elm_entry_entry_set().
10336 * @param obj The entry object
10337 * @return The currently displayed text or NULL on failure
10339 * @deprecated Use elm_object_text_get() instead.
10341 EAPI const char *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10343 * Appends @p entry to the text of the entry.
10345 * Adds the text in @p entry to the end of any text already present in the
10348 * The appended text is subject to any filters set for the widget.
10350 * @param obj The entry object
10351 * @param entry The text to be displayed
10353 * @see elm_entry_text_filter_append()
10355 EAPI void elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10357 * Gets whether the entry is empty.
10359 * Empty means no text at all. If there are any markup tags, like an item
10360 * tag for which no provider finds anything, and no text is displayed, this
10361 * function still returns EINA_FALSE.
10363 * @param obj The entry object
10364 * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
10366 EAPI Eina_Bool elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10368 * Gets any selected text within the entry.
10370 * If there's any selected text in the entry, this function returns it as
10371 * a string in markup format. NULL is returned if no selection exists or
10372 * if an error occurred.
10374 * The returned value points to an internal string and should not be freed
10375 * or modified in any way. If the @p entry object is deleted or its
10376 * contents are changed, the returned pointer should be considered invalid.
10378 * @param obj The entry object
10379 * @return The selected text within the entry or NULL on failure
10381 EAPI const char *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10383 * Inserts the given text into the entry at the current cursor position.
10385 * This inserts text at the cursor position as if it was typed
10386 * by the user (note that this also allows markup which a user
10387 * can't just "type" as it would be converted to escaped text, so this
10388 * call can be used to insert things like emoticon items or bold push/pop
10389 * tags, other font and color change tags etc.)
10391 * If any selection exists, it will be replaced by the inserted text.
10393 * The inserted text is subject to any filters set for the widget.
10395 * @param obj The entry object
10396 * @param entry The text to insert
10398 * @see elm_entry_text_filter_append()
10400 EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10402 * Set the line wrap type to use on multi-line entries.
10404 * Sets the wrap type used by the entry to any of the specified in
10405 * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
10406 * line (without inserting a line break or paragraph separator) when it
10407 * reaches the far edge of the widget.
10409 * Note that this only makes sense for multi-line entries. A widget set
10410 * to be single line will never wrap.
10412 * @param obj The entry object
10413 * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
10415 EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
10417 * Gets the wrap mode the entry was set to use.
10419 * @param obj The entry object
10420 * @return Wrap type
10422 * @see also elm_entry_line_wrap_set()
10424 EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10426 * Sets if the entry is to be editable or not.
10428 * By default, entries are editable and when focused, any text input by the
10429 * user will be inserted at the current cursor position. But calling this
10430 * function with @p editable as EINA_FALSE will prevent the user from
10431 * inputting text into the entry.
10433 * The only way to change the text of a non-editable entry is to use
10434 * elm_object_text_set(), elm_entry_entry_insert() and other related
10437 * @param obj The entry object
10438 * @param editable If EINA_TRUE, user input will be inserted in the entry,
10439 * if not, the entry is read-only and no user input is allowed.
10441 EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
10443 * Gets whether the entry is editable or not.
10445 * @param obj The entry object
10446 * @return If true, the entry is editable by the user.
10447 * If false, it is not editable by the user
10449 * @see elm_entry_editable_set()
10451 EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10453 * This drops any existing text selection within the entry.
10455 * @param obj The entry object
10457 EAPI void elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
10459 * This selects all text within the entry.
10461 * @param obj The entry object
10463 EAPI void elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
10465 * This moves the cursor one place to the right within the entry.
10467 * @param obj The entry object
10468 * @return EINA_TRUE upon success, EINA_FALSE upon failure
10470 EAPI Eina_Bool elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
10472 * This moves the cursor one place to the left within the entry.
10474 * @param obj The entry object
10475 * @return EINA_TRUE upon success, EINA_FALSE upon failure
10477 EAPI Eina_Bool elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
10479 * This moves the cursor one line up within the entry.
10481 * @param obj The entry object
10482 * @return EINA_TRUE upon success, EINA_FALSE upon failure
10484 EAPI Eina_Bool elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
10486 * This moves the cursor one line down within the entry.
10488 * @param obj The entry object
10489 * @return EINA_TRUE upon success, EINA_FALSE upon failure
10491 EAPI Eina_Bool elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
10493 * This moves the cursor to the beginning of the entry.
10495 * @param obj The entry object
10497 EAPI void elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10499 * This moves the cursor to the end of the entry.
10501 * @param obj The entry object
10503 EAPI void elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10505 * This moves the cursor to the beginning of the current line.
10507 * @param obj The entry object
10509 EAPI void elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10511 * This moves the cursor to the end of the current line.
10513 * @param obj The entry object
10515 EAPI void elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10517 * This begins a selection within the entry as though
10518 * the user were holding down the mouse button to make a selection.
10520 * @param obj The entry object
10522 EAPI void elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
10524 * This ends a selection within the entry as though
10525 * the user had just released the mouse button while making a selection.
10527 * @param obj The entry object
10529 EAPI void elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
10531 * Gets whether a format node exists at the current cursor position.
10533 * A format node is anything that defines how the text is rendered. It can
10534 * be a visible format node, such as a line break or a paragraph separator,
10535 * or an invisible one, such as bold begin or end tag.
10536 * This function returns whether any format node exists at the current
10539 * @param obj The entry object
10540 * @return EINA_TRUE if the current cursor position contains a format node,
10541 * EINA_FALSE otherwise.
10543 * @see elm_entry_cursor_is_visible_format_get()
10545 EAPI Eina_Bool elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10547 * Gets if the current cursor position holds a visible format node.
10549 * @param obj The entry object
10550 * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
10551 * if it's an invisible one or no format exists.
10553 * @see elm_entry_cursor_is_format_get()
10555 EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10557 * Gets the character pointed by the cursor at its current position.
10559 * This function returns a string with the utf8 character stored at the
10560 * current cursor position.
10561 * Only the text is returned, any format that may exist will not be part
10562 * of the return value.
10564 * @param obj The entry object
10565 * @return The text pointed by the cursors.
10567 EAPI const char *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10569 * This function returns the geometry of the cursor.
10571 * It's useful if you want to draw something on the cursor (or where it is),
10572 * or for example in the case of scrolled entry where you want to show the
10575 * @param obj The entry object
10576 * @param x returned geometry
10577 * @param y returned geometry
10578 * @param w returned geometry
10579 * @param h returned geometry
10580 * @return EINA_TRUE upon success, EINA_FALSE upon failure
10582 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);
10584 * Sets the cursor position in the entry to the given value
10586 * The value in @p pos is the index of the character position within the
10587 * contents of the string as returned by elm_entry_cursor_pos_get().
10589 * @param obj The entry object
10590 * @param pos The position of the cursor
10592 EAPI void elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
10594 * Retrieves the current position of the cursor in the entry
10596 * @param obj The entry object
10597 * @return The cursor position
10599 EAPI int elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10601 * This executes a "cut" action on the selected text in the entry.
10603 * @param obj The entry object
10605 EAPI void elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
10607 * This executes a "copy" action on the selected text in the entry.
10609 * @param obj The entry object
10611 EAPI void elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
10613 * This executes a "paste" action in the entry.
10615 * @param obj The entry object
10617 EAPI void elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
10619 * This clears and frees the items in a entry's contextual (longpress)
10622 * @param obj The entry object
10624 * @see elm_entry_context_menu_item_add()
10626 EAPI void elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
10628 * This adds an item to the entry's contextual menu.
10630 * A longpress on an entry will make the contextual menu show up, if this
10631 * hasn't been disabled with elm_entry_context_menu_disabled_set().
10632 * By default, this menu provides a few options like enabling selection mode,
10633 * which is useful on embedded devices that need to be explicit about it,
10634 * and when a selection exists it also shows the copy and cut actions.
10636 * With this function, developers can add other options to this menu to
10637 * perform any action they deem necessary.
10639 * @param obj The entry object
10640 * @param label The item's text label
10641 * @param icon_file The item's icon file
10642 * @param icon_type The item's icon type
10643 * @param func The callback to execute when the item is clicked
10644 * @param data The data to associate with the item for related functions
10646 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);
10648 * This disables the entry's contextual (longpress) menu.
10650 * @param obj The entry object
10651 * @param disabled If true, the menu is disabled
10653 EAPI void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
10655 * This returns whether the entry's contextual (longpress) menu is
10658 * @param obj The entry object
10659 * @return If true, the menu is disabled
10661 EAPI Eina_Bool elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10663 * This appends a custom item provider to the list for that entry
10665 * This appends the given callback. The list is walked from beginning to end
10666 * with each function called given the item href string in the text. If the
10667 * function returns an object handle other than NULL (it should create an
10668 * object to do this), then this object is used to replace that item. If
10669 * not the next provider is called until one provides an item object, or the
10670 * default provider in entry does.
10672 * @param obj The entry object
10673 * @param func The function called to provide the item object
10674 * @param data The data passed to @p func
10676 * @see @ref entry-items
10678 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);
10680 * This prepends a custom item provider to the list for that entry
10682 * This prepends the given callback. See elm_entry_item_provider_append() for
10685 * @param obj The entry object
10686 * @param func The function called to provide the item object
10687 * @param data The data passed to @p func
10689 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);
10691 * This removes a custom item provider to the list for that entry
10693 * This removes the given callback. See elm_entry_item_provider_append() for
10696 * @param obj The entry object
10697 * @param func The function called to provide the item object
10698 * @param data The data passed to @p func
10700 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);
10702 * Append a filter function for text inserted in the entry
10704 * Append the given callback to the list. This functions will be called
10705 * whenever any text is inserted into the entry, with the text to be inserted
10706 * as a parameter. The callback function is free to alter the text in any way
10707 * it wants, but it must remember to free the given pointer and update it.
10708 * If the new text is to be discarded, the function can free it and set its
10709 * text parameter to NULL. This will also prevent any following filters from
10712 * @param obj The entry object
10713 * @param func The function to use as text filter
10714 * @param data User data to pass to @p func
10716 EAPI void elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
10718 * Prepend a filter function for text insdrted in the entry
10720 * Prepend the given callback to the list. See elm_entry_text_filter_append()
10721 * for more information
10723 * @param obj The entry object
10724 * @param func The function to use as text filter
10725 * @param data User data to pass to @p func
10727 EAPI void elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
10729 * Remove a filter from the list
10731 * Removes the given callback from the filter list. See
10732 * elm_entry_text_filter_append() for more information.
10734 * @param obj The entry object
10735 * @param func The filter function to remove
10736 * @param data The user data passed when adding the function
10738 EAPI void elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
10740 * This converts a markup (HTML-like) string into UTF-8.
10742 * The returned string is a malloc'ed buffer and it should be freed when
10743 * not needed anymore.
10745 * @param s The string (in markup) to be converted
10746 * @return The converted string (in UTF-8). It should be freed.
10748 EAPI char *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
10750 * This converts a UTF-8 string into markup (HTML-like).
10752 * The returned string is a malloc'ed buffer and it should be freed when
10753 * not needed anymore.
10755 * @param s The string (in UTF-8) to be converted
10756 * @return The converted string (in markup). It should be freed.
10758 EAPI char *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
10760 * This sets the file (and implicitly loads it) for the text to display and
10761 * then edit. All changes are written back to the file after a short delay if
10762 * the entry object is set to autosave (which is the default).
10764 * If the entry had any other file set previously, any changes made to it
10765 * will be saved if the autosave feature is enabled, otherwise, the file
10766 * will be silently discarded and any non-saved changes will be lost.
10768 * @param obj The entry object
10769 * @param file The path to the file to load and save
10770 * @param format The file format
10772 EAPI void elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
10774 * Gets the file being edited by the entry.
10776 * This function can be used to retrieve any file set on the entry for
10777 * edition, along with the format used to load and save it.
10779 * @param obj The entry object
10780 * @param file The path to the file to load and save
10781 * @param format The file format
10783 EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
10785 * This function writes any changes made to the file set with
10786 * elm_entry_file_set()
10788 * @param obj The entry object
10790 EAPI void elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
10792 * This sets the entry object to 'autosave' the loaded text file or not.
10794 * @param obj The entry object
10795 * @param autosave Autosave the loaded file or not
10797 * @see elm_entry_file_set()
10799 EAPI void elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
10801 * This gets the entry object's 'autosave' status.
10803 * @param obj The entry object
10804 * @return Autosave the loaded file or not
10806 * @see elm_entry_file_set()
10808 EAPI Eina_Bool elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10810 * Control pasting of text and images for the widget.
10812 * Normally the entry allows both text and images to be pasted. By setting
10813 * textonly to be true, this prevents images from being pasted.
10815 * Note this only changes the behaviour of text.
10817 * @param obj The entry object
10818 * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
10819 * text+image+other.
10821 EAPI void elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
10823 * Getting elm_entry text paste/drop mode.
10825 * In textonly mode, only text may be pasted or dropped into the widget.
10827 * @param obj The entry object
10828 * @return If the widget only accepts text from pastes.
10830 EAPI Eina_Bool elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10832 * Enable or disable scrolling in entry
10834 * Normally the entry is not scrollable unless you enable it with this call.
10836 * @param obj The entry object
10837 * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
10839 EAPI void elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
10841 * Get the scrollable state of the entry
10843 * Normally the entry is not scrollable. This gets the scrollable state
10844 * of the entry. See elm_entry_scrollable_set() for more information.
10846 * @param obj The entry object
10847 * @return The scrollable state
10849 EAPI Eina_Bool elm_entry_scrollable_get(const Evas_Object *obj);
10851 * This sets a widget to be displayed to the left of a scrolled entry.
10853 * @param obj The scrolled entry object
10854 * @param icon The widget to display on the left side of the scrolled
10857 * @note A previously set widget will be destroyed.
10858 * @note If the object being set does not have minimum size hints set,
10859 * it won't get properly displayed.
10861 * @see elm_entry_end_set()
10863 EAPI void elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
10865 * Gets the leftmost widget of the scrolled entry. This object is
10866 * owned by the scrolled entry and should not be modified.
10868 * @param obj The scrolled entry object
10869 * @return the left widget inside the scroller
10871 EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
10873 * Unset the leftmost widget of the scrolled entry, unparenting and
10876 * @param obj The scrolled entry object
10877 * @return the previously set icon sub-object of this entry, on
10880 * @see elm_entry_icon_set()
10882 EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
10884 * Sets the visibility of the left-side widget of the scrolled entry,
10885 * set by elm_entry_icon_set().
10887 * @param obj The scrolled entry object
10888 * @param setting EINA_TRUE if the object should be displayed,
10889 * EINA_FALSE if not.
10891 EAPI void elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
10893 * This sets a widget to be displayed to the end of a scrolled entry.
10895 * @param obj The scrolled entry object
10896 * @param end The widget to display on the right side of the scrolled
10899 * @note A previously set widget will be destroyed.
10900 * @note If the object being set does not have minimum size hints set,
10901 * it won't get properly displayed.
10903 * @see elm_entry_icon_set
10905 EAPI void elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
10907 * Gets the endmost widget of the scrolled entry. This object is owned
10908 * by the scrolled entry and should not be modified.
10910 * @param obj The scrolled entry object
10911 * @return the right widget inside the scroller
10913 EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
10915 * Unset the endmost widget of the scrolled entry, unparenting and
10918 * @param obj The scrolled entry object
10919 * @return the previously set icon sub-object of this entry, on
10922 * @see elm_entry_icon_set()
10924 EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
10926 * Sets the visibility of the end widget of the scrolled entry, set by
10927 * elm_entry_end_set().
10929 * @param obj The scrolled entry object
10930 * @param setting EINA_TRUE if the object should be displayed,
10931 * EINA_FALSE if not.
10933 EAPI void elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
10935 * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
10938 * Setting an entry to single-line mode with elm_entry_single_line_set()
10939 * will automatically disable the display of scrollbars when the entry
10940 * moves inside its scroller.
10942 * @param obj The scrolled entry object
10943 * @param h The horizontal scrollbar policy to apply
10944 * @param v The vertical scrollbar policy to apply
10946 EAPI void elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
10948 * This enables/disables bouncing within the entry.
10950 * This function sets whether the entry will bounce when scrolling reaches
10951 * the end of the contained entry.
10953 * @param obj The scrolled entry object
10954 * @param h The horizontal bounce state
10955 * @param v The vertical bounce state
10957 EAPI void elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
10959 * Get the bounce mode
10961 * @param obj The Entry object
10962 * @param h_bounce Allow bounce horizontally
10963 * @param v_bounce Allow bounce vertically
10965 EAPI void elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
10967 /* pre-made filters for entries */
10969 * @typedef Elm_Entry_Filter_Limit_Size
10971 * Data for the elm_entry_filter_limit_size() entry filter.
10973 typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
10975 * @struct _Elm_Entry_Filter_Limit_Size
10977 * Data for the elm_entry_filter_limit_size() entry filter.
10979 struct _Elm_Entry_Filter_Limit_Size
10981 int max_char_count; /**< The maximum number of characters allowed. */
10982 int max_byte_count; /**< The maximum number of bytes allowed*/
10985 * Filter inserted text based on user defined character and byte limits
10987 * Add this filter to an entry to limit the characters that it will accept
10988 * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
10989 * The funtion works on the UTF-8 representation of the string, converting
10990 * it from the set markup, thus not accounting for any format in it.
10992 * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
10993 * it as data when setting the filter. In it, it's possible to set limits
10994 * by character count or bytes (any of them is disabled if 0), and both can
10995 * be set at the same time. In that case, it first checks for characters,
10998 * The function will cut the inserted text in order to allow only the first
10999 * number of characters that are still allowed. The cut is made in
11000 * characters, even when limiting by bytes, in order to always contain
11001 * valid ones and avoid half unicode characters making it in.
11003 * This filter, like any others, does not apply when setting the entry text
11004 * directly with elm_object_text_set() (or the deprecated
11005 * elm_entry_entry_set()).
11007 EAPI void elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11009 * @typedef Elm_Entry_Filter_Accept_Set
11011 * Data for the elm_entry_filter_accept_set() entry filter.
11013 typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11015 * @struct _Elm_Entry_Filter_Accept_Set
11017 * Data for the elm_entry_filter_accept_set() entry filter.
11019 struct _Elm_Entry_Filter_Accept_Set
11021 const char *accepted; /**< Set of characters accepted in the entry. */
11022 const char *rejected; /**< Set of characters rejected from the entry. */
11025 * Filter inserted text based on accepted or rejected sets of characters
11027 * Add this filter to an entry to restrict the set of accepted characters
11028 * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11029 * This structure contains both accepted and rejected sets, but they are
11030 * mutually exclusive.
11032 * The @c accepted set takes preference, so if it is set, the filter will
11033 * only work based on the accepted characters, ignoring anything in the
11034 * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11036 * In both cases, the function filters by matching utf8 characters to the
11037 * raw markup text, so it can be used to remove formatting tags.
11039 * This filter, like any others, does not apply when setting the entry text
11040 * directly with elm_object_text_set() (or the deprecated
11041 * elm_entry_entry_set()).
11043 EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11048 /* composite widgets - these basically put together basic widgets above
11049 * in convenient packages that do more than basic stuff */
11053 * @defgroup Anchorview Anchorview
11055 * @image html img/widget/anchorview/preview-00.png
11056 * @image latex img/widget/anchorview/preview-00.eps
11058 * Anchorview is for displaying text that contains markup with anchors
11059 * like <c>\<a href=1234\>something\</\></c> in it.
11061 * Besides being styled differently, the anchorview widget provides the
11062 * necessary functionality so that clicking on these anchors brings up a
11063 * popup with user defined content such as "call", "add to contacts" or
11064 * "open web page". This popup is provided using the @ref Hover widget.
11066 * This widget is very similar to @ref Anchorblock, so refer to that
11067 * widget for an example. The only difference Anchorview has is that the
11068 * widget is already provided with scrolling functionality, so if the
11069 * text set to it is too large to fit in the given space, it will scroll,
11070 * whereas the @ref Anchorblock widget will keep growing to ensure all the
11071 * text can be displayed.
11073 * This widget emits the following signals:
11074 * @li "anchor,clicked": will be called when an anchor is clicked. The
11075 * @p event_info parameter on the callback will be a pointer of type
11076 * ::Elm_Entry_Anchorview_Info.
11078 * See @ref Anchorblock for an example on how to use both of them.
11087 * @typedef Elm_Entry_Anchorview_Info
11089 * The info sent in the callback for "anchor,clicked" signals emitted by
11090 * the Anchorview widget.
11092 typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
11094 * @struct _Elm_Entry_Anchorview_Info
11096 * The info sent in the callback for "anchor,clicked" signals emitted by
11097 * the Anchorview widget.
11099 struct _Elm_Entry_Anchorview_Info
11101 const char *name; /**< Name of the anchor, as indicated in its href
11103 int button; /**< The mouse button used to click on it */
11104 Evas_Object *hover; /**< The hover object to use for the popup */
11106 Evas_Coord x, y, w, h;
11107 } anchor, /**< Geometry selection of text used as anchor */
11108 hover_parent; /**< Geometry of the object used as parent by the
11110 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
11111 for content on the left side of
11112 the hover. Before calling the
11113 callback, the widget will make the
11114 necessary calculations to check
11115 which sides are fit to be set with
11116 content, based on the position the
11117 hover is activated and its distance
11118 to the edges of its parent object
11120 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
11121 the right side of the hover.
11122 See @ref hover_left */
11123 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
11124 of the hover. See @ref hover_left */
11125 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
11126 below the hover. See @ref
11130 * Add a new Anchorview object
11132 * @param parent The parent object
11133 * @return The new object or NULL if it cannot be created
11135 EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11137 * Set the text to show in the anchorview
11139 * Sets the text of the anchorview to @p text. This text can include markup
11140 * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
11141 * text that will be specially styled and react to click events, ended with
11142 * either of \</a\> or \</\>. When clicked, the anchor will emit an
11143 * "anchor,clicked" signal that you can attach a callback to with
11144 * evas_object_smart_callback_add(). The name of the anchor given in the
11145 * event info struct will be the one set in the href attribute, in this
11146 * case, anchorname.
11148 * Other markup can be used to style the text in different ways, but it's
11149 * up to the style defined in the theme which tags do what.
11150 * @deprecated use elm_object_text_set() instead.
11152 EINA_DEPRECATED EAPI void elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11154 * Get the markup text set for the anchorview
11156 * Retrieves the text set on the anchorview, with markup tags included.
11158 * @param obj The anchorview object
11159 * @return The markup text set or @c NULL if nothing was set or an error
11161 * @deprecated use elm_object_text_set() instead.
11163 EINA_DEPRECATED EAPI const char *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11165 * Set the parent of the hover popup
11167 * Sets the parent object to use by the hover created by the anchorview
11168 * when an anchor is clicked. See @ref Hover for more details on this.
11169 * If no parent is set, the same anchorview object will be used.
11171 * @param obj The anchorview object
11172 * @param parent The object to use as parent for the hover
11174 EAPI void elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11176 * Get the parent of the hover popup
11178 * Get the object used as parent for the hover created by the anchorview
11179 * widget. See @ref Hover for more details on this.
11181 * @param obj The anchorview object
11182 * @return The object used as parent for the hover, NULL if none is set.
11184 EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11186 * Set the style that the hover should use
11188 * When creating the popup hover, anchorview will request that it's
11189 * themed according to @p style.
11191 * @param obj The anchorview object
11192 * @param style The style to use for the underlying hover
11194 * @see elm_object_style_set()
11196 EAPI void elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11198 * Get the style that the hover should use
11200 * Get the style the hover created by anchorview will use.
11202 * @param obj The anchorview object
11203 * @return The style to use by the hover. NULL means the default is used.
11205 * @see elm_object_style_set()
11207 EAPI const char *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11209 * Ends the hover popup in the anchorview
11211 * When an anchor is clicked, the anchorview widget will create a hover
11212 * object to use as a popup with user provided content. This function
11213 * terminates this popup, returning the anchorview to its normal state.
11215 * @param obj The anchorview object
11217 EAPI void elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11219 * Set bouncing behaviour when the scrolled content reaches an edge
11221 * Tell the internal scroller object whether it should bounce or not
11222 * when it reaches the respective edges for each axis.
11224 * @param obj The anchorview object
11225 * @param h_bounce Whether to bounce or not in the horizontal axis
11226 * @param v_bounce Whether to bounce or not in the vertical axis
11228 * @see elm_scroller_bounce_set()
11230 EAPI void elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
11232 * Get the set bouncing behaviour of the internal scroller
11234 * Get whether the internal scroller should bounce when the edge of each
11235 * axis is reached scrolling.
11237 * @param obj The anchorview object
11238 * @param h_bounce Pointer where to store the bounce state of the horizontal
11240 * @param v_bounce Pointer where to store the bounce state of the vertical
11243 * @see elm_scroller_bounce_get()
11245 EAPI void elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
11247 * Appends a custom item provider to the given anchorview
11249 * Appends the given function to the list of items providers. This list is
11250 * called, one function at a time, with the given @p data pointer, the
11251 * anchorview object and, in the @p item parameter, the item name as
11252 * referenced in its href string. Following functions in the list will be
11253 * called in order until one of them returns something different to NULL,
11254 * which should be an Evas_Object which will be used in place of the item
11257 * Items in the markup text take the form \<item relsize=16x16 vsize=full
11258 * href=item/name\>\</item\>
11260 * @param obj The anchorview object
11261 * @param func The function to add to the list of providers
11262 * @param data User data that will be passed to the callback function
11264 * @see elm_entry_item_provider_append()
11266 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);
11268 * Prepend a custom item provider to the given anchorview
11270 * Like elm_anchorview_item_provider_append(), but it adds the function
11271 * @p func to the beginning of the list, instead of the end.
11273 * @param obj The anchorview object
11274 * @param func The function to add to the list of providers
11275 * @param data User data that will be passed to the callback function
11277 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);
11279 * Remove a custom item provider from the list of the given anchorview
11281 * Removes the function and data pairing that matches @p func and @p data.
11282 * That is, unless the same function and same user data are given, the
11283 * function will not be removed from the list. This allows us to add the
11284 * same callback several times, with different @p data pointers and be
11285 * able to remove them later without conflicts.
11287 * @param obj The anchorview object
11288 * @param func The function to remove from the list
11289 * @param data The data matching the function to remove from the list
11291 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);
11298 * @defgroup Anchorblock Anchorblock
11300 * @image html img/widget/anchorblock/preview-00.png
11301 * @image latex img/widget/anchorblock/preview-00.eps
11303 * Anchorblock is for displaying text that contains markup with anchors
11304 * like <c>\<a href=1234\>something\</\></c> in it.
11306 * Besides being styled differently, the anchorblock widget provides the
11307 * necessary functionality so that clicking on these anchors brings up a
11308 * popup with user defined content such as "call", "add to contacts" or
11309 * "open web page". This popup is provided using the @ref Hover widget.
11311 * This widget emits the following signals:
11312 * @li "anchor,clicked": will be called when an anchor is clicked. The
11313 * @p event_info parameter on the callback will be a pointer of type
11314 * ::Elm_Entry_Anchorblock_Info.
11320 * Since examples are usually better than plain words, we might as well
11321 * try @ref tutorial_anchorblock_example "one".
11324 * @addtogroup Anchorblock
11328 * @typedef Elm_Entry_Anchorblock_Info
11330 * The info sent in the callback for "anchor,clicked" signals emitted by
11331 * the Anchorblock widget.
11333 typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
11335 * @struct _Elm_Entry_Anchorblock_Info
11337 * The info sent in the callback for "anchor,clicked" signals emitted by
11338 * the Anchorblock widget.
11340 struct _Elm_Entry_Anchorblock_Info
11342 const char *name; /**< Name of the anchor, as indicated in its href
11344 int button; /**< The mouse button used to click on it */
11345 Evas_Object *hover; /**< The hover object to use for the popup */
11347 Evas_Coord x, y, w, h;
11348 } anchor, /**< Geometry selection of text used as anchor */
11349 hover_parent; /**< Geometry of the object used as parent by the
11351 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
11352 for content on the left side of
11353 the hover. Before calling the
11354 callback, the widget will make the
11355 necessary calculations to check
11356 which sides are fit to be set with
11357 content, based on the position the
11358 hover is activated and its distance
11359 to the edges of its parent object
11361 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
11362 the right side of the hover.
11363 See @ref hover_left */
11364 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
11365 of the hover. See @ref hover_left */
11366 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
11367 below the hover. See @ref
11371 * Add a new Anchorblock object
11373 * @param parent The parent object
11374 * @return The new object or NULL if it cannot be created
11376 EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11378 * Set the text to show in the anchorblock
11380 * Sets the text of the anchorblock to @p text. This text can include markup
11381 * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
11382 * of text that will be specially styled and react to click events, ended
11383 * with either of \</a\> or \</\>. When clicked, the anchor will emit an
11384 * "anchor,clicked" signal that you can attach a callback to with
11385 * evas_object_smart_callback_add(). The name of the anchor given in the
11386 * event info struct will be the one set in the href attribute, in this
11387 * case, anchorname.
11389 * Other markup can be used to style the text in different ways, but it's
11390 * up to the style defined in the theme which tags do what.
11391 * @deprecated use elm_object_text_set() instead.
11393 EINA_DEPRECATED EAPI void elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11395 * Get the markup text set for the anchorblock
11397 * Retrieves the text set on the anchorblock, with markup tags included.
11399 * @param obj The anchorblock object
11400 * @return The markup text set or @c NULL if nothing was set or an error
11402 * @deprecated use elm_object_text_set() instead.
11404 EINA_DEPRECATED EAPI const char *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11406 * Set the parent of the hover popup
11408 * Sets the parent object to use by the hover created by the anchorblock
11409 * when an anchor is clicked. See @ref Hover for more details on this.
11411 * @param obj The anchorblock object
11412 * @param parent The object to use as parent for the hover
11414 EAPI void elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11416 * Get the parent of the hover popup
11418 * Get the object used as parent for the hover created by the anchorblock
11419 * widget. See @ref Hover for more details on this.
11420 * If no parent is set, the same anchorblock object will be used.
11422 * @param obj The anchorblock object
11423 * @return The object used as parent for the hover, NULL if none is set.
11425 EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11427 * Set the style that the hover should use
11429 * When creating the popup hover, anchorblock will request that it's
11430 * themed according to @p style.
11432 * @param obj The anchorblock object
11433 * @param style The style to use for the underlying hover
11435 * @see elm_object_style_set()
11437 EAPI void elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11439 * Get the style that the hover should use
11441 * Get the style the hover created by anchorblock will use.
11443 * @param obj The anchorblock object
11444 * @return The style to use by the hover. NULL means the default is used.
11446 * @see elm_object_style_set()
11448 EAPI const char *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11450 * Ends the hover popup in the anchorblock
11452 * When an anchor is clicked, the anchorblock widget will create a hover
11453 * object to use as a popup with user provided content. This function
11454 * terminates this popup, returning the anchorblock to its normal state.
11456 * @param obj The anchorblock object
11458 EAPI void elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11460 * Appends a custom item provider to the given anchorblock
11462 * Appends the given function to the list of items providers. This list is
11463 * called, one function at a time, with the given @p data pointer, the
11464 * anchorblock object and, in the @p item parameter, the item name as
11465 * referenced in its href string. Following functions in the list will be
11466 * called in order until one of them returns something different to NULL,
11467 * which should be an Evas_Object which will be used in place of the item
11470 * Items in the markup text take the form \<item relsize=16x16 vsize=full
11471 * href=item/name\>\</item\>
11473 * @param obj The anchorblock object
11474 * @param func The function to add to the list of providers
11475 * @param data User data that will be passed to the callback function
11477 * @see elm_entry_item_provider_append()
11479 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);
11481 * Prepend a custom item provider to the given anchorblock
11483 * Like elm_anchorblock_item_provider_append(), but it adds the function
11484 * @p func to the beginning of the list, instead of the end.
11486 * @param obj The anchorblock object
11487 * @param func The function to add to the list of providers
11488 * @param data User data that will be passed to the callback function
11490 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);
11492 * Remove a custom item provider from the list of the given anchorblock
11494 * Removes the function and data pairing that matches @p func and @p data.
11495 * That is, unless the same function and same user data are given, the
11496 * function will not be removed from the list. This allows us to add the
11497 * same callback several times, with different @p data pointers and be
11498 * able to remove them later without conflicts.
11500 * @param obj The anchorblock object
11501 * @param func The function to remove from the list
11502 * @param data The data matching the function to remove from the list
11504 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);
11510 * @defgroup Bubble Bubble
11512 * @image html img/widget/bubble/preview-00.png
11513 * @image latex img/widget/bubble/preview-00.eps
11514 * @image html img/widget/bubble/preview-01.png
11515 * @image latex img/widget/bubble/preview-01.eps
11516 * @image html img/widget/bubble/preview-02.png
11517 * @image latex img/widget/bubble/preview-02.eps
11519 * @brief The Bubble is a widget to show text similarly to how speech is
11520 * represented in comics.
11522 * The bubble widget contains 5 important visual elements:
11523 * @li The frame is a rectangle with rounded rectangles and an "arrow".
11524 * @li The @p icon is an image to which the frame's arrow points to.
11525 * @li The @p label is a text which appears to the right of the icon if the
11526 * corner is "top_left" or "bottom_left" and is right aligned to the frame
11528 * @li The @p info is a text which appears to the right of the label. Info's
11529 * font is of a ligther color than label.
11530 * @li The @p content is an evas object that is shown inside the frame.
11532 * The position of the arrow, icon, label and info depends on which corner is
11533 * selected. The four available corners are:
11534 * @li "top_left" - Default
11536 * @li "bottom_left"
11537 * @li "bottom_right"
11539 * Signals that you can add callbacks for are:
11540 * @li "clicked" - This is called when a user has clicked the bubble.
11542 * For an example of using a buble see @ref bubble_01_example_page "this".
11547 * Add a new bubble to the parent
11549 * @param parent The parent object
11550 * @return The new object or NULL if it cannot be created
11552 * This function adds a text bubble to the given parent evas object.
11554 EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11556 * Set the label of the bubble
11558 * @param obj The bubble object
11559 * @param label The string to set in the label
11561 * This function sets the title of the bubble. Where this appears depends on
11562 * the selected corner.
11563 * @deprecated use elm_object_text_set() instead.
11565 EINA_DEPRECATED EAPI void elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
11567 * Get the label of the bubble
11569 * @param obj The bubble object
11570 * @return The string of set in the label
11572 * This function gets the title of the bubble.
11573 * @deprecated use elm_object_text_get() instead.
11575 EINA_DEPRECATED EAPI const char *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11577 * Set the info of the bubble
11579 * @param obj The bubble object
11580 * @param info The given info about the bubble
11582 * This function sets the info of the bubble. Where this appears depends on
11583 * the selected corner.
11584 * @deprecated use elm_object_text_part_set() instead. (with "info" as the parameter).
11586 EINA_DEPRECATED EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
11588 * Get the info of the bubble
11590 * @param obj The bubble object
11592 * @return The "info" string of the bubble
11594 * This function gets the info text.
11595 * @deprecated use elm_object_text_part_get() instead. (with "info" as the parameter).
11597 EINA_DEPRECATED EAPI const char *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11599 * Set the content to be shown in the bubble
11601 * Once the content object is set, a previously set one will be deleted.
11602 * If you want to keep the old content object, use the
11603 * elm_bubble_content_unset() function.
11605 * @param obj The bubble object
11606 * @param content The given content of the bubble
11608 * This function sets the content shown on the middle of the bubble.
11610 EAPI void elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
11612 * Get the content shown in the bubble
11614 * Return the content object which is set for this widget.
11616 * @param obj The bubble object
11617 * @return The content that is being used
11619 EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11621 * Unset the content shown in the bubble
11623 * Unparent and return the content object which was set for this widget.
11625 * @param obj The bubble object
11626 * @return The content that was being used
11628 EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11630 * Set the icon of the bubble
11632 * Once the icon object is set, a previously set one will be deleted.
11633 * If you want to keep the old content object, use the
11634 * elm_icon_content_unset() function.
11636 * @param obj The bubble object
11637 * @param icon The given icon for the bubble
11639 EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
11641 * Get the icon of the bubble
11643 * @param obj The bubble object
11644 * @return The icon for the bubble
11646 * This function gets the icon shown on the top left of bubble.
11648 EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11650 * Unset the icon of the bubble
11652 * Unparent and return the icon object which was set for this widget.
11654 * @param obj The bubble object
11655 * @return The icon that was being used
11657 EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11659 * Set the corner of the bubble
11661 * @param obj The bubble object.
11662 * @param corner The given corner for the bubble.
11664 * This function sets the corner of the bubble. The corner will be used to
11665 * determine where the arrow in the frame points to and where label, icon and
11668 * Possible values for corner are:
11669 * @li "top_left" - Default
11671 * @li "bottom_left"
11672 * @li "bottom_right"
11674 EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
11676 * Get the corner of the bubble
11678 * @param obj The bubble object.
11679 * @return The given corner for the bubble.
11681 * This function gets the selected corner of the bubble.
11683 EAPI const char *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11689 * @defgroup Photo Photo
11691 * For displaying the photo of a person (contact). Simple yet
11692 * with a very specific purpose.
11694 * Signals that you can add callbacks for are:
11696 * "clicked" - This is called when a user has clicked the photo
11697 * "drag,start" - Someone started dragging the image out of the object
11698 * "drag,end" - Dragged item was dropped (somewhere)
11704 * Add a new photo to the parent
11706 * @param parent The parent object
11707 * @return The new object or NULL if it cannot be created
11711 EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11714 * Set the file that will be used as photo
11716 * @param obj The photo object
11717 * @param file The path to file that will be used as photo
11719 * @return (1 = success, 0 = error)
11723 EAPI Eina_Bool elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
11726 * Set the size that will be used on the photo
11728 * @param obj The photo object
11729 * @param size The size that the photo will be
11733 EAPI void elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
11736 * Set if the photo should be completely visible or not.
11738 * @param obj The photo object
11739 * @param fill if true the photo will be completely visible
11743 EAPI void elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
11746 * Set editability of the photo.
11748 * An editable photo can be dragged to or from, and can be cut or
11749 * pasted too. Note that pasting an image or dropping an item on
11750 * the image will delete the existing content.
11752 * @param obj The photo object.
11753 * @param set To set of clear editablity.
11755 EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
11761 /* gesture layer */
11763 * @defgroup Elm_Gesture_Layer Gesture Layer
11764 * Gesture Layer Usage:
11766 * Use Gesture Layer to detect gestures.
11767 * The advantage is that you don't have to implement
11768 * gesture detection, just set callbacks of gesture state.
11769 * By using gesture layer we make standard interface.
11771 * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
11772 * with a parent object parameter.
11773 * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
11774 * call. Usually with same object as target (2nd parameter).
11776 * Now you need to tell gesture layer what gestures you follow.
11777 * This is done with @ref elm_gesture_layer_cb_set call.
11778 * By setting the callback you actually saying to gesture layer:
11779 * I would like to know when the gesture @ref Elm_Gesture_Types
11780 * switches to state @ref Elm_Gesture_State.
11782 * Next, you need to implement the actual action that follows the input
11783 * in your callback.
11785 * Note that if you like to stop being reported about a gesture, just set
11786 * all callbacks referring this gesture to NULL.
11787 * (again with @ref elm_gesture_layer_cb_set)
11789 * The information reported by gesture layer to your callback is depending
11790 * on @ref Elm_Gesture_Types:
11791 * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
11792 * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
11793 * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
11795 * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
11796 * @ref ELM_GESTURE_MOMENTUM.
11798 * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
11799 * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
11800 * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
11801 * Note that we consider a flick as a line-gesture that should be completed
11802 * in flick-time-limit as defined in @ref Config.
11804 * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
11806 * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
11810 * @enum _Elm_Gesture_Types
11811 * Enum of supported gesture types.
11812 * @ingroup Elm_Gesture_Layer
11814 enum _Elm_Gesture_Types
11816 ELM_GESTURE_FIRST = 0,
11818 ELM_GESTURE_N_TAPS, /**< N fingers single taps */
11819 ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
11820 ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
11821 ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
11823 ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
11825 ELM_GESTURE_N_LINES, /**< N fingers line gesture */
11826 ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
11828 ELM_GESTURE_ZOOM, /**< Zoom */
11829 ELM_GESTURE_ROTATE, /**< Rotate */
11835 * @typedef Elm_Gesture_Types
11836 * gesture types enum
11837 * @ingroup Elm_Gesture_Layer
11839 typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
11842 * @enum _Elm_Gesture_State
11843 * Enum of gesture states.
11844 * @ingroup Elm_Gesture_Layer
11846 enum _Elm_Gesture_State
11848 ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
11849 ELM_GESTURE_STATE_START, /**< Gesture STARTed */
11850 ELM_GESTURE_STATE_MOVE, /**< Gesture is ongoing */
11851 ELM_GESTURE_STATE_END, /**< Gesture completed */
11852 ELM_GESTURE_STATE_ABORT /**< Onging gesture was ABORTed */
11856 * @typedef Elm_Gesture_State
11857 * gesture states enum
11858 * @ingroup Elm_Gesture_Layer
11860 typedef enum _Elm_Gesture_State Elm_Gesture_State;
11863 * @struct _Elm_Gesture_Taps_Info
11864 * Struct holds taps info for user
11865 * @ingroup Elm_Gesture_Layer
11867 struct _Elm_Gesture_Taps_Info
11869 Evas_Coord x, y; /**< Holds center point between fingers */
11870 unsigned int n; /**< Number of fingers tapped */
11871 unsigned int timestamp; /**< event timestamp */
11875 * @typedef Elm_Gesture_Taps_Info
11876 * holds taps info for user
11877 * @ingroup Elm_Gesture_Layer
11879 typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
11882 * @struct _Elm_Gesture_Momentum_Info
11883 * Struct holds momentum info for user
11884 * x1 and y1 are not necessarily in sync
11885 * x1 holds x value of x direction starting point
11886 * and same holds for y1.
11887 * This is noticeable when doing V-shape movement
11888 * @ingroup Elm_Gesture_Layer
11890 struct _Elm_Gesture_Momentum_Info
11891 { /* Report line ends, timestamps, and momentum computed */
11892 Evas_Coord x1; /**< Final-swipe direction starting point on X */
11893 Evas_Coord y1; /**< Final-swipe direction starting point on Y */
11894 Evas_Coord x2; /**< Final-swipe direction ending point on X */
11895 Evas_Coord y2; /**< Final-swipe direction ending point on Y */
11897 unsigned int tx; /**< Timestamp of start of final x-swipe */
11898 unsigned int ty; /**< Timestamp of start of final y-swipe */
11900 Evas_Coord mx; /**< Momentum on X */
11901 Evas_Coord my; /**< Momentum on Y */
11905 * @typedef Elm_Gesture_Momentum_Info
11906 * holds momentum info for user
11907 * @ingroup Elm_Gesture_Layer
11909 typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
11912 * @struct _Elm_Gesture_Line_Info
11913 * Struct holds line info for user
11914 * @ingroup Elm_Gesture_Layer
11916 struct _Elm_Gesture_Line_Info
11917 { /* Report line ends, timestamps, and momentum computed */
11918 Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
11919 unsigned int n; /**< Number of fingers (lines) */
11920 /* FIXME should be radians, bot degrees */
11921 double angle; /**< Angle (direction) of lines */
11925 * @typedef Elm_Gesture_Line_Info
11926 * Holds line info for user
11927 * @ingroup Elm_Gesture_Layer
11929 typedef struct _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
11932 * @struct _Elm_Gesture_Zoom_Info
11933 * Struct holds zoom info for user
11934 * @ingroup Elm_Gesture_Layer
11936 struct _Elm_Gesture_Zoom_Info
11938 Evas_Coord x, y; /**< Holds zoom center point reported to user */
11939 Evas_Coord radius; /**< Holds radius between fingers reported to user */
11940 double zoom; /**< Zoom value: 1.0 means no zoom */
11941 double momentum; /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
11945 * @typedef Elm_Gesture_Zoom_Info
11946 * Holds zoom info for user
11947 * @ingroup Elm_Gesture_Layer
11949 typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
11952 * @struct _Elm_Gesture_Rotate_Info
11953 * Struct holds rotation info for user
11954 * @ingroup Elm_Gesture_Layer
11956 struct _Elm_Gesture_Rotate_Info
11958 Evas_Coord x, y; /**< Holds zoom center point reported to user */
11959 Evas_Coord radius; /**< Holds radius between fingers reported to user */
11960 double base_angle; /**< Holds start-angle */
11961 double angle; /**< Rotation value: 0.0 means no rotation */
11962 double momentum; /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
11966 * @typedef Elm_Gesture_Rotate_Info
11967 * Holds rotation info for user
11968 * @ingroup Elm_Gesture_Layer
11970 typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
11973 * @typedef Elm_Gesture_Event_Cb
11974 * User callback used to stream gesture info from gesture layer
11975 * @param data user data
11976 * @param event_info gesture report info
11977 * Returns a flag field to be applied on the causing event.
11978 * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
11979 * upon the event, in an irreversible way.
11981 * @ingroup Elm_Gesture_Layer
11983 typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
11986 * Use function to set callbacks to be notified about
11987 * change of state of gesture.
11988 * When a user registers a callback with this function
11989 * this means this gesture has to be tested.
11991 * When ALL callbacks for a gesture are set to NULL
11992 * it means user isn't interested in gesture-state
11993 * and it will not be tested.
11995 * @param obj Pointer to gesture-layer.
11996 * @param idx The gesture you would like to track its state.
11997 * @param cb callback function pointer.
11998 * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
11999 * @param data user info to be sent to callback (usually, Smart Data)
12001 * @ingroup Elm_Gesture_Layer
12003 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);
12006 * Call this function to get repeat-events settings.
12008 * @param obj Pointer to gesture-layer.
12010 * @return repeat events settings.
12011 * @see elm_gesture_layer_hold_events_set()
12012 * @ingroup Elm_Gesture_Layer
12014 EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12017 * This function called in order to make gesture-layer repeat events.
12018 * Set this of you like to get the raw events only if gestures were not detected.
12019 * Clear this if you like gesture layer to fwd events as testing gestures.
12021 * @param obj Pointer to gesture-layer.
12022 * @param r Repeat: TRUE/FALSE
12024 * @ingroup Elm_Gesture_Layer
12026 EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
12029 * This function sets step-value for zoom action.
12030 * Set step to any positive value.
12031 * Cancel step setting by setting to 0.0
12033 * @param obj Pointer to gesture-layer.
12034 * @param s new zoom step value.
12036 * @ingroup Elm_Gesture_Layer
12038 EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12041 * This function sets step-value for rotate action.
12042 * Set step to any positive value.
12043 * Cancel step setting by setting to 0.0
12045 * @param obj Pointer to gesture-layer.
12046 * @param s new roatate step value.
12048 * @ingroup Elm_Gesture_Layer
12050 EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12053 * This function called to attach gesture-layer to an Evas_Object.
12054 * @param obj Pointer to gesture-layer.
12055 * @param t Pointer to underlying object (AKA Target)
12057 * @return TRUE, FALSE on success, failure.
12059 * @ingroup Elm_Gesture_Layer
12061 EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
12064 * Call this function to construct a new gesture-layer object.
12065 * This does not activate the gesture layer. You have to
12066 * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
12068 * @param parent the parent object.
12070 * @return Pointer to new gesture-layer object.
12072 * @ingroup Elm_Gesture_Layer
12074 EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12077 * @defgroup Thumb Thumb
12079 * @image html img/widget/thumb/preview-00.png
12080 * @image latex img/widget/thumb/preview-00.eps
12082 * A thumb object is used for displaying the thumbnail of an image or video.
12083 * You must have compiled Elementary with Ethumb_Client support and the DBus
12084 * service must be present and auto-activated in order to have thumbnails to
12087 * Once the thumbnail object becomes visible, it will check if there is a
12088 * previously generated thumbnail image for the file set on it. If not, it
12089 * will start generating this thumbnail.
12091 * Different config settings will cause different thumbnails to be generated
12092 * even on the same file.
12094 * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
12095 * Ethumb documentation to change this path, and to see other configuration
12098 * Signals that you can add callbacks for are:
12100 * - "clicked" - This is called when a user has clicked the thumb without dragging
12102 * - "clicked,double" - This is called when a user has double-clicked the thumb.
12103 * - "press" - This is called when a user has pressed down the thumb.
12104 * - "generate,start" - The thumbnail generation started.
12105 * - "generate,stop" - The generation process stopped.
12106 * - "generate,error" - The generation failed.
12107 * - "load,error" - The thumbnail image loading failed.
12109 * available styles:
12113 * An example of use of thumbnail:
12115 * - @ref thumb_example_01
12119 * @addtogroup Thumb
12124 * @enum _Elm_Thumb_Animation_Setting
12125 * @typedef Elm_Thumb_Animation_Setting
12127 * Used to set if a video thumbnail is animating or not.
12131 typedef enum _Elm_Thumb_Animation_Setting
12133 ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
12134 ELM_THUMB_ANIMATION_LOOP, /**< Keep playing animation until stop is requested */
12135 ELM_THUMB_ANIMATION_STOP, /**< Stop playing the animation */
12136 ELM_THUMB_ANIMATION_LAST
12137 } Elm_Thumb_Animation_Setting;
12140 * Add a new thumb object to the parent.
12142 * @param parent The parent object.
12143 * @return The new object or NULL if it cannot be created.
12145 * @see elm_thumb_file_set()
12146 * @see elm_thumb_ethumb_client_get()
12150 EAPI Evas_Object *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12152 * Reload thumbnail if it was generated before.
12154 * @param obj The thumb object to reload
12156 * This is useful if the ethumb client configuration changed, like its
12157 * size, aspect or any other property one set in the handle returned
12158 * by elm_thumb_ethumb_client_get().
12160 * If the options didn't change, the thumbnail won't be generated again, but
12161 * the old one will still be used.
12163 * @see elm_thumb_file_set()
12167 EAPI void elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
12169 * Set the file that will be used as thumbnail.
12171 * @param obj The thumb object.
12172 * @param file The path to file that will be used as thumb.
12173 * @param key The key used in case of an EET file.
12175 * The file can be an image or a video (in that case, acceptable extensions are:
12176 * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
12177 * function elm_thumb_animate().
12179 * @see elm_thumb_file_get()
12180 * @see elm_thumb_reload()
12181 * @see elm_thumb_animate()
12185 EAPI void elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
12187 * Get the image or video path and key used to generate the thumbnail.
12189 * @param obj The thumb object.
12190 * @param file Pointer to filename.
12191 * @param key Pointer to key.
12193 * @see elm_thumb_file_set()
12194 * @see elm_thumb_path_get()
12198 EAPI void elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12200 * Get the path and key to the image or video generated by ethumb.
12202 * One just need to make sure that the thumbnail was generated before getting
12203 * its path; otherwise, the path will be NULL. One way to do that is by asking
12204 * for the path when/after the "generate,stop" smart callback is called.
12206 * @param obj The thumb object.
12207 * @param file Pointer to thumb path.
12208 * @param key Pointer to thumb key.
12210 * @see elm_thumb_file_get()
12214 EAPI void elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12216 * Set the animation state for the thumb object. If its content is an animated
12217 * video, you may start/stop the animation or tell it to play continuously and
12220 * @param obj The thumb object.
12221 * @param setting The animation setting.
12223 * @see elm_thumb_file_set()
12227 EAPI void elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
12229 * Get the animation state for the thumb object.
12231 * @param obj The thumb object.
12232 * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
12235 * @see elm_thumb_animate_set()
12239 EAPI Elm_Thumb_Animation_Setting elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12241 * Get the ethumb_client handle so custom configuration can be made.
12243 * @return Ethumb_Client instance or NULL.
12245 * This must be called before the objects are created to be sure no object is
12246 * visible and no generation started.
12248 * Example of usage:
12251 * #include <Elementary.h>
12252 * #ifndef ELM_LIB_QUICKLAUNCH
12254 * elm_main(int argc, char **argv)
12256 * Ethumb_Client *client;
12258 * elm_need_ethumb();
12262 * client = elm_thumb_ethumb_client_get();
12265 * ERR("could not get ethumb_client");
12268 * ethumb_client_size_set(client, 100, 100);
12269 * ethumb_client_crop_align_set(client, 0.5, 0.5);
12272 * // Create elm_thumb objects here
12282 * @note There's only one client handle for Ethumb, so once a configuration
12283 * change is done to it, any other request for thumbnails (for any thumbnail
12284 * object) will use that configuration. Thus, this configuration is global.
12288 EAPI void *elm_thumb_ethumb_client_get(void);
12290 * Get the ethumb_client connection state.
12292 * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
12295 EAPI Eina_Bool elm_thumb_ethumb_client_connected(void);
12297 * Make the thumbnail 'editable'.
12299 * @param obj Thumb object.
12300 * @param set Turn on or off editability. Default is @c EINA_FALSE.
12302 * This means the thumbnail is a valid drag target for drag and drop, and can be
12303 * cut or pasted too.
12305 * @see elm_thumb_editable_get()
12309 EAPI Eina_Bool elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
12311 * Make the thumbnail 'editable'.
12313 * @param obj Thumb object.
12314 * @return Editability.
12316 * This means the thumbnail is a valid drag target for drag and drop, and can be
12317 * cut or pasted too.
12319 * @see elm_thumb_editable_set()
12323 EAPI Eina_Bool elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12330 * @defgroup Hoversel Hoversel
12332 * @image html img/widget/hoversel/preview-00.png
12333 * @image latex img/widget/hoversel/preview-00.eps
12335 * A hoversel is a button that pops up a list of items (automatically
12336 * choosing the direction to display) that have a label and, optionally, an
12337 * icon to select from. It is a convenience widget to avoid the need to do
12338 * all the piecing together yourself. It is intended for a small number of
12339 * items in the hoversel menu (no more than 8), though is capable of many
12342 * Signals that you can add callbacks for are:
12343 * "clicked" - the user clicked the hoversel button and popped up the sel
12344 * "selected" - an item in the hoversel list is selected. event_info is the item
12345 * "dismissed" - the hover is dismissed
12347 * See @ref tutorial_hoversel for an example.
12350 typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
12352 * @brief Add a new Hoversel object
12354 * @param parent The parent object
12355 * @return The new object or NULL if it cannot be created
12357 EAPI Evas_Object *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12359 * @brief This sets the hoversel to expand horizontally.
12361 * @param obj The hoversel object
12362 * @param horizontal If true, the hover will expand horizontally to the
12365 * @note The initial button will display horizontally regardless of this
12368 EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
12370 * @brief This returns whether the hoversel is set to expand horizontally.
12372 * @param obj The hoversel object
12373 * @return If true, the hover will expand horizontally to the right.
12375 * @see elm_hoversel_horizontal_set()
12377 EAPI Eina_Bool elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12379 * @brief Set the Hover parent
12381 * @param obj The hoversel object
12382 * @param parent The parent to use
12384 * Sets the hover parent object, the area that will be darkened when the
12385 * hoversel is clicked. Should probably be the window that the hoversel is
12386 * in. See @ref Hover objects for more information.
12388 EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12390 * @brief Get the Hover parent
12392 * @param obj The hoversel object
12393 * @return The used parent
12395 * Gets the hover parent object.
12397 * @see elm_hoversel_hover_parent_set()
12399 EAPI Evas_Object *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12401 * @brief Set the hoversel button label
12403 * @param obj The hoversel object
12404 * @param label The label text.
12406 * This sets the label of the button that is always visible (before it is
12407 * clicked and expanded).
12409 * @deprecated elm_object_text_set()
12411 EINA_DEPRECATED EAPI void elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12413 * @brief Get the hoversel button label
12415 * @param obj The hoversel object
12416 * @return The label text.
12418 * @deprecated elm_object_text_get()
12420 EINA_DEPRECATED EAPI const char *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12422 * @brief Set the icon of the hoversel button
12424 * @param obj The hoversel object
12425 * @param icon The icon object
12427 * Sets the icon of the button that is always visible (before it is clicked
12428 * and expanded). Once the icon object is set, a previously set one will be
12429 * deleted, if you want to keep that old content object, use the
12430 * elm_hoversel_icon_unset() function.
12432 * @see elm_button_icon_set()
12434 EAPI void elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12436 * @brief Get the icon of the hoversel button
12438 * @param obj The hoversel object
12439 * @return The icon object
12441 * Get the icon of the button that is always visible (before it is clicked
12442 * and expanded). Also see elm_button_icon_get().
12444 * @see elm_hoversel_icon_set()
12446 EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12448 * @brief Get and unparent the icon of the hoversel button
12450 * @param obj The hoversel object
12451 * @return The icon object that was being used
12453 * Unparent and return the icon of the button that is always visible
12454 * (before it is clicked and expanded).
12456 * @see elm_hoversel_icon_set()
12457 * @see elm_button_icon_unset()
12459 EAPI Evas_Object *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12461 * @brief This triggers the hoversel popup from code, the same as if the user
12462 * had clicked the button.
12464 * @param obj The hoversel object
12466 EAPI void elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
12468 * @brief This dismisses the hoversel popup as if the user had clicked
12469 * outside the hover.
12471 * @param obj The hoversel object
12473 EAPI void elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12475 * @brief Returns whether the hoversel is expanded.
12477 * @param obj The hoversel object
12478 * @return This will return EINA_TRUE if the hoversel is expanded or
12479 * EINA_FALSE if it is not expanded.
12481 EAPI Eina_Bool elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12483 * @brief This will remove all the children items from the hoversel.
12485 * @param obj The hoversel object
12487 * @warning Should @b not be called while the hoversel is active; use
12488 * elm_hoversel_expanded_get() to check first.
12490 * @see elm_hoversel_item_del_cb_set()
12491 * @see elm_hoversel_item_del()
12493 EAPI void elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
12495 * @brief Get the list of items within the given hoversel.
12497 * @param obj The hoversel object
12498 * @return Returns a list of Elm_Hoversel_Item*
12500 * @see elm_hoversel_item_add()
12502 EAPI const Eina_List *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12504 * @brief Add an item to the hoversel button
12506 * @param obj The hoversel object
12507 * @param label The text label to use for the item (NULL if not desired)
12508 * @param icon_file An image file path on disk to use for the icon or standard
12509 * icon name (NULL if not desired)
12510 * @param icon_type The icon type if relevant
12511 * @param func Convenience function to call when this item is selected
12512 * @param data Data to pass to item-related functions
12513 * @return A handle to the item added.
12515 * This adds an item to the hoversel to show when it is clicked. Note: if you
12516 * need to use an icon from an edje file then use
12517 * elm_hoversel_item_icon_set() right after the this function, and set
12518 * icon_file to NULL here.
12520 * For more information on what @p icon_file and @p icon_type are see the
12521 * @ref Icon "icon documentation".
12523 EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
12525 * @brief Delete an item from the hoversel
12527 * @param item The item to delete
12529 * This deletes the item from the hoversel (should not be called while the
12530 * hoversel is active; use elm_hoversel_expanded_get() to check first).
12532 * @see elm_hoversel_item_add()
12533 * @see elm_hoversel_item_del_cb_set()
12535 EAPI void elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
12537 * @brief Set the function to be called when an item from the hoversel is
12540 * @param item The item to set the callback on
12541 * @param func The function called
12543 * That function will receive these parameters:
12544 * @li void *item_data
12545 * @li Evas_Object *the_item_object
12546 * @li Elm_Hoversel_Item *the_object_struct
12548 * @see elm_hoversel_item_add()
12550 EAPI void elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
12552 * @brief This returns the data pointer supplied with elm_hoversel_item_add()
12553 * that will be passed to associated function callbacks.
12555 * @param item The item to get the data from
12556 * @return The data pointer set with elm_hoversel_item_add()
12558 * @see elm_hoversel_item_add()
12560 EAPI void *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12562 * @brief This returns the label text of the given hoversel item.
12564 * @param item The item to get the label
12565 * @return The label text of the hoversel item
12567 * @see elm_hoversel_item_add()
12569 EAPI const char *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12571 * @brief This sets the icon for the given hoversel item.
12573 * @param item The item to set the icon
12574 * @param icon_file An image file path on disk to use for the icon or standard
12576 * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
12577 * to NULL if the icon is not an edje file
12578 * @param icon_type The icon type
12580 * The icon can be loaded from the standard set, from an image file, or from
12583 * @see elm_hoversel_item_add()
12585 EAPI void elm_hoversel_item_icon_set(Elm_Hoversel_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type) EINA_ARG_NONNULL(1);
12587 * @brief Get the icon object of the hoversel item
12589 * @param item The item to get the icon from
12590 * @param icon_file The image file path on disk used for the icon or standard
12592 * @param icon_group The edje group used if @p icon_file is an edje file. NULL
12593 * if the icon is not an edje file
12594 * @param icon_type The icon type
12596 * @see elm_hoversel_item_icon_set()
12597 * @see elm_hoversel_item_add()
12599 EAPI void elm_hoversel_item_icon_get(const Elm_Hoversel_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type) EINA_ARG_NONNULL(1);
12605 * @defgroup Toolbar Toolbar
12606 * @ingroup Elementary
12608 * @image html img/widget/toolbar/preview-00.png
12609 * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
12611 * @image html img/toolbar.png
12612 * @image latex img/toolbar.eps width=\textwidth
12614 * A toolbar is a widget that displays a list of items inside
12615 * a box. It can be scrollable, show a menu with items that don't fit
12616 * to toolbar size or even crop them.
12618 * Only one item can be selected at a time.
12620 * Items can have multiple states, or show menus when selected by the user.
12622 * Smart callbacks one can listen to:
12623 * - "clicked" - when the user clicks on a toolbar item and becomes selected.
12625 * Available styles for it:
12627 * - @c "transparent" - no background or shadow, just show the content
12629 * List of examples:
12630 * @li @ref toolbar_example_01
12631 * @li @ref toolbar_example_02
12632 * @li @ref toolbar_example_03
12636 * @addtogroup Toolbar
12641 * @enum _Elm_Toolbar_Shrink_Mode
12642 * @typedef Elm_Toolbar_Shrink_Mode
12644 * Set toolbar's items display behavior, it can be scrollabel,
12645 * show a menu with exceeding items, or simply hide them.
12647 * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
12650 * Values <b> don't </b> work as bitmask, only one can be choosen.
12652 * @see elm_toolbar_mode_shrink_set()
12653 * @see elm_toolbar_mode_shrink_get()
12657 typedef enum _Elm_Toolbar_Shrink_Mode
12659 ELM_TOOLBAR_SHRINK_NONE, /**< Set toolbar minimun size to fit all the items. */
12660 ELM_TOOLBAR_SHRINK_HIDE, /**< Hide exceeding items. */
12661 ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
12662 ELM_TOOLBAR_SHRINK_MENU /**< Inserts a button to pop up a menu with exceeding items. */
12663 } Elm_Toolbar_Shrink_Mode;
12665 typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item; /**< Item of Elm_Toolbar. Sub-type of Elm_Widget_Item. Can be created with elm_toolbar_item_append(), elm_toolbar_item_prepend() and functions to add items in relative positions, like elm_toolbar_item_insert_before(), and deleted with elm_toolbar_item_del(). */
12667 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(). */
12670 * Add a new toolbar widget to the given parent Elementary
12671 * (container) object.
12673 * @param parent The parent object.
12674 * @return a new toolbar widget handle or @c NULL, on errors.
12676 * This function inserts a new toolbar widget on the canvas.
12680 EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12683 * Set the icon size, in pixels, to be used by toolbar items.
12685 * @param obj The toolbar object
12686 * @param icon_size The icon size in pixels
12688 * @note Default value is @c 32. It reads value from elm config.
12690 * @see elm_toolbar_icon_size_get()
12694 EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
12697 * Get the icon size, in pixels, to be used by toolbar items.
12699 * @param obj The toolbar object.
12700 * @return The icon size in pixels.
12702 * @see elm_toolbar_icon_size_set() for details.
12706 EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12709 * Sets icon lookup order, for toolbar items' icons.
12711 * @param obj The toolbar object.
12712 * @param order The icon lookup order.
12714 * Icons added before calling this function will not be affected.
12715 * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
12717 * @see elm_toolbar_icon_order_lookup_get()
12721 EAPI void elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
12724 * Gets the icon lookup order.
12726 * @param obj The toolbar object.
12727 * @return The icon lookup order.
12729 * @see elm_toolbar_icon_order_lookup_set() for details.
12733 EAPI Elm_Icon_Lookup_Order elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12736 * Set whether the toolbar items' should be selected by the user or not.
12738 * @param obj The toolbar object.
12739 * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
12742 * This will turn off the ability to select items entirely and they will
12743 * neither appear selected nor emit selected signals. The clicked
12744 * callback function will still be called.
12746 * Selection is enabled by default.
12748 * @see elm_toolbar_no_select_mode_get().
12752 EAPI void elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
12755 * Set whether the toolbar items' should be selected by the user or not.
12757 * @param obj The toolbar object.
12758 * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
12759 * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
12761 * @see elm_toolbar_no_select_mode_set() for details.
12765 EAPI Eina_Bool elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12768 * Append item to the toolbar.
12770 * @param obj The toolbar object.
12771 * @param icon A string with icon name or the absolute path of an image file.
12772 * @param label The label of the item.
12773 * @param func The function to call when the item is clicked.
12774 * @param data The data to associate with the item for related callbacks.
12775 * @return The created item or @c NULL upon failure.
12777 * A new item will be created and appended to the toolbar, i.e., will
12778 * be set as @b last item.
12780 * Items created with this method can be deleted with
12781 * elm_toolbar_item_del().
12783 * Associated @p data can be properly freed when item is deleted if a
12784 * callback function is set with elm_toolbar_item_del_cb_set().
12786 * If a function is passed as argument, it will be called everytime this item
12787 * is selected, i.e., the user clicks over an unselected item.
12788 * If such function isn't needed, just passing
12789 * @c NULL as @p func is enough. The same should be done for @p data.
12791 * Toolbar will load icon image from fdo or current theme.
12792 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12793 * If an absolute path is provided it will load it direct from a file.
12795 * @see elm_toolbar_item_icon_set()
12796 * @see elm_toolbar_item_del()
12797 * @see elm_toolbar_item_del_cb_set()
12801 EAPI Elm_Toolbar_Item *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
12804 * Prepend item to the toolbar.
12806 * @param obj The toolbar object.
12807 * @param icon A string with icon name or the absolute path of an image file.
12808 * @param label The label of the item.
12809 * @param func The function to call when the item is clicked.
12810 * @param data The data to associate with the item for related callbacks.
12811 * @return The created item or @c NULL upon failure.
12813 * A new item will be created and prepended to the toolbar, i.e., will
12814 * be set as @b first item.
12816 * Items created with this method can be deleted with
12817 * elm_toolbar_item_del().
12819 * Associated @p data can be properly freed when item is deleted if a
12820 * callback function is set with elm_toolbar_item_del_cb_set().
12822 * If a function is passed as argument, it will be called everytime this item
12823 * is selected, i.e., the user clicks over an unselected item.
12824 * If such function isn't needed, just passing
12825 * @c NULL as @p func is enough. The same should be done for @p data.
12827 * Toolbar will load icon image from fdo or current theme.
12828 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12829 * If an absolute path is provided it will load it direct from a file.
12831 * @see elm_toolbar_item_icon_set()
12832 * @see elm_toolbar_item_del()
12833 * @see elm_toolbar_item_del_cb_set()
12837 EAPI Elm_Toolbar_Item *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
12840 * Insert a new item into the toolbar object before item @p before.
12842 * @param obj The toolbar object.
12843 * @param before The toolbar item to insert before.
12844 * @param icon A string with icon name or the absolute path of an image file.
12845 * @param label The label of the item.
12846 * @param func The function to call when the item is clicked.
12847 * @param data The data to associate with the item for related callbacks.
12848 * @return The created item or @c NULL upon failure.
12850 * A new item will be created and added to the toolbar. Its position in
12851 * this toolbar will be just before item @p before.
12853 * Items created with this method can be deleted with
12854 * elm_toolbar_item_del().
12856 * Associated @p data can be properly freed when item is deleted if a
12857 * callback function is set with elm_toolbar_item_del_cb_set().
12859 * If a function is passed as argument, it will be called everytime this item
12860 * is selected, i.e., the user clicks over an unselected item.
12861 * If such function isn't needed, just passing
12862 * @c NULL as @p func is enough. The same should be done for @p data.
12864 * Toolbar will load icon image from fdo or current theme.
12865 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12866 * If an absolute path is provided it will load it direct from a file.
12868 * @see elm_toolbar_item_icon_set()
12869 * @see elm_toolbar_item_del()
12870 * @see elm_toolbar_item_del_cb_set()
12874 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Toolbar_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
12877 * Insert a new item into the toolbar object after item @p after.
12879 * @param obj The toolbar object.
12880 * @param before The toolbar item to insert before.
12881 * @param icon A string with icon name or the absolute path of an image file.
12882 * @param label The label of the item.
12883 * @param func The function to call when the item is clicked.
12884 * @param data The data to associate with the item for related callbacks.
12885 * @return The created item or @c NULL upon failure.
12887 * A new item will be created and added to the toolbar. Its position in
12888 * this toolbar will be just after item @p after.
12890 * Items created with this method can be deleted with
12891 * elm_toolbar_item_del().
12893 * Associated @p data can be properly freed when item is deleted if a
12894 * callback function is set with elm_toolbar_item_del_cb_set().
12896 * If a function is passed as argument, it will be called everytime this item
12897 * is selected, i.e., the user clicks over an unselected item.
12898 * If such function isn't needed, just passing
12899 * @c NULL as @p func is enough. The same should be done for @p data.
12901 * Toolbar will load icon image from fdo or current theme.
12902 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12903 * If an absolute path is provided it will load it direct from a file.
12905 * @see elm_toolbar_item_icon_set()
12906 * @see elm_toolbar_item_del()
12907 * @see elm_toolbar_item_del_cb_set()
12911 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Toolbar_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
12914 * Get the first item in the given toolbar widget's list of
12917 * @param obj The toolbar object
12918 * @return The first item or @c NULL, if it has no items (and on
12921 * @see elm_toolbar_item_append()
12922 * @see elm_toolbar_last_item_get()
12926 EAPI Elm_Toolbar_Item *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12929 * Get the last item in the given toolbar widget's list of
12932 * @param obj The toolbar object
12933 * @return The last item or @c NULL, if it has no items (and on
12936 * @see elm_toolbar_item_prepend()
12937 * @see elm_toolbar_first_item_get()
12941 EAPI Elm_Toolbar_Item *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12944 * Get the item after @p item in toolbar.
12946 * @param item The toolbar item.
12947 * @return The item after @p item, or @c NULL if none or on failure.
12949 * @note If it is the last item, @c NULL will be returned.
12951 * @see elm_toolbar_item_append()
12955 EAPI Elm_Toolbar_Item *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
12958 * Get the item before @p item in toolbar.
12960 * @param item The toolbar item.
12961 * @return The item before @p item, or @c NULL if none or on failure.
12963 * @note If it is the first item, @c NULL will be returned.
12965 * @see elm_toolbar_item_prepend()
12969 EAPI Elm_Toolbar_Item *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
12972 * Get the toolbar object from an item.
12974 * @param item The item.
12975 * @return The toolbar object.
12977 * This returns the toolbar object itself that an item belongs to.
12981 EAPI Evas_Object *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
12984 * Set the priority of a toolbar item.
12986 * @param item The toolbar item.
12987 * @param priority The item priority. The default is zero.
12989 * This is used only when the toolbar shrink mode is set to
12990 * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
12991 * When space is less than required, items with low priority
12992 * will be removed from the toolbar and added to a dynamically-created menu,
12993 * while items with higher priority will remain on the toolbar,
12994 * with the same order they were added.
12996 * @see elm_toolbar_item_priority_get()
13000 EAPI void elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
13003 * Get the priority of a toolbar item.
13005 * @param item The toolbar item.
13006 * @return The @p item priority, or @c 0 on failure.
13008 * @see elm_toolbar_item_priority_set() for details.
13012 EAPI int elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13015 * Get the label of item.
13017 * @param item The item of toolbar.
13018 * @return The label of item.
13020 * The return value is a pointer to the label associated to @p item when
13021 * it was created, with function elm_toolbar_item_append() or similar,
13023 * with function elm_toolbar_item_label_set. If no label
13024 * was passed as argument, it will return @c NULL.
13026 * @see elm_toolbar_item_label_set() for more details.
13027 * @see elm_toolbar_item_append()
13031 EAPI const char *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13034 * Set the label of item.
13036 * @param item The item of toolbar.
13037 * @param text The label of item.
13039 * The label to be displayed by the item.
13040 * Label will be placed at icons bottom (if set).
13042 * If a label was passed as argument on item creation, with function
13043 * elm_toolbar_item_append() or similar, it will be already
13044 * displayed by the item.
13046 * @see elm_toolbar_item_label_get()
13047 * @see elm_toolbar_item_append()
13051 EAPI void elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
13054 * Return the data associated with a given toolbar widget item.
13056 * @param item The toolbar widget item handle.
13057 * @return The data associated with @p item.
13059 * @see elm_toolbar_item_data_set()
13063 EAPI void *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13066 * Set the data associated with a given toolbar widget item.
13068 * @param item The toolbar widget item handle.
13069 * @param data The new data pointer to set to @p item.
13071 * This sets new item data on @p item.
13073 * @warning The old data pointer won't be touched by this function, so
13074 * the user had better to free that old data himself/herself.
13078 EAPI void elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
13081 * Returns a pointer to a toolbar item by its label.
13083 * @param obj The toolbar object.
13084 * @param label The label of the item to find.
13086 * @return The pointer to the toolbar item matching @p label or @c NULL
13091 EAPI Elm_Toolbar_Item *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13094 * Get whether the @p item is selected or not.
13096 * @param item The toolbar item.
13097 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
13098 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
13100 * @see elm_toolbar_selected_item_set() for details.
13101 * @see elm_toolbar_item_selected_get()
13105 EAPI Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13108 * Set the selected state of an item.
13110 * @param item The toolbar item
13111 * @param selected The selected state
13113 * This sets the selected state of the given item @p it.
13114 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
13116 * If a new item is selected the previosly selected will be unselected.
13117 * Previoulsy selected item can be get with function
13118 * elm_toolbar_selected_item_get().
13120 * Selected items will be highlighted.
13122 * @see elm_toolbar_item_selected_get()
13123 * @see elm_toolbar_selected_item_get()
13127 EAPI void elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
13130 * Get the selected item.
13132 * @param obj The toolbar object.
13133 * @return The selected toolbar item.
13135 * The selected item can be unselected with function
13136 * elm_toolbar_item_selected_set().
13138 * The selected item always will be highlighted on toolbar.
13140 * @see elm_toolbar_selected_items_get()
13144 EAPI Elm_Toolbar_Item *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13147 * Set the icon associated with @p item.
13149 * @param obj The parent of this item.
13150 * @param item The toolbar item.
13151 * @param icon A string with icon name or the absolute path of an image file.
13153 * Toolbar will load icon image from fdo or current theme.
13154 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13155 * If an absolute path is provided it will load it direct from a file.
13157 * @see elm_toolbar_icon_order_lookup_set()
13158 * @see elm_toolbar_icon_order_lookup_get()
13162 EAPI void elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
13165 * Get the string used to set the icon of @p item.
13167 * @param item The toolbar item.
13168 * @return The string associated with the icon object.
13170 * @see elm_toolbar_item_icon_set() for details.
13174 EAPI const char *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13177 * Delete them item from the toolbar.
13179 * @param item The item of toolbar to be deleted.
13181 * @see elm_toolbar_item_append()
13182 * @see elm_toolbar_item_del_cb_set()
13186 EAPI void elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13189 * Set the function called when a toolbar item is freed.
13191 * @param item The item to set the callback on.
13192 * @param func The function called.
13194 * If there is a @p func, then it will be called prior item's memory release.
13195 * That will be called with the following arguments:
13197 * @li item's Evas object;
13200 * This way, a data associated to a toolbar item could be properly freed.
13204 EAPI void elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13207 * Get a value whether toolbar item is disabled or not.
13209 * @param item The item.
13210 * @return The disabled state.
13212 * @see elm_toolbar_item_disabled_set() for more details.
13216 EAPI Eina_Bool elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13219 * Sets the disabled/enabled state of a toolbar item.
13221 * @param item The item.
13222 * @param disabled The disabled state.
13224 * A disabled item cannot be selected or unselected. It will also
13225 * change its appearance (generally greyed out). This sets the
13226 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
13231 EAPI void elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
13234 * Set or unset item as a separator.
13236 * @param item The toolbar item.
13237 * @param setting @c EINA_TRUE to set item @p item as separator or
13238 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
13240 * Items aren't set as separator by default.
13242 * If set as separator it will display separator theme, so won't display
13245 * @see elm_toolbar_item_separator_get()
13249 EAPI void elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
13252 * Get a value whether item is a separator or not.
13254 * @param item The toolbar item.
13255 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
13256 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
13258 * @see elm_toolbar_item_separator_set() for details.
13262 EAPI Eina_Bool elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13265 * Set the shrink state of toolbar @p obj.
13267 * @param obj The toolbar object.
13268 * @param shrink_mode Toolbar's items display behavior.
13270 * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
13271 * but will enforce a minimun size so all the items will fit, won't scroll
13272 * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
13273 * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
13274 * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
13278 EAPI void elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
13281 * Get the shrink mode of toolbar @p obj.
13283 * @param obj The toolbar object.
13284 * @return Toolbar's items display behavior.
13286 * @see elm_toolbar_mode_shrink_set() for details.
13290 EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13293 * Enable/disable homogenous mode.
13295 * @param obj The toolbar object
13296 * @param homogeneous Assume the items within the toolbar are of the
13297 * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13299 * This will enable the homogeneous mode where items are of the same size.
13300 * @see elm_toolbar_homogeneous_get()
13304 EAPI void elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
13307 * Get whether the homogenous mode is enabled.
13309 * @param obj The toolbar object.
13310 * @return Assume the items within the toolbar are of the same height
13311 * and width (EINA_TRUE = on, EINA_FALSE = off).
13313 * @see elm_toolbar_homogeneous_set()
13317 EAPI Eina_Bool elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13320 * Enable/disable homogenous mode.
13322 * @param obj The toolbar object
13323 * @param homogeneous Assume the items within the toolbar are of the
13324 * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13326 * This will enable the homogeneous mode where items are of the same size.
13327 * @see elm_toolbar_homogeneous_get()
13329 * @deprecated use elm_toolbar_homogeneous_set() instead.
13333 EINA_DEPRECATED EAPI void elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
13336 * Get whether the homogenous mode is enabled.
13338 * @param obj The toolbar object.
13339 * @return Assume the items within the toolbar are of the same height
13340 * and width (EINA_TRUE = on, EINA_FALSE = off).
13342 * @see elm_toolbar_homogeneous_set()
13343 * @deprecated use elm_toolbar_homogeneous_get() instead.
13347 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13350 * Set the parent object of the toolbar items' menus.
13352 * @param obj The toolbar object.
13353 * @param parent The parent of the menu objects.
13355 * Each item can be set as item menu, with elm_toolbar_item_menu_set().
13357 * For more details about setting the parent for toolbar menus, see
13358 * elm_menu_parent_set().
13360 * @see elm_menu_parent_set() for details.
13361 * @see elm_toolbar_item_menu_set() for details.
13365 EAPI void elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13368 * Get the parent object of the toolbar items' menus.
13370 * @param obj The toolbar object.
13371 * @return The parent of the menu objects.
13373 * @see elm_toolbar_menu_parent_set() for details.
13377 EAPI Evas_Object *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13380 * Set the alignment of the items.
13382 * @param obj The toolbar object.
13383 * @param align The new alignment, a float between <tt> 0.0 </tt>
13384 * and <tt> 1.0 </tt>.
13386 * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
13387 * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
13390 * Centered items by default.
13392 * @see elm_toolbar_align_get()
13396 EAPI void elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
13399 * Get the alignment of the items.
13401 * @param obj The toolbar object.
13402 * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
13405 * @see elm_toolbar_align_set() for details.
13409 EAPI double elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13412 * Set whether the toolbar item opens a menu.
13414 * @param item The toolbar item.
13415 * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
13417 * A toolbar item can be set to be a menu, using this function.
13419 * Once it is set to be a menu, it can be manipulated through the
13420 * menu-like function elm_toolbar_menu_parent_set() and the other
13421 * elm_menu functions, using the Evas_Object @c menu returned by
13422 * elm_toolbar_item_menu_get().
13424 * So, items to be displayed in this item's menu should be added with
13425 * elm_menu_item_add().
13427 * The following code exemplifies the most basic usage:
13429 * tb = elm_toolbar_add(win)
13430 * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
13431 * elm_toolbar_item_menu_set(item, EINA_TRUE);
13432 * elm_toolbar_menu_parent_set(tb, win);
13433 * menu = elm_toolbar_item_menu_get(item);
13434 * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
13435 * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
13439 * @see elm_toolbar_item_menu_get()
13443 EAPI void elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
13446 * Get toolbar item's menu.
13448 * @param item The toolbar item.
13449 * @return Item's menu object or @c NULL on failure.
13451 * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
13452 * this function will set it.
13454 * @see elm_toolbar_item_menu_set() for details.
13458 EAPI Evas_Object *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13461 * Add a new state to @p item.
13463 * @param item The item.
13464 * @param icon A string with icon name or the absolute path of an image file.
13465 * @param label The label of the new state.
13466 * @param func The function to call when the item is clicked when this
13467 * state is selected.
13468 * @param data The data to associate with the state.
13469 * @return The toolbar item state, or @c NULL upon failure.
13471 * Toolbar will load icon image from fdo or current theme.
13472 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13473 * If an absolute path is provided it will load it direct from a file.
13475 * States created with this function can be removed with
13476 * elm_toolbar_item_state_del().
13478 * @see elm_toolbar_item_state_del()
13479 * @see elm_toolbar_item_state_sel()
13480 * @see elm_toolbar_item_state_get()
13484 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Toolbar_Item *item, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
13487 * Delete a previoulsy added state to @p item.
13489 * @param item The toolbar item.
13490 * @param state The state to be deleted.
13491 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13493 * @see elm_toolbar_item_state_add()
13495 EAPI Eina_Bool elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13498 * Set @p state as the current state of @p it.
13500 * @param it The item.
13501 * @param state The state to use.
13502 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13504 * If @p state is @c NULL, it won't select any state and the default item's
13505 * icon and label will be used. It's the same behaviour than
13506 * elm_toolbar_item_state_unser().
13508 * @see elm_toolbar_item_state_unset()
13512 EAPI Eina_Bool elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13515 * Unset the state of @p it.
13517 * @param it The item.
13519 * The default icon and label from this item will be displayed.
13521 * @see elm_toolbar_item_state_set() for more details.
13525 EAPI void elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13528 * Get the current state of @p it.
13530 * @param item The item.
13531 * @return The selected state or @c NULL if none is selected or on failure.
13533 * @see elm_toolbar_item_state_set() for details.
13534 * @see elm_toolbar_item_state_unset()
13535 * @see elm_toolbar_item_state_add()
13539 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13542 * Get the state after selected state in toolbar's @p item.
13544 * @param it The toolbar item to change state.
13545 * @return The state after current state, or @c NULL on failure.
13547 * If last state is selected, this function will return first state.
13549 * @see elm_toolbar_item_state_set()
13550 * @see elm_toolbar_item_state_add()
13554 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13557 * Get the state before selected state in toolbar's @p item.
13559 * @param it The toolbar item to change state.
13560 * @return The state before current state, or @c NULL on failure.
13562 * If first state is selected, this function will return last state.
13564 * @see elm_toolbar_item_state_set()
13565 * @see elm_toolbar_item_state_add()
13569 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13572 * Set the text to be shown in a given toolbar item's tooltips.
13574 * @param item Target item.
13575 * @param text The text to set in the content.
13577 * Setup the text as tooltip to object. The item can have only one tooltip,
13578 * so any previous tooltip data - set with this function or
13579 * elm_toolbar_item_tooltip_content_cb_set() - is removed.
13581 * @see elm_object_tooltip_text_set() for more details.
13585 EAPI void elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
13588 * Set the content to be shown in the tooltip item.
13590 * Setup the tooltip to item. The item can have only one tooltip,
13591 * so any previous tooltip data is removed. @p func(with @p data) will
13592 * be called every time that need show the tooltip and it should
13593 * return a valid Evas_Object. This object is then managed fully by
13594 * tooltip system and is deleted when the tooltip is gone.
13596 * @param item the toolbar item being attached a tooltip.
13597 * @param func the function used to create the tooltip contents.
13598 * @param data what to provide to @a func as callback data/context.
13599 * @param del_cb called when data is not needed anymore, either when
13600 * another callback replaces @a func, the tooltip is unset with
13601 * elm_toolbar_item_tooltip_unset() or the owner @a item
13602 * dies. This callback receives as the first parameter the
13603 * given @a data, and @c event_info is the item.
13605 * @see elm_object_tooltip_content_cb_set() for more details.
13609 EAPI void elm_toolbar_item_tooltip_content_cb_set(Elm_Toolbar_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
13612 * Unset tooltip from item.
13614 * @param item toolbar item to remove previously set tooltip.
13616 * Remove tooltip from item. The callback provided as del_cb to
13617 * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
13618 * it is not used anymore.
13620 * @see elm_object_tooltip_unset() for more details.
13621 * @see elm_toolbar_item_tooltip_content_cb_set()
13625 EAPI void elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13628 * Sets a different style for this item tooltip.
13630 * @note before you set a style you should define a tooltip with
13631 * elm_toolbar_item_tooltip_content_cb_set() or
13632 * elm_toolbar_item_tooltip_text_set()
13634 * @param item toolbar item with tooltip already set.
13635 * @param style the theme style to use (default, transparent, ...)
13637 * @see elm_object_tooltip_style_set() for more details.
13641 EAPI void elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
13644 * Get the style for this item tooltip.
13646 * @param item toolbar item with tooltip already set.
13647 * @return style the theme style in use, defaults to "default". If the
13648 * object does not have a tooltip set, then NULL is returned.
13650 * @see elm_object_tooltip_style_get() for more details.
13651 * @see elm_toolbar_item_tooltip_style_set()
13655 EAPI const char *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13658 * Set the type of mouse pointer/cursor decoration to be shown,
13659 * when the mouse pointer is over the given toolbar widget item
13661 * @param item toolbar item to customize cursor on
13662 * @param cursor the cursor type's name
13664 * This function works analogously as elm_object_cursor_set(), but
13665 * here the cursor's changing area is restricted to the item's
13666 * area, and not the whole widget's. Note that that item cursors
13667 * have precedence over widget cursors, so that a mouse over an
13668 * item with custom cursor set will always show @b that cursor.
13670 * If this function is called twice for an object, a previously set
13671 * cursor will be unset on the second call.
13673 * @see elm_object_cursor_set()
13674 * @see elm_toolbar_item_cursor_get()
13675 * @see elm_toolbar_item_cursor_unset()
13679 EAPI void elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
13682 * Get the type of mouse pointer/cursor decoration set to be shown,
13683 * when the mouse pointer is over the given toolbar widget item
13685 * @param item toolbar item with custom cursor set
13686 * @return the cursor type's name or @c NULL, if no custom cursors
13687 * were set to @p item (and on errors)
13689 * @see elm_object_cursor_get()
13690 * @see elm_toolbar_item_cursor_set()
13691 * @see elm_toolbar_item_cursor_unset()
13695 EAPI const char *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13698 * Unset any custom mouse pointer/cursor decoration set to be
13699 * shown, when the mouse pointer is over the given toolbar widget
13700 * item, thus making it show the @b default cursor again.
13702 * @param item a toolbar item
13704 * Use this call to undo any custom settings on this item's cursor
13705 * decoration, bringing it back to defaults (no custom style set).
13707 * @see elm_object_cursor_unset()
13708 * @see elm_toolbar_item_cursor_set()
13712 EAPI void elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13715 * Set a different @b style for a given custom cursor set for a
13718 * @param item toolbar item with custom cursor set
13719 * @param style the <b>theme style</b> to use (e.g. @c "default",
13720 * @c "transparent", etc)
13722 * This function only makes sense when one is using custom mouse
13723 * cursor decorations <b>defined in a theme file</b>, which can have,
13724 * given a cursor name/type, <b>alternate styles</b> on it. It
13725 * works analogously as elm_object_cursor_style_set(), but here
13726 * applyed only to toolbar item objects.
13728 * @warning Before you set a cursor style you should have definen a
13729 * custom cursor previously on the item, with
13730 * elm_toolbar_item_cursor_set()
13732 * @see elm_toolbar_item_cursor_engine_only_set()
13733 * @see elm_toolbar_item_cursor_style_get()
13737 EAPI void elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
13740 * Get the current @b style set for a given toolbar item's custom
13743 * @param item toolbar item with custom cursor set.
13744 * @return style the cursor style in use. If the object does not
13745 * have a cursor set, then @c NULL is returned.
13747 * @see elm_toolbar_item_cursor_style_set() for more details
13751 EAPI const char *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13754 * Set if the (custom)cursor for a given toolbar item should be
13755 * searched in its theme, also, or should only rely on the
13756 * rendering engine.
13758 * @param item item with custom (custom) cursor already set on
13759 * @param engine_only Use @c EINA_TRUE to have cursors looked for
13760 * only on those provided by the rendering engine, @c EINA_FALSE to
13761 * have them searched on the widget's theme, as well.
13763 * @note This call is of use only if you've set a custom cursor
13764 * for toolbar items, with elm_toolbar_item_cursor_set().
13766 * @note By default, cursors will only be looked for between those
13767 * provided by the rendering engine.
13771 EAPI void elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
13774 * Get if the (custom) cursor for a given toolbar item is being
13775 * searched in its theme, also, or is only relying on the rendering
13778 * @param item a toolbar item
13779 * @return @c EINA_TRUE, if cursors are being looked for only on
13780 * those provided by the rendering engine, @c EINA_FALSE if they
13781 * are being searched on the widget's theme, as well.
13783 * @see elm_toolbar_item_cursor_engine_only_set(), for more details
13787 EAPI Eina_Bool elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13790 * Change a toolbar's orientation
13791 * @param obj The toolbar object
13792 * @param vertical If @c EINA_TRUE, the toolbar is vertical
13793 * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
13796 EAPI void elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
13799 * Get a toolbar's orientation
13800 * @param obj The toolbar object
13801 * @return If @c EINA_TRUE, the toolbar is vertical
13802 * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
13805 EAPI Eina_Bool elm_toolbar_orientation_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13812 * @defgroup Tooltips Tooltips
13814 * The Tooltip is an (internal, for now) smart object used to show a
13815 * content in a frame on mouse hover of objects(or widgets), with
13816 * tips/information about them.
13821 EAPI double elm_tooltip_delay_get(void);
13822 EAPI Eina_Bool elm_tooltip_delay_set(double delay);
13823 EAPI void elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
13824 EAPI void elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
13825 EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
13826 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);
13827 EAPI void elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13828 EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
13829 EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13830 EAPI Eina_Bool elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
13831 EAPI Eina_Bool elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
13838 * @defgroup Cursors Cursors
13840 * The Elementary cursor is an internal smart object used to
13841 * customize the mouse cursor displayed over objects (or
13842 * widgets). In the most common scenario, the cursor decoration
13843 * comes from the graphical @b engine Elementary is running
13844 * on. Those engines may provide different decorations for cursors,
13845 * and Elementary provides functions to choose them (think of X11
13846 * cursors, as an example).
13848 * There's also the possibility of, besides using engine provided
13849 * cursors, also use ones coming from Edje theming files. Both
13850 * globally and per widget, Elementary makes it possible for one to
13851 * make the cursors lookup to be held on engines only or on
13852 * Elementary's theme file, too.
13858 * Set the cursor to be shown when mouse is over the object
13860 * Set the cursor that will be displayed when mouse is over the
13861 * object. The object can have only one cursor set to it, so if
13862 * this function is called twice for an object, the previous set
13864 * If using X cursors, a definition of all the valid cursor names
13865 * is listed on Elementary_Cursors.h. If an invalid name is set
13866 * the default cursor will be used.
13868 * @param obj the object being set a cursor.
13869 * @param cursor the cursor name to be used.
13873 EAPI void elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
13876 * Get the cursor to be shown when mouse is over the object
13878 * @param obj an object with cursor already set.
13879 * @return the cursor name.
13883 EAPI const char *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13886 * Unset cursor for object
13888 * Unset cursor for object, and set the cursor to default if the mouse
13889 * was over this object.
13891 * @param obj Target object
13892 * @see elm_object_cursor_set()
13896 EAPI void elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13899 * Sets a different style for this object cursor.
13901 * @note before you set a style you should define a cursor with
13902 * elm_object_cursor_set()
13904 * @param obj an object with cursor already set.
13905 * @param style the theme style to use (default, transparent, ...)
13909 EAPI void elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
13912 * Get the style for this object cursor.
13914 * @param obj an object with cursor already set.
13915 * @return style the theme style in use, defaults to "default". If the
13916 * object does not have a cursor set, then NULL is returned.
13920 EAPI const char *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13923 * Set if the cursor set should be searched on the theme or should use
13924 * the provided by the engine, only.
13926 * @note before you set if should look on theme you should define a cursor
13927 * with elm_object_cursor_set(). By default it will only look for cursors
13928 * provided by the engine.
13930 * @param obj an object with cursor already set.
13931 * @param engine_only boolean to define it cursors should be looked only
13932 * between the provided by the engine or searched on widget's theme as well.
13936 EAPI void elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
13939 * Get the cursor engine only usage for this object cursor.
13941 * @param obj an object with cursor already set.
13942 * @return engine_only boolean to define it cursors should be
13943 * looked only between the provided by the engine or searched on
13944 * widget's theme as well. If the object does not have a cursor
13945 * set, then EINA_FALSE is returned.
13949 EAPI Eina_Bool elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13952 * Get the configured cursor engine only usage
13954 * This gets the globally configured exclusive usage of engine cursors.
13956 * @return 1 if only engine cursors should be used
13959 EAPI int elm_cursor_engine_only_get(void);
13962 * Set the configured cursor engine only usage
13964 * This sets the globally configured exclusive usage of engine cursors.
13965 * It won't affect cursors set before changing this value.
13967 * @param engine_only If 1 only engine cursors will be enabled, if 0 will
13968 * look for them on theme before.
13969 * @return EINA_TRUE if value is valid and setted (0 or 1)
13972 EAPI Eina_Bool elm_cursor_engine_only_set(int engine_only);
13979 * @defgroup Menu Menu
13981 * @image html img/widget/menu/preview-00.png
13982 * @image latex img/widget/menu/preview-00.eps
13984 * A menu is a list of items displayed above its parent. When the menu is
13985 * showing its parent is darkened. Each item can have a sub-menu. The menu
13986 * object can be used to display a menu on a right click event, in a toolbar,
13989 * Signals that you can add callbacks for are:
13990 * @li "clicked" - the user clicked the empty space in the menu to dismiss.
13991 * event_info is NULL.
13993 * @see @ref tutorial_menu
13996 typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
13998 * @brief Add a new menu to the parent
14000 * @param parent The parent object.
14001 * @return The new object or NULL if it cannot be created.
14003 EAPI Evas_Object *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14005 * @brief Set the parent for the given menu widget
14007 * @param obj The menu object.
14008 * @param parent The new parent.
14010 EAPI void elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14012 * @brief Get the parent for the given menu widget
14014 * @param obj The menu object.
14015 * @return The parent.
14017 * @see elm_menu_parent_set()
14019 EAPI Evas_Object *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14021 * @brief Move the menu to a new position
14023 * @param obj The menu object.
14024 * @param x The new position.
14025 * @param y The new position.
14027 * Sets the top-left position of the menu to (@p x,@p y).
14029 * @note @p x and @p y coordinates are relative to parent.
14031 EAPI void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
14033 * @brief Close a opened menu
14035 * @param obj the menu object
14038 * Hides the menu and all it's sub-menus.
14040 EAPI void elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
14042 * @brief Returns a list of @p item's items.
14044 * @param obj The menu object
14045 * @return An Eina_List* of @p item's items
14047 EAPI const Eina_List *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14049 * @brief Get the Evas_Object of an Elm_Menu_Item
14051 * @param item The menu item object.
14052 * @return The edje object containing the swallowed content
14054 * @warning Don't manipulate this object!
14056 EAPI Evas_Object *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14058 * @brief Add an item at the end of the given menu widget
14060 * @param obj The menu object.
14061 * @param parent The parent menu item (optional)
14062 * @param icon A icon display on the item. The icon will be destryed by the menu.
14063 * @param label The label of the item.
14064 * @param func Function called when the user select the item.
14065 * @param data Data sent by the callback.
14066 * @return Returns the new item.
14068 EAPI Elm_Menu_Item *elm_menu_item_add(Evas_Object *obj, Elm_Menu_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14070 * @brief Add an object swallowed in an item at the end of the given menu
14073 * @param obj The menu object.
14074 * @param parent The parent menu item (optional)
14075 * @param subobj The object to swallow
14076 * @param func Function called when the user select the item.
14077 * @param data Data sent by the callback.
14078 * @return Returns the new item.
14080 * Add an evas object as an item to the menu.
14082 EAPI Elm_Menu_Item *elm_menu_item_add_object(Evas_Object *obj, Elm_Menu_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14084 * @brief Set the label of a menu item
14086 * @param item The menu item object.
14087 * @param label The label to set for @p item
14089 * @warning Don't use this funcion on items created with
14090 * elm_menu_item_add_object() or elm_menu_item_separator_add().
14092 EAPI void elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
14094 * @brief Get the label of a menu item
14096 * @param item The menu item object.
14097 * @return The label of @p item
14099 EAPI const char *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14101 * @brief Set the icon of a menu item to the standard icon with name @p icon
14103 * @param item The menu item object.
14104 * @param icon The icon object to set for the content of @p item
14106 * Once this icon is set, any previously set icon will be deleted.
14108 EAPI void elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
14110 * @brief Get the string representation from the icon of a menu item
14112 * @param item The menu item object.
14113 * @return The string representation of @p item's icon or NULL
14115 * @see elm_menu_item_object_icon_name_set()
14117 EAPI const char *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14119 * @brief Set the content object of a menu item
14121 * @param item The menu item object
14122 * @param The content object or NULL
14123 * @return EINA_TRUE on success, else EINA_FALSE
14125 * Use this function to change the object swallowed by a menu item, deleting
14126 * any previously swallowed object.
14128 EAPI Eina_Bool elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
14130 * @brief Get the content object of a menu item
14132 * @param item The menu item object
14133 * @return The content object or NULL
14134 * @note If @p item was added with elm_menu_item_add_object, this
14135 * function will return the object passed, else it will return the
14138 * @see elm_menu_item_object_content_set()
14140 EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14142 * @brief Set the selected state of @p item.
14144 * @param item The menu item object.
14145 * @param selected The selected/unselected state of the item
14147 EAPI void elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14149 * @brief Get the selected state of @p item.
14151 * @param item The menu item object.
14152 * @return The selected/unselected state of the item
14154 * @see elm_menu_item_selected_set()
14156 EAPI Eina_Bool elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14158 * @brief Set the disabled state of @p item.
14160 * @param item The menu item object.
14161 * @param disabled The enabled/disabled state of the item
14163 EAPI void elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14165 * @brief Get the disabled state of @p item.
14167 * @param item The menu item object.
14168 * @return The enabled/disabled state of the item
14170 * @see elm_menu_item_disabled_set()
14172 EAPI Eina_Bool elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14174 * @brief Add a separator item to menu @p obj under @p parent.
14176 * @param obj The menu object
14177 * @param parent The item to add the separator under
14178 * @return The created item or NULL on failure
14180 * This is item is a @ref Separator.
14182 EAPI Elm_Menu_Item *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
14184 * @brief Returns whether @p item is a separator.
14186 * @param item The item to check
14187 * @return If true, @p item is a separator
14189 * @see elm_menu_item_separator_add()
14191 EAPI Eina_Bool elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14193 * @brief Deletes an item from the menu.
14195 * @param item The item to delete.
14197 * @see elm_menu_item_add()
14199 EAPI void elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14201 * @brief Set the function called when a menu item is deleted.
14203 * @param item The item to set the callback on
14204 * @param func The function called
14206 * @see elm_menu_item_add()
14207 * @see elm_menu_item_del()
14209 EAPI void elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14211 * @brief Returns the data associated with menu item @p item.
14213 * @param item The item
14214 * @return The data associated with @p item or NULL if none was set.
14216 * This is the data set with elm_menu_add() or elm_menu_item_data_set().
14218 EAPI void *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14220 * @brief Sets the data to be associated with menu item @p item.
14222 * @param item The item
14223 * @param data The data to be associated with @p item
14225 EAPI void elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
14227 * @brief Returns a list of @p item's subitems.
14229 * @param item The item
14230 * @return An Eina_List* of @p item's subitems
14232 * @see elm_menu_add()
14234 EAPI const Eina_List *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14236 * @brief Get the position of a menu item
14238 * @param item The menu item
14239 * @return The item's index
14241 * This function returns the index position of a menu item in a menu.
14242 * For a sub-menu, this number is relative to the first item in the sub-menu.
14244 * @note Index values begin with 0
14246 EAPI unsigned int elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14248 * @brief @brief Return a menu item's owner menu
14250 * @param item The menu item
14251 * @return The menu object owning @p item, or NULL on failure
14253 * Use this function to get the menu object owning an item.
14255 EAPI Evas_Object *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14257 * @brief Get the selected item in the menu
14259 * @param obj The menu object
14260 * @return The selected item, or NULL if none
14262 * @see elm_menu_item_selected_get()
14263 * @see elm_menu_item_selected_set()
14265 EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14267 * @brief Get the last item in the menu
14269 * @param obj The menu object
14270 * @return The last item, or NULL if none
14272 EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14274 * @brief Get the first item in the menu
14276 * @param obj The menu object
14277 * @return The first item, or NULL if none
14279 EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14281 * @brief Get the next item in the menu.
14283 * @param item The menu item object.
14284 * @return The item after it, or NULL if none
14286 EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14288 * @brief Get the previous item in the menu.
14290 * @param item The menu item object.
14291 * @return The item before it, or NULL if none
14293 EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14299 * @defgroup List List
14300 * @ingroup Elementary
14302 * @image html img/widget/list/preview-00.png
14303 * @image latex img/widget/list/preview-00.eps width=\textwidth
14305 * @image html img/list.png
14306 * @image latex img/list.eps width=\textwidth
14308 * A list widget is a container whose children are displayed vertically or
14309 * horizontally, in order, and can be selected.
14310 * The list can accept only one or multiple items selection. Also has many
14311 * modes of items displaying.
14313 * A list is a very simple type of list widget. For more robust
14314 * lists, @ref Genlist should probably be used.
14316 * Smart callbacks one can listen to:
14317 * - @c "activated" - The user has double-clicked or pressed
14318 * (enter|return|spacebar) on an item. The @c event_info parameter
14319 * is the item that was activated.
14320 * - @c "clicked,double" - The user has double-clicked an item.
14321 * The @c event_info parameter is the item that was double-clicked.
14322 * - "selected" - when the user selected an item
14323 * - "unselected" - when the user unselected an item
14324 * - "longpressed" - an item in the list is long-pressed
14325 * - "scroll,edge,top" - the list is scrolled until the top edge
14326 * - "scroll,edge,bottom" - the list is scrolled until the bottom edge
14327 * - "scroll,edge,left" - the list is scrolled until the left edge
14328 * - "scroll,edge,right" - the list is scrolled until the right edge
14330 * Available styles for it:
14333 * List of examples:
14334 * @li @ref list_example_01
14335 * @li @ref list_example_02
14336 * @li @ref list_example_03
14345 * @enum _Elm_List_Mode
14346 * @typedef Elm_List_Mode
14348 * Set list's resize behavior, transverse axis scroll and
14349 * items cropping. See each mode's description for more details.
14351 * @note Default value is #ELM_LIST_SCROLL.
14353 * Values <b> don't </b> work as bitmask, only one can be choosen.
14355 * @see elm_list_mode_set()
14356 * @see elm_list_mode_get()
14360 typedef enum _Elm_List_Mode
14362 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. */
14363 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). */
14364 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. */
14365 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. */
14366 ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
14369 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(). */
14372 * Add a new list widget to the given parent Elementary
14373 * (container) object.
14375 * @param parent The parent object.
14376 * @return a new list widget handle or @c NULL, on errors.
14378 * This function inserts a new list widget on the canvas.
14382 EAPI Evas_Object *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14387 * @param obj The list object
14389 * @note Call before running show() on the list object.
14390 * @warning If not called, it won't display the list properly.
14393 * li = elm_list_add(win);
14394 * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
14395 * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
14397 * evas_object_show(li);
14402 EAPI void elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
14405 * Enable or disable multiple items selection on the list object.
14407 * @param obj The list object
14408 * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
14411 * Disabled by default. If disabled, the user can select a single item of
14412 * the list each time. Selected items are highlighted on list.
14413 * If enabled, many items can be selected.
14415 * If a selected item is selected again, it will be unselected.
14417 * @see elm_list_multi_select_get()
14421 EAPI void elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
14424 * Get a value whether multiple items selection is enabled or not.
14426 * @see elm_list_multi_select_set() for details.
14428 * @param obj The list object.
14429 * @return @c EINA_TRUE means multiple items selection is enabled.
14430 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14431 * @c EINA_FALSE is returned.
14435 EAPI Eina_Bool elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14438 * Set which mode to use for the list object.
14440 * @param obj The list object
14441 * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14442 * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
14444 * Set list's resize behavior, transverse axis scroll and
14445 * items cropping. See each mode's description for more details.
14447 * @note Default value is #ELM_LIST_SCROLL.
14449 * Only one can be set, if a previous one was set, it will be changed
14450 * by the new mode set. Bitmask won't work as well.
14452 * @see elm_list_mode_get()
14456 EAPI void elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14459 * Get the mode the list is at.
14461 * @param obj The list object
14462 * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14463 * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
14465 * @note see elm_list_mode_set() for more information.
14469 EAPI Elm_List_Mode elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14472 * Enable or disable horizontal mode on the list object.
14474 * @param obj The list object.
14475 * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
14476 * disable it, i.e., to enable vertical mode.
14478 * @note Vertical mode is set by default.
14480 * On horizontal mode items are displayed on list from left to right,
14481 * instead of from top to bottom. Also, the list will scroll horizontally.
14482 * Each item will presents left icon on top and right icon, or end, at
14485 * @see elm_list_horizontal_get()
14489 EAPI void elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14492 * Get a value whether horizontal mode is enabled or not.
14494 * @param obj The list object.
14495 * @return @c EINA_TRUE means horizontal mode selection is enabled.
14496 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14497 * @c EINA_FALSE is returned.
14499 * @see elm_list_horizontal_set() for details.
14503 EAPI Eina_Bool elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14506 * Enable or disable always select mode on the list object.
14508 * @param obj The list object
14509 * @param always_select @c EINA_TRUE to enable always select mode or
14510 * @c EINA_FALSE to disable it.
14512 * @note Always select mode is disabled by default.
14514 * Default behavior of list items is to only call its callback function
14515 * the first time it's pressed, i.e., when it is selected. If a selected
14516 * item is pressed again, and multi-select is disabled, it won't call
14517 * this function (if multi-select is enabled it will unselect the item).
14519 * If always select is enabled, it will call the callback function
14520 * everytime a item is pressed, so it will call when the item is selected,
14521 * and again when a selected item is pressed.
14523 * @see elm_list_always_select_mode_get()
14524 * @see elm_list_multi_select_set()
14528 EAPI void elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14531 * Get a value whether always select mode is enabled or not, meaning that
14532 * an item will always call its callback function, even if already selected.
14534 * @param obj The list object
14535 * @return @c EINA_TRUE means horizontal mode selection is enabled.
14536 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14537 * @c EINA_FALSE is returned.
14539 * @see elm_list_always_select_mode_set() for details.
14543 EAPI Eina_Bool elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14546 * Set bouncing behaviour when the scrolled content reaches an edge.
14548 * Tell the internal scroller object whether it should bounce or not
14549 * when it reaches the respective edges for each axis.
14551 * @param obj The list object
14552 * @param h_bounce Whether to bounce or not in the horizontal axis.
14553 * @param v_bounce Whether to bounce or not in the vertical axis.
14555 * @see elm_scroller_bounce_set()
14559 EAPI void elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
14562 * Get the bouncing behaviour of the internal scroller.
14564 * Get whether the internal scroller should bounce when the edge of each
14565 * axis is reached scrolling.
14567 * @param obj The list object.
14568 * @param h_bounce Pointer where to store the bounce state of the horizontal
14570 * @param v_bounce Pointer where to store the bounce state of the vertical
14573 * @see elm_scroller_bounce_get()
14574 * @see elm_list_bounce_set()
14578 EAPI void elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
14581 * Set the scrollbar policy.
14583 * @param obj The list object
14584 * @param policy_h Horizontal scrollbar policy.
14585 * @param policy_v Vertical scrollbar policy.
14587 * This sets the scrollbar visibility policy for the given scroller.
14588 * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
14589 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
14590 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
14591 * This applies respectively for the horizontal and vertical scrollbars.
14593 * The both are disabled by default, i.e., are set to
14594 * #ELM_SCROLLER_POLICY_OFF.
14598 EAPI void elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
14601 * Get the scrollbar policy.
14603 * @see elm_list_scroller_policy_get() for details.
14605 * @param obj The list object.
14606 * @param policy_h Pointer where to store horizontal scrollbar policy.
14607 * @param policy_v Pointer where to store vertical scrollbar policy.
14611 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);
14614 * Append a new item to the list object.
14616 * @param obj The list object.
14617 * @param label The label of the list item.
14618 * @param icon The icon object to use for the left side of the item. An
14619 * icon can be any Evas object, but usually it is an icon created
14620 * with elm_icon_add().
14621 * @param end The icon object to use for the right side of the item. An
14622 * icon can be any Evas object.
14623 * @param func The function to call when the item is clicked.
14624 * @param data The data to associate with the item for related callbacks.
14626 * @return The created item or @c NULL upon failure.
14628 * A new item will be created and appended to the list, i.e., will
14629 * be set as @b last item.
14631 * Items created with this method can be deleted with
14632 * elm_list_item_del().
14634 * Associated @p data can be properly freed when item is deleted if a
14635 * callback function is set with elm_list_item_del_cb_set().
14637 * If a function is passed as argument, it will be called everytime this item
14638 * is selected, i.e., the user clicks over an unselected item.
14639 * If always select is enabled it will call this function every time
14640 * user clicks over an item (already selected or not).
14641 * If such function isn't needed, just passing
14642 * @c NULL as @p func is enough. The same should be done for @p data.
14644 * Simple example (with no function callback or data associated):
14646 * li = elm_list_add(win);
14647 * ic = elm_icon_add(win);
14648 * elm_icon_file_set(ic, "path/to/image", NULL);
14649 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
14650 * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
14652 * evas_object_show(li);
14655 * @see elm_list_always_select_mode_set()
14656 * @see elm_list_item_del()
14657 * @see elm_list_item_del_cb_set()
14658 * @see elm_list_clear()
14659 * @see elm_icon_add()
14663 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);
14666 * Prepend a new item to the list object.
14668 * @param obj The list object.
14669 * @param label The label of the list item.
14670 * @param icon The icon object to use for the left side of the item. An
14671 * icon can be any Evas object, but usually it is an icon created
14672 * with elm_icon_add().
14673 * @param end The icon object to use for the right side of the item. An
14674 * icon can be any Evas object.
14675 * @param func The function to call when the item is clicked.
14676 * @param data The data to associate with the item for related callbacks.
14678 * @return The created item or @c NULL upon failure.
14680 * A new item will be created and prepended to the list, i.e., will
14681 * be set as @b first item.
14683 * Items created with this method can be deleted with
14684 * elm_list_item_del().
14686 * Associated @p data can be properly freed when item is deleted if a
14687 * callback function is set with elm_list_item_del_cb_set().
14689 * If a function is passed as argument, it will be called everytime this item
14690 * is selected, i.e., the user clicks over an unselected item.
14691 * If always select is enabled it will call this function every time
14692 * user clicks over an item (already selected or not).
14693 * If such function isn't needed, just passing
14694 * @c NULL as @p func is enough. The same should be done for @p data.
14696 * @see elm_list_item_append() for a simple code example.
14697 * @see elm_list_always_select_mode_set()
14698 * @see elm_list_item_del()
14699 * @see elm_list_item_del_cb_set()
14700 * @see elm_list_clear()
14701 * @see elm_icon_add()
14705 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);
14708 * Insert a new item into the list object before item @p before.
14710 * @param obj The list object.
14711 * @param before The list item to insert before.
14712 * @param label The label of the list item.
14713 * @param icon The icon object to use for the left side of the item. An
14714 * icon can be any Evas object, but usually it is an icon created
14715 * with elm_icon_add().
14716 * @param end The icon object to use for the right side of the item. An
14717 * icon can be any Evas object.
14718 * @param func The function to call when the item is clicked.
14719 * @param data The data to associate with the item for related callbacks.
14721 * @return The created item or @c NULL upon failure.
14723 * A new item will be created and added to the list. Its position in
14724 * this list will be just before item @p before.
14726 * Items created with this method can be deleted with
14727 * elm_list_item_del().
14729 * Associated @p data can be properly freed when item is deleted if a
14730 * callback function is set with elm_list_item_del_cb_set().
14732 * If a function is passed as argument, it will be called everytime this item
14733 * is selected, i.e., the user clicks over an unselected item.
14734 * If always select is enabled it will call this function every time
14735 * user clicks over an item (already selected or not).
14736 * If such function isn't needed, just passing
14737 * @c NULL as @p func is enough. The same should be done for @p data.
14739 * @see elm_list_item_append() for a simple code example.
14740 * @see elm_list_always_select_mode_set()
14741 * @see elm_list_item_del()
14742 * @see elm_list_item_del_cb_set()
14743 * @see elm_list_clear()
14744 * @see elm_icon_add()
14748 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);
14751 * Insert a new item into the list object after item @p after.
14753 * @param obj The list object.
14754 * @param after The list item to insert after.
14755 * @param label The label of the list item.
14756 * @param icon The icon object to use for the left side of the item. An
14757 * icon can be any Evas object, but usually it is an icon created
14758 * with elm_icon_add().
14759 * @param end The icon object to use for the right side of the item. An
14760 * icon can be any Evas object.
14761 * @param func The function to call when the item is clicked.
14762 * @param data The data to associate with the item for related callbacks.
14764 * @return The created item or @c NULL upon failure.
14766 * A new item will be created and added to the list. Its position in
14767 * this list will be just after item @p after.
14769 * Items created with this method can be deleted with
14770 * elm_list_item_del().
14772 * Associated @p data can be properly freed when item is deleted if a
14773 * callback function is set with elm_list_item_del_cb_set().
14775 * If a function is passed as argument, it will be called everytime this item
14776 * is selected, i.e., the user clicks over an unselected item.
14777 * If always select is enabled it will call this function every time
14778 * user clicks over an item (already selected or not).
14779 * If such function isn't needed, just passing
14780 * @c NULL as @p func is enough. The same should be done for @p data.
14782 * @see elm_list_item_append() for a simple code example.
14783 * @see elm_list_always_select_mode_set()
14784 * @see elm_list_item_del()
14785 * @see elm_list_item_del_cb_set()
14786 * @see elm_list_clear()
14787 * @see elm_icon_add()
14791 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);
14794 * Insert a new item into the sorted list object.
14796 * @param obj The list object.
14797 * @param label The label of the list item.
14798 * @param icon The icon object to use for the left side of the item. An
14799 * icon can be any Evas object, but usually it is an icon created
14800 * with elm_icon_add().
14801 * @param end The icon object to use for the right side of the item. An
14802 * icon can be any Evas object.
14803 * @param func The function to call when the item is clicked.
14804 * @param data The data to associate with the item for related callbacks.
14805 * @param cmp_func The comparing function to be used to sort list
14806 * items <b>by #Elm_List_Item item handles</b>. This function will
14807 * receive two items and compare them, returning a non-negative integer
14808 * if the second item should be place after the first, or negative value
14809 * if should be placed before.
14811 * @return The created item or @c NULL upon failure.
14813 * @note This function inserts values into a list object assuming it was
14814 * sorted and the result will be sorted.
14816 * A new item will be created and added to the list. Its position in
14817 * this list will be found comparing the new item with previously inserted
14818 * items using function @p cmp_func.
14820 * Items created with this method can be deleted with
14821 * elm_list_item_del().
14823 * Associated @p data can be properly freed when item is deleted if a
14824 * callback function is set with elm_list_item_del_cb_set().
14826 * If a function is passed as argument, it will be called everytime this item
14827 * is selected, i.e., the user clicks over an unselected item.
14828 * If always select is enabled it will call this function every time
14829 * user clicks over an item (already selected or not).
14830 * If such function isn't needed, just passing
14831 * @c NULL as @p func is enough. The same should be done for @p data.
14833 * @see elm_list_item_append() for a simple code example.
14834 * @see elm_list_always_select_mode_set()
14835 * @see elm_list_item_del()
14836 * @see elm_list_item_del_cb_set()
14837 * @see elm_list_clear()
14838 * @see elm_icon_add()
14842 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);
14845 * Remove all list's items.
14847 * @param obj The list object
14849 * @see elm_list_item_del()
14850 * @see elm_list_item_append()
14854 EAPI void elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14857 * Get a list of all the list items.
14859 * @param obj The list object
14860 * @return An @c Eina_List of list items, #Elm_List_Item,
14861 * or @c NULL on failure.
14863 * @see elm_list_item_append()
14864 * @see elm_list_item_del()
14865 * @see elm_list_clear()
14869 EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14872 * Get the selected item.
14874 * @param obj The list object.
14875 * @return The selected list item.
14877 * The selected item can be unselected with function
14878 * elm_list_item_selected_set().
14880 * The selected item always will be highlighted on list.
14882 * @see elm_list_selected_items_get()
14886 EAPI Elm_List_Item *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14889 * Return a list of the currently selected list items.
14891 * @param obj The list object.
14892 * @return An @c Eina_List of list items, #Elm_List_Item,
14893 * or @c NULL on failure.
14895 * Multiple items can be selected if multi select is enabled. It can be
14896 * done with elm_list_multi_select_set().
14898 * @see elm_list_selected_item_get()
14899 * @see elm_list_multi_select_set()
14903 EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14906 * Set the selected state of an item.
14908 * @param item The list item
14909 * @param selected The selected state
14911 * This sets the selected state of the given item @p it.
14912 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
14914 * If a new item is selected the previosly selected will be unselected,
14915 * unless multiple selection is enabled with elm_list_multi_select_set().
14916 * Previoulsy selected item can be get with function
14917 * elm_list_selected_item_get().
14919 * Selected items will be highlighted.
14921 * @see elm_list_item_selected_get()
14922 * @see elm_list_selected_item_get()
14923 * @see elm_list_multi_select_set()
14927 EAPI void elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14930 * Get whether the @p item is selected or not.
14932 * @param item The list item.
14933 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
14934 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
14936 * @see elm_list_selected_item_set() for details.
14937 * @see elm_list_item_selected_get()
14941 EAPI Eina_Bool elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
14944 * Set or unset item as a separator.
14946 * @param it The list item.
14947 * @param setting @c EINA_TRUE to set item @p it as separator or
14948 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
14950 * Items aren't set as separator by default.
14952 * If set as separator it will display separator theme, so won't display
14955 * @see elm_list_item_separator_get()
14959 EAPI void elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
14962 * Get a value whether item is a separator or not.
14964 * @see elm_list_item_separator_set() for details.
14966 * @param it The list item.
14967 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
14968 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
14972 EAPI Eina_Bool elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
14975 * Show @p item in the list view.
14977 * @param item The list item to be shown.
14979 * It won't animate list until item is visible. If such behavior is wanted,
14980 * use elm_list_bring_in() intead.
14984 EAPI void elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
14987 * Bring in the given item to list view.
14989 * @param item The item.
14991 * This causes list to jump to the given item @p item and show it
14992 * (by scrolling), if it is not fully visible.
14994 * This may use animation to do so and take a period of time.
14996 * If animation isn't wanted, elm_list_item_show() can be used.
15000 EAPI void elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15003 * Delete them item from the list.
15005 * @param item The item of list to be deleted.
15007 * If deleting all list items is required, elm_list_clear()
15008 * should be used instead of getting items list and deleting each one.
15010 * @see elm_list_clear()
15011 * @see elm_list_item_append()
15012 * @see elm_list_item_del_cb_set()
15016 EAPI void elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15019 * Set the function called when a list item is freed.
15021 * @param item The item to set the callback on
15022 * @param func The function called
15024 * If there is a @p func, then it will be called prior item's memory release.
15025 * That will be called with the following arguments:
15027 * @li item's Evas object;
15030 * This way, a data associated to a list item could be properly freed.
15034 EAPI void elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15037 * Get the data associated to the item.
15039 * @param item The list item
15040 * @return The data associated to @p item
15042 * The return value is a pointer to data associated to @p item when it was
15043 * created, with function elm_list_item_append() or similar. If no data
15044 * was passed as argument, it will return @c NULL.
15046 * @see elm_list_item_append()
15050 EAPI void *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15053 * Get the left side icon associated to the item.
15055 * @param item The list item
15056 * @return The left side icon associated to @p item
15058 * The return value is a pointer to the icon associated to @p item when
15060 * created, with function elm_list_item_append() or similar, or later
15061 * with function elm_list_item_icon_set(). If no icon
15062 * was passed as argument, it will return @c NULL.
15064 * @see elm_list_item_append()
15065 * @see elm_list_item_icon_set()
15069 EAPI Evas_Object *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15072 * Set the left side icon associated to the item.
15074 * @param item The list item
15075 * @param icon The left side icon object to associate with @p item
15077 * The icon object to use at left side of the item. An
15078 * icon can be any Evas object, but usually it is an icon created
15079 * with elm_icon_add().
15081 * Once the icon object is set, a previously set one will be deleted.
15082 * @warning Setting the same icon for two items will cause the icon to
15083 * dissapear from the first item.
15085 * If an icon was passed as argument on item creation, with function
15086 * elm_list_item_append() or similar, it will be already
15087 * associated to the item.
15089 * @see elm_list_item_append()
15090 * @see elm_list_item_icon_get()
15094 EAPI void elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
15097 * Get the right side icon associated to the item.
15099 * @param item The list item
15100 * @return The right side icon associated to @p item
15102 * The return value is a pointer to the icon associated to @p item when
15104 * created, with function elm_list_item_append() or similar, or later
15105 * with function elm_list_item_icon_set(). If no icon
15106 * was passed as argument, it will return @c NULL.
15108 * @see elm_list_item_append()
15109 * @see elm_list_item_icon_set()
15113 EAPI Evas_Object *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15116 * Set the right side icon associated to the item.
15118 * @param item The list item
15119 * @param end The right side icon object to associate with @p item
15121 * The icon object to use at right side of the item. An
15122 * icon can be any Evas object, but usually it is an icon created
15123 * with elm_icon_add().
15125 * Once the icon object is set, a previously set one will be deleted.
15126 * @warning Setting the same icon for two items will cause the icon to
15127 * dissapear from the first item.
15129 * If an icon was passed as argument on item creation, with function
15130 * elm_list_item_append() or similar, it will be already
15131 * associated to the item.
15133 * @see elm_list_item_append()
15134 * @see elm_list_item_end_get()
15138 EAPI void elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
15141 * Gets the base object of the item.
15143 * @param item The list item
15144 * @return The base object associated with @p item
15146 * Base object is the @c Evas_Object that represents that item.
15150 EAPI Evas_Object *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15153 * Get the label of item.
15155 * @param item The item of list.
15156 * @return The label of item.
15158 * The return value is a pointer to the label associated to @p item when
15159 * it was created, with function elm_list_item_append(), or later
15160 * with function elm_list_item_label_set. If no label
15161 * was passed as argument, it will return @c NULL.
15163 * @see elm_list_item_label_set() for more details.
15164 * @see elm_list_item_append()
15168 EAPI const char *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15171 * Set the label of item.
15173 * @param item The item of list.
15174 * @param text The label of item.
15176 * The label to be displayed by the item.
15177 * Label will be placed between left and right side icons (if set).
15179 * If a label was passed as argument on item creation, with function
15180 * elm_list_item_append() or similar, it will be already
15181 * displayed by the item.
15183 * @see elm_list_item_label_get()
15184 * @see elm_list_item_append()
15188 EAPI void elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15192 * Get the item before @p it in list.
15194 * @param it The list item.
15195 * @return The item before @p it, or @c NULL if none or on failure.
15197 * @note If it is the first item, @c NULL will be returned.
15199 * @see elm_list_item_append()
15200 * @see elm_list_items_get()
15204 EAPI Elm_List_Item *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15207 * Get the item after @p it in list.
15209 * @param it The list item.
15210 * @return The item after @p it, or @c NULL if none or on failure.
15212 * @note If it is the last item, @c NULL will be returned.
15214 * @see elm_list_item_append()
15215 * @see elm_list_items_get()
15219 EAPI Elm_List_Item *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15222 * Sets the disabled/enabled state of a list item.
15224 * @param it The item.
15225 * @param disabled The disabled state.
15227 * A disabled item cannot be selected or unselected. It will also
15228 * change its appearance (generally greyed out). This sets the
15229 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15234 EAPI void elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15237 * Get a value whether list item is disabled or not.
15239 * @param it The item.
15240 * @return The disabled state.
15242 * @see elm_list_item_disabled_set() for more details.
15246 EAPI Eina_Bool elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15249 * Set the text to be shown in a given list item's tooltips.
15251 * @param item Target item.
15252 * @param text The text to set in the content.
15254 * Setup the text as tooltip to object. The item can have only one tooltip,
15255 * so any previous tooltip data - set with this function or
15256 * elm_list_item_tooltip_content_cb_set() - is removed.
15258 * @see elm_object_tooltip_text_set() for more details.
15262 EAPI void elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15266 * @brief Disable size restrictions on an object's tooltip
15267 * @param item The tooltip's anchor object
15268 * @param disable If EINA_TRUE, size restrictions are disabled
15269 * @return EINA_FALSE on failure, EINA_TRUE on success
15271 * This function allows a tooltip to expand beyond its parant window's canvas.
15272 * It will instead be limited only by the size of the display.
15274 EAPI Eina_Bool elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
15276 * @brief Retrieve size restriction state of an object's tooltip
15277 * @param obj The tooltip's anchor object
15278 * @return If EINA_TRUE, size restrictions are disabled
15280 * This function returns whether a tooltip is allowed to expand beyond
15281 * its parant window's canvas.
15282 * It will instead be limited only by the size of the display.
15284 EAPI Eina_Bool elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15287 * Set the content to be shown in the tooltip item.
15289 * Setup the tooltip to item. The item can have only one tooltip,
15290 * so any previous tooltip data is removed. @p func(with @p data) will
15291 * be called every time that need show the tooltip and it should
15292 * return a valid Evas_Object. This object is then managed fully by
15293 * tooltip system and is deleted when the tooltip is gone.
15295 * @param item the list item being attached a tooltip.
15296 * @param func the function used to create the tooltip contents.
15297 * @param data what to provide to @a func as callback data/context.
15298 * @param del_cb called when data is not needed anymore, either when
15299 * another callback replaces @a func, the tooltip is unset with
15300 * elm_list_item_tooltip_unset() or the owner @a item
15301 * dies. This callback receives as the first parameter the
15302 * given @a data, and @c event_info is the item.
15304 * @see elm_object_tooltip_content_cb_set() for more details.
15308 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);
15311 * Unset tooltip from item.
15313 * @param item list item to remove previously set tooltip.
15315 * Remove tooltip from item. The callback provided as del_cb to
15316 * elm_list_item_tooltip_content_cb_set() will be called to notify
15317 * it is not used anymore.
15319 * @see elm_object_tooltip_unset() for more details.
15320 * @see elm_list_item_tooltip_content_cb_set()
15324 EAPI void elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15327 * Sets a different style for this item tooltip.
15329 * @note before you set a style you should define a tooltip with
15330 * elm_list_item_tooltip_content_cb_set() or
15331 * elm_list_item_tooltip_text_set()
15333 * @param item list item with tooltip already set.
15334 * @param style the theme style to use (default, transparent, ...)
15336 * @see elm_object_tooltip_style_set() for more details.
15340 EAPI void elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15343 * Get the style for this item tooltip.
15345 * @param item list item with tooltip already set.
15346 * @return style the theme style in use, defaults to "default". If the
15347 * object does not have a tooltip set, then NULL is returned.
15349 * @see elm_object_tooltip_style_get() for more details.
15350 * @see elm_list_item_tooltip_style_set()
15354 EAPI const char *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15357 * Set the type of mouse pointer/cursor decoration to be shown,
15358 * when the mouse pointer is over the given list widget item
15360 * @param item list item to customize cursor on
15361 * @param cursor the cursor type's name
15363 * This function works analogously as elm_object_cursor_set(), but
15364 * here the cursor's changing area is restricted to the item's
15365 * area, and not the whole widget's. Note that that item cursors
15366 * have precedence over widget cursors, so that a mouse over an
15367 * item with custom cursor set will always show @b that cursor.
15369 * If this function is called twice for an object, a previously set
15370 * cursor will be unset on the second call.
15372 * @see elm_object_cursor_set()
15373 * @see elm_list_item_cursor_get()
15374 * @see elm_list_item_cursor_unset()
15378 EAPI void elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15381 * Get the type of mouse pointer/cursor decoration set to be shown,
15382 * when the mouse pointer is over the given list widget item
15384 * @param item list item with custom cursor set
15385 * @return the cursor type's name or @c NULL, if no custom cursors
15386 * were set to @p item (and on errors)
15388 * @see elm_object_cursor_get()
15389 * @see elm_list_item_cursor_set()
15390 * @see elm_list_item_cursor_unset()
15394 EAPI const char *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15397 * Unset any custom mouse pointer/cursor decoration set to be
15398 * shown, when the mouse pointer is over the given list widget
15399 * item, thus making it show the @b default cursor again.
15401 * @param item a list item
15403 * Use this call to undo any custom settings on this item's cursor
15404 * decoration, bringing it back to defaults (no custom style set).
15406 * @see elm_object_cursor_unset()
15407 * @see elm_list_item_cursor_set()
15411 EAPI void elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15414 * Set a different @b style for a given custom cursor set for a
15417 * @param item list item with custom cursor set
15418 * @param style the <b>theme style</b> to use (e.g. @c "default",
15419 * @c "transparent", etc)
15421 * This function only makes sense when one is using custom mouse
15422 * cursor decorations <b>defined in a theme file</b>, which can have,
15423 * given a cursor name/type, <b>alternate styles</b> on it. It
15424 * works analogously as elm_object_cursor_style_set(), but here
15425 * applyed only to list item objects.
15427 * @warning Before you set a cursor style you should have definen a
15428 * custom cursor previously on the item, with
15429 * elm_list_item_cursor_set()
15431 * @see elm_list_item_cursor_engine_only_set()
15432 * @see elm_list_item_cursor_style_get()
15436 EAPI void elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15439 * Get the current @b style set for a given list item's custom
15442 * @param item list item with custom cursor set.
15443 * @return style the cursor style in use. If the object does not
15444 * have a cursor set, then @c NULL is returned.
15446 * @see elm_list_item_cursor_style_set() for more details
15450 EAPI const char *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15453 * Set if the (custom)cursor for a given list item should be
15454 * searched in its theme, also, or should only rely on the
15455 * rendering engine.
15457 * @param item item with custom (custom) cursor already set on
15458 * @param engine_only Use @c EINA_TRUE to have cursors looked for
15459 * only on those provided by the rendering engine, @c EINA_FALSE to
15460 * have them searched on the widget's theme, as well.
15462 * @note This call is of use only if you've set a custom cursor
15463 * for list items, with elm_list_item_cursor_set().
15465 * @note By default, cursors will only be looked for between those
15466 * provided by the rendering engine.
15470 EAPI void elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15473 * Get if the (custom) cursor for a given list item is being
15474 * searched in its theme, also, or is only relying on the rendering
15477 * @param item a list item
15478 * @return @c EINA_TRUE, if cursors are being looked for only on
15479 * those provided by the rendering engine, @c EINA_FALSE if they
15480 * are being searched on the widget's theme, as well.
15482 * @see elm_list_item_cursor_engine_only_set(), for more details
15486 EAPI Eina_Bool elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15493 * @defgroup Slider Slider
15494 * @ingroup Elementary
15496 * @image html img/widget/slider/preview-00.png
15497 * @image latex img/widget/slider/preview-00.eps width=\textwidth
15499 * The slider adds a dragable “slider” widget for selecting the value of
15500 * something within a range.
15502 * A slider can be horizontal or vertical. It can contain an Icon and has a
15503 * primary label as well as a units label (that is formatted with floating
15504 * point values and thus accepts a printf-style format string, like
15505 * “%1.2f units”. There is also an indicator string that may be somewhere
15506 * else (like on the slider itself) that also accepts a format string like
15507 * units. Label, Icon Unit and Indicator strings/objects are optional.
15509 * A slider may be inverted which means values invert, with high vales being
15510 * on the left or top and low values on the right or bottom (as opposed to
15511 * normally being low on the left or top and high on the bottom and right).
15513 * The slider should have its minimum and maximum values set by the
15514 * application with elm_slider_min_max_set() and value should also be set by
15515 * the application before use with elm_slider_value_set(). The span of the
15516 * slider is its length (horizontally or vertically). This will be scaled by
15517 * the object or applications scaling factor. At any point code can query the
15518 * slider for its value with elm_slider_value_get().
15520 * Smart callbacks one can listen to:
15521 * - "changed" - Whenever the slider value is changed by the user.
15522 * - "slider,drag,start" - dragging the slider indicator around has started.
15523 * - "slider,drag,stop" - dragging the slider indicator around has stopped.
15524 * - "delay,changed" - A short time after the value is changed by the user.
15525 * This will be called only when the user stops dragging for
15526 * a very short period or when they release their
15527 * finger/mouse, so it avoids possibly expensive reactions to
15528 * the value change.
15530 * Available styles for it:
15533 * Here is an example on its usage:
15534 * @li @ref slider_example
15538 * @addtogroup Slider
15543 * Add a new slider widget to the given parent Elementary
15544 * (container) object.
15546 * @param parent The parent object.
15547 * @return a new slider widget handle or @c NULL, on errors.
15549 * This function inserts a new slider widget on the canvas.
15553 EAPI Evas_Object *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15556 * Set the label of a given slider widget
15558 * @param obj The progress bar object
15559 * @param label The text label string, in UTF-8
15562 * @deprecated use elm_object_text_set() instead.
15564 EINA_DEPRECATED EAPI void elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15567 * Get the label of a given slider widget
15569 * @param obj The progressbar object
15570 * @return The text label string, in UTF-8
15573 * @deprecated use elm_object_text_get() instead.
15575 EINA_DEPRECATED EAPI const char *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15578 * Set the icon object of the slider object.
15580 * @param obj The slider object.
15581 * @param icon The icon object.
15583 * On horizontal mode, icon is placed at left, and on vertical mode,
15586 * @note Once the icon object is set, a previously set one will be deleted.
15587 * If you want to keep that old content object, use the
15588 * elm_slider_icon_unset() function.
15590 * @warning If the object being set does not have minimum size hints set,
15591 * it won't get properly displayed.
15595 EAPI void elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15598 * Unset an icon set on a given slider widget.
15600 * @param obj The slider object.
15601 * @return The icon object that was being used, if any was set, or
15602 * @c NULL, otherwise (and on errors).
15604 * On horizontal mode, icon is placed at left, and on vertical mode,
15607 * This call will unparent and return the icon object which was set
15608 * for this widget, previously, on success.
15610 * @see elm_slider_icon_set() for more details
15611 * @see elm_slider_icon_get()
15615 EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15618 * Retrieve the icon object set for a given slider widget.
15620 * @param obj The slider object.
15621 * @return The icon object's handle, if @p obj had one set, or @c NULL,
15622 * otherwise (and on errors).
15624 * On horizontal mode, icon is placed at left, and on vertical mode,
15627 * @see elm_slider_icon_set() for more details
15628 * @see elm_slider_icon_unset()
15632 EAPI Evas_Object *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15635 * Set the end object of the slider object.
15637 * @param obj The slider object.
15638 * @param end The end object.
15640 * On horizontal mode, end is placed at left, and on vertical mode,
15641 * placed at bottom.
15643 * @note Once the icon object is set, a previously set one will be deleted.
15644 * If you want to keep that old content object, use the
15645 * elm_slider_end_unset() function.
15647 * @warning If the object being set does not have minimum size hints set,
15648 * it won't get properly displayed.
15652 EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
15655 * Unset an end object set on a given slider widget.
15657 * @param obj The slider object.
15658 * @return The end object that was being used, if any was set, or
15659 * @c NULL, otherwise (and on errors).
15661 * On horizontal mode, end is placed at left, and on vertical mode,
15662 * placed at bottom.
15664 * This call will unparent and return the icon object which was set
15665 * for this widget, previously, on success.
15667 * @see elm_slider_end_set() for more details.
15668 * @see elm_slider_end_get()
15672 EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15675 * Retrieve the end object set for a given slider widget.
15677 * @param obj The slider object.
15678 * @return The end object's handle, if @p obj had one set, or @c NULL,
15679 * otherwise (and on errors).
15681 * On horizontal mode, icon is placed at right, and on vertical mode,
15682 * placed at bottom.
15684 * @see elm_slider_end_set() for more details.
15685 * @see elm_slider_end_unset()
15689 EAPI Evas_Object *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15692 * Set the (exact) length of the bar region of a given slider widget.
15694 * @param obj The slider object.
15695 * @param size The length of the slider's bar region.
15697 * This sets the minimum width (when in horizontal mode) or height
15698 * (when in vertical mode) of the actual bar area of the slider
15699 * @p obj. This in turn affects the object's minimum size. Use
15700 * this when you're not setting other size hints expanding on the
15701 * given direction (like weight and alignment hints) and you would
15702 * like it to have a specific size.
15704 * @note Icon, end, label, indicator and unit text around @p obj
15705 * will require their
15706 * own space, which will make @p obj to require more the @p size,
15709 * @see elm_slider_span_size_get()
15713 EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
15716 * Get the length set for the bar region of a given slider widget
15718 * @param obj The slider object.
15719 * @return The length of the slider's bar region.
15721 * If that size was not set previously, with
15722 * elm_slider_span_size_set(), this call will return @c 0.
15726 EAPI Evas_Coord elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15729 * Set the format string for the unit label.
15731 * @param obj The slider object.
15732 * @param format The format string for the unit display.
15734 * Unit label is displayed all the time, if set, after slider's bar.
15735 * In horizontal mode, at right and in vertical mode, at bottom.
15737 * If @c NULL, unit label won't be visible. If not it sets the format
15738 * string for the label text. To the label text is provided a floating point
15739 * value, so the label text can display up to 1 floating point value.
15740 * Note that this is optional.
15742 * Use a format string such as "%1.2f meters" for example, and it will
15743 * display values like: "3.14 meters" for a value equal to 3.14159.
15745 * Default is unit label disabled.
15747 * @see elm_slider_indicator_format_get()
15751 EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
15754 * Get the unit label format of the slider.
15756 * @param obj The slider object.
15757 * @return The unit label format string in UTF-8.
15759 * Unit label is displayed all the time, if set, after slider's bar.
15760 * In horizontal mode, at right and in vertical mode, at bottom.
15762 * @see elm_slider_unit_format_set() for more
15763 * information on how this works.
15767 EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15770 * Set the format string for the indicator label.
15772 * @param obj The slider object.
15773 * @param indicator The format string for the indicator display.
15775 * The slider may display its value somewhere else then unit label,
15776 * for example, above the slider knob that is dragged around. This function
15777 * sets the format string used for this.
15779 * If @c NULL, indicator label won't be visible. If not it sets the format
15780 * string for the label text. To the label text is provided a floating point
15781 * value, so the label text can display up to 1 floating point value.
15782 * Note that this is optional.
15784 * Use a format string such as "%1.2f meters" for example, and it will
15785 * display values like: "3.14 meters" for a value equal to 3.14159.
15787 * Default is indicator label disabled.
15789 * @see elm_slider_indicator_format_get()
15793 EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
15796 * Get the indicator label format of the slider.
15798 * @param obj The slider object.
15799 * @return The indicator label format string in UTF-8.
15801 * The slider may display its value somewhere else then unit label,
15802 * for example, above the slider knob that is dragged around. This function
15803 * gets the format string used for this.
15805 * @see elm_slider_indicator_format_set() for more
15806 * information on how this works.
15810 EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15813 * Set the format function pointer for the indicator label
15815 * @param obj The slider object.
15816 * @param func The indicator format function.
15817 * @param free_func The freeing function for the format string.
15819 * Set the callback function to format the indicator string.
15821 * @see elm_slider_indicator_format_set() for more info on how this works.
15825 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);
15828 * Set the format function pointer for the units label
15830 * @param obj The slider object.
15831 * @param func The units format function.
15832 * @param free_func The freeing function for the format string.
15834 * Set the callback function to format the indicator string.
15836 * @see elm_slider_units_format_set() for more info on how this works.
15840 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);
15843 * Set the orientation of a given slider widget.
15845 * @param obj The slider object.
15846 * @param horizontal Use @c EINA_TRUE to make @p obj to be
15847 * @b horizontal, @c EINA_FALSE to make it @b vertical.
15849 * Use this function to change how your slider is to be
15850 * disposed: vertically or horizontally.
15852 * By default it's displayed horizontally.
15854 * @see elm_slider_horizontal_get()
15858 EAPI void elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15861 * Retrieve the orientation of a given slider widget
15863 * @param obj The slider object.
15864 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
15865 * @c EINA_FALSE if it's @b vertical (and on errors).
15867 * @see elm_slider_horizontal_set() for more details.
15871 EAPI Eina_Bool elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15874 * Set the minimum and maximum values for the slider.
15876 * @param obj The slider object.
15877 * @param min The minimum value.
15878 * @param max The maximum value.
15880 * Define the allowed range of values to be selected by the user.
15882 * If actual value is less than @p min, it will be updated to @p min. If it
15883 * is bigger then @p max, will be updated to @p max. Actual value can be
15884 * get with elm_slider_value_get().
15886 * By default, min is equal to 0.0, and max is equal to 1.0.
15888 * @warning Maximum must be greater than minimum, otherwise behavior
15891 * @see elm_slider_min_max_get()
15895 EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
15898 * Get the minimum and maximum values of the slider.
15900 * @param obj The slider object.
15901 * @param min Pointer where to store the minimum value.
15902 * @param max Pointer where to store the maximum value.
15904 * @note If only one value is needed, the other pointer can be passed
15907 * @see elm_slider_min_max_set() for details.
15911 EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
15914 * Set the value the slider displays.
15916 * @param obj The slider object.
15917 * @param val The value to be displayed.
15919 * Value will be presented on the unit label following format specified with
15920 * elm_slider_unit_format_set() and on indicator with
15921 * elm_slider_indicator_format_set().
15923 * @warning The value must to be between min and max values. This values
15924 * are set by elm_slider_min_max_set().
15926 * @see elm_slider_value_get()
15927 * @see elm_slider_unit_format_set()
15928 * @see elm_slider_indicator_format_set()
15929 * @see elm_slider_min_max_set()
15933 EAPI void elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
15936 * Get the value displayed by the spinner.
15938 * @param obj The spinner object.
15939 * @return The value displayed.
15941 * @see elm_spinner_value_set() for details.
15945 EAPI double elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15948 * Invert a given slider widget's displaying values order
15950 * @param obj The slider object.
15951 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
15952 * @c EINA_FALSE to bring it back to default, non-inverted values.
15954 * A slider may be @b inverted, in which state it gets its
15955 * values inverted, with high vales being on the left or top and
15956 * low values on the right or bottom, as opposed to normally have
15957 * the low values on the former and high values on the latter,
15958 * respectively, for horizontal and vertical modes.
15960 * @see elm_slider_inverted_get()
15964 EAPI void elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
15967 * Get whether a given slider widget's displaying values are
15970 * @param obj The slider object.
15971 * @return @c EINA_TRUE, if @p obj has inverted values,
15972 * @c EINA_FALSE otherwise (and on errors).
15974 * @see elm_slider_inverted_set() for more details.
15978 EAPI Eina_Bool elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15981 * Set whether to enlarge slider indicator (augmented knob) or not.
15983 * @param obj The slider object.
15984 * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
15985 * let the knob always at default size.
15987 * By default, indicator will be bigger while dragged by the user.
15989 * @warning It won't display values set with
15990 * elm_slider_indicator_format_set() if you disable indicator.
15994 EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
15997 * Get whether a given slider widget's enlarging indicator or not.
15999 * @param obj The slider object.
16000 * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
16001 * @c EINA_FALSE otherwise (and on errors).
16003 * @see elm_slider_indicator_show_set() for details.
16007 EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16014 * @addtogroup Actionslider Actionslider
16016 * @image html img/widget/actionslider/preview-00.png
16017 * @image latex img/widget/actionslider/preview-00.eps
16019 * A actionslider is a switcher for 2 or 3 labels with customizable magnet
16020 * properties. The indicator is the element the user drags to choose a label.
16021 * When the position is set with magnet, when released the indicator will be
16022 * moved to it if it's nearest the magnetized position.
16024 * @note By default all positions are set as enabled.
16026 * Signals that you can add callbacks for are:
16028 * "selected" - when user selects an enabled position (the label is passed
16031 * "pos_changed" - when the indicator reaches any of the positions("left",
16032 * "right" or "center").
16034 * See an example of actionslider usage @ref actionslider_example_page "here"
16037 typedef enum _Elm_Actionslider_Pos
16039 ELM_ACTIONSLIDER_NONE = 0,
16040 ELM_ACTIONSLIDER_LEFT = 1 << 0,
16041 ELM_ACTIONSLIDER_CENTER = 1 << 1,
16042 ELM_ACTIONSLIDER_RIGHT = 1 << 2,
16043 ELM_ACTIONSLIDER_ALL = (1 << 3) -1
16044 } Elm_Actionslider_Pos;
16047 * Add a new actionslider to the parent.
16049 * @param parent The parent object
16050 * @return The new actionslider object or NULL if it cannot be created
16052 EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16054 * Set actionslider labels.
16056 * @param obj The actionslider object
16057 * @param left_label The label to be set on the left.
16058 * @param center_label The label to be set on the center.
16059 * @param right_label The label to be set on the right.
16060 * @deprecated use elm_object_text_set() instead.
16062 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);
16064 * Get actionslider labels.
16066 * @param obj The actionslider object
16067 * @param left_label A char** to place the left_label of @p obj into.
16068 * @param center_label A char** to place the center_label of @p obj into.
16069 * @param right_label A char** to place the right_label of @p obj into.
16070 * @deprecated use elm_object_text_set() instead.
16072 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);
16074 * Get actionslider selected label.
16076 * @param obj The actionslider object
16077 * @return The selected label
16079 EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16081 * Set actionslider indicator position.
16083 * @param obj The actionslider object.
16084 * @param pos The position of the indicator.
16086 EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16088 * Get actionslider indicator position.
16090 * @param obj The actionslider object.
16091 * @return The position of the indicator.
16093 EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16095 * Set actionslider magnet position. To make multiple positions magnets @c or
16096 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
16098 * @param obj The actionslider object.
16099 * @param pos Bit mask indicating the magnet positions.
16101 EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16103 * Get actionslider magnet position.
16105 * @param obj The actionslider object.
16106 * @return The positions with magnet property.
16108 EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16110 * Set actionslider enabled position. To set multiple positions as enabled @c or
16111 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
16113 * @note All the positions are enabled by default.
16115 * @param obj The actionslider object.
16116 * @param pos Bit mask indicating the enabled positions.
16118 EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16120 * Get actionslider enabled position.
16122 * @param obj The actionslider object.
16123 * @return The enabled positions.
16125 EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16127 * Set the label used on the indicator.
16129 * @param obj The actionslider object
16130 * @param label The label to be set on the indicator.
16131 * @deprecated use elm_object_text_set() instead.
16133 EINA_DEPRECATED EAPI void elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16135 * Get the label used on the indicator object.
16137 * @param obj The actionslider object
16138 * @return The indicator label
16139 * @deprecated use elm_object_text_get() instead.
16141 EINA_DEPRECATED EAPI const char *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
16147 * @defgroup Genlist Genlist
16149 * @image html img/widget/genlist/preview-00.png
16150 * @image latex img/widget/genlist/preview-00.eps
16151 * @image html img/genlist.png
16152 * @image latex img/genlist.eps
16154 * This widget aims to have more expansive list than the simple list in
16155 * Elementary that could have more flexible items and allow many more entries
16156 * while still being fast and low on memory usage. At the same time it was
16157 * also made to be able to do tree structures. But the price to pay is more
16158 * complexity when it comes to usage. If all you want is a simple list with
16159 * icons and a single label, use the normal @ref List object.
16161 * Genlist has a fairly large API, mostly because it's relatively complex,
16162 * trying to be both expansive, powerful and efficient. First we will begin
16163 * an overview on the theory behind genlist.
16165 * @section Genlist_Item_Class Genlist item classes - creating items
16167 * In order to have the ability to add and delete items on the fly, genlist
16168 * implements a class (callback) system where the application provides a
16169 * structure with information about that type of item (genlist may contain
16170 * multiple different items with different classes, states and styles).
16171 * Genlist will call the functions in this struct (methods) when an item is
16172 * "realized" (i.e., created dynamically, while the user is scrolling the
16173 * grid). All objects will simply be deleted when no longer needed with
16174 * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
16175 * following members:
16176 * - @c item_style - This is a constant string and simply defines the name
16177 * of the item style. It @b must be specified and the default should be @c
16179 * - @c mode_item_style - This is a constant string and simply defines the
16180 * name of the style that will be used for mode animations. It can be left
16181 * as @c NULL if you don't plan to use Genlist mode. See
16182 * elm_genlist_item_mode_set() for more info.
16184 * - @c func - A struct with pointers to functions that will be called when
16185 * an item is going to be actually created. All of them receive a @c data
16186 * parameter that will point to the same data passed to
16187 * elm_genlist_item_append() and related item creation functions, and a @c
16188 * obj parameter that points to the genlist object itself.
16190 * The function pointers inside @c func are @c label_get, @c icon_get, @c
16191 * state_get and @c del. The 3 first functions also receive a @c part
16192 * parameter described below. A brief description of these functions follows:
16194 * - @c label_get - The @c part parameter is the name string of one of the
16195 * existing text parts in the Edje group implementing the item's theme.
16196 * This function @b must return a strdup'()ed string, as the caller will
16197 * free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
16198 * - @c icon_get - The @c part parameter is the name string of one of the
16199 * existing (icon) swallow parts in the Edje group implementing the item's
16200 * theme. It must return @c NULL, when no icon is desired, or a valid
16201 * object handle, otherwise. The object will be deleted by the genlist on
16202 * its deletion or when the item is "unrealized". See
16203 * #Elm_Genlist_Item_Icon_Get_Cb.
16204 * - @c func.state_get - The @c part parameter is the name string of one of
16205 * the state parts in the Edje group implementing the item's theme. Return
16206 * @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
16207 * emit a signal to its theming Edje object with @c "elm,state,XXX,active"
16208 * and @c "elm" as "emission" and "source" arguments, respectively, when
16209 * the state is true (the default is false), where @c XXX is the name of
16210 * the (state) part. See #Elm_Genlist_Item_State_Get_Cb.
16211 * - @c func.del - This is intended for use when genlist items are deleted,
16212 * so any data attached to the item (e.g. its data parameter on creation)
16213 * can be deleted. See #Elm_Genlist_Item_Del_Cb.
16215 * available item styles:
16217 * - default_style - The text part is a textblock
16219 * @image html img/widget/genlist/preview-04.png
16220 * @image latex img/widget/genlist/preview-04.eps
16224 * @image html img/widget/genlist/preview-01.png
16225 * @image latex img/widget/genlist/preview-01.eps
16227 * - icon_top_text_bottom
16229 * @image html img/widget/genlist/preview-02.png
16230 * @image latex img/widget/genlist/preview-02.eps
16234 * @image html img/widget/genlist/preview-03.png
16235 * @image latex img/widget/genlist/preview-03.eps
16237 * @section Genlist_Items Structure of items
16239 * An item in a genlist can have 0 or more text labels (they can be regular
16240 * text or textblock Evas objects - that's up to the style to determine), 0
16241 * or more icons (which are simply objects swallowed into the genlist item's
16242 * theming Edje object) and 0 or more <b>boolean states</b>, which have the
16243 * behavior left to the user to define. The Edje part names for each of
16244 * these properties will be looked up, in the theme file for the genlist,
16245 * under the Edje (string) data items named @c "labels", @c "icons" and @c
16246 * "states", respectively. For each of those properties, if more than one
16247 * part is provided, they must have names listed separated by spaces in the
16248 * data fields. For the default genlist item theme, we have @b one label
16249 * part (@c "elm.text"), @b two icon parts (@c "elm.swalllow.icon" and @c
16250 * "elm.swallow.end") and @b no state parts.
16252 * A genlist item may be at one of several styles. Elementary provides one
16253 * by default - "default", but this can be extended by system or application
16254 * custom themes/overlays/extensions (see @ref Theme "themes" for more
16257 * @section Genlist_Manipulation Editing and Navigating
16259 * Items can be added by several calls. All of them return a @ref
16260 * Elm_Genlist_Item handle that is an internal member inside the genlist.
16261 * They all take a data parameter that is meant to be used for a handle to
16262 * the applications internal data (eg the struct with the original item
16263 * data). The parent parameter is the parent genlist item this belongs to if
16264 * it is a tree or an indexed group, and NULL if there is no parent. The
16265 * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
16266 * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
16267 * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
16268 * that is able to expand and have child items. If ELM_GENLIST_ITEM_GROUP
16269 * is set then this item is group index item that is displayed at the top
16270 * until the next group comes. The func parameter is a convenience callback
16271 * that is called when the item is selected and the data parameter will be
16272 * the func_data parameter, obj be the genlist object and event_info will be
16273 * the genlist item.
16275 * elm_genlist_item_append() adds an item to the end of the list, or if
16276 * there is a parent, to the end of all the child items of the parent.
16277 * elm_genlist_item_prepend() is the same but adds to the beginning of
16278 * the list or children list. elm_genlist_item_insert_before() inserts at
16279 * item before another item and elm_genlist_item_insert_after() inserts after
16280 * the indicated item.
16282 * The application can clear the list with elm_genlist_clear() which deletes
16283 * all the items in the list and elm_genlist_item_del() will delete a specific
16284 * item. elm_genlist_item_subitems_clear() will clear all items that are
16285 * children of the indicated parent item.
16287 * To help inspect list items you can jump to the item at the top of the list
16288 * with elm_genlist_first_item_get() which will return the item pointer, and
16289 * similarly elm_genlist_last_item_get() gets the item at the end of the list.
16290 * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
16291 * and previous items respectively relative to the indicated item. Using
16292 * these calls you can walk the entire item list/tree. Note that as a tree
16293 * the items are flattened in the list, so elm_genlist_item_parent_get() will
16294 * let you know which item is the parent (and thus know how to skip them if
16297 * @section Genlist_Muti_Selection Multi-selection
16299 * If the application wants multiple items to be able to be selected,
16300 * elm_genlist_multi_select_set() can enable this. If the list is
16301 * single-selection only (the default), then elm_genlist_selected_item_get()
16302 * will return the selected item, if any, or NULL I none is selected. If the
16303 * list is multi-select then elm_genlist_selected_items_get() will return a
16304 * list (that is only valid as long as no items are modified (added, deleted,
16305 * selected or unselected)).
16307 * @section Genlist_Usage_Hints Usage hints
16309 * There are also convenience functions. elm_genlist_item_genlist_get() will
16310 * return the genlist object the item belongs to. elm_genlist_item_show()
16311 * will make the scroller scroll to show that specific item so its visible.
16312 * elm_genlist_item_data_get() returns the data pointer set by the item
16313 * creation functions.
16315 * If an item changes (state of boolean changes, label or icons change),
16316 * then use elm_genlist_item_update() to have genlist update the item with
16317 * the new state. Genlist will re-realize the item thus call the functions
16318 * in the _Elm_Genlist_Item_Class for that item.
16320 * To programmatically (un)select an item use elm_genlist_item_selected_set().
16321 * To get its selected state use elm_genlist_item_selected_get(). Similarly
16322 * to expand/contract an item and get its expanded state, use
16323 * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
16324 * again to make an item disabled (unable to be selected and appear
16325 * differently) use elm_genlist_item_disabled_set() to set this and
16326 * elm_genlist_item_disabled_get() to get the disabled state.
16328 * In general to indicate how the genlist should expand items horizontally to
16329 * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
16330 * ELM_LIST_LIMIT and ELM_LIST_SCROLL . The default is ELM_LIST_SCROLL. This
16331 * mode means that if items are too wide to fit, the scroller will scroll
16332 * horizontally. Otherwise items are expanded to fill the width of the
16333 * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
16334 * to the viewport width and limited to that size. This can be combined with
16335 * a different style that uses edjes' ellipsis feature (cutting text off like
16338 * Items will only call their selection func and callback when first becoming
16339 * selected. Any further clicks will do nothing, unless you enable always
16340 * select with elm_genlist_always_select_mode_set(). This means even if
16341 * selected, every click will make the selected callbacks be called.
16342 * elm_genlist_no_select_mode_set() will turn off the ability to select
16343 * items entirely and they will neither appear selected nor call selected
16344 * callback functions.
16346 * Remember that you can create new styles and add your own theme augmentation
16347 * per application with elm_theme_extension_add(). If you absolutely must
16348 * have a specific style that overrides any theme the user or system sets up
16349 * you can use elm_theme_overlay_add() to add such a file.
16351 * @section Genlist_Implementation Implementation
16353 * Evas tracks every object you create. Every time it processes an event
16354 * (mouse move, down, up etc.) it needs to walk through objects and find out
16355 * what event that affects. Even worse every time it renders display updates,
16356 * in order to just calculate what to re-draw, it needs to walk through many
16357 * many many objects. Thus, the more objects you keep active, the more
16358 * overhead Evas has in just doing its work. It is advisable to keep your
16359 * active objects to the minimum working set you need. Also remember that
16360 * object creation and deletion carries an overhead, so there is a
16361 * middle-ground, which is not easily determined. But don't keep massive lists
16362 * of objects you can't see or use. Genlist does this with list objects. It
16363 * creates and destroys them dynamically as you scroll around. It groups them
16364 * into blocks so it can determine the visibility etc. of a whole block at
16365 * once as opposed to having to walk the whole list. This 2-level list allows
16366 * for very large numbers of items to be in the list (tests have used up to
16367 * 2,000,000 items). Also genlist employs a queue for adding items. As items
16368 * may be different sizes, every item added needs to be calculated as to its
16369 * size and thus this presents a lot of overhead on populating the list, this
16370 * genlist employs a queue. Any item added is queued and spooled off over
16371 * time, actually appearing some time later, so if your list has many members
16372 * you may find it takes a while for them to all appear, with your process
16373 * consuming a lot of CPU while it is busy spooling.
16375 * Genlist also implements a tree structure, but it does so with callbacks to
16376 * the application, with the application filling in tree structures when
16377 * requested (allowing for efficient building of a very deep tree that could
16378 * even be used for file-management). See the above smart signal callbacks for
16381 * @section Genlist_Smart_Events Genlist smart events
16383 * Signals that you can add callbacks for are:
16384 * - @c "activated" - The user has double-clicked or pressed
16385 * (enter|return|spacebar) on an item. The @c event_info parameter is the
16386 * item that was activated.
16387 * - @c "clicked,double" - The user has double-clicked an item. The @c
16388 * event_info parameter is the item that was double-clicked.
16389 * - @c "selected" - This is called when a user has made an item selected.
16390 * The event_info parameter is the genlist item that was selected.
16391 * - @c "unselected" - This is called when a user has made an item
16392 * unselected. The event_info parameter is the genlist item that was
16394 * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
16395 * called and the item is now meant to be expanded. The event_info
16396 * parameter is the genlist item that was indicated to expand. It is the
16397 * job of this callback to then fill in the child items.
16398 * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
16399 * called and the item is now meant to be contracted. The event_info
16400 * parameter is the genlist item that was indicated to contract. It is the
16401 * job of this callback to then delete the child items.
16402 * - @c "expand,request" - This is called when a user has indicated they want
16403 * to expand a tree branch item. The callback should decide if the item can
16404 * expand (has any children) and then call elm_genlist_item_expanded_set()
16405 * appropriately to set the state. The event_info parameter is the genlist
16406 * item that was indicated to expand.
16407 * - @c "contract,request" - This is called when a user has indicated they
16408 * want to contract a tree branch item. The callback should decide if the
16409 * item can contract (has any children) and then call
16410 * elm_genlist_item_expanded_set() appropriately to set the state. The
16411 * event_info parameter is the genlist item that was indicated to contract.
16412 * - @c "realized" - This is called when the item in the list is created as a
16413 * real evas object. event_info parameter is the genlist item that was
16414 * created. The object may be deleted at any time, so it is up to the
16415 * caller to not use the object pointer from elm_genlist_item_object_get()
16416 * in a way where it may point to freed objects.
16417 * - @c "unrealized" - This is called just before an item is unrealized.
16418 * After this call icon objects provided will be deleted and the item
16419 * object itself delete or be put into a floating cache.
16420 * - @c "drag,start,up" - This is called when the item in the list has been
16421 * dragged (not scrolled) up.
16422 * - @c "drag,start,down" - This is called when the item in the list has been
16423 * dragged (not scrolled) down.
16424 * - @c "drag,start,left" - This is called when the item in the list has been
16425 * dragged (not scrolled) left.
16426 * - @c "drag,start,right" - This is called when the item in the list has
16427 * been dragged (not scrolled) right.
16428 * - @c "drag,stop" - This is called when the item in the list has stopped
16430 * - @c "drag" - This is called when the item in the list is being dragged.
16431 * - @c "longpressed" - This is called when the item is pressed for a certain
16432 * amount of time. By default it's 1 second.
16433 * - @c "scroll,edge,top" - This is called when the genlist is scrolled until
16435 * - @c "scroll,edge,bottom" - This is called when the genlist is scrolled
16436 * until the bottom edge.
16437 * - @c "scroll,edge,left" - This is called when the genlist is scrolled
16438 * until the left edge.
16439 * - @c "scroll,edge,right" - This is called when the genlist is scrolled
16440 * until the right edge.
16441 * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
16443 * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
16445 * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
16447 * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
16449 * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
16450 * pinched out. "- @c multi,pinch,in" - This is called when the genlist is
16451 * multi-touch pinched in.
16452 * - @c "swipe" - This is called when the genlist is swiped.
16454 * @section Genlist_Examples Examples
16456 * Here is a list of examples that use the genlist, trying to show some of
16457 * its capabilities:
16458 * - @ref genlist_example_01
16459 * - @ref genlist_example_02
16460 * - @ref genlist_example_03
16461 * - @ref genlist_example_04
16462 * - @ref genlist_example_05
16466 * @addtogroup Genlist
16471 * @enum _Elm_Genlist_Item_Flags
16472 * @typedef Elm_Genlist_Item_Flags
16474 * Defines if the item is of any special type (has subitems or it's the
16475 * index of a group), or is just a simple item.
16479 typedef enum _Elm_Genlist_Item_Flags
16481 ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
16482 ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
16483 ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
16484 } Elm_Genlist_Item_Flags;
16485 typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class; /**< Genlist item class definition structs */
16486 typedef struct _Elm_Genlist_Item Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
16487 typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
16488 typedef char *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for genlist item classes. */
16489 typedef Evas_Object *(*Elm_Genlist_Item_Icon_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for genlist item classes. */
16490 typedef Eina_Bool (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for genlist item classes. */
16491 typedef void (*Elm_Genlist_Item_Del_Cb) (void *data, Evas_Object *obj); /**< Deletion class function for genlist item classes. */
16492 typedef void (*GenlistItemMovedFunc) (Evas_Object *obj, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after); /** TODO: remove this by SeoZ **/
16494 typedef char *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Label_Get_Cb instead. */
16495 typedef Evas_Object *(*GenlistItemIconGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Icon_Get_Cb instead. */
16496 typedef Eina_Bool (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_State_Get_Cb instead. */
16497 typedef void (*GenlistItemDelFunc) (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Del_Cb instead. */
16500 * @struct _Elm_Genlist_Item_Class
16502 * Genlist item class definition structs.
16504 * This struct contains the style and fetching functions that will define the
16505 * contents of each item.
16507 * @see @ref Genlist_Item_Class
16509 struct _Elm_Genlist_Item_Class
16511 const char *item_style; /**< style of this class. */
16514 Elm_Genlist_Item_Label_Get_Cb label_get; /**< Label fetching class function for genlist item classes.*/
16515 Elm_Genlist_Item_Icon_Get_Cb icon_get; /**< Icon fetching class function for genlist item classes. */
16516 Elm_Genlist_Item_State_Get_Cb state_get; /**< State fetching class function for genlist item classes. */
16517 Elm_Genlist_Item_Del_Cb del; /**< Deletion class function for genlist item classes. */
16518 GenlistItemMovedFunc moved; // TODO: do not use this. change this to smart callback.
16520 const char *mode_item_style;
16524 * Add a new genlist widget to the given parent Elementary
16525 * (container) object
16527 * @param parent The parent object
16528 * @return a new genlist widget handle or @c NULL, on errors
16530 * This function inserts a new genlist widget on the canvas.
16532 * @see elm_genlist_item_append()
16533 * @see elm_genlist_item_del()
16534 * @see elm_genlist_clear()
16538 EAPI Evas_Object *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16540 * Remove all items from a given genlist widget.
16542 * @param obj The genlist object
16544 * This removes (and deletes) all items in @p obj, leaving it empty.
16546 * @see elm_genlist_item_del(), to remove just one item.
16550 EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16552 * Enable or disable multi-selection in the genlist
16554 * @param obj The genlist object
16555 * @param multi Multi-select enable/disable. Default is disabled.
16557 * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
16558 * the list. This allows more than 1 item to be selected. To retrieve the list
16559 * of selected items, use elm_genlist_selected_items_get().
16561 * @see elm_genlist_selected_items_get()
16562 * @see elm_genlist_multi_select_get()
16566 EAPI void elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16568 * Gets if multi-selection in genlist is enabled or disabled.
16570 * @param obj The genlist object
16571 * @return Multi-select enabled/disabled
16572 * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
16574 * @see elm_genlist_multi_select_set()
16578 EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16580 * This sets the horizontal stretching mode.
16582 * @param obj The genlist object
16583 * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
16585 * This sets the mode used for sizing items horizontally. Valid modes
16586 * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
16587 * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
16588 * the scroller will scroll horizontally. Otherwise items are expanded
16589 * to fill the width of the viewport of the scroller. If it is
16590 * ELM_LIST_LIMIT, items will be expanded to the viewport width and
16591 * limited to that size.
16593 * @see elm_genlist_horizontal_get()
16597 EAPI void elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16598 EINA_DEPRECATED EAPI void elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16600 * Gets the horizontal stretching mode.
16602 * @param obj The genlist object
16603 * @return The mode to use
16604 * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
16606 * @see elm_genlist_horizontal_set()
16610 EAPI Elm_List_Mode elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16611 EINA_DEPRECATED EAPI Elm_List_Mode elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16613 * Set the always select mode.
16615 * @param obj The genlist object
16616 * @param always_select The always select mode (@c EINA_TRUE = on, @c
16617 * EINA_FALSE = off). Default is @c EINA_FALSE.
16619 * Items will only call their selection func and callback when first
16620 * becoming selected. Any further clicks will do nothing, unless you
16621 * enable always select with elm_genlist_always_select_mode_set().
16622 * This means that, even if selected, every click will make the selected
16623 * callbacks be called.
16625 * @see elm_genlist_always_select_mode_get()
16629 EAPI void elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16631 * Get the always select mode.
16633 * @param obj The genlist object
16634 * @return The always select mode
16635 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16637 * @see elm_genlist_always_select_mode_set()
16641 EAPI Eina_Bool elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16643 * Enable/disable the no select mode.
16645 * @param obj The genlist object
16646 * @param no_select The no select mode
16647 * (EINA_TRUE = on, EINA_FALSE = off)
16649 * This will turn off the ability to select items entirely and they
16650 * will neither appear selected nor call selected callback functions.
16652 * @see elm_genlist_no_select_mode_get()
16656 EAPI void elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
16658 * Gets whether the no select mode is enabled.
16660 * @param obj The genlist object
16661 * @return The no select mode
16662 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16664 * @see elm_genlist_no_select_mode_set()
16668 EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16670 * Enable/disable compress mode.
16672 * @param obj The genlist object
16673 * @param compress The compress mode
16674 * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
16676 * This will enable the compress mode where items are "compressed"
16677 * horizontally to fit the genlist scrollable viewport width. This is
16678 * special for genlist. Do not rely on
16679 * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
16680 * work as genlist needs to handle it specially.
16682 * @see elm_genlist_compress_mode_get()
16686 EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
16688 * Get whether the compress mode is enabled.
16690 * @param obj The genlist object
16691 * @return The compress mode
16692 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16694 * @see elm_genlist_compress_mode_set()
16698 EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16700 * Enable/disable height-for-width mode.
16702 * @param obj The genlist object
16703 * @param setting The height-for-width mode (@c EINA_TRUE = on,
16704 * @c EINA_FALSE = off). Default is @c EINA_FALSE.
16706 * With height-for-width mode the item width will be fixed (restricted
16707 * to a minimum of) to the list width when calculating its size in
16708 * order to allow the height to be calculated based on it. This allows,
16709 * for instance, text block to wrap lines if the Edje part is
16710 * configured with "text.min: 0 1".
16712 * @note This mode will make list resize slower as it will have to
16713 * recalculate every item height again whenever the list width
16716 * @note When height-for-width mode is enabled, it also enables
16717 * compress mode (see elm_genlist_compress_mode_set()) and
16718 * disables homogeneous (see elm_genlist_homogeneous_set()).
16722 EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
16724 * Get whether the height-for-width mode is enabled.
16726 * @param obj The genlist object
16727 * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
16732 EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16734 * Enable/disable horizontal and vertical bouncing effect.
16736 * @param obj The genlist object
16737 * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
16738 * EINA_FALSE = off). Default is @c EINA_FALSE.
16739 * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
16740 * EINA_FALSE = off). Default is @c EINA_TRUE.
16742 * This will enable or disable the scroller bouncing effect for the
16743 * genlist. See elm_scroller_bounce_set() for details.
16745 * @see elm_scroller_bounce_set()
16746 * @see elm_genlist_bounce_get()
16750 EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16752 * Get whether the horizontal and vertical bouncing effect is enabled.
16754 * @param obj The genlist object
16755 * @param h_bounce Pointer to a bool to receive if the bounce horizontally
16757 * @param v_bounce Pointer to a bool to receive if the bounce vertically
16760 * @see elm_genlist_bounce_set()
16764 EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16766 * Enable/disable homogenous mode.
16768 * @param obj The genlist object
16769 * @param homogeneous Assume the items within the genlist are of the
16770 * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
16773 * This will enable the homogeneous mode where items are of the same
16774 * height and width so that genlist may do the lazy-loading at its
16775 * maximum (which increases the performance for scrolling the list). This
16776 * implies 'compressed' mode.
16778 * @see elm_genlist_compress_mode_set()
16779 * @see elm_genlist_homogeneous_get()
16783 EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
16785 * Get whether the homogenous mode is enabled.
16787 * @param obj The genlist object
16788 * @return Assume the items within the genlist are of the same height
16789 * and width (EINA_TRUE = on, EINA_FALSE = off)
16791 * @see elm_genlist_homogeneous_set()
16795 EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16797 * Set the maximum number of items within an item block
16799 * @param obj The genlist object
16800 * @param n Maximum number of items within an item block. Default is 32.
16802 * This will configure the block count to tune to the target with
16803 * particular performance matrix.
16805 * A block of objects will be used to reduce the number of operations due to
16806 * many objects in the screen. It can determine the visibility, or if the
16807 * object has changed, it theme needs to be updated, etc. doing this kind of
16808 * calculation to the entire block, instead of per object.
16810 * The default value for the block count is enough for most lists, so unless
16811 * you know you will have a lot of objects visible in the screen at the same
16812 * time, don't try to change this.
16814 * @see elm_genlist_block_count_get()
16815 * @see @ref Genlist_Implementation
16819 EAPI void elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
16821 * Get the maximum number of items within an item block
16823 * @param obj The genlist object
16824 * @return Maximum number of items within an item block
16826 * @see elm_genlist_block_count_set()
16830 EAPI int elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16832 * Set the timeout in seconds for the longpress event.
16834 * @param obj The genlist object
16835 * @param timeout timeout in seconds. Default is 1.
16837 * This option will change how long it takes to send an event "longpressed"
16838 * after the mouse down signal is sent to the list. If this event occurs, no
16839 * "clicked" event will be sent.
16841 * @see elm_genlist_longpress_timeout_set()
16845 EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
16847 * Get the timeout in seconds for the longpress event.
16849 * @param obj The genlist object
16850 * @return timeout in seconds
16852 * @see elm_genlist_longpress_timeout_get()
16856 EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16858 * Append a new item in a given genlist widget.
16860 * @param obj The genlist object
16861 * @param itc The item class for the item
16862 * @param data The item data
16863 * @param parent The parent item, or NULL if none
16864 * @param flags Item flags
16865 * @param func Convenience function called when the item is selected
16866 * @param func_data Data passed to @p func above.
16867 * @return A handle to the item added or @c NULL if not possible
16869 * This adds the given item to the end of the list or the end of
16870 * the children list if the @p parent is given.
16872 * @see elm_genlist_item_prepend()
16873 * @see elm_genlist_item_insert_before()
16874 * @see elm_genlist_item_insert_after()
16875 * @see elm_genlist_item_del()
16879 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);
16881 * Prepend a new item in a given genlist widget.
16883 * @param obj The genlist object
16884 * @param itc The item class for the item
16885 * @param data The item data
16886 * @param parent The parent item, or NULL if none
16887 * @param flags Item flags
16888 * @param func Convenience function called when the item is selected
16889 * @param func_data Data passed to @p func above.
16890 * @return A handle to the item added or NULL if not possible
16892 * This adds an item to the beginning of the list or beginning of the
16893 * children of the parent if given.
16895 * @see elm_genlist_item_append()
16896 * @see elm_genlist_item_insert_before()
16897 * @see elm_genlist_item_insert_after()
16898 * @see elm_genlist_item_del()
16902 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);
16904 * Insert an item before another in a genlist widget
16906 * @param obj The genlist object
16907 * @param itc The item class for the item
16908 * @param data The item data
16909 * @param before The item to place this new one before.
16910 * @param flags Item flags
16911 * @param func Convenience function called when the item is selected
16912 * @param func_data Data passed to @p func above.
16913 * @return A handle to the item added or @c NULL if not possible
16915 * This inserts an item before another in the list. It will be in the
16916 * same tree level or group as the item it is inserted before.
16918 * @see elm_genlist_item_append()
16919 * @see elm_genlist_item_prepend()
16920 * @see elm_genlist_item_insert_after()
16921 * @see elm_genlist_item_del()
16925 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);
16927 * Insert an item after another in a genlist widget
16929 * @param obj The genlist object
16930 * @param itc The item class for the item
16931 * @param data The item data
16932 * @param after The item to place this new one after.
16933 * @param flags Item flags
16934 * @param func Convenience function called when the item is selected
16935 * @param func_data Data passed to @p func above.
16936 * @return A handle to the item added or @c NULL if not possible
16938 * This inserts an item after another in the list. It will be in the
16939 * same tree level or group as the item it is inserted after.
16941 * @see elm_genlist_item_append()
16942 * @see elm_genlist_item_prepend()
16943 * @see elm_genlist_item_insert_before()
16944 * @see elm_genlist_item_del()
16948 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);
16950 * Insert a new item into the sorted genlist object
16952 * @param obj The genlist object
16953 * @param itc The item class for the item
16954 * @param data The item data
16955 * @param parent The parent item, or NULL if none
16956 * @param flags Item flags
16957 * @param comp The function called for the sort
16958 * @param func Convenience function called when item selected
16959 * @param func_data Data passed to @p func above.
16960 * @return A handle to the item added or NULL if not possible
16964 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);
16965 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);
16966 /* operations to retrieve existing items */
16968 * Get the selectd item in the genlist.
16970 * @param obj The genlist object
16971 * @return The selected item, or NULL if none is selected.
16973 * This gets the selected item in the list (if multi-selection is enabled, only
16974 * the item that was first selected in the list is returned - which is not very
16975 * useful, so see elm_genlist_selected_items_get() for when multi-selection is
16978 * If no item is selected, NULL is returned.
16980 * @see elm_genlist_selected_items_get()
16984 EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16986 * Get a list of selected items in the genlist.
16988 * @param obj The genlist object
16989 * @return The list of selected items, or NULL if none are selected.
16991 * It returns a list of the selected items. This list pointer is only valid so
16992 * long as the selection doesn't change (no items are selected or unselected, or
16993 * unselected implicitly by deletion). The list contains Elm_Genlist_Item
16994 * pointers. The order of the items in this list is the order which they were
16995 * selected, i.e. the first item in this list is the first item that was
16996 * selected, and so on.
16998 * @note If not in multi-select mode, consider using function
16999 * elm_genlist_selected_item_get() instead.
17001 * @see elm_genlist_multi_select_set()
17002 * @see elm_genlist_selected_item_get()
17006 EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17008 * Get a list of realized items in genlist
17010 * @param obj The genlist object
17011 * @return The list of realized items, nor NULL if none are realized.
17013 * This returns a list of the realized items in the genlist. The list
17014 * contains Elm_Genlist_Item pointers. The list must be freed by the
17015 * caller when done with eina_list_free(). The item pointers in the
17016 * list are only valid so long as those items are not deleted or the
17017 * genlist is not deleted.
17019 * @see elm_genlist_realized_items_update()
17023 EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17025 * Get the item that is at the x, y canvas coords.
17027 * @param obj The gelinst object.
17028 * @param x The input x coordinate
17029 * @param y The input y coordinate
17030 * @param posret The position relative to the item returned here
17031 * @return The item at the coordinates or NULL if none
17033 * This returns the item at the given coordinates (which are canvas
17034 * relative, not object-relative). If an item is at that coordinate,
17035 * that item handle is returned, and if @p posret is not NULL, the
17036 * integer pointed to is set to a value of -1, 0 or 1, depending if
17037 * the coordinate is on the upper portion of that item (-1), on the
17038 * middle section (0) or on the lower part (1). If NULL is returned as
17039 * an item (no item found there), then posret may indicate -1 or 1
17040 * based if the coordinate is above or below all items respectively in
17045 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);
17047 * Get the first item in the genlist
17049 * This returns the first item in the list.
17051 * @param obj The genlist object
17052 * @return The first item, or NULL if none
17056 EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17058 * Get the last item in the genlist
17060 * This returns the last item in the list.
17062 * @return The last item, or NULL if none
17066 EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17068 * Set the scrollbar policy
17070 * @param obj The genlist object
17071 * @param policy_h Horizontal scrollbar policy.
17072 * @param policy_v Vertical scrollbar policy.
17074 * This sets the scrollbar visibility policy for the given genlist
17075 * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
17076 * made visible if it is needed, and otherwise kept hidden.
17077 * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
17078 * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
17079 * respectively for the horizontal and vertical scrollbars. Default is
17080 * #ELM_SMART_SCROLLER_POLICY_AUTO
17082 * @see elm_genlist_scroller_policy_get()
17086 EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17088 * Get the scrollbar policy
17090 * @param obj The genlist object
17091 * @param policy_h Pointer to store the horizontal scrollbar policy.
17092 * @param policy_v Pointer to store the vertical scrollbar policy.
17094 * @see elm_genlist_scroller_policy_set()
17098 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);
17100 * Get the @b next item in a genlist widget's internal list of items,
17101 * given a handle to one of those items.
17103 * @param item The genlist item to fetch next from
17104 * @return The item after @p item, or @c NULL if there's none (and
17107 * This returns the item placed after the @p item, on the container
17110 * @see elm_genlist_item_prev_get()
17114 EAPI Elm_Genlist_Item *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17116 * Get the @b previous item in a genlist widget's internal list of items,
17117 * given a handle to one of those items.
17119 * @param item The genlist item to fetch previous from
17120 * @return The item before @p item, or @c NULL if there's none (and
17123 * This returns the item placed before the @p item, on the container
17126 * @see elm_genlist_item_next_get()
17130 EAPI Elm_Genlist_Item *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17132 * Get the genlist object's handle which contains a given genlist
17135 * @param item The item to fetch the container from
17136 * @return The genlist (parent) object
17138 * This returns the genlist object itself that an item belongs to.
17142 EAPI Evas_Object *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17144 * Get the parent item of the given item
17146 * @param it The item
17147 * @return The parent of the item or @c NULL if it has no parent.
17149 * This returns the item that was specified as parent of the item @p it on
17150 * elm_genlist_item_append() and insertion related functions.
17154 EAPI Elm_Genlist_Item *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17156 * Remove all sub-items (children) of the given item
17158 * @param it The item
17160 * This removes all items that are children (and their descendants) of the
17161 * given item @p it.
17163 * @see elm_genlist_clear()
17164 * @see elm_genlist_item_del()
17168 EAPI void elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17170 * Set whether a given genlist item is selected or not
17172 * @param it The item
17173 * @param selected Use @c EINA_TRUE, to make it selected, @c
17174 * EINA_FALSE to make it unselected
17176 * This sets the selected state of an item. If multi selection is
17177 * not enabled on the containing genlist and @p selected is @c
17178 * EINA_TRUE, any other previously selected items will get
17179 * unselected in favor of this new one.
17181 * @see elm_genlist_item_selected_get()
17185 EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17187 * Get whether a given genlist item is selected or not
17189 * @param it The item
17190 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
17192 * @see elm_genlist_item_selected_set() for more details
17196 EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17198 * Sets the expanded state of an item.
17200 * @param it The item
17201 * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
17203 * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
17206 * The theme will respond to this change visually, and a signal "expanded" or
17207 * "contracted" will be sent from the genlist with a pointer to the item that
17208 * has been expanded/contracted.
17210 * Calling this function won't show or hide any child of this item (if it is
17211 * a parent). You must manually delete and create them on the callbacks fo
17212 * the "expanded" or "contracted" signals.
17214 * @see elm_genlist_item_expanded_get()
17218 EAPI void elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
17220 * Get the expanded state of an item
17222 * @param it The item
17223 * @return The expanded state
17225 * This gets the expanded state of an item.
17227 * @see elm_genlist_item_expanded_set()
17231 EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17233 * Get the depth of expanded item
17235 * @param it The genlist item object
17236 * @return The depth of expanded item
17240 EAPI int elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17242 * Set whether a given genlist item is disabled or not.
17244 * @param it The item
17245 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
17246 * to enable it back.
17248 * A disabled item cannot be selected or unselected. It will also
17249 * change its appearance, to signal the user it's disabled.
17251 * @see elm_genlist_item_disabled_get()
17255 EAPI void elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17257 * Get whether a given genlist item is disabled or not.
17259 * @param it The item
17260 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
17263 * @see elm_genlist_item_disabled_set() for more details
17267 EAPI Eina_Bool elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17269 * Sets the display only state of an item.
17271 * @param it The item
17272 * @param display_only @c EINA_TRUE if the item is display only, @c
17273 * EINA_FALSE otherwise.
17275 * A display only item cannot be selected or unselected. It is for
17276 * display only and not selecting or otherwise clicking, dragging
17277 * etc. by the user, thus finger size rules will not be applied to
17280 * It's good to set group index items to display only state.
17282 * @see elm_genlist_item_display_only_get()
17286 EAPI void elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
17288 * Get the display only state of an item
17290 * @param it The item
17291 * @return @c EINA_TRUE if the item is display only, @c
17292 * EINA_FALSE otherwise.
17294 * @see elm_genlist_item_display_only_set()
17298 EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17300 * Show the portion of a genlist's internal list containing a given
17301 * item, immediately.
17303 * @param it The item to display
17305 * This causes genlist to jump to the given item @p it and show it (by
17306 * immediately scrolling to that position), if it is not fully visible.
17308 * @see elm_genlist_item_bring_in()
17309 * @see elm_genlist_item_top_show()
17310 * @see elm_genlist_item_middle_show()
17314 EAPI void elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17316 * Animatedly bring in, to the visible are of a genlist, a given
17319 * @param it The item to display
17321 * This causes genlist to jump to the given item @p it and show it (by
17322 * animatedly scrolling), if it is not fully visible. This may use animation
17323 * to do so and take a period of time
17325 * @see elm_genlist_item_show()
17326 * @see elm_genlist_item_top_bring_in()
17327 * @see elm_genlist_item_middle_bring_in()
17331 EAPI void elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17333 * Show the portion of a genlist's internal list containing a given
17334 * item, immediately.
17336 * @param it The item to display
17338 * This causes genlist to jump to the given item @p it and show it (by
17339 * immediately scrolling to that position), if it is not fully visible.
17341 * The item will be positioned at the top of the genlist viewport.
17343 * @see elm_genlist_item_show()
17344 * @see elm_genlist_item_top_bring_in()
17348 EAPI void elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17350 * Animatedly bring in, to the visible are of a genlist, a given
17353 * @param it The item
17355 * This causes genlist to jump to the given item @p it and show it (by
17356 * animatedly scrolling), if it is not fully visible. This may use animation
17357 * to do so and take a period of time
17359 * The item will be positioned at the top of the genlist viewport.
17361 * @see elm_genlist_item_bring_in()
17362 * @see elm_genlist_item_top_show()
17366 EAPI void elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17368 * Show the portion of a genlist's internal list containing a given
17369 * item, immediately.
17371 * @param it The item to display
17373 * This causes genlist to jump to the given item @p it and show it (by
17374 * immediately scrolling to that position), if it is not fully visible.
17376 * The item will be positioned at the middle of the genlist viewport.
17378 * @see elm_genlist_item_show()
17379 * @see elm_genlist_item_middle_bring_in()
17383 EAPI void elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17385 * Animatedly bring in, to the visible are of a genlist, a given
17388 * @param it The item
17390 * This causes genlist to jump to the given item @p it and show it (by
17391 * animatedly scrolling), if it is not fully visible. This may use animation
17392 * to do so and take a period of time
17394 * The item will be positioned at the middle of the genlist viewport.
17396 * @see elm_genlist_item_bring_in()
17397 * @see elm_genlist_item_middle_show()
17401 EAPI void elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17403 * Remove a genlist item from the its parent, deleting it.
17405 * @param item The item to be removed.
17406 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
17408 * @see elm_genlist_clear(), to remove all items in a genlist at
17413 EAPI void elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17415 * Return the data associated to a given genlist item
17417 * @param item The genlist item.
17418 * @return the data associated to this item.
17420 * This returns the @c data value passed on the
17421 * elm_genlist_item_append() and related item addition calls.
17423 * @see elm_genlist_item_append()
17424 * @see elm_genlist_item_data_set()
17428 EAPI void *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17430 * Set the data associated to a given genlist item
17432 * @param item The genlist item
17433 * @param data The new data pointer to set on it
17435 * This @b overrides the @c data value passed on the
17436 * elm_genlist_item_append() and related item addition calls. This
17437 * function @b won't call elm_genlist_item_update() automatically,
17438 * so you'd issue it afterwards if you want to hove the item
17439 * updated to reflect the that new data.
17441 * @see elm_genlist_item_data_get()
17445 EAPI void elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
17447 * Tells genlist to "orphan" icons fetchs by the item class
17449 * @param it The item
17451 * This instructs genlist to release references to icons in the item,
17452 * meaning that they will no longer be managed by genlist and are
17453 * floating "orphans" that can be re-used elsewhere if the user wants
17458 EAPI void elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17460 * Get the real Evas object created to implement the view of a
17461 * given genlist item
17463 * @param item The genlist item.
17464 * @return the Evas object implementing this item's view.
17466 * This returns the actual Evas object used to implement the
17467 * specified genlist item's view. This may be @c NULL, as it may
17468 * not have been created or may have been deleted, at any time, by
17469 * the genlist. <b>Do not modify this object</b> (move, resize,
17470 * show, hide, etc.), as the genlist is controlling it. This
17471 * function is for querying, emitting custom signals or hooking
17472 * lower level callbacks for events on that object. Do not delete
17473 * this object under any circumstances.
17475 * @see elm_genlist_item_data_get()
17479 EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17481 * Update the contents of an item
17483 * @param it The item
17485 * This updates an item by calling all the item class functions again
17486 * to get the icons, labels and states. Use this when the original
17487 * item data has changed and the changes are desired to be reflected.
17489 * Use elm_genlist_realized_items_update() to update all already realized
17492 * @see elm_genlist_realized_items_update()
17496 EAPI void elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17498 * Update the item class of an item
17500 * @param it The item
17501 * @param itc The item class for the item
17503 * This sets another class fo the item, changing the way that it is
17504 * displayed. After changing the item class, elm_genlist_item_update() is
17505 * called on the item @p it.
17509 EAPI void elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
17510 EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17512 * Set the text to be shown in a given genlist item's tooltips.
17514 * @param item The genlist item
17515 * @param text The text to set in the content
17517 * This call will setup the text to be used as tooltip to that item
17518 * (analogous to elm_object_tooltip_text_set(), but being item
17519 * tooltips with higher precedence than object tooltips). It can
17520 * have only one tooltip at a time, so any previous tooltip data
17521 * will get removed.
17523 * In order to set an icon or something else as a tooltip, look at
17524 * elm_genlist_item_tooltip_content_cb_set().
17528 EAPI void elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
17530 * Set the content to be shown in a given genlist item's tooltips
17532 * @param item The genlist item.
17533 * @param func The function returning the tooltip contents.
17534 * @param data What to provide to @a func as callback data/context.
17535 * @param del_cb Called when data is not needed anymore, either when
17536 * another callback replaces @p func, the tooltip is unset with
17537 * elm_genlist_item_tooltip_unset() or the owner @p item
17538 * dies. This callback receives as its first parameter the
17539 * given @p data, being @c event_info the item handle.
17541 * This call will setup the tooltip's contents to @p item
17542 * (analogous to elm_object_tooltip_content_cb_set(), but being
17543 * item tooltips with higher precedence than object tooltips). It
17544 * can have only one tooltip at a time, so any previous tooltip
17545 * content will get removed. @p func (with @p data) will be called
17546 * every time Elementary needs to show the tooltip and it should
17547 * return a valid Evas object, which will be fully managed by the
17548 * tooltip system, getting deleted when the tooltip is gone.
17550 * In order to set just a text as a tooltip, look at
17551 * elm_genlist_item_tooltip_text_set().
17555 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);
17557 * Unset a tooltip from a given genlist item
17559 * @param item genlist item to remove a previously set tooltip from.
17561 * This call removes any tooltip set on @p item. The callback
17562 * provided as @c del_cb to
17563 * elm_genlist_item_tooltip_content_cb_set() will be called to
17564 * notify it is not used anymore (and have resources cleaned, if
17567 * @see elm_genlist_item_tooltip_content_cb_set()
17571 EAPI void elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17573 * Set a different @b style for a given genlist item's tooltip.
17575 * @param item genlist item with tooltip set
17576 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
17577 * "default", @c "transparent", etc)
17579 * Tooltips can have <b>alternate styles</b> to be displayed on,
17580 * which are defined by the theme set on Elementary. This function
17581 * works analogously as elm_object_tooltip_style_set(), but here
17582 * applied only to genlist item objects. The default style for
17583 * tooltips is @c "default".
17585 * @note before you set a style you should define a tooltip with
17586 * elm_genlist_item_tooltip_content_cb_set() or
17587 * elm_genlist_item_tooltip_text_set()
17589 * @see elm_genlist_item_tooltip_style_get()
17593 EAPI void elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
17595 * Get the style set a given genlist item's tooltip.
17597 * @param item genlist item with tooltip already set on.
17598 * @return style the theme style in use, which defaults to
17599 * "default". If the object does not have a tooltip set,
17600 * then @c NULL is returned.
17602 * @see elm_genlist_item_tooltip_style_set() for more details
17606 EAPI const char *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17608 * @brief Disable size restrictions on an object's tooltip
17609 * @param item The tooltip's anchor object
17610 * @param disable If EINA_TRUE, size restrictions are disabled
17611 * @return EINA_FALSE on failure, EINA_TRUE on success
17613 * This function allows a tooltip to expand beyond its parant window's canvas.
17614 * It will instead be limited only by the size of the display.
17616 EAPI Eina_Bool elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
17618 * @brief Retrieve size restriction state of an object's tooltip
17619 * @param item The tooltip's anchor object
17620 * @return If EINA_TRUE, size restrictions are disabled
17622 * This function returns whether a tooltip is allowed to expand beyond
17623 * its parant window's canvas.
17624 * It will instead be limited only by the size of the display.
17626 EAPI Eina_Bool elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
17628 * Set the type of mouse pointer/cursor decoration to be shown,
17629 * when the mouse pointer is over the given genlist widget item
17631 * @param item genlist item to customize cursor on
17632 * @param cursor the cursor type's name
17634 * This function works analogously as elm_object_cursor_set(), but
17635 * here the cursor's changing area is restricted to the item's
17636 * area, and not the whole widget's. Note that that item cursors
17637 * have precedence over widget cursors, so that a mouse over @p
17638 * item will always show cursor @p type.
17640 * If this function is called twice for an object, a previously set
17641 * cursor will be unset on the second call.
17643 * @see elm_object_cursor_set()
17644 * @see elm_genlist_item_cursor_get()
17645 * @see elm_genlist_item_cursor_unset()
17649 EAPI void elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17651 * Get the type of mouse pointer/cursor decoration set to be shown,
17652 * when the mouse pointer is over the given genlist widget item
17654 * @param item genlist item with custom cursor set
17655 * @return the cursor type's name or @c NULL, if no custom cursors
17656 * were set to @p item (and on errors)
17658 * @see elm_object_cursor_get()
17659 * @see elm_genlist_item_cursor_set() for more details
17660 * @see elm_genlist_item_cursor_unset()
17664 EAPI const char *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17666 * Unset any custom mouse pointer/cursor decoration set to be
17667 * shown, when the mouse pointer is over the given genlist widget
17668 * item, thus making it show the @b default cursor again.
17670 * @param item a genlist item
17672 * Use this call to undo any custom settings on this item's cursor
17673 * decoration, bringing it back to defaults (no custom style set).
17675 * @see elm_object_cursor_unset()
17676 * @see elm_genlist_item_cursor_set() for more details
17680 EAPI void elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17682 * Set a different @b style for a given custom cursor set for a
17685 * @param item genlist item with custom cursor set
17686 * @param style the <b>theme style</b> to use (e.g. @c "default",
17687 * @c "transparent", etc)
17689 * This function only makes sense when one is using custom mouse
17690 * cursor decorations <b>defined in a theme file</b> , which can
17691 * have, given a cursor name/type, <b>alternate styles</b> on
17692 * it. It works analogously as elm_object_cursor_style_set(), but
17693 * here applied only to genlist item objects.
17695 * @warning Before you set a cursor style you should have defined a
17696 * custom cursor previously on the item, with
17697 * elm_genlist_item_cursor_set()
17699 * @see elm_genlist_item_cursor_engine_only_set()
17700 * @see elm_genlist_item_cursor_style_get()
17704 EAPI void elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
17706 * Get the current @b style set for a given genlist item's custom
17709 * @param item genlist item with custom cursor set.
17710 * @return style the cursor style in use. If the object does not
17711 * have a cursor set, then @c NULL is returned.
17713 * @see elm_genlist_item_cursor_style_set() for more details
17717 EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17719 * Set if the (custom) cursor for a given genlist item should be
17720 * searched in its theme, also, or should only rely on the
17721 * rendering engine.
17723 * @param item item with custom (custom) cursor already set on
17724 * @param engine_only Use @c EINA_TRUE to have cursors looked for
17725 * only on those provided by the rendering engine, @c EINA_FALSE to
17726 * have them searched on the widget's theme, as well.
17728 * @note This call is of use only if you've set a custom cursor
17729 * for genlist items, with elm_genlist_item_cursor_set().
17731 * @note By default, cursors will only be looked for between those
17732 * provided by the rendering engine.
17736 EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17738 * Get if the (custom) cursor for a given genlist item is being
17739 * searched in its theme, also, or is only relying on the rendering
17742 * @param item a genlist item
17743 * @return @c EINA_TRUE, if cursors are being looked for only on
17744 * those provided by the rendering engine, @c EINA_FALSE if they
17745 * are being searched on the widget's theme, as well.
17747 * @see elm_genlist_item_cursor_engine_only_set(), for more details
17751 EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17753 * Update the contents of all realized items.
17755 * @param obj The genlist object.
17757 * This updates all realized items by calling all the item class functions again
17758 * to get the icons, labels and states. Use this when the original
17759 * item data has changed and the changes are desired to be reflected.
17761 * To update just one item, use elm_genlist_item_update().
17763 * @see elm_genlist_realized_items_get()
17764 * @see elm_genlist_item_update()
17768 EAPI void elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
17770 * Activate a genlist mode on an item
17772 * @param item The genlist item
17773 * @param mode Mode name
17774 * @param mode_set Boolean to define set or unset mode.
17776 * A genlist mode is a different way of selecting an item. Once a mode is
17777 * activated on an item, any other selected item is immediately unselected.
17778 * This feature provides an easy way of implementing a new kind of animation
17779 * for selecting an item, without having to entirely rewrite the item style
17780 * theme. However, the elm_genlist_selected_* API can't be used to get what
17781 * item is activate for a mode.
17783 * The current item style will still be used, but applying a genlist mode to
17784 * an item will select it using a different kind of animation.
17786 * The current active item for a mode can be found by
17787 * elm_genlist_mode_item_get().
17789 * The characteristics of genlist mode are:
17790 * - Only one mode can be active at any time, and for only one item.
17791 * - Genlist handles deactivating other items when one item is activated.
17792 * - A mode is defined in the genlist theme (edc), and more modes can easily
17794 * - A mode style and the genlist item style are different things. They
17795 * can be combined to provide a default style to the item, with some kind
17796 * of animation for that item when the mode is activated.
17798 * When a mode is activated on an item, a new view for that item is created.
17799 * The theme of this mode defines the animation that will be used to transit
17800 * the item from the old view to the new view. This second (new) view will be
17801 * active for that item while the mode is active on the item, and will be
17802 * destroyed after the mode is totally deactivated from that item.
17804 * @see elm_genlist_mode_get()
17805 * @see elm_genlist_mode_item_get()
17809 EAPI void elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
17811 * Get the last (or current) genlist mode used.
17813 * @param obj The genlist object
17815 * This function just returns the name of the last used genlist mode. It will
17816 * be the current mode if it's still active.
17818 * @see elm_genlist_item_mode_set()
17819 * @see elm_genlist_mode_item_get()
17823 EAPI const char *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17825 * Get active genlist mode item
17827 * @param obj The genlist object
17828 * @return The active item for that current mode. Or @c NULL if no item is
17829 * activated with any mode.
17831 * This function returns the item that was activated with a mode, by the
17832 * function elm_genlist_item_mode_set().
17834 * @see elm_genlist_item_mode_set()
17835 * @see elm_genlist_mode_get()
17839 EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17844 * @param obj The genlist object
17845 * @param reorder_mode The reorder mode
17846 * (EINA_TRUE = on, EINA_FALSE = off)
17850 EAPI void elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
17853 * Get the reorder mode
17855 * @param obj The genlist object
17856 * @return The reorder mode
17857 * (EINA_TRUE = on, EINA_FALSE = off)
17861 EAPI Eina_Bool elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17868 * @defgroup Check Check
17870 * @image html img/widget/check/preview-00.png
17871 * @image latex img/widget/check/preview-00.eps
17872 * @image html img/widget/check/preview-01.png
17873 * @image latex img/widget/check/preview-01.eps
17874 * @image html img/widget/check/preview-02.png
17875 * @image latex img/widget/check/preview-02.eps
17877 * @brief The check widget allows for toggling a value between true and
17880 * Check objects are a lot like radio objects in layout and functionality
17881 * except they do not work as a group, but independently and only toggle the
17882 * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
17883 * the boolean state (1 for true, 0 for false), and elm_check_state_get()
17884 * returns the current state. For convenience, like the radio objects, you
17885 * can set a pointer to a boolean directly with elm_check_state_pointer_set()
17886 * for it to modify.
17888 * Signals that you can add callbacks for are:
17889 * "changed" - This is called whenever the user changes the state of one of
17890 * the check object(event_info is NULL).
17892 * @ref tutorial_check should give you a firm grasp of how to use this widget.
17896 * @brief Add a new Check object
17898 * @param parent The parent object
17899 * @return The new object or NULL if it cannot be created
17901 EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17903 * @brief Set the text label of the check object
17905 * @param obj The check object
17906 * @param label The text label string in UTF-8
17908 * @deprecated use elm_object_text_set() instead.
17910 EINA_DEPRECATED EAPI void elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17912 * @brief Get the text label of the check object
17914 * @param obj The check object
17915 * @return The text label string in UTF-8
17917 * @deprecated use elm_object_text_get() instead.
17919 EINA_DEPRECATED EAPI const char *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17921 * @brief Set the icon object of the check object
17923 * @param obj The check object
17924 * @param icon The icon object
17926 * Once the icon object is set, a previously set one will be deleted.
17927 * If you want to keep that old content object, use the
17928 * elm_check_icon_unset() function.
17930 EAPI void elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17932 * @brief Get the icon object of the check object
17934 * @param obj The check object
17935 * @return The icon object
17937 EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17939 * @brief Unset the icon used for the check object
17941 * @param obj The check object
17942 * @return The icon object that was being used
17944 * Unparent and return the icon object which was set for this widget.
17946 EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17948 * @brief Set the on/off state of the check object
17950 * @param obj The check object
17951 * @param state The state to use (1 == on, 0 == off)
17953 * This sets the state of the check. If set
17954 * with elm_check_state_pointer_set() the state of that variable is also
17955 * changed. Calling this @b doesn't cause the "changed" signal to be emited.
17957 EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
17959 * @brief Get the state of the check object
17961 * @param obj The check object
17962 * @return The boolean state
17964 EAPI Eina_Bool elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17966 * @brief Set a convenience pointer to a boolean to change
17968 * @param obj The check object
17969 * @param statep Pointer to the boolean to modify
17971 * This sets a pointer to a boolean, that, in addition to the check objects
17972 * state will also be modified directly. To stop setting the object pointed
17973 * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
17974 * then when this is called, the check objects state will also be modified to
17975 * reflect the value of the boolean @p statep points to, just like calling
17976 * elm_check_state_set().
17978 EAPI void elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
17984 * @defgroup Radio Radio
17986 * @image html img/widget/radio/preview-00.png
17987 * @image latex img/widget/radio/preview-00.eps
17989 * @brief Radio is a widget that allows for 1 or more options to be displayed
17990 * and have the user choose only 1 of them.
17992 * A radio object contains an indicator, an optional Label and an optional
17993 * icon object. While it's possible to have a group of only one radio they,
17994 * are normally used in groups of 2 or more. To add a radio to a group use
17995 * elm_radio_group_add(). The radio object(s) will select from one of a set
17996 * of integer values, so any value they are configuring needs to be mapped to
17997 * a set of integers. To configure what value that radio object represents,
17998 * use elm_radio_state_value_set() to set the integer it represents. To set
17999 * the value the whole group(which one is currently selected) is to indicate
18000 * use elm_radio_value_set() on any group member, and to get the groups value
18001 * use elm_radio_value_get(). For convenience the radio objects are also able
18002 * to directly set an integer(int) to the value that is selected. To specify
18003 * the pointer to this integer to modify, use elm_radio_value_pointer_set().
18004 * The radio objects will modify this directly. That implies the pointer must
18005 * point to valid memory for as long as the radio objects exist.
18007 * Signals that you can add callbacks for are:
18008 * @li changed - This is called whenever the user changes the state of one of
18009 * the radio objects within the group of radio objects that work together.
18011 * @ref tutorial_radio show most of this API in action.
18015 * @brief Add a new radio to the parent
18017 * @param parent The parent object
18018 * @return The new object or NULL if it cannot be created
18020 EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18022 * @brief Set the text label of the radio object
18024 * @param obj The radio object
18025 * @param label The text label string in UTF-8
18027 * @deprecated use elm_object_text_set() instead.
18029 EINA_DEPRECATED EAPI void elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18031 * @brief Get the text label of the radio object
18033 * @param obj The radio object
18034 * @return The text label string in UTF-8
18036 * @deprecated use elm_object_text_set() instead.
18038 EINA_DEPRECATED EAPI const char *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18040 * @brief Set the icon object of the radio object
18042 * @param obj The radio object
18043 * @param icon The icon object
18045 * Once the icon object is set, a previously set one will be deleted. If you
18046 * want to keep that old content object, use the elm_radio_icon_unset()
18049 EAPI void elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18051 * @brief Get the icon object of the radio object
18053 * @param obj The radio object
18054 * @return The icon object
18056 * @see elm_radio_icon_set()
18058 EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18060 * @brief Unset the icon used for the radio object
18062 * @param obj The radio object
18063 * @return The icon object that was being used
18065 * Unparent and return the icon object which was set for this widget.
18067 * @see elm_radio_icon_set()
18069 EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18071 * @brief Add this radio to a group of other radio objects
18073 * @param obj The radio object
18074 * @param group Any object whose group the @p obj is to join.
18076 * Radio objects work in groups. Each member should have a different integer
18077 * value assigned. In order to have them work as a group, they need to know
18078 * about each other. This adds the given radio object to the group of which
18079 * the group object indicated is a member.
18081 EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
18083 * @brief Set the integer value that this radio object represents
18085 * @param obj The radio object
18086 * @param value The value to use if this radio object is selected
18088 * This sets the value of the radio.
18090 EAPI void elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18092 * @brief Get the integer value that this radio object represents
18094 * @param obj The radio object
18095 * @return The value used if this radio object is selected
18097 * This gets the value of the radio.
18099 * @see elm_radio_value_set()
18101 EAPI int elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18103 * @brief Set the value of the radio.
18105 * @param obj The radio object
18106 * @param value The value to use for the group
18108 * This sets the value of the radio group and will also set the value if
18109 * pointed to, to the value supplied, but will not call any callbacks.
18111 EAPI void elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18113 * @brief Get the state of the radio object
18115 * @param obj The radio object
18116 * @return The integer state
18118 EAPI int elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18120 * @brief Set a convenience pointer to a integer to change
18122 * @param obj The radio object
18123 * @param valuep Pointer to the integer to modify
18125 * This sets a pointer to a integer, that, in addition to the radio objects
18126 * state will also be modified directly. To stop setting the object pointed
18127 * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
18128 * when this is called, the radio objects state will also be modified to
18129 * reflect the value of the integer valuep points to, just like calling
18130 * elm_radio_value_set().
18132 EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
18138 * @defgroup Pager Pager
18140 * @image html img/widget/pager/preview-00.png
18141 * @image latex img/widget/pager/preview-00.eps
18143 * @brief Widget that allows flipping between 1 or more “pages” of objects.
18145 * The flipping between “pages” of objects is animated. All content in pager
18146 * is kept in a stack, the last content to be added will be on the top of the
18147 * stack(be visible).
18149 * Objects can be pushed or popped from the stack or deleted as normal.
18150 * Pushes and pops will animate (and a pop will delete the object once the
18151 * animation is finished). Any object already in the pager can be promoted to
18152 * the top(from its current stacking position) through the use of
18153 * elm_pager_content_promote(). Objects are pushed to the top with
18154 * elm_pager_content_push() and when the top item is no longer wanted, simply
18155 * pop it with elm_pager_content_pop() and it will also be deleted. If an
18156 * object is no longer needed and is not the top item, just delete it as
18157 * normal. You can query which objects are the top and bottom with
18158 * elm_pager_content_bottom_get() and elm_pager_content_top_get().
18160 * Signals that you can add callbacks for are:
18161 * "hide,finished" - when the previous page is hided
18163 * This widget has the following styles available:
18166 * @li fade_translucide
18167 * @li fade_invisible
18168 * @note This styles affect only the flipping animations, the appearance when
18169 * not animating is unaffected by styles.
18171 * @ref tutorial_pager gives a good overview of the usage of the API.
18175 * Add a new pager to the parent
18177 * @param parent The parent object
18178 * @return The new object or NULL if it cannot be created
18182 EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18184 * @brief Push an object to the top of the pager stack (and show it).
18186 * @param obj The pager object
18187 * @param content The object to push
18189 * The object pushed becomes a child of the pager, it will be controlled and
18190 * deleted when the pager is deleted.
18192 * @note If the content is already in the stack use
18193 * elm_pager_content_promote().
18194 * @warning Using this function on @p content already in the stack results in
18195 * undefined behavior.
18197 EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18199 * @brief Pop the object that is on top of the stack
18201 * @param obj The pager object
18203 * This pops the object that is on the top(visible) of the pager, makes it
18204 * disappear, then deletes the object. The object that was underneath it on
18205 * the stack will become visible.
18207 EAPI void elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
18209 * @brief Moves an object already in the pager stack to the top of the stack.
18211 * @param obj The pager object
18212 * @param content The object to promote
18214 * This will take the @p content and move it to the top of the stack as
18215 * if it had been pushed there.
18217 * @note If the content isn't already in the stack use
18218 * elm_pager_content_push().
18219 * @warning Using this function on @p content not already in the stack
18220 * results in undefined behavior.
18222 EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18224 * @brief Return the object at the bottom of the pager stack
18226 * @param obj The pager object
18227 * @return The bottom object or NULL if none
18229 EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18231 * @brief Return the object at the top of the pager stack
18233 * @param obj The pager object
18234 * @return The top object or NULL if none
18236 EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18242 * @defgroup Slideshow Slideshow
18244 * @image html img/widget/slideshow/preview-00.png
18245 * @image latex img/widget/slideshow/preview-00.eps
18247 * This widget, as the name indicates, is a pre-made image
18248 * slideshow panel, with API functions acting on (child) image
18249 * items presentation. Between those actions, are:
18250 * - advance to next/previous image
18251 * - select the style of image transition animation
18252 * - set the exhibition time for each image
18253 * - start/stop the slideshow
18255 * The transition animations are defined in the widget's theme,
18256 * consequently new animations can be added without having to
18257 * update the widget's code.
18259 * @section Slideshow_Items Slideshow items
18261 * For slideshow items, just like for @ref Genlist "genlist" ones,
18262 * the user defines a @b classes, specifying functions that will be
18263 * called on the item's creation and deletion times.
18265 * The #Elm_Slideshow_Item_Class structure contains the following
18268 * - @c func.get - When an item is displayed, this function is
18269 * called, and it's where one should create the item object, de
18270 * facto. For example, the object can be a pure Evas image object
18271 * or an Elementary @ref Photocam "photocam" widget. See
18272 * #SlideshowItemGetFunc.
18273 * - @c func.del - When an item is no more displayed, this function
18274 * is called, where the user must delete any data associated to
18275 * the item. See #SlideshowItemDelFunc.
18277 * @section Slideshow_Caching Slideshow caching
18279 * The slideshow provides facilities to have items adjacent to the
18280 * one being displayed <b>already "realized"</b> (i.e. loaded) for
18281 * you, so that the system does not have to decode image data
18282 * anymore at the time it has to actually switch images on its
18283 * viewport. The user is able to set the numbers of items to be
18284 * cached @b before and @b after the current item, in the widget's
18287 * Smart events one can add callbacks for are:
18289 * - @c "changed" - when the slideshow switches its view to a new
18292 * List of examples for the slideshow widget:
18293 * @li @ref slideshow_example
18297 * @addtogroup Slideshow
18301 typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
18302 typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
18303 typedef struct _Elm_Slideshow_Item Elm_Slideshow_Item; /**< Slideshow item handle */
18304 typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
18305 typedef void (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
18308 * @struct _Elm_Slideshow_Item_Class
18310 * Slideshow item class definition. See @ref Slideshow_Items for
18313 struct _Elm_Slideshow_Item_Class
18315 struct _Elm_Slideshow_Item_Class_Func
18317 SlideshowItemGetFunc get;
18318 SlideshowItemDelFunc del;
18320 }; /**< #Elm_Slideshow_Item_Class member definitions */
18323 * Add a new slideshow widget to the given parent Elementary
18324 * (container) object
18326 * @param parent The parent object
18327 * @return A new slideshow widget handle or @c NULL, on errors
18329 * This function inserts a new slideshow widget on the canvas.
18331 * @ingroup Slideshow
18333 EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18336 * Add (append) a new item in a given slideshow widget.
18338 * @param obj The slideshow object
18339 * @param itc The item class for the item
18340 * @param data The item's data
18341 * @return A handle to the item added or @c NULL, on errors
18343 * Add a new item to @p obj's internal list of items, appending it.
18344 * The item's class must contain the function really fetching the
18345 * image object to show for this item, which could be an Evas image
18346 * object or an Elementary photo, for example. The @p data
18347 * parameter is going to be passed to both class functions of the
18350 * @see #Elm_Slideshow_Item_Class
18351 * @see elm_slideshow_item_sorted_insert()
18353 * @ingroup Slideshow
18355 EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
18358 * Insert a new item into the given slideshow widget, using the @p func
18359 * function to sort items (by item handles).
18361 * @param obj The slideshow object
18362 * @param itc The item class for the item
18363 * @param data The item's data
18364 * @param func The comparing function to be used to sort slideshow
18365 * items <b>by #Elm_Slideshow_Item item handles</b>
18366 * @return Returns The slideshow item handle, on success, or
18367 * @c NULL, on errors
18369 * Add a new item to @p obj's internal list of items, in a position
18370 * determined by the @p func comparing function. The item's class
18371 * must contain the function really fetching the image object to
18372 * show for this item, which could be an Evas image object or an
18373 * Elementary photo, for example. The @p data parameter is going to
18374 * be passed to both class functions of the item.
18376 * @see #Elm_Slideshow_Item_Class
18377 * @see elm_slideshow_item_add()
18379 * @ingroup Slideshow
18381 EAPI Elm_Slideshow_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func) EINA_ARG_NONNULL(1);
18384 * Display a given slideshow widget's item, programmatically.
18386 * @param obj The slideshow object
18387 * @param item The item to display on @p obj's viewport
18389 * The change between the current item and @p item will use the
18390 * transition @p obj is set to use (@see
18391 * elm_slideshow_transition_set()).
18393 * @ingroup Slideshow
18395 EAPI void elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18398 * Slide to the @b next item, in a given slideshow widget
18400 * @param obj The slideshow object
18402 * The sliding animation @p obj is set to use will be the
18403 * transition effect used, after this call is issued.
18405 * @note If the end of the slideshow's internal list of items is
18406 * reached, it'll wrap around to the list's beginning, again.
18408 * @ingroup Slideshow
18410 EAPI void elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
18413 * Slide to the @b previous item, in a given slideshow widget
18415 * @param obj The slideshow object
18417 * The sliding animation @p obj is set to use will be the
18418 * transition effect used, after this call is issued.
18420 * @note If the beginning of the slideshow's internal list of items
18421 * is reached, it'll wrap around to the list's end, again.
18423 * @ingroup Slideshow
18425 EAPI void elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
18428 * Returns the list of sliding transition/effect names available, for a
18429 * given slideshow widget.
18431 * @param obj The slideshow object
18432 * @return The list of transitions (list of @b stringshared strings
18435 * The transitions, which come from @p obj's theme, must be an EDC
18436 * data item named @c "transitions" on the theme file, with (prefix)
18437 * names of EDC programs actually implementing them.
18439 * The available transitions for slideshows on the default theme are:
18440 * - @c "fade" - the current item fades out, while the new one
18441 * fades in to the slideshow's viewport.
18442 * - @c "black_fade" - the current item fades to black, and just
18443 * then, the new item will fade in.
18444 * - @c "horizontal" - the current item slides horizontally, until
18445 * it gets out of the slideshow's viewport, while the new item
18446 * comes from the left to take its place.
18447 * - @c "vertical" - the current item slides vertically, until it
18448 * gets out of the slideshow's viewport, while the new item comes
18449 * from the bottom to take its place.
18450 * - @c "square" - the new item starts to appear from the middle of
18451 * the current one, but with a tiny size, growing until its
18452 * target (full) size and covering the old one.
18454 * @warning The stringshared strings get no new references
18455 * exclusive to the user grabbing the list, here, so if you'd like
18456 * to use them out of this call's context, you'd better @c
18457 * eina_stringshare_ref() them.
18459 * @see elm_slideshow_transition_set()
18461 * @ingroup Slideshow
18463 EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18466 * Set the current slide transition/effect in use for a given
18469 * @param obj The slideshow object
18470 * @param transition The new transition's name string
18472 * If @p transition is implemented in @p obj's theme (i.e., is
18473 * contained in the list returned by
18474 * elm_slideshow_transitions_get()), this new sliding effect will
18475 * be used on the widget.
18477 * @see elm_slideshow_transitions_get() for more details
18479 * @ingroup Slideshow
18481 EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
18484 * Get the current slide transition/effect in use for a given
18487 * @param obj The slideshow object
18488 * @return The current transition's name
18490 * @see elm_slideshow_transition_set() for more details
18492 * @ingroup Slideshow
18494 EAPI const char *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18497 * Set the interval between each image transition on a given
18498 * slideshow widget, <b>and start the slideshow, itself</b>
18500 * @param obj The slideshow object
18501 * @param timeout The new displaying timeout for images
18503 * After this call, the slideshow widget will start cycling its
18504 * view, sequentially and automatically, with the images of the
18505 * items it has. The time between each new image displayed is going
18506 * to be @p timeout, in @b seconds. If a different timeout was set
18507 * previously and an slideshow was in progress, it will continue
18508 * with the new time between transitions, after this call.
18510 * @note A value less than or equal to 0 on @p timeout will disable
18511 * the widget's internal timer, thus halting any slideshow which
18512 * could be happening on @p obj.
18514 * @see elm_slideshow_timeout_get()
18516 * @ingroup Slideshow
18518 EAPI void elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18521 * Get the interval set for image transitions on a given slideshow
18524 * @param obj The slideshow object
18525 * @return Returns the timeout set on it
18527 * @see elm_slideshow_timeout_set() for more details
18529 * @ingroup Slideshow
18531 EAPI double elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18534 * Set if, after a slideshow is started, for a given slideshow
18535 * widget, its items should be displayed cyclically or not.
18537 * @param obj The slideshow object
18538 * @param loop Use @c EINA_TRUE to make it cycle through items or
18539 * @c EINA_FALSE for it to stop at the end of @p obj's internal
18542 * @note elm_slideshow_next() and elm_slideshow_previous() will @b
18543 * ignore what is set by this functions, i.e., they'll @b always
18544 * cycle through items. This affects only the "automatic"
18545 * slideshow, as set by elm_slideshow_timeout_set().
18547 * @see elm_slideshow_loop_get()
18549 * @ingroup Slideshow
18551 EAPI void elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
18554 * Get if, after a slideshow is started, for a given slideshow
18555 * widget, its items are to be displayed cyclically or not.
18557 * @param obj The slideshow object
18558 * @return @c EINA_TRUE, if the items in @p obj will be cycled
18559 * through or @c EINA_FALSE, otherwise
18561 * @see elm_slideshow_loop_set() for more details
18563 * @ingroup Slideshow
18565 EAPI Eina_Bool elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18568 * Remove all items from a given slideshow widget
18570 * @param obj The slideshow object
18572 * This removes (and deletes) all items in @p obj, leaving it
18575 * @see elm_slideshow_item_del(), to remove just one item.
18577 * @ingroup Slideshow
18579 EAPI void elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18582 * Get the internal list of items in a given slideshow widget.
18584 * @param obj The slideshow object
18585 * @return The list of items (#Elm_Slideshow_Item as data) or
18586 * @c NULL on errors.
18588 * This list is @b not to be modified in any way and must not be
18589 * freed. Use the list members with functions like
18590 * elm_slideshow_item_del(), elm_slideshow_item_data_get().
18592 * @warning This list is only valid until @p obj object's internal
18593 * items list is changed. It should be fetched again with another
18594 * call to this function when changes happen.
18596 * @ingroup Slideshow
18598 EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18601 * Delete a given item from a slideshow widget.
18603 * @param item The slideshow item
18605 * @ingroup Slideshow
18607 EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18610 * Return the data associated with a given slideshow item
18612 * @param item The slideshow item
18613 * @return Returns the data associated to this item
18615 * @ingroup Slideshow
18617 EAPI void *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18620 * Returns the currently displayed item, in a given slideshow widget
18622 * @param obj The slideshow object
18623 * @return A handle to the item being displayed in @p obj or
18624 * @c NULL, if none is (and on errors)
18626 * @ingroup Slideshow
18628 EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18631 * Get the real Evas object created to implement the view of a
18632 * given slideshow item
18634 * @param item The slideshow item.
18635 * @return the Evas object implementing this item's view.
18637 * This returns the actual Evas object used to implement the
18638 * specified slideshow item's view. This may be @c NULL, as it may
18639 * not have been created or may have been deleted, at any time, by
18640 * the slideshow. <b>Do not modify this object</b> (move, resize,
18641 * show, hide, etc.), as the slideshow is controlling it. This
18642 * function is for querying, emitting custom signals or hooking
18643 * lower level callbacks for events on that object. Do not delete
18644 * this object under any circumstances.
18646 * @see elm_slideshow_item_data_get()
18648 * @ingroup Slideshow
18650 EAPI Evas_Object* elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
18653 * Get the the item, in a given slideshow widget, placed at
18654 * position @p nth, in its internal items list
18656 * @param obj The slideshow object
18657 * @param nth The number of the item to grab a handle to (0 being
18659 * @return The item stored in @p obj at position @p nth or @c NULL,
18660 * if there's no item with that index (and on errors)
18662 * @ingroup Slideshow
18664 EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
18667 * Set the current slide layout in use for a given slideshow widget
18669 * @param obj The slideshow object
18670 * @param layout The new layout's name string
18672 * If @p layout is implemented in @p obj's theme (i.e., is contained
18673 * in the list returned by elm_slideshow_layouts_get()), this new
18674 * images layout will be used on the widget.
18676 * @see elm_slideshow_layouts_get() for more details
18678 * @ingroup Slideshow
18680 EAPI void elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
18683 * Get the current slide layout in use for a given slideshow widget
18685 * @param obj The slideshow object
18686 * @return The current layout's name
18688 * @see elm_slideshow_layout_set() for more details
18690 * @ingroup Slideshow
18692 EAPI const char *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18695 * Returns the list of @b layout names available, for a given
18696 * slideshow widget.
18698 * @param obj The slideshow object
18699 * @return The list of layouts (list of @b stringshared strings
18702 * Slideshow layouts will change how the widget is to dispose each
18703 * image item in its viewport, with regard to cropping, scaling,
18706 * The layouts, which come from @p obj's theme, must be an EDC
18707 * data item name @c "layouts" on the theme file, with (prefix)
18708 * names of EDC programs actually implementing them.
18710 * The available layouts for slideshows on the default theme are:
18711 * - @c "fullscreen" - item images with original aspect, scaled to
18712 * touch top and down slideshow borders or, if the image's heigh
18713 * is not enough, left and right slideshow borders.
18714 * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
18715 * one, but always leaving 10% of the slideshow's dimensions of
18716 * distance between the item image's borders and the slideshow
18717 * borders, for each axis.
18719 * @warning The stringshared strings get no new references
18720 * exclusive to the user grabbing the list, here, so if you'd like
18721 * to use them out of this call's context, you'd better @c
18722 * eina_stringshare_ref() them.
18724 * @see elm_slideshow_layout_set()
18726 * @ingroup Slideshow
18728 EAPI const Eina_List *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18731 * Set the number of items to cache, on a given slideshow widget,
18732 * <b>before the current item</b>
18734 * @param obj The slideshow object
18735 * @param count Number of items to cache before the current one
18737 * The default value for this property is @c 2. See
18738 * @ref Slideshow_Caching "slideshow caching" for more details.
18740 * @see elm_slideshow_cache_before_get()
18742 * @ingroup Slideshow
18744 EAPI void elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
18747 * Retrieve the number of items to cache, on a given slideshow widget,
18748 * <b>before the current item</b>
18750 * @param obj The slideshow object
18751 * @return The number of items set to be cached before the current one
18753 * @see elm_slideshow_cache_before_set() for more details
18755 * @ingroup Slideshow
18757 EAPI int elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18760 * Set the number of items to cache, on a given slideshow widget,
18761 * <b>after the current item</b>
18763 * @param obj The slideshow object
18764 * @param count Number of items to cache after the current one
18766 * The default value for this property is @c 2. See
18767 * @ref Slideshow_Caching "slideshow caching" for more details.
18769 * @see elm_slideshow_cache_after_get()
18771 * @ingroup Slideshow
18773 EAPI void elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
18776 * Retrieve the number of items to cache, on a given slideshow widget,
18777 * <b>after the current item</b>
18779 * @param obj The slideshow object
18780 * @return The number of items set to be cached after the current one
18782 * @see elm_slideshow_cache_after_set() for more details
18784 * @ingroup Slideshow
18786 EAPI int elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18789 * Get the number of items stored in a given slideshow widget
18791 * @param obj The slideshow object
18792 * @return The number of items on @p obj, at the moment of this call
18794 * @ingroup Slideshow
18796 EAPI unsigned int elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18803 * @defgroup Fileselector File Selector
18805 * @image html img/widget/fileselector/preview-00.png
18806 * @image latex img/widget/fileselector/preview-00.eps
18808 * A file selector is a widget that allows a user to navigate
18809 * through a file system, reporting file selections back via its
18812 * It contains shortcut buttons for home directory (@c ~) and to
18813 * jump one directory upwards (..), as well as cancel/ok buttons to
18814 * confirm/cancel a given selection. After either one of those two
18815 * former actions, the file selector will issue its @c "done" smart
18818 * There's a text entry on it, too, showing the name of the current
18819 * selection. There's the possibility of making it editable, so it
18820 * is useful on file saving dialogs on applications, where one
18821 * gives a file name to save contents to, in a given directory in
18822 * the system. This custom file name will be reported on the @c
18823 * "done" smart callback (explained in sequence).
18825 * Finally, it has a view to display file system items into in two
18830 * If Elementary is built with support of the Ethumb thumbnailing
18831 * library, the second form of view will display preview thumbnails
18832 * of files which it supports.
18834 * Smart callbacks one can register to:
18836 * - @c "selected" - the user has clicked on a file (when not in
18837 * folders-only mode) or directory (when in folders-only mode)
18838 * - @c "directory,open" - the list has been populated with new
18839 * content (@c event_info is a pointer to the directory's
18840 * path, a @b stringshared string)
18841 * - @c "done" - the user has clicked on the "ok" or "cancel"
18842 * buttons (@c event_info is a pointer to the selection's
18843 * path, a @b stringshared string)
18845 * Here is an example on its usage:
18846 * @li @ref fileselector_example
18850 * @addtogroup Fileselector
18855 * Defines how a file selector widget is to layout its contents
18856 * (file system entries).
18858 typedef enum _Elm_Fileselector_Mode
18860 ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
18861 ELM_FILESELECTOR_GRID, /**< layout as a grid */
18862 ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
18863 } Elm_Fileselector_Mode;
18866 * Add a new file selector widget to the given parent Elementary
18867 * (container) object
18869 * @param parent The parent object
18870 * @return a new file selector widget handle or @c NULL, on errors
18872 * This function inserts a new file selector widget on the canvas.
18874 * @ingroup Fileselector
18876 EAPI Evas_Object *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18879 * Enable/disable the file name entry box where the user can type
18880 * in a name for a file, in a given file selector widget
18882 * @param obj The file selector object
18883 * @param is_save @c EINA_TRUE to make the file selector a "saving
18884 * dialog", @c EINA_FALSE otherwise
18886 * Having the entry editable is useful on file saving dialogs on
18887 * applications, where one gives a file name to save contents to,
18888 * in a given directory in the system. This custom file name will
18889 * be reported on the @c "done" smart callback.
18891 * @see elm_fileselector_is_save_get()
18893 * @ingroup Fileselector
18895 EAPI void elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
18898 * Get whether the given file selector is in "saving dialog" mode
18900 * @param obj The file selector object
18901 * @return @c EINA_TRUE, if the file selector is in "saving dialog"
18902 * mode, @c EINA_FALSE otherwise (and on errors)
18904 * @see elm_fileselector_is_save_set() for more details
18906 * @ingroup Fileselector
18908 EAPI Eina_Bool elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18911 * Enable/disable folder-only view for a given file selector widget
18913 * @param obj The file selector object
18914 * @param only @c EINA_TRUE to make @p obj only display
18915 * directories, @c EINA_FALSE to make files to be displayed in it
18918 * If enabled, the widget's view will only display folder items,
18921 * @see elm_fileselector_folder_only_get()
18923 * @ingroup Fileselector
18925 EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
18928 * Get whether folder-only view is set for a given file selector
18931 * @param obj The file selector object
18932 * @return only @c EINA_TRUE if @p obj is only displaying
18933 * directories, @c EINA_FALSE if files are being displayed in it
18934 * too (and on errors)
18936 * @see elm_fileselector_folder_only_get()
18938 * @ingroup Fileselector
18940 EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18943 * Enable/disable the "ok" and "cancel" buttons on a given file
18946 * @param obj The file selector object
18947 * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
18949 * @note A file selector without those buttons will never emit the
18950 * @c "done" smart event, and is only usable if one is just hooking
18951 * to the other two events.
18953 * @see elm_fileselector_buttons_ok_cancel_get()
18955 * @ingroup Fileselector
18957 EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
18960 * Get whether the "ok" and "cancel" buttons on a given file
18961 * selector widget are being shown.
18963 * @param obj The file selector object
18964 * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
18965 * otherwise (and on errors)
18967 * @see elm_fileselector_buttons_ok_cancel_set() for more details
18969 * @ingroup Fileselector
18971 EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18974 * Enable/disable a tree view in the given file selector widget,
18975 * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
18977 * @param obj The file selector object
18978 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
18981 * In a tree view, arrows are created on the sides of directories,
18982 * allowing them to expand in place.
18984 * @note If it's in other mode, the changes made by this function
18985 * will only be visible when one switches back to "list" mode.
18987 * @see elm_fileselector_expandable_get()
18989 * @ingroup Fileselector
18991 EAPI void elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
18994 * Get whether tree view is enabled for the given file selector
18997 * @param obj The file selector object
18998 * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
18999 * otherwise (and or errors)
19001 * @see elm_fileselector_expandable_set() for more details
19003 * @ingroup Fileselector
19005 EAPI Eina_Bool elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19008 * Set, programmatically, the @b directory that a given file
19009 * selector widget will display contents from
19011 * @param obj The file selector object
19012 * @param path The path to display in @p obj
19014 * This will change the @b directory that @p obj is displaying. It
19015 * will also clear the text entry area on the @p obj object, which
19016 * displays select files' names.
19018 * @see elm_fileselector_path_get()
19020 * @ingroup Fileselector
19022 EAPI void elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19025 * Get the parent directory's path that a given file selector
19026 * widget is displaying
19028 * @param obj The file selector object
19029 * @return The (full) path of the directory the file selector is
19030 * displaying, a @b stringshared string
19032 * @see elm_fileselector_path_set()
19034 * @ingroup Fileselector
19036 EAPI const char *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19039 * Set, programmatically, the currently selected file/directory in
19040 * the given file selector widget
19042 * @param obj The file selector object
19043 * @param path The (full) path to a file or directory
19044 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
19045 * latter case occurs if the directory or file pointed to do not
19048 * @see elm_fileselector_selected_get()
19050 * @ingroup Fileselector
19052 EAPI Eina_Bool elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19055 * Get the currently selected item's (full) path, in the given file
19058 * @param obj The file selector object
19059 * @return The absolute path of the selected item, a @b
19060 * stringshared string
19062 * @note Custom editions on @p obj object's text entry, if made,
19063 * will appear on the return string of this function, naturally.
19065 * @see elm_fileselector_selected_set() for more details
19067 * @ingroup Fileselector
19069 EAPI const char *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19072 * Set the mode in which a given file selector widget will display
19073 * (layout) file system entries in its view
19075 * @param obj The file selector object
19076 * @param mode The mode of the fileselector, being it one of
19077 * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
19078 * first one, naturally, will display the files in a list. The
19079 * latter will make the widget to display its entries in a grid
19082 * @note By using elm_fileselector_expandable_set(), the user may
19083 * trigger a tree view for that list.
19085 * @note If Elementary is built with support of the Ethumb
19086 * thumbnailing library, the second form of view will display
19087 * preview thumbnails of files which it supports. You must have
19088 * elm_need_ethumb() called in your Elementary for thumbnailing to
19091 * @see elm_fileselector_expandable_set().
19092 * @see elm_fileselector_mode_get().
19094 * @ingroup Fileselector
19096 EAPI void elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
19099 * Get the mode in which a given file selector widget is displaying
19100 * (layouting) file system entries in its view
19102 * @param obj The fileselector object
19103 * @return The mode in which the fileselector is at
19105 * @see elm_fileselector_mode_set() for more details
19107 * @ingroup Fileselector
19109 EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19116 * @defgroup Progressbar Progress bar
19118 * The progress bar is a widget for visually representing the
19119 * progress status of a given job/task.
19121 * A progress bar may be horizontal or vertical. It may display an
19122 * icon besides it, as well as primary and @b units labels. The
19123 * former is meant to label the widget as a whole, while the
19124 * latter, which is formatted with floating point values (and thus
19125 * accepts a <c>printf</c>-style format string, like <c>"%1.2f
19126 * units"</c>), is meant to label the widget's <b>progress
19127 * value</b>. Label, icon and unit strings/objects are @b optional
19128 * for progress bars.
19130 * A progress bar may be @b inverted, in which state it gets its
19131 * values inverted, with high values being on the left or top and
19132 * low values on the right or bottom, as opposed to normally have
19133 * the low values on the former and high values on the latter,
19134 * respectively, for horizontal and vertical modes.
19136 * The @b span of the progress, as set by
19137 * elm_progressbar_span_size_set(), is its length (horizontally or
19138 * vertically), unless one puts size hints on the widget to expand
19139 * on desired directions, by any container. That length will be
19140 * scaled by the object or applications scaling factor. At any
19141 * point code can query the progress bar for its value with
19142 * elm_progressbar_value_get().
19144 * Available widget styles for progress bars:
19146 * - @c "wheel" (simple style, no text, no progression, only
19147 * "pulse" effect is available)
19149 * Here is an example on its usage:
19150 * @li @ref progressbar_example
19154 * Add a new progress bar widget to the given parent Elementary
19155 * (container) object
19157 * @param parent The parent object
19158 * @return a new progress bar widget handle or @c NULL, on errors
19160 * This function inserts a new progress bar widget on the canvas.
19162 * @ingroup Progressbar
19164 EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19167 * Set whether a given progress bar widget is at "pulsing mode" or
19170 * @param obj The progress bar object
19171 * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
19172 * @c EINA_FALSE to put it back to its default one
19174 * By default, progress bars will display values from the low to
19175 * high value boundaries. There are, though, contexts in which the
19176 * state of progression of a given task is @b unknown. For those,
19177 * one can set a progress bar widget to a "pulsing state", to give
19178 * the user an idea that some computation is being held, but
19179 * without exact progress values. In the default theme it will
19180 * animate its bar with the contents filling in constantly and back
19181 * to non-filled, in a loop. To start and stop this pulsing
19182 * animation, one has to explicitly call elm_progressbar_pulse().
19184 * @see elm_progressbar_pulse_get()
19185 * @see elm_progressbar_pulse()
19187 * @ingroup Progressbar
19189 EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
19192 * Get whether a given progress bar widget is at "pulsing mode" or
19195 * @param obj The progress bar object
19196 * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
19197 * if it's in the default one (and on errors)
19199 * @ingroup Progressbar
19201 EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19204 * Start/stop a given progress bar "pulsing" animation, if its
19207 * @param obj The progress bar object
19208 * @param state @c EINA_TRUE, to @b start the pulsing animation,
19209 * @c EINA_FALSE to @b stop it
19211 * @note This call won't do anything if @p obj is not under "pulsing mode".
19213 * @see elm_progressbar_pulse_set() for more details.
19215 * @ingroup Progressbar
19217 EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19220 * Set the progress value (in percentage) on a given progress bar
19223 * @param obj The progress bar object
19224 * @param val The progress value (@b must be between @c 0.0 and @c
19227 * Use this call to set progress bar levels.
19229 * @note If you passes a value out of the specified range for @p
19230 * val, it will be interpreted as the @b closest of the @b boundary
19231 * values in the range.
19233 * @ingroup Progressbar
19235 EAPI void elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19238 * Get the progress value (in percentage) on a given progress bar
19241 * @param obj The progress bar object
19242 * @return The value of the progressbar
19244 * @see elm_progressbar_value_set() for more details
19246 * @ingroup Progressbar
19248 EAPI double elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19251 * Set the label of a given progress bar widget
19253 * @param obj The progress bar object
19254 * @param label The text label string, in UTF-8
19256 * @ingroup Progressbar
19257 * @deprecated use elm_object_text_set() instead.
19259 EINA_DEPRECATED EAPI void elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19262 * Get the label of a given progress bar widget
19264 * @param obj The progressbar object
19265 * @return The text label string, in UTF-8
19267 * @ingroup Progressbar
19268 * @deprecated use elm_object_text_set() instead.
19270 EINA_DEPRECATED EAPI const char *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19273 * Set the icon object of a given progress bar widget
19275 * @param obj The progress bar object
19276 * @param icon The icon object
19278 * Use this call to decorate @p obj with an icon next to it.
19280 * @note Once the icon object is set, a previously set one will be
19281 * deleted. If you want to keep that old content object, use the
19282 * elm_progressbar_icon_unset() function.
19284 * @see elm_progressbar_icon_get()
19286 * @ingroup Progressbar
19288 EAPI void elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19291 * Retrieve the icon object set for a given progress bar widget
19293 * @param obj The progress bar object
19294 * @return The icon object's handle, if @p obj had one set, or @c NULL,
19295 * otherwise (and on errors)
19297 * @see elm_progressbar_icon_set() for more details
19299 * @ingroup Progressbar
19301 EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19304 * Unset an icon set on a given progress bar widget
19306 * @param obj The progress bar object
19307 * @return The icon object that was being used, if any was set, or
19308 * @c NULL, otherwise (and on errors)
19310 * This call will unparent and return the icon object which was set
19311 * for this widget, previously, on success.
19313 * @see elm_progressbar_icon_set() for more details
19315 * @ingroup Progressbar
19317 EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19320 * Set the (exact) length of the bar region of a given progress bar
19323 * @param obj The progress bar object
19324 * @param size The length of the progress bar's bar region
19326 * This sets the minimum width (when in horizontal mode) or height
19327 * (when in vertical mode) of the actual bar area of the progress
19328 * bar @p obj. This in turn affects the object's minimum size. Use
19329 * this when you're not setting other size hints expanding on the
19330 * given direction (like weight and alignment hints) and you would
19331 * like it to have a specific size.
19333 * @note Icon, label and unit text around @p obj will require their
19334 * own space, which will make @p obj to require more the @p size,
19337 * @see elm_progressbar_span_size_get()
19339 * @ingroup Progressbar
19341 EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
19344 * Get the length set for the bar region of a given progress bar
19347 * @param obj The progress bar object
19348 * @return The length of the progress bar's bar region
19350 * If that size was not set previously, with
19351 * elm_progressbar_span_size_set(), this call will return @c 0.
19353 * @ingroup Progressbar
19355 EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19358 * Set the format string for a given progress bar widget's units
19361 * @param obj The progress bar object
19362 * @param format The format string for @p obj's units label
19364 * If @c NULL is passed on @p format, it will make @p obj's units
19365 * area to be hidden completely. If not, it'll set the <b>format
19366 * string</b> for the units label's @b text. The units label is
19367 * provided a floating point value, so the units text is up display
19368 * at most one floating point falue. Note that the units label is
19369 * optional. Use a format string such as "%1.2f meters" for
19372 * @note The default format string for a progress bar is an integer
19373 * percentage, as in @c "%.0f %%".
19375 * @see elm_progressbar_unit_format_get()
19377 * @ingroup Progressbar
19379 EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
19382 * Retrieve the format string set for a given progress bar widget's
19385 * @param obj The progress bar object
19386 * @return The format set string for @p obj's units label or
19387 * @c NULL, if none was set (and on errors)
19389 * @see elm_progressbar_unit_format_set() for more details
19391 * @ingroup Progressbar
19393 EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19396 * Set the orientation of a given progress bar widget
19398 * @param obj The progress bar object
19399 * @param horizontal Use @c EINA_TRUE to make @p obj to be
19400 * @b horizontal, @c EINA_FALSE to make it @b vertical
19402 * Use this function to change how your progress bar is to be
19403 * disposed: vertically or horizontally.
19405 * @see elm_progressbar_horizontal_get()
19407 * @ingroup Progressbar
19409 EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19412 * Retrieve the orientation of a given progress bar widget
19414 * @param obj The progress bar object
19415 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
19416 * @c EINA_FALSE if it's @b vertical (and on errors)
19418 * @see elm_progressbar_horizontal_set() for more details
19420 * @ingroup Progressbar
19422 EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19425 * Invert a given progress bar widget's displaying values order
19427 * @param obj The progress bar object
19428 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
19429 * @c EINA_FALSE to bring it back to default, non-inverted values.
19431 * A progress bar may be @b inverted, in which state it gets its
19432 * values inverted, with high values being on the left or top and
19433 * low values on the right or bottom, as opposed to normally have
19434 * the low values on the former and high values on the latter,
19435 * respectively, for horizontal and vertical modes.
19437 * @see elm_progressbar_inverted_get()
19439 * @ingroup Progressbar
19441 EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
19444 * Get whether a given progress bar widget's displaying values are
19447 * @param obj The progress bar object
19448 * @return @c EINA_TRUE, if @p obj has inverted values,
19449 * @c EINA_FALSE otherwise (and on errors)
19451 * @see elm_progressbar_inverted_set() for more details
19453 * @ingroup Progressbar
19455 EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19458 * @defgroup Separator Separator
19460 * @brief Separator is a very thin object used to separate other objects.
19462 * A separator can be vertical or horizontal.
19464 * @ref tutorial_separator is a good example of how to use a separator.
19468 * @brief Add a separator object to @p parent
19470 * @param parent The parent object
19472 * @return The separator object, or NULL upon failure
19474 EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19476 * @brief Set the horizontal mode of a separator object
19478 * @param obj The separator object
19479 * @param horizontal If true, the separator is horizontal
19481 EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19483 * @brief Get the horizontal mode of a separator object
19485 * @param obj The separator object
19486 * @return If true, the separator is horizontal
19488 * @see elm_separator_horizontal_set()
19490 EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19496 * @defgroup Spinner Spinner
19497 * @ingroup Elementary
19499 * @image html img/widget/spinner/preview-00.png
19500 * @image latex img/widget/spinner/preview-00.eps
19502 * A spinner is a widget which allows the user to increase or decrease
19503 * numeric values using arrow buttons, or edit values directly, clicking
19504 * over it and typing the new value.
19506 * By default the spinner will not wrap and has a label
19507 * of "%.0f" (just showing the integer value of the double).
19509 * A spinner has a label that is formatted with floating
19510 * point values and thus accepts a printf-style format string, like
19513 * It also allows specific values to be replaced by pre-defined labels.
19515 * Smart callbacks one can register to:
19517 * - "changed" - Whenever the spinner value is changed.
19518 * - "delay,changed" - A short time after the value is changed by the user.
19519 * This will be called only when the user stops dragging for a very short
19520 * period or when they release their finger/mouse, so it avoids possibly
19521 * expensive reactions to the value change.
19523 * Available styles for it:
19525 * - @c "vertical": up/down buttons at the right side and text left aligned.
19527 * Here is an example on its usage:
19528 * @ref spinner_example
19532 * @addtogroup Spinner
19537 * Add a new spinner widget to the given parent Elementary
19538 * (container) object.
19540 * @param parent The parent object.
19541 * @return a new spinner widget handle or @c NULL, on errors.
19543 * This function inserts a new spinner widget on the canvas.
19548 EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19551 * Set the format string of the displayed label.
19553 * @param obj The spinner object.
19554 * @param fmt The format string for the label display.
19556 * If @c NULL, this sets the format to "%.0f". If not it sets the format
19557 * string for the label text. The label text is provided a floating point
19558 * value, so the label text can display up to 1 floating point value.
19559 * Note that this is optional.
19561 * Use a format string such as "%1.2f meters" for example, and it will
19562 * display values like: "3.14 meters" for a value equal to 3.14159.
19564 * Default is "%0.f".
19566 * @see elm_spinner_label_format_get()
19570 EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
19573 * Get the label format of the spinner.
19575 * @param obj The spinner object.
19576 * @return The text label format string in UTF-8.
19578 * @see elm_spinner_label_format_set() for details.
19582 EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19585 * Set the minimum and maximum values for the spinner.
19587 * @param obj The spinner object.
19588 * @param min The minimum value.
19589 * @param max The maximum value.
19591 * Define the allowed range of values to be selected by the user.
19593 * If actual value is less than @p min, it will be updated to @p min. If it
19594 * is bigger then @p max, will be updated to @p max. Actual value can be
19595 * get with elm_spinner_value_get().
19597 * By default, min is equal to 0, and max is equal to 100.
19599 * @warning Maximum must be greater than minimum.
19601 * @see elm_spinner_min_max_get()
19605 EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
19608 * Get the minimum and maximum values of the spinner.
19610 * @param obj The spinner object.
19611 * @param min Pointer where to store the minimum value.
19612 * @param max Pointer where to store the maximum value.
19614 * @note If only one value is needed, the other pointer can be passed
19617 * @see elm_spinner_min_max_set() for details.
19621 EAPI void elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
19624 * Set the step used to increment or decrement the spinner value.
19626 * @param obj The spinner object.
19627 * @param step The step value.
19629 * This value will be incremented or decremented to the displayed value.
19630 * It will be incremented while the user keep right or top arrow pressed,
19631 * and will be decremented while the user keep left or bottom arrow pressed.
19633 * The interval to increment / decrement can be set with
19634 * elm_spinner_interval_set().
19636 * By default step value is equal to 1.
19638 * @see elm_spinner_step_get()
19642 EAPI void elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
19645 * Get the step used to increment or decrement the spinner value.
19647 * @param obj The spinner object.
19648 * @return The step value.
19650 * @see elm_spinner_step_get() for more details.
19654 EAPI double elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19657 * Set the value the spinner displays.
19659 * @param obj The spinner object.
19660 * @param val The value to be displayed.
19662 * Value will be presented on the label following format specified with
19663 * elm_spinner_format_set().
19665 * @warning The value must to be between min and max values. This values
19666 * are set by elm_spinner_min_max_set().
19668 * @see elm_spinner_value_get().
19669 * @see elm_spinner_format_set().
19670 * @see elm_spinner_min_max_set().
19674 EAPI void elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19677 * Get the value displayed by the spinner.
19679 * @param obj The spinner object.
19680 * @return The value displayed.
19682 * @see elm_spinner_value_set() for details.
19686 EAPI double elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19689 * Set whether the spinner should wrap when it reaches its
19690 * minimum or maximum value.
19692 * @param obj The spinner object.
19693 * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
19696 * Disabled by default. If disabled, when the user tries to increment the
19698 * but displayed value plus step value is bigger than maximum value,
19700 * won't allow it. The same happens when the user tries to decrement it,
19701 * but the value less step is less than minimum value.
19703 * When wrap is enabled, in such situations it will allow these changes,
19704 * but will get the value that would be less than minimum and subtracts
19705 * from maximum. Or add the value that would be more than maximum to
19709 * @li min value = 10
19710 * @li max value = 50
19711 * @li step value = 20
19712 * @li displayed value = 20
19714 * When the user decrement value (using left or bottom arrow), it will
19715 * displays @c 40, because max - (min - (displayed - step)) is
19716 * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
19718 * @see elm_spinner_wrap_get().
19722 EAPI void elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
19725 * Get whether the spinner should wrap when it reaches its
19726 * minimum or maximum value.
19728 * @param obj The spinner object
19729 * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
19730 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
19732 * @see elm_spinner_wrap_set() for details.
19736 EAPI Eina_Bool elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19739 * Set whether the spinner can be directly edited by the user or not.
19741 * @param obj The spinner object.
19742 * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
19743 * don't allow users to edit it directly.
19745 * Spinner objects can have edition @b disabled, in which state they will
19746 * be changed only by arrows.
19747 * Useful for contexts
19748 * where you don't want your users to interact with it writting the value.
19750 * when using special values, the user can see real value instead
19751 * of special label on edition.
19753 * It's enabled by default.
19755 * @see elm_spinner_editable_get()
19759 EAPI void elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
19762 * Get whether the spinner can be directly edited by the user or not.
19764 * @param obj The spinner object.
19765 * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
19766 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
19768 * @see elm_spinner_editable_set() for details.
19772 EAPI Eina_Bool elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19775 * Set a special string to display in the place of the numerical value.
19777 * @param obj The spinner object.
19778 * @param value The value to be replaced.
19779 * @param label The label to be used.
19781 * It's useful for cases when a user should select an item that is
19782 * better indicated by a label than a value. For example, weekdays or months.
19786 * sp = elm_spinner_add(win);
19787 * elm_spinner_min_max_set(sp, 1, 3);
19788 * elm_spinner_special_value_add(sp, 1, "January");
19789 * elm_spinner_special_value_add(sp, 2, "February");
19790 * elm_spinner_special_value_add(sp, 3, "March");
19791 * evas_object_show(sp);
19796 EAPI void elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
19799 * Set the interval on time updates for an user mouse button hold
19800 * on spinner widgets' arrows.
19802 * @param obj The spinner object.
19803 * @param interval The (first) interval value in seconds.
19805 * This interval value is @b decreased while the user holds the
19806 * mouse pointer either incrementing or decrementing spinner's value.
19808 * This helps the user to get to a given value distant from the
19809 * current one easier/faster, as it will start to change quicker and
19810 * quicker on mouse button holds.
19812 * The calculation for the next change interval value, starting from
19813 * the one set with this call, is the previous interval divided by
19814 * @c 1.05, so it decreases a little bit.
19816 * The default starting interval value for automatic changes is
19819 * @see elm_spinner_interval_get()
19823 EAPI void elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
19826 * Get the interval on time updates for an user mouse button hold
19827 * on spinner widgets' arrows.
19829 * @param obj The spinner object.
19830 * @return The (first) interval value, in seconds, set on it.
19832 * @see elm_spinner_interval_set() for more details.
19836 EAPI double elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19843 * @defgroup Index Index
19845 * @image html img/widget/index/preview-00.png
19846 * @image latex img/widget/index/preview-00.eps
19848 * An index widget gives you an index for fast access to whichever
19849 * group of other UI items one might have. It's a list of text
19850 * items (usually letters, for alphabetically ordered access).
19852 * Index widgets are by default hidden and just appear when the
19853 * user clicks over it's reserved area in the canvas. In its
19854 * default theme, it's an area one @ref Fingers "finger" wide on
19855 * the right side of the index widget's container.
19857 * When items on the index are selected, smart callbacks get
19858 * called, so that its user can make other container objects to
19859 * show a given area or child object depending on the index item
19860 * selected. You'd probably be using an index together with @ref
19861 * List "lists", @ref Genlist "generic lists" or @ref Gengrid
19864 * Smart events one can add callbacks for are:
19865 * - @c "changed" - When the selected index item changes. @c
19866 * event_info is the selected item's data pointer.
19867 * - @c "delay,changed" - When the selected index item changes, but
19868 * after a small idling period. @c event_info is the selected
19869 * item's data pointer.
19870 * - @c "selected" - When the user releases a mouse button and
19871 * selects an item. @c event_info is the selected item's data
19873 * - @c "level,up" - when the user moves a finger from the first
19874 * level to the second level
19875 * - @c "level,down" - when the user moves a finger from the second
19876 * level to the first level
19878 * The @c "delay,changed" event is so that it'll wait a small time
19879 * before actually reporting those events and, moreover, just the
19880 * last event happening on those time frames will actually be
19883 * Here are some examples on its usage:
19884 * @li @ref index_example_01
19885 * @li @ref index_example_02
19889 * @addtogroup Index
19893 typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
19896 * Add a new index widget to the given parent Elementary
19897 * (container) object
19899 * @param parent The parent object
19900 * @return a new index widget handle or @c NULL, on errors
19902 * This function inserts a new index widget on the canvas.
19906 EAPI Evas_Object *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19909 * Set whether a given index widget is or not visible,
19912 * @param obj The index object
19913 * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
19915 * Not to be confused with visible as in @c evas_object_show() --
19916 * visible with regard to the widget's auto hiding feature.
19918 * @see elm_index_active_get()
19922 EAPI void elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
19925 * Get whether a given index widget is currently visible or not.
19927 * @param obj The index object
19928 * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
19930 * @see elm_index_active_set() for more details
19934 EAPI Eina_Bool elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19937 * Set the items level for a given index widget.
19939 * @param obj The index object.
19940 * @param level @c 0 or @c 1, the currently implemented levels.
19942 * @see elm_index_item_level_get()
19946 EAPI void elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
19949 * Get the items level set for a given index widget.
19951 * @param obj The index object.
19952 * @return @c 0 or @c 1, which are the levels @p obj might be at.
19954 * @see elm_index_item_level_set() for more information
19958 EAPI int elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19961 * Returns the last selected item's data, for a given index widget.
19963 * @param obj The index object.
19964 * @return The item @b data associated to the last selected item on
19965 * @p obj (or @c NULL, on errors).
19967 * @warning The returned value is @b not an #Elm_Index_Item item
19968 * handle, but the data associated to it (see the @c item parameter
19969 * in elm_index_item_append(), as an example).
19973 EAPI void *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
19976 * Append a new item on a given index widget.
19978 * @param obj The index object.
19979 * @param letter Letter under which the item should be indexed
19980 * @param item The item data to set for the index's item
19982 * Despite the most common usage of the @p letter argument is for
19983 * single char strings, one could use arbitrary strings as index
19986 * @c item will be the pointer returned back on @c "changed", @c
19987 * "delay,changed" and @c "selected" smart events.
19991 EAPI void elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
19994 * Prepend a new item on a given index widget.
19996 * @param obj The index object.
19997 * @param letter Letter under which the item should be indexed
19998 * @param item The item data to set for the index's item
20000 * Despite the most common usage of the @p letter argument is for
20001 * single char strings, one could use arbitrary strings as index
20004 * @c item will be the pointer returned back on @c "changed", @c
20005 * "delay,changed" and @c "selected" smart events.
20009 EAPI void elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20012 * Append a new item, on a given index widget, <b>after the item
20013 * having @p relative as data</b>.
20015 * @param obj The index object.
20016 * @param letter Letter under which the item should be indexed
20017 * @param item The item data to set for the index's item
20018 * @param relative The item data of the index item to be the
20019 * predecessor of this new one
20021 * Despite the most common usage of the @p letter argument is for
20022 * single char strings, one could use arbitrary strings as index
20025 * @c item will be the pointer returned back on @c "changed", @c
20026 * "delay,changed" and @c "selected" smart events.
20028 * @note If @p relative is @c NULL or if it's not found to be data
20029 * set on any previous item on @p obj, this function will behave as
20030 * elm_index_item_append().
20034 EAPI void elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20037 * Prepend a new item, on a given index widget, <b>after the item
20038 * having @p relative as data</b>.
20040 * @param obj The index object.
20041 * @param letter Letter under which the item should be indexed
20042 * @param item The item data to set for the index's item
20043 * @param relative The item data of the index item to be the
20044 * successor of this new one
20046 * Despite the most common usage of the @p letter argument is for
20047 * single char strings, one could use arbitrary strings as index
20050 * @c item will be the pointer returned back on @c "changed", @c
20051 * "delay,changed" and @c "selected" smart events.
20053 * @note If @p relative is @c NULL or if it's not found to be data
20054 * set on any previous item on @p obj, this function will behave as
20055 * elm_index_item_prepend().
20059 EAPI void elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20062 * Insert a new item into the given index widget, using @p cmp_func
20063 * function to sort items (by item handles).
20065 * @param obj The index object.
20066 * @param letter Letter under which the item should be indexed
20067 * @param item The item data to set for the index's item
20068 * @param cmp_func The comparing function to be used to sort index
20069 * items <b>by #Elm_Index_Item item handles</b>
20070 * @param cmp_data_func A @b fallback function to be called for the
20071 * sorting of index items <b>by item data</b>). It will be used
20072 * when @p cmp_func returns @c 0 (equality), which means an index
20073 * item with provided item data already exists. To decide which
20074 * data item should be pointed to by the index item in question, @p
20075 * cmp_data_func will be used. If @p cmp_data_func returns a
20076 * non-negative value, the previous index item data will be
20077 * replaced by the given @p item pointer. If the previous data need
20078 * to be freed, it should be done by the @p cmp_data_func function,
20079 * because all references to it will be lost. If this function is
20080 * not provided (@c NULL is given), index items will be @b
20081 * duplicated, if @p cmp_func returns @c 0.
20083 * Despite the most common usage of the @p letter argument is for
20084 * single char strings, one could use arbitrary strings as index
20087 * @c item will be the pointer returned back on @c "changed", @c
20088 * "delay,changed" and @c "selected" smart events.
20092 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);
20095 * Remove an item from a given index widget, <b>to be referenced by
20096 * it's data value</b>.
20098 * @param obj The index object
20099 * @param item The item's data pointer for the item to be removed
20102 * If a deletion callback is set, via elm_index_item_del_cb_set(),
20103 * that callback function will be called by this one.
20105 * @warning The item to be removed from @p obj will be found via
20106 * its item data pointer, and not by an #Elm_Index_Item handle.
20110 EAPI void elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20113 * Find a given index widget's item, <b>using item data</b>.
20115 * @param obj The index object
20116 * @param item The item data pointed to by the desired index item
20117 * @return The index item handle, if found, or @c NULL otherwise
20121 EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20124 * Removes @b all items from a given index widget.
20126 * @param obj The index object.
20128 * If deletion callbacks are set, via elm_index_item_del_cb_set(),
20129 * that callback function will be called for each item in @p obj.
20133 EAPI void elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20136 * Go to a given items level on a index widget
20138 * @param obj The index object
20139 * @param level The index level (one of @c 0 or @c 1)
20143 EAPI void elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20146 * Return the data associated with a given index widget item
20148 * @param it The index widget item handle
20149 * @return The data associated with @p it
20151 * @see elm_index_item_data_set()
20155 EAPI void *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20158 * Set the data associated with a given index widget item
20160 * @param it The index widget item handle
20161 * @param data The new data pointer to set to @p it
20163 * This sets new item data on @p it.
20165 * @warning The old data pointer won't be touched by this function, so
20166 * the user had better to free that old data himself/herself.
20170 EAPI void elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
20173 * Set the function to be called when a given index widget item is freed.
20175 * @param it The item to set the callback on
20176 * @param func The function to call on the item's deletion
20178 * When called, @p func will have both @c data and @c event_info
20179 * arguments with the @p it item's data value and, naturally, the
20180 * @c obj argument with a handle to the parent index widget.
20184 EAPI void elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
20187 * Get the letter (string) set on a given index widget item.
20189 * @param it The index item handle
20190 * @return The letter string set on @p it
20194 EAPI const char *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20201 * @defgroup Photocam Photocam
20203 * @image html img/widget/photocam/preview-00.png
20204 * @image latex img/widget/photocam/preview-00.eps
20206 * This is a widget specifically for displaying high-resolution digital
20207 * camera photos giving speedy feedback (fast load), low memory footprint
20208 * and zooming and panning as well as fitting logic. It is entirely focused
20209 * on jpeg images, and takes advantage of properties of the jpeg format (via
20210 * evas loader features in the jpeg loader).
20212 * Signals that you can add callbacks for are:
20213 * @li "clicked" - This is called when a user has clicked the photo without
20215 * @li "press" - This is called when a user has pressed down on the photo.
20216 * @li "longpressed" - This is called when a user has pressed down on the
20217 * photo for a long time without dragging around.
20218 * @li "clicked,double" - This is called when a user has double-clicked the
20220 * @li "load" - Photo load begins.
20221 * @li "loaded" - This is called when the image file load is complete for the
20222 * first view (low resolution blurry version).
20223 * @li "load,detail" - Photo detailed data load begins.
20224 * @li "loaded,detail" - This is called when the image file load is complete
20225 * for the detailed image data (full resolution needed).
20226 * @li "zoom,start" - Zoom animation started.
20227 * @li "zoom,stop" - Zoom animation stopped.
20228 * @li "zoom,change" - Zoom changed when using an auto zoom mode.
20229 * @li "scroll" - the content has been scrolled (moved)
20230 * @li "scroll,anim,start" - scrolling animation has started
20231 * @li "scroll,anim,stop" - scrolling animation has stopped
20232 * @li "scroll,drag,start" - dragging the contents around has started
20233 * @li "scroll,drag,stop" - dragging the contents around has stopped
20235 * @ref tutorial_photocam shows the API in action.
20239 * @brief Types of zoom available.
20241 typedef enum _Elm_Photocam_Zoom_Mode
20243 ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
20244 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
20245 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
20246 ELM_PHOTOCAM_ZOOM_MODE_LAST
20247 } Elm_Photocam_Zoom_Mode;
20249 * @brief Add a new Photocam object
20251 * @param parent The parent object
20252 * @return The new object or NULL if it cannot be created
20254 EAPI Evas_Object *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20256 * @brief Set the photo file to be shown
20258 * @param obj The photocam object
20259 * @param file The photo file
20260 * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
20262 * This sets (and shows) the specified file (with a relative or absolute
20263 * path) and will return a load error (same error that
20264 * evas_object_image_load_error_get() will return). The image will change and
20265 * adjust its size at this point and begin a background load process for this
20266 * photo that at some time in the future will be displayed at the full
20269 EAPI Evas_Load_Error elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
20271 * @brief Returns the path of the current image file
20273 * @param obj The photocam object
20274 * @return Returns the path
20276 * @see elm_photocam_file_set()
20278 EAPI const char *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20280 * @brief Set the zoom level of the photo
20282 * @param obj The photocam object
20283 * @param zoom The zoom level to set
20285 * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
20286 * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
20287 * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
20288 * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
20291 EAPI void elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
20293 * @brief Get the zoom level of the photo
20295 * @param obj The photocam object
20296 * @return The current zoom level
20298 * This returns the current zoom level of the photocam object. Note that if
20299 * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
20300 * (which is the default), the zoom level may be changed at any time by the
20301 * photocam object itself to account for photo size and photocam viewpoer
20304 * @see elm_photocam_zoom_set()
20305 * @see elm_photocam_zoom_mode_set()
20307 EAPI double elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20309 * @brief Set the zoom mode
20311 * @param obj The photocam object
20312 * @param mode The desired mode
20314 * This sets the zoom mode to manual or one of several automatic levels.
20315 * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
20316 * elm_photocam_zoom_set() and will stay at that level until changed by code
20317 * or until zoom mode is changed. This is the default mode. The Automatic
20318 * modes will allow the photocam object to automatically adjust zoom mode
20319 * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
20320 * the photo fits EXACTLY inside the scroll frame with no pixels outside this
20321 * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
20322 * pixels within the frame are left unfilled.
20324 EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20326 * @brief Get the zoom mode
20328 * @param obj The photocam object
20329 * @return The current zoom mode
20331 * This gets the current zoom mode of the photocam object.
20333 * @see elm_photocam_zoom_mode_set()
20335 EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20337 * @brief Get the current image pixel width and height
20339 * @param obj The photocam object
20340 * @param w A pointer to the width return
20341 * @param h A pointer to the height return
20343 * This gets the current photo pixel width and height (for the original).
20344 * The size will be returned in the integers @p w and @p h that are pointed
20347 EAPI void elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
20349 * @brief Get the area of the image that is currently shown
20352 * @param x A pointer to the X-coordinate of region
20353 * @param y A pointer to the Y-coordinate of region
20354 * @param w A pointer to the width
20355 * @param h A pointer to the height
20357 * @see elm_photocam_image_region_show()
20358 * @see elm_photocam_image_region_bring_in()
20360 EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
20362 * @brief Set the viewed portion of the image
20364 * @param obj The photocam object
20365 * @param x X-coordinate of region in image original pixels
20366 * @param y Y-coordinate of region in image original pixels
20367 * @param w Width of region in image original pixels
20368 * @param h Height of region in image original pixels
20370 * This shows the region of the image without using animation.
20372 EAPI void elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20374 * @brief Bring in the viewed portion of the image
20376 * @param obj The photocam object
20377 * @param x X-coordinate of region in image original pixels
20378 * @param y Y-coordinate of region in image original pixels
20379 * @param w Width of region in image original pixels
20380 * @param h Height of region in image original pixels
20382 * This shows the region of the image using animation.
20384 EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20386 * @brief Set the paused state for photocam
20388 * @param obj The photocam object
20389 * @param paused The pause state to set
20391 * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
20392 * photocam. The default is off. This will stop zooming using animation on
20393 * zoom levels changes and change instantly. This will stop any existing
20394 * animations that are running.
20396 EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20398 * @brief Get the paused state for photocam
20400 * @param obj The photocam object
20401 * @return The current paused state
20403 * This gets the current paused state for the photocam object.
20405 * @see elm_photocam_paused_set()
20407 EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20409 * @brief Get the internal low-res image used for photocam
20411 * @param obj The photocam object
20412 * @return The internal image object handle, or NULL if none exists
20414 * This gets the internal image object inside photocam. Do not modify it. It
20415 * is for inspection only, and hooking callbacks to. Nothing else. It may be
20416 * deleted at any time as well.
20418 EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20420 * @brief Set the photocam scrolling bouncing.
20422 * @param obj The photocam object
20423 * @param h_bounce bouncing for horizontal
20424 * @param v_bounce bouncing for vertical
20426 EAPI void elm_photocam_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
20428 * @brief Get the photocam scrolling bouncing.
20430 * @param obj The photocam object
20431 * @param h_bounce bouncing for horizontal
20432 * @param v_bounce bouncing for vertical
20434 * @see elm_photocam_bounce_set()
20436 EAPI void elm_photocam_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
20442 * @defgroup Map Map
20443 * @ingroup Elementary
20445 * @image html img/widget/map/preview-00.png
20446 * @image latex img/widget/map/preview-00.eps
20448 * This is a widget specifically for displaying a map. It uses basically
20449 * OpenStreetMap provider http://www.openstreetmap.org/,
20450 * but custom providers can be added.
20452 * It supports some basic but yet nice features:
20453 * @li zoom and scroll
20454 * @li markers with content to be displayed when user clicks over it
20455 * @li group of markers
20458 * Smart callbacks one can listen to:
20460 * - "clicked" - This is called when a user has clicked the map without
20462 * - "press" - This is called when a user has pressed down on the map.
20463 * - "longpressed" - This is called when a user has pressed down on the map
20464 * for a long time without dragging around.
20465 * - "clicked,double" - This is called when a user has double-clicked
20467 * - "load,detail" - Map detailed data load begins.
20468 * - "loaded,detail" - This is called when all currently visible parts of
20469 * the map are loaded.
20470 * - "zoom,start" - Zoom animation started.
20471 * - "zoom,stop" - Zoom animation stopped.
20472 * - "zoom,change" - Zoom changed when using an auto zoom mode.
20473 * - "scroll" - the content has been scrolled (moved).
20474 * - "scroll,anim,start" - scrolling animation has started.
20475 * - "scroll,anim,stop" - scrolling animation has stopped.
20476 * - "scroll,drag,start" - dragging the contents around has started.
20477 * - "scroll,drag,stop" - dragging the contents around has stopped.
20478 * - "downloaded" - This is called when all currently required map images
20480 * - "route,load" - This is called when route request begins.
20481 * - "route,loaded" - This is called when route request ends.
20482 * - "name,load" - This is called when name request begins.
20483 * - "name,loaded- This is called when name request ends.
20485 * Available style for map widget:
20488 * Available style for markers:
20493 * Available style for marker bubble:
20496 * List of examples:
20497 * @li @ref map_example_01
20498 * @li @ref map_example_02
20499 * @li @ref map_example_03
20508 * @enum _Elm_Map_Zoom_Mode
20509 * @typedef Elm_Map_Zoom_Mode
20511 * Set map's zoom behavior. It can be set to manual or automatic.
20513 * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
20515 * Values <b> don't </b> work as bitmask, only one can be choosen.
20517 * @note Valid sizes are 2^zoom, consequently the map may be smaller
20518 * than the scroller view.
20520 * @see elm_map_zoom_mode_set()
20521 * @see elm_map_zoom_mode_get()
20525 typedef enum _Elm_Map_Zoom_Mode
20527 ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
20528 ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
20529 ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
20530 ELM_MAP_ZOOM_MODE_LAST
20531 } Elm_Map_Zoom_Mode;
20534 * @enum _Elm_Map_Route_Sources
20535 * @typedef Elm_Map_Route_Sources
20537 * Set route service to be used. By default used source is
20538 * #ELM_MAP_ROUTE_SOURCE_YOURS.
20540 * @see elm_map_route_source_set()
20541 * @see elm_map_route_source_get()
20545 typedef enum _Elm_Map_Route_Sources
20547 ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
20548 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. */
20549 ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
20550 ELM_MAP_ROUTE_SOURCE_LAST
20551 } Elm_Map_Route_Sources;
20553 typedef enum _Elm_Map_Name_Sources
20555 ELM_MAP_NAME_SOURCE_NOMINATIM,
20556 ELM_MAP_NAME_SOURCE_LAST
20557 } Elm_Map_Name_Sources;
20560 * @enum _Elm_Map_Route_Type
20561 * @typedef Elm_Map_Route_Type
20563 * Set type of transport used on route.
20565 * @see elm_map_route_add()
20569 typedef enum _Elm_Map_Route_Type
20571 ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
20572 ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
20573 ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
20574 ELM_MAP_ROUTE_TYPE_LAST
20575 } Elm_Map_Route_Type;
20578 * @enum _Elm_Map_Route_Method
20579 * @typedef Elm_Map_Route_Method
20581 * Set the routing method, what should be priorized, time or distance.
20583 * @see elm_map_route_add()
20587 typedef enum _Elm_Map_Route_Method
20589 ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
20590 ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
20591 ELM_MAP_ROUTE_METHOD_LAST
20592 } Elm_Map_Route_Method;
20594 typedef enum _Elm_Map_Name_Method
20596 ELM_MAP_NAME_METHOD_SEARCH,
20597 ELM_MAP_NAME_METHOD_REVERSE,
20598 ELM_MAP_NAME_METHOD_LAST
20599 } Elm_Map_Name_Method;
20601 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(). */
20602 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(). */
20603 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(). */
20604 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(). */
20605 typedef struct _Elm_Map_Name Elm_Map_Name; /**< A handle for specific coordinates. */
20606 typedef struct _Elm_Map_Track Elm_Map_Track;
20608 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. */
20609 typedef void (*ElmMapMarkerDelFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
20610 typedef Evas_Object *(*ElmMapMarkerIconGetFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
20611 typedef Evas_Object *(*ElmMapGroupIconGetFunc) (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
20613 typedef char *(*ElmMapModuleSourceFunc) (void);
20614 typedef int (*ElmMapModuleZoomMinFunc) (void);
20615 typedef int (*ElmMapModuleZoomMaxFunc) (void);
20616 typedef char *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
20617 typedef int (*ElmMapModuleRouteSourceFunc) (void);
20618 typedef char *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
20619 typedef char *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
20620 typedef Eina_Bool (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
20621 typedef Eina_Bool (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
20624 * Add a new map widget to the given parent Elementary (container) object.
20626 * @param parent The parent object.
20627 * @return a new map widget handle or @c NULL, on errors.
20629 * This function inserts a new map widget on the canvas.
20633 EAPI Evas_Object *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20636 * Set the zoom level of the map.
20638 * @param obj The map object.
20639 * @param zoom The zoom level to set.
20641 * This sets the zoom level.
20643 * It will respect limits defined by elm_map_source_zoom_min_set() and
20644 * elm_map_source_zoom_max_set().
20646 * By default these values are 0 (world map) and 18 (maximum zoom).
20648 * This function should be used when zoom mode is set to
20649 * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
20650 * with elm_map_zoom_mode_set().
20652 * @see elm_map_zoom_mode_set().
20653 * @see elm_map_zoom_get().
20657 EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
20660 * Get the zoom level of the map.
20662 * @param obj The map object.
20663 * @return The current zoom level.
20665 * This returns the current zoom level of the map object.
20667 * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
20668 * (which is the default), the zoom level may be changed at any time by the
20669 * map object itself to account for map size and map viewport size.
20671 * @see elm_map_zoom_set() for details.
20675 EAPI int elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20678 * Set the zoom mode used by the map object.
20680 * @param obj The map object.
20681 * @param mode The zoom mode of the map, being it one of
20682 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
20683 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
20685 * This sets the zoom mode to manual or one of the automatic levels.
20686 * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
20687 * elm_map_zoom_set() and will stay at that level until changed by code
20688 * or until zoom mode is changed. This is the default mode.
20690 * The Automatic modes will allow the map object to automatically
20691 * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
20692 * adjust zoom so the map fits inside the scroll frame with no pixels
20693 * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
20694 * ensure no pixels within the frame are left unfilled. Do not forget that
20695 * the valid sizes are 2^zoom, consequently the map may be smaller than
20696 * the scroller view.
20698 * @see elm_map_zoom_set()
20702 EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20705 * Get the zoom mode used by the map object.
20707 * @param obj The map object.
20708 * @return The zoom mode of the map, being it one of
20709 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
20710 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
20712 * This function returns the current zoom mode used by the map object.
20714 * @see elm_map_zoom_mode_set() for more details.
20718 EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20721 * Get the current coordinates of the map.
20723 * @param obj The map object.
20724 * @param lon Pointer where to store longitude.
20725 * @param lat Pointer where to store latitude.
20727 * This gets the current center coordinates of the map object. It can be
20728 * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
20730 * @see elm_map_geo_region_bring_in()
20731 * @see elm_map_geo_region_show()
20735 EAPI void elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
20738 * Animatedly bring in given coordinates to the center of the map.
20740 * @param obj The map object.
20741 * @param lon Longitude to center at.
20742 * @param lat Latitude to center at.
20744 * This causes map to jump to the given @p lat and @p lon coordinates
20745 * and show it (by scrolling) in the center of the viewport, if it is not
20746 * already centered. This will use animation to do so and take a period
20747 * of time to complete.
20749 * @see elm_map_geo_region_show() for a function to avoid animation.
20750 * @see elm_map_geo_region_get()
20754 EAPI void elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20757 * Show the given coordinates at the center of the map, @b immediately.
20759 * @param obj The map object.
20760 * @param lon Longitude to center at.
20761 * @param lat Latitude to center at.
20763 * This causes map to @b redraw its viewport's contents to the
20764 * region contining the given @p lat and @p lon, that will be moved to the
20765 * center of the map.
20767 * @see elm_map_geo_region_bring_in() for a function to move with animation.
20768 * @see elm_map_geo_region_get()
20772 EAPI void elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20775 * Pause or unpause the map.
20777 * @param obj The map object.
20778 * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
20781 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20784 * The default is off.
20786 * This will stop zooming using animation, changing zoom levels will
20787 * change instantly. This will stop any existing animations that are running.
20789 * @see elm_map_paused_get()
20793 EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20796 * Get a value whether map is paused or not.
20798 * @param obj The map object.
20799 * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
20800 * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
20802 * This gets the current paused state for the map object.
20804 * @see elm_map_paused_set() for details.
20808 EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20811 * Set to show markers during zoom level changes or not.
20813 * @param obj The map object.
20814 * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
20817 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20820 * The default is off.
20822 * This will stop zooming using animation, changing zoom levels will
20823 * change instantly. This will stop any existing animations that are running.
20825 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20828 * The default is off.
20830 * Enabling it will force the map to stop displaying the markers during
20831 * zoom level changes. Set to on if you have a large number of markers.
20833 * @see elm_map_paused_markers_get()
20837 EAPI void elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20840 * Get a value whether markers will be displayed on zoom level changes or not
20842 * @param obj The map object.
20843 * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
20844 * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
20846 * This gets the current markers paused state for the map object.
20848 * @see elm_map_paused_markers_set() for details.
20852 EAPI Eina_Bool elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20855 * Get the information of downloading status.
20857 * @param obj The map object.
20858 * @param try_num Pointer where to store number of tiles being downloaded.
20859 * @param finish_num Pointer where to store number of tiles successfully
20862 * This gets the current downloading status for the map object, the number
20863 * of tiles being downloaded and the number of tiles already downloaded.
20867 EAPI void elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
20870 * Convert a pixel coordinate (x,y) into a geographic coordinate
20871 * (longitude, latitude).
20873 * @param obj The map object.
20874 * @param x the coordinate.
20875 * @param y the coordinate.
20876 * @param size the size in pixels of the map.
20877 * The map is a square and generally his size is : pow(2.0, zoom)*256.
20878 * @param lon Pointer where to store the longitude that correspond to x.
20879 * @param lat Pointer where to store the latitude that correspond to y.
20881 * @note Origin pixel point is the top left corner of the viewport.
20882 * Map zoom and size are taken on account.
20884 * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
20888 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);
20891 * Convert a geographic coordinate (longitude, latitude) into a pixel
20892 * coordinate (x, y).
20894 * @param obj The map object.
20895 * @param lon the longitude.
20896 * @param lat the latitude.
20897 * @param size the size in pixels of the map. The map is a square
20898 * and generally his size is : pow(2.0, zoom)*256.
20899 * @param x Pointer where to store the horizontal pixel coordinate that
20900 * correspond to the longitude.
20901 * @param y Pointer where to store the vertical pixel coordinate that
20902 * correspond to the latitude.
20904 * @note Origin pixel point is the top left corner of the viewport.
20905 * Map zoom and size are taken on account.
20907 * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
20911 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);
20914 * Convert a geographic coordinate (longitude, latitude) into a name
20917 * @param obj The map object.
20918 * @param lon the longitude.
20919 * @param lat the latitude.
20920 * @return name A #Elm_Map_Name handle for this coordinate.
20922 * To get the string for this address, elm_map_name_address_get()
20925 * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
20929 EAPI Elm_Map_Name *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20932 * Convert a name (address) into a geographic coordinate
20933 * (longitude, latitude).
20935 * @param obj The map object.
20936 * @param name The address.
20937 * @return name A #Elm_Map_Name handle for this address.
20939 * To get the longitude and latitude, elm_map_name_region_get()
20942 * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
20946 EAPI Elm_Map_Name *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
20949 * Convert a pixel coordinate into a rotated pixel coordinate.
20951 * @param obj The map object.
20952 * @param x horizontal coordinate of the point to rotate.
20953 * @param y vertical coordinate of the point to rotate.
20954 * @param cx rotation's center horizontal position.
20955 * @param cy rotation's center vertical position.
20956 * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
20957 * @param xx Pointer where to store rotated x.
20958 * @param yy Pointer where to store rotated y.
20962 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);
20965 * Add a new marker to the map object.
20967 * @param obj The map object.
20968 * @param lon The longitude of the marker.
20969 * @param lat The latitude of the marker.
20970 * @param clas The class, to use when marker @b isn't grouped to others.
20971 * @param clas_group The class group, to use when marker is grouped to others
20972 * @param data The data passed to the callbacks.
20974 * @return The created marker or @c NULL upon failure.
20976 * A marker will be created and shown in a specific point of the map, defined
20977 * by @p lon and @p lat.
20979 * It will be displayed using style defined by @p class when this marker
20980 * is displayed alone (not grouped). A new class can be created with
20981 * elm_map_marker_class_new().
20983 * If the marker is grouped to other markers, it will be displayed with
20984 * style defined by @p class_group. Markers with the same group are grouped
20985 * if they are close. A new group class can be created with
20986 * elm_map_marker_group_class_new().
20988 * Markers created with this method can be deleted with
20989 * elm_map_marker_remove().
20991 * A marker can have associated content to be displayed by a bubble,
20992 * when a user click over it, as well as an icon. These objects will
20993 * be fetch using class' callback functions.
20995 * @see elm_map_marker_class_new()
20996 * @see elm_map_marker_group_class_new()
20997 * @see elm_map_marker_remove()
21001 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);
21004 * Set the maximum numbers of markers' content to be displayed in a group.
21006 * @param obj The map object.
21007 * @param max The maximum numbers of items displayed in a bubble.
21009 * A bubble will be displayed when the user clicks over the group,
21010 * and will place the content of markers that belong to this group
21013 * A group can have a long list of markers, consequently the creation
21014 * of the content of the bubble can be very slow.
21016 * In order to avoid this, a maximum number of items is displayed
21019 * By default this number is 30.
21021 * Marker with the same group class are grouped if they are close.
21023 * @see elm_map_marker_add()
21027 EAPI void elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
21030 * Remove a marker from the map.
21032 * @param marker The marker to remove.
21034 * @see elm_map_marker_add()
21038 EAPI void elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21041 * Get the current coordinates of the marker.
21043 * @param marker marker.
21044 * @param lat Pointer where to store the marker's latitude.
21045 * @param lon Pointer where to store the marker's longitude.
21047 * These values are set when adding markers, with function
21048 * elm_map_marker_add().
21050 * @see elm_map_marker_add()
21054 EAPI void elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
21057 * Animatedly bring in given marker to the center of the map.
21059 * @param marker The marker to center at.
21061 * This causes map to jump to the given @p marker's coordinates
21062 * and show it (by scrolling) in the center of the viewport, if it is not
21063 * already centered. This will use animation to do so and take a period
21064 * of time to complete.
21066 * @see elm_map_marker_show() for a function to avoid animation.
21067 * @see elm_map_marker_region_get()
21071 EAPI void elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21074 * Show the given marker at the center of the map, @b immediately.
21076 * @param marker The marker to center at.
21078 * This causes map to @b redraw its viewport's contents to the
21079 * region contining the given @p marker's coordinates, that will be
21080 * moved to the center of the map.
21082 * @see elm_map_marker_bring_in() for a function to move with animation.
21083 * @see elm_map_markers_list_show() if more than one marker need to be
21085 * @see elm_map_marker_region_get()
21089 EAPI void elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21092 * Move and zoom the map to display a list of markers.
21094 * @param markers A list of #Elm_Map_Marker handles.
21096 * The map will be centered on the center point of the markers in the list.
21097 * Then the map will be zoomed in order to fit the markers using the maximum
21098 * zoom which allows display of all the markers.
21100 * @warning All the markers should belong to the same map object.
21102 * @see elm_map_marker_show() to show a single marker.
21103 * @see elm_map_marker_bring_in()
21107 EAPI void elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
21110 * Get the Evas object returned by the ElmMapMarkerGetFunc callback
21112 * @param marker The marker wich content should be returned.
21113 * @return Return the evas object if it exists, else @c NULL.
21115 * To set callback function #ElmMapMarkerGetFunc for the marker class,
21116 * elm_map_marker_class_get_cb_set() should be used.
21118 * This content is what will be inside the bubble that will be displayed
21119 * when an user clicks over the marker.
21121 * This returns the actual Evas object used to be placed inside
21122 * the bubble. This may be @c NULL, as it may
21123 * not have been created or may have been deleted, at any time, by
21124 * the map. <b>Do not modify this object</b> (move, resize,
21125 * show, hide, etc.), as the map is controlling it. This
21126 * function is for querying, emitting custom signals or hooking
21127 * lower level callbacks for events on that object. Do not delete
21128 * this object under any circumstances.
21132 EAPI Evas_Object *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21135 * Update the marker
21137 * @param marker The marker to be updated.
21139 * If a content is set to this marker, it will call function to delete it,
21140 * #ElmMapMarkerDelFunc, and then will fetch the content again with
21141 * #ElmMapMarkerGetFunc.
21143 * These functions are set for the marker class with
21144 * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
21148 EAPI void elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21151 * Close all the bubbles opened by the user.
21153 * @param obj The map object.
21155 * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
21156 * when the user clicks on a marker.
21158 * This functions is set for the marker class with
21159 * elm_map_marker_class_get_cb_set().
21163 EAPI void elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
21166 * Create a new group class.
21168 * @param obj The map object.
21169 * @return Returns the new group class.
21171 * Each marker must be associated to a group class. Markers in the same
21172 * group are grouped if they are close.
21174 * The group class defines the style of the marker when a marker is grouped
21175 * to others markers. When it is alone, another class will be used.
21177 * A group class will need to be provided when creating a marker with
21178 * elm_map_marker_add().
21180 * Some properties and functions can be set by class, as:
21181 * - style, with elm_map_group_class_style_set()
21182 * - data - to be associated to the group class. It can be set using
21183 * elm_map_group_class_data_set().
21184 * - min zoom to display markers, set with
21185 * elm_map_group_class_zoom_displayed_set().
21186 * - max zoom to group markers, set using
21187 * elm_map_group_class_zoom_grouped_set().
21188 * - visibility - set if markers will be visible or not, set with
21189 * elm_map_group_class_hide_set().
21190 * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
21191 * It can be set using elm_map_group_class_icon_cb_set().
21193 * @see elm_map_marker_add()
21194 * @see elm_map_group_class_style_set()
21195 * @see elm_map_group_class_data_set()
21196 * @see elm_map_group_class_zoom_displayed_set()
21197 * @see elm_map_group_class_zoom_grouped_set()
21198 * @see elm_map_group_class_hide_set()
21199 * @see elm_map_group_class_icon_cb_set()
21203 EAPI Elm_Map_Group_Class *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21206 * Set the marker's style of a group class.
21208 * @param clas The group class.
21209 * @param style The style to be used by markers.
21211 * Each marker must be associated to a group class, and will use the style
21212 * defined by such class when grouped to other markers.
21214 * The following styles are provided by default theme:
21215 * @li @c radio - blue circle
21216 * @li @c radio2 - green circle
21219 * @see elm_map_group_class_new() for more details.
21220 * @see elm_map_marker_add()
21224 EAPI void elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21227 * Set the icon callback function of a group class.
21229 * @param clas The group class.
21230 * @param icon_get The callback function that will return the icon.
21232 * Each marker must be associated to a group class, and it can display a
21233 * custom icon. The function @p icon_get must return this icon.
21235 * @see elm_map_group_class_new() for more details.
21236 * @see elm_map_marker_add()
21240 EAPI void elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21243 * Set the data associated to the group class.
21245 * @param clas The group class.
21246 * @param data The new user data.
21248 * This data will be passed for callback functions, like icon get callback,
21249 * that can be set with elm_map_group_class_icon_cb_set().
21251 * If a data was previously set, the object will lose the pointer for it,
21252 * so if needs to be freed, you must do it yourself.
21254 * @see elm_map_group_class_new() for more details.
21255 * @see elm_map_group_class_icon_cb_set()
21256 * @see elm_map_marker_add()
21260 EAPI void elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
21263 * Set the minimum zoom from where the markers are displayed.
21265 * @param clas The group class.
21266 * @param zoom The minimum zoom.
21268 * Markers only will be displayed when the map is displayed at @p zoom
21271 * @see elm_map_group_class_new() for more details.
21272 * @see elm_map_marker_add()
21276 EAPI void elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21279 * Set the zoom from where the markers are no more grouped.
21281 * @param clas The group class.
21282 * @param zoom The maximum zoom.
21284 * Markers only will be grouped when the map is displayed at
21285 * less than @p zoom.
21287 * @see elm_map_group_class_new() for more details.
21288 * @see elm_map_marker_add()
21292 EAPI void elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21295 * Set if the markers associated to the group class @clas are hidden or not.
21297 * @param clas The group class.
21298 * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
21301 * If @p hide is @c EINA_TRUE the markers will be hidden, but default
21306 EAPI void elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
21309 * Create a new marker class.
21311 * @param obj The map object.
21312 * @return Returns the new group class.
21314 * Each marker must be associated to a class.
21316 * The marker class defines the style of the marker when a marker is
21317 * displayed alone, i.e., not grouped to to others markers. When grouped
21318 * it will use group class style.
21320 * A marker class will need to be provided when creating a marker with
21321 * elm_map_marker_add().
21323 * Some properties and functions can be set by class, as:
21324 * - style, with elm_map_marker_class_style_set()
21325 * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
21326 * It can be set using elm_map_marker_class_icon_cb_set().
21327 * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
21328 * Set using elm_map_marker_class_get_cb_set().
21329 * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
21330 * Set using elm_map_marker_class_del_cb_set().
21332 * @see elm_map_marker_add()
21333 * @see elm_map_marker_class_style_set()
21334 * @see elm_map_marker_class_icon_cb_set()
21335 * @see elm_map_marker_class_get_cb_set()
21336 * @see elm_map_marker_class_del_cb_set()
21340 EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21343 * Set the marker's style of a marker class.
21345 * @param clas The marker class.
21346 * @param style The style to be used by markers.
21348 * Each marker must be associated to a marker class, and will use the style
21349 * defined by such class when alone, i.e., @b not grouped to other markers.
21351 * The following styles are provided by default theme:
21356 * @see elm_map_marker_class_new() for more details.
21357 * @see elm_map_marker_add()
21361 EAPI void elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21364 * Set the icon callback function of a marker class.
21366 * @param clas The marker class.
21367 * @param icon_get The callback function that will return the icon.
21369 * Each marker must be associated to a marker class, and it can display a
21370 * custom icon. The function @p icon_get must return this icon.
21372 * @see elm_map_marker_class_new() for more details.
21373 * @see elm_map_marker_add()
21377 EAPI void elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21380 * Set the bubble content callback function of a marker class.
21382 * @param clas The marker class.
21383 * @param get The callback function that will return the content.
21385 * Each marker must be associated to a marker class, and it can display a
21386 * a content on a bubble that opens when the user click over the marker.
21387 * The function @p get must return this content object.
21389 * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
21392 * @see elm_map_marker_class_new() for more details.
21393 * @see elm_map_marker_class_del_cb_set()
21394 * @see elm_map_marker_add()
21398 EAPI void elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
21401 * Set the callback function used to delete bubble content of a marker class.
21403 * @param clas The marker class.
21404 * @param del The callback function that will delete the content.
21406 * Each marker must be associated to a marker class, and it can display a
21407 * a content on a bubble that opens when the user click over the marker.
21408 * The function to return such content can be set with
21409 * elm_map_marker_class_get_cb_set().
21411 * If this content must be freed, a callback function need to be
21412 * set for that task with this function.
21414 * If this callback is defined it will have to delete (or not) the
21415 * object inside, but if the callback is not defined the object will be
21416 * destroyed with evas_object_del().
21418 * @see elm_map_marker_class_new() for more details.
21419 * @see elm_map_marker_class_get_cb_set()
21420 * @see elm_map_marker_add()
21424 EAPI void elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
21427 * Get the list of available sources.
21429 * @param obj The map object.
21430 * @return The source names list.
21432 * It will provide a list with all available sources, that can be set as
21433 * current source with elm_map_source_name_set(), or get with
21434 * elm_map_source_name_get().
21436 * Available sources:
21442 * @see elm_map_source_name_set() for more details.
21443 * @see elm_map_source_name_get()
21447 EAPI const char **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21450 * Set the source of the map.
21452 * @param obj The map object.
21453 * @param source The source to be used.
21455 * Map widget retrieves images that composes the map from a web service.
21456 * This web service can be set with this method.
21458 * A different service can return a different maps with different
21459 * information and it can use different zoom values.
21461 * The @p source_name need to match one of the names provided by
21462 * elm_map_source_names_get().
21464 * The current source can be get using elm_map_source_name_get().
21466 * @see elm_map_source_names_get()
21467 * @see elm_map_source_name_get()
21472 EAPI void elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
21475 * Get the name of currently used source.
21477 * @param obj The map object.
21478 * @return Returns the name of the source in use.
21480 * @see elm_map_source_name_set() for more details.
21484 EAPI const char *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21487 * Set the source of the route service to be used by the map.
21489 * @param obj The map object.
21490 * @param source The route service to be used, being it one of
21491 * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
21492 * and #ELM_MAP_ROUTE_SOURCE_ORS.
21494 * Each one has its own algorithm, so the route retrieved may
21495 * differ depending on the source route. Now, only the default is working.
21497 * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
21498 * http://www.yournavigation.org/.
21500 * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
21501 * assumptions. Its routing core is based on Contraction Hierarchies.
21503 * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
21505 * @see elm_map_route_source_get().
21509 EAPI void elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
21512 * Get the current route source.
21514 * @param obj The map object.
21515 * @return The source of the route service used by the map.
21517 * @see elm_map_route_source_set() for details.
21521 EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21524 * Set the minimum zoom of the source.
21526 * @param obj The map object.
21527 * @param zoom New minimum zoom value to be used.
21529 * By default, it's 0.
21533 EAPI void elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21536 * Get the minimum zoom of the source.
21538 * @param obj The map object.
21539 * @return Returns the minimum zoom of the source.
21541 * @see elm_map_source_zoom_min_set() for details.
21545 EAPI int elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21548 * Set the maximum zoom of the source.
21550 * @param obj The map object.
21551 * @param zoom New maximum zoom value to be used.
21553 * By default, it's 18.
21557 EAPI void elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21560 * Get the maximum zoom of the source.
21562 * @param obj The map object.
21563 * @return Returns the maximum zoom of the source.
21565 * @see elm_map_source_zoom_min_set() for details.
21569 EAPI int elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21572 * Set the user agent used by the map object to access routing services.
21574 * @param obj The map object.
21575 * @param user_agent The user agent to be used by the map.
21577 * User agent is a client application implementing a network protocol used
21578 * in communications within a client–server distributed computing system
21580 * The @p user_agent identification string will transmitted in a header
21581 * field @c User-Agent.
21583 * @see elm_map_user_agent_get()
21587 EAPI void elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
21590 * Get the user agent used by the map object.
21592 * @param obj The map object.
21593 * @return The user agent identification string used by the map.
21595 * @see elm_map_user_agent_set() for details.
21599 EAPI const char *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21602 * Add a new route to the map object.
21604 * @param obj The map object.
21605 * @param type The type of transport to be considered when tracing a route.
21606 * @param method The routing method, what should be priorized.
21607 * @param flon The start longitude.
21608 * @param flat The start latitude.
21609 * @param tlon The destination longitude.
21610 * @param tlat The destination latitude.
21612 * @return The created route or @c NULL upon failure.
21614 * A route will be traced by point on coordinates (@p flat, @p flon)
21615 * to point on coordinates (@p tlat, @p tlon), using the route service
21616 * set with elm_map_route_source_set().
21618 * It will take @p type on consideration to define the route,
21619 * depending if the user will be walking or driving, the route may vary.
21620 * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
21621 * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
21623 * Another parameter is what the route should priorize, the minor distance
21624 * or the less time to be spend on the route. So @p method should be one
21625 * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
21627 * Routes created with this method can be deleted with
21628 * elm_map_route_remove(), colored with elm_map_route_color_set(),
21629 * and distance can be get with elm_map_route_distance_get().
21631 * @see elm_map_route_remove()
21632 * @see elm_map_route_color_set()
21633 * @see elm_map_route_distance_get()
21634 * @see elm_map_route_source_set()
21638 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);
21641 * Remove a route from the map.
21643 * @param route The route to remove.
21645 * @see elm_map_route_add()
21649 EAPI void elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21652 * Set the route color.
21654 * @param route The route object.
21655 * @param r Red channel value, from 0 to 255.
21656 * @param g Green channel value, from 0 to 255.
21657 * @param b Blue channel value, from 0 to 255.
21658 * @param a Alpha channel value, from 0 to 255.
21660 * It uses an additive color model, so each color channel represents
21661 * how much of each primary colors must to be used. 0 represents
21662 * ausence of this color, so if all of the three are set to 0,
21663 * the color will be black.
21665 * These component values should be integers in the range 0 to 255,
21666 * (single 8-bit byte).
21668 * This sets the color used for the route. By default, it is set to
21669 * solid red (r = 255, g = 0, b = 0, a = 255).
21671 * For alpha channel, 0 represents completely transparent, and 255, opaque.
21673 * @see elm_map_route_color_get()
21677 EAPI void elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
21680 * Get the route color.
21682 * @param route The route object.
21683 * @param r Pointer where to store the red channel value.
21684 * @param g Pointer where to store the green channel value.
21685 * @param b Pointer where to store the blue channel value.
21686 * @param a Pointer where to store the alpha channel value.
21688 * @see elm_map_route_color_set() for details.
21692 EAPI void elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
21695 * Get the route distance in kilometers.
21697 * @param route The route object.
21698 * @return The distance of route (unit : km).
21702 EAPI double elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21705 * Get the information of route nodes.
21707 * @param route The route object.
21708 * @return Returns a string with the nodes of route.
21712 EAPI const char *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21715 * Get the information of route waypoint.
21717 * @param route the route object.
21718 * @return Returns a string with information about waypoint of route.
21722 EAPI const char *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21725 * Get the address of the name.
21727 * @param name The name handle.
21728 * @return Returns the address string of @p name.
21730 * This gets the coordinates of the @p name, created with one of the
21731 * conversion functions.
21733 * @see elm_map_utils_convert_name_into_coord()
21734 * @see elm_map_utils_convert_coord_into_name()
21738 EAPI const char *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
21741 * Get the current coordinates of the name.
21743 * @param name The name handle.
21744 * @param lat Pointer where to store the latitude.
21745 * @param lon Pointer where to store The longitude.
21747 * This gets the coordinates of the @p name, created with one of the
21748 * conversion functions.
21750 * @see elm_map_utils_convert_name_into_coord()
21751 * @see elm_map_utils_convert_coord_into_name()
21755 EAPI void elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
21758 * Remove a name from the map.
21760 * @param name The name to remove.
21762 * Basically the struct handled by @p name will be freed, so convertions
21763 * between address and coordinates will be lost.
21765 * @see elm_map_utils_convert_name_into_coord()
21766 * @see elm_map_utils_convert_coord_into_name()
21770 EAPI void elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
21775 * @param obj The map object.
21776 * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
21777 * @param cx Rotation's center horizontal position.
21778 * @param cy Rotation's center vertical position.
21780 * @see elm_map_rotate_get()
21784 EAPI void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
21787 * Get the rotate degree of the map
21789 * @param obj The map object
21790 * @param degree Pointer where to store degrees from 0.0 to 360.0
21791 * to rotate arount Z axis.
21792 * @param cx Pointer where to store rotation's center horizontal position.
21793 * @param cy Pointer where to store rotation's center vertical position.
21795 * @see elm_map_rotate_set() to set map rotation.
21799 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);
21802 * Enable or disable mouse wheel to be used to zoom in / out the map.
21804 * @param obj The map object.
21805 * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
21808 * Mouse wheel can be used for the user to zoom in or zoom out the map.
21810 * It's disabled by default.
21812 * @see elm_map_wheel_disabled_get()
21816 EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
21819 * Get a value whether mouse wheel is enabled or not.
21821 * @param obj The map object.
21822 * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
21823 * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21825 * Mouse wheel can be used for the user to zoom in or zoom out the map.
21827 * @see elm_map_wheel_disabled_set() for details.
21831 EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21835 * Add a track on the map
21837 * @param obj The map object.
21838 * @param emap The emap route object.
21839 * @return The route object. This is an elm object of type Route.
21841 * @see elm_route_add() for details.
21845 EAPI Evas_Object *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
21849 * Remove a track from the map
21851 * @param obj The map object.
21852 * @param route The track to remove.
21856 EAPI void elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
21863 EAPI Evas_Object *elm_route_add(Evas_Object *parent);
21865 EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
21867 EAPI double elm_route_lon_min_get(Evas_Object *obj);
21868 EAPI double elm_route_lat_min_get(Evas_Object *obj);
21869 EAPI double elm_route_lon_max_get(Evas_Object *obj);
21870 EAPI double elm_route_lat_max_get(Evas_Object *obj);
21874 * @defgroup Panel Panel
21876 * @image html img/widget/panel/preview-00.png
21877 * @image latex img/widget/panel/preview-00.eps
21879 * @brief A panel is a type of animated container that contains subobjects.
21880 * It can be expanded or contracted by clicking the button on it's edge.
21882 * Orientations are as follows:
21883 * @li ELM_PANEL_ORIENT_TOP
21884 * @li ELM_PANEL_ORIENT_LEFT
21885 * @li ELM_PANEL_ORIENT_RIGHT
21887 * @ref tutorial_panel shows one way to use this widget.
21890 typedef enum _Elm_Panel_Orient
21892 ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
21893 ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
21894 ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
21895 ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
21896 } Elm_Panel_Orient;
21898 * @brief Adds a panel object
21900 * @param parent The parent object
21902 * @return The panel object, or NULL on failure
21904 EAPI Evas_Object *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21906 * @brief Sets the orientation of the panel
21908 * @param parent The parent object
21909 * @param orient The panel orientation. Can be one of the following:
21910 * @li ELM_PANEL_ORIENT_TOP
21911 * @li ELM_PANEL_ORIENT_LEFT
21912 * @li ELM_PANEL_ORIENT_RIGHT
21914 * Sets from where the panel will (dis)appear.
21916 EAPI void elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
21918 * @brief Get the orientation of the panel.
21920 * @param obj The panel object
21921 * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
21923 EAPI Elm_Panel_Orient elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21925 * @brief Set the content of the panel.
21927 * @param obj The panel object
21928 * @param content The panel content
21930 * Once the content object is set, a previously set one will be deleted.
21931 * If you want to keep that old content object, use the
21932 * elm_panel_content_unset() function.
21934 EAPI void elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
21936 * @brief Get the content of the panel.
21938 * @param obj The panel object
21939 * @return The content that is being used
21941 * Return the content object which is set for this widget.
21943 * @see elm_panel_content_set()
21945 EAPI Evas_Object *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21947 * @brief Unset the content of the panel.
21949 * @param obj The panel object
21950 * @return The content that was being used
21952 * Unparent and return the content object which was set for this widget.
21954 * @see elm_panel_content_set()
21956 EAPI Evas_Object *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21958 * @brief Set the state of the panel.
21960 * @param obj The panel object
21961 * @param hidden If true, the panel will run the animation to contract
21963 EAPI void elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
21965 * @brief Get the state of the panel.
21967 * @param obj The panel object
21968 * @param hidden If true, the panel is in the "hide" state
21970 EAPI Eina_Bool elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21972 * @brief Toggle the hidden state of the panel from code
21974 * @param obj The panel object
21976 EAPI void elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
21982 * @defgroup Panes Panes
21983 * @ingroup Elementary
21985 * @image html img/widget/panes/preview-00.png
21986 * @image latex img/widget/panes/preview-00.eps width=\textwidth
21988 * @image html img/panes.png
21989 * @image latex img/panes.eps width=\textwidth
21991 * The panes adds a dragable bar between two contents. When dragged
21992 * this bar will resize contents size.
21994 * Panes can be displayed vertically or horizontally, and contents
21995 * size proportion can be customized (homogeneous by default).
21997 * Smart callbacks one can listen to:
21998 * - "press" - The panes has been pressed (button wasn't released yet).
21999 * - "unpressed" - The panes was released after being pressed.
22000 * - "clicked" - The panes has been clicked>
22001 * - "clicked,double" - The panes has been double clicked
22003 * Available styles for it:
22006 * Here is an example on its usage:
22007 * @li @ref panes_example
22011 * @addtogroup Panes
22016 * Add a new panes widget to the given parent Elementary
22017 * (container) object.
22019 * @param parent The parent object.
22020 * @return a new panes widget handle or @c NULL, on errors.
22022 * This function inserts a new panes widget on the canvas.
22026 EAPI Evas_Object *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22029 * Set the left content of the panes widget.
22031 * @param obj The panes object.
22032 * @param content The new left content object.
22034 * Once the content object is set, a previously set one will be deleted.
22035 * If you want to keep that old content object, use the
22036 * elm_panes_content_left_unset() function.
22038 * If panes is displayed vertically, left content will be displayed at
22041 * @see elm_panes_content_left_get()
22042 * @see elm_panes_content_right_set() to set content on the other side.
22046 EAPI void elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22049 * Set the right content of the panes widget.
22051 * @param obj The panes object.
22052 * @param content The new right content object.
22054 * Once the content object is set, a previously set one will be deleted.
22055 * If you want to keep that old content object, use the
22056 * elm_panes_content_right_unset() function.
22058 * If panes is displayed vertically, left content will be displayed at
22061 * @see elm_panes_content_right_get()
22062 * @see elm_panes_content_left_set() to set content on the other side.
22066 EAPI void elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22069 * Get the left content of the panes.
22071 * @param obj The panes object.
22072 * @return The left content object that is being used.
22074 * Return the left content object which is set for this widget.
22076 * @see elm_panes_content_left_set() for details.
22080 EAPI Evas_Object *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22083 * Get the right content of the panes.
22085 * @param obj The panes object
22086 * @return The right content object that is being used
22088 * Return the right content object which is set for this widget.
22090 * @see elm_panes_content_right_set() for details.
22094 EAPI Evas_Object *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22097 * Unset the left content used for the panes.
22099 * @param obj The panes object.
22100 * @return The left content object that was being used.
22102 * Unparent and return the left content object which was set for this widget.
22104 * @see elm_panes_content_left_set() for details.
22105 * @see elm_panes_content_left_get().
22109 EAPI Evas_Object *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22112 * Unset the right content used for the panes.
22114 * @param obj The panes object.
22115 * @return The right content object that was being used.
22117 * Unparent and return the right content object which was set for this
22120 * @see elm_panes_content_right_set() for details.
22121 * @see elm_panes_content_right_get().
22125 EAPI Evas_Object *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22128 * Get the size proportion of panes widget's left side.
22130 * @param obj The panes object.
22131 * @return float value between 0.0 and 1.0 representing size proportion
22134 * @see elm_panes_content_left_size_set() for more details.
22138 EAPI double elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22141 * Set the size proportion of panes widget's left side.
22143 * @param obj The panes object.
22144 * @param size Value between 0.0 and 1.0 representing size proportion
22147 * By default it's homogeneous, i.e., both sides have the same size.
22149 * If something different is required, it can be set with this function.
22150 * For example, if the left content should be displayed over
22151 * 75% of the panes size, @p size should be passed as @c 0.75.
22152 * This way, right content will be resized to 25% of panes size.
22154 * If displayed vertically, left content is displayed at top, and
22155 * right content at bottom.
22157 * @note This proportion will change when user drags the panes bar.
22159 * @see elm_panes_content_left_size_get()
22163 EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
22166 * Set the orientation of a given panes widget.
22168 * @param obj The panes object.
22169 * @param horizontal Use @c EINA_TRUE to make @p obj to be
22170 * @b horizontal, @c EINA_FALSE to make it @b vertical.
22172 * Use this function to change how your panes is to be
22173 * disposed: vertically or horizontally.
22175 * By default it's displayed horizontally.
22177 * @see elm_panes_horizontal_get()
22181 EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22184 * Retrieve the orientation of a given panes widget.
22186 * @param obj The panes object.
22187 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22188 * @c EINA_FALSE if it's @b vertical (and on errors).
22190 * @see elm_panes_horizontal_set() for more details.
22194 EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22201 * @defgroup Flip Flip
22203 * @image html img/widget/flip/preview-00.png
22204 * @image latex img/widget/flip/preview-00.eps
22206 * This widget holds 2 content objects(Evas_Object): one on the front and one
22207 * on the back. It allows you to flip from front to back and vice-versa using
22208 * various animations.
22210 * If either the front or back contents are not set the flip will treat that
22211 * as transparent. So if you wore to set the front content but not the back,
22212 * and then call elm_flip_go() you would see whatever is below the flip.
22214 * For a list of supported animations see elm_flip_go().
22216 * Signals that you can add callbacks for are:
22217 * "animate,begin" - when a flip animation was started
22218 * "animate,done" - when a flip animation is finished
22220 * @ref tutorial_flip show how to use most of the API.
22224 typedef enum _Elm_Flip_Mode
22226 ELM_FLIP_ROTATE_Y_CENTER_AXIS,
22227 ELM_FLIP_ROTATE_X_CENTER_AXIS,
22228 ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
22229 ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
22230 ELM_FLIP_CUBE_LEFT,
22231 ELM_FLIP_CUBE_RIGHT,
22233 ELM_FLIP_CUBE_DOWN,
22234 ELM_FLIP_PAGE_LEFT,
22235 ELM_FLIP_PAGE_RIGHT,
22239 typedef enum _Elm_Flip_Interaction
22241 ELM_FLIP_INTERACTION_NONE,
22242 ELM_FLIP_INTERACTION_ROTATE,
22243 ELM_FLIP_INTERACTION_CUBE,
22244 ELM_FLIP_INTERACTION_PAGE
22245 } Elm_Flip_Interaction;
22246 typedef enum _Elm_Flip_Direction
22248 ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
22249 ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
22250 ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
22251 ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
22252 } Elm_Flip_Direction;
22254 * @brief Add a new flip to the parent
22256 * @param parent The parent object
22257 * @return The new object or NULL if it cannot be created
22259 EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22261 * @brief Set the front content of the flip widget.
22263 * @param obj The flip object
22264 * @param content The new front content object
22266 * Once the content object is set, a previously set one will be deleted.
22267 * If you want to keep that old content object, use the
22268 * elm_flip_content_front_unset() function.
22270 EAPI void elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22272 * @brief Set the back content of the flip widget.
22274 * @param obj The flip object
22275 * @param content The new back content object
22277 * Once the content object is set, a previously set one will be deleted.
22278 * If you want to keep that old content object, use the
22279 * elm_flip_content_back_unset() function.
22281 EAPI void elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22283 * @brief Get the front content used for the flip
22285 * @param obj The flip object
22286 * @return The front content object that is being used
22288 * Return the front content object which is set for this widget.
22290 EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22292 * @brief Get the back content used for the flip
22294 * @param obj The flip object
22295 * @return The back content object that is being used
22297 * Return the back content object which is set for this widget.
22299 EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22301 * @brief Unset the front content used for the flip
22303 * @param obj The flip object
22304 * @return The front content object that was being used
22306 * Unparent and return the front content object which was set for this widget.
22308 EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22310 * @brief Unset the back content used for the flip
22312 * @param obj The flip object
22313 * @return The back content object that was being used
22315 * Unparent and return the back content object which was set for this widget.
22317 EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22319 * @brief Get flip front visibility state
22321 * @param obj The flip objct
22322 * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
22325 EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22327 * @brief Set flip perspective
22329 * @param obj The flip object
22330 * @param foc The coordinate to set the focus on
22331 * @param x The X coordinate
22332 * @param y The Y coordinate
22334 * @warning This function currently does nothing.
22336 EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
22338 * @brief Runs the flip animation
22340 * @param obj The flip object
22341 * @param mode The mode type
22343 * Flips the front and back contents using the @p mode animation. This
22344 * efectively hides the currently visible content and shows the hidden one.
22346 * There a number of possible animations to use for the flipping:
22347 * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
22348 * around a horizontal axis in the middle of its height, the other content
22349 * is shown as the other side of the flip.
22350 * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
22351 * around a vertical axis in the middle of its width, the other content is
22352 * shown as the other side of the flip.
22353 * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
22354 * around a diagonal axis in the middle of its width, the other content is
22355 * shown as the other side of the flip.
22356 * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
22357 * around a diagonal axis in the middle of its height, the other content is
22358 * shown as the other side of the flip.
22359 * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
22360 * as if the flip was a cube, the other content is show as the right face of
22362 * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
22363 * right as if the flip was a cube, the other content is show as the left
22364 * face of the cube.
22365 * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
22366 * flip was a cube, the other content is show as the bottom face of the cube.
22367 * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
22368 * the flip was a cube, the other content is show as the upper face of the
22370 * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
22371 * if the flip was a book, the other content is shown as the page below that.
22372 * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
22373 * as if the flip was a book, the other content is shown as the page below
22375 * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
22376 * flip was a book, the other content is shown as the page below that.
22377 * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
22378 * flip was a book, the other content is shown as the page below that.
22380 * @image html elm_flip.png
22381 * @image latex elm_flip.eps width=\textwidth
22383 EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
22385 * @brief Set the interactive flip mode
22387 * @param obj The flip object
22388 * @param mode The interactive flip mode to use
22390 * This sets if the flip should be interactive (allow user to click and
22391 * drag a side of the flip to reveal the back page and cause it to flip).
22392 * By default a flip is not interactive. You may also need to set which
22393 * sides of the flip are "active" for flipping and how much space they use
22394 * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
22395 * and elm_flip_interacton_direction_hitsize_set()
22397 * The four avilable mode of interaction are:
22398 * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
22399 * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
22400 * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
22401 * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
22403 * @note ELM_FLIP_INTERACTION_ROTATE won't cause
22404 * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
22405 * happen, those can only be acheived with elm_flip_go();
22407 EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
22409 * @brief Get the interactive flip mode
22411 * @param obj The flip object
22412 * @return The interactive flip mode
22414 * Returns the interactive flip mode set by elm_flip_interaction_set()
22416 EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
22418 * @brief Set which directions of the flip respond to interactive flip
22420 * @param obj The flip object
22421 * @param dir The direction to change
22422 * @param enabled If that direction is enabled or not
22424 * By default all directions are disabled, so you may want to enable the
22425 * desired directions for flipping if you need interactive flipping. You must
22426 * call this function once for each direction that should be enabled.
22428 * @see elm_flip_interaction_set()
22430 EAPI void elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
22432 * @brief Get the enabled state of that flip direction
22434 * @param obj The flip object
22435 * @param dir The direction to check
22436 * @return If that direction is enabled or not
22438 * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
22440 * @see elm_flip_interaction_set()
22442 EAPI Eina_Bool elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
22444 * @brief Set the amount of the flip that is sensitive to interactive flip
22446 * @param obj The flip object
22447 * @param dir The direction to modify
22448 * @param hitsize The amount of that dimension (0.0 to 1.0) to use
22450 * Set the amount of the flip that is sensitive to interactive flip, with 0
22451 * representing no area in the flip and 1 representing the entire flip. There
22452 * is however a consideration to be made in that the area will never be
22453 * smaller than the finger size set(as set in your Elementary configuration).
22455 * @see elm_flip_interaction_set()
22457 EAPI void elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
22459 * @brief Get the amount of the flip that is sensitive to interactive flip
22461 * @param obj The flip object
22462 * @param dir The direction to check
22463 * @return The size set for that direction
22465 * Returns the amount os sensitive area set by
22466 * elm_flip_interacton_direction_hitsize_set().
22468 EAPI double elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
22473 /* scrolledentry */
22474 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22475 EINA_DEPRECATED EAPI void elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
22476 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22477 EINA_DEPRECATED EAPI void elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
22478 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22479 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22480 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22481 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22482 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22483 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22484 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22485 EINA_DEPRECATED EAPI void elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
22486 EINA_DEPRECATED EAPI void elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22487 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22488 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
22489 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
22490 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22491 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22492 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
22493 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
22494 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22495 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22496 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22497 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22498 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
22499 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
22500 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22501 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22502 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22503 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
22504 EINA_DEPRECATED EAPI int elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22505 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
22506 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
22507 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
22508 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22509 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);
22510 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22511 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22512 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);
22513 EINA_DEPRECATED EAPI void elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22514 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);
22515 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
22516 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22517 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22518 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22519 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
22520 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22521 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22522 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22523 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);
22524 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);
22525 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);
22526 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);
22527 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);
22528 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);
22529 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
22530 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
22531 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
22532 EINA_DEPRECATED EAPI void elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
22533 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22534 EINA_DEPRECATED EAPI void elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
22535 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
22538 * @defgroup Conformant Conformant
22539 * @ingroup Elementary
22541 * @image html img/widget/conformant/preview-00.png
22542 * @image latex img/widget/conformant/preview-00.eps width=\textwidth
22544 * @image html img/conformant.png
22545 * @image latex img/conformant.eps width=\textwidth
22547 * The aim is to provide a widget that can be used in elementary apps to
22548 * account for space taken up by the indicator, virtual keypad & softkey
22549 * windows when running the illume2 module of E17.
22551 * So conformant content will be sized and positioned considering the
22552 * space required for such stuff, and when they popup, as a keyboard
22553 * shows when an entry is selected, conformant content won't change.
22555 * Available styles for it:
22558 * See how to use this widget in this example:
22559 * @ref conformant_example
22563 * @addtogroup Conformant
22568 * Add a new conformant widget to the given parent Elementary
22569 * (container) object.
22571 * @param parent The parent object.
22572 * @return A new conformant widget handle or @c NULL, on errors.
22574 * This function inserts a new conformant widget on the canvas.
22576 * @ingroup Conformant
22578 EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22581 * Set the content of the conformant widget.
22583 * @param obj The conformant object.
22584 * @param content The content to be displayed by the conformant.
22586 * Content will be sized and positioned considering the space required
22587 * to display a virtual keyboard. So it won't fill all the conformant
22588 * size. This way is possible to be sure that content won't resize
22589 * or be re-positioned after the keyboard is displayed.
22591 * Once the content object is set, a previously set one will be deleted.
22592 * If you want to keep that old content object, use the
22593 * elm_conformat_content_unset() function.
22595 * @see elm_conformant_content_unset()
22596 * @see elm_conformant_content_get()
22598 * @ingroup Conformant
22600 EAPI void elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22603 * Get the content of the conformant widget.
22605 * @param obj The conformant object.
22606 * @return The content that is being used.
22608 * Return the content object which is set for this widget.
22609 * It won't be unparent from conformant. For that, use
22610 * elm_conformant_content_unset().
22612 * @see elm_conformant_content_set() for more details.
22613 * @see elm_conformant_content_unset()
22615 * @ingroup Conformant
22617 EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22620 * Unset the content of the conformant widget.
22622 * @param obj The conformant object.
22623 * @return The content that was being used.
22625 * Unparent and return the content object which was set for this widget.
22627 * @see elm_conformant_content_set() for more details.
22629 * @ingroup Conformant
22631 EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22634 * Returns the Evas_Object that represents the content area.
22636 * @param obj The conformant object.
22637 * @return The content area of the widget.
22639 * @ingroup Conformant
22641 EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22648 * @defgroup Mapbuf Mapbuf
22649 * @ingroup Elementary
22651 * @image html img/widget/mapbuf/preview-00.png
22652 * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
22654 * This holds one content object and uses an Evas Map of transformation
22655 * points to be later used with this content. So the content will be
22656 * moved, resized, etc as a single image. So it will improve performance
22657 * when you have a complex interafce, with a lot of elements, and will
22658 * need to resize or move it frequently (the content object and its
22661 * See how to use this widget in this example:
22662 * @ref mapbuf_example
22666 * @addtogroup Mapbuf
22671 * Add a new mapbuf widget to the given parent Elementary
22672 * (container) object.
22674 * @param parent The parent object.
22675 * @return A new mapbuf widget handle or @c NULL, on errors.
22677 * This function inserts a new mapbuf widget on the canvas.
22681 EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22684 * Set the content of the mapbuf.
22686 * @param obj The mapbuf object.
22687 * @param content The content that will be filled in this mapbuf object.
22689 * Once the content object is set, a previously set one will be deleted.
22690 * If you want to keep that old content object, use the
22691 * elm_mapbuf_content_unset() function.
22693 * To enable map, elm_mapbuf_enabled_set() should be used.
22697 EAPI void elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22700 * Get the content of the mapbuf.
22702 * @param obj The mapbuf object.
22703 * @return The content that is being used.
22705 * Return the content object which is set for this widget.
22707 * @see elm_mapbuf_content_set() for details.
22711 EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22714 * Unset the content of the mapbuf.
22716 * @param obj The mapbuf object.
22717 * @return The content that was being used.
22719 * Unparent and return the content object which was set for this widget.
22721 * @see elm_mapbuf_content_set() for details.
22725 EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22728 * Enable or disable the map.
22730 * @param obj The mapbuf object.
22731 * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
22733 * This enables the map that is set or disables it. On enable, the object
22734 * geometry will be saved, and the new geometry will change (position and
22735 * size) to reflect the map geometry set.
22737 * Also, when enabled, alpha and smooth states will be used, so if the
22738 * content isn't solid, alpha should be enabled, for example, otherwise
22739 * a black retangle will fill the content.
22741 * When disabled, the stored map will be freed and geometry prior to
22742 * enabling the map will be restored.
22744 * It's disabled by default.
22746 * @see elm_mapbuf_alpha_set()
22747 * @see elm_mapbuf_smooth_set()
22751 EAPI void elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
22754 * Get a value whether map is enabled or not.
22756 * @param obj The mapbuf object.
22757 * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
22758 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22760 * @see elm_mapbuf_enabled_set() for details.
22764 EAPI Eina_Bool elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22767 * Enable or disable smooth map rendering.
22769 * @param obj The mapbuf object.
22770 * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
22773 * This sets smoothing for map rendering. If the object is a type that has
22774 * its own smoothing settings, then both the smooth settings for this object
22775 * and the map must be turned off.
22777 * By default smooth maps are enabled.
22781 EAPI void elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
22784 * Get a value whether smooth map rendering is enabled or not.
22786 * @param obj The mapbuf object.
22787 * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
22788 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22790 * @see elm_mapbuf_smooth_set() for details.
22794 EAPI Eina_Bool elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22797 * Set or unset alpha flag for map rendering.
22799 * @param obj The mapbuf object.
22800 * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
22803 * This sets alpha flag for map rendering. If the object is a type that has
22804 * its own alpha settings, then this will take precedence. Only image objects
22805 * have this currently. It stops alpha blending of the map area, and is
22806 * useful if you know the object and/or all sub-objects is 100% solid.
22808 * Alpha is enabled by default.
22812 EAPI void elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
22815 * Get a value whether alpha blending is enabled or not.
22817 * @param obj The mapbuf object.
22818 * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
22819 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22821 * @see elm_mapbuf_alpha_set() for details.
22825 EAPI Eina_Bool elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22832 * @defgroup Flipselector Flip Selector
22834 * @image html img/widget/flipselector/preview-00.png
22835 * @image latex img/widget/flipselector/preview-00.eps
22837 * A flip selector is a widget to show a set of @b text items, one
22838 * at a time, with the same sheet switching style as the @ref Clock
22839 * "clock" widget, when one changes the current displaying sheet
22840 * (thus, the "flip" in the name).
22842 * User clicks to flip sheets which are @b held for some time will
22843 * make the flip selector to flip continuosly and automatically for
22844 * the user. The interval between flips will keep growing in time,
22845 * so that it helps the user to reach an item which is distant from
22846 * the current selection.
22848 * Smart callbacks one can register to:
22849 * - @c "selected" - when the widget's selected text item is changed
22850 * - @c "overflowed" - when the widget's current selection is changed
22851 * from the first item in its list to the last
22852 * - @c "underflowed" - when the widget's current selection is changed
22853 * from the last item in its list to the first
22855 * Available styles for it:
22858 * Here is an example on its usage:
22859 * @li @ref flipselector_example
22863 * @addtogroup Flipselector
22867 typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
22870 * Add a new flip selector widget to the given parent Elementary
22871 * (container) widget
22873 * @param parent The parent object
22874 * @return a new flip selector widget handle or @c NULL, on errors
22876 * This function inserts a new flip selector widget on the canvas.
22878 * @ingroup Flipselector
22880 EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22883 * Programmatically select the next item of a flip selector widget
22885 * @param obj The flipselector object
22887 * @note The selection will be animated. Also, if it reaches the
22888 * end of its list of member items, it will continue with the first
22891 * @ingroup Flipselector
22893 EAPI void elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22896 * Programmatically select the previous item of a flip selector
22899 * @param obj The flipselector object
22901 * @note The selection will be animated. Also, if it reaches the
22902 * beginning of its list of member items, it will continue with the
22903 * last one backwards.
22905 * @ingroup Flipselector
22907 EAPI void elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22910 * Append a (text) item to a flip selector widget
22912 * @param obj The flipselector object
22913 * @param label The (text) label of the new item
22914 * @param func Convenience callback function to take place when
22916 * @param data Data passed to @p func, above
22917 * @return A handle to the item added or @c NULL, on errors
22919 * The widget's list of labels to show will be appended with the
22920 * given value. If the user wishes so, a callback function pointer
22921 * can be passed, which will get called when this same item is
22924 * @note The current selection @b won't be modified by appending an
22925 * element to the list.
22927 * @note The maximum length of the text label is going to be
22928 * determined <b>by the widget's theme</b>. Strings larger than
22929 * that value are going to be @b truncated.
22931 * @ingroup Flipselector
22933 EAPI Elm_Flipselector_Item *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
22936 * Prepend a (text) item to a flip selector widget
22938 * @param obj The flipselector object
22939 * @param label The (text) label of the new item
22940 * @param func Convenience callback function to take place when
22942 * @param data Data passed to @p func, above
22943 * @return A handle to the item added or @c NULL, on errors
22945 * The widget's list of labels to show will be prepended with the
22946 * given value. If the user wishes so, a callback function pointer
22947 * can be passed, which will get called when this same item is
22950 * @note The current selection @b won't be modified by prepending
22951 * an element to the list.
22953 * @note The maximum length of the text label is going to be
22954 * determined <b>by the widget's theme</b>. Strings larger than
22955 * that value are going to be @b truncated.
22957 * @ingroup Flipselector
22959 EAPI Elm_Flipselector_Item *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
22962 * Get the internal list of items in a given flip selector widget.
22964 * @param obj The flipselector object
22965 * @return The list of items (#Elm_Flipselector_Item as data) or
22966 * @c NULL on errors.
22968 * This list is @b not to be modified in any way and must not be
22969 * freed. Use the list members with functions like
22970 * elm_flipselector_item_label_set(),
22971 * elm_flipselector_item_label_get(),
22972 * elm_flipselector_item_del(),
22973 * elm_flipselector_item_selected_get(),
22974 * elm_flipselector_item_selected_set().
22976 * @warning This list is only valid until @p obj object's internal
22977 * items list is changed. It should be fetched again with another
22978 * call to this function when changes happen.
22980 * @ingroup Flipselector
22982 EAPI const Eina_List *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22985 * Get the first item in the given flip selector widget's list of
22988 * @param obj The flipselector object
22989 * @return The first item or @c NULL, if it has no items (and on
22992 * @see elm_flipselector_item_append()
22993 * @see elm_flipselector_last_item_get()
22995 * @ingroup Flipselector
22997 EAPI Elm_Flipselector_Item *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23000 * Get the last item in the given flip selector widget's list of
23003 * @param obj The flipselector object
23004 * @return The last item or @c NULL, if it has no items (and on
23007 * @see elm_flipselector_item_prepend()
23008 * @see elm_flipselector_first_item_get()
23010 * @ingroup Flipselector
23012 EAPI Elm_Flipselector_Item *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23015 * Get the currently selected item in a flip selector widget.
23017 * @param obj The flipselector object
23018 * @return The selected item or @c NULL, if the widget has no items
23021 * @ingroup Flipselector
23023 EAPI Elm_Flipselector_Item *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23026 * Set whether a given flip selector widget's item should be the
23027 * currently selected one.
23029 * @param item The flip selector item
23030 * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
23032 * This sets whether @p item is or not the selected (thus, under
23033 * display) one. If @p item is different than one under display,
23034 * the latter will be unselected. If the @p item is set to be
23035 * unselected, on the other hand, the @b first item in the widget's
23036 * internal members list will be the new selected one.
23038 * @see elm_flipselector_item_selected_get()
23040 * @ingroup Flipselector
23042 EAPI void elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
23045 * Get whether a given flip selector widget's item is the currently
23048 * @param item The flip selector item
23049 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
23052 * @see elm_flipselector_item_selected_set()
23054 * @ingroup Flipselector
23056 EAPI Eina_Bool elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23059 * Delete a given item from a flip selector widget.
23061 * @param item The item to delete
23063 * @ingroup Flipselector
23065 EAPI void elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23068 * Get the label of a given flip selector widget's item.
23070 * @param item The item to get label from
23071 * @return The text label of @p item or @c NULL, on errors
23073 * @see elm_flipselector_item_label_set()
23075 * @ingroup Flipselector
23077 EAPI const char *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23080 * Set the label of a given flip selector widget's item.
23082 * @param item The item to set label on
23083 * @param label The text label string, in UTF-8 encoding
23085 * @see elm_flipselector_item_label_get()
23087 * @ingroup Flipselector
23089 EAPI void elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
23092 * Gets the item before @p item in a flip selector widget's
23093 * internal list of items.
23095 * @param item The item to fetch previous from
23096 * @return The item before the @p item, in its parent's list. If
23097 * there is no previous item for @p item or there's an
23098 * error, @c NULL is returned.
23100 * @see elm_flipselector_item_next_get()
23102 * @ingroup Flipselector
23104 EAPI Elm_Flipselector_Item *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23107 * Gets the item after @p item in a flip selector widget's
23108 * internal list of items.
23110 * @param item The item to fetch next from
23111 * @return The item after the @p item, in its parent's list. If
23112 * there is no next item for @p item or there's an
23113 * error, @c NULL is returned.
23115 * @see elm_flipselector_item_next_get()
23117 * @ingroup Flipselector
23119 EAPI Elm_Flipselector_Item *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23122 * Set the interval on time updates for an user mouse button hold
23123 * on a flip selector widget.
23125 * @param obj The flip selector object
23126 * @param interval The (first) interval value in seconds
23128 * This interval value is @b decreased while the user holds the
23129 * mouse pointer either flipping up or flipping doww a given flip
23132 * This helps the user to get to a given item distant from the
23133 * current one easier/faster, as it will start to flip quicker and
23134 * quicker on mouse button holds.
23136 * The calculation for the next flip interval value, starting from
23137 * the one set with this call, is the previous interval divided by
23138 * 1.05, so it decreases a little bit.
23140 * The default starting interval value for automatic flips is
23143 * @see elm_flipselector_interval_get()
23145 * @ingroup Flipselector
23147 EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23150 * Get the interval on time updates for an user mouse button hold
23151 * on a flip selector widget.
23153 * @param obj The flip selector object
23154 * @return The (first) interval value, in seconds, set on it
23156 * @see elm_flipselector_interval_set() for more details
23158 * @ingroup Flipselector
23160 EAPI double elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23166 * @addtogroup Calendar
23171 * @enum _Elm_Calendar_Mark_Repeat
23172 * @typedef Elm_Calendar_Mark_Repeat
23174 * Event periodicity, used to define if a mark should be repeated
23175 * @b beyond event's day. It's set when a mark is added.
23177 * So, for a mark added to 13th May with periodicity set to WEEKLY,
23178 * there will be marks every week after this date. Marks will be displayed
23179 * at 13th, 20th, 27th, 3rd June ...
23181 * Values don't work as bitmask, only one can be choosen.
23183 * @see elm_calendar_mark_add()
23185 * @ingroup Calendar
23187 typedef enum _Elm_Calendar_Mark_Repeat
23189 ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
23190 ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
23191 ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
23192 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*/
23193 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. */
23194 } Elm_Calendar_Mark_Repeat;
23196 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(). */
23199 * Add a new calendar widget to the given parent Elementary
23200 * (container) object.
23202 * @param parent The parent object.
23203 * @return a new calendar widget handle or @c NULL, on errors.
23205 * This function inserts a new calendar widget on the canvas.
23207 * @ref calendar_example_01
23209 * @ingroup Calendar
23211 EAPI Evas_Object *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23214 * Get weekdays names displayed by the calendar.
23216 * @param obj The calendar object.
23217 * @return Array of seven strings to be used as weekday names.
23219 * By default, weekdays abbreviations get from system are displayed:
23220 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23221 * The first string is related to Sunday, the second to Monday...
23223 * @see elm_calendar_weekdays_name_set()
23225 * @ref calendar_example_05
23227 * @ingroup Calendar
23229 EAPI const char **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23232 * Set weekdays names to be displayed by the calendar.
23234 * @param obj The calendar object.
23235 * @param weekdays Array of seven strings to be used as weekday names.
23236 * @warning It must have 7 elements, or it will access invalid memory.
23237 * @warning The strings must be NULL terminated ('@\0').
23239 * By default, weekdays abbreviations get from system are displayed:
23240 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23242 * The first string should be related to Sunday, the second to Monday...
23244 * The usage should be like this:
23246 * const char *weekdays[] =
23248 * "Sunday", "Monday", "Tuesday", "Wednesday",
23249 * "Thursday", "Friday", "Saturday"
23251 * elm_calendar_weekdays_names_set(calendar, weekdays);
23254 * @see elm_calendar_weekdays_name_get()
23256 * @ref calendar_example_02
23258 * @ingroup Calendar
23260 EAPI void elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
23263 * Set the minimum and maximum values for the year
23265 * @param obj The calendar object
23266 * @param min The minimum year, greater than 1901;
23267 * @param max The maximum year;
23269 * Maximum must be greater than minimum, except if you don't wan't to set
23271 * Default values are 1902 and -1.
23273 * If the maximum year is a negative value, it will be limited depending
23274 * on the platform architecture (year 2037 for 32 bits);
23276 * @see elm_calendar_min_max_year_get()
23278 * @ref calendar_example_03
23280 * @ingroup Calendar
23282 EAPI void elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
23285 * Get the minimum and maximum values for the year
23287 * @param obj The calendar object.
23288 * @param min The minimum year.
23289 * @param max The maximum year.
23291 * Default values are 1902 and -1.
23293 * @see elm_calendar_min_max_year_get() for more details.
23295 * @ref calendar_example_05
23297 * @ingroup Calendar
23299 EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
23302 * Enable or disable day selection
23304 * @param obj The calendar object.
23305 * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
23308 * Enabled by default. If disabled, the user still can select months,
23309 * but not days. Selected days are highlighted on calendar.
23310 * It should be used if you won't need such selection for the widget usage.
23312 * When a day is selected, or month is changed, smart callbacks for
23313 * signal "changed" will be called.
23315 * @see elm_calendar_day_selection_enable_get()
23317 * @ref calendar_example_04
23319 * @ingroup Calendar
23321 EAPI void elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23324 * Get a value whether day selection is enabled or not.
23326 * @see elm_calendar_day_selection_enable_set() for details.
23328 * @param obj The calendar object.
23329 * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
23330 * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
23332 * @ref calendar_example_05
23334 * @ingroup Calendar
23336 EAPI Eina_Bool elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23340 * Set selected date to be highlighted on calendar.
23342 * @param obj The calendar object.
23343 * @param selected_time A @b tm struct to represent the selected date.
23345 * Set the selected date, changing the displayed month if needed.
23346 * Selected date changes when the user goes to next/previous month or
23347 * select a day pressing over it on calendar.
23349 * @see elm_calendar_selected_time_get()
23351 * @ref calendar_example_04
23353 * @ingroup Calendar
23355 EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
23358 * Get selected date.
23360 * @param obj The calendar object
23361 * @param selected_time A @b tm struct to point to selected date
23362 * @return EINA_FALSE means an error ocurred and returned time shouldn't
23365 * Get date selected by the user or set by function
23366 * elm_calendar_selected_time_set().
23367 * Selected date changes when the user goes to next/previous month or
23368 * select a day pressing over it on calendar.
23370 * @see elm_calendar_selected_time_get()
23372 * @ref calendar_example_05
23374 * @ingroup Calendar
23376 EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
23379 * Set a function to format the string that will be used to display
23382 * @param obj The calendar object
23383 * @param format_function Function to set the month-year string given
23384 * the selected date
23386 * By default it uses strftime with "%B %Y" format string.
23387 * It should allocate the memory that will be used by the string,
23388 * that will be freed by the widget after usage.
23389 * A pointer to the string and a pointer to the time struct will be provided.
23394 * _format_month_year(struct tm *selected_time)
23397 * if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
23398 * return strdup(buf);
23401 * elm_calendar_format_function_set(calendar, _format_month_year);
23404 * @ref calendar_example_02
23406 * @ingroup Calendar
23408 EAPI void elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
23411 * Add a new mark to the calendar
23413 * @param obj The calendar object
23414 * @param mark_type A string used to define the type of mark. It will be
23415 * emitted to the theme, that should display a related modification on these
23416 * days representation.
23417 * @param mark_time A time struct to represent the date of inclusion of the
23418 * mark. For marks that repeats it will just be displayed after the inclusion
23419 * date in the calendar.
23420 * @param repeat Repeat the event following this periodicity. Can be a unique
23421 * mark (that don't repeat), daily, weekly, monthly or annually.
23422 * @return The created mark or @p NULL upon failure.
23424 * Add a mark that will be drawn in the calendar respecting the insertion
23425 * time and periodicity. It will emit the type as signal to the widget theme.
23426 * Default theme supports "holiday" and "checked", but it can be extended.
23428 * It won't immediately update the calendar, drawing the marks.
23429 * For this, call elm_calendar_marks_draw(). However, when user selects
23430 * next or previous month calendar forces marks drawn.
23432 * Marks created with this method can be deleted with
23433 * elm_calendar_mark_del().
23437 * struct tm selected_time;
23438 * time_t current_time;
23440 * current_time = time(NULL) + 5 * 84600;
23441 * localtime_r(¤t_time, &selected_time);
23442 * elm_calendar_mark_add(cal, "holiday", selected_time,
23443 * ELM_CALENDAR_ANNUALLY);
23445 * current_time = time(NULL) + 1 * 84600;
23446 * localtime_r(¤t_time, &selected_time);
23447 * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
23449 * elm_calendar_marks_draw(cal);
23452 * @see elm_calendar_marks_draw()
23453 * @see elm_calendar_mark_del()
23455 * @ref calendar_example_06
23457 * @ingroup Calendar
23459 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);
23462 * Delete mark from the calendar.
23464 * @param mark The mark to be deleted.
23466 * If deleting all calendar marks is required, elm_calendar_marks_clear()
23467 * should be used instead of getting marks list and deleting each one.
23469 * @see elm_calendar_mark_add()
23471 * @ref calendar_example_06
23473 * @ingroup Calendar
23475 EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
23478 * Remove all calendar's marks
23480 * @param obj The calendar object.
23482 * @see elm_calendar_mark_add()
23483 * @see elm_calendar_mark_del()
23485 * @ingroup Calendar
23487 EAPI void elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23491 * Get a list of all the calendar marks.
23493 * @param obj The calendar object.
23494 * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
23496 * @see elm_calendar_mark_add()
23497 * @see elm_calendar_mark_del()
23498 * @see elm_calendar_marks_clear()
23500 * @ingroup Calendar
23502 EAPI const Eina_List *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23505 * Draw calendar marks.
23507 * @param obj The calendar object.
23509 * Should be used after adding, removing or clearing marks.
23510 * It will go through the entire marks list updating the calendar.
23511 * If lots of marks will be added, add all the marks and then call
23514 * When the month is changed, i.e. user selects next or previous month,
23515 * marks will be drawed.
23517 * @see elm_calendar_mark_add()
23518 * @see elm_calendar_mark_del()
23519 * @see elm_calendar_marks_clear()
23521 * @ref calendar_example_06
23523 * @ingroup Calendar
23525 EAPI void elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
23528 * Set a day text color to the same that represents Saturdays.
23530 * @param obj The calendar object.
23531 * @param pos The text position. Position is the cell counter, from left
23532 * to right, up to down. It starts on 0 and ends on 41.
23534 * @deprecated use elm_calendar_mark_add() instead like:
23537 * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
23538 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23541 * @see elm_calendar_mark_add()
23543 * @ingroup Calendar
23545 EINA_DEPRECATED EAPI void elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23548 * Set a day text color to the same that represents Sundays.
23550 * @param obj The calendar object.
23551 * @param pos The text position. Position is the cell counter, from left
23552 * to right, up to down. It starts on 0 and ends on 41.
23554 * @deprecated use elm_calendar_mark_add() instead like:
23557 * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
23558 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23561 * @see elm_calendar_mark_add()
23563 * @ingroup Calendar
23565 EINA_DEPRECATED EAPI void elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23568 * Set a day text color to the same that represents Weekdays.
23570 * @param obj The calendar object
23571 * @param pos The text position. Position is the cell counter, from left
23572 * to right, up to down. It starts on 0 and ends on 41.
23574 * @deprecated use elm_calendar_mark_add() instead like:
23577 * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
23579 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
23580 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23581 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
23582 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23583 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
23584 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23585 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
23586 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23587 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
23590 * @see elm_calendar_mark_add()
23592 * @ingroup Calendar
23594 EINA_DEPRECATED EAPI void elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23597 * Set the interval on time updates for an user mouse button hold
23598 * on calendar widgets' month selection.
23600 * @param obj The calendar object
23601 * @param interval The (first) interval value in seconds
23603 * This interval value is @b decreased while the user holds the
23604 * mouse pointer either selecting next or previous month.
23606 * This helps the user to get to a given month distant from the
23607 * current one easier/faster, as it will start to change quicker and
23608 * quicker on mouse button holds.
23610 * The calculation for the next change interval value, starting from
23611 * the one set with this call, is the previous interval divided by
23612 * 1.05, so it decreases a little bit.
23614 * The default starting interval value for automatic changes is
23617 * @see elm_calendar_interval_get()
23619 * @ingroup Calendar
23621 EAPI void elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23624 * Get the interval on time updates for an user mouse button hold
23625 * on calendar widgets' month selection.
23627 * @param obj The calendar object
23628 * @return The (first) interval value, in seconds, set on it
23630 * @see elm_calendar_interval_set() for more details
23632 * @ingroup Calendar
23634 EAPI double elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23641 * @defgroup Diskselector Diskselector
23642 * @ingroup Elementary
23644 * @image html img/widget/diskselector/preview-00.png
23645 * @image latex img/widget/diskselector/preview-00.eps
23647 * A diskselector is a kind of list widget. It scrolls horizontally,
23648 * and can contain label and icon objects. Three items are displayed
23649 * with the selected one in the middle.
23651 * It can act like a circular list with round mode and labels can be
23652 * reduced for a defined length for side items.
23654 * Smart callbacks one can listen to:
23655 * - "selected" - when item is selected, i.e. scroller stops.
23657 * Available styles for it:
23660 * List of examples:
23661 * @li @ref diskselector_example_01
23662 * @li @ref diskselector_example_02
23666 * @addtogroup Diskselector
23670 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(). */
23673 * Add a new diskselector widget to the given parent Elementary
23674 * (container) object.
23676 * @param parent The parent object.
23677 * @return a new diskselector widget handle or @c NULL, on errors.
23679 * This function inserts a new diskselector widget on the canvas.
23681 * @ingroup Diskselector
23683 EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23686 * Enable or disable round mode.
23688 * @param obj The diskselector object.
23689 * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
23692 * Disabled by default. If round mode is enabled the items list will
23693 * work like a circle list, so when the user reaches the last item,
23694 * the first one will popup.
23696 * @see elm_diskselector_round_get()
23698 * @ingroup Diskselector
23700 EAPI void elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
23703 * Get a value whether round mode is enabled or not.
23705 * @see elm_diskselector_round_set() for details.
23707 * @param obj The diskselector object.
23708 * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
23709 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23711 * @ingroup Diskselector
23713 EAPI Eina_Bool elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23716 * Get the side labels max length.
23718 * @deprecated use elm_diskselector_side_label_length_get() instead:
23720 * @param obj The diskselector object.
23721 * @return The max length defined for side labels, or 0 if not a valid
23724 * @ingroup Diskselector
23726 EINA_DEPRECATED EAPI int elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23729 * Set the side labels max length.
23731 * @deprecated use elm_diskselector_side_label_length_set() instead:
23733 * @param obj The diskselector object.
23734 * @param len The max length defined for side labels.
23736 * @ingroup Diskselector
23738 EINA_DEPRECATED EAPI void elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
23741 * Get the side labels max length.
23743 * @see elm_diskselector_side_label_length_set() for details.
23745 * @param obj The diskselector object.
23746 * @return The max length defined for side labels, or 0 if not a valid
23749 * @ingroup Diskselector
23751 EAPI int elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23754 * Set the side labels max length.
23756 * @param obj The diskselector object.
23757 * @param len The max length defined for side labels.
23759 * Length is the number of characters of items' label that will be
23760 * visible when it's set on side positions. It will just crop
23761 * the string after defined size. E.g.:
23763 * An item with label "January" would be displayed on side position as
23764 * "Jan" if max length is set to 3, or "Janu", if this property
23767 * When it's selected, the entire label will be displayed, except for
23768 * width restrictions. In this case label will be cropped and "..."
23769 * will be concatenated.
23771 * Default side label max length is 3.
23773 * This property will be applyed over all items, included before or
23774 * later this function call.
23776 * @ingroup Diskselector
23778 EAPI void elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
23781 * Set the number of items to be displayed.
23783 * @param obj The diskselector object.
23784 * @param num The number of items the diskselector will display.
23786 * Default value is 3, and also it's the minimun. If @p num is less
23787 * than 3, it will be set to 3.
23789 * Also, it can be set on theme, using data item @c display_item_num
23790 * on group "elm/diskselector/item/X", where X is style set.
23793 * group { name: "elm/diskselector/item/X";
23795 * item: "display_item_num" "5";
23798 * @ingroup Diskselector
23800 EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
23803 * Set bouncing behaviour when the scrolled content reaches an edge.
23805 * Tell the internal scroller object whether it should bounce or not
23806 * when it reaches the respective edges for each axis.
23808 * @param obj The diskselector object.
23809 * @param h_bounce Whether to bounce or not in the horizontal axis.
23810 * @param v_bounce Whether to bounce or not in the vertical axis.
23812 * @see elm_scroller_bounce_set()
23814 * @ingroup Diskselector
23816 EAPI void elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
23819 * Get the bouncing behaviour of the internal scroller.
23821 * Get whether the internal scroller should bounce when the edge of each
23822 * axis is reached scrolling.
23824 * @param obj The diskselector object.
23825 * @param h_bounce Pointer where to store the bounce state of the horizontal
23827 * @param v_bounce Pointer where to store the bounce state of the vertical
23830 * @see elm_scroller_bounce_get()
23831 * @see elm_diskselector_bounce_set()
23833 * @ingroup Diskselector
23835 EAPI void elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
23838 * Get the scrollbar policy.
23840 * @see elm_diskselector_scroller_policy_get() for details.
23842 * @param obj The diskselector object.
23843 * @param policy_h Pointer where to store horizontal scrollbar policy.
23844 * @param policy_v Pointer where to store vertical scrollbar policy.
23846 * @ingroup Diskselector
23848 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);
23851 * Set the scrollbar policy.
23853 * @param obj The diskselector object.
23854 * @param policy_h Horizontal scrollbar policy.
23855 * @param policy_v Vertical scrollbar policy.
23857 * This sets the scrollbar visibility policy for the given scroller.
23858 * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
23859 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
23860 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
23861 * This applies respectively for the horizontal and vertical scrollbars.
23863 * The both are disabled by default, i.e., are set to
23864 * #ELM_SCROLLER_POLICY_OFF.
23866 * @ingroup Diskselector
23868 EAPI void elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
23871 * Remove all diskselector's items.
23873 * @param obj The diskselector object.
23875 * @see elm_diskselector_item_del()
23876 * @see elm_diskselector_item_append()
23878 * @ingroup Diskselector
23880 EAPI void elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23883 * Get a list of all the diskselector items.
23885 * @param obj The diskselector object.
23886 * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
23887 * or @c NULL on failure.
23889 * @see elm_diskselector_item_append()
23890 * @see elm_diskselector_item_del()
23891 * @see elm_diskselector_clear()
23893 * @ingroup Diskselector
23895 EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23898 * Appends a new item to the diskselector object.
23900 * @param obj The diskselector object.
23901 * @param label The label of the diskselector item.
23902 * @param icon The icon object to use at left side of the item. An
23903 * icon can be any Evas object, but usually it is an icon created
23904 * with elm_icon_add().
23905 * @param func The function to call when the item is selected.
23906 * @param data The data to associate with the item for related callbacks.
23908 * @return The created item or @c NULL upon failure.
23910 * A new item will be created and appended to the diskselector, i.e., will
23911 * be set as last item. Also, if there is no selected item, it will
23912 * be selected. This will always happens for the first appended item.
23914 * If no icon is set, label will be centered on item position, otherwise
23915 * the icon will be placed at left of the label, that will be shifted
23918 * Items created with this method can be deleted with
23919 * elm_diskselector_item_del().
23921 * Associated @p data can be properly freed when item is deleted if a
23922 * callback function is set with elm_diskselector_item_del_cb_set().
23924 * If a function is passed as argument, it will be called everytime this item
23925 * is selected, i.e., the user stops the diskselector with this
23926 * item on center position. If such function isn't needed, just passing
23927 * @c NULL as @p func is enough. The same should be done for @p data.
23929 * Simple example (with no function callback or data associated):
23931 * disk = elm_diskselector_add(win);
23932 * ic = elm_icon_add(win);
23933 * elm_icon_file_set(ic, "path/to/image", NULL);
23934 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
23935 * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
23938 * @see elm_diskselector_item_del()
23939 * @see elm_diskselector_item_del_cb_set()
23940 * @see elm_diskselector_clear()
23941 * @see elm_icon_add()
23943 * @ingroup Diskselector
23945 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);
23949 * Delete them item from the diskselector.
23951 * @param it The item of diskselector to be deleted.
23953 * If deleting all diskselector items is required, elm_diskselector_clear()
23954 * should be used instead of getting items list and deleting each one.
23956 * @see elm_diskselector_clear()
23957 * @see elm_diskselector_item_append()
23958 * @see elm_diskselector_item_del_cb_set()
23960 * @ingroup Diskselector
23962 EAPI void elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
23965 * Set the function called when a diskselector item is freed.
23967 * @param it The item to set the callback on
23968 * @param func The function called
23970 * If there is a @p func, then it will be called prior item's memory release.
23971 * That will be called with the following arguments:
23973 * @li item's Evas object;
23976 * This way, a data associated to a diskselector item could be properly
23979 * @ingroup Diskselector
23981 EAPI void elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
23984 * Get the data associated to the item.
23986 * @param it The diskselector item
23987 * @return The data associated to @p it
23989 * The return value is a pointer to data associated to @p item when it was
23990 * created, with function elm_diskselector_item_append(). If no data
23991 * was passed as argument, it will return @c NULL.
23993 * @see elm_diskselector_item_append()
23995 * @ingroup Diskselector
23997 EAPI void *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24000 * Set the icon associated to the item.
24002 * @param it The diskselector item
24003 * @param icon The icon object to associate with @p it
24005 * The icon object to use at left side of the item. An
24006 * icon can be any Evas object, but usually it is an icon created
24007 * with elm_icon_add().
24009 * Once the icon object is set, a previously set one will be deleted.
24010 * @warning Setting the same icon for two items will cause the icon to
24011 * dissapear from the first item.
24013 * If an icon was passed as argument on item creation, with function
24014 * elm_diskselector_item_append(), it will be already
24015 * associated to the item.
24017 * @see elm_diskselector_item_append()
24018 * @see elm_diskselector_item_icon_get()
24020 * @ingroup Diskselector
24022 EAPI void elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24025 * Get the icon associated to the item.
24027 * @param it The diskselector item
24028 * @return The icon associated to @p it
24030 * The return value is a pointer to the icon associated to @p item when it was
24031 * created, with function elm_diskselector_item_append(), or later
24032 * with function elm_diskselector_item_icon_set. If no icon
24033 * was passed as argument, it will return @c NULL.
24035 * @see elm_diskselector_item_append()
24036 * @see elm_diskselector_item_icon_set()
24038 * @ingroup Diskselector
24040 EAPI Evas_Object *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24043 * Set the label of item.
24045 * @param it The item of diskselector.
24046 * @param label The label of item.
24048 * The label to be displayed by the item.
24050 * If no icon is set, label will be centered on item position, otherwise
24051 * the icon will be placed at left of the label, that will be shifted
24054 * An item with label "January" would be displayed on side position as
24055 * "Jan" if max length is set to 3 with function
24056 * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
24059 * When this @p item is selected, the entire label will be displayed,
24060 * except for width restrictions.
24061 * In this case label will be cropped and "..." will be concatenated,
24062 * but only for display purposes. It will keep the entire string, so
24063 * if diskselector is resized the remaining characters will be displayed.
24065 * If a label was passed as argument on item creation, with function
24066 * elm_diskselector_item_append(), it will be already
24067 * displayed by the item.
24069 * @see elm_diskselector_side_label_lenght_set()
24070 * @see elm_diskselector_item_label_get()
24071 * @see elm_diskselector_item_append()
24073 * @ingroup Diskselector
24075 EAPI void elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
24078 * Get the label of item.
24080 * @param it The item of diskselector.
24081 * @return The label of item.
24083 * The return value is a pointer to the label associated to @p item when it was
24084 * created, with function elm_diskselector_item_append(), or later
24085 * with function elm_diskselector_item_label_set. If no label
24086 * was passed as argument, it will return @c NULL.
24088 * @see elm_diskselector_item_label_set() for more details.
24089 * @see elm_diskselector_item_append()
24091 * @ingroup Diskselector
24093 EAPI const char *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24096 * Get the selected item.
24098 * @param obj The diskselector object.
24099 * @return The selected diskselector item.
24101 * The selected item can be unselected with function
24102 * elm_diskselector_item_selected_set(), and the first item of
24103 * diskselector will be selected.
24105 * The selected item always will be centered on diskselector, with
24106 * full label displayed, i.e., max lenght set to side labels won't
24107 * apply on the selected item. More details on
24108 * elm_diskselector_side_label_length_set().
24110 * @ingroup Diskselector
24112 EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24115 * Set the selected state of an item.
24117 * @param it The diskselector item
24118 * @param selected The selected state
24120 * This sets the selected state of the given item @p it.
24121 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
24123 * If a new item is selected the previosly selected will be unselected.
24124 * Previoulsy selected item can be get with function
24125 * elm_diskselector_selected_item_get().
24127 * If the item @p it is unselected, the first item of diskselector will
24130 * Selected items will be visible on center position of diskselector.
24131 * So if it was on another position before selected, or was invisible,
24132 * diskselector will animate items until the selected item reaches center
24135 * @see elm_diskselector_item_selected_get()
24136 * @see elm_diskselector_selected_item_get()
24138 * @ingroup Diskselector
24140 EAPI void elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24143 * Get whether the @p item is selected or not.
24145 * @param it The diskselector item.
24146 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
24147 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
24149 * @see elm_diskselector_selected_item_set() for details.
24150 * @see elm_diskselector_item_selected_get()
24152 * @ingroup Diskselector
24154 EAPI Eina_Bool elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24157 * Get the first item of the diskselector.
24159 * @param obj The diskselector object.
24160 * @return The first item, or @c NULL if none.
24162 * The list of items follows append order. So it will return the first
24163 * item appended to the widget that wasn't deleted.
24165 * @see elm_diskselector_item_append()
24166 * @see elm_diskselector_items_get()
24168 * @ingroup Diskselector
24170 EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24173 * Get the last item of the diskselector.
24175 * @param obj The diskselector object.
24176 * @return The last item, or @c NULL if none.
24178 * The list of items follows append order. So it will return last first
24179 * item appended to the widget that wasn't deleted.
24181 * @see elm_diskselector_item_append()
24182 * @see elm_diskselector_items_get()
24184 * @ingroup Diskselector
24186 EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24189 * Get the item before @p item in diskselector.
24191 * @param it The diskselector item.
24192 * @return The item before @p item, or @c NULL if none or on failure.
24194 * The list of items follows append order. So it will return item appended
24195 * just before @p item and that wasn't deleted.
24197 * If it is the first item, @c NULL will be returned.
24198 * First item can be get by elm_diskselector_first_item_get().
24200 * @see elm_diskselector_item_append()
24201 * @see elm_diskselector_items_get()
24203 * @ingroup Diskselector
24205 EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24208 * Get the item after @p item in diskselector.
24210 * @param it The diskselector item.
24211 * @return The item after @p item, or @c NULL if none or on failure.
24213 * The list of items follows append order. So it will return item appended
24214 * just after @p item and that wasn't deleted.
24216 * If it is the last item, @c NULL will be returned.
24217 * Last item can be get by elm_diskselector_last_item_get().
24219 * @see elm_diskselector_item_append()
24220 * @see elm_diskselector_items_get()
24222 * @ingroup Diskselector
24224 EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24227 * Set the text to be shown in the diskselector item.
24229 * @param item Target item
24230 * @param text The text to set in the content
24232 * Setup the text as tooltip to object. The item can have only one tooltip,
24233 * so any previous tooltip data is removed.
24235 * @see elm_object_tooltip_text_set() for more details.
24237 * @ingroup Diskselector
24239 EAPI void elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
24242 * Set the content to be shown in the tooltip item.
24244 * Setup the tooltip to item. The item can have only one tooltip,
24245 * so any previous tooltip data is removed. @p func(with @p data) will
24246 * be called every time that need show the tooltip and it should
24247 * return a valid Evas_Object. This object is then managed fully by
24248 * tooltip system and is deleted when the tooltip is gone.
24250 * @param item the diskselector item being attached a tooltip.
24251 * @param func the function used to create the tooltip contents.
24252 * @param data what to provide to @a func as callback data/context.
24253 * @param del_cb called when data is not needed anymore, either when
24254 * another callback replaces @p func, the tooltip is unset with
24255 * elm_diskselector_item_tooltip_unset() or the owner @a item
24256 * dies. This callback receives as the first parameter the
24257 * given @a data, and @c event_info is the item.
24259 * @see elm_object_tooltip_content_cb_set() for more details.
24261 * @ingroup Diskselector
24263 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);
24266 * Unset tooltip from item.
24268 * @param item diskselector item to remove previously set tooltip.
24270 * Remove tooltip from item. The callback provided as del_cb to
24271 * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
24272 * it is not used anymore.
24274 * @see elm_object_tooltip_unset() for more details.
24275 * @see elm_diskselector_item_tooltip_content_cb_set()
24277 * @ingroup Diskselector
24279 EAPI void elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24283 * Sets a different style for this item tooltip.
24285 * @note before you set a style you should define a tooltip with
24286 * elm_diskselector_item_tooltip_content_cb_set() or
24287 * elm_diskselector_item_tooltip_text_set()
24289 * @param item diskselector item with tooltip already set.
24290 * @param style the theme style to use (default, transparent, ...)
24292 * @see elm_object_tooltip_style_set() for more details.
24294 * @ingroup Diskselector
24296 EAPI void elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24299 * Get the style for this item tooltip.
24301 * @param item diskselector item with tooltip already set.
24302 * @return style the theme style in use, defaults to "default". If the
24303 * object does not have a tooltip set, then NULL is returned.
24305 * @see elm_object_tooltip_style_get() for more details.
24306 * @see elm_diskselector_item_tooltip_style_set()
24308 * @ingroup Diskselector
24310 EAPI const char *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24313 * Set the cursor to be shown when mouse is over the diskselector item
24315 * @param item Target item
24316 * @param cursor the cursor name to be used.
24318 * @see elm_object_cursor_set() for more details.
24320 * @ingroup Diskselector
24322 EAPI void elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
24325 * Get the cursor to be shown when mouse is over the diskselector item
24327 * @param item diskselector item with cursor already set.
24328 * @return the cursor name.
24330 * @see elm_object_cursor_get() for more details.
24331 * @see elm_diskselector_cursor_set()
24333 * @ingroup Diskselector
24335 EAPI const char *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24339 * Unset the cursor to be shown when mouse is over the diskselector item
24341 * @param item Target item
24343 * @see elm_object_cursor_unset() for more details.
24344 * @see elm_diskselector_cursor_set()
24346 * @ingroup Diskselector
24348 EAPI void elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24351 * Sets a different style for this item cursor.
24353 * @note before you set a style you should define a cursor with
24354 * elm_diskselector_item_cursor_set()
24356 * @param item diskselector item with cursor already set.
24357 * @param style the theme style to use (default, transparent, ...)
24359 * @see elm_object_cursor_style_set() for more details.
24361 * @ingroup Diskselector
24363 EAPI void elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24367 * Get the style for this item cursor.
24369 * @param item diskselector item with cursor already set.
24370 * @return style the theme style in use, defaults to "default". If the
24371 * object does not have a cursor set, then @c NULL is returned.
24373 * @see elm_object_cursor_style_get() for more details.
24374 * @see elm_diskselector_item_cursor_style_set()
24376 * @ingroup Diskselector
24378 EAPI const char *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24382 * Set if the cursor set should be searched on the theme or should use
24383 * the provided by the engine, only.
24385 * @note before you set if should look on theme you should define a cursor
24386 * with elm_diskselector_item_cursor_set().
24387 * By default it will only look for cursors provided by the engine.
24389 * @param item widget item with cursor already set.
24390 * @param engine_only boolean to define if cursors set with
24391 * elm_diskselector_item_cursor_set() should be searched only
24392 * between cursors provided by the engine or searched on widget's
24395 * @see elm_object_cursor_engine_only_set() for more details.
24397 * @ingroup Diskselector
24399 EAPI void elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
24402 * Get the cursor engine only usage for this item cursor.
24404 * @param item widget item with cursor already set.
24405 * @return engine_only boolean to define it cursors should be looked only
24406 * between the provided by the engine or searched on widget's theme as well.
24407 * If the item does not have a cursor set, then @c EINA_FALSE is returned.
24409 * @see elm_object_cursor_engine_only_get() for more details.
24410 * @see elm_diskselector_item_cursor_engine_only_set()
24412 * @ingroup Diskselector
24414 EAPI Eina_Bool elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24421 * @defgroup Colorselector Colorselector
24425 * @image html img/widget/colorselector/preview-00.png
24426 * @image latex img/widget/colorselector/preview-00.eps
24428 * @brief Widget for user to select a color.
24430 * Signals that you can add callbacks for are:
24431 * "changed" - When the color value changes(event_info is NULL).
24433 * See @ref tutorial_colorselector.
24436 * @brief Add a new colorselector to the parent
24438 * @param parent The parent object
24439 * @return The new object or NULL if it cannot be created
24441 * @ingroup Colorselector
24443 EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24445 * Set a color for the colorselector
24447 * @param obj Colorselector object
24448 * @param r r-value of color
24449 * @param g g-value of color
24450 * @param b b-value of color
24451 * @param a a-value of color
24453 * @ingroup Colorselector
24455 EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24457 * Get a color from the colorselector
24459 * @param obj Colorselector object
24460 * @param r integer pointer for r-value of color
24461 * @param g integer pointer for g-value of color
24462 * @param b integer pointer for b-value of color
24463 * @param a integer pointer for a-value of color
24465 * @ingroup Colorselector
24467 EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24473 * @defgroup Ctxpopup Ctxpopup
24475 * @image html img/widget/ctxpopup/preview-00.png
24476 * @image latex img/widget/ctxpopup/preview-00.eps
24478 * @brief Context popup widet.
24480 * A ctxpopup is a widget that, when shown, pops up a list of items.
24481 * It automatically chooses an area inside its parent object's view
24482 * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
24483 * optimally fit into it. In the default theme, it will also point an
24484 * arrow to it's top left position at the time one shows it. Ctxpopup
24485 * items have a label and/or an icon. It is intended for a small
24486 * number of items (hence the use of list, not genlist).
24488 * @note Ctxpopup is a especialization of @ref Hover.
24490 * Signals that you can add callbacks for are:
24491 * "dismissed" - the ctxpopup was dismissed
24493 * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
24496 typedef struct _Elm_Ctxpopup_Item Elm_Ctxpopup_Item;
24498 typedef enum _Elm_Ctxpopup_Direction
24500 ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
24502 ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
24503 the clicked area */
24504 ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
24505 the clicked area */
24506 ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
24508 } Elm_Ctxpopup_Direction;
24511 * @brief Add a new Ctxpopup object to the parent.
24513 * @param parent Parent object
24514 * @return New object or @c NULL, if it cannot be created
24516 EAPI Evas_Object *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24518 * @brief Set the Ctxpopup's parent
24520 * @param obj The ctxpopup object
24521 * @param area The parent to use
24523 * Set the parent object.
24525 * @note elm_ctxpopup_add() will automatically call this function
24526 * with its @c parent argument.
24528 * @see elm_ctxpopup_add()
24529 * @see elm_hover_parent_set()
24531 EAPI void elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
24533 * @brief Get the Ctxpopup's parent
24535 * @param obj The ctxpopup object
24537 * @see elm_ctxpopup_hover_parent_set() for more information
24539 EAPI Evas_Object *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24541 * @brief Clear all items in the given ctxpopup object.
24543 * @param obj Ctxpopup object
24545 EAPI void elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24547 * @brief Change the ctxpopup's orientation to horizontal or vertical.
24549 * @param obj Ctxpopup object
24550 * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
24552 EAPI void elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24554 * @brief Get the value of current ctxpopup object's orientation.
24556 * @param obj Ctxpopup object
24557 * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
24559 * @see elm_ctxpopup_horizontal_set()
24561 EAPI Eina_Bool elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24563 * @brief Add a new item to a ctxpopup object.
24565 * @param obj Ctxpopup object
24566 * @param icon Icon to be set on new item
24567 * @param label The Label of the new item
24568 * @param func Convenience function called when item selected
24569 * @param data Data passed to @p func
24570 * @return A handle to the item added or @c NULL, on errors
24572 * @warning Ctxpopup can't hold both an item list and a content at the same
24573 * time. When an item is added, any previous content will be removed.
24575 * @see elm_ctxpopup_content_set()
24577 Elm_Ctxpopup_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);
24579 * @brief Delete the given item in a ctxpopup object.
24581 * @param item Ctxpopup item to be deleted
24583 * @see elm_ctxpopup_item_append()
24585 EAPI void elm_ctxpopup_item_del(Elm_Ctxpopup_Item *it) EINA_ARG_NONNULL(1);
24587 * @brief Set the ctxpopup item's state as disabled or enabled.
24589 * @param item Ctxpopup item to be enabled/disabled
24590 * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
24592 * When disabled the item is greyed out to indicate it's state.
24594 EAPI void elm_ctxpopup_item_disabled_set(Elm_Ctxpopup_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24596 * @brief Get the ctxpopup item's disabled/enabled state.
24598 * @param item Ctxpopup item to be enabled/disabled
24599 * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
24601 * @see elm_ctxpopup_item_disabled_set()
24603 EAPI Eina_Bool elm_ctxpopup_item_disabled_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24605 * @brief Get the icon object for the given ctxpopup item.
24607 * @param item Ctxpopup item
24608 * @return icon object or @c NULL, if the item does not have icon or an error
24611 * @see elm_ctxpopup_item_append()
24612 * @see elm_ctxpopup_item_icon_set()
24614 EAPI Evas_Object *elm_ctxpopup_item_icon_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24616 * @brief Sets the side icon associated with the ctxpopup item
24618 * @param item Ctxpopup item
24619 * @param icon Icon object to be set
24621 * Once the icon object is set, a previously set one will be deleted.
24622 * @warning Setting the same icon for two items will cause the icon to
24623 * dissapear from the first item.
24625 * @see elm_ctxpopup_item_append()
24627 EAPI void elm_ctxpopup_item_icon_set(Elm_Ctxpopup_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24629 * @brief Get the label for the given ctxpopup item.
24631 * @param item Ctxpopup item
24632 * @return label string or @c NULL, if the item does not have label or an
24635 * @see elm_ctxpopup_item_append()
24636 * @see elm_ctxpopup_item_label_set()
24638 EAPI const char *elm_ctxpopup_item_label_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24640 * @brief (Re)set the label on the given ctxpopup item.
24642 * @param item Ctxpopup item
24643 * @param label String to set as label
24645 EAPI void elm_ctxpopup_item_label_set(Elm_Ctxpopup_Item *item, const char *label) EINA_ARG_NONNULL(1);
24647 * @brief Set an elm widget as the content of the ctxpopup.
24649 * @param obj Ctxpopup object
24650 * @param content Content to be swallowed
24652 * If the content object is already set, a previous one will bedeleted. If
24653 * you want to keep that old content object, use the
24654 * elm_ctxpopup_content_unset() function.
24656 * @deprecated use elm_object_content_set()
24658 * @warning Ctxpopup can't hold both a item list and a content at the same
24659 * time. When a content is set, any previous items will be removed.
24661 EINA_DEPRECATED EAPI void elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
24663 * @brief Unset the ctxpopup content
24665 * @param obj Ctxpopup object
24666 * @return The content that was being used
24668 * Unparent and return the content object which was set for this widget.
24670 * @deprecated use elm_object_content_unset()
24672 * @see elm_ctxpopup_content_set()
24674 EINA_DEPRECATED EAPI Evas_Object *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24676 * @brief Set the direction priority of a ctxpopup.
24678 * @param obj Ctxpopup object
24679 * @param first 1st priority of direction
24680 * @param second 2nd priority of direction
24681 * @param third 3th priority of direction
24682 * @param fourth 4th priority of direction
24684 * This functions gives a chance to user to set the priority of ctxpopup
24685 * showing direction. This doesn't guarantee the ctxpopup will appear in the
24686 * requested direction.
24688 * @see Elm_Ctxpopup_Direction
24690 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);
24692 * @brief Get the direction priority of a ctxpopup.
24694 * @param obj Ctxpopup object
24695 * @param first 1st priority of direction to be returned
24696 * @param second 2nd priority of direction to be returned
24697 * @param third 3th priority of direction to be returned
24698 * @param fourth 4th priority of direction to be returned
24700 * @see elm_ctxpopup_direction_priority_set() for more information.
24702 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);
24710 * @defgroup Transit Transit
24711 * @ingroup Elementary
24713 * Transit is designed to apply various animated transition effects to @c
24714 * Evas_Object, such like translation, rotation, etc. For using these
24715 * effects, create an @ref Elm_Transit and add the desired transition effects.
24717 * Once the effects are added into transit, they will be automatically
24718 * managed (their callback will be called until the duration is ended, and
24719 * they will be deleted on completion).
24723 * Elm_Transit *trans = elm_transit_add();
24724 * elm_transit_object_add(trans, obj);
24725 * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
24726 * elm_transit_duration_set(transit, 1);
24727 * elm_transit_auto_reverse_set(transit, EINA_TRUE);
24728 * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
24729 * elm_transit_repeat_times_set(transit, 3);
24732 * Some transition effects are used to change the properties of objects. They
24734 * @li @ref elm_transit_effect_translation_add
24735 * @li @ref elm_transit_effect_color_add
24736 * @li @ref elm_transit_effect_rotation_add
24737 * @li @ref elm_transit_effect_wipe_add
24738 * @li @ref elm_transit_effect_zoom_add
24739 * @li @ref elm_transit_effect_resizing_add
24741 * Other transition effects are used to make one object disappear and another
24742 * object appear on its old place. These effects are:
24744 * @li @ref elm_transit_effect_flip_add
24745 * @li @ref elm_transit_effect_resizable_flip_add
24746 * @li @ref elm_transit_effect_fade_add
24747 * @li @ref elm_transit_effect_blend_add
24749 * It's also possible to make a transition chain with @ref
24750 * elm_transit_chain_transit_add.
24752 * @warning We strongly recommend to use elm_transit just when edje can not do
24753 * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
24754 * animations can be manipulated inside the theme.
24756 * List of examples:
24757 * @li @ref transit_example_01_explained
24758 * @li @ref transit_example_02_explained
24759 * @li @ref transit_example_03_c
24760 * @li @ref transit_example_04_c
24766 * @enum Elm_Transit_Tween_Mode
24768 * The type of acceleration used in the transition.
24772 ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
24773 ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
24774 over time, then decrease again
24776 ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
24778 ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
24780 } Elm_Transit_Tween_Mode;
24783 * @enum Elm_Transit_Effect_Flip_Axis
24785 * The axis where flip effect should be applied.
24789 ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
24790 ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
24791 } Elm_Transit_Effect_Flip_Axis;
24793 * @enum Elm_Transit_Effect_Wipe_Dir
24795 * The direction where the wipe effect should occur.
24799 ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
24800 ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
24801 ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
24802 ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
24803 } Elm_Transit_Effect_Wipe_Dir;
24804 /** @enum Elm_Transit_Effect_Wipe_Type
24806 * Whether the wipe effect should show or hide the object.
24810 ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
24812 ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
24814 } Elm_Transit_Effect_Wipe_Type;
24817 * @typedef Elm_Transit
24819 * The Transit created with elm_transit_add(). This type has the information
24820 * about the objects which the transition will be applied, and the
24821 * transition effects that will be used. It also contains info about
24822 * duration, number of repetitions, auto-reverse, etc.
24824 typedef struct _Elm_Transit Elm_Transit;
24825 typedef void Elm_Transit_Effect;
24827 * @typedef Elm_Transit_Effect_Transition_Cb
24829 * Transition callback called for this effect on each transition iteration.
24831 typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
24833 * Elm_Transit_Effect_End_Cb
24835 * Transition callback called for this effect when the transition is over.
24837 typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
24840 * Elm_Transit_Del_Cb
24842 * A callback called when the transit is deleted.
24844 typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
24849 * @note Is not necessary to delete the transit object, it will be deleted at
24850 * the end of its operation.
24851 * @note The transit will start playing when the program enter in the main loop, is not
24852 * necessary to give a start to the transit.
24854 * @return The transit object.
24858 EAPI Elm_Transit *elm_transit_add(void);
24861 * Stops the animation and delete the @p transit object.
24863 * Call this function if you wants to stop the animation before the duration
24864 * time. Make sure the @p transit object is still alive with
24865 * elm_transit_del_cb_set() function.
24866 * All added effects will be deleted, calling its repective data_free_cb
24867 * functions. The function setted by elm_transit_del_cb_set() will be called.
24869 * @see elm_transit_del_cb_set()
24871 * @param transit The transit object to be deleted.
24874 * @warning Just call this function if you are sure the transit is alive.
24876 EAPI void elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
24879 * Add a new effect to the transit.
24881 * @note The cb function and the data are the key to the effect. If you try to
24882 * add an already added effect, nothing is done.
24883 * @note After the first addition of an effect in @p transit, if its
24884 * effect list become empty again, the @p transit will be killed by
24885 * elm_transit_del(transit) function.
24889 * Elm_Transit *transit = elm_transit_add();
24890 * elm_transit_effect_add(transit,
24891 * elm_transit_effect_blend_op,
24892 * elm_transit_effect_blend_context_new(),
24893 * elm_transit_effect_blend_context_free);
24896 * @param transit The transit object.
24897 * @param transition_cb The operation function. It is called when the
24898 * animation begins, it is the function that actually performs the animation.
24899 * It is called with the @p data, @p transit and the time progression of the
24900 * animation (a double value between 0.0 and 1.0).
24901 * @param effect The context data of the effect.
24902 * @param end_cb The function to free the context data, it will be called
24903 * at the end of the effect, it must finalize the animation and free the
24907 * @warning The transit free the context data at the and of the transition with
24908 * the data_free_cb function, do not use the context data in another transit.
24910 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);
24913 * Delete an added effect.
24915 * This function will remove the effect from the @p transit, calling the
24916 * data_free_cb to free the @p data.
24918 * @see elm_transit_effect_add()
24920 * @note If the effect is not found, nothing is done.
24921 * @note If the effect list become empty, this function will call
24922 * elm_transit_del(transit), that is, it will kill the @p transit.
24924 * @param transit The transit object.
24925 * @param transition_cb The operation function.
24926 * @param effect The context data of the effect.
24930 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);
24933 * Add new object to apply the effects.
24935 * @note After the first addition of an object in @p transit, if its
24936 * object list become empty again, the @p transit will be killed by
24937 * elm_transit_del(transit) function.
24938 * @note If the @p obj belongs to another transit, the @p obj will be
24939 * removed from it and it will only belong to the @p transit. If the old
24940 * transit stays without objects, it will die.
24941 * @note When you add an object into the @p transit, its state from
24942 * evas_object_pass_events_get(obj) is saved, and it is applied when the
24943 * transit ends, if you change this state whith evas_object_pass_events_set()
24944 * after add the object, this state will change again when @p transit stops to
24947 * @param transit The transit object.
24948 * @param obj Object to be animated.
24951 * @warning It is not allowed to add a new object after transit begins to go.
24953 EAPI void elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
24956 * Removes an added object from the transit.
24958 * @note If the @p obj is not in the @p transit, nothing is done.
24959 * @note If the list become empty, this function will call
24960 * elm_transit_del(transit), that is, it will kill the @p transit.
24962 * @param transit The transit object.
24963 * @param obj Object to be removed from @p transit.
24966 * @warning It is not allowed to remove objects after transit begins to go.
24968 EAPI void elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
24971 * Get the objects of the transit.
24973 * @param transit The transit object.
24974 * @return a Eina_List with the objects from the transit.
24978 EAPI const Eina_List *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
24981 * Enable/disable keeping up the objects states.
24982 * If it is not kept, the objects states will be reset when transition ends.
24984 * @note @p transit can not be NULL.
24985 * @note One state includes geometry, color, map data.
24987 * @param transit The transit object.
24988 * @param state_keep Keeping or Non Keeping.
24992 EAPI void elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
24995 * Get a value whether the objects states will be reset or not.
24997 * @note @p transit can not be NULL
24999 * @see elm_transit_objects_final_state_keep_set()
25001 * @param transit The transit object.
25002 * @return EINA_TRUE means the states of the objects will be reset.
25003 * If @p transit is NULL, EINA_FALSE is returned
25007 EAPI Eina_Bool elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25010 * Set the event enabled when transit is operating.
25012 * If @p enabled is EINA_TRUE, the objects of the transit will receives
25013 * events from mouse and keyboard during the animation.
25014 * @note When you add an object with elm_transit_object_add(), its state from
25015 * evas_object_pass_events_get(obj) is saved, and it is applied when the
25016 * transit ends, if you change this state with evas_object_pass_events_set()
25017 * after adding the object, this state will change again when @p transit stops
25020 * @param transit The transit object.
25021 * @param enabled Events are received when enabled is @c EINA_TRUE, and
25022 * ignored otherwise.
25026 EAPI void elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25029 * Get the value of event enabled status.
25031 * @see elm_transit_event_enabled_set()
25033 * @param transit The Transit object
25034 * @return EINA_TRUE, when event is enabled. If @p transit is NULL
25035 * EINA_FALSE is returned
25039 EAPI Eina_Bool elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25042 * Set the user-callback function when the transit is deleted.
25044 * @note Using this function twice will overwrite the first function setted.
25045 * @note the @p transit object will be deleted after call @p cb function.
25047 * @param transit The transit object.
25048 * @param cb Callback function pointer. This function will be called before
25049 * the deletion of the transit.
25050 * @param data Callback funtion user data. It is the @p op parameter.
25054 EAPI void elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
25057 * Set reverse effect automatically.
25059 * If auto reverse is setted, after running the effects with the progress
25060 * parameter from 0 to 1, it will call the effecs again with the progress
25061 * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
25062 * where the duration was setted with the function elm_transit_add and
25063 * the repeat with the function elm_transit_repeat_times_set().
25065 * @param transit The transit object.
25066 * @param reverse EINA_TRUE means the auto_reverse is on.
25070 EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
25073 * Get if the auto reverse is on.
25075 * @see elm_transit_auto_reverse_set()
25077 * @param transit The transit object.
25078 * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
25079 * EINA_FALSE is returned
25083 EAPI Eina_Bool elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25086 * Set the transit repeat count. Effect will be repeated by repeat count.
25088 * This function sets the number of repetition the transit will run after
25089 * the first one, that is, if @p repeat is 1, the transit will run 2 times.
25090 * If the @p repeat is a negative number, it will repeat infinite times.
25092 * @note If this function is called during the transit execution, the transit
25093 * will run @p repeat times, ignoring the times it already performed.
25095 * @param transit The transit object
25096 * @param repeat Repeat count
25100 EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
25103 * Get the transit repeat count.
25105 * @see elm_transit_repeat_times_set()
25107 * @param transit The Transit object.
25108 * @return The repeat count. If @p transit is NULL
25113 EAPI int elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25116 * Set the transit animation acceleration type.
25118 * This function sets the tween mode of the transit that can be:
25119 * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
25120 * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
25121 * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
25122 * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
25124 * @param transit The transit object.
25125 * @param tween_mode The tween type.
25129 EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
25132 * Get the transit animation acceleration type.
25134 * @note @p transit can not be NULL
25136 * @param transit The transit object.
25137 * @return The tween type. If @p transit is NULL
25138 * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
25142 EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25145 * Set the transit animation time
25147 * @note @p transit can not be NULL
25149 * @param transit The transit object.
25150 * @param duration The animation time.
25154 EAPI void elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
25157 * Get the transit animation time
25159 * @note @p transit can not be NULL
25161 * @param transit The transit object.
25163 * @return The transit animation time.
25167 EAPI double elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25170 * Starts the transition.
25171 * Once this API is called, the transit begins to measure the time.
25173 * @note @p transit can not be NULL
25175 * @param transit The transit object.
25179 EAPI void elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25182 * Pause/Resume the transition.
25184 * If you call elm_transit_go again, the transit will be started from the
25185 * beginning, and will be unpaused.
25187 * @note @p transit can not be NULL
25189 * @param transit The transit object.
25190 * @param paused Whether the transition should be paused or not.
25194 EAPI void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
25197 * Get the value of paused status.
25199 * @see elm_transit_paused_set()
25201 * @note @p transit can not be NULL
25203 * @param transit The transit object.
25204 * @return EINA_TRUE means transition is paused. If @p transit is NULL
25205 * EINA_FALSE is returned
25209 EAPI Eina_Bool elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25212 * Get the time progression of the animation (a double value between 0.0 and 1.0).
25214 * The value returned is a fraction (current time / total time). It
25215 * represents the progression position relative to the total.
25217 * @note @p transit can not be NULL
25219 * @param transit The transit object.
25221 * @return The time progression value. If @p transit is NULL
25226 EAPI double elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25229 * Makes the chain relationship between two transits.
25231 * @note @p transit can not be NULL. Transit would have multiple chain transits.
25232 * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
25234 * @param transit The transit object.
25235 * @param chain_transit The chain transit object. This transit will be operated
25236 * after transit is done.
25238 * This function adds @p chain_transit transition to a chain after the @p
25239 * transit, and will be started as soon as @p transit ends. See @ref
25240 * transit_example_02_explained for a full example.
25244 EAPI void elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
25247 * Cut off the chain relationship between two transits.
25249 * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
25250 * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
25252 * @param transit The transit object.
25253 * @param chain_transit The chain transit object.
25255 * This function remove the @p chain_transit transition from the @p transit.
25259 EAPI void elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
25262 * Get the current chain transit list.
25264 * @note @p transit can not be NULL.
25266 * @param transit The transit object.
25267 * @return chain transit list.
25271 EAPI Eina_List *elm_transit_chain_transits_get(const Elm_Transit *transit);
25274 * Add the Resizing Effect to Elm_Transit.
25276 * @note This API is one of the facades. It creates resizing effect context
25277 * and add it's required APIs to elm_transit_effect_add.
25279 * @see elm_transit_effect_add()
25281 * @param transit Transit object.
25282 * @param from_w Object width size when effect begins.
25283 * @param from_h Object height size when effect begins.
25284 * @param to_w Object width size when effect ends.
25285 * @param to_h Object height size when effect ends.
25286 * @return Resizing effect context data.
25290 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);
25293 * Add the Translation Effect to Elm_Transit.
25295 * @note This API is one of the facades. It creates translation effect context
25296 * and add it's required APIs to elm_transit_effect_add.
25298 * @see elm_transit_effect_add()
25300 * @param transit Transit object.
25301 * @param from_dx X Position variation when effect begins.
25302 * @param from_dy Y Position variation when effect begins.
25303 * @param to_dx X Position variation when effect ends.
25304 * @param to_dy Y Position variation when effect ends.
25305 * @return Translation effect context data.
25308 * @warning It is highly recommended just create a transit with this effect when
25309 * the window that the objects of the transit belongs has already been created.
25310 * This is because this effect needs the geometry information about the objects,
25311 * and if the window was not created yet, it can get a wrong information.
25313 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);
25316 * Add the Zoom Effect to Elm_Transit.
25318 * @note This API is one of the facades. It creates zoom effect context
25319 * and add it's required APIs to elm_transit_effect_add.
25321 * @see elm_transit_effect_add()
25323 * @param transit Transit object.
25324 * @param from_rate Scale rate when effect begins (1 is current rate).
25325 * @param to_rate Scale rate when effect ends.
25326 * @return Zoom effect context data.
25329 * @warning It is highly recommended just create a transit with this effect when
25330 * the window that the objects of the transit belongs has already been created.
25331 * This is because this effect needs the geometry information about the objects,
25332 * and if the window was not created yet, it can get a wrong information.
25334 EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
25337 * Add the Flip Effect to Elm_Transit.
25339 * @note This API is one of the facades. It creates flip effect context
25340 * and add it's required APIs to elm_transit_effect_add.
25341 * @note This effect is applied to each pair of objects in the order they are listed
25342 * in the transit list of objects. The first object in the pair will be the
25343 * "front" object and the second will be the "back" object.
25345 * @see elm_transit_effect_add()
25347 * @param transit Transit object.
25348 * @param axis Flipping Axis(X or Y).
25349 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25350 * @return Flip effect context data.
25353 * @warning It is highly recommended just create a transit with this effect when
25354 * the window that the objects of the transit belongs has already been created.
25355 * This is because this effect needs the geometry information about the objects,
25356 * and if the window was not created yet, it can get a wrong information.
25358 EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25361 * Add the Resizable Flip Effect to Elm_Transit.
25363 * @note This API is one of the facades. It creates resizable flip effect context
25364 * and add it's required APIs to elm_transit_effect_add.
25365 * @note This effect is applied to each pair of objects in the order they are listed
25366 * in the transit list of objects. The first object in the pair will be the
25367 * "front" object and the second will be the "back" object.
25369 * @see elm_transit_effect_add()
25371 * @param transit Transit object.
25372 * @param axis Flipping Axis(X or Y).
25373 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25374 * @return Resizable flip effect context data.
25377 * @warning It is highly recommended just create a transit with this effect when
25378 * the window that the objects of the transit belongs has already been created.
25379 * This is because this effect needs the geometry information about the objects,
25380 * and if the window was not created yet, it can get a wrong information.
25382 EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25385 * Add the Wipe Effect to Elm_Transit.
25387 * @note This API is one of the facades. It creates wipe effect context
25388 * and add it's required APIs to elm_transit_effect_add.
25390 * @see elm_transit_effect_add()
25392 * @param transit Transit object.
25393 * @param type Wipe type. Hide or show.
25394 * @param dir Wipe Direction.
25395 * @return Wipe effect context data.
25398 * @warning It is highly recommended just create a transit with this effect when
25399 * the window that the objects of the transit belongs has already been created.
25400 * This is because this effect needs the geometry information about the objects,
25401 * and if the window was not created yet, it can get a wrong information.
25403 EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
25406 * Add the Color Effect to Elm_Transit.
25408 * @note This API is one of the facades. It creates color effect context
25409 * and add it's required APIs to elm_transit_effect_add.
25411 * @see elm_transit_effect_add()
25413 * @param transit Transit object.
25414 * @param from_r RGB R when effect begins.
25415 * @param from_g RGB G when effect begins.
25416 * @param from_b RGB B when effect begins.
25417 * @param from_a RGB A when effect begins.
25418 * @param to_r RGB R when effect ends.
25419 * @param to_g RGB G when effect ends.
25420 * @param to_b RGB B when effect ends.
25421 * @param to_a RGB A when effect ends.
25422 * @return Color effect context data.
25426 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);
25429 * Add the Fade Effect to Elm_Transit.
25431 * @note This API is one of the facades. It creates fade effect context
25432 * and add it's required APIs to elm_transit_effect_add.
25433 * @note This effect is applied to each pair of objects in the order they are listed
25434 * in the transit list of objects. The first object in the pair will be the
25435 * "before" object and the second will be the "after" object.
25437 * @see elm_transit_effect_add()
25439 * @param transit Transit object.
25440 * @return Fade effect context data.
25443 * @warning It is highly recommended just create a transit with this effect when
25444 * the window that the objects of the transit belongs has already been created.
25445 * This is because this effect needs the color information about the objects,
25446 * and if the window was not created yet, it can get a wrong information.
25448 EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
25451 * Add the Blend Effect to Elm_Transit.
25453 * @note This API is one of the facades. It creates blend effect context
25454 * and add it's required APIs to elm_transit_effect_add.
25455 * @note This effect is applied to each pair of objects in the order they are listed
25456 * in the transit list of objects. The first object in the pair will be the
25457 * "before" object and the second will be the "after" object.
25459 * @see elm_transit_effect_add()
25461 * @param transit Transit object.
25462 * @return Blend effect context data.
25465 * @warning It is highly recommended just create a transit with this effect when
25466 * the window that the objects of the transit belongs has already been created.
25467 * This is because this effect needs the color information about the objects,
25468 * and if the window was not created yet, it can get a wrong information.
25470 EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
25473 * Add the Rotation Effect to Elm_Transit.
25475 * @note This API is one of the facades. It creates rotation effect context
25476 * and add it's required APIs to elm_transit_effect_add.
25478 * @see elm_transit_effect_add()
25480 * @param transit Transit object.
25481 * @param from_degree Degree when effect begins.
25482 * @param to_degree Degree when effect is ends.
25483 * @return Rotation effect context data.
25486 * @warning It is highly recommended just create a transit with this effect when
25487 * the window that the objects of the transit belongs has already been created.
25488 * This is because this effect needs the geometry information about the objects,
25489 * and if the window was not created yet, it can get a wrong information.
25491 EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
25494 * Add the ImageAnimation Effect to Elm_Transit.
25496 * @note This API is one of the facades. It creates image animation effect context
25497 * and add it's required APIs to elm_transit_effect_add.
25498 * The @p images parameter is a list images paths. This list and
25499 * its contents will be deleted at the end of the effect by
25500 * elm_transit_effect_image_animation_context_free() function.
25504 * char buf[PATH_MAX];
25505 * Eina_List *images = NULL;
25506 * Elm_Transit *transi = elm_transit_add();
25508 * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
25509 * images = eina_list_append(images, eina_stringshare_add(buf));
25511 * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
25512 * images = eina_list_append(images, eina_stringshare_add(buf));
25513 * elm_transit_effect_image_animation_add(transi, images);
25517 * @see elm_transit_effect_add()
25519 * @param transit Transit object.
25520 * @param images Eina_List of images file paths. This list and
25521 * its contents will be deleted at the end of the effect by
25522 * elm_transit_effect_image_animation_context_free() function.
25523 * @return Image Animation effect context data.
25527 EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
25532 typedef struct _Elm_Store Elm_Store;
25533 typedef struct _Elm_Store_Filesystem Elm_Store_Filesystem;
25534 typedef struct _Elm_Store_Item Elm_Store_Item;
25535 typedef struct _Elm_Store_Item_Filesystem Elm_Store_Item_Filesystem;
25536 typedef struct _Elm_Store_Item_Info Elm_Store_Item_Info;
25537 typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
25538 typedef struct _Elm_Store_Item_Mapping Elm_Store_Item_Mapping;
25539 typedef struct _Elm_Store_Item_Mapping_Empty Elm_Store_Item_Mapping_Empty;
25540 typedef struct _Elm_Store_Item_Mapping_Icon Elm_Store_Item_Mapping_Icon;
25541 typedef struct _Elm_Store_Item_Mapping_Photo Elm_Store_Item_Mapping_Photo;
25542 typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom;
25544 typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
25545 typedef void (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
25546 typedef void (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
25547 typedef void *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
25551 ELM_STORE_ITEM_MAPPING_NONE = 0,
25552 ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
25553 ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
25554 ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
25555 ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
25556 ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
25557 // can add more here as needed by common apps
25558 ELM_STORE_ITEM_MAPPING_LAST
25559 } Elm_Store_Item_Mapping_Type;
25561 struct _Elm_Store_Item_Mapping_Icon
25563 // FIXME: allow edje file icons
25565 Elm_Icon_Lookup_Order lookup_order;
25566 Eina_Bool standard_name : 1;
25567 Eina_Bool no_scale : 1;
25568 Eina_Bool smooth : 1;
25569 Eina_Bool scale_up : 1;
25570 Eina_Bool scale_down : 1;
25573 struct _Elm_Store_Item_Mapping_Empty
25578 struct _Elm_Store_Item_Mapping_Photo
25583 struct _Elm_Store_Item_Mapping_Custom
25585 Elm_Store_Item_Mapping_Cb func;
25588 struct _Elm_Store_Item_Mapping
25590 Elm_Store_Item_Mapping_Type type;
25595 Elm_Store_Item_Mapping_Empty empty;
25596 Elm_Store_Item_Mapping_Icon icon;
25597 Elm_Store_Item_Mapping_Photo photo;
25598 Elm_Store_Item_Mapping_Custom custom;
25599 // add more types here
25603 struct _Elm_Store_Item_Info
25605 Elm_Genlist_Item_Class *item_class;
25606 const Elm_Store_Item_Mapping *mapping;
25611 struct _Elm_Store_Item_Info_Filesystem
25613 Elm_Store_Item_Info base;
25617 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
25618 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
25620 EAPI void elm_store_free(Elm_Store *st);
25622 EAPI Elm_Store *elm_store_filesystem_new(void);
25623 EAPI void elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
25624 EAPI const char *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25625 EAPI const char *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25627 EAPI void elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
25629 EAPI void elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
25630 EAPI int elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25631 EAPI void elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25632 EAPI void elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25633 EAPI void elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
25634 EAPI Eina_Bool elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25636 EAPI void elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25637 EAPI void elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
25638 EAPI Eina_Bool elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25639 EAPI void elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
25640 EAPI void *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25641 EAPI const Elm_Store *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25642 EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25645 * @defgroup SegmentControl SegmentControl
25646 * @ingroup Elementary
25648 * @image html img/widget/segment_control/preview-00.png
25649 * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
25651 * @image html img/segment_control.png
25652 * @image latex img/segment_control.eps width=\textwidth
25654 * Segment control widget is a horizontal control made of multiple segment
25655 * items, each segment item functioning similar to discrete two state button.
25656 * A segment control groups the items together and provides compact
25657 * single button with multiple equal size segments.
25659 * Segment item size is determined by base widget
25660 * size and the number of items added.
25661 * Only one segment item can be at selected state. A segment item can display
25662 * combination of Text and any Evas_Object like Images or other widget.
25664 * Smart callbacks one can listen to:
25665 * - "changed" - When the user clicks on a segment item which is not
25666 * previously selected and get selected. The event_info parameter is the
25667 * segment item index.
25669 * Available styles for it:
25672 * Here is an example on its usage:
25673 * @li @ref segment_control_example
25677 * @addtogroup SegmentControl
25681 typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
25684 * Add a new segment control widget to the given parent Elementary
25685 * (container) object.
25687 * @param parent The parent object.
25688 * @return a new segment control widget handle or @c NULL, on errors.
25690 * This function inserts a new segment control widget on the canvas.
25692 * @ingroup SegmentControl
25694 EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25697 * Append a new item to the segment control object.
25699 * @param obj The segment control object.
25700 * @param icon The icon object to use for the left side of the item. An
25701 * icon can be any Evas object, but usually it is an icon created
25702 * with elm_icon_add().
25703 * @param label The label of the item.
25704 * Note that, NULL is different from empty string "".
25705 * @return The created item or @c NULL upon failure.
25707 * A new item will be created and appended to the segment control, i.e., will
25708 * be set as @b last item.
25710 * If it should be inserted at another position,
25711 * elm_segment_control_item_insert_at() should be used instead.
25713 * Items created with this function can be deleted with function
25714 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
25716 * @note @p label set to @c NULL is different from empty string "".
25718 * only has icon, it will be displayed bigger and centered. If it has
25719 * icon and label, even that an empty string, icon will be smaller and
25720 * positioned at left.
25724 * sc = elm_segment_control_add(win);
25725 * ic = elm_icon_add(win);
25726 * elm_icon_file_set(ic, "path/to/image", NULL);
25727 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
25728 * elm_segment_control_item_add(sc, ic, "label");
25729 * evas_object_show(sc);
25732 * @see elm_segment_control_item_insert_at()
25733 * @see elm_segment_control_item_del()
25735 * @ingroup SegmentControl
25737 EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
25740 * Insert a new item to the segment control object at specified position.
25742 * @param obj The segment control object.
25743 * @param icon The icon object to use for the left side of the item. An
25744 * icon can be any Evas object, but usually it is an icon created
25745 * with elm_icon_add().
25746 * @param label The label of the item.
25747 * @param index Item position. Value should be between 0 and items count.
25748 * @return The created item or @c NULL upon failure.
25750 * Index values must be between @c 0, when item will be prepended to
25751 * segment control, and items count, that can be get with
25752 * elm_segment_control_item_count_get(), case when item will be appended
25753 * to segment control, just like elm_segment_control_item_add().
25755 * Items created with this function can be deleted with function
25756 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
25758 * @note @p label set to @c NULL is different from empty string "".
25760 * only has icon, it will be displayed bigger and centered. If it has
25761 * icon and label, even that an empty string, icon will be smaller and
25762 * positioned at left.
25764 * @see elm_segment_control_item_add()
25765 * @see elm_segment_control_count_get()
25766 * @see elm_segment_control_item_del()
25768 * @ingroup SegmentControl
25770 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);
25773 * Remove a segment control item from its parent, deleting it.
25775 * @param it The item to be removed.
25777 * Items can be added with elm_segment_control_item_add() or
25778 * elm_segment_control_item_insert_at().
25780 * @ingroup SegmentControl
25782 EAPI void elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25785 * Remove a segment control item at given index from its parent,
25788 * @param obj The segment control object.
25789 * @param index The position of the segment control item to be deleted.
25791 * Items can be added with elm_segment_control_item_add() or
25792 * elm_segment_control_item_insert_at().
25794 * @ingroup SegmentControl
25796 EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25799 * Get the Segment items count from segment control.
25801 * @param obj The segment control object.
25802 * @return Segment items count.
25804 * It will just return the number of items added to segment control @p obj.
25806 * @ingroup SegmentControl
25808 EAPI int elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25811 * Get the item placed at specified index.
25813 * @param obj The segment control object.
25814 * @param index The index of the segment item.
25815 * @return The segment control item or @c NULL on failure.
25817 * Index is the position of an item in segment control widget. Its
25818 * range is from @c 0 to <tt> count - 1 </tt>.
25819 * Count is the number of items, that can be get with
25820 * elm_segment_control_item_count_get().
25822 * @ingroup SegmentControl
25824 EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25827 * Get the label of item.
25829 * @param obj The segment control object.
25830 * @param index The index of the segment item.
25831 * @return The label of the item at @p index.
25833 * The return value is a pointer to the label associated to the item when
25834 * it was created, with function elm_segment_control_item_add(), or later
25835 * with function elm_segment_control_item_label_set. If no label
25836 * was passed as argument, it will return @c NULL.
25838 * @see elm_segment_control_item_label_set() for more details.
25839 * @see elm_segment_control_item_add()
25841 * @ingroup SegmentControl
25843 EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25846 * Set the label of item.
25848 * @param it The item of segment control.
25849 * @param text The label of item.
25851 * The label to be displayed by the item.
25852 * Label will be at right of the icon (if set).
25854 * If a label was passed as argument on item creation, with function
25855 * elm_control_segment_item_add(), it will be already
25856 * displayed by the item.
25858 * @see elm_segment_control_item_label_get()
25859 * @see elm_segment_control_item_add()
25861 * @ingroup SegmentControl
25863 EAPI void elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
25866 * Get the icon associated to the item.
25868 * @param obj The segment control object.
25869 * @param index The index of the segment item.
25870 * @return The left side icon associated to the item at @p index.
25872 * The return value is a pointer to the icon associated to the item when
25873 * it was created, with function elm_segment_control_item_add(), or later
25874 * with function elm_segment_control_item_icon_set(). If no icon
25875 * was passed as argument, it will return @c NULL.
25877 * @see elm_segment_control_item_add()
25878 * @see elm_segment_control_item_icon_set()
25880 * @ingroup SegmentControl
25882 EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25885 * Set the icon associated to the item.
25887 * @param it The segment control item.
25888 * @param icon The icon object to associate with @p it.
25890 * The icon object to use at left side of the item. An
25891 * icon can be any Evas object, but usually it is an icon created
25892 * with elm_icon_add().
25894 * Once the icon object is set, a previously set one will be deleted.
25895 * @warning Setting the same icon for two items will cause the icon to
25896 * dissapear from the first item.
25898 * If an icon was passed as argument on item creation, with function
25899 * elm_segment_control_item_add(), it will be already
25900 * associated to the item.
25902 * @see elm_segment_control_item_add()
25903 * @see elm_segment_control_item_icon_get()
25905 * @ingroup SegmentControl
25907 EAPI void elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
25910 * Get the index of an item.
25912 * @param it The segment control item.
25913 * @return The position of item in segment control widget.
25915 * Index is the position of an item in segment control widget. Its
25916 * range is from @c 0 to <tt> count - 1 </tt>.
25917 * Count is the number of items, that can be get with
25918 * elm_segment_control_item_count_get().
25920 * @ingroup SegmentControl
25922 EAPI int elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25925 * Get the base object of the item.
25927 * @param it The segment control item.
25928 * @return The base object associated with @p it.
25930 * Base object is the @c Evas_Object that represents that item.
25932 * @ingroup SegmentControl
25934 EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25937 * Get the selected item.
25939 * @param obj The segment control object.
25940 * @return The selected item or @c NULL if none of segment items is
25943 * The selected item can be unselected with function
25944 * elm_segment_control_item_selected_set().
25946 * The selected item always will be highlighted on segment control.
25948 * @ingroup SegmentControl
25950 EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25953 * Set the selected state of an item.
25955 * @param it The segment control item
25956 * @param select The selected state
25958 * This sets the selected state of the given item @p it.
25959 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
25961 * If a new item is selected the previosly selected will be unselected.
25962 * Previoulsy selected item can be get with function
25963 * elm_segment_control_item_selected_get().
25965 * The selected item always will be highlighted on segment control.
25967 * @see elm_segment_control_item_selected_get()
25969 * @ingroup SegmentControl
25971 EAPI void elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
25978 * @defgroup Grid Grid
25980 * The grid is a grid layout widget that lays out a series of children as a
25981 * fixed "grid" of widgets using a given percentage of the grid width and
25982 * height each using the child object.
25984 * The Grid uses a "Virtual resolution" that is stretched to fill the grid
25985 * widgets size itself. The default is 100 x 100, so that means the
25986 * position and sizes of children will effectively be percentages (0 to 100)
25987 * of the width or height of the grid widget
25993 * Add a new grid to the parent
25995 * @param parent The parent object
25996 * @return The new object or NULL if it cannot be created
26000 EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
26003 * Set the virtual size of the grid
26005 * @param obj The grid object
26006 * @param w The virtual width of the grid
26007 * @param h The virtual height of the grid
26011 EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h);
26014 * Get the virtual size of the grid
26016 * @param obj The grid object
26017 * @param w Pointer to integer to store the virtual width of the grid
26018 * @param h Pointer to integer to store the virtual height of the grid
26022 EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h);
26025 * Pack child at given position and size
26027 * @param obj The grid object
26028 * @param subobj The child to pack
26029 * @param x The virtual x coord at which to pack it
26030 * @param y The virtual y coord at which to pack it
26031 * @param w The virtual width at which to pack it
26032 * @param h The virtual height at which to pack it
26036 EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
26039 * Unpack a child from a grid object
26041 * @param obj The grid object
26042 * @param subobj The child to unpack
26046 EAPI void elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
26049 * Faster way to remove all child objects from a grid object.
26051 * @param obj The grid object
26052 * @param clear If true, it will delete just removed children
26056 EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
26059 * Set packing of an existing child at to position and size
26061 * @param subobj The child to set packing of
26062 * @param x The virtual x coord at which to pack it
26063 * @param y The virtual y coord at which to pack it
26064 * @param w The virtual width at which to pack it
26065 * @param h The virtual height at which to pack it
26069 EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
26072 * get packing of a child
26074 * @param subobj The child to query
26075 * @param x Pointer to integer to store the virtual x coord
26076 * @param y Pointer to integer to store the virtual y coord
26077 * @param w Pointer to integer to store the virtual width
26078 * @param h Pointer to integer to store the virtual height
26082 EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
26088 EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
26089 EAPI void elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
26090 EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
26092 EAPI Evas_Object *elm_video_add(Evas_Object *parent);
26093 EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
26094 EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
26095 EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
26096 EAPI void elm_video_play(Evas_Object *video);
26097 EAPI void elm_video_pause(Evas_Object *video);
26098 EAPI void elm_video_stop(Evas_Object *video);
26099 EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
26100 EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
26101 EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
26102 EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
26103 EAPI double elm_video_audio_level_get(Evas_Object *video);
26104 EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
26105 EAPI double elm_video_play_position_get(Evas_Object *video);
26106 EAPI void elm_video_play_position_set(Evas_Object *video, double position);
26107 EAPI double elm_video_play_length_get(Evas_Object *video);
26108 EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
26109 EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
26110 EAPI const char *elm_video_title_get(Evas_Object *video);
26112 EAPI Evas_Object *elm_player_add(Evas_Object *parent);
26113 EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
26116 EAPI Evas_Object *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26117 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);
26118 EAPI Evas_Object *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
26119 EAPI void elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
26120 EAPI Eina_Bool elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26121 EAPI void elm_naviframe_item_title_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26122 EAPI const char *elm_naviframe_item_title_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26123 EAPI void elm_naviframe_item_subtitle_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26124 EAPI const char *elm_naviframe_item_subtitle_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26125 EAPI Elm_Object_Item *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26126 EAPI Elm_Object_Item *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26127 EAPI void elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
26128 EAPI const char *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26129 EAPI void elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
26130 EAPI Eina_Bool elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26133 * @defgroup Video Video
26135 * This object display an player that let you control an Elm_Video
26136 * object. It take care of updating it's content according to what is
26137 * going on inside the Emotion object. It does activate the remember
26138 * function on the linked Elm_Video object.
26140 * Signals that you cann add callback for are :
26142 * "forward,clicked" - the user clicked the forward button.
26143 * "info,clicked" - the user clicked the info button.
26144 * "next,clicked" - the user clicked the next button.
26145 * "pause,clicked" - the user clicked the pause button.
26146 * "play,clicked" - the user clicked the play button.
26147 * "prev,clicked" - the user clicked the prev button.
26148 * "rewind,clicked" - the user clicked the rewind button.
26149 * "stop,clicked" - the user clicked the stop button.