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 which hold the widgets.
34 @section license License
36 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
37 all files in the source tree.
39 @section ack Acknowledgements
40 There is a lot that goes into making a widget set, and they don't happen out of
41 nothing. It's like trying to make everyone everywhere happy, regardless of age,
42 gender, race or nationality - and that is really tough. So thanks to people and
43 organisations behind this, as listed in the @ref authors page.
48 * @defgroup Start Getting Started
50 * To write an Elementary app, you can get started with the following:
53 #include <Elementary.h>
55 elm_main(int argc, char **argv)
57 // create window(s) here and do any application init
58 elm_run(); // run main loop
59 elm_shutdown(); // after mainloop finishes running, shutdown
60 return 0; // exit 0 for exit code
65 * To use autotools (which helps in many ways in the long run, like being able
66 * to immediately create releases of your software directly from your tree
67 * and ensure everything needed to build it is there) you will need a
68 * configure.ac, Makefile.am and autogen.sh file.
73 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
75 AC_CONFIG_SRCDIR(configure.ac)
76 AM_CONFIG_HEADER(config.h)
78 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
79 PKG_CHECK_MODULES([ELEMENTARY], elementary)
86 AUTOMAKE_OPTIONS = 1.4 foreign
87 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
89 INCLUDES = -I$(top_srcdir)
93 myapp_SOURCES = main.c
94 myapp_LDADD = @ELEMENTARY_LIBS@
95 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
102 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
103 echo "Running autoheader..." ; autoheader || exit 1
104 echo "Running autoconf..." ; autoconf || exit 1
105 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
109 * To generate all the things needed to bootstrap just run:
115 * This will generate Makefile.in's, the confgure script and everything else.
116 * After this it works like all normal autotools projects:
123 * Note sudo was assumed to get root permissions, as this would install in
124 * /usr/local which is system-owned. Use any way you like to gain root, or
125 * specify a different prefix with configure:
128 ./confiugre --prefix=$HOME/mysoftware
131 * Also remember that autotools buys you some useful commands like:
136 * This uninstalls the software after it was installed with "make install".
137 * It is very useful to clear up what you built if you wish to clean the
144 * This firstly checks if your build tree is "clean" and ready for
145 * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
146 * ready to upload and distribute to the world, that contains the generated
147 * Makefile.in's and configure script. The users do not need to run
148 * autogen.sh - just configure and on. They don't need autotools installed.
149 * This tarball also builds cleanly, has all the sources it needs to build
150 * included (that is sources for your application, not libraries it depends
151 * on like Elementary). It builds cleanly in a buildroot and does not
152 * contain any files that are temporarily generated like binaries and other
153 * build-generated files, so the tarball is clean, and no need to worry
154 * about cleaning up your tree before packaging.
160 * This cleans up all build files (binaries, objects etc.) from the tree.
166 * This cleans out all files from the build and from configure's output too.
169 make maintainer-clean
172 * This deletes all the files autogen.sh will produce so the tree is clean
173 * to be put into a revision-control system (like CVS, SVN or GIT for example).
175 * There is a more advanced way of making use of the quicklaunch infrastructure
176 * in Elementary (which will not be covered here due to its more advanced
179 * Now let's actually create an interactive "Hello World" gui that you can
180 * click the ok button to exit. It's more code because this now does something
181 * much more significant, but it's still very simple:
184 #include <Elementary.h>
187 on_done(void *data, Evas_Object *obj, void *event_info)
189 // quit the mainloop (elm_run function will return)
194 elm_main(int argc, char **argv)
196 Evas_Object *win, *bg, *box, *lab, *btn;
198 // new window - do the usual and give it a name (hello) and title (Hello)
199 win = elm_win_util_standard_add("hello", "Hello");
200 // when the user clicks "close" on a window there is a request to delete
201 evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
203 // add a box object - default is vertical. a box holds children in a row,
204 // either horizontally or vertically. nothing more.
205 box = elm_box_add(win);
206 // make the box hotizontal
207 elm_box_horizontal_set(box, EINA_TRUE);
208 // add object as a resize object for the window (controls window minimum
209 // size as well as gets resized if window is resized)
210 elm_win_resize_object_add(win, box);
211 evas_object_show(box);
213 // add a label widget, set the text and put it in the pad frame
214 lab = elm_label_add(win);
215 // set default text of the label
216 elm_object_text_set(lab, "Hello out there world!");
217 // pack the label at the end of the box
218 elm_box_pack_end(box, lab);
219 evas_object_show(lab);
222 btn = elm_button_add(win);
223 // set default text of button to "OK"
224 elm_object_text_set(btn, "OK");
225 // pack the button at the end of the box
226 elm_box_pack_end(box, btn);
227 evas_object_show(btn);
228 // call on_done when button is clicked
229 evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
231 // now we are done, show the window
232 evas_object_show(win);
234 // run the mainloop and process events and callbacks
245 @page authors Authors
246 @author Carsten Haitzler <raster@@rasterman.com>
247 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
248 @author Cedric Bail <cedric.bail@@free.fr>
249 @author Vincent Torri <vtorri@@univ-evry.fr>
250 @author Daniel Kolesa <quaker66@@gmail.com>
251 @author Jaime Thomas <avi.thomas@@gmail.com>
252 @author Swisscom - http://www.swisscom.ch/
253 @author Christopher Michael <devilhorns@@comcast.net>
254 @author Marco Trevisan (TreviƱo) <mail@@3v1n0.net>
255 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
256 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
257 @author Brian Wang <brian.wang.0721@@gmail.com>
258 @author Mike Blumenkrantz (discomfitor/zmike) <michael.blumenkrantz@@gmail.com>
259 @author Samsung Electronics <tbd>
260 @author Samsung SAIT <tbd>
261 @author Brett Nash <nash@@nash.id.au>
262 @author Bruno Dilly <bdilly@@profusion.mobi>
263 @author Rafael Fonseca <rfonseca@@profusion.mobi>
264 @author Chuneon Park <hermet@@hermet.pe.kr>
265 @author Woohyun Jung <wh0705.jung@@samsung.com>
266 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
267 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
268 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
269 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
270 @author Gustavo Lima Chaves <glima@@profusion.mobi>
271 @author Fabiano FidĆŖncio <fidencio@@profusion.mobi>
272 @author Tiago FalcĆ£o <tiago@@profusion.mobi>
273 @author Otavio Pontes <otavio@@profusion.mobi>
274 @author Viktor Kojouharov <vkojouharov@@gmail.com>
275 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
276 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
277 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
278 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
279 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
280 @author Jihoon Kim <jihoon48.kim@@samsung.com>
281 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
282 @author Tom Hacohen <tom@@stosb.com>
283 @author Aharon Hillel <a.hillel@@partner.samsung.com>
284 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
285 @author Shinwoo Kim <kimcinoo@@gmail.com>
286 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
287 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
288 @author Sung W. Park <sungwoo@@gmail.com>
289 @author Thierry el Borgi <thierry@@substantiel.fr>
290 @author Shilpa Singh <shilpa.singh@@samsung.com> <shilpasingh.o@@gmail.com>
291 @author Chanwook Jung <joey.jung@@samsung.com>
292 @author Hyoyoung Chang <hyoyoung.chang@@samsung.com>
293 @author Guillaume "Kuri" Friloux <guillaume.friloux@@asp64.com>
294 @author Kim Yunhan <spbear@@gmail.com>
295 @author Bluezery <ohpowel@@gmail.com>
296 @author Nicolas Aguirre <aguirre.nicolas@@gmail.com>
297 @author Sanjeev BA <iamsanjeev@@gmail.com>
299 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
300 contact with the developers and maintainers.
308 * @brief Elementary's API
313 @ELM_UNIX_DEF@ ELM_UNIX
314 @ELM_WIN32_DEF@ ELM_WIN32
315 @ELM_WINCE_DEF@ ELM_WINCE
316 @ELM_EDBUS_DEF@ ELM_EDBUS
317 @ELM_EFREET_DEF@ ELM_EFREET
318 @ELM_ETHUMB_DEF@ ELM_ETHUMB
319 @ELM_WEB_DEF@ ELM_WEB
320 @ELM_EMAP_DEF@ ELM_EMAP
321 @ELM_DEBUG_DEF@ ELM_DEBUG
322 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
323 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
324 @ELM_DIRENT_H_DEF@ ELM_DIRENT_H
326 /* Standard headers for standard system calls etc. */
331 #include <sys/types.h>
332 #include <sys/stat.h>
333 #include <sys/time.h>
334 #include <sys/param.h>
348 # ifdef ELM_LIBINTL_H
349 # include <libintl.h>
360 #if defined (ELM_WIN32) || defined (ELM_WINCE)
363 # define alloca _alloca
374 #include <Ecore_Evas.h>
375 #include <Ecore_File.h>
376 @ELEMENTARY_ECORE_IMF_INC@
377 @ELEMENTARY_ECORE_CON_INC@
386 # include <Efreet_Mime.h>
387 # include <Efreet_Trash.h>
391 # include <Ethumb_Client.h>
403 # ifdef ELEMENTARY_BUILD
405 # define EAPI __declspec(dllexport)
408 # endif /* ! DLL_EXPORT */
410 # define EAPI __declspec(dllimport)
411 # endif /* ! EFL_EVAS_BUILD */
415 # define EAPI __attribute__ ((visibility("default")))
422 #endif /* ! _WIN32 */
427 # define EAPI_MAIN EAPI
430 /* allow usage from c++ */
435 #define ELM_VERSION_MAJOR @VMAJ@
436 #define ELM_VERSION_MINOR @VMIN@
438 typedef struct _Elm_Version
446 EAPI extern Elm_Version *elm_version;
449 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
450 #define ELM_PI 3.14159265358979323846
453 * @defgroup General General
455 * @brief General Elementary API. Functions that don't relate to
456 * Elementary objects specifically.
458 * Here are documented functions which init/shutdown the library,
459 * that apply to generic Elementary objects, that deal with
460 * configuration, et cetera.
462 * @ref general_functions_example_page "This" example contemplates
463 * some of these functions.
467 * @addtogroup General
472 * Defines couple of standard Evas_Object layers to be used
473 * with evas_object_layer_set().
475 * @note whenever extending with new values, try to keep some padding
476 * to siblings so there is room for further extensions.
478 typedef enum _Elm_Object_Layer
480 ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
481 ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
482 ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
483 ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
484 ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
485 ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
488 /**************************************************************************/
489 EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
492 * Emitted when the application has reconfigured elementary settings due
493 * to an external configuration tool asking it to.
495 EAPI extern int ELM_EVENT_CONFIG_ALL_CHANGED;
498 * Emitted when any Elementary's policy value is changed.
500 EAPI extern int ELM_EVENT_POLICY_CHANGED;
503 * @typedef Elm_Event_Policy_Changed
505 * Data on the event when an Elementary policy has changed
507 typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
510 * @struct _Elm_Event_Policy_Changed
512 * Data on the event when an Elementary policy has changed
514 struct _Elm_Event_Policy_Changed
516 unsigned int policy; /**< the policy identifier */
517 int new_value; /**< value the policy had before the change */
518 int old_value; /**< new value the policy got */
522 * Policy identifiers.
524 typedef enum _Elm_Policy
526 ELM_POLICY_QUIT, /**< under which circumstances the application
527 * should quit automatically. @see
531 } Elm_Policy; /**< Elementary policy identifiers/groups enumeration. @see elm_policy_set()
534 typedef enum _Elm_Policy_Quit
536 ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
538 ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
540 * window is closed */
541 } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
543 typedef enum _Elm_Focus_Direction
547 } Elm_Focus_Direction;
549 typedef enum _Elm_Text_Format
551 ELM_TEXT_FORMAT_PLAIN_UTF8,
552 ELM_TEXT_FORMAT_MARKUP_UTF8
556 * Line wrapping types.
558 typedef enum _Elm_Wrap_Type
560 ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
561 ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
562 ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
563 ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
569 ELM_INPUT_PANEL_LAYOUT_NORMAL, /**< Default layout */
570 ELM_INPUT_PANEL_LAYOUT_NUMBER, /**< Number layout */
571 ELM_INPUT_PANEL_LAYOUT_EMAIL, /**< Email layout */
572 ELM_INPUT_PANEL_LAYOUT_URL, /**< URL layout */
573 ELM_INPUT_PANEL_LAYOUT_PHONENUMBER, /**< Phone Number layout */
574 ELM_INPUT_PANEL_LAYOUT_IP, /**< IP layout */
575 ELM_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */
576 ELM_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */
577 ELM_INPUT_PANEL_LAYOUT_INVALID
578 } Elm_Input_Panel_Layout;
582 ELM_AUTOCAPITAL_TYPE_NONE,
583 ELM_AUTOCAPITAL_TYPE_WORD,
584 ELM_AUTOCAPITAL_TYPE_SENTENCE,
585 ELM_AUTOCAPITAL_TYPE_ALLCHARACTER,
586 } Elm_Autocapital_Type;
589 * @typedef Elm_Object_Item
590 * An Elementary Object item handle.
593 typedef struct _Elm_Object_Item Elm_Object_Item;
597 * Called back when a widget's tooltip is activated and needs content.
598 * @param data user-data given to elm_object_tooltip_content_cb_set()
599 * @param obj owner widget.
600 * @param tooltip The tooltip object (affix content to this!)
602 typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
605 * Called back when a widget's item tooltip is activated and needs content.
606 * @param data user-data given to elm_object_tooltip_content_cb_set()
607 * @param obj owner widget.
608 * @param tooltip The tooltip object (affix content to this!)
609 * @param item context dependent item. As an example, if tooltip was
610 * set on Elm_List_Item, then it is of this type.
612 typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
614 typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info); /**< Function prototype definition for callbacks on input events happening on Elementary widgets. @a data will receive the user data pointer passed to elm_object_event_callback_add(). @a src will be a pointer to the widget on which the input event took place. @a type will get the type of this event and @a event_info, the struct with details on this event. */
616 #ifndef ELM_LIB_QUICKLAUNCH
617 #define ELM_MAIN() int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv);} /**< macro to be used after the elm_main() function */
619 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
622 /**************************************************************************/
626 * Initialize Elementary
628 * @param[in] argc System's argument count value
629 * @param[in] argv System's pointer to array of argument strings
630 * @return The init counter value.
632 * This function initializes Elementary and increments a counter of
633 * the number of calls to it. It returns the new counter's value.
635 * @warning This call is exported only for use by the @c ELM_MAIN()
636 * macro. There is no need to use this if you use this macro (which
637 * is highly advisable). An elm_main() should contain the entry
638 * point code for your application, having the same prototype as
639 * elm_init(), and @b not being static (putting the @c EAPI symbol
640 * in front of its type declaration is advisable). The @c
641 * ELM_MAIN() call should be placed just after it.
644 * @dontinclude bg_example_01.c
648 * See the full @ref bg_example_01_c "example".
650 * @see elm_shutdown().
653 EAPI int elm_init(int argc, char **argv);
656 * Shut down Elementary
658 * @return The init counter value.
660 * This should be called at the end of your application, just
661 * before it ceases to do any more processing. This will clean up
662 * any permanent resources your application may have allocated via
663 * Elementary that would otherwise persist.
665 * @see elm_init() for an example
669 EAPI int elm_shutdown(void);
672 * Run Elementary's main loop
674 * This call should be issued just after all initialization is
675 * completed. This function will not return until elm_exit() is
676 * called. It will keep looping, running the main
677 * (event/processing) loop for Elementary.
679 * @see elm_init() for an example
683 EAPI void elm_run(void);
686 * Exit Elementary's main loop
688 * If this call is issued, it will flag the main loop to cease
689 * processing and return back to its parent function (usually your
690 * elm_main() function).
692 * @see elm_init() for an example. There, just after a request to
693 * close the window comes, the main loop will be left.
695 * @note By using the appropriate #ELM_POLICY_QUIT on your Elementary
696 * applications, you'll be able to get this function called automatically for you.
700 EAPI void elm_exit(void);
703 * Provide information in order to make Elementary determine the @b
704 * run time location of the software in question, so other data files
705 * such as images, sound files, executable utilities, libraries,
706 * modules and locale files can be found.
708 * @param mainfunc This is your application's main function name,
709 * whose binary's location is to be found. Providing @c NULL
710 * will make Elementary not to use it
711 * @param dom This will be used as the application's "domain", in the
712 * form of a prefix to any environment variables that may
713 * override prefix detection and the directory name, inside the
714 * standard share or data directories, where the software's
715 * data files will be looked for.
716 * @param checkfile This is an (optional) magic file's path to check
717 * for existence (and it must be located in the data directory,
718 * under the share directory provided above). Its presence will
719 * help determine the prefix found was correct. Pass @c NULL if
720 * the check is not to be done.
722 * This function allows one to re-locate the application somewhere
723 * else after compilation, if the developer wishes for easier
724 * distribution of pre-compiled binaries.
726 * The prefix system is designed to locate where the given software is
727 * installed (under a common path prefix) at run time and then report
728 * specific locations of this prefix and common directories inside
729 * this prefix like the binary, library, data and locale directories,
730 * through the @c elm_app_*_get() family of functions.
732 * Call elm_app_info_set() early on before you change working
733 * directory or anything about @c argv[0], so it gets accurate
736 * It will then try and trace back which file @p mainfunc comes from,
737 * if provided, to determine the application's prefix directory.
739 * The @p dom parameter provides a string prefix to prepend before
740 * environment variables, allowing a fallback to @b specific
741 * environment variables to locate the software. You would most
742 * probably provide a lowercase string there, because it will also
743 * serve as directory domain, explained next. For environment
744 * variables purposes, this string is made uppercase. For example if
745 * @c "myapp" is provided as the prefix, then the program would expect
746 * @c "MYAPP_PREFIX" as a master environment variable to specify the
747 * exact install prefix for the software, or more specific environment
748 * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
749 * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
750 * the user or scripts before launching. If not provided (@c NULL),
751 * environment variables will not be used to override compiled-in
752 * defaults or auto detections.
754 * The @p dom string also provides a subdirectory inside the system
755 * shared data directory for data files. For example, if the system
756 * directory is @c /usr/local/share, then this directory name is
757 * appended, creating @c /usr/local/share/myapp, if it @p was @c
758 * "myapp". It is expected that the application installs data files in
761 * The @p checkfile is a file name or path of something inside the
762 * share or data directory to be used to test that the prefix
763 * detection worked. For example, your app will install a wallpaper
764 * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
765 * check that this worked, provide @c "images/wallpaper.jpg" as the @p
768 * @see elm_app_compile_bin_dir_set()
769 * @see elm_app_compile_lib_dir_set()
770 * @see elm_app_compile_data_dir_set()
771 * @see elm_app_compile_locale_set()
772 * @see elm_app_prefix_dir_get()
773 * @see elm_app_bin_dir_get()
774 * @see elm_app_lib_dir_get()
775 * @see elm_app_data_dir_get()
776 * @see elm_app_locale_dir_get()
778 EAPI void elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
781 * Provide information on the @b fallback application's binaries
782 * directory, in scenarios where they get overriden by
783 * elm_app_info_set().
785 * @param dir The path to the default binaries directory (compile time
788 * @note Elementary will as well use this path to determine actual
789 * names of binaries' directory paths, maybe changing it to be @c
790 * something/local/bin instead of @c something/bin, only, for
793 * @warning You should call this function @b before
794 * elm_app_info_set().
796 EAPI void elm_app_compile_bin_dir_set(const char *dir);
799 * Provide information on the @b fallback application's libraries
800 * directory, on scenarios where they get overriden by
801 * elm_app_info_set().
803 * @param dir The path to the default libraries directory (compile
806 * @note Elementary will as well use this path to determine actual
807 * names of libraries' directory paths, maybe changing it to be @c
808 * something/lib32 or @c something/lib64 instead of @c something/lib,
811 * @warning You should call this function @b before
812 * elm_app_info_set().
814 EAPI void elm_app_compile_lib_dir_set(const char *dir);
817 * Provide information on the @b fallback application's data
818 * directory, on scenarios where they get overriden by
819 * elm_app_info_set().
821 * @param dir The path to the default data directory (compile time
824 * @note Elementary will as well use this path to determine actual
825 * names of data directory paths, maybe changing it to be @c
826 * something/local/share instead of @c something/share, only, for
829 * @warning You should call this function @b before
830 * elm_app_info_set().
832 EAPI void elm_app_compile_data_dir_set(const char *dir);
835 * Provide information on the @b fallback application's locale
836 * directory, on scenarios where they get overriden by
837 * elm_app_info_set().
839 * @param dir The path to the default locale directory (compile time
842 * @warning You should call this function @b before
843 * elm_app_info_set().
845 EAPI void elm_app_compile_locale_set(const char *dir);
848 * Retrieve the application's run time prefix directory, as set by
849 * elm_app_info_set() and the way (environment) the application was
852 * @return The directory prefix the application is actually using.
854 EAPI const char *elm_app_prefix_dir_get(void);
857 * Retrieve the application's run time binaries prefix directory, as
858 * set by elm_app_info_set() and the way (environment) the application
861 * @return The binaries directory prefix the application is actually
864 EAPI const char *elm_app_bin_dir_get(void);
867 * Retrieve the application's run time libraries prefix directory, as
868 * set by elm_app_info_set() and the way (environment) the application
871 * @return The libraries directory prefix the application is actually
874 EAPI const char *elm_app_lib_dir_get(void);
877 * Retrieve the application's run time data prefix directory, as
878 * set by elm_app_info_set() and the way (environment) the application
881 * @return The data directory prefix the application is actually
884 EAPI const char *elm_app_data_dir_get(void);
887 * Retrieve the application's run time locale prefix directory, as
888 * set by elm_app_info_set() and the way (environment) the application
891 * @return The locale directory prefix the application is actually
894 EAPI const char *elm_app_locale_dir_get(void);
897 * Exposed symbol used only by macros and should not be used by apps
899 EAPI void elm_quicklaunch_mode_set(Eina_Bool ql_on);
902 * Exposed symbol used only by macros and should not be used by apps
904 EAPI Eina_Bool elm_quicklaunch_mode_get(void);
907 * Exposed symbol used only by macros and should not be used by apps
909 EAPI int elm_quicklaunch_init(int argc, char **argv);
912 * Exposed symbol used only by macros and should not be used by apps
914 EAPI int elm_quicklaunch_sub_init(int argc, char **argv);
917 * Exposed symbol used only by macros and should not be used by apps
919 EAPI int elm_quicklaunch_sub_shutdown(void);
922 * Exposed symbol used only by macros and should not be used by apps
924 EAPI int elm_quicklaunch_shutdown(void);
927 * Exposed symbol used only by macros and should not be used by apps
929 EAPI void elm_quicklaunch_seed(void);
932 * Exposed symbol used only by macros and should not be used by apps
934 EAPI Eina_Bool elm_quicklaunch_prepare(int argc, char **argv);
937 * Exposed symbol used only by macros and should not be used by apps
939 EAPI Eina_Bool elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
942 * Exposed symbol used only by macros and should not be used by apps
944 EAPI void elm_quicklaunch_cleanup(void);
947 * Exposed symbol used only by macros and should not be used by apps
949 EAPI int elm_quicklaunch_fallback(int argc, char **argv);
952 * Exposed symbol used only by macros and should not be used by apps
954 EAPI char *elm_quicklaunch_exe_path_get(const char *exe);
957 * Request that your elementary application needs efreet
959 * This initializes the Efreet library when called and if support exists
960 * it returns EINA_TRUE, otherwise returns EINA_FALSE. This must be called
961 * before any efreet calls.
963 * @return EINA_TRUE if support exists and initialization succeeded.
967 EAPI Eina_Bool elm_need_efreet(void);
970 * Request that your elementary application needs e_dbus
972 * This initializes the E_dbus library when called and if support exists
973 * it returns EINA_TRUE, otherwise returns EINA_FALSE. This must be called
974 * before any e_dbus calls.
976 * @return EINA_TRUE if support exists and initialization succeeded.
980 EAPI Eina_Bool elm_need_e_dbus(void);
983 * Request that your elementary application needs ethumb
985 * This initializes the Ethumb library when called and if support exists
986 * it returns EINA_TRUE, otherwise returns EINA_FALSE.
987 * This must be called before any other function that deals with
988 * elm_thumb objects or ethumb_client instances.
992 EAPI Eina_Bool elm_need_ethumb(void);
995 * Request that your elementary application needs web support
997 * This initializes the Ewebkit library when called and if support exists
998 * it returns EINA_TRUE, otherwise returns EINA_FALSE.
999 * This must be called before any other function that deals with
1000 * elm_web objects or ewk_view instances.
1004 EAPI Eina_Bool elm_need_web(void);
1007 * Set a new policy's value (for a given policy group/identifier).
1009 * @param policy policy identifier, as in @ref Elm_Policy.
1010 * @param value policy value, which depends on the identifier
1012 * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
1014 * Elementary policies define applications' behavior,
1015 * somehow. These behaviors are divided in policy groups (see
1016 * #Elm_Policy enumeration). This call will emit the Ecore event
1017 * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
1018 * handlers. An #Elm_Event_Policy_Changed struct will be passed,
1021 * @note Currently, we have only one policy identifier/group
1022 * (#ELM_POLICY_QUIT), which has two possible values.
1026 EAPI Eina_Bool elm_policy_set(unsigned int policy, int value);
1029 * Gets the policy value for given policy identifier.
1031 * @param policy policy identifier, as in #Elm_Policy.
1032 * @return The currently set policy value, for that
1033 * identifier. Will be @c 0 if @p policy passed is invalid.
1037 EAPI int elm_policy_get(unsigned int policy);
1040 * Change the language of the current application
1042 * The @p lang passed must be the full name of the locale to use, for
1043 * example "en_US.utf8" or "es_ES@euro".
1045 * Changing language with this function will make Elementary run through
1046 * all its widgets, translating strings set with
1047 * elm_object_domain_translatable_text_part_set(). This way, an entire
1048 * UI can have its language changed without having to restart the program.
1050 * For more complex cases, like having formatted strings that need
1051 * translation, widgets will also emit a "language,changed" signal that
1052 * the user can listen to to manually translate the text.
1054 * @param lang Language to set, must be the full name of the locale
1058 EAPI void elm_language_set(const char *lang);
1061 * Set a label of an object
1063 * @param obj The Elementary object
1064 * @param part The text part name to set (NULL for the default label)
1065 * @param label The new text of the label
1067 * @note Elementary objects may have many labels (e.g. Action Slider)
1068 * @deprecated Use elm_object_part_text_set() instead.
1071 EINA_DEPRECATED EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
1074 * Set a label of an object
1076 * @param obj The Elementary object
1077 * @param part The text part name to set (NULL for the default label)
1078 * @param label The new text of the label
1080 * @note Elementary objects may have many labels (e.g. Action Slider)
1084 EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
1086 #define elm_object_text_set(obj, label) elm_object_part_text_set((obj), NULL, (label))
1089 * Get a label of an object
1091 * @param obj The Elementary object
1092 * @param part The text part name to get (NULL for the default label)
1093 * @return text of the label or NULL for any error
1095 * @note Elementary objects may have many labels (e.g. Action Slider)
1096 * @deprecated Use elm_object_part_text_get() instead.
1099 EINA_DEPRECATED EAPI const char *elm_object_text_part_get(const Evas_Object *obj, const char *part);
1102 * Get a label of an object
1104 * @param obj The Elementary object
1105 * @param part The text part name to get (NULL for the default label)
1106 * @return text of the label or NULL for any error
1108 * @note Elementary objects may have many labels (e.g. Action Slider)
1112 EAPI const char *elm_object_part_text_get(const Evas_Object *obj, const char *part);
1114 #define elm_object_text_get(obj) elm_object_part_text_get((obj), NULL)
1117 * Set the text for an objects' part, marking it as translatable.
1119 * The string to set as @p text must be the original one. Do not pass the
1120 * return of @c gettext() here. Elementary will translate the string
1121 * internally and set it on the object using elm_object_part_text_set(),
1122 * also storing the original string so that it can be automatically
1123 * translated when the language is changed with elm_language_set().
1125 * The @p domain will be stored along to find the translation in the
1126 * correct catalog. It can be NULL, in which case it will use whatever
1127 * domain was set by the application with @c textdomain(). This is useful
1128 * in case you are building a library on top of Elementary that will have
1129 * its own translatable strings, that should not be mixed with those of
1130 * programs using the library.
1132 * @param obj The object containing the text part
1133 * @param part The name of the part to set
1134 * @param domain The translation domain to use
1135 * @param text The original, non-translated text to set
1139 EAPI void elm_object_domain_translatable_text_part_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
1141 #define elm_object_domain_translatable_text_set(obj, domain, text) elm_object_domain_translatable_text_part_set((obj), NULL, (domain), (text))
1143 #define elm_object_translatable_text_set(obj, text) elm_object_domain_translatable_text_part_set((obj), NULL, NULL, (text))
1146 * Gets the original string set as translatable for an object
1148 * When setting translated strings, the function elm_object_part_text_get()
1149 * will return the translation returned by @c gettext(). To get the
1150 * original string use this function.
1152 * @param obj The object
1153 * @param part The name of the part that was set
1155 * @return The original, untranslated string
1159 EAPI const char *elm_object_translatable_text_part_get(const Evas_Object *obj, const char *part);
1161 #define elm_object_translatable_text_get(obj) elm_object_translatable_text_part_get((obj), NULL)
1164 * Set a content of an object
1166 * @param obj The Elementary object
1167 * @param part The content part name to set (NULL for the default content)
1168 * @param content The new content of the object
1170 * @note Elementary objects may have many contents
1171 * @deprecated Use elm_object_part_content_set instead.
1174 EINA_DEPRECATED EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
1177 * Set a content of an object
1179 * @param obj The Elementary object
1180 * @param part The content part name to set (NULL for the default content)
1181 * @param content The new content of the object
1183 * @note Elementary objects may have many contents
1187 EAPI void elm_object_part_content_set(Evas_Object *obj, const char *part, Evas_Object *content);
1189 #define elm_object_content_set(obj, content) elm_object_part_content_set((obj), NULL, (content))
1192 * Get a content of an object
1194 * @param obj The Elementary object
1195 * @param item The content part name to get (NULL for the default content)
1196 * @return content of the object or NULL for any error
1198 * @note Elementary objects may have many contents
1199 * @deprecated Use elm_object_part_content_get instead.
1202 EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
1205 * Get a content of an object
1207 * @param obj The Elementary object
1208 * @param item The content part name to get (NULL for the default content)
1209 * @return content of the object or NULL for any error
1211 * @note Elementary objects may have many contents
1215 EAPI Evas_Object *elm_object_part_content_get(const Evas_Object *obj, const char *part);
1217 #define elm_object_content_get(obj) elm_object_part_content_get((obj), NULL)
1220 * Unset a content of an object
1222 * @param obj The Elementary object
1223 * @param item The content part name to unset (NULL for the default content)
1225 * @note Elementary objects may have many contents
1226 * @deprecated Use elm_object_part_content_unset instead.
1229 EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1232 * Unset a content of an object
1234 * @param obj The Elementary object
1235 * @param item The content part name to unset (NULL for the default content)
1237 * @note Elementary objects may have many contents
1241 EAPI Evas_Object *elm_object_part_content_unset(Evas_Object *obj, const char *part);
1243 #define elm_object_content_unset(obj) elm_object_part_content_unset((obj), NULL)
1246 * Set the text to read out when in accessibility mode
1248 * @param obj The object which is to be described
1249 * @param txt The text that describes the widget to people with poor or no vision
1253 EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1256 * Get the widget object's handle which contains a given item
1258 * @param item The Elementary object item
1259 * @return The widget object
1261 * @note This returns the widget object itself that an item belongs to.
1265 EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1268 * Set a content of an object item
1270 * @param it The Elementary object item
1271 * @param part The content part name to set (NULL for the default content)
1272 * @param content The new content of the object item
1274 * @note Elementary object items may have many contents
1275 * @deprecated Use elm_object_item_part_content_set instead.
1278 EINA_DEPRECATED EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1281 * Set a content of an object item
1283 * @param it The Elementary object item
1284 * @param part The content part name to set (NULL for the default content)
1285 * @param content The new content of the object item
1287 * @note Elementary object items may have many contents
1291 EAPI void elm_object_item_part_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1293 #define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
1296 * Get a content of an object item
1298 * @param it The Elementary object item
1299 * @param part The content part name to unset (NULL for the default content)
1300 * @return content of the object item or NULL for any error
1302 * @note Elementary object items may have many contents
1303 * @deprecated Use elm_object_item_part_content_get instead.
1306 EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1309 * Get a content of an object item
1311 * @param it The Elementary object item
1312 * @param part The content part name to unset (NULL for the default content)
1313 * @return content of the object item or NULL for any error
1315 * @note Elementary object items may have many contents
1319 EAPI Evas_Object *elm_object_item_part_content_get(const Elm_Object_Item *it, const char *part);
1321 #define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
1324 * Unset a content of an object item
1326 * @param it The Elementary object item
1327 * @param part The content part name to unset (NULL for the default content)
1329 * @note Elementary object items may have many contents
1330 * @deprecated Use elm_object_item_part_content_unset instead.
1333 EINA_DEPRECATED EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1336 * Unset a content of an object item
1338 * @param it The Elementary object item
1339 * @param part The content part name to unset (NULL for the default content)
1341 * @note Elementary object items may have many contents
1345 EAPI Evas_Object *elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part);
1347 #define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
1350 * Set a label of an object item
1352 * @param it The Elementary object item
1353 * @param part The text part name to set (NULL for the default label)
1354 * @param label The new text of the label
1356 * @note Elementary object items may have many labels
1357 * @deprecated Use elm_object_item_part_text_set instead.
1360 EINA_DEPRECATED EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1363 * Set a label of an object item
1365 * @param it The Elementary object item
1366 * @param part The text part name to set (NULL for the default label)
1367 * @param label The new text of the label
1369 * @note Elementary object items may have many labels
1373 EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
1375 #define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
1378 * Get a label of an object item
1380 * @param it The Elementary object item
1381 * @param part The text part name to get (NULL for the default label)
1382 * @return text of the label or NULL for any error
1384 * @note Elementary object items may have many labels
1385 * @deprecated Use elm_object_item_part_text_get instead.
1388 EINA_DEPRECATED EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1390 * Get a label of an object item
1392 * @param it The Elementary object item
1393 * @param part The text part name to get (NULL for the default label)
1394 * @return text of the label or NULL for any error
1396 * @note Elementary object items may have many labels
1400 EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
1402 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
1405 * Set the text to read out when in accessibility mode
1407 * @param it The object item which is to be described
1408 * @param txt The text that describes the widget to people with poor or no vision
1412 EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1415 * Get the data associated with an object item
1416 * @param it The Elementary object item
1417 * @return The data associated with @p it
1421 EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1424 * Set the data associated with an object item
1425 * @param it The Elementary object item
1426 * @param data The data to be associated with @p it
1430 EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1433 * Send a signal to the edje object of the widget item.
1435 * This function sends a signal to the edje object of the obj item. An
1436 * edje program can respond to a signal by specifying matching
1437 * 'signal' and 'source' fields.
1439 * @param it The Elementary object item
1440 * @param emission The signal's name.
1441 * @param source The signal's source.
1444 EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1447 * Set the disabled state of an widget item.
1449 * @param obj The Elementary object item
1450 * @param disabled The state to put in in: @c EINA_TRUE for
1451 * disabled, @c EINA_FALSE for enabled
1453 * Elementary object item can be @b disabled, in which state they won't
1454 * receive input and, in general, will be themed differently from
1455 * their normal state, usually greyed out. Useful for contexts
1456 * where you don't want your users to interact with some of the
1457 * parts of you interface.
1459 * This sets the state for the widget item, either disabling it or
1464 EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1467 * Get the disabled state of an widget item.
1469 * @param obj The Elementary object
1470 * @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
1471 * if it's enabled (or on errors)
1473 * This gets the state of the widget, which might be enabled or disabled.
1477 EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1484 * @defgroup Caches Caches
1486 * These are functions which let one fine-tune some cache values for
1487 * Elementary applications, thus allowing for performance adjustments.
1493 * @brief Flush all caches.
1495 * Frees all data that was in cache and is not currently being used to reduce
1496 * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1497 * to calling all of the following functions:
1498 * @li edje_file_cache_flush()
1499 * @li edje_collection_cache_flush()
1500 * @li eet_clearcache()
1501 * @li evas_image_cache_flush()
1502 * @li evas_font_cache_flush()
1503 * @li evas_render_dump()
1504 * @note Evas caches are flushed for every canvas associated with a window.
1508 EAPI void elm_all_flush(void);
1511 * Get the configured cache flush interval time
1513 * This gets the globally configured cache flush interval time, in
1516 * @return The cache flush interval time
1519 * @see elm_all_flush()
1521 EAPI int elm_cache_flush_interval_get(void);
1524 * Set the configured cache flush interval time
1526 * This sets the globally configured cache flush interval time, in ticks
1528 * @param size The cache flush interval time
1531 * @see elm_all_flush()
1533 EAPI void elm_cache_flush_interval_set(int size);
1536 * Set the configured cache flush interval time for all applications on the
1539 * This sets the globally configured cache flush interval time -- in ticks
1540 * -- for all applications on the display.
1542 * @param size The cache flush interval time
1545 EAPI void elm_cache_flush_interval_all_set(int size);
1548 * Get the configured cache flush enabled state
1550 * This gets the globally configured cache flush state - if it is enabled
1551 * or not. When cache flushing is enabled, elementary will regularly
1552 * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1553 * memory and allow usage to re-seed caches and data in memory where it
1554 * can do so. An idle application will thus minimise its memory usage as
1555 * data will be freed from memory and not be re-loaded as it is idle and
1556 * not rendering or doing anything graphically right now.
1558 * @return The cache flush state
1561 * @see elm_all_flush()
1563 EAPI Eina_Bool elm_cache_flush_enabled_get(void);
1566 * Set the configured cache flush enabled state
1568 * This sets the globally configured cache flush enabled state.
1570 * @param size The cache flush enabled state
1573 * @see elm_all_flush()
1575 EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled);
1578 * Set the configured cache flush enabled state for all applications on the
1581 * This sets the globally configured cache flush enabled state for all
1582 * applications on the display.
1584 * @param size The cache flush enabled state
1587 EAPI void elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1590 * Get the configured font cache size
1592 * This gets the globally configured font cache size, in bytes.
1594 * @return The font cache size
1597 EAPI int elm_font_cache_get(void);
1600 * Set the configured font cache size
1602 * This sets the globally configured font cache size, in bytes
1604 * @param size The font cache size
1607 EAPI void elm_font_cache_set(int size);
1610 * Set the configured font cache size for all applications on the
1613 * This sets the globally configured font cache size -- in bytes
1614 * -- for all applications on the display.
1616 * @param size The font cache size
1619 EAPI void elm_font_cache_all_set(int size);
1622 * Get the configured image cache size
1624 * This gets the globally configured image cache size, in bytes
1626 * @return The image cache size
1629 EAPI int elm_image_cache_get(void);
1632 * Set the configured image cache size
1634 * This sets the globally configured image cache size, in bytes
1636 * @param size The image cache size
1639 EAPI void elm_image_cache_set(int size);
1642 * Set the configured image cache size for all applications on the
1645 * This sets the globally configured image cache size -- in bytes
1646 * -- for all applications on the display.
1648 * @param size The image cache size
1651 EAPI void elm_image_cache_all_set(int size);
1654 * Get the configured edje file cache size.
1656 * This gets the globally configured edje file cache size, in number
1659 * @return The edje file cache size
1662 EAPI int elm_edje_file_cache_get(void);
1665 * Set the configured edje file cache size
1667 * This sets the globally configured edje file cache size, in number
1670 * @param size The edje file cache size
1673 EAPI void elm_edje_file_cache_set(int size);
1676 * Set the configured edje file cache size for all applications on the
1679 * This sets the globally configured edje file cache size -- in number
1680 * of files -- for all applications on the display.
1682 * @param size The edje file cache size
1685 EAPI void elm_edje_file_cache_all_set(int size);
1688 * Get the configured edje collections (groups) cache size.
1690 * This gets the globally configured edje collections cache size, in
1691 * number of collections.
1693 * @return The edje collections cache size
1696 EAPI int elm_edje_collection_cache_get(void);
1699 * Set the configured edje collections (groups) cache size
1701 * This sets the globally configured edje collections cache size, in
1702 * number of collections.
1704 * @param size The edje collections cache size
1707 EAPI void elm_edje_collection_cache_set(int size);
1710 * Set the configured edje collections (groups) cache size for all
1711 * applications on the display
1713 * This sets the globally configured edje collections cache size -- in
1714 * number of collections -- for all applications on the display.
1716 * @param size The edje collections cache size
1719 EAPI void elm_edje_collection_cache_all_set(int size);
1726 * @defgroup Scaling Widget Scaling
1728 * Different widgets can be scaled independently. These functions
1729 * allow you to manipulate this scaling on a per-widget basis. The
1730 * object and all its children get their scaling factors multiplied
1731 * by the scale factor set. This is multiplicative, in that if a
1732 * child also has a scale size set it is in turn multiplied by its
1733 * parent's scale size. @c 1.0 means ādon't scaleā, @c 2.0 is
1734 * double size, @c 0.5 is half, etc.
1736 * @ref general_functions_example_page "This" example contemplates
1737 * some of these functions.
1741 * Get the global scaling factor
1743 * This gets the globally configured scaling factor that is applied to all
1746 * @return The scaling factor
1749 EAPI double elm_scale_get(void);
1752 * Set the global scaling factor
1754 * This sets the globally configured scaling factor that is applied to all
1757 * @param scale The scaling factor to set
1760 EAPI void elm_scale_set(double scale);
1763 * Set the global scaling factor for all applications on the display
1765 * This sets the globally configured scaling factor that is applied to all
1766 * objects for all applications.
1767 * @param scale The scaling factor to set
1770 EAPI void elm_scale_all_set(double scale);
1773 * Set the scaling factor for a given Elementary object
1775 * @param obj The Elementary to operate on
1776 * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1781 EAPI void elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1784 * Get the scaling factor for a given Elementary object
1786 * @param obj The object
1787 * @return The scaling factor set by elm_object_scale_set()
1791 EAPI double elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1794 * @defgroup Password_last_show Password last input show
1796 * Last show feature of password mode enables user to view
1797 * the last input entered for few seconds before masking it.
1798 * These functions allow to set this feature in password mode
1799 * of entry widget and also allow to manipulate the duration
1800 * for which the input has to be visible.
1806 * Get show last setting of password mode.
1808 * This gets the show last input setting of password mode which might be
1809 * enabled or disabled.
1811 * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1813 * @ingroup Password_last_show
1815 EAPI Eina_Bool elm_password_show_last_get(void);
1818 * Set show last setting in password mode.
1820 * This enables or disables show last setting of password mode.
1822 * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1823 * @see elm_password_show_last_timeout_set()
1824 * @ingroup Password_last_show
1826 EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1829 * Get's the timeout value in last show password mode.
1831 * This gets the time out value for which the last input entered in password
1832 * mode will be visible.
1834 * @return The timeout value of last show password mode.
1835 * @ingroup Password_last_show
1837 EAPI double elm_password_show_last_timeout_get(void);
1840 * Set's the timeout value in last show password mode.
1842 * This sets the time out value for which the last input entered in password
1843 * mode will be visible.
1845 * @param password_show_last_timeout The timeout value.
1846 * @see elm_password_show_last_set()
1847 * @ingroup Password_last_show
1849 EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1856 * @defgroup UI-Mirroring Selective Widget mirroring
1858 * These functions allow you to set ui-mirroring on specific
1859 * widgets or the whole interface. Widgets can be in one of two
1860 * modes, automatic and manual. Automatic means they'll be changed
1861 * according to the system mirroring mode and manual means only
1862 * explicit changes will matter. You are not supposed to change
1863 * mirroring state of a widget set to automatic, will mostly work,
1864 * but the behavior is not really defined.
1869 EAPI Eina_Bool elm_mirrored_get(void);
1870 EAPI void elm_mirrored_set(Eina_Bool mirrored);
1873 * Get the system mirrored mode. This determines the default mirrored mode
1876 * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1878 EAPI Eina_Bool elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1881 * Set the system mirrored mode. This determines the default mirrored mode
1884 * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1886 EAPI void elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1889 * Returns the widget's mirrored mode setting.
1891 * @param obj The widget.
1892 * @return mirrored mode setting of the object.
1895 EAPI Eina_Bool elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1898 * Sets the widget's mirrored mode setting.
1899 * When widget in automatic mode, it follows the system mirrored mode set by
1900 * elm_mirrored_set().
1901 * @param obj The widget.
1902 * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1904 EAPI void elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1911 * Set the style to use by a widget
1913 * Sets the style name that will define the appearance of a widget. Styles
1914 * vary from widget to widget and may also be defined by other themes
1915 * by means of extensions and overlays.
1917 * @param obj The Elementary widget to style
1918 * @param style The style name to use
1920 * @see elm_theme_extension_add()
1921 * @see elm_theme_extension_del()
1922 * @see elm_theme_overlay_add()
1923 * @see elm_theme_overlay_del()
1927 EAPI void elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1929 * Get the style used by the widget
1931 * This gets the style being used for that widget. Note that the string
1932 * pointer is only valid as longas the object is valid and the style doesn't
1935 * @param obj The Elementary widget to query for its style
1936 * @return The style name used
1938 * @see elm_object_style_set()
1942 EAPI const char *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1945 * @defgroup Styles Styles
1947 * Widgets can have different styles of look. These generic API's
1948 * set styles of widgets, if they support them (and if the theme(s)
1951 * @ref general_functions_example_page "This" example contemplates
1952 * some of these functions.
1956 * Set the disabled state of an Elementary object.
1958 * @param obj The Elementary object to operate on
1959 * @param disabled The state to put in in: @c EINA_TRUE for
1960 * disabled, @c EINA_FALSE for enabled
1962 * Elementary objects can be @b disabled, in which state they won't
1963 * receive input and, in general, will be themed differently from
1964 * their normal state, usually greyed out. Useful for contexts
1965 * where you don't want your users to interact with some of the
1966 * parts of you interface.
1968 * This sets the state for the widget, either disabling it or
1973 EAPI void elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1976 * Get the disabled state of an Elementary object.
1978 * @param obj The Elementary object to operate on
1979 * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1980 * if it's enabled (or on errors)
1982 * This gets the state of the widget, which might be enabled or disabled.
1986 EAPI Eina_Bool elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1989 * @defgroup WidgetNavigation Widget Tree Navigation.
1991 * How to check if an Evas Object is an Elementary widget? How to
1992 * get the first elementary widget that is parent of the given
1993 * object? These are all covered in widget tree navigation.
1995 * @ref general_functions_example_page "This" example contemplates
1996 * some of these functions.
2000 * Check if the given Evas Object is an Elementary widget.
2002 * @param obj the object to query.
2003 * @return @c EINA_TRUE if it is an elementary widget variant,
2004 * @c EINA_FALSE otherwise
2005 * @ingroup WidgetNavigation
2007 EAPI Eina_Bool elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2010 * Get the first parent of the given object that is an Elementary
2013 * @param obj the Elementary object to query parent from.
2014 * @return the parent object that is an Elementary widget, or @c
2015 * NULL, if it was not found.
2017 * Use this to query for an object's parent widget.
2019 * @note Most of Elementary users wouldn't be mixing non-Elementary
2020 * smart objects in the objects tree of an application, as this is
2021 * an advanced usage of Elementary with Evas. So, except for the
2022 * application's window, which is the root of that tree, all other
2023 * objects would have valid Elementary widget parents.
2025 * @ingroup WidgetNavigation
2027 EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2030 * Get the top level parent of an Elementary widget.
2032 * @param obj The object to query.
2033 * @return The top level Elementary widget, or @c NULL if parent cannot be
2035 * @ingroup WidgetNavigation
2037 EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2040 * Get the string that represents this Elementary widget.
2042 * @note Elementary is weird and exposes itself as a single
2043 * Evas_Object_Smart_Class of type "elm_widget", so
2044 * evas_object_type_get() always return that, making debug and
2045 * language bindings hard. This function tries to mitigate this
2046 * problem, but the solution is to change Elementary to use
2047 * proper inheritance.
2049 * @param obj the object to query.
2050 * @return Elementary widget name, or @c NULL if not a valid widget.
2051 * @ingroup WidgetNavigation
2053 EAPI const char *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2056 * @defgroup Config Elementary Config
2058 * Elementary configuration is formed by a set options bounded to a
2059 * given @ref Profile profile, like @ref Theme theme, @ref Fingers
2060 * "finger size", etc. These are functions with which one syncronizes
2061 * changes made to those values to the configuration storing files, de
2062 * facto. You most probably don't want to use the functions in this
2063 * group unlees you're writing an elementary configuration manager.
2069 * Save back Elementary's configuration, so that it will persist on
2072 * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2075 * This function will take effect -- thus, do I/O -- immediately. Use
2076 * it when you want to apply all configuration changes at once. The
2077 * current configuration set will get saved onto the current profile
2078 * configuration file.
2081 EAPI Eina_Bool elm_config_save(void);
2084 * Reload Elementary's configuration, bounded to current selected
2087 * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2090 * Useful when you want to force reloading of configuration values for
2091 * a profile. If one removes user custom configuration directories,
2092 * for example, it will force a reload with system values instead.
2095 EAPI void elm_config_reload(void);
2102 * @defgroup Profile Elementary Profile
2104 * Profiles are pre-set options that affect the whole look-and-feel of
2105 * Elementary-based applications. There are, for example, profiles
2106 * aimed at desktop computer applications and others aimed at mobile,
2107 * touchscreen-based ones. You most probably don't want to use the
2108 * functions in this group unlees you're writing an elementary
2109 * configuration manager.
2115 * Get Elementary's profile in use.
2117 * This gets the global profile that is applied to all Elementary
2120 * @return The profile's name
2123 EAPI const char *elm_profile_current_get(void);
2126 * Get an Elementary's profile directory path in the filesystem. One
2127 * may want to fetch a system profile's dir or an user one (fetched
2130 * @param profile The profile's name
2131 * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
2132 * or a system one (@c EINA_FALSE)
2133 * @return The profile's directory path.
2136 * @note You must free it with elm_profile_dir_free().
2138 EAPI const char *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
2141 * Free an Elementary's profile directory path, as returned by
2142 * elm_profile_dir_get().
2144 * @param p_dir The profile's path
2148 EAPI void elm_profile_dir_free(const char *p_dir);
2151 * Get Elementary's list of available profiles.
2153 * @return The profiles list. List node data are the profile name
2157 * @note One must free this list, after usage, with the function
2158 * elm_profile_list_free().
2160 EAPI Eina_List *elm_profile_list_get(void);
2163 * Free Elementary's list of available profiles.
2165 * @param l The profiles list, as returned by elm_profile_list_get().
2169 EAPI void elm_profile_list_free(Eina_List *l);
2172 * Set Elementary's profile.
2174 * This sets the global profile that is applied to Elementary
2175 * applications. Just the process the call comes from will be
2178 * @param profile The profile's name
2182 EAPI void elm_profile_set(const char *profile);
2185 * Set Elementary's profile.
2187 * This sets the global profile that is applied to all Elementary
2188 * applications. All running Elementary windows will be affected.
2190 * @param profile The profile's name
2194 EAPI void elm_profile_all_set(const char *profile);
2201 * @defgroup Engine Elementary Engine
2203 * These are functions setting and querying which rendering engine
2204 * Elementary will use for drawing its windows' pixels.
2206 * The following are the available engines:
2207 * @li "software_x11"
2210 * @li "software_16_x11"
2211 * @li "software_8_x11"
2214 * @li "software_gdi"
2215 * @li "software_16_wince_gdi"
2217 * @li "software_16_sdl"
2221 * @li "opengl_cocoa"
2228 * @brief Get Elementary's rendering engine in use.
2230 * @return The rendering engine's name
2231 * @note there's no need to free the returned string, here.
2233 * This gets the global rendering engine that is applied to all Elementary
2236 * @see elm_engine_set()
2238 EAPI const char *elm_engine_current_get(void);
2241 * @brief Set Elementary's rendering engine for use.
2243 * @param engine The rendering engine's name
2245 * This sets global rendering engine that is applied to all Elementary
2246 * applications. Note that it will take effect only to Elementary windows
2247 * created after this is called.
2249 * @see elm_win_add()
2251 EAPI void elm_engine_set(const char *engine);
2258 * @defgroup Fonts Elementary Fonts
2260 * These are functions dealing with font rendering, selection and the
2261 * like for Elementary applications. One might fetch which system
2262 * fonts are there to use and set custom fonts for individual classes
2263 * of UI items containing text (text classes).
2268 typedef struct _Elm_Text_Class
2274 typedef struct _Elm_Font_Overlay
2276 const char *text_class;
2278 Evas_Font_Size size;
2281 typedef struct _Elm_Font_Properties
2285 } Elm_Font_Properties;
2288 * Get Elementary's list of supported text classes.
2290 * @return The text classes list, with @c Elm_Text_Class blobs as data.
2293 * Release the list with elm_text_classes_list_free().
2295 EAPI const Eina_List *elm_text_classes_list_get(void);
2298 * Free Elementary's list of supported text classes.
2302 * @see elm_text_classes_list_get().
2304 EAPI void elm_text_classes_list_free(const Eina_List *list);
2307 * Get Elementary's list of font overlays, set with
2308 * elm_font_overlay_set().
2310 * @return The font overlays list, with @c Elm_Font_Overlay blobs as
2315 * For each text class, one can set a <b>font overlay</b> for it,
2316 * overriding the default font properties for that class coming from
2317 * the theme in use. There is no need to free this list.
2319 * @see elm_font_overlay_set() and elm_font_overlay_unset().
2321 EAPI const Eina_List *elm_font_overlay_list_get(void);
2324 * Set a font overlay for a given Elementary text class.
2326 * @param text_class Text class name
2327 * @param font Font name and style string
2328 * @param size Font size
2332 * @p font has to be in the format returned by
2333 * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
2334 * and elm_font_overlay_unset().
2336 EAPI void elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
2339 * Unset a font overlay for a given Elementary text class.
2341 * @param text_class Text class name
2345 * This will bring back text elements belonging to text class
2346 * @p text_class back to their default font settings.
2348 EAPI void elm_font_overlay_unset(const char *text_class);
2351 * Apply the changes made with elm_font_overlay_set() and
2352 * elm_font_overlay_unset() on the current Elementary window.
2356 * This applies all font overlays set to all objects in the UI.
2358 EAPI void elm_font_overlay_apply(void);
2361 * Apply the changes made with elm_font_overlay_set() and
2362 * elm_font_overlay_unset() on all Elementary application windows.
2366 * This applies all font overlays set to all objects in the UI.
2368 EAPI void elm_font_overlay_all_apply(void);
2371 * Translate a font (family) name string in fontconfig's font names
2372 * syntax into an @c Elm_Font_Properties struct.
2374 * @param font The font name and styles string
2375 * @return the font properties struct
2379 * @note The reverse translation can be achived with
2380 * elm_font_fontconfig_name_get(), for one style only (single font
2381 * instance, not family).
2383 EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2386 * Free font properties return by elm_font_properties_get().
2388 * @param efp the font properties struct
2392 EAPI void elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2395 * Translate a font name, bound to a style, into fontconfig's font names
2398 * @param name The font (family) name
2399 * @param style The given style (may be @c NULL)
2401 * @return the font name and style string
2405 * @note The reverse translation can be achived with
2406 * elm_font_properties_get(), for one style only (single font
2407 * instance, not family).
2409 EAPI const char *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2412 * Free the font string return by elm_font_fontconfig_name_get().
2414 * @param efp the font properties struct
2418 EAPI void elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2421 * Create a font hash table of available system fonts.
2423 * One must call it with @p list being the return value of
2424 * evas_font_available_list(). The hash will be indexed by font
2425 * (family) names, being its values @c Elm_Font_Properties blobs.
2427 * @param list The list of available system fonts, as returned by
2428 * evas_font_available_list().
2429 * @return the font hash.
2433 * @note The user is supposed to get it populated at least with 3
2434 * default font families (Sans, Serif, Monospace), which should be
2435 * present on most systems.
2437 EAPI Eina_Hash *elm_font_available_hash_add(Eina_List *list);
2440 * Free the hash return by elm_font_available_hash_add().
2442 * @param hash the hash to be freed.
2446 EAPI void elm_font_available_hash_del(Eina_Hash *hash);
2453 * @defgroup Fingers Fingers
2455 * Elementary is designed to be finger-friendly for touchscreens,
2456 * and so in addition to scaling for display resolution, it can
2457 * also scale based on finger "resolution" (or size). You can then
2458 * customize the granularity of the areas meant to receive clicks
2461 * Different profiles may have pre-set values for finger sizes.
2463 * @ref general_functions_example_page "This" example contemplates
2464 * some of these functions.
2470 * Get the configured "finger size"
2472 * @return The finger size
2474 * This gets the globally configured finger size, <b>in pixels</b>
2478 EAPI Evas_Coord elm_finger_size_get(void);
2481 * Set the configured finger size
2483 * This sets the globally configured finger size in pixels
2485 * @param size The finger size
2488 EAPI void elm_finger_size_set(Evas_Coord size);
2491 * Set the configured finger size for all applications on the display
2493 * This sets the globally configured finger size in pixels for all
2494 * applications on the display
2496 * @param size The finger size
2499 EAPI void elm_finger_size_all_set(Evas_Coord size);
2506 * @defgroup Focus Focus
2508 * An Elementary application has, at all times, one (and only one)
2509 * @b focused object. This is what determines where the input
2510 * events go to within the application's window. Also, focused
2511 * objects can be decorated differently, in order to signal to the
2512 * user where the input is, at a given moment.
2514 * Elementary applications also have the concept of <b>focus
2515 * chain</b>: one can cycle through all the windows' focusable
2516 * objects by input (tab key) or programmatically. The default
2517 * focus chain for an application is the one define by the order in
2518 * which the widgets where added in code. One will cycle through
2519 * top level widgets, and, for each one containg sub-objects, cycle
2520 * through them all, before returning to the level
2521 * above. Elementary also allows one to set @b custom focus chains
2522 * for their applications.
2524 * Besides the focused decoration a widget may exhibit, when it
2525 * gets focus, Elementary has a @b global focus highlight object
2526 * that can be enabled for a window. If one chooses to do so, this
2527 * extra highlight effect will surround the current focused object,
2530 * @note Some Elementary widgets are @b unfocusable, after
2531 * creation, by their very nature: they are not meant to be
2532 * interacted with input events, but are there just for visual
2535 * @ref general_functions_example_page "This" example contemplates
2536 * some of these functions.
2540 * Get the enable status of the focus highlight
2542 * This gets whether the highlight on focused objects is enabled or not
2545 EAPI Eina_Bool elm_focus_highlight_enabled_get(void);
2548 * Set the enable status of the focus highlight
2550 * Set whether to show or not the highlight on focused objects
2551 * @param enable Enable highlight if EINA_TRUE, disable otherwise
2554 EAPI void elm_focus_highlight_enabled_set(Eina_Bool enable);
2557 * Get the enable status of the highlight animation
2559 * Get whether the focus highlight, if enabled, will animate its switch from
2560 * one object to the next
2563 EAPI Eina_Bool elm_focus_highlight_animate_get(void);
2566 * Set the enable status of the highlight animation
2568 * Set whether the focus highlight, if enabled, will animate its switch from
2569 * one object to the next
2570 * @param animate Enable animation if EINA_TRUE, disable otherwise
2573 EAPI void elm_focus_highlight_animate_set(Eina_Bool animate);
2576 * Get the whether an Elementary object has the focus or not.
2578 * @param obj The Elementary object to get the information from
2579 * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2580 * not (and on errors).
2582 * @see elm_object_focus_set()
2586 EAPI Eina_Bool elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2589 * Set/unset focus to a given Elementary object.
2591 * @param obj The Elementary object to operate on.
2592 * @param enable @c EINA_TRUE Set focus to a given object,
2593 * @c EINA_FALSE Unset focus to a given object.
2595 * @note When you set focus to this object, if it can handle focus, will
2596 * take the focus away from the one who had it previously and will, for
2597 * now on, be the one receiving input events. Unsetting focus will remove
2598 * the focus from @p obj, passing it back to the previous element in the
2601 * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2605 EAPI void elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2608 * Make a given Elementary object the focused one.
2610 * @param obj The Elementary object to make focused.
2612 * @note This object, if it can handle focus, will take the focus
2613 * away from the one who had it previously and will, for now on, be
2614 * the one receiving input events.
2616 * @see elm_object_focus_get()
2617 * @deprecated use elm_object_focus_set() instead.
2621 EINA_DEPRECATED EAPI void elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2624 * Remove the focus from an Elementary object
2626 * @param obj The Elementary to take focus from
2628 * This removes the focus from @p obj, passing it back to the
2629 * previous element in the focus chain list.
2631 * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2632 * @deprecated use elm_object_focus_set() instead.
2636 EINA_DEPRECATED EAPI void elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2639 * Set the ability for an Element object to be focused
2641 * @param obj The Elementary object to operate on
2642 * @param enable @c EINA_TRUE if the object can be focused, @c
2643 * EINA_FALSE if not (and on errors)
2645 * This sets whether the object @p obj is able to take focus or
2646 * not. Unfocusable objects do nothing when programmatically
2647 * focused, being the nearest focusable parent object the one
2648 * really getting focus. Also, when they receive mouse input, they
2649 * will get the event, but not take away the focus from where it
2654 EAPI void elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2657 * Get whether an Elementary object is focusable or not
2659 * @param obj The Elementary object to operate on
2660 * @return @c EINA_TRUE if the object is allowed to be focused, @c
2661 * EINA_FALSE if not (and on errors)
2663 * @note Objects which are meant to be interacted with by input
2664 * events are created able to be focused, by default. All the
2669 EAPI Eina_Bool elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2672 * Set custom focus chain.
2674 * This function overwrites any previous custom focus chain within
2675 * the list of objects. The previous list will be deleted and this list
2676 * will be managed by elementary. After it is set, don't modify it.
2678 * @note On focus cycle, only will be evaluated children of this container.
2680 * @param obj The container object
2681 * @param objs Chain of objects to pass focus
2684 EAPI void elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2687 * Unset a custom focus chain on a given Elementary widget
2689 * @param obj The container object to remove focus chain from
2691 * Any focus chain previously set on @p obj (for its child objects)
2692 * is removed entirely after this call.
2696 EAPI void elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2699 * Get custom focus chain
2701 * @param obj The container object
2704 EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2707 * Append object to custom focus chain.
2709 * @note If relative_child equal to NULL or not in custom chain, the object
2710 * will be added in end.
2712 * @note On focus cycle, only will be evaluated children of this container.
2714 * @param obj The container object
2715 * @param child The child to be added in custom chain
2716 * @param relative_child The relative object to position the child
2719 EAPI void elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2722 * Prepend object to custom focus chain.
2724 * @note If relative_child equal to NULL or not in custom chain, the object
2725 * will be added in begin.
2727 * @note On focus cycle, only will be evaluated children of this container.
2729 * @param obj The container object
2730 * @param child The child to be added in custom chain
2731 * @param relative_child The relative object to position the child
2734 EAPI void elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2737 * Give focus to next object in object tree.
2739 * Give focus to next object in focus chain of one object sub-tree.
2740 * If the last object of chain already have focus, the focus will go to the
2741 * first object of chain.
2743 * @param obj The object root of sub-tree
2744 * @param dir Direction to cycle the focus
2748 EAPI void elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2751 * Give focus to near object in one direction.
2753 * Give focus to near object in direction of one object.
2754 * If none focusable object in given direction, the focus will not change.
2756 * @param obj The reference object
2757 * @param x Horizontal component of direction to focus
2758 * @param y Vertical component of direction to focus
2762 EAPI void elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2765 * Make the elementary object and its children to be unfocusable
2768 * @param obj The Elementary object to operate on
2769 * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2770 * @c EINA_FALSE for focusable.
2772 * This sets whether the object @p obj and its children objects
2773 * are able to take focus or not. If the tree is set as unfocusable,
2774 * newest focused object which is not in this tree will get focus.
2775 * This API can be helpful for an object to be deleted.
2776 * When an object will be deleted soon, it and its children may not
2777 * want to get focus (by focus reverting or by other focus controls).
2778 * Then, just use this API before deleting.
2780 * @see elm_object_tree_unfocusable_get()
2784 EAPI void elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable) EINA_ARG_NONNULL(1);
2787 * Get whether an Elementary object and its children are unfocusable or not.
2789 * @param obj The Elementary object to get the information from
2790 * @return @c EINA_TRUE, if the tree is unfocussable,
2791 * @c EINA_FALSE if not (and on errors).
2793 * @see elm_object_tree_unfocusable_set()
2797 EAPI Eina_Bool elm_object_tree_unfocusable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2800 * @defgroup Scrolling Scrolling
2802 * These are functions setting how scrollable views in Elementary
2803 * widgets should behave on user interaction.
2809 * Get whether scrollers should bounce when they reach their
2810 * viewport's edge during a scroll.
2812 * @return the thumb scroll bouncing state
2814 * This is the default behavior for touch screens, in general.
2815 * @ingroup Scrolling
2817 EAPI Eina_Bool elm_scroll_bounce_enabled_get(void);
2820 * Set whether scrollers should bounce when they reach their
2821 * viewport's edge during a scroll.
2823 * @param enabled the thumb scroll bouncing state
2825 * @see elm_thumbscroll_bounce_enabled_get()
2826 * @ingroup Scrolling
2828 EAPI void elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2831 * Set whether scrollers should bounce when they reach their
2832 * viewport's edge during a scroll, for all Elementary application
2835 * @param enabled the thumb scroll bouncing state
2837 * @see elm_thumbscroll_bounce_enabled_get()
2838 * @ingroup Scrolling
2840 EAPI void elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2843 * Get the amount of inertia a scroller will impose at bounce
2846 * @return the thumb scroll bounce friction
2848 * @ingroup Scrolling
2850 EAPI double elm_scroll_bounce_friction_get(void);
2853 * Set the amount of inertia a scroller will impose at bounce
2856 * @param friction the thumb scroll bounce friction
2858 * @see elm_thumbscroll_bounce_friction_get()
2859 * @ingroup Scrolling
2861 EAPI void elm_scroll_bounce_friction_set(double friction);
2864 * Set the amount of inertia a scroller will impose at bounce
2865 * animations, for all Elementary application windows.
2867 * @param friction the thumb scroll bounce friction
2869 * @see elm_thumbscroll_bounce_friction_get()
2870 * @ingroup Scrolling
2872 EAPI void elm_scroll_bounce_friction_all_set(double friction);
2875 * Get the amount of inertia a <b>paged</b> scroller will impose at
2876 * page fitting animations.
2878 * @return the page scroll friction
2880 * @ingroup Scrolling
2882 EAPI double elm_scroll_page_scroll_friction_get(void);
2885 * Set the amount of inertia a <b>paged</b> scroller will impose at
2886 * page fitting animations.
2888 * @param friction the page scroll friction
2890 * @see elm_thumbscroll_page_scroll_friction_get()
2891 * @ingroup Scrolling
2893 EAPI void elm_scroll_page_scroll_friction_set(double friction);
2896 * Set the amount of inertia a <b>paged</b> scroller will impose at
2897 * page fitting animations, for all Elementary application windows.
2899 * @param friction the page scroll friction
2901 * @see elm_thumbscroll_page_scroll_friction_get()
2902 * @ingroup Scrolling
2904 EAPI void elm_scroll_page_scroll_friction_all_set(double friction);
2907 * Get the amount of inertia a scroller will impose at region bring
2910 * @return the bring in scroll friction
2912 * @ingroup Scrolling
2914 EAPI double elm_scroll_bring_in_scroll_friction_get(void);
2917 * Set the amount of inertia a scroller will impose at region bring
2920 * @param friction the bring in scroll friction
2922 * @see elm_thumbscroll_bring_in_scroll_friction_get()
2923 * @ingroup Scrolling
2925 EAPI void elm_scroll_bring_in_scroll_friction_set(double friction);
2928 * Set the amount of inertia a scroller will impose at region bring
2929 * animations, for all Elementary application windows.
2931 * @param friction the bring in scroll friction
2933 * @see elm_thumbscroll_bring_in_scroll_friction_get()
2934 * @ingroup Scrolling
2936 EAPI void elm_scroll_bring_in_scroll_friction_all_set(double friction);
2939 * Get the amount of inertia scrollers will impose at animations
2940 * triggered by Elementary widgets' zooming API.
2942 * @return the zoom friction
2944 * @ingroup Scrolling
2946 EAPI double elm_scroll_zoom_friction_get(void);
2949 * Set the amount of inertia scrollers will impose at animations
2950 * triggered by Elementary widgets' zooming API.
2952 * @param friction the zoom friction
2954 * @see elm_thumbscroll_zoom_friction_get()
2955 * @ingroup Scrolling
2957 EAPI void elm_scroll_zoom_friction_set(double friction);
2960 * Set the amount of inertia scrollers will impose at animations
2961 * triggered by Elementary widgets' zooming API, for all Elementary
2962 * application windows.
2964 * @param friction the zoom friction
2966 * @see elm_thumbscroll_zoom_friction_get()
2967 * @ingroup Scrolling
2969 EAPI void elm_scroll_zoom_friction_all_set(double friction);
2972 * Get whether scrollers should be draggable from any point in their
2975 * @return the thumb scroll state
2977 * @note This is the default behavior for touch screens, in general.
2978 * @note All other functions namespaced with "thumbscroll" will only
2979 * have effect if this mode is enabled.
2981 * @ingroup Scrolling
2983 EAPI Eina_Bool elm_scroll_thumbscroll_enabled_get(void);
2986 * Set whether scrollers should be draggable from any point in their
2989 * @param enabled the thumb scroll state
2991 * @see elm_thumbscroll_enabled_get()
2992 * @ingroup Scrolling
2994 EAPI void elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2997 * Set whether scrollers should be draggable from any point in their
2998 * views, for all Elementary application windows.
3000 * @param enabled the thumb scroll state
3002 * @see elm_thumbscroll_enabled_get()
3003 * @ingroup Scrolling
3005 EAPI void elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
3008 * Get the number of pixels one should travel while dragging a
3009 * scroller's view to actually trigger scrolling.
3011 * @return the thumb scroll threshould
3013 * One would use higher values for touch screens, in general, because
3014 * of their inherent imprecision.
3015 * @ingroup Scrolling
3017 EAPI unsigned int elm_scroll_thumbscroll_threshold_get(void);
3020 * Set the number of pixels one should travel while dragging a
3021 * scroller's view to actually trigger scrolling.
3023 * @param threshold the thumb scroll threshould
3025 * @see elm_thumbscroll_threshould_get()
3026 * @ingroup Scrolling
3028 EAPI void elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
3031 * Set the number of pixels one should travel while dragging a
3032 * scroller's view to actually trigger scrolling, for all Elementary
3033 * application windows.
3035 * @param threshold the thumb scroll threshould
3037 * @see elm_thumbscroll_threshould_get()
3038 * @ingroup Scrolling
3040 EAPI void elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
3043 * Get the minimum speed of mouse cursor movement which will trigger
3044 * list self scrolling animation after a mouse up event
3047 * @return the thumb scroll momentum threshould
3049 * @ingroup Scrolling
3051 EAPI double elm_scroll_thumbscroll_momentum_threshold_get(void);
3054 * Set the minimum speed of mouse cursor movement which will trigger
3055 * list self scrolling animation after a mouse up event
3058 * @param threshold the thumb scroll momentum threshould
3060 * @see elm_thumbscroll_momentum_threshould_get()
3061 * @ingroup Scrolling
3063 EAPI void elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
3066 * Set the minimum speed of mouse cursor movement which will trigger
3067 * list self scrolling animation after a mouse up event
3068 * (pixels/second), for all Elementary application windows.
3070 * @param threshold the thumb scroll momentum threshould
3072 * @see elm_thumbscroll_momentum_threshould_get()
3073 * @ingroup Scrolling
3075 EAPI void elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
3078 * Get the amount of inertia a scroller will impose at self scrolling
3081 * @return the thumb scroll friction
3083 * @ingroup Scrolling
3085 EAPI double elm_scroll_thumbscroll_friction_get(void);
3088 * Set the amount of inertia a scroller will impose at self scrolling
3091 * @param friction the thumb scroll friction
3093 * @see elm_thumbscroll_friction_get()
3094 * @ingroup Scrolling
3096 EAPI void elm_scroll_thumbscroll_friction_set(double friction);
3099 * Set the amount of inertia a scroller will impose at self scrolling
3100 * animations, for all Elementary application windows.
3102 * @param friction the thumb scroll friction
3104 * @see elm_thumbscroll_friction_get()
3105 * @ingroup Scrolling
3107 EAPI void elm_scroll_thumbscroll_friction_all_set(double friction);
3110 * Get the amount of lag between your actual mouse cursor dragging
3111 * movement and a scroller's view movement itself, while pushing it
3112 * into bounce state manually.
3114 * @return the thumb scroll border friction
3116 * @ingroup Scrolling
3118 EAPI double elm_scroll_thumbscroll_border_friction_get(void);
3121 * Set the amount of lag between your actual mouse cursor dragging
3122 * movement and a scroller's view movement itself, while pushing it
3123 * into bounce state manually.
3125 * @param friction the thumb scroll border friction. @c 0.0 for
3126 * perfect synchrony between two movements, @c 1.0 for maximum
3129 * @see elm_thumbscroll_border_friction_get()
3130 * @note parameter value will get bound to 0.0 - 1.0 interval, always
3132 * @ingroup Scrolling
3134 EAPI void elm_scroll_thumbscroll_border_friction_set(double friction);
3137 * Set the amount of lag between your actual mouse cursor dragging
3138 * movement and a scroller's view movement itself, while pushing it
3139 * into bounce state manually, for all Elementary application windows.
3141 * @param friction the thumb scroll border friction. @c 0.0 for
3142 * perfect synchrony between two movements, @c 1.0 for maximum
3145 * @see elm_thumbscroll_border_friction_get()
3146 * @note parameter value will get bound to 0.0 - 1.0 interval, always
3148 * @ingroup Scrolling
3150 EAPI void elm_scroll_thumbscroll_border_friction_all_set(double friction);
3153 * Get the sensitivity amount which is be multiplied by the length of
3156 * @return the thumb scroll sensitivity friction
3158 * @ingroup Scrolling
3160 EAPI double elm_scroll_thumbscroll_sensitivity_friction_get(void);
3163 * Set the sensitivity amount which is be multiplied by the length of
3166 * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3167 * minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3170 * @see elm_thumbscroll_sensitivity_friction_get()
3171 * @note parameter value will get bound to 0.1 - 1.0 interval, always
3173 * @ingroup Scrolling
3175 EAPI void elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
3178 * Set the sensitivity amount which is be multiplied by the length of
3179 * mouse dragging, for all Elementary application windows.
3181 * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3182 * minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3185 * @see elm_thumbscroll_sensitivity_friction_get()
3186 * @note parameter value will get bound to 0.1 - 1.0 interval, always
3188 * @ingroup Scrolling
3190 EAPI void elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
3197 * @defgroup Scrollhints Scrollhints
3199 * Objects when inside a scroller can scroll, but this may not always be
3200 * desirable in certain situations. This allows an object to hint to itself
3201 * and parents to "not scroll" in one of 2 ways. If any child object of a
3202 * scroller has pushed a scroll freeze or hold then it affects all parent
3203 * scrollers until all children have released them.
3205 * 1. To hold on scrolling. This means just flicking and dragging may no
3206 * longer scroll, but pressing/dragging near an edge of the scroller will
3207 * still scroll. This is automatically used by the entry object when
3210 * 2. To totally freeze scrolling. This means it stops. until
3217 * Push the scroll hold by 1
3219 * This increments the scroll hold count by one. If it is more than 0 it will
3220 * take effect on the parents of the indicated object.
3222 * @param obj The object
3223 * @ingroup Scrollhints
3225 EAPI void elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3228 * Pop the scroll hold by 1
3230 * This decrements the scroll hold count by one. If it is more than 0 it will
3231 * take effect on the parents of the indicated object.
3233 * @param obj The object
3234 * @ingroup Scrollhints
3236 EAPI void elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3239 * Push the scroll freeze by 1
3241 * This increments the scroll freeze count by one. If it is more
3242 * than 0 it will take effect on the parents of the indicated
3245 * @param obj The object
3246 * @ingroup Scrollhints
3248 EAPI void elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3251 * Pop the scroll freeze by 1
3253 * This decrements the scroll freeze count by one. If it is more
3254 * than 0 it will take effect on the parents of the indicated
3257 * @param obj The object
3258 * @ingroup Scrollhints
3260 EAPI void elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3263 * Lock the scrolling of the given widget (and thus all parents)
3265 * This locks the given object from scrolling in the X axis (and implicitly
3266 * also locks all parent scrollers too from doing the same).
3268 * @param obj The object
3269 * @param lock The lock state (1 == locked, 0 == unlocked)
3270 * @ingroup Scrollhints
3272 EAPI void elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3275 * Lock the scrolling of the given widget (and thus all parents)
3277 * This locks the given object from scrolling in the Y axis (and implicitly
3278 * also locks all parent scrollers too from doing the same).
3280 * @param obj The object
3281 * @param lock The lock state (1 == locked, 0 == unlocked)
3282 * @ingroup Scrollhints
3284 EAPI void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3287 * Get the scrolling lock of the given widget
3289 * This gets the lock for X axis scrolling.
3291 * @param obj The object
3292 * @ingroup Scrollhints
3294 EAPI Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3297 * Get the scrolling lock of the given widget
3299 * This gets the lock for X axis scrolling.
3301 * @param obj The object
3302 * @ingroup Scrollhints
3304 EAPI Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3311 * Send a signal to the widget edje object.
3313 * This function sends a signal to the edje object of the obj. An
3314 * edje program can respond to a signal by specifying matching
3315 * 'signal' and 'source' fields.
3317 * @param obj The object
3318 * @param emission The signal's name.
3319 * @param source The signal's source.
3322 EAPI void elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
3325 * Add a callback for a signal emitted by widget edje object.
3327 * This function connects a callback function to a signal emitted by the
3328 * edje object of the obj.
3329 * Globs can occur in either the emission or source name.
3331 * @param obj The object
3332 * @param emission The signal's name.
3333 * @param source The signal's source.
3334 * @param func The callback function to be executed when the signal is
3336 * @param data A pointer to data to pass in to the callback function.
3339 EAPI void elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) EINA_ARG_NONNULL(1, 4);
3342 * Remove a signal-triggered callback from a widget edje object.
3344 * This function removes a callback, previoulsy attached to a
3345 * signal emitted by the edje object of the obj. The parameters
3346 * emission, source and func must match exactly those passed to a
3347 * previous call to elm_object_signal_callback_add(). The data
3348 * pointer that was passed to this call will be returned.
3350 * @param obj The object
3351 * @param emission The signal's name.
3352 * @param source The signal's source.
3353 * @param func The callback function to be executed when the signal is
3355 * @return The data pointer
3358 EAPI void *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func) EINA_ARG_NONNULL(1, 4);
3361 * Add a callback for input events (key up, key down, mouse wheel)
3362 * on a given Elementary widget
3364 * @param obj The widget to add an event callback on
3365 * @param func The callback function to be executed when the event
3367 * @param data Data to pass in to @p func
3369 * Every widget in an Elementary interface set to receive focus,
3370 * with elm_object_focus_allow_set(), will propagate @b all of its
3371 * key up, key down and mouse wheel input events up to its parent
3372 * object, and so on. All of the focusable ones in this chain which
3373 * had an event callback set, with this call, will be able to treat
3374 * those events. There are two ways of making the propagation of
3375 * these event upwards in the tree of widgets to @b cease:
3376 * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
3377 * the event was @b not processed, so the propagation will go on.
3378 * - The @c event_info pointer passed to @p func will contain the
3379 * event's structure and, if you OR its @c event_flags inner
3380 * value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
3381 * one has already handled it, thus killing the event's
3384 * @note Your event callback will be issued on those events taking
3385 * place only if no other child widget of @obj has consumed the
3388 * @note Not to be confused with @c
3389 * evas_object_event_callback_add(), which will add event callbacks
3390 * per type on general Evas objects (no event propagation
3391 * infrastructure taken in account).
3393 * @note Not to be confused with @c
3394 * elm_object_signal_callback_add(), which will add callbacks to @b
3395 * signals coming from a widget's theme, not input events.
3397 * @note Not to be confused with @c
3398 * edje_object_signal_callback_add(), which does the same as
3399 * elm_object_signal_callback_add(), but directly on an Edje
3402 * @note Not to be confused with @c
3403 * evas_object_smart_callback_add(), which adds callbacks to smart
3404 * objects' <b>smart events</b>, and not input events.
3406 * @see elm_object_event_callback_del()
3410 EAPI void elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3413 * Remove an event callback from a widget.
3415 * This function removes a callback, previoulsy attached to event emission
3417 * The parameters func and data must match exactly those passed to
3418 * a previous call to elm_object_event_callback_add(). The data pointer that
3419 * was passed to this call will be returned.
3421 * @param obj The object
3422 * @param func The callback function to be executed when the event is
3424 * @param data Data to pass in to the callback function.
3425 * @return The data pointer
3428 EAPI void *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3431 * Adjust size of an element for finger usage.
3433 * @param times_w How many fingers should fit horizontally
3434 * @param w Pointer to the width size to adjust
3435 * @param times_h How many fingers should fit vertically
3436 * @param h Pointer to the height size to adjust
3438 * This takes width and height sizes (in pixels) as input and a
3439 * size multiple (which is how many fingers you want to place
3440 * within the area, being "finger" the size set by
3441 * elm_finger_size_set()), and adjusts the size to be large enough
3442 * to accommodate the resulting size -- if it doesn't already
3443 * accommodate it. On return the @p w and @p h sizes pointed to by
3444 * these parameters will be modified, on those conditions.
3446 * @note This is kind of a low level Elementary call, most useful
3447 * on size evaluation times for widgets. An external user wouldn't
3448 * be calling, most of the time.
3452 EAPI void elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3455 * Get the duration for occuring long press event.
3457 * @return Timeout for long press event
3458 * @ingroup Longpress
3460 EAPI double elm_longpress_timeout_get(void);
3463 * Set the duration for occuring long press event.
3465 * @param lonpress_timeout Timeout for long press event
3466 * @ingroup Longpress
3468 EAPI void elm_longpress_timeout_set(double longpress_timeout);
3471 * @defgroup Debug Debug
3472 * don't use it unless you are sure
3478 * Print Tree object hierarchy in stdout
3480 * @param obj The root object
3483 EAPI void elm_object_tree_dump(const Evas_Object *top);
3486 * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3488 * @param obj The root object
3489 * @param file The path of output file
3492 EAPI void elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3499 * @defgroup Theme Theme
3501 * Elementary uses Edje to theme its widgets, naturally. But for the most
3502 * part this is hidden behind a simpler interface that lets the user set
3503 * extensions and choose the style of widgets in a much easier way.
3505 * Instead of thinking in terms of paths to Edje files and their groups
3506 * each time you want to change the appearance of a widget, Elementary
3507 * works so you can add any theme file with extensions or replace the
3508 * main theme at one point in the application, and then just set the style
3509 * of widgets with elm_object_style_set() and related functions. Elementary
3510 * will then look in its list of themes for a matching group and apply it,
3511 * and when the theme changes midway through the application, all widgets
3512 * will be updated accordingly.
3514 * There are three concepts you need to know to understand how Elementary
3515 * theming works: default theme, extensions and overlays.
3517 * Default theme, obviously enough, is the one that provides the default
3518 * look of all widgets. End users can change the theme used by Elementary
3519 * by setting the @c ELM_THEME environment variable before running an
3520 * application, or globally for all programs using the @c elementary_config
3521 * utility. Applications can change the default theme using elm_theme_set(),
3522 * but this can go against the user wishes, so it's not an adviced practice.
3524 * Ideally, applications should find everything they need in the already
3525 * provided theme, but there may be occasions when that's not enough and
3526 * custom styles are required to correctly express the idea. For this
3527 * cases, Elementary has extensions.
3529 * Extensions allow the application developer to write styles of its own
3530 * to apply to some widgets. This requires knowledge of how each widget
3531 * is themed, as extensions will always replace the entire group used by
3532 * the widget, so important signals and parts need to be there for the
3533 * object to behave properly (see documentation of Edje for details).
3534 * Once the theme for the extension is done, the application needs to add
3535 * it to the list of themes Elementary will look into, using
3536 * elm_theme_extension_add(), and set the style of the desired widgets as
3537 * he would normally with elm_object_style_set().
3539 * Overlays, on the other hand, can replace the look of all widgets by
3540 * overriding the default style. Like extensions, it's up to the application
3541 * developer to write the theme for the widgets it wants, the difference
3542 * being that when looking for the theme, Elementary will check first the
3543 * list of overlays, then the set theme and lastly the list of extensions,
3544 * so with overlays it's possible to replace the default view and every
3545 * widget will be affected. This is very much alike to setting the whole
3546 * theme for the application and will probably clash with the end user
3547 * options, not to mention the risk of ending up with not matching styles
3548 * across the program. Unless there's a very special reason to use them,
3549 * overlays should be avoided for the resons exposed before.
3551 * All these theme lists are handled by ::Elm_Theme instances. Elementary
3552 * keeps one default internally and every function that receives one of
3553 * these can be called with NULL to refer to this default (except for
3554 * elm_theme_free()). It's possible to create a new instance of a
3555 * ::Elm_Theme to set other theme for a specific widget (and all of its
3556 * children), but this is as discouraged, if not even more so, than using
3557 * overlays. Don't use this unless you really know what you are doing.
3559 * But to be less negative about things, you can look at the following
3561 * @li @ref theme_example_01 "Using extensions"
3562 * @li @ref theme_example_02 "Using overlays"
3567 * @typedef Elm_Theme
3569 * Opaque handler for the list of themes Elementary looks for when
3570 * rendering widgets.
3572 * Stay out of this unless you really know what you are doing. For most
3573 * cases, sticking to the default is all a developer needs.
3575 typedef struct _Elm_Theme Elm_Theme;
3578 * Create a new specific theme
3580 * This creates an empty specific theme that only uses the default theme. A
3581 * specific theme has its own private set of extensions and overlays too
3582 * (which are empty by default). Specific themes do not fall back to themes
3583 * of parent objects. They are not intended for this use. Use styles, overlays
3584 * and extensions when needed, but avoid specific themes unless there is no
3585 * other way (example: you want to have a preview of a new theme you are
3586 * selecting in a "theme selector" window. The preview is inside a scroller
3587 * and should display what the theme you selected will look like, but not
3588 * actually apply it yet. The child of the scroller will have a specific
3589 * theme set to show this preview before the user decides to apply it to all
3592 EAPI Elm_Theme *elm_theme_new(void);
3595 * Free a specific theme
3597 * @param th The theme to free
3599 * This frees a theme created with elm_theme_new().
3601 EAPI void elm_theme_free(Elm_Theme *th);
3604 * Copy the theme fom the source to the destination theme
3606 * @param th The source theme to copy from
3607 * @param thdst The destination theme to copy data to
3609 * This makes a one-time static copy of all the theme config, extensions
3610 * and overlays from @p th to @p thdst. If @p th references a theme, then
3611 * @p thdst is also set to reference it, with all the theme settings,
3612 * overlays and extensions that @p th had.
3614 EAPI void elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3617 * Tell the source theme to reference the ref theme
3619 * @param th The theme that will do the referencing
3620 * @param thref The theme that is the reference source
3622 * This clears @p th to be empty and then sets it to refer to @p thref
3623 * so @p th acts as an override to @p thref, but where its overrides
3624 * don't apply, it will fall through to @p thref for configuration.
3626 EAPI void elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3629 * Return the theme referred to
3631 * @param th The theme to get the reference from
3632 * @return The referenced theme handle
3634 * This gets the theme set as the reference theme by elm_theme_ref_set().
3635 * If no theme is set as a reference, NULL is returned.
3637 EAPI Elm_Theme *elm_theme_ref_get(Elm_Theme *th);
3640 * Return the default theme
3642 * @return The default theme handle
3644 * This returns the internal default theme setup handle that all widgets
3645 * use implicitly unless a specific theme is set. This is also often use
3646 * as a shorthand of NULL.
3648 EAPI Elm_Theme *elm_theme_default_get(void);
3651 * Prepends a theme overlay to the list of overlays
3653 * @param th The theme to add to, or if NULL, the default theme
3654 * @param item The Edje file path to be used
3656 * Use this if your application needs to provide some custom overlay theme
3657 * (An Edje file that replaces some default styles of widgets) where adding
3658 * new styles, or changing system theme configuration is not possible. Do
3659 * NOT use this instead of a proper system theme configuration. Use proper
3660 * configuration files, profiles, environment variables etc. to set a theme
3661 * so that the theme can be altered by simple confiugration by a user. Using
3662 * this call to achieve that effect is abusing the API and will create lots
3665 * @see elm_theme_extension_add()
3667 EAPI void elm_theme_overlay_add(Elm_Theme *th, const char *item);
3670 * Delete a theme overlay from the list of overlays
3672 * @param th The theme to delete from, or if NULL, the default theme
3673 * @param item The name of the theme overlay
3675 * @see elm_theme_overlay_add()
3677 EAPI void elm_theme_overlay_del(Elm_Theme *th, const char *item);
3680 * Appends a theme extension to the list of extensions.
3682 * @param th The theme to add to, or if NULL, the default theme
3683 * @param item The Edje file path to be used
3685 * This is intended when an application needs more styles of widgets or new
3686 * widget themes that the default does not provide (or may not provide). The
3687 * application has "extended" usage by coming up with new custom style names
3688 * for widgets for specific uses, but as these are not "standard", they are
3689 * not guaranteed to be provided by a default theme. This means the
3690 * application is required to provide these extra elements itself in specific
3691 * Edje files. This call adds one of those Edje files to the theme search
3692 * path to be search after the default theme. The use of this call is
3693 * encouraged when default styles do not meet the needs of the application.
3694 * Use this call instead of elm_theme_overlay_add() for almost all cases.
3696 * @see elm_object_style_set()
3698 EAPI void elm_theme_extension_add(Elm_Theme *th, const char *item);
3701 * Deletes a theme extension from the list of extensions.
3703 * @param th The theme to delete from, or if NULL, the default theme
3704 * @param item The name of the theme extension
3706 * @see elm_theme_extension_add()
3708 EAPI void elm_theme_extension_del(Elm_Theme *th, const char *item);
3711 * Set the theme search order for the given theme
3713 * @param th The theme to set the search order, or if NULL, the default theme
3714 * @param theme Theme search string
3716 * This sets the search string for the theme in path-notation from first
3717 * theme to search, to last, delimited by the : character. Example:
3719 * "shiny:/path/to/file.edj:default"
3721 * See the ELM_THEME environment variable for more information.
3723 * @see elm_theme_get()
3724 * @see elm_theme_list_get()
3726 EAPI void elm_theme_set(Elm_Theme *th, const char *theme);
3729 * Return the theme search order
3731 * @param th The theme to get the search order, or if NULL, the default theme
3732 * @return The internal search order path
3734 * This function returns a colon separated string of theme elements as
3735 * returned by elm_theme_list_get().
3737 * @see elm_theme_set()
3738 * @see elm_theme_list_get()
3740 EAPI const char *elm_theme_get(Elm_Theme *th);
3743 * Return a list of theme elements to be used in a theme.
3745 * @param th Theme to get the list of theme elements from.
3746 * @return The internal list of theme elements
3748 * This returns the internal list of theme elements (will only be valid as
3749 * long as the theme is not modified by elm_theme_set() or theme is not
3750 * freed by elm_theme_free(). This is a list of strings which must not be
3751 * altered as they are also internal. If @p th is NULL, then the default
3752 * theme element list is returned.
3754 * A theme element can consist of a full or relative path to a .edj file,
3755 * or a name, without extension, for a theme to be searched in the known
3756 * theme paths for Elemementary.
3758 * @see elm_theme_set()
3759 * @see elm_theme_get()
3761 EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3764 * Return the full patrh for a theme element
3766 * @param f The theme element name
3767 * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3768 * @return The full path to the file found.
3770 * This returns a string you should free with free() on success, NULL on
3771 * failure. This will search for the given theme element, and if it is a
3772 * full or relative path element or a simple searchable name. The returned
3773 * path is the full path to the file, if searched, and the file exists, or it
3774 * is simply the full path given in the element or a resolved path if
3775 * relative to home. The @p in_search_path boolean pointed to is set to
3776 * EINA_TRUE if the file was a searchable file andis in the search path,
3777 * and EINA_FALSE otherwise.
3779 EAPI char *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3782 * Flush the current theme.
3784 * @param th Theme to flush
3786 * This flushes caches that let elementary know where to find theme elements
3787 * in the given theme. If @p th is NULL, then the default theme is flushed.
3788 * Call this function if source theme data has changed in such a way as to
3789 * make any caches Elementary kept invalid.
3791 EAPI void elm_theme_flush(Elm_Theme *th);
3794 * This flushes all themes (default and specific ones).
3796 * This will flush all themes in the current application context, by calling
3797 * elm_theme_flush() on each of them.
3799 EAPI void elm_theme_full_flush(void);
3802 * Set the theme for all elementary using applications on the current display
3804 * @param theme The name of the theme to use. Format same as the ELM_THEME
3805 * environment variable.
3807 EAPI void elm_theme_all_set(const char *theme);
3810 * Return a list of theme elements in the theme search path
3812 * @return A list of strings that are the theme element names.
3814 * This lists all available theme files in the standard Elementary search path
3815 * for theme elements, and returns them in alphabetical order as theme
3816 * element names in a list of strings. Free this with
3817 * elm_theme_name_available_list_free() when you are done with the list.
3819 EAPI Eina_List *elm_theme_name_available_list_new(void);
3822 * Free the list returned by elm_theme_name_available_list_new()
3824 * This frees the list of themes returned by
3825 * elm_theme_name_available_list_new(). Once freed the list should no longer
3826 * be used. a new list mys be created.
3828 EAPI void elm_theme_name_available_list_free(Eina_List *list);
3831 * Set a specific theme to be used for this object and its children
3833 * @param obj The object to set the theme on
3834 * @param th The theme to set
3836 * This sets a specific theme that will be used for the given object and any
3837 * child objects it has. If @p th is NULL then the theme to be used is
3838 * cleared and the object will inherit its theme from its parent (which
3839 * ultimately will use the default theme if no specific themes are set).
3841 * Use special themes with great care as this will annoy users and make
3842 * configuration difficult. Avoid any custom themes at all if it can be
3845 EAPI void elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3848 * Get the specific theme to be used
3850 * @param obj The object to get the specific theme from
3851 * @return The specifc theme set.
3853 * This will return a specific theme set, or NULL if no specific theme is
3854 * set on that object. It will not return inherited themes from parents, only
3855 * the specific theme set for that specific object. See elm_object_theme_set()
3856 * for more information.
3858 EAPI Elm_Theme *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3861 * Get a data item from a theme
3863 * @param th The theme, or NULL for default theme
3864 * @param key The data key to search with
3865 * @return The data value, or NULL on failure
3867 * This function is used to return data items from edc in @p th, an overlay, or an extension.
3868 * It works the same way as edje_file_data_get() except that the return is stringshared.
3870 EAPI const char *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3877 /** @defgroup Win Win
3879 * @image html img/widget/win/preview-00.png
3880 * @image latex img/widget/win/preview-00.eps
3882 * The window class of Elementary. Contains functions to manipulate
3883 * windows. The Evas engine used to render the window contents is specified
3884 * in the system or user elementary config files (whichever is found last),
3885 * and can be overridden with the ELM_ENGINE environment variable for
3886 * testing. Engines that may be supported (depending on Evas and Ecore-Evas
3887 * compilation setup and modules actually installed at runtime) are (listed
3888 * in order of best supported and most likely to be complete and work to
3891 * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3892 * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3894 * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3896 * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3898 * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3900 * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3901 * rendering using SDL as the buffer)
3902 * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3903 * GDI with software)
3904 * @li "dfb", "directfb" (Rendering to a DirectFB window)
3905 * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3906 * grayscale using dedicated 8bit software engine in X11)
3907 * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3908 * X11 using 16bit software engine)
3909 * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3910 * (Windows CE rendering via GDI with 16bit software renderer)
3911 * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3912 * buffer with 16bit software renderer)
3913 * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System)
3914 * @li "gl-cocoa", "gl_cocoa", "opengl-cocoa", "opengl_cocoa" (OpenGL rendering in Cocoa)
3915 * @li "psl1ght" (PS3 rendering using PSL1GHT)
3917 * All engines use a simple string to select the engine to render, EXCEPT
3918 * the "shot" engine. This actually encodes the output of the virtual
3919 * screenshot and how long to delay in the engine string. The engine string
3920 * is encoded in the following way:
3922 * "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3924 * Where options are separated by a ":" char if more than one option is
3925 * given, with delay, if provided being the first option and file the last
3926 * (order is important). The delay specifies how long to wait after the
3927 * window is shown before doing the virtual "in memory" rendering and then
3928 * save the output to the file specified by the file option (and then exit).
3929 * If no delay is given, the default is 0.5 seconds. If no file is given the
3930 * default output file is "out.png". Repeat option is for continous
3931 * capturing screenshots. Repeat range is from 1 to 999 and filename is
3932 * fixed to "out001.png" Some examples of using the shot engine:
3934 * ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3935 * ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3936 * ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3937 * ELM_ENGINE="shot:delay=2.0" elementary_test
3938 * ELM_ENGINE="shot:" elementary_test
3940 * Signals that you can add callbacks for are:
3942 * @li "delete,request": the user requested to close the window. See
3943 * elm_win_autodel_set().
3944 * @li "focus,in": window got focus
3945 * @li "focus,out": window lost focus
3946 * @li "moved": window that holds the canvas was moved
3949 * @li @ref win_example_01
3954 * Defines the types of window that can be created
3956 * These are hints set on the window so that a running Window Manager knows
3957 * how the window should be handled and/or what kind of decorations it
3960 * Currently, only the X11 backed engines use them.
3962 typedef enum _Elm_Win_Type
3964 ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3965 window. Almost every window will be created with this
3967 ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3968 ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3969 window holding desktop icons. */
3970 ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3971 be kept on top of any other window by the Window
3973 ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3975 ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3976 ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3978 ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3979 ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3980 entry in a menubar is clicked. Typically used
3981 with elm_win_override_set(). This hint exists
3982 for completion only, as the EFL way of
3983 implementing a menu would not normally use a
3984 separate window for its contents. */
3985 ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3986 triggered by right-clicking an object. */
3987 ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3988 explanatory text that typically appear after the
3989 mouse cursor hovers over an object for a while.
3990 Typically used with elm_win_override_set() and also
3991 not very commonly used in the EFL. */
3992 ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3993 battery life or a new E-Mail received. */
3994 ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3995 usually used in the EFL. */
3996 ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3997 object being dragged across different windows, or even
3998 applications. Typically used with
3999 elm_win_override_set(). */
4000 ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
4001 buffer. No actual window is created for this
4002 type, instead the window and all of its
4003 contents will be rendered to an image buffer.
4004 This allows to have children window inside a
4005 parent one just like any other object would
4006 be, and do other things like applying @c
4007 Evas_Map effects to it. This is the only type
4008 of window that requires the @c parent
4009 parameter of elm_win_add() to be a valid @c
4014 * The differents layouts that can be requested for the virtual keyboard.
4016 * When the application window is being managed by Illume, it may request
4017 * any of the following layouts for the virtual keyboard.
4019 typedef enum _Elm_Win_Keyboard_Mode
4021 ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
4022 ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
4023 ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
4024 ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
4025 ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
4026 ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
4027 ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
4028 ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
4029 ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
4030 ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
4031 ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
4032 ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
4033 ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
4034 ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
4035 ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
4036 ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
4037 } Elm_Win_Keyboard_Mode;
4040 * Available commands that can be sent to the Illume manager.
4042 * When running under an Illume session, a window may send commands to the
4043 * Illume manager to perform different actions.
4045 typedef enum _Elm_Illume_Command
4047 ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
4049 ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
4051 ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
4053 ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
4054 } Elm_Illume_Command;
4057 * Adds a window object. If this is the first window created, pass NULL as
4060 * @param parent Parent object to add the window to, or NULL
4061 * @param name The name of the window
4062 * @param type The window type, one of #Elm_Win_Type.
4064 * The @p parent paramter can be @c NULL for every window @p type except
4065 * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
4066 * which the image object will be created.
4068 * @return The created object, or NULL on failure
4070 EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
4073 * Adds a window object with standard setup
4075 * @param name The name of the window
4076 * @param title The title for the window
4078 * This creates a window like elm_win_add() but also puts in a standard
4079 * background with elm_bg_add(), as well as setting the window title to
4080 * @p title. The window type created is of type ELM_WIN_BASIC, with NULL
4081 * as the parent widget.
4083 * @return The created object, or NULL on failure
4085 * @see elm_win_add()
4087 EAPI Evas_Object *elm_win_util_standard_add(const char *name, const char *title);
4090 * Add @p subobj as a resize object of window @p obj.
4093 * Setting an object as a resize object of the window means that the
4094 * @p subobj child's size and position will be controlled by the window
4095 * directly. That is, the object will be resized to match the window size
4096 * and should never be moved or resized manually by the developer.
4098 * In addition, resize objects of the window control what the minimum size
4099 * of it will be, as well as whether it can or not be resized by the user.
4101 * For the end user to be able to resize a window by dragging the handles
4102 * or borders provided by the Window Manager, or using any other similar
4103 * mechanism, all of the resize objects in the window should have their
4104 * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
4106 * Also notice that the window can get resized to the current size of the
4107 * object if the EVAS_HINT_EXPAND is set @b after the call to
4108 * elm_win_resize_object_add(). So if the object should get resized to the
4109 * size of the window, set this hint @b before adding it as a resize object
4110 * (this happens because the size of the window and the object are evaluated
4111 * as soon as the object is added to the window).
4113 * @param obj The window object
4114 * @param subobj The resize object to add
4116 EAPI void elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4119 * Delete @p subobj as a resize object of window @p obj.
4121 * This function removes the object @p subobj from the resize objects of
4122 * the window @p obj. It will not delete the object itself, which will be
4123 * left unmanaged and should be deleted by the developer, manually handled
4124 * or set as child of some other container.
4126 * @param obj The window object
4127 * @param subobj The resize object to add
4129 EAPI void elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4132 * Set the title of the window
4134 * @param obj The window object
4135 * @param title The title to set
4137 EAPI void elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
4140 * Get the title of the window
4142 * The returned string is an internal one and should not be freed or
4143 * modified. It will also be rendered invalid if a new title is set or if
4144 * the window is destroyed.
4146 * @param obj The window object
4149 EAPI const char *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4152 * Set the window's autodel state.
4154 * When closing the window in any way outside of the program control, like
4155 * pressing the X button in the titlebar or using a command from the
4156 * Window Manager, a "delete,request" signal is emitted to indicate that
4157 * this event occurred and the developer can take any action, which may
4158 * include, or not, destroying the window object.
4160 * When the @p autodel parameter is set, the window will be automatically
4161 * destroyed when this event occurs, after the signal is emitted.
4162 * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
4163 * and is up to the program to do so when it's required.
4165 * @param obj The window object
4166 * @param autodel If true, the window will automatically delete itself when
4169 EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
4172 * Get the window's autodel state.
4174 * @param obj The window object
4175 * @return If the window will automatically delete itself when closed
4177 * @see elm_win_autodel_set()
4179 EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4182 * Activate a window object.
4184 * This function sends a request to the Window Manager to activate the
4185 * window pointed by @p obj. If honored by the WM, the window will receive
4186 * the keyboard focus.
4188 * @note This is just a request that a Window Manager may ignore, so calling
4189 * this function does not ensure in any way that the window will be the
4190 * active one after it.
4192 * @param obj The window object
4194 EAPI void elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4197 * Lower a window object.
4199 * Places the window pointed by @p obj at the bottom of the stack, so that
4200 * no other window is covered by it.
4202 * If elm_win_override_set() is not set, the Window Manager may ignore this
4205 * @param obj The window object
4207 EAPI void elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
4210 * Raise a window object.
4212 * Places the window pointed by @p obj at the top of the stack, so that it's
4213 * not covered by any other window.
4215 * If elm_win_override_set() is not set, the Window Manager may ignore this
4218 * @param obj The window object
4220 EAPI void elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
4223 * Center a window on its screen
4225 * This function centers window @p obj horizontally and/or vertically based on the values
4227 * @param obj The window object
4228 * @param h If true, center horizontally. If false, do not change horizontal location.
4229 * @param v If true, center vertically. If false, do not change vertical location.
4231 EAPI void elm_win_center(Evas_Object *obj, Eina_Bool h, Eina_Bool v) EINA_ARG_NONNULL(1);
4234 * Set the borderless state of a window.
4236 * This function requests the Window Manager to not draw any decoration
4237 * around the window.
4239 * @param obj The window object
4240 * @param borderless If true, the window is borderless
4242 EAPI void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
4245 * Get the borderless state of a window.
4247 * @param obj The window object
4248 * @return If true, the window is borderless
4250 EAPI Eina_Bool elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4253 * Set the shaped state of a window.
4255 * Shaped windows, when supported, will render the parts of the window that
4256 * has no content, transparent.
4258 * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
4259 * background object or cover the entire window in any other way, or the
4260 * parts of the canvas that have no data will show framebuffer artifacts.
4262 * @param obj The window object
4263 * @param shaped If true, the window is shaped
4265 * @see elm_win_alpha_set()
4267 EAPI void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
4270 * Get the shaped state of a window.
4272 * @param obj The window object
4273 * @return If true, the window is shaped
4275 * @see elm_win_shaped_set()
4277 EAPI Eina_Bool elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4280 * Set the alpha channel state of a window.
4282 * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
4283 * possibly making parts of the window completely or partially transparent.
4284 * This is also subject to the underlying system supporting it, like for
4285 * example, running under a compositing manager. If no compositing is
4286 * available, enabling this option will instead fallback to using shaped
4287 * windows, with elm_win_shaped_set().
4289 * @param obj The window object
4290 * @param alpha If true, the window has an alpha channel
4292 * @see elm_win_alpha_set()
4294 EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
4297 * Get the transparency state of a window.
4299 * @param obj The window object
4300 * @return If true, the window is transparent
4302 * @see elm_win_transparent_set()
4304 EAPI Eina_Bool elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4307 * Set the transparency state of a window.
4309 * Use elm_win_alpha_set() instead.
4311 * @param obj The window object
4312 * @param transparent If true, the window is transparent
4314 * @see elm_win_alpha_set()
4316 EAPI void elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
4319 * Get the alpha channel state of a window.
4321 * @param obj The window object
4322 * @return If true, the window has an alpha channel
4324 EAPI Eina_Bool elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4327 * Set the override state of a window.
4329 * A window with @p override set to EINA_TRUE will not be managed by the
4330 * Window Manager. This means that no decorations of any kind will be shown
4331 * for it, moving and resizing must be handled by the application, as well
4332 * as the window visibility.
4334 * This should not be used for normal windows, and even for not so normal
4335 * ones, it should only be used when there's a good reason and with a lot
4336 * of care. Mishandling override windows may result situations that
4337 * disrupt the normal workflow of the end user.
4339 * @param obj The window object
4340 * @param override If true, the window is overridden
4342 EAPI void elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
4345 * Get the override state of a window.
4347 * @param obj The window object
4348 * @return If true, the window is overridden
4350 * @see elm_win_override_set()
4352 EAPI Eina_Bool elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4355 * Set the fullscreen state of a window.
4357 * @param obj The window object
4358 * @param fullscreen If true, the window is fullscreen
4360 EAPI void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
4363 * Get the fullscreen state of a window.
4365 * @param obj The window object
4366 * @return If true, the window is fullscreen
4368 EAPI Eina_Bool elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4371 * Set the maximized state of a window.
4373 * @param obj The window object
4374 * @param maximized If true, the window is maximized
4376 EAPI void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
4379 * Get the maximized state of a window.
4381 * @param obj The window object
4382 * @return If true, the window is maximized
4384 EAPI Eina_Bool elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4387 * Set the iconified state of a window.
4389 * @param obj The window object
4390 * @param iconified If true, the window is iconified
4392 EAPI void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
4395 * Get the iconified state of a window.
4397 * @param obj The window object
4398 * @return If true, the window is iconified
4400 EAPI Eina_Bool elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4403 * Set the layer of the window.
4405 * What this means exactly will depend on the underlying engine used.
4407 * In the case of X11 backed engines, the value in @p layer has the
4408 * following meanings:
4409 * @li < 3: The window will be placed below all others.
4410 * @li > 5: The window will be placed above all others.
4411 * @li other: The window will be placed in the default layer.
4413 * @param obj The window object
4414 * @param layer The layer of the window
4416 EAPI void elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
4419 * Get the layer of the window.
4421 * @param obj The window object
4422 * @return The layer of the window
4424 * @see elm_win_layer_set()
4426 EAPI int elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4429 * Set the rotation of the window.
4431 * Most engines only work with multiples of 90.
4433 * This function is used to set the orientation of the window @p obj to
4434 * match that of the screen. The window itself will be resized to adjust
4435 * to the new geometry of its contents. If you want to keep the window size,
4436 * see elm_win_rotation_with_resize_set().
4438 * @param obj The window object
4439 * @param rotation The rotation of the window, in degrees (0-360),
4440 * counter-clockwise.
4442 EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4445 * Rotates the window and resizes it.
4447 * Like elm_win_rotation_set(), but it also resizes the window's contents so
4448 * that they fit inside the current window geometry.
4450 * @param obj The window object
4451 * @param layer The rotation of the window in degrees (0-360),
4452 * counter-clockwise.
4454 EAPI void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4457 * Get the rotation of the window.
4459 * @param obj The window object
4460 * @return The rotation of the window in degrees (0-360)
4462 * @see elm_win_rotation_set()
4463 * @see elm_win_rotation_with_resize_set()
4465 EAPI int elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4468 * Set the sticky state of the window.
4470 * Hints the Window Manager that the window in @p obj should be left fixed
4471 * at its position even when the virtual desktop it's on moves or changes.
4473 * @param obj The window object
4474 * @param sticky If true, the window's sticky state is enabled
4476 EAPI void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4479 * Get the sticky state of the window.
4481 * @param obj The window object
4482 * @return If true, the window's sticky state is enabled
4484 * @see elm_win_sticky_set()
4486 EAPI Eina_Bool elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4489 * Set if this window is an illume conformant window
4491 * @param obj The window object
4492 * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4494 EAPI void elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4497 * Get if this window is an illume conformant window
4499 * @param obj The window object
4500 * @return A boolean if this window is illume conformant or not
4502 EAPI Eina_Bool elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4505 * Set a window to be an illume quickpanel window
4507 * By default window objects are not quickpanel windows.
4509 * @param obj The window object
4510 * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4512 EAPI void elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4515 * Get if this window is a quickpanel or not
4517 * @param obj The window object
4518 * @return A boolean if this window is a quickpanel or not
4520 EAPI Eina_Bool elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4523 * Set the major priority of a quickpanel window
4525 * @param obj The window object
4526 * @param priority The major priority for this quickpanel
4528 EAPI void elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4531 * Get the major priority of a quickpanel window
4533 * @param obj The window object
4534 * @return The major priority of this quickpanel
4536 EAPI int elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4539 * Set the minor priority of a quickpanel window
4541 * @param obj The window object
4542 * @param priority The minor priority for this quickpanel
4544 EAPI void elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4547 * Get the minor priority of a quickpanel window
4549 * @param obj The window object
4550 * @return The minor priority of this quickpanel
4552 EAPI int elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4555 * Set which zone this quickpanel should appear in
4557 * @param obj The window object
4558 * @param zone The requested zone for this quickpanel
4560 EAPI void elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4563 * Get which zone this quickpanel should appear in
4565 * @param obj The window object
4566 * @return The requested zone for this quickpanel
4568 EAPI int elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4571 * Set the window to be skipped by keyboard focus
4573 * This sets the window to be skipped by normal keyboard input. This means
4574 * a window manager will be asked to not focus this window as well as omit
4575 * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4577 * Call this and enable it on a window BEFORE you show it for the first time,
4578 * otherwise it may have no effect.
4580 * Use this for windows that have only output information or might only be
4581 * interacted with by the mouse or fingers, and never for typing input.
4582 * Be careful that this may have side-effects like making the window
4583 * non-accessible in some cases unless the window is specially handled. Use
4586 * @param obj The window object
4587 * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4589 EAPI void elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4592 * Send a command to the windowing environment
4594 * This is intended to work in touchscreen or small screen device
4595 * environments where there is a more simplistic window management policy in
4596 * place. This uses the window object indicated to select which part of the
4597 * environment to control (the part that this window lives in), and provides
4598 * a command and an optional parameter structure (use NULL for this if not
4601 * @param obj The window object that lives in the environment to control
4602 * @param command The command to send
4603 * @param params Optional parameters for the command
4605 EAPI void elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4608 * Get the inlined image object handle
4610 * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4611 * then the window is in fact an evas image object inlined in the parent
4612 * canvas. You can get this object (be careful to not manipulate it as it
4613 * is under control of elementary), and use it to do things like get pixel
4614 * data, save the image to a file, etc.
4616 * @param obj The window object to get the inlined image from
4617 * @return The inlined image object, or NULL if none exists
4619 EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4622 * Determine whether a window has focus
4623 * @param obj The window to query
4624 * @return EINA_TRUE if the window exists and has focus, else EINA_FALSE
4626 EAPI Eina_Bool elm_win_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4629 * Constrain the maximum width and height of a window to the width and height of its screen
4631 * When @p constrain is true, @p obj will never resize larger than the screen.
4632 * @param obj The window object
4633 * @param constrain EINA_TRUE to restrict the window's maximum size, EINA_FALSE to disable restriction
4635 EAPI void elm_win_screen_constrain_set(Evas_Object *obj, Eina_Bool constrain) EINA_ARG_NONNULL(1);
4638 * Retrieve the constraints on the maximum width and height of a window relative to the width and height of its screen
4640 * When this function returns true, @p obj will never resize larger than the screen.
4641 * @param obj The window object
4642 * @return EINA_TRUE to restrict the window's maximum size, EINA_FALSE to disable restriction
4644 EAPI Eina_Bool elm_win_screen_constrain_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
4647 * Get screen geometry details for the screen that a window is on
4648 * @param obj The window to query
4649 * @param x where to return the horizontal offset value. May be NULL.
4650 * @param y where to return the vertical offset value. May be NULL.
4651 * @param w where to return the width value. May be NULL.
4652 * @param h where to return the height value. May be NULL.
4654 EAPI void elm_win_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
4657 * Set the enabled status for the focus highlight in a window
4659 * This function will enable or disable the focus highlight only for the
4660 * given window, regardless of the global setting for it
4662 * @param obj The window where to enable the highlight
4663 * @param enabled The enabled value for the highlight
4665 EAPI void elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4668 * Get the enabled value of the focus highlight for this window
4670 * @param obj The window in which to check if the focus highlight is enabled
4672 * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4674 EAPI Eina_Bool elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4677 * Set the style for the focus highlight on this window
4679 * Sets the style to use for theming the highlight of focused objects on
4680 * the given window. If @p style is NULL, the default will be used.
4682 * @param obj The window where to set the style
4683 * @param style The style to set
4685 EAPI void elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4688 * Get the style set for the focus highlight object
4690 * Gets the style set for this windows highilght object, or NULL if none
4693 * @param obj The window to retrieve the highlights style from
4695 * @return The style set or NULL if none was. Default is used in that case.
4697 EAPI const char *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4700 * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4701 * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4702 * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4703 * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4704 * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4705 * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4706 * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4708 * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4709 * (blank mouse, private mouse obj, defaultmouse)
4714 * Sets the keyboard mode of the window.
4716 * @param obj The window object
4717 * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4719 EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4722 * Gets the keyboard mode of the window.
4724 * @param obj The window object
4725 * @return The mode, one of #Elm_Win_Keyboard_Mode
4727 EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4730 * Sets whether the window is a keyboard.
4732 * @param obj The window object
4733 * @param is_keyboard If true, the window is a virtual keyboard
4735 EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4738 * Gets whether the window is a keyboard.
4740 * @param obj The window object
4741 * @return If the window is a virtual keyboard
4743 EAPI Eina_Bool elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4746 * Get the screen position of a window.
4748 * @param obj The window object
4749 * @param x The int to store the x coordinate to
4750 * @param y The int to store the y coordinate to
4752 EAPI void elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4759 * @defgroup Inwin Inwin
4761 * @image html img/widget/inwin/preview-00.png
4762 * @image latex img/widget/inwin/preview-00.eps
4763 * @image html img/widget/inwin/preview-01.png
4764 * @image latex img/widget/inwin/preview-01.eps
4765 * @image html img/widget/inwin/preview-02.png
4766 * @image latex img/widget/inwin/preview-02.eps
4768 * An inwin is a window inside a window that is useful for a quick popup.
4769 * It does not hover.
4771 * It works by creating an object that will occupy the entire window, so it
4772 * must be created using an @ref Win "elm_win" as parent only. The inwin
4773 * object can be hidden or restacked below every other object if it's
4774 * needed to show what's behind it without destroying it. If this is done,
4775 * the elm_win_inwin_activate() function can be used to bring it back to
4776 * full visibility again.
4778 * There are three styles available in the default theme. These are:
4779 * @li default: The inwin is sized to take over most of the window it's
4781 * @li minimal: The size of the inwin will be the minimum necessary to show
4783 * @li minimal_vertical: Horizontally, the inwin takes as much space as
4784 * possible, but it's sized vertically the most it needs to fit its\
4787 * Some examples of Inwin can be found in the following:
4788 * @li @ref inwin_example_01
4794 * Adds an inwin to the current window
4796 * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4797 * Never call this function with anything other than the top-most window
4798 * as its parameter, unless you are fond of undefined behavior.
4800 * After creating the object, the widget will set itself as resize object
4801 * for the window with elm_win_resize_object_add(), so when shown it will
4802 * appear to cover almost the entire window (how much of it depends on its
4803 * content and the style used). It must not be added into other container
4804 * objects and it needs not be moved or resized manually.
4806 * @param parent The parent object
4807 * @return The new object or NULL if it cannot be created
4809 EAPI Evas_Object *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4812 * Activates an inwin object, ensuring its visibility
4814 * This function will make sure that the inwin @p obj is completely visible
4815 * by calling evas_object_show() and evas_object_raise() on it, to bring it
4816 * to the front. It also sets the keyboard focus to it, which will be passed
4819 * The object's theme will also receive the signal "elm,action,show" with
4822 * @param obj The inwin to activate
4824 EAPI void elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4827 * Set the content of an inwin object.
4829 * Once the content object is set, a previously set one will be deleted.
4830 * If you want to keep that old content object, use the
4831 * elm_win_inwin_content_unset() function.
4833 * @param obj The inwin object
4834 * @param content The object to set as content
4836 EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4839 * Get the content of an inwin object.
4841 * Return the content object which is set for this widget.
4843 * The returned object is valid as long as the inwin is still alive and no
4844 * other content is set on it. Deleting the object will notify the inwin
4845 * about it and this one will be left empty.
4847 * If you need to remove an inwin's content to be reused somewhere else,
4848 * see elm_win_inwin_content_unset().
4850 * @param obj The inwin object
4851 * @return The content that is being used
4853 EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4856 * Unset the content of an inwin object.
4858 * Unparent and return the content object which was set for this widget.
4860 * @param obj The inwin object
4861 * @return The content that was being used
4863 EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4868 /* X specific calls - won't work on non-x engines (return 0) */
4871 * Get the Ecore_X_Window of an Evas_Object
4873 * @param obj The object
4875 * @return The Ecore_X_Window of @p obj
4879 EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4881 /* smart callbacks called:
4882 * "delete,request" - the user requested to delete the window
4883 * "focus,in" - window got focus
4884 * "focus,out" - window lost focus
4885 * "moved" - window that holds the canvas was moved
4891 * @image html img/widget/bg/preview-00.png
4892 * @image latex img/widget/bg/preview-00.eps
4894 * @brief Background object, used for setting a solid color, image or Edje
4895 * group as background to a window or any container object.
4897 * The bg object is used for setting a solid background to a window or
4898 * packing into any container object. It works just like an image, but has
4899 * some properties useful to a background, like setting it to tiled,
4900 * centered, scaled or stretched.
4902 * Default contents parts of the bg widget that you can use for are:
4903 * @li "overlay" - overlay of the bg
4905 * Here is some sample code using it:
4906 * @li @ref bg_01_example_page
4907 * @li @ref bg_02_example_page
4908 * @li @ref bg_03_example_page
4912 typedef enum _Elm_Bg_Option
4914 ELM_BG_OPTION_CENTER, /**< center the background */
4915 ELM_BG_OPTION_SCALE, /**< scale the background retaining aspect ratio */
4916 ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4917 ELM_BG_OPTION_TILE /**< tile background at its original size */
4921 * Add a new background to the parent
4923 * @param parent The parent object
4924 * @return The new object or NULL if it cannot be created
4928 EAPI Evas_Object *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4931 * Set the file (image or edje) used for the background
4933 * @param obj The bg object
4934 * @param file The file path
4935 * @param group Optional key (group in Edje) within the file
4937 * This sets the image file used in the background object. The image (or edje)
4938 * will be stretched (retaining aspect if its an image file) to completely fill
4939 * the bg object. This may mean some parts are not visible.
4941 * @note Once the image of @p obj is set, a previously set one will be deleted,
4942 * even if @p file is NULL.
4946 EAPI void elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4949 * Get the file (image or edje) used for the background
4951 * @param obj The bg object
4952 * @param file The file path
4953 * @param group Optional key (group in Edje) within the file
4957 EAPI void elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4960 * Set the option used for the background image
4962 * @param obj The bg object
4963 * @param option The desired background option (TILE, SCALE)
4965 * This sets the option used for manipulating the display of the background
4966 * image. The image can be tiled or scaled.
4970 EAPI void elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4973 * Get the option used for the background image
4975 * @param obj The bg object
4976 * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4980 EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4982 * Set the option used for the background color
4984 * @param obj The bg object
4989 * This sets the color used for the background rectangle. Its range goes
4994 EAPI void elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4996 * Get the option used for the background color
4998 * @param obj The bg object
5005 EAPI void elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
5008 * Set the overlay object used for the background object.
5010 * @param obj The bg object
5011 * @param overlay The overlay object
5013 * This provides a way for elm_bg to have an 'overlay' that will be on top
5014 * of the bg. Once the over object is set, a previously set one will be
5015 * deleted, even if you set the new one to NULL. If you want to keep that
5016 * old content object, use the elm_bg_overlay_unset() function.
5018 * @deprecated use elm_object_part_content_set() instead
5023 EINA_DEPRECATED EAPI void elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
5026 * Get the overlay object used for the background object.
5028 * @param obj The bg object
5029 * @return The content that is being used
5031 * Return the content object which is set for this widget
5033 * @deprecated use elm_object_part_content_get() instead
5037 EINA_DEPRECATED EAPI Evas_Object *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5040 * Get the overlay object used for the background object.
5042 * @param obj The bg object
5043 * @return The content that was being used
5045 * Unparent and return the overlay object which was set for this widget
5047 * @deprecated use elm_object_part_content_unset() instead
5051 EINA_DEPRECATED EAPI Evas_Object *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5054 * Set the size of the pixmap representation of the image.
5056 * This option just makes sense if an image is going to be set in the bg.
5058 * @param obj The bg object
5059 * @param w The new width of the image pixmap representation.
5060 * @param h The new height of the image pixmap representation.
5062 * This function sets a new size for pixmap representation of the given bg
5063 * image. It allows the image to be loaded already in the specified size,
5064 * reducing the memory usage and load time when loading a big image with load
5065 * size set to a smaller size.
5067 * NOTE: this is just a hint, the real size of the pixmap may differ
5068 * depending on the type of image being loaded, being bigger than requested.
5072 EAPI void elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
5079 * @defgroup Icon Icon
5081 * @image html img/widget/icon/preview-00.png
5082 * @image latex img/widget/icon/preview-00.eps
5084 * An object that provides standard icon images (delete, edit, arrows, etc.)
5085 * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
5087 * The icon image requested can be in the elementary theme, or in the
5088 * freedesktop.org paths. It's possible to set the order of preference from
5089 * where the image will be used.
5091 * This API is very similar to @ref Image, but with ready to use images.
5093 * Default images provided by the theme are described below.
5095 * The first list contains icons that were first intended to be used in
5096 * toolbars, but can be used in many other places too:
5112 * Now some icons that were designed to be used in menus (but again, you can
5113 * use them anywhere else):
5118 * @li menu/arrow_down
5119 * @li menu/arrow_left
5120 * @li menu/arrow_right
5129 * And here we have some media player specific icons:
5130 * @li media_player/forward
5131 * @li media_player/info
5132 * @li media_player/next
5133 * @li media_player/pause
5134 * @li media_player/play
5135 * @li media_player/prev
5136 * @li media_player/rewind
5137 * @li media_player/stop
5139 * Signals that you can add callbacks for are:
5141 * "clicked" - This is called when a user has clicked the icon
5143 * An example of usage for this API follows:
5144 * @li @ref tutorial_icon
5152 typedef enum _Elm_Icon_Type
5160 * @enum _Elm_Icon_Lookup_Order
5161 * @typedef Elm_Icon_Lookup_Order
5163 * Lookup order used by elm_icon_standard_set(). Should look for icons in the
5164 * theme, FDO paths, or both?
5168 typedef enum _Elm_Icon_Lookup_Order
5170 ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
5171 ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
5172 ELM_ICON_LOOKUP_FDO, /**< icon look up order: freedesktop */
5173 ELM_ICON_LOOKUP_THEME /**< icon look up order: theme */
5174 } Elm_Icon_Lookup_Order;
5177 * Add a new icon object to the parent.
5179 * @param parent The parent object
5180 * @return The new object or NULL if it cannot be created
5182 * @see elm_icon_file_set()
5186 EAPI Evas_Object *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5189 * Set the file that will be used as icon.
5191 * @param obj The icon object
5192 * @param file The path to file that will be used as icon image
5193 * @param group The group that the icon belongs to an edje file
5195 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5197 * @note The icon image set by this function can be changed by
5198 * elm_icon_standard_set().
5200 * @see elm_icon_file_get()
5204 EAPI Eina_Bool elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5207 * Set a location in memory to be used as an icon
5209 * @param obj The icon object
5210 * @param img The binary data that will be used as an image
5211 * @param size The size of binary data @p img
5212 * @param format Optional format of @p img to pass to the image loader
5213 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
5215 * The @p format string should be something like "png", "jpg", "tga",
5216 * "tiff", "bmp" etc. if it is provided (NULL if not). This improves
5217 * the loader performance as it tries the "correct" loader first before
5218 * trying a range of other possible loaders until one succeeds.
5220 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5222 * @note The icon image set by this function can be changed by
5223 * elm_icon_standard_set().
5227 EAPI Eina_Bool elm_icon_memfile_set(Evas_Object *obj, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1, 2);
5230 * Get the file that will be used as icon.
5232 * @param obj The icon object
5233 * @param file The path to file that will be used as the icon image
5234 * @param group The group that the icon belongs to, in edje file
5236 * @see elm_icon_file_set()
5240 EAPI void elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5243 * Set the file that will be used, but use a generated thumbnail.
5245 * @param obj The icon object
5246 * @param file The path to file that will be used as icon image
5247 * @param group The group that the icon belongs to an edje file
5249 * This functions like elm_icon_file_set() but requires the Ethumb library
5250 * support to be enabled successfully with elm_need_ethumb(). When set
5251 * the file indicated has a thumbnail generated and cached on disk for
5252 * future use or will directly use an existing cached thumbnail if it
5255 * @see elm_icon_file_set()
5259 EAPI void elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5262 * Set the icon by icon standards names.
5264 * @param obj The icon object
5265 * @param name The icon name
5267 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5269 * For example, freedesktop.org defines standard icon names such as "home",
5270 * "network", etc. There can be different icon sets to match those icon
5271 * keys. The @p name given as parameter is one of these "keys", and will be
5272 * used to look in the freedesktop.org paths and elementary theme. One can
5273 * change the lookup order with elm_icon_order_lookup_set().
5275 * If name is not found in any of the expected locations and it is the
5276 * absolute path of an image file, this image will be used.
5278 * @note The icon image set by this function can be changed by
5279 * elm_icon_file_set().
5281 * @see elm_icon_standard_get()
5282 * @see elm_icon_file_set()
5286 EAPI Eina_Bool elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
5289 * Get the icon name set by icon standard names.
5291 * @param obj The icon object
5292 * @return The icon name
5294 * If the icon image was set using elm_icon_file_set() instead of
5295 * elm_icon_standard_set(), then this function will return @c NULL.
5297 * @see elm_icon_standard_set()
5301 EAPI const char *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5304 * Set the smooth scaling for an icon object.
5306 * @param obj The icon object
5307 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5308 * otherwise. Default is @c EINA_TRUE.
5310 * Set the scaling algorithm to be used when scaling the icon image. Smooth
5311 * scaling provides a better resulting image, but is slower.
5313 * The smooth scaling should be disabled when making animations that change
5314 * the icon size, since they will be faster. Animations that don't require
5315 * resizing of the icon can keep the smooth scaling enabled (even if the icon
5316 * is already scaled, since the scaled icon image will be cached).
5318 * @see elm_icon_smooth_get()
5322 EAPI void elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5325 * Get whether smooth scaling is enabled for an icon object.
5327 * @param obj The icon object
5328 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5330 * @see elm_icon_smooth_set()
5334 EAPI Eina_Bool elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5337 * Disable scaling of this object.
5339 * @param obj The icon object.
5340 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5341 * otherwise. Default is @c EINA_FALSE.
5343 * This function disables scaling of the icon object through the function
5344 * elm_object_scale_set(). However, this does not affect the object
5345 * size/resize in any way. For that effect, take a look at
5346 * elm_icon_scale_set().
5348 * @see elm_icon_no_scale_get()
5349 * @see elm_icon_scale_set()
5350 * @see elm_object_scale_set()
5354 EAPI void elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5357 * Get whether scaling is disabled on the object.
5359 * @param obj The icon object
5360 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5362 * @see elm_icon_no_scale_set()
5366 EAPI Eina_Bool elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5369 * Set if the object is (up/down) resizable.
5371 * @param obj The icon object
5372 * @param scale_up A bool to set if the object is resizable up. Default is
5374 * @param scale_down A bool to set if the object is resizable down. Default
5377 * This function limits the icon object resize ability. If @p scale_up is set to
5378 * @c EINA_FALSE, the object can't have its height or width resized to a value
5379 * higher than the original icon size. Same is valid for @p scale_down.
5381 * @see elm_icon_scale_get()
5385 EAPI void elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5388 * Get if the object is (up/down) resizable.
5390 * @param obj The icon object
5391 * @param scale_up A bool to set if the object is resizable up
5392 * @param scale_down A bool to set if the object is resizable down
5394 * @see elm_icon_scale_set()
5398 EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5401 * Get the object's image size
5403 * @param obj The icon object
5404 * @param w A pointer to store the width in
5405 * @param h A pointer to store the height in
5409 EAPI void elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5412 * Set if the icon fill the entire object area.
5414 * @param obj The icon object
5415 * @param fill_outside @c EINA_TRUE if the object is filled outside,
5416 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5418 * When the icon object is resized to a different aspect ratio from the
5419 * original icon image, the icon image will still keep its aspect. This flag
5420 * tells how the image should fill the object's area. They are: keep the
5421 * entire icon inside the limits of height and width of the object (@p
5422 * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
5423 * of the object, and the icon will fill the entire object (@p fill_outside
5426 * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
5427 * retain property to false. Thus, the icon image will always keep its
5428 * original aspect ratio.
5430 * @see elm_icon_fill_outside_get()
5431 * @see elm_image_fill_outside_set()
5435 EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5438 * Get if the object is filled outside.
5440 * @param obj The icon object
5441 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5443 * @see elm_icon_fill_outside_set()
5447 EAPI Eina_Bool elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5450 * Set the prescale size for the icon.
5452 * @param obj The icon object
5453 * @param size The prescale size. This value is used for both width and
5456 * This function sets a new size for pixmap representation of the given
5457 * icon. It allows the icon to be loaded already in the specified size,
5458 * reducing the memory usage and load time when loading a big icon with load
5459 * size set to a smaller size.
5461 * It's equivalent to the elm_bg_load_size_set() function for bg.
5463 * @note this is just a hint, the real size of the pixmap may differ
5464 * depending on the type of icon being loaded, being bigger than requested.
5466 * @see elm_icon_prescale_get()
5467 * @see elm_bg_load_size_set()
5471 EAPI void elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5474 * Get the prescale size for the icon.
5476 * @param obj The icon object
5477 * @return The prescale size
5479 * @see elm_icon_prescale_set()
5483 EAPI int elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5486 * Gets the image object of the icon. DO NOT MODIFY THIS.
5488 * @param obj The icon object
5489 * @return The internal icon object
5493 EAPI Evas_Object *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5496 * Sets the icon lookup order used by elm_icon_standard_set().
5498 * @param obj The icon object
5499 * @param order The icon lookup order (can be one of
5500 * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
5501 * or ELM_ICON_LOOKUP_THEME)
5503 * @see elm_icon_order_lookup_get()
5504 * @see Elm_Icon_Lookup_Order
5508 EAPI void elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5511 * Gets the icon lookup order.
5513 * @param obj The icon object
5514 * @return The icon lookup order
5516 * @see elm_icon_order_lookup_set()
5517 * @see Elm_Icon_Lookup_Order
5521 EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5524 * Enable or disable preloading of the icon
5526 * @param obj The icon object
5527 * @param disable If EINA_TRUE, preloading will be disabled
5530 EAPI void elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
5533 * Get if the icon supports animation or not.
5535 * @param obj The icon object
5536 * @return @c EINA_TRUE if the icon supports animation,
5537 * @c EINA_FALSE otherwise.
5539 * Return if this elm icon's image can be animated. Currently Evas only
5540 * supports gif animation. If the return value is EINA_FALSE, other
5541 * elm_icon_animated_XXX APIs won't work.
5544 EAPI Eina_Bool elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5547 * Set animation mode of the icon.
5549 * @param obj The icon object
5550 * @param anim @c EINA_TRUE if the object do animation job,
5551 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5553 * Since the default animation mode is set to EINA_FALSE,
5554 * the icon is shown without animation. Files like animated GIF files
5555 * can animate, and this is supported if you enable animated support
5557 * Set it to EINA_TRUE when the icon needs to be animated.
5560 EAPI void elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
5563 * Get animation mode of the icon.
5565 * @param obj The icon object
5566 * @return The animation mode of the icon object
5567 * @see elm_icon_animated_set
5570 EAPI Eina_Bool elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5573 * Set animation play mode of the icon.
5575 * @param obj The icon object
5576 * @param play @c EINA_TRUE the object play animation images,
5577 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5579 * To play elm icon's animation, set play to EINA_TURE.
5580 * For example, you make gif player using this set/get API and click event.
5581 * This literally lets you control current play or paused state. To have
5582 * this work with animated GIF files for example, you first, before
5583 * setting the file have to use elm_icon_animated_set() to enable animation
5584 * at all on the icon.
5586 * 1. Click event occurs
5587 * 2. Check play flag using elm_icon_animaged_play_get
5588 * 3. If elm icon was playing, set play to EINA_FALSE.
5589 * Then animation will be stopped and vice versa
5592 EAPI void elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
5595 * Get animation play mode of the icon.
5597 * @param obj The icon object
5598 * @return The play mode of the icon object
5600 * @see elm_icon_animated_play_get
5603 EAPI Eina_Bool elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5610 * @defgroup Image Image
5612 * @image html img/widget/image/preview-00.png
5613 * @image latex img/widget/image/preview-00.eps
5616 * An object that allows one to load an image file to it. It can be used
5617 * anywhere like any other elementary widget.
5619 * This widget provides most of the functionality provided from @ref Bg or @ref
5620 * Icon, but with a slightly different API (use the one that fits better your
5623 * The features not provided by those two other image widgets are:
5624 * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5625 * @li change the object orientation with elm_image_orient_set();
5626 * @li and turning the image editable with elm_image_editable_set().
5628 * Signals that you can add callbacks for are:
5630 * @li @c "clicked" - This is called when a user has clicked the image
5632 * An example of usage for this API follows:
5633 * @li @ref tutorial_image
5642 * @enum _Elm_Image_Orient
5643 * @typedef Elm_Image_Orient
5645 * Possible orientation options for elm_image_orient_set().
5647 * @image html elm_image_orient_set.png
5648 * @image latex elm_image_orient_set.eps width=\textwidth
5652 typedef enum _Elm_Image_Orient
5654 ELM_IMAGE_ORIENT_NONE = 0, /**< no orientation change */
5655 ELM_IMAGE_ORIENT_0 = 0, /**< no orientation change */
5656 ELM_IMAGE_ROTATE_90 = 1, /**< rotate 90 degrees clockwise */
5657 ELM_IMAGE_ROTATE_180 = 2, /**< rotate 180 degrees clockwise */
5658 ELM_IMAGE_ROTATE_270 = 3, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5659 /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_90_CW = 1, /**< rotate 90 degrees clockwise */
5660 /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_180_CW = 2, /**< rotate 180 degrees clockwise */
5661 /*EINA_DEPRECATED*/ELM_IMAGE_ROTATE_90_CCW = 3, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5662 ELM_IMAGE_FLIP_HORIZONTAL = 4, /**< flip image horizontally */
5663 ELM_IMAGE_FLIP_VERTICAL = 5, /**< flip image vertically */
5664 ELM_IMAGE_FLIP_TRANSPOSE = 6, /**< flip the image along the y = (width - x) line (bottom-left to top-right) */
5665 ELM_IMAGE_FLIP_TRANSVERSE = 7 /**< flip the image along the y = x line (top-left to bottom-right) */
5669 * Add a new image to the parent.
5671 * @param parent The parent object
5672 * @return The new object or NULL if it cannot be created
5674 * @see elm_image_file_set()
5678 EAPI Evas_Object *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5681 * Set the file that will be used as image.
5683 * @param obj The image object
5684 * @param file The path to file that will be used as image
5685 * @param group The group that the image belongs in edje file (if it's an
5688 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5690 * @see elm_image_file_get()
5694 EAPI Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5697 * Get the file that will be used as image.
5699 * @param obj The image object
5700 * @param file The path to file
5701 * @param group The group that the image belongs in edje file
5703 * @see elm_image_file_set()
5707 EAPI void elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5710 * Set the smooth effect for an image.
5712 * @param obj The image object
5713 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5714 * otherwise. Default is @c EINA_TRUE.
5716 * Set the scaling algorithm to be used when scaling the image. Smooth
5717 * scaling provides a better resulting image, but is slower.
5719 * The smooth scaling should be disabled when making animations that change
5720 * the image size, since it will be faster. Animations that don't require
5721 * resizing of the image can keep the smooth scaling enabled (even if the
5722 * image is already scaled, since the scaled image will be cached).
5724 * @see elm_image_smooth_get()
5728 EAPI void elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5731 * Get the smooth effect for an image.
5733 * @param obj The image object
5734 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5736 * @see elm_image_smooth_get()
5740 EAPI Eina_Bool elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5743 * Gets the current size of the image.
5745 * @param obj The image object.
5746 * @param w Pointer to store width, or NULL.
5747 * @param h Pointer to store height, or NULL.
5749 * This is the real size of the image, not the size of the object.
5751 * On error, neither w and h will be fileld with 0.
5755 EAPI void elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5758 * Disable scaling of this object.
5760 * @param obj The image object.
5761 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5762 * otherwise. Default is @c EINA_FALSE.
5764 * This function disables scaling of the elm_image widget through the
5765 * function elm_object_scale_set(). However, this does not affect the widget
5766 * size/resize in any way. For that effect, take a look at
5767 * elm_image_scale_set().
5769 * @see elm_image_no_scale_get()
5770 * @see elm_image_scale_set()
5771 * @see elm_object_scale_set()
5775 EAPI void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5778 * Get whether scaling is disabled on the object.
5780 * @param obj The image object
5781 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5783 * @see elm_image_no_scale_set()
5787 EAPI Eina_Bool elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5790 * Set if the object is (up/down) resizable.
5792 * @param obj The image object
5793 * @param scale_up A bool to set if the object is resizable up. Default is
5795 * @param scale_down A bool to set if the object is resizable down. Default
5798 * This function limits the image resize ability. If @p scale_up is set to
5799 * @c EINA_FALSE, the object can't have its height or width resized to a value
5800 * higher than the original image size. Same is valid for @p scale_down.
5802 * @see elm_image_scale_get()
5806 EAPI void elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5809 * Get if the object is (up/down) resizable.
5811 * @param obj The image object
5812 * @param scale_up A bool to set if the object is resizable up
5813 * @param scale_down A bool to set if the object is resizable down
5815 * @see elm_image_scale_set()
5819 EAPI void elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5822 * Set if the image fills the entire object area, when keeping the aspect ratio.
5824 * @param obj The image object
5825 * @param fill_outside @c EINA_TRUE if the object is filled outside,
5826 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5828 * When the image should keep its aspect ratio even if resized to another
5829 * aspect ratio, there are two possibilities to resize it: keep the entire
5830 * image inside the limits of height and width of the object (@p fill_outside
5831 * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5832 * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5834 * @note This option will have no effect if
5835 * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5837 * @see elm_image_fill_outside_get()
5838 * @see elm_image_aspect_ratio_retained_set()
5842 EAPI void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5845 * Get if the object is filled outside
5847 * @param obj The image object
5848 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5850 * @see elm_image_fill_outside_set()
5854 EAPI Eina_Bool elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5857 * Set the prescale size for the image
5859 * @param obj The image object
5860 * @param size The prescale size. This value is used for both width and
5863 * This function sets a new size for pixmap representation of the given
5864 * image. It allows the image to be loaded already in the specified size,
5865 * reducing the memory usage and load time when loading a big image with load
5866 * size set to a smaller size.
5868 * It's equivalent to the elm_bg_load_size_set() function for bg.
5870 * @note this is just a hint, the real size of the pixmap may differ
5871 * depending on the type of image being loaded, being bigger than requested.
5873 * @see elm_image_prescale_get()
5874 * @see elm_bg_load_size_set()
5878 EAPI void elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5881 * Get the prescale size for the image
5883 * @param obj The image object
5884 * @return The prescale size
5886 * @see elm_image_prescale_set()
5890 EAPI int elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5893 * Set the image orientation.
5895 * @param obj The image object
5896 * @param orient The image orientation @ref Elm_Image_Orient
5897 * Default is #ELM_IMAGE_ORIENT_NONE.
5899 * This function allows to rotate or flip the given image.
5901 * @see elm_image_orient_get()
5902 * @see @ref Elm_Image_Orient
5906 EAPI void elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5909 * Get the image orientation.
5911 * @param obj The image object
5912 * @return The image orientation @ref Elm_Image_Orient
5914 * @see elm_image_orient_set()
5915 * @see @ref Elm_Image_Orient
5919 EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5922 * Make the image 'editable'.
5924 * @param obj Image object.
5925 * @param set Turn on or off editability. Default is @c EINA_FALSE.
5927 * This means the image is a valid drag target for drag and drop, and can be
5928 * cut or pasted too.
5932 EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5935 * Check if the image 'editable'.
5937 * @param obj Image object.
5938 * @return Editability.
5940 * A return value of EINA_TRUE means the image is a valid drag target
5941 * for drag and drop, and can be cut or pasted too.
5945 EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5948 * Get the basic Evas_Image object from this object (widget).
5950 * @param obj The image object to get the inlined image from
5951 * @return The inlined image object, or NULL if none exists
5953 * This function allows one to get the underlying @c Evas_Object of type
5954 * Image from this elementary widget. It can be useful to do things like get
5955 * the pixel data, save the image to a file, etc.
5957 * @note Be careful to not manipulate it, as it is under control of
5962 EAPI Evas_Object *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5965 * Set whether the original aspect ratio of the image should be kept on resize.
5967 * @param obj The image object.
5968 * @param retained @c EINA_TRUE if the image should retain the aspect,
5969 * @c EINA_FALSE otherwise.
5971 * The original aspect ratio (width / height) of the image is usually
5972 * distorted to match the object's size. Enabling this option will retain
5973 * this original aspect, and the way that the image is fit into the object's
5974 * area depends on the option set by elm_image_fill_outside_set().
5976 * @see elm_image_aspect_ratio_retained_get()
5977 * @see elm_image_fill_outside_set()
5981 EAPI void elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5984 * Get if the object retains the original aspect ratio.
5986 * @param obj The image object.
5987 * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5992 EAPI Eina_Bool elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5999 typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
6001 typedef enum _Elm_GLView_Mode
6003 ELM_GLVIEW_ALPHA = 1,
6004 ELM_GLVIEW_DEPTH = 2,
6005 ELM_GLVIEW_STENCIL = 4
6009 * Defines a policy for the glview resizing.
6011 * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
6013 typedef enum _Elm_GLView_Resize_Policy
6015 ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1, /**< Resize the internal surface along with the image */
6016 ELM_GLVIEW_RESIZE_POLICY_SCALE = 2 /**< Only reize the internal image and not the surface */
6017 } Elm_GLView_Resize_Policy;
6019 typedef enum _Elm_GLView_Render_Policy
6021 ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1, /**< Render only when there is a need for redrawing */
6022 ELM_GLVIEW_RENDER_POLICY_ALWAYS = 2 /**< Render always even when it is not visible */
6023 } Elm_GLView_Render_Policy;
6028 * A simple GLView widget that allows GL rendering.
6030 * Signals that you can add callbacks for are:
6036 * Add a new glview to the parent
6038 * @param parent The parent object
6039 * @return The new object or NULL if it cannot be created
6043 EAPI Evas_Object *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6046 * Sets the size of the glview
6048 * @param obj The glview object
6049 * @param width width of the glview object
6050 * @param height height of the glview object
6054 EAPI void elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6057 * Gets the size of the glview.
6059 * @param obj The glview object
6060 * @param width width of the glview object
6061 * @param height height of the glview object
6063 * Note that this function returns the actual image size of the
6064 * glview. This means that when the scale policy is set to
6065 * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
6070 EAPI void elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6073 * Gets the gl api struct for gl rendering
6075 * @param obj The glview object
6076 * @return The api object or NULL if it cannot be created
6080 EAPI Evas_GL_API *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6083 * Set the mode of the GLView. Supports Three simple modes.
6085 * @param obj The glview object
6086 * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
6087 * @return True if set properly.
6091 EAPI Eina_Bool elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
6094 * Set the resize policy for the glview object.
6096 * @param obj The glview object.
6097 * @param policy The scaling policy.
6099 * By default, the resize policy is set to
6100 * ELM_GLVIEW_RESIZE_POLICY_RECREATE. When resize is called it
6101 * destroys the previous surface and recreates the newly specified
6102 * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
6103 * however, glview only scales the image object and not the underlying
6108 EAPI Eina_Bool elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
6111 * Set the render policy for the glview object.
6113 * @param obj The glview object.
6114 * @param policy The render policy.
6116 * By default, the render policy is set to
6117 * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND. This policy is set such
6118 * that during the render loop, glview is only redrawn if it needs
6119 * to be redrawn. (i.e. When it is visible) If the policy is set to
6120 * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
6121 * whether it is visible/need redrawing or not.
6125 EAPI Eina_Bool elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
6128 * Set the init function that runs once in the main loop.
6130 * @param obj The glview object.
6131 * @param func The init function to be registered.
6133 * The registered init function gets called once during the render loop.
6137 EAPI void elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6140 * Set the render function that runs in the main loop.
6142 * @param obj The glview object.
6143 * @param func The delete function to be registered.
6145 * The registered del function gets called when GLView object is deleted.
6149 EAPI void elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6152 * Set the resize function that gets called when resize happens.
6154 * @param obj The glview object.
6155 * @param func The resize function to be registered.
6159 EAPI void elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6162 * Set the render function that runs in the main loop.
6164 * @param obj The glview object.
6165 * @param func The render function to be registered.
6169 EAPI void elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
6172 * Notifies that there has been changes in the GLView.
6174 * @param obj The glview object.
6178 EAPI void elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
6188 * @image html img/widget/box/preview-00.png
6189 * @image latex img/widget/box/preview-00.eps width=\textwidth
6191 * @image html img/box.png
6192 * @image latex img/box.eps width=\textwidth
6194 * A box arranges objects in a linear fashion, governed by a layout function
6195 * that defines the details of this arrangement.
6197 * By default, the box will use an internal function to set the layout to
6198 * a single row, either vertical or horizontal. This layout is affected
6199 * by a number of parameters, such as the homogeneous flag set by
6200 * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
6201 * elm_box_align_set() and the hints set to each object in the box.
6203 * For this default layout, it's possible to change the orientation with
6204 * elm_box_horizontal_set(). The box will start in the vertical orientation,
6205 * placing its elements ordered from top to bottom. When horizontal is set,
6206 * the order will go from left to right. If the box is set to be
6207 * homogeneous, every object in it will be assigned the same space, that
6208 * of the largest object. Padding can be used to set some spacing between
6209 * the cell given to each object. The alignment of the box, set with
6210 * elm_box_align_set(), determines how the bounding box of all the elements
6211 * will be placed within the space given to the box widget itself.
6213 * The size hints of each object also affect how they are placed and sized
6214 * within the box. evas_object_size_hint_min_set() will give the minimum
6215 * size the object can have, and the box will use it as the basis for all
6216 * latter calculations. Elementary widgets set their own minimum size as
6217 * needed, so there's rarely any need to use it manually.
6219 * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
6220 * used to tell whether the object will be allocated the minimum size it
6221 * needs or if the space given to it should be expanded. It's important
6222 * to realize that expanding the size given to the object is not the same
6223 * thing as resizing the object. It could very well end being a small
6224 * widget floating in a much larger empty space. If not set, the weight
6225 * for objects will normally be 0.0 for both axis, meaning the widget will
6226 * not be expanded. To take as much space possible, set the weight to
6227 * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
6229 * Besides how much space each object is allocated, it's possible to control
6230 * how the widget will be placed within that space using
6231 * evas_object_size_hint_align_set(). By default, this value will be 0.5
6232 * for both axis, meaning the object will be centered, but any value from
6233 * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
6234 * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
6235 * is -1.0, means the object will be resized to fill the entire space it
6238 * In addition, customized functions to define the layout can be set, which
6239 * allow the application developer to organize the objects within the box
6240 * in any number of ways.
6242 * The special elm_box_layout_transition() function can be used
6243 * to switch from one layout to another, animating the motion of the
6244 * children of the box.
6246 * @note Objects should not be added to box objects using _add() calls.
6248 * Some examples on how to use boxes follow:
6249 * @li @ref box_example_01
6250 * @li @ref box_example_02
6255 * @typedef Elm_Box_Transition
6257 * Opaque handler containing the parameters to perform an animated
6258 * transition of the layout the box uses.
6260 * @see elm_box_transition_new()
6261 * @see elm_box_layout_set()
6262 * @see elm_box_layout_transition()
6264 typedef struct _Elm_Box_Transition Elm_Box_Transition;
6267 * Add a new box to the parent
6269 * By default, the box will be in vertical mode and non-homogeneous.
6271 * @param parent The parent object
6272 * @return The new object or NULL if it cannot be created
6274 EAPI Evas_Object *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6277 * Set the horizontal orientation
6279 * By default, box object arranges their contents vertically from top to
6281 * By calling this function with @p horizontal as EINA_TRUE, the box will
6282 * become horizontal, arranging contents from left to right.
6284 * @note This flag is ignored if a custom layout function is set.
6286 * @param obj The box object
6287 * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
6288 * EINA_FALSE = vertical)
6290 EAPI void elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
6293 * Get the horizontal orientation
6295 * @param obj The box object
6296 * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
6298 EAPI Eina_Bool elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6301 * Set the box to arrange its children homogeneously
6303 * If enabled, homogeneous layout makes all items the same size, according
6304 * to the size of the largest of its children.
6306 * @note This flag is ignored if a custom layout function is set.
6308 * @param obj The box object
6309 * @param homogeneous The homogeneous flag
6311 EAPI void elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
6314 * Get whether the box is using homogeneous mode or not
6316 * @param obj The box object
6317 * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
6319 EAPI Eina_Bool elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6322 * Add an object to the beginning of the pack list
6324 * Pack @p subobj into the box @p obj, placing it first in the list of
6325 * children objects. The actual position the object will get on screen
6326 * depends on the layout used. If no custom layout is set, it will be at
6327 * the top or left, depending if the box is vertical or horizontal,
6330 * @param obj The box object
6331 * @param subobj The object to add to the box
6333 * @see elm_box_pack_end()
6334 * @see elm_box_pack_before()
6335 * @see elm_box_pack_after()
6336 * @see elm_box_unpack()
6337 * @see elm_box_unpack_all()
6338 * @see elm_box_clear()
6340 EAPI void elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6343 * Add an object at the end of the pack list
6345 * Pack @p subobj into the box @p obj, placing it last in the list of
6346 * children objects. The actual position the object will get on screen
6347 * depends on the layout used. If no custom layout is set, it will be at
6348 * the bottom or right, depending if the box is vertical or horizontal,
6351 * @param obj The box object
6352 * @param subobj The object to add to the box
6354 * @see elm_box_pack_start()
6355 * @see elm_box_pack_before()
6356 * @see elm_box_pack_after()
6357 * @see elm_box_unpack()
6358 * @see elm_box_unpack_all()
6359 * @see elm_box_clear()
6361 EAPI void elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6364 * Adds an object to the box before the indicated object
6366 * This will add the @p subobj to the box indicated before the object
6367 * indicated with @p before. If @p before is not already in the box, results
6368 * are undefined. Before means either to the left of the indicated object or
6369 * above it depending on orientation.
6371 * @param obj The box object
6372 * @param subobj The object to add to the box
6373 * @param before The object before which to add it
6375 * @see elm_box_pack_start()
6376 * @see elm_box_pack_end()
6377 * @see elm_box_pack_after()
6378 * @see elm_box_unpack()
6379 * @see elm_box_unpack_all()
6380 * @see elm_box_clear()
6382 EAPI void elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
6385 * Adds an object to the box after the indicated object
6387 * This will add the @p subobj to the box indicated after the object
6388 * indicated with @p after. If @p after is not already in the box, results
6389 * are undefined. After means either to the right of the indicated object or
6390 * below it depending on orientation.
6392 * @param obj The box object
6393 * @param subobj The object to add to the box
6394 * @param after The object after which to add it
6396 * @see elm_box_pack_start()
6397 * @see elm_box_pack_end()
6398 * @see elm_box_pack_before()
6399 * @see elm_box_unpack()
6400 * @see elm_box_unpack_all()
6401 * @see elm_box_clear()
6403 EAPI void elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
6406 * Clear the box of all children
6408 * Remove all the elements contained by the box, deleting the respective
6411 * @param obj The box object
6413 * @see elm_box_unpack()
6414 * @see elm_box_unpack_all()
6416 EAPI void elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6421 * Remove the object given by @p subobj from the box @p obj without
6424 * @param obj The box object
6426 * @see elm_box_unpack_all()
6427 * @see elm_box_clear()
6429 EAPI void elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
6432 * Remove all items from the box, without deleting them
6434 * Clear the box from all children, but don't delete the respective objects.
6435 * If no other references of the box children exist, the objects will never
6436 * be deleted, and thus the application will leak the memory. Make sure
6437 * when using this function that you hold a reference to all the objects
6438 * in the box @p obj.
6440 * @param obj The box object
6442 * @see elm_box_clear()
6443 * @see elm_box_unpack()
6445 EAPI void elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
6448 * Retrieve a list of the objects packed into the box
6450 * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
6451 * The order of the list corresponds to the packing order the box uses.
6453 * You must free this list with eina_list_free() once you are done with it.
6455 * @param obj The box object
6457 EAPI const Eina_List *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6460 * Set the space (padding) between the box's elements.
6462 * Extra space in pixels that will be added between a box child and its
6463 * neighbors after its containing cell has been calculated. This padding
6464 * is set for all elements in the box, besides any possible padding that
6465 * individual elements may have through their size hints.
6467 * @param obj The box object
6468 * @param horizontal The horizontal space between elements
6469 * @param vertical The vertical space between elements
6471 EAPI void elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
6474 * Get the space (padding) between the box's elements.
6476 * @param obj The box object
6477 * @param horizontal The horizontal space between elements
6478 * @param vertical The vertical space between elements
6480 * @see elm_box_padding_set()
6482 EAPI void elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
6485 * Set the alignment of the whole bouding box of contents.
6487 * Sets how the bounding box containing all the elements of the box, after
6488 * their sizes and position has been calculated, will be aligned within
6489 * the space given for the whole box widget.
6491 * @param obj The box object
6492 * @param horizontal The horizontal alignment of elements
6493 * @param vertical The vertical alignment of elements
6495 EAPI void elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
6498 * Get the alignment of the whole bouding box of contents.
6500 * @param obj The box object
6501 * @param horizontal The horizontal alignment of elements
6502 * @param vertical The vertical alignment of elements
6504 * @see elm_box_align_set()
6506 EAPI void elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
6509 * Force the box to recalculate its children packing.
6511 * If any children was added or removed, box will not calculate the
6512 * values immediately rather leaving it to the next main loop
6513 * iteration. While this is great as it would save lots of
6514 * recalculation, whenever you need to get the position of a just
6515 * added item you must force recalculate before doing so.
6517 * @param obj The box object.
6519 EAPI void elm_box_recalculate(Evas_Object *obj);
6522 * Set the layout defining function to be used by the box
6524 * Whenever anything changes that requires the box in @p obj to recalculate
6525 * the size and position of its elements, the function @p cb will be called
6526 * to determine what the layout of the children will be.
6528 * Once a custom function is set, everything about the children layout
6529 * is defined by it. The flags set by elm_box_horizontal_set() and
6530 * elm_box_homogeneous_set() no longer have any meaning, and the values
6531 * given by elm_box_padding_set() and elm_box_align_set() are up to this
6532 * layout function to decide if they are used and how. These last two
6533 * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
6534 * passed to @p cb. The @c Evas_Object the function receives is not the
6535 * Elementary widget, but the internal Evas Box it uses, so none of the
6536 * functions described here can be used on it.
6538 * Any of the layout functions in @c Evas can be used here, as well as the
6539 * special elm_box_layout_transition().
6541 * The final @p data argument received by @p cb is the same @p data passed
6542 * here, and the @p free_data function will be called to free it
6543 * whenever the box is destroyed or another layout function is set.
6545 * Setting @p cb to NULL will revert back to the default layout function.
6547 * @param obj The box object
6548 * @param cb The callback function used for layout
6549 * @param data Data that will be passed to layout function
6550 * @param free_data Function called to free @p data
6552 * @see elm_box_layout_transition()
6554 EAPI void elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data, void (*free_data)(void *data)) EINA_ARG_NONNULL(1);
6557 * Special layout function that animates the transition from one layout to another
6559 * Normally, when switching the layout function for a box, this will be
6560 * reflected immediately on screen on the next render, but it's also
6561 * possible to do this through an animated transition.
6563 * This is done by creating an ::Elm_Box_Transition and setting the box
6564 * layout to this function.
6568 * Elm_Box_Transition *t = elm_box_transition_new(1.0,
6569 * evas_object_box_layout_vertical, // start
6570 * NULL, // data for initial layout
6571 * NULL, // free function for initial data
6572 * evas_object_box_layout_horizontal, // end
6573 * NULL, // data for final layout
6574 * NULL, // free function for final data
6575 * anim_end, // will be called when animation ends
6576 * NULL); // data for anim_end function\
6577 * elm_box_layout_set(box, elm_box_layout_transition, t,
6578 * elm_box_transition_free);
6581 * @note This function can only be used with elm_box_layout_set(). Calling
6582 * it directly will not have the expected results.
6584 * @see elm_box_transition_new
6585 * @see elm_box_transition_free
6586 * @see elm_box_layout_set
6588 EAPI void elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
6591 * Create a new ::Elm_Box_Transition to animate the switch of layouts
6593 * If you want to animate the change from one layout to another, you need
6594 * to set the layout function of the box to elm_box_layout_transition(),
6595 * passing as user data to it an instance of ::Elm_Box_Transition with the
6596 * necessary information to perform this animation. The free function to
6597 * set for the layout is elm_box_transition_free().
6599 * The parameters to create an ::Elm_Box_Transition sum up to how long
6600 * will it be, in seconds, a layout function to describe the initial point,
6601 * another for the final position of the children and one function to be
6602 * called when the whole animation ends. This last function is useful to
6603 * set the definitive layout for the box, usually the same as the end
6604 * layout for the animation, but could be used to start another transition.
6606 * @param start_layout The layout function that will be used to start the animation
6607 * @param start_layout_data The data to be passed the @p start_layout function
6608 * @param start_layout_free_data Function to free @p start_layout_data
6609 * @param end_layout The layout function that will be used to end the animation
6610 * @param end_layout_free_data The data to be passed the @p end_layout function
6611 * @param end_layout_free_data Function to free @p end_layout_data
6612 * @param transition_end_cb Callback function called when animation ends
6613 * @param transition_end_data Data to be passed to @p transition_end_cb
6614 * @return An instance of ::Elm_Box_Transition
6616 * @see elm_box_transition_new
6617 * @see elm_box_layout_transition
6619 EAPI Elm_Box_Transition *elm_box_transition_new(const double duration, Evas_Object_Box_Layout start_layout, void *start_layout_data, void(*start_layout_free_data)(void *data), Evas_Object_Box_Layout end_layout, void *end_layout_data, void(*end_layout_free_data)(void *data), void(*transition_end_cb)(void *data), void *transition_end_data) EINA_ARG_NONNULL(2, 5);
6622 * Free a Elm_Box_Transition instance created with elm_box_transition_new().
6624 * This function is mostly useful as the @c free_data parameter in
6625 * elm_box_layout_set() when elm_box_layout_transition().
6627 * @param data The Elm_Box_Transition instance to be freed.
6629 * @see elm_box_transition_new
6630 * @see elm_box_layout_transition
6632 EAPI void elm_box_transition_free(void *data);
6640 * @defgroup Button Button
6642 * @image html img/widget/button/preview-00.png
6643 * @image latex img/widget/button/preview-00.eps
6644 * @image html img/widget/button/preview-01.png
6645 * @image latex img/widget/button/preview-01.eps
6646 * @image html img/widget/button/preview-02.png
6647 * @image latex img/widget/button/preview-02.eps
6649 * This is a push-button. Press it and run some function. It can contain
6650 * a simple label and icon object and it also has an autorepeat feature.
6652 * This widgets emits the following signals:
6653 * @li "clicked": the user clicked the button (press/release).
6654 * @li "repeated": the user pressed the button without releasing it.
6655 * @li "pressed": button was pressed.
6656 * @li "unpressed": button was released after being pressed.
6657 * In all three cases, the @c event parameter of the callback will be
6660 * Also, defined in the default theme, the button has the following styles
6662 * @li default: a normal button.
6663 * @li anchor: Like default, but the button fades away when the mouse is not
6664 * over it, leaving only the text or icon.
6665 * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6666 * continuous look across its options.
6667 * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6669 * Default contents parts of the button widget that you can use for are:
6670 * @li "icon" - An icon of the button
6672 * Default text parts of the button widget that you can use for are:
6673 * @li "default" - Label of the button
6675 * Follow through a complete example @ref button_example_01 "here".
6680 * Add a new button to the parent's canvas
6682 * @param parent The parent object
6683 * @return The new object or NULL if it cannot be created
6685 EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6688 * Set the label used in the button
6690 * The passed @p label can be NULL to clean any existing text in it and
6691 * leave the button as an icon only object.
6693 * @param obj The button object
6694 * @param label The text will be written on the button
6695 * @deprecated use elm_object_text_set() instead.
6697 EINA_DEPRECATED EAPI void elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6700 * Get the label set for the button
6702 * The string returned is an internal pointer and should not be freed or
6703 * altered. It will also become invalid when the button is destroyed.
6704 * The string returned, if not NULL, is a stringshare, so if you need to
6705 * keep it around even after the button is destroyed, you can use
6706 * eina_stringshare_ref().
6708 * @param obj The button object
6709 * @return The text set to the label, or NULL if nothing is set
6710 * @deprecated use elm_object_text_set() instead.
6712 EINA_DEPRECATED EAPI const char *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6715 * Set the icon used for the button
6717 * Setting a new icon will delete any other that was previously set, making
6718 * any reference to them invalid. If you need to maintain the previous
6719 * object alive, unset it first with elm_button_icon_unset().
6721 * @param obj The button object
6722 * @param icon The icon object for the button
6723 * @deprecated use elm_object_part_content_set() instead.
6725 EINA_DEPRECATED EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6728 * Get the icon used for the button
6730 * Return the icon object which is set for this widget. If the button is
6731 * destroyed or another icon is set, the returned object will be deleted
6732 * and any reference to it will be invalid.
6734 * @param obj The button object
6735 * @return The icon object that is being used
6737 * @deprecated use elm_object_part_content_get() instead
6739 EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6742 * Remove the icon set without deleting it and return the object
6744 * This function drops the reference the button holds of the icon object
6745 * and returns this last object. It is used in case you want to remove any
6746 * icon, or set another one, without deleting the actual object. The button
6747 * will be left without an icon set.
6749 * @param obj The button object
6750 * @return The icon object that was being used
6751 * @deprecated use elm_object_part_content_unset() instead.
6753 EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6756 * Turn on/off the autorepeat event generated when the button is kept pressed
6758 * When off, no autorepeat is performed and buttons emit a normal @c clicked
6759 * signal when they are clicked.
6761 * When on, keeping a button pressed will continuously emit a @c repeated
6762 * signal until the button is released. The time it takes until it starts
6763 * emitting the signal is given by
6764 * elm_button_autorepeat_initial_timeout_set(), and the time between each
6765 * new emission by elm_button_autorepeat_gap_timeout_set().
6767 * @param obj The button object
6768 * @param on A bool to turn on/off the event
6770 EAPI void elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6773 * Get whether the autorepeat feature is enabled
6775 * @param obj The button object
6776 * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6778 * @see elm_button_autorepeat_set()
6780 EAPI Eina_Bool elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6783 * Set the initial timeout before the autorepeat event is generated
6785 * Sets the timeout, in seconds, since the button is pressed until the
6786 * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6787 * won't be any delay and the even will be fired the moment the button is
6790 * @param obj The button object
6791 * @param t Timeout in seconds
6793 * @see elm_button_autorepeat_set()
6794 * @see elm_button_autorepeat_gap_timeout_set()
6796 EAPI void elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6799 * Get the initial timeout before the autorepeat event is generated
6801 * @param obj The button object
6802 * @return Timeout in seconds
6804 * @see elm_button_autorepeat_initial_timeout_set()
6806 EAPI double elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6809 * Set the interval between each generated autorepeat event
6811 * After the first @c repeated event is fired, all subsequent ones will
6812 * follow after a delay of @p t seconds for each.
6814 * @param obj The button object
6815 * @param t Interval in seconds
6817 * @see elm_button_autorepeat_initial_timeout_set()
6819 EAPI void elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6822 * Get the interval between each generated autorepeat event
6824 * @param obj The button object
6825 * @return Interval in seconds
6827 EAPI double elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6834 * @defgroup File_Selector_Button File Selector Button
6836 * @image html img/widget/fileselector_button/preview-00.png
6837 * @image latex img/widget/fileselector_button/preview-00.eps
6838 * @image html img/widget/fileselector_button/preview-01.png
6839 * @image latex img/widget/fileselector_button/preview-01.eps
6840 * @image html img/widget/fileselector_button/preview-02.png
6841 * @image latex img/widget/fileselector_button/preview-02.eps
6843 * This is a button that, when clicked, creates an Elementary
6844 * window (or inner window) <b> with a @ref Fileselector "file
6845 * selector widget" within</b>. When a file is chosen, the (inner)
6846 * window is closed and the button emits a signal having the
6847 * selected file as it's @c event_info.
6849 * This widget encapsulates operations on its internal file
6850 * selector on its own API. There is less control over its file
6851 * selector than that one would have instatiating one directly.
6853 * The following styles are available for this button:
6856 * @li @c "hoversel_vertical"
6857 * @li @c "hoversel_vertical_entry"
6859 * Smart callbacks one can register to:
6860 * - @c "file,chosen" - the user has selected a path, whose string
6861 * pointer comes as the @c event_info data (a stringshared
6864 * Here is an example on its usage:
6865 * @li @ref fileselector_button_example
6867 * @see @ref File_Selector_Entry for a similar widget.
6872 * Add a new file selector button widget to the given parent
6873 * Elementary (container) object
6875 * @param parent The parent object
6876 * @return a new file selector button widget handle or @c NULL, on
6879 EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6882 * Set the label for a given file selector button widget
6884 * @param obj The file selector button widget
6885 * @param label The text label to be displayed on @p obj
6887 * @deprecated use elm_object_text_set() instead.
6889 EINA_DEPRECATED EAPI void elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6892 * Get the label set for a given file selector button widget
6894 * @param obj The file selector button widget
6895 * @return The button label
6897 * @deprecated use elm_object_text_set() instead.
6899 EINA_DEPRECATED EAPI const char *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6902 * Set the icon on a given file selector button widget
6904 * @param obj The file selector button widget
6905 * @param icon The icon object for the button
6907 * Once the icon object is set, a previously set one will be
6908 * deleted. If you want to keep the latter, use the
6909 * elm_fileselector_button_icon_unset() function.
6911 * @see elm_fileselector_button_icon_get()
6913 EAPI void elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6916 * Get the icon set for a given file selector button widget
6918 * @param obj The file selector button widget
6919 * @return The icon object currently set on @p obj or @c NULL, if
6922 * @see elm_fileselector_button_icon_set()
6924 EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6927 * Unset the icon used in a given file selector button widget
6929 * @param obj The file selector button widget
6930 * @return The icon object that was being used on @p obj or @c
6933 * Unparent and return the icon object which was set for this
6936 * @see elm_fileselector_button_icon_set()
6938 EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6941 * Set the title for a given file selector button widget's window
6943 * @param obj The file selector button widget
6944 * @param title The title string
6946 * This will change the window's title, when the file selector pops
6947 * out after a click on the button. Those windows have the default
6948 * (unlocalized) value of @c "Select a file" as titles.
6950 * @note It will only take any effect if the file selector
6951 * button widget is @b not under "inwin mode".
6953 * @see elm_fileselector_button_window_title_get()
6955 EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6958 * Get the title set for a given file selector button widget's
6961 * @param obj The file selector button widget
6962 * @return Title of the file selector button's window
6964 * @see elm_fileselector_button_window_title_get() for more details
6966 EAPI const char *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6969 * Set the size of a given file selector button widget's window,
6970 * holding the file selector itself.
6972 * @param obj The file selector button widget
6973 * @param width The window's width
6974 * @param height The window's height
6976 * @note it will only take any effect if the file selector button
6977 * widget is @b not under "inwin mode". The default size for the
6978 * window (when applicable) is 400x400 pixels.
6980 * @see elm_fileselector_button_window_size_get()
6982 EAPI void elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6985 * Get the size of a given file selector button widget's window,
6986 * holding the file selector itself.
6988 * @param obj The file selector button widget
6989 * @param width Pointer into which to store the width value
6990 * @param height Pointer into which to store the height value
6992 * @note Use @c NULL pointers on the size values you're not
6993 * interested in: they'll be ignored by the function.
6995 * @see elm_fileselector_button_window_size_set(), for more details
6997 EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
7000 * Set the initial file system path for a given file selector
7003 * @param obj The file selector button widget
7004 * @param path The path string
7006 * It must be a <b>directory</b> path, which will have the contents
7007 * displayed initially in the file selector's view, when invoked
7008 * from @p obj. The default initial path is the @c "HOME"
7009 * environment variable's value.
7011 * @see elm_fileselector_button_path_get()
7013 EAPI void elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7016 * Get the initial file system path set for a given file selector
7019 * @param obj The file selector button widget
7020 * @return path The path string
7022 * @see elm_fileselector_button_path_set() for more details
7024 EAPI const char *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7027 * Enable/disable a tree view in the given file selector button
7028 * widget's internal file selector
7030 * @param obj The file selector button widget
7031 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
7034 * This has the same effect as elm_fileselector_expandable_set(),
7035 * but now applied to a file selector button's internal file
7038 * @note There's no way to put a file selector button's internal
7039 * file selector in "grid mode", as one may do with "pure" file
7042 * @see elm_fileselector_expandable_get()
7044 EAPI void elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7047 * Get whether tree view is enabled for the given file selector
7048 * button widget's internal file selector
7050 * @param obj The file selector button widget
7051 * @return @c EINA_TRUE if @p obj widget's internal file selector
7052 * is in tree view, @c EINA_FALSE otherwise (and or errors)
7054 * @see elm_fileselector_expandable_set() for more details
7056 EAPI Eina_Bool elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7059 * Set whether a given file selector button widget's internal file
7060 * selector is to display folders only or the directory contents,
7063 * @param obj The file selector button widget
7064 * @param only @c EINA_TRUE to make @p obj widget's internal file
7065 * selector only display directories, @c EINA_FALSE to make files
7066 * to be displayed in it too
7068 * This has the same effect as elm_fileselector_folder_only_set(),
7069 * but now applied to a file selector button's internal file
7072 * @see elm_fileselector_folder_only_get()
7074 EAPI void elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7077 * Get whether a given file selector button widget's internal file
7078 * selector is displaying folders only or the directory contents,
7081 * @param obj The file selector button widget
7082 * @return @c EINA_TRUE if @p obj widget's internal file
7083 * selector is only displaying directories, @c EINA_FALSE if files
7084 * are being displayed in it too (and on errors)
7086 * @see elm_fileselector_button_folder_only_set() for more details
7088 EAPI Eina_Bool elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7091 * Enable/disable the file name entry box where the user can type
7092 * in a name for a file, in a given file selector button widget's
7093 * internal file selector.
7095 * @param obj The file selector button widget
7096 * @param is_save @c EINA_TRUE to make @p obj widget's internal
7097 * file selector a "saving dialog", @c EINA_FALSE otherwise
7099 * This has the same effect as elm_fileselector_is_save_set(),
7100 * but now applied to a file selector button's internal file
7103 * @see elm_fileselector_is_save_get()
7105 EAPI void elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7108 * Get whether the given file selector button widget's internal
7109 * file selector is in "saving dialog" mode
7111 * @param obj The file selector button widget
7112 * @return @c EINA_TRUE, if @p obj widget's internal file selector
7113 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
7116 * @see elm_fileselector_button_is_save_set() for more details
7118 EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7121 * Set whether a given file selector button widget's internal file
7122 * selector will raise an Elementary "inner window", instead of a
7123 * dedicated Elementary window. By default, it won't.
7125 * @param obj The file selector button widget
7126 * @param value @c EINA_TRUE to make it use an inner window, @c
7127 * EINA_TRUE to make it use a dedicated window
7129 * @see elm_win_inwin_add() for more information on inner windows
7130 * @see elm_fileselector_button_inwin_mode_get()
7132 EAPI void elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7135 * Get whether a given file selector button widget's internal file
7136 * selector will raise an Elementary "inner window", instead of a
7137 * dedicated Elementary window.
7139 * @param obj The file selector button widget
7140 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
7141 * if it will use a dedicated window
7143 * @see elm_fileselector_button_inwin_mode_set() for more details
7145 EAPI Eina_Bool elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7152 * @defgroup File_Selector_Entry File Selector Entry
7154 * @image html img/widget/fileselector_entry/preview-00.png
7155 * @image latex img/widget/fileselector_entry/preview-00.eps
7157 * This is an entry made to be filled with or display a <b>file
7158 * system path string</b>. Besides the entry itself, the widget has
7159 * a @ref File_Selector_Button "file selector button" on its side,
7160 * which will raise an internal @ref Fileselector "file selector widget",
7161 * when clicked, for path selection aided by file system
7164 * This file selector may appear in an Elementary window or in an
7165 * inner window. When a file is chosen from it, the (inner) window
7166 * is closed and the selected file's path string is exposed both as
7167 * an smart event and as the new text on the entry.
7169 * This widget encapsulates operations on its internal file
7170 * selector on its own API. There is less control over its file
7171 * selector than that one would have instatiating one directly.
7173 * Smart callbacks one can register to:
7174 * - @c "changed" - The text within the entry was changed
7175 * - @c "activated" - The entry has had editing finished and
7176 * changes are to be "committed"
7177 * - @c "press" - The entry has been clicked
7178 * - @c "longpressed" - The entry has been clicked (and held) for a
7180 * - @c "clicked" - The entry has been clicked
7181 * - @c "clicked,double" - The entry has been double clicked
7182 * - @c "focused" - The entry has received focus
7183 * - @c "unfocused" - The entry has lost focus
7184 * - @c "selection,paste" - A paste action has occurred on the
7186 * - @c "selection,copy" - A copy action has occurred on the entry
7187 * - @c "selection,cut" - A cut action has occurred on the entry
7188 * - @c "unpressed" - The file selector entry's button was released
7189 * after being pressed.
7190 * - @c "file,chosen" - The user has selected a path via the file
7191 * selector entry's internal file selector, whose string pointer
7192 * comes as the @c event_info data (a stringshared string)
7194 * Here is an example on its usage:
7195 * @li @ref fileselector_entry_example
7197 * @see @ref File_Selector_Button for a similar widget.
7202 * Add a new file selector entry widget to the given parent
7203 * Elementary (container) object
7205 * @param parent The parent object
7206 * @return a new file selector entry widget handle or @c NULL, on
7209 EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7212 * Set the label for a given file selector entry widget's button
7214 * @param obj The file selector entry widget
7215 * @param label The text label to be displayed on @p obj widget's
7218 * @deprecated use elm_object_text_set() instead.
7220 EINA_DEPRECATED EAPI void elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7223 * Get the label set for a given file selector entry widget's button
7225 * @param obj The file selector entry widget
7226 * @return The widget button's label
7228 * @deprecated use elm_object_text_set() instead.
7230 EINA_DEPRECATED EAPI const char *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7233 * Set the icon on a given file selector entry widget's button
7235 * @param obj The file selector entry widget
7236 * @param icon The icon object for the entry's button
7238 * Once the icon object is set, a previously set one will be
7239 * deleted. If you want to keep the latter, use the
7240 * elm_fileselector_entry_button_icon_unset() function.
7242 * @see elm_fileselector_entry_button_icon_get()
7244 EAPI void elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7247 * Get the icon set for a given file selector entry widget's button
7249 * @param obj The file selector entry widget
7250 * @return The icon object currently set on @p obj widget's button
7251 * or @c NULL, if none is
7253 * @see elm_fileselector_entry_button_icon_set()
7255 EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7258 * Unset the icon used in a given file selector entry widget's
7261 * @param obj The file selector entry widget
7262 * @return The icon object that was being used on @p obj widget's
7263 * button or @c NULL, on errors
7265 * Unparent and return the icon object which was set for this
7268 * @see elm_fileselector_entry_button_icon_set()
7270 EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7273 * Set the title for a given file selector entry widget's window
7275 * @param obj The file selector entry widget
7276 * @param title The title string
7278 * This will change the window's title, when the file selector pops
7279 * out after a click on the entry's button. Those windows have the
7280 * default (unlocalized) value of @c "Select a file" as titles.
7282 * @note It will only take any effect if the file selector
7283 * entry widget is @b not under "inwin mode".
7285 * @see elm_fileselector_entry_window_title_get()
7287 EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
7290 * Get the title set for a given file selector entry widget's
7293 * @param obj The file selector entry widget
7294 * @return Title of the file selector entry's window
7296 * @see elm_fileselector_entry_window_title_get() for more details
7298 EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7301 * Set the size of a given file selector entry widget's window,
7302 * holding the file selector itself.
7304 * @param obj The file selector entry widget
7305 * @param width The window's width
7306 * @param height The window's height
7308 * @note it will only take any effect if the file selector entry
7309 * widget is @b not under "inwin mode". The default size for the
7310 * window (when applicable) is 400x400 pixels.
7312 * @see elm_fileselector_entry_window_size_get()
7314 EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
7317 * Get the size of a given file selector entry widget's window,
7318 * holding the file selector itself.
7320 * @param obj The file selector entry widget
7321 * @param width Pointer into which to store the width value
7322 * @param height Pointer into which to store the height value
7324 * @note Use @c NULL pointers on the size values you're not
7325 * interested in: they'll be ignored by the function.
7327 * @see elm_fileselector_entry_window_size_set(), for more details
7329 EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
7332 * Set the initial file system path and the entry's path string for
7333 * a given file selector entry widget
7335 * @param obj The file selector entry widget
7336 * @param path The path string
7338 * It must be a <b>directory</b> path, which will have the contents
7339 * displayed initially in the file selector's view, when invoked
7340 * from @p obj. The default initial path is the @c "HOME"
7341 * environment variable's value.
7343 * @see elm_fileselector_entry_path_get()
7345 EAPI void elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7348 * Get the entry's path string for a given file selector entry
7351 * @param obj The file selector entry widget
7352 * @return path The path string
7354 * @see elm_fileselector_entry_path_set() for more details
7356 EAPI const char *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7359 * Enable/disable a tree view in the given file selector entry
7360 * widget's internal file selector
7362 * @param obj The file selector entry widget
7363 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
7366 * This has the same effect as elm_fileselector_expandable_set(),
7367 * but now applied to a file selector entry's internal file
7370 * @note There's no way to put a file selector entry's internal
7371 * file selector in "grid mode", as one may do with "pure" file
7374 * @see elm_fileselector_expandable_get()
7376 EAPI void elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7379 * Get whether tree view is enabled for the given file selector
7380 * entry widget's internal file selector
7382 * @param obj The file selector entry widget
7383 * @return @c EINA_TRUE if @p obj widget's internal file selector
7384 * is in tree view, @c EINA_FALSE otherwise (and or errors)
7386 * @see elm_fileselector_expandable_set() for more details
7388 EAPI Eina_Bool elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7391 * Set whether a given file selector entry widget's internal file
7392 * selector is to display folders only or the directory contents,
7395 * @param obj The file selector entry widget
7396 * @param only @c EINA_TRUE to make @p obj widget's internal file
7397 * selector only display directories, @c EINA_FALSE to make files
7398 * to be displayed in it too
7400 * This has the same effect as elm_fileselector_folder_only_set(),
7401 * but now applied to a file selector entry's internal file
7404 * @see elm_fileselector_folder_only_get()
7406 EAPI void elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7409 * Get whether a given file selector entry widget's internal file
7410 * selector is displaying folders only or the directory contents,
7413 * @param obj The file selector entry widget
7414 * @return @c EINA_TRUE if @p obj widget's internal file
7415 * selector is only displaying directories, @c EINA_FALSE if files
7416 * are being displayed in it too (and on errors)
7418 * @see elm_fileselector_entry_folder_only_set() for more details
7420 EAPI Eina_Bool elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7423 * Enable/disable the file name entry box where the user can type
7424 * in a name for a file, in a given file selector entry widget's
7425 * internal file selector.
7427 * @param obj The file selector entry widget
7428 * @param is_save @c EINA_TRUE to make @p obj widget's internal
7429 * file selector a "saving dialog", @c EINA_FALSE otherwise
7431 * This has the same effect as elm_fileselector_is_save_set(),
7432 * but now applied to a file selector entry's internal file
7435 * @see elm_fileselector_is_save_get()
7437 EAPI void elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7440 * Get whether the given file selector entry widget's internal
7441 * file selector is in "saving dialog" mode
7443 * @param obj The file selector entry widget
7444 * @return @c EINA_TRUE, if @p obj widget's internal file selector
7445 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
7448 * @see elm_fileselector_entry_is_save_set() for more details
7450 EAPI Eina_Bool elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7453 * Set whether a given file selector entry widget's internal file
7454 * selector will raise an Elementary "inner window", instead of a
7455 * dedicated Elementary window. By default, it won't.
7457 * @param obj The file selector entry widget
7458 * @param value @c EINA_TRUE to make it use an inner window, @c
7459 * EINA_TRUE to make it use a dedicated window
7461 * @see elm_win_inwin_add() for more information on inner windows
7462 * @see elm_fileselector_entry_inwin_mode_get()
7464 EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
7467 * Get whether a given file selector entry widget's internal file
7468 * selector will raise an Elementary "inner window", instead of a
7469 * dedicated Elementary window.
7471 * @param obj The file selector entry widget
7472 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
7473 * if it will use a dedicated window
7475 * @see elm_fileselector_entry_inwin_mode_set() for more details
7477 EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7480 * Set the initial file system path for a given file selector entry
7483 * @param obj The file selector entry widget
7484 * @param path The path string
7486 * It must be a <b>directory</b> path, which will have the contents
7487 * displayed initially in the file selector's view, when invoked
7488 * from @p obj. The default initial path is the @c "HOME"
7489 * environment variable's value.
7491 * @see elm_fileselector_entry_path_get()
7493 EAPI void elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
7496 * Get the parent directory's path to the latest file selection on
7497 * a given filer selector entry widget
7499 * @param obj The file selector object
7500 * @return The (full) path of the directory of the last selection
7501 * on @p obj widget, a @b stringshared string
7503 * @see elm_fileselector_entry_path_set()
7505 EAPI const char *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7512 * @defgroup Scroller Scroller
7514 * A scroller holds a single object and "scrolls it around". This means that
7515 * it allows the user to use a scrollbar (or a finger) to drag the viewable
7516 * region around, allowing to move through a much larger object that is
7517 * contained in the scroller. The scroller will always have a small minimum
7518 * size by default as it won't be limited by the contents of the scroller.
7520 * Signals that you can add callbacks for are:
7521 * @li "edge,left" - the left edge of the content has been reached
7522 * @li "edge,right" - the right edge of the content has been reached
7523 * @li "edge,top" - the top edge of the content has been reached
7524 * @li "edge,bottom" - the bottom edge of the content has been reached
7525 * @li "scroll" - the content has been scrolled (moved)
7526 * @li "scroll,anim,start" - scrolling animation has started
7527 * @li "scroll,anim,stop" - scrolling animation has stopped
7528 * @li "scroll,drag,start" - dragging the contents around has started
7529 * @li "scroll,drag,stop" - dragging the contents around has stopped
7530 * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
7533 * @note When Elemementary is in embedded mode the scrollbars will not be
7534 * dragable, they appear merely as indicators of how much has been scrolled.
7535 * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
7536 * fingerscroll) won't work.
7538 * Default contents parts of the scroller widget that you can use for are:
7539 * @li "default" - A content of the scroller
7541 * In @ref tutorial_scroller you'll find an example of how to use most of
7547 * @brief Type that controls when scrollbars should appear.
7549 * @see elm_scroller_policy_set()
7551 typedef enum _Elm_Scroller_Policy
7553 ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
7554 ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
7555 ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
7556 ELM_SCROLLER_POLICY_LAST
7557 } Elm_Scroller_Policy;
7560 * @brief Add a new scroller to the parent
7562 * @param parent The parent object
7563 * @return The new object or NULL if it cannot be created
7565 EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7568 * @brief Set the content of the scroller widget (the object to be scrolled around).
7570 * @param obj The scroller object
7571 * @param content The new content object
7573 * Once the content object is set, a previously set one will be deleted.
7574 * If you want to keep that old content object, use the
7575 * elm_scroller_content_unset() function.
7576 * @deprecated use elm_object_content_set() instead
7578 EINA_DEPRECATED EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
7581 * @brief Get the content of the scroller widget
7583 * @param obj The slider object
7584 * @return The content that is being used
7586 * Return the content object which is set for this widget
7588 * @see elm_scroller_content_set()
7589 * @deprecated use elm_object_content_get() instead.
7591 EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7594 * @brief Unset the content of the scroller widget
7596 * @param obj The slider object
7597 * @return The content that was being used
7599 * Unparent and return the content object which was set for this widget
7601 * @see elm_scroller_content_set()
7602 * @deprecated use elm_object_content_unset() instead.
7604 EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7607 * @brief Set custom theme elements for the scroller
7609 * @param obj The scroller object
7610 * @param widget The widget name to use (default is "scroller")
7611 * @param base The base name to use (default is "base")
7613 EAPI void elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
7616 * @brief Make the scroller minimum size limited to the minimum size of the content
7618 * @param obj The scroller object
7619 * @param w Enable limiting minimum size horizontally
7620 * @param h Enable limiting minimum size vertically
7622 * By default the scroller will be as small as its design allows,
7623 * irrespective of its content. This will make the scroller minimum size the
7624 * right size horizontally and/or vertically to perfectly fit its content in
7627 EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
7630 * @brief Show a specific virtual region within the scroller content object
7632 * @param obj The scroller object
7633 * @param x X coordinate of the region
7634 * @param y Y coordinate of the region
7635 * @param w Width of the region
7636 * @param h Height of the region
7638 * This will ensure all (or part if it does not fit) of the designated
7639 * region in the virtual content object (0, 0 starting at the top-left of the
7640 * virtual content object) is shown within the scroller.
7642 EAPI void elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7645 * @brief Set the scrollbar visibility policy
7647 * @param obj The scroller object
7648 * @param policy_h Horizontal scrollbar policy
7649 * @param policy_v Vertical scrollbar policy
7651 * This sets the scrollbar visibility policy for the given scroller.
7652 * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7653 * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7654 * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7655 * respectively for the horizontal and vertical scrollbars.
7657 EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7660 * @brief Gets scrollbar visibility policy
7662 * @param obj The scroller object
7663 * @param policy_h Horizontal scrollbar policy
7664 * @param policy_v Vertical scrollbar policy
7666 * @see elm_scroller_policy_set()
7668 EAPI void elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7671 * @brief Get the currently visible content region
7673 * @param obj The scroller object
7674 * @param x X coordinate of the region
7675 * @param y Y coordinate of the region
7676 * @param w Width of the region
7677 * @param h Height of the region
7679 * This gets the current region in the content object that is visible through
7680 * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7681 * w, @p h values pointed to.
7683 * @note All coordinates are relative to the content.
7685 * @see elm_scroller_region_show()
7687 EAPI void elm_scroller_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7690 * @brief Get the size of the content object
7692 * @param obj The scroller object
7693 * @param w Width of the content object.
7694 * @param h Height of the content object.
7696 * This gets the size of the content object of the scroller.
7698 EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7701 * @brief Set bouncing behavior
7703 * @param obj The scroller object
7704 * @param h_bounce Allow bounce horizontally
7705 * @param v_bounce Allow bounce vertically
7707 * When scrolling, the scroller may "bounce" when reaching an edge of the
7708 * content object. This is a visual way to indicate the end has been reached.
7709 * This is enabled by default for both axis. This API will set if it is enabled
7710 * for the given axis with the boolean parameters for each axis.
7712 EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7715 * @brief Get the bounce behaviour
7717 * @param obj The Scroller object
7718 * @param h_bounce Will the scroller bounce horizontally or not
7719 * @param v_bounce Will the scroller bounce vertically or not
7721 * @see elm_scroller_bounce_set()
7723 EAPI void elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7726 * @brief Set scroll page size relative to viewport size.
7728 * @param obj The scroller object
7729 * @param h_pagerel The horizontal page relative size
7730 * @param v_pagerel The vertical page relative size
7732 * The scroller is capable of limiting scrolling by the user to "pages". That
7733 * is to jump by and only show a "whole page" at a time as if the continuous
7734 * area of the scroller content is split into page sized pieces. This sets
7735 * the size of a page relative to the viewport of the scroller. 1.0 is "1
7736 * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7737 * axis. This is mutually exclusive with page size
7738 * (see elm_scroller_page_size_set() for more information). Likewise 0.5
7739 * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7740 * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7743 EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7746 * @brief Set scroll page size.
7748 * @param obj The scroller object
7749 * @param h_pagesize The horizontal page size
7750 * @param v_pagesize The vertical page size
7752 * This sets the page size to an absolute fixed value, with 0 turning it off
7755 * @see elm_scroller_page_relative_set()
7757 EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7760 * @brief Get scroll current page number.
7762 * @param obj The scroller object
7763 * @param h_pagenumber The horizontal page number
7764 * @param v_pagenumber The vertical page number
7766 * The page number starts from 0. 0 is the first page.
7767 * Current page means the page which meets the top-left of the viewport.
7768 * If there are two or more pages in the viewport, it returns the number of the page
7769 * which meets the top-left of the viewport.
7771 * @see elm_scroller_last_page_get()
7772 * @see elm_scroller_page_show()
7773 * @see elm_scroller_page_brint_in()
7775 EAPI void elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7778 * @brief Get scroll last page number.
7780 * @param obj The scroller object
7781 * @param h_pagenumber The horizontal page number
7782 * @param v_pagenumber The vertical page number
7784 * The page number starts from 0. 0 is the first page.
7785 * This returns the last page number among the pages.
7787 * @see elm_scroller_current_page_get()
7788 * @see elm_scroller_page_show()
7789 * @see elm_scroller_page_brint_in()
7791 EAPI void elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7794 * Show a specific virtual region within the scroller content object by page number.
7796 * @param obj The scroller object
7797 * @param h_pagenumber The horizontal page number
7798 * @param v_pagenumber The vertical page number
7800 * 0, 0 of the indicated page is located at the top-left of the viewport.
7801 * This will jump to the page directly without animation.
7806 * sc = elm_scroller_add(win);
7807 * elm_scroller_content_set(sc, content);
7808 * elm_scroller_page_relative_set(sc, 1, 0);
7809 * elm_scroller_current_page_get(sc, &h_page, &v_page);
7810 * elm_scroller_page_show(sc, h_page + 1, v_page);
7813 * @see elm_scroller_page_bring_in()
7815 EAPI void elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7818 * Show a specific virtual region within the scroller content object by page number.
7820 * @param obj The scroller object
7821 * @param h_pagenumber The horizontal page number
7822 * @param v_pagenumber The vertical page number
7824 * 0, 0 of the indicated page is located at the top-left of the viewport.
7825 * This will slide to the page with animation.
7830 * sc = elm_scroller_add(win);
7831 * elm_scroller_content_set(sc, content);
7832 * elm_scroller_page_relative_set(sc, 1, 0);
7833 * elm_scroller_last_page_get(sc, &h_page, &v_page);
7834 * elm_scroller_page_bring_in(sc, h_page, v_page);
7837 * @see elm_scroller_page_show()
7839 EAPI void elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7842 * @brief Show a specific virtual region within the scroller content object.
7844 * @param obj The scroller object
7845 * @param x X coordinate of the region
7846 * @param y Y coordinate of the region
7847 * @param w Width of the region
7848 * @param h Height of the region
7850 * This will ensure all (or part if it does not fit) of the designated
7851 * region in the virtual content object (0, 0 starting at the top-left of the
7852 * virtual content object) is shown within the scroller. Unlike
7853 * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7854 * to this location (if configuration in general calls for transitions). It
7855 * may not jump immediately to the new location and make take a while and
7856 * show other content along the way.
7858 * @see elm_scroller_region_show()
7860 EAPI void elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7863 * @brief Set event propagation on a scroller
7865 * @param obj The scroller object
7866 * @param propagation If propagation is enabled or not
7868 * This enables or disabled event propagation from the scroller content to
7869 * the scroller and its parent. By default event propagation is disabled.
7871 EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7874 * @brief Get event propagation for a scroller
7876 * @param obj The scroller object
7877 * @return The propagation state
7879 * This gets the event propagation for a scroller.
7881 * @see elm_scroller_propagate_events_set()
7883 EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7886 * @brief Set scrolling gravity on a scroller
7888 * @param obj The scroller object
7889 * @param x The scrolling horizontal gravity
7890 * @param y The scrolling vertical gravity
7892 * The gravity, defines how the scroller will adjust its view
7893 * when the size of the scroller contents increase.
7895 * The scroller will adjust the view to glue itself as follows.
7897 * x=0.0, for showing the left most region of the content.
7898 * x=1.0, for showing the right most region of the content.
7899 * y=0.0, for showing the bottom most region of the content.
7900 * y=1.0, for showing the top most region of the content.
7902 * Default values for x and y are 0.0
7904 EAPI void elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7907 * @brief Get scrolling gravity values for a scroller
7909 * @param obj The scroller object
7910 * @param x The scrolling horizontal gravity
7911 * @param y The scrolling vertical gravity
7913 * This gets gravity values for a scroller.
7915 * @see elm_scroller_gravity_set()
7918 EAPI void elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7925 * @defgroup Label Label
7927 * @image html img/widget/label/preview-00.png
7928 * @image latex img/widget/label/preview-00.eps
7930 * @brief Widget to display text, with simple html-like markup.
7932 * The Label widget @b doesn't allow text to overflow its boundaries, if the
7933 * text doesn't fit the geometry of the label it will be ellipsized or be
7934 * cut. Elementary provides several styles for this widget:
7935 * @li default - No animation
7936 * @li marker - Centers the text in the label and make it bold by default
7937 * @li slide_long - The entire text appears from the right of the screen and
7938 * slides until it disappears in the left of the screen(reappering on the
7940 * @li slide_short - The text appears in the left of the label and slides to
7941 * the right to show the overflow. When all of the text has been shown the
7942 * position is reset.
7943 * @li slide_bounce - The text appears in the left of the label and slides to
7944 * the right to show the overflow. When all of the text has been shown the
7945 * animation reverses, moving the text to the left.
7947 * Custom themes can of course invent new markup tags and style them any way
7950 * The following signals may be emitted by the label widget:
7951 * @li "language,changed": The program's language changed.
7953 * See @ref tutorial_label for a demonstration of how to use a label widget.
7958 * @brief Add a new label to the parent
7960 * @param parent The parent object
7961 * @return The new object or NULL if it cannot be created
7963 EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7966 * @brief Set the label on the label object
7968 * @param obj The label object
7969 * @param label The label will be used on the label object
7970 * @deprecated See elm_object_text_set()
7972 EINA_DEPRECATED EAPI void elm_label_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7975 * @brief Get the label used on the label object
7977 * @param obj The label object
7978 * @return The string inside the label
7979 * @deprecated See elm_object_text_get()
7981 EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7984 * @brief Set the wrapping behavior of the label
7986 * @param obj The label object
7987 * @param wrap To wrap text or not
7989 * By default no wrapping is done. Possible values for @p wrap are:
7990 * @li ELM_WRAP_NONE - No wrapping
7991 * @li ELM_WRAP_CHAR - wrap between characters
7992 * @li ELM_WRAP_WORD - wrap between words
7993 * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7995 EAPI void elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7998 * @brief Get the wrapping behavior of the label
8000 * @param obj The label object
8003 * @see elm_label_line_wrap_set()
8005 EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8008 * @brief Set wrap width of the label
8010 * @param obj The label object
8011 * @param w The wrap width in pixels at a minimum where words need to wrap
8013 * This function sets the maximum width size hint of the label.
8015 * @warning This is only relevant if the label is inside a container.
8017 EAPI void elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
8020 * @brief Get wrap width of the label
8022 * @param obj The label object
8023 * @return The wrap width in pixels at a minimum where words need to wrap
8025 * @see elm_label_wrap_width_set()
8027 EAPI Evas_Coord elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8030 * @brief Set wrap height of the label
8032 * @param obj The label object
8033 * @param h The wrap height in pixels at a minimum where words need to wrap
8035 * This function sets the maximum height size hint of the label.
8037 * @warning This is only relevant if the label is inside a container.
8039 EAPI void elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
8042 * @brief get wrap width of the label
8044 * @param obj The label object
8045 * @return The wrap height in pixels at a minimum where words need to wrap
8047 EAPI Evas_Coord elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8050 * @brief Set the font size on the label object.
8052 * @param obj The label object
8053 * @param size font size
8055 * @warning NEVER use this. It is for hyper-special cases only. use styles
8056 * instead. e.g. "default", "marker", "slide_long" etc.
8058 EAPI void elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
8061 * @brief Set the text color on the label object
8063 * @param obj The label object
8064 * @param r Red property background color of The label object
8065 * @param g Green property background color of The label object
8066 * @param b Blue property background color of The label object
8067 * @param a Alpha property background color of The label object
8069 * @warning NEVER use this. It is for hyper-special cases only. use styles
8070 * instead. e.g. "default", "marker", "slide_long" etc.
8072 EAPI void elm_label_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a) EINA_ARG_NONNULL(1);
8075 * @brief Set the text align on the label object
8077 * @param obj The label object
8078 * @param align align mode ("left", "center", "right")
8080 * @warning NEVER use this. It is for hyper-special cases only. use styles
8081 * instead. e.g. "default", "marker", "slide_long" etc.
8083 EAPI void elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
8086 * @brief Set background color of the label
8088 * @param obj The label object
8089 * @param r Red property background color of The label object
8090 * @param g Green property background color of The label object
8091 * @param b Blue property background color of The label object
8092 * @param a Alpha property background alpha of The label object
8094 * @warning NEVER use this. It is for hyper-special cases only. use styles
8095 * instead. e.g. "default", "marker", "slide_long" etc.
8097 EAPI void elm_label_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a) EINA_ARG_NONNULL(1);
8100 * @brief Set the ellipsis behavior of the label
8102 * @param obj The label object
8103 * @param ellipsis To ellipsis text or not
8105 * If set to true and the text doesn't fit in the label an ellipsis("...")
8106 * will be shown at the end of the widget.
8108 * @warning This doesn't work with slide(elm_label_slide_set()) or if the
8109 * choosen wrap method was ELM_WRAP_WORD.
8111 EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
8114 * @brief Set the text slide of the label
8116 * @param obj The label object
8117 * @param slide To start slide or stop
8119 * If set to true, the text of the label will slide/scroll through the length of
8122 * @warning This only works with the themes "slide_short", "slide_long" and
8125 EAPI void elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
8128 * @brief Get the text slide mode of the label
8130 * @param obj The label object
8131 * @return slide slide mode value
8133 * @see elm_label_slide_set()
8135 EAPI Eina_Bool elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
8138 * @brief Set the slide duration(speed) of the label
8140 * @param obj The label object
8141 * @return The duration in seconds in moving text from slide begin position
8142 * to slide end position
8144 EAPI void elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
8147 * @brief Get the slide duration(speed) of the label
8149 * @param obj The label object
8150 * @return The duration time in moving text from slide begin position to slide end position
8152 * @see elm_label_slide_duration_set()
8154 EAPI double elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
8161 * @defgroup Toggle Toggle
8163 * @image html img/widget/toggle/preview-00.png
8164 * @image latex img/widget/toggle/preview-00.eps
8166 * @brief A toggle is a slider which can be used to toggle between
8167 * two values. It has two states: on and off.
8169 * This widget is deprecated. Please use elm_check_add() instead using the
8170 * toggle style like:
8173 * obj = elm_check_add(parent);
8174 * elm_object_style_set(obj, "toggle");
8175 * elm_object_part_text_set(obj, "on", "ON");
8176 * elm_object_part_text_set(obj, "off", "OFF");
8179 * Signals that you can add callbacks for are:
8180 * @li "changed" - Whenever the toggle value has been changed. Is not called
8181 * until the toggle is released by the cursor (assuming it
8182 * has been triggered by the cursor in the first place).
8184 * Default contents parts of the toggle widget that you can use for are:
8185 * @li "icon" - An icon of the toggle
8187 * Default text parts of the toggle widget that you can use for are:
8188 * @li "elm.text" - Label of the toggle
8190 * @ref tutorial_toggle show how to use a toggle.
8195 * @brief Add a toggle to @p parent.
8197 * @param parent The parent object
8199 * @return The toggle object
8201 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8204 * @brief Sets the label to be displayed with the toggle.
8206 * @param obj The toggle object
8207 * @param label The label to be displayed
8209 * @deprecated use elm_object_text_set() instead.
8211 EINA_DEPRECATED EAPI void elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
8214 * @brief Gets the label of the toggle
8216 * @param obj toggle object
8217 * @return The label of the toggle
8219 * @deprecated use elm_object_text_get() instead.
8221 EINA_DEPRECATED EAPI const char *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8224 * @brief Set the icon used for the toggle
8226 * @param obj The toggle object
8227 * @param icon The icon object for the button
8229 * Once the icon object is set, a previously set one will be deleted
8230 * If you want to keep that old content object, use the
8231 * elm_toggle_icon_unset() function.
8233 * @deprecated use elm_object_part_content_set() instead.
8235 EINA_DEPRECATED EAPI void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
8238 * @brief Get the icon used for the toggle
8240 * @param obj The toggle object
8241 * @return The icon object that is being used
8243 * Return the icon object which is set for this widget.
8245 * @see elm_toggle_icon_set()
8247 * @deprecated use elm_object_part_content_get() instead.
8249 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8252 * @brief Unset the icon used for the toggle
8254 * @param obj The toggle object
8255 * @return The icon object that was being used
8257 * Unparent and return the icon object which was set for this widget.
8259 * @see elm_toggle_icon_set()
8261 * @deprecated use elm_object_part_content_unset() instead.
8263 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
8266 * @brief Sets the labels to be associated with the on and off states of the toggle.
8268 * @param obj The toggle object
8269 * @param onlabel The label displayed when the toggle is in the "on" state
8270 * @param offlabel The label displayed when the toggle is in the "off" state
8272 * @deprecated use elm_object_part_text_set() for "on" and "off" parts
8275 EINA_DEPRECATED EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
8278 * @brief Gets the labels associated with the on and off states of the
8281 * @param obj The toggle object
8282 * @param onlabel A char** to place the onlabel of @p obj into
8283 * @param offlabel A char** to place the offlabel of @p obj into
8285 * @deprecated use elm_object_part_text_get() for "on" and "off" parts
8288 EINA_DEPRECATED EAPI void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
8291 * @brief Sets the state of the toggle to @p state.
8293 * @param obj The toggle object
8294 * @param state The state of @p obj
8296 * @deprecated use elm_check_state_set() instead.
8298 EINA_DEPRECATED EAPI void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
8301 * @brief Gets the state of the toggle to @p state.
8303 * @param obj The toggle object
8304 * @return The state of @p obj
8306 * @deprecated use elm_check_state_get() instead.
8308 EINA_DEPRECATED EAPI Eina_Bool elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8311 * @brief Sets the state pointer of the toggle to @p statep.
8313 * @param obj The toggle object
8314 * @param statep The state pointer of @p obj
8316 * @deprecated use elm_check_state_pointer_set() instead.
8318 EINA_DEPRECATED EAPI void elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
8325 * @defgroup Frame Frame
8327 * @image html img/widget/frame/preview-00.png
8328 * @image latex img/widget/frame/preview-00.eps
8330 * @brief Frame is a widget that holds some content and has a title.
8332 * The default look is a frame with a title, but Frame supports multple
8340 * @li outdent_bottom
8342 * Of all this styles only default shows the title. Frame emits no signals.
8344 * Default contents parts of the frame widget that you can use for are:
8345 * @li "default" - A content of the frame
8347 * Default text parts of the frame widget that you can use for are:
8348 * @li "elm.text" - Label of the frame
8350 * For a detailed example see the @ref tutorial_frame.
8356 * @brief Add a new frame to the parent
8358 * @param parent The parent object
8359 * @return The new object or NULL if it cannot be created
8361 EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8364 * @brief Set the frame label
8366 * @param obj The frame object
8367 * @param label The label of this frame object
8369 * @deprecated use elm_object_text_set() instead.
8371 EINA_DEPRECATED EAPI void elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
8374 * @brief Get the frame label
8376 * @param obj The frame object
8378 * @return The label of this frame objet or NULL if unable to get frame
8380 * @deprecated use elm_object_text_get() instead.
8382 EINA_DEPRECATED EAPI const char *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8385 * @brief Set the content of the frame widget
8387 * Once the content object is set, a previously set one will be deleted.
8388 * If you want to keep that old content object, use the
8389 * elm_frame_content_unset() function.
8391 * @param obj The frame object
8392 * @param content The content will be filled in this frame object
8394 * @deprecated use elm_object_content_set() instead.
8396 EINA_DEPRECATED EAPI void elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
8399 * @brief Get the content of the frame widget
8401 * Return the content object which is set for this widget
8403 * @param obj The frame object
8404 * @return The content that is being used
8406 * @deprecated use elm_object_content_get() instead.
8408 EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8411 * @brief Unset the content of the frame widget
8413 * Unparent and return the content object which was set for this widget
8415 * @param obj The frame object
8416 * @return The content that was being used
8418 * @deprecated use elm_object_content_unset() instead.
8420 EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
8427 * @defgroup Table Table
8429 * A container widget to arrange other widgets in a table where items can
8430 * also span multiple columns or rows - even overlap (and then be raised or
8431 * lowered accordingly to adjust stacking if they do overlap).
8433 * For a Table widget the row/column count is not fixed.
8434 * The table widget adjusts itself when subobjects are added to it dynamically.
8436 * The followin are examples of how to use a table:
8437 * @li @ref tutorial_table_01
8438 * @li @ref tutorial_table_02
8444 * @brief Add a new table to the parent
8446 * @param parent The parent object
8447 * @return The new object or NULL if it cannot be created
8449 EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8452 * @brief Set the homogeneous layout in the table
8454 * @param obj The layout object
8455 * @param homogeneous A boolean to set if the layout is homogeneous in the
8456 * table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
8458 EAPI void elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
8461 * @brief Get the current table homogeneous mode.
8463 * @param obj The table object
8464 * @return A boolean to indicating if the layout is homogeneous in the table
8465 * (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
8467 EAPI Eina_Bool elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8470 * @brief Set padding between cells.
8472 * @param obj The layout object.
8473 * @param horizontal set the horizontal padding.
8474 * @param vertical set the vertical padding.
8476 * Default value is 0.
8478 EAPI void elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
8481 * @brief Get padding between cells.
8483 * @param obj The layout object.
8484 * @param horizontal set the horizontal padding.
8485 * @param vertical set the vertical padding.
8487 EAPI void elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
8490 * @brief Add a subobject on the table with the coordinates passed
8492 * @param obj The table object
8493 * @param subobj The subobject to be added to the table
8494 * @param x Row number
8495 * @param y Column number
8499 * @note All positioning inside the table is relative to rows and columns, so
8500 * a value of 0 for x and y, means the top left cell of the table, and a
8501 * value of 1 for w and h means @p subobj only takes that 1 cell.
8503 EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
8506 * @brief Remove child from table.
8508 * @param obj The table object
8509 * @param subobj The subobject
8511 EAPI void elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
8514 * @brief Faster way to remove all child objects from a table object.
8516 * @param obj The table object
8517 * @param clear If true, will delete children, else just remove from table.
8519 EAPI void elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
8522 * @brief Set the packing location of an existing child of the table
8524 * @param subobj The subobject to be modified in the table
8525 * @param x Row number
8526 * @param y Column number
8530 * Modifies the position of an object already in the table.
8532 * @note All positioning inside the table is relative to rows and columns, so
8533 * a value of 0 for x and y, means the top left cell of the table, and a
8534 * value of 1 for w and h means @p subobj only takes that 1 cell.
8536 EAPI void elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
8539 * @brief Get the packing location of an existing child of the table
8541 * @param subobj The subobject to be modified in the table
8542 * @param x Row number
8543 * @param y Column number
8547 * @see elm_table_pack_set()
8549 EAPI void elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
8555 /* TEMPORARY: DOCS WILL BE FILLED IN WITH CNP/SED */
8556 typedef struct Elm_Gen_Item Elm_Gen_Item;
8557 typedef struct _Elm_Gen_Item_Class Elm_Gen_Item_Class;
8558 typedef struct _Elm_Gen_Item_Class_Func Elm_Gen_Item_Class_Func; /**< Class functions for gen item classes. */
8559 typedef char *(*Elm_Gen_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gen item classes. */
8560 typedef Evas_Object *(*Elm_Gen_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Content(swallowed object) fetching class function for gen item classes. */
8561 typedef Eina_Bool (*Elm_Gen_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for gen item classes. */
8562 typedef void (*Elm_Gen_Item_Del_Cb) (void *data, Evas_Object *obj); /**< Deletion class function for gen item classes. */
8563 struct _Elm_Gen_Item_Class
8565 const char *item_style;
8566 struct _Elm_Gen_Item_Class_Func
8568 Elm_Gen_Item_Text_Get_Cb text_get;
8569 Elm_Gen_Item_Content_Get_Cb content_get;
8570 Elm_Gen_Item_State_Get_Cb state_get;
8571 Elm_Gen_Item_Del_Cb del;
8574 EINA_DEPRECATED EAPI void elm_gen_clear(Evas_Object *obj);
8575 EINA_DEPRECATED EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
8576 EINA_DEPRECATED EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
8577 EINA_DEPRECATED EAPI void elm_gen_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
8578 EINA_DEPRECATED EAPI Eina_Bool elm_gen_always_select_mode_get(const Evas_Object *obj);
8579 EINA_DEPRECATED EAPI void elm_gen_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
8580 EINA_DEPRECATED EAPI Eina_Bool elm_gen_no_select_mode_get(const Evas_Object *obj);
8581 EINA_DEPRECATED EAPI void elm_gen_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
8582 EINA_DEPRECATED EAPI void elm_gen_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
8583 EINA_DEPRECATED EAPI void elm_gen_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
8584 EINA_DEPRECATED EAPI void elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
8586 EINA_DEPRECATED EAPI void elm_gen_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
8587 EINA_DEPRECATED EAPI void elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8588 EINA_DEPRECATED EAPI void elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8589 EINA_DEPRECATED EAPI void elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8590 EINA_DEPRECATED EAPI void elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8591 EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_first_item_get(const Evas_Object *obj);
8592 EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_last_item_get(const Evas_Object *obj);
8593 EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_next_get(const Elm_Gen_Item *it);
8594 EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_prev_get(const Elm_Gen_Item *it);
8595 EINA_DEPRECATED EAPI Evas_Object *elm_gen_item_widget_get(const Elm_Gen_Item *it);
8598 * @defgroup Gengrid Gengrid (Generic grid)
8600 * This widget aims to position objects in a grid layout while
8601 * actually creating and rendering only the visible ones, using the
8602 * same idea as the @ref Genlist "genlist": the user defines a @b
8603 * class for each item, specifying functions that will be called at
8604 * object creation, deletion, etc. When those items are selected by
8605 * the user, a callback function is issued. Users may interact with
8606 * a gengrid via the mouse (by clicking on items to select them and
8607 * clicking on the grid's viewport and swiping to pan the whole
8608 * view) or via the keyboard, navigating through item with the
8611 * @section Gengrid_Layouts Gengrid layouts
8613 * Gengrid may layout its items in one of two possible layouts:
8617 * When in "horizontal mode", items will be placed in @b columns,
8618 * from top to bottom and, when the space for a column is filled,
8619 * another one is started on the right, thus expanding the grid
8620 * horizontally, making for horizontal scrolling. When in "vertical
8621 * mode" , though, items will be placed in @b rows, from left to
8622 * right and, when the space for a row is filled, another one is
8623 * started below, thus expanding the grid vertically (and making
8624 * for vertical scrolling).
8626 * @section Gengrid_Items Gengrid items
8628 * An item in a gengrid can have 0 or more texts (they can be
8629 * regular text or textblock Evas objects - that's up to the style
8630 * to determine), 0 or more contents (which are simply objects
8631 * swallowed into the gengrid item's theming Edje object) and 0 or
8632 * more <b>boolean states</b>, which have the behavior left to the
8633 * user to define. The Edje part names for each of these properties
8634 * will be looked up, in the theme file for the gengrid, under the
8635 * Edje (string) data items named @c "texts", @c "contents" and @c
8636 * "states", respectively. For each of those properties, if more
8637 * than one part is provided, they must have names listed separated
8638 * by spaces in the data fields. For the default gengrid item
8639 * theme, we have @b one text part (@c "elm.text"), @b two content
8640 * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
8643 * A gengrid item may be at one of several styles. Elementary
8644 * provides one by default - "default", but this can be extended by
8645 * system or application custom themes/overlays/extensions (see
8646 * @ref Theme "themes" for more details).
8648 * @section Gengrid_Item_Class Gengrid item classes
8650 * In order to have the ability to add and delete items on the fly,
8651 * gengrid implements a class (callback) system where the
8652 * application provides a structure with information about that
8653 * type of item (gengrid may contain multiple different items with
8654 * different classes, states and styles). Gengrid will call the
8655 * functions in this struct (methods) when an item is "realized"
8656 * (i.e., created dynamically, while the user is scrolling the
8657 * grid). All objects will simply be deleted when no longer needed
8658 * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
8659 * contains the following members:
8660 * - @c item_style - This is a constant string and simply defines
8661 * the name of the item style. It @b must be specified and the
8662 * default should be @c "default".
8663 * - @c func.text_get - This function is called when an item
8664 * object is actually created. The @c data parameter will point to
8665 * the same data passed to elm_gengrid_item_append() and related
8666 * item creation functions. The @c obj parameter is the gengrid
8667 * object itself, while the @c part one is the name string of one
8668 * of the existing text parts in the Edje group implementing the
8669 * item's theme. This function @b must return a strdup'()ed string,
8670 * as the caller will free() it when done. See
8671 * #Elm_Gengrid_Item_Text_Get_Cb.
8672 * - @c func.content_get - This function is called when an item object
8673 * is actually created. The @c data parameter will point to the
8674 * same data passed to elm_gengrid_item_append() and related item
8675 * creation functions. The @c obj parameter is the gengrid object
8676 * itself, while the @c part one is the name string of one of the
8677 * existing (content) swallow parts in the Edje group implementing the
8678 * item's theme. It must return @c NULL, when no content is desired,
8679 * or a valid object handle, otherwise. The object will be deleted
8680 * by the gengrid on its deletion or when the item is "unrealized".
8681 * See #Elm_Gengrid_Item_Content_Get_Cb.
8682 * - @c func.state_get - This function is called when an item
8683 * object is actually created. The @c data parameter will point to
8684 * the same data passed to elm_gengrid_item_append() and related
8685 * item creation functions. The @c obj parameter is the gengrid
8686 * object itself, while the @c part one is the name string of one
8687 * of the state parts in the Edje group implementing the item's
8688 * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
8689 * true/on. Gengrids will emit a signal to its theming Edje object
8690 * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
8691 * "source" arguments, respectively, when the state is true (the
8692 * default is false), where @c XXX is the name of the (state) part.
8693 * See #Elm_Gengrid_Item_State_Get_Cb.
8694 * - @c func.del - This is called when elm_gengrid_item_del() is
8695 * called on an item or elm_gengrid_clear() is called on the
8696 * gengrid. This is intended for use when gengrid items are
8697 * deleted, so any data attached to the item (e.g. its data
8698 * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
8700 * @section Gengrid_Usage_Hints Usage hints
8702 * If the user wants to have multiple items selected at the same
8703 * time, elm_gengrid_multi_select_set() will permit it. If the
8704 * gengrid is single-selection only (the default), then
8705 * elm_gengrid_select_item_get() will return the selected item or
8706 * @c NULL, if none is selected. If the gengrid is under
8707 * multi-selection, then elm_gengrid_selected_items_get() will
8708 * return a list (that is only valid as long as no items are
8709 * modified (added, deleted, selected or unselected) of child items
8712 * If an item changes (internal (boolean) state, text or content
8713 * changes), then use elm_gengrid_item_update() to have gengrid
8714 * update the item with the new state. A gengrid will re-"realize"
8715 * the item, thus calling the functions in the
8716 * #Elm_Gengrid_Item_Class set for that item.
8718 * To programmatically (un)select an item, use
8719 * elm_gengrid_item_selected_set(). To get its selected state use
8720 * elm_gengrid_item_selected_get(). To make an item disabled
8721 * (unable to be selected and appear differently) use
8722 * elm_gengrid_item_disabled_set() to set this and
8723 * elm_gengrid_item_disabled_get() to get the disabled state.
8725 * Grid cells will only have their selection smart callbacks called
8726 * when firstly getting selected. Any further clicks will do
8727 * nothing, unless you enable the "always select mode", with
8728 * elm_gengrid_always_select_mode_set(), thus making every click to
8729 * issue selection callbacks. elm_gengrid_no_select_mode_set() will
8730 * turn off the ability to select items entirely in the widget and
8731 * they will neither appear selected nor call the selection smart
8734 * Remember that you can create new styles and add your own theme
8735 * augmentation per application with elm_theme_extension_add(). If
8736 * you absolutely must have a specific style that overrides any
8737 * theme the user or system sets up you can use
8738 * elm_theme_overlay_add() to add such a file.
8740 * @section Gengrid_Smart_Events Gengrid smart events
8742 * Smart events that you can add callbacks for are:
8743 * - @c "activated" - The user has double-clicked or pressed
8744 * (enter|return|spacebar) on an item. The @c event_info parameter
8745 * is the gengrid item that was activated.
8746 * - @c "clicked,double" - The user has double-clicked an item.
8747 * The @c event_info parameter is the gengrid item that was double-clicked.
8748 * - @c "longpressed" - This is called when the item is pressed for a certain
8749 * amount of time. By default it's 1 second.
8750 * - @c "selected" - The user has made an item selected. The
8751 * @c event_info parameter is the gengrid item that was selected.
8752 * - @c "unselected" - The user has made an item unselected. The
8753 * @c event_info parameter is the gengrid item that was unselected.
8754 * - @c "realized" - This is called when the item in the gengrid
8755 * has its implementing Evas object instantiated, de facto. @c
8756 * event_info is the gengrid item that was created. The object
8757 * may be deleted at any time, so it is highly advised to the
8758 * caller @b not to use the object pointer returned from
8759 * elm_gengrid_item_object_get(), because it may point to freed
8761 * - @c "unrealized" - This is called when the implementing Evas
8762 * object for this item is deleted. @c event_info is the gengrid
8763 * item that was deleted.
8764 * - @c "changed" - Called when an item is added, removed, resized
8765 * or moved and when the gengrid is resized or gets "horizontal"
8767 * - @c "scroll,anim,start" - This is called when scrolling animation has
8769 * - @c "scroll,anim,stop" - This is called when scrolling animation has
8771 * - @c "drag,start,up" - Called when the item in the gengrid has
8772 * been dragged (not scrolled) up.
8773 * - @c "drag,start,down" - Called when the item in the gengrid has
8774 * been dragged (not scrolled) down.
8775 * - @c "drag,start,left" - Called when the item in the gengrid has
8776 * been dragged (not scrolled) left.
8777 * - @c "drag,start,right" - Called when the item in the gengrid has
8778 * been dragged (not scrolled) right.
8779 * - @c "drag,stop" - Called when the item in the gengrid has
8780 * stopped being dragged.
8781 * - @c "drag" - Called when the item in the gengrid is being
8783 * - @c "scroll" - called when the content has been scrolled
8785 * - @c "scroll,drag,start" - called when dragging the content has
8787 * - @c "scroll,drag,stop" - called when dragging the content has
8789 * - @c "edge,top" - This is called when the gengrid is scrolled until
8791 * - @c "edge,bottom" - This is called when the gengrid is scrolled
8792 * until the bottom edge.
8793 * - @c "edge,left" - This is called when the gengrid is scrolled
8794 * until the left edge.
8795 * - @c "edge,right" - This is called when the gengrid is scrolled
8796 * until the right edge.
8798 * List of gengrid examples:
8799 * @li @ref gengrid_example
8803 * @addtogroup Gengrid
8807 typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8808 #define Elm_Gengrid_Item_Class Elm_Gen_Item_Class
8809 typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8810 #define Elm_Gengrid_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
8811 typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8814 * Text fetching class function for Elm_Gen_Item_Class.
8815 * @param data The data passed in the item creation function
8816 * @param obj The base widget object
8817 * @param part The part name of the swallow
8818 * @return The allocated (NOT stringshared) string to set as the text
8820 typedef char *(*Elm_Gengrid_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8823 * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
8824 * @param data The data passed in the item creation function
8825 * @param obj The base widget object
8826 * @param part The part name of the swallow
8827 * @return The content object to swallow
8829 typedef Evas_Object *(*Elm_Gengrid_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8832 * State fetching class function for Elm_Gen_Item_Class.
8833 * @param data The data passed in the item creation function
8834 * @param obj The base widget object
8835 * @param part The part name of the swallow
8836 * @return The hell if I know
8838 typedef Eina_Bool (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8841 * Deletion class function for Elm_Gen_Item_Class.
8842 * @param data The data passed in the item creation function
8843 * @param obj The base widget object
8845 typedef void (*Elm_Gengrid_Item_Del_Cb) (void *data, Evas_Object *obj);
8848 * @struct _Elm_Gengrid_Item_Class
8850 * Gengrid item class definition. See @ref Gengrid_Item_Class for
8853 struct _Elm_Gengrid_Item_Class
8855 const char *item_style;
8856 struct _Elm_Gengrid_Item_Class_Func
8858 Elm_Gengrid_Item_Text_Get_Cb text_get; /**< Text fetching class function for gengrid item classes.*/
8859 Elm_Gengrid_Item_Content_Get_Cb content_get; /**< Content fetching class function for gengrid item classes. */
8860 Elm_Gengrid_Item_State_Get_Cb state_get; /**< State fetching class function for gengrid item classes. */
8861 Elm_Gengrid_Item_Del_Cb del; /**< Deletion class function for gengrid item classes. */
8863 }; /**< #Elm_Gengrid_Item_Class member definitions */
8864 #define Elm_Gengrid_Item_Class_Func Elm_Gen_Item_Class_Func
8867 * Add a new gengrid widget to the given parent Elementary
8868 * (container) object
8870 * @param parent The parent object
8871 * @return a new gengrid widget handle or @c NULL, on errors
8873 * This function inserts a new gengrid widget on the canvas.
8875 * @see elm_gengrid_item_size_set()
8876 * @see elm_gengrid_group_item_size_set()
8877 * @see elm_gengrid_horizontal_set()
8878 * @see elm_gengrid_item_append()
8879 * @see elm_gengrid_item_del()
8880 * @see elm_gengrid_clear()
8884 EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8887 * Set the size for the items of a given gengrid widget
8889 * @param obj The gengrid object.
8890 * @param w The items' width.
8891 * @param h The items' height;
8893 * A gengrid, after creation, has still no information on the size
8894 * to give to each of its cells. So, you most probably will end up
8895 * with squares one @ref Fingers "finger" wide, the default
8896 * size. Use this function to force a custom size for you items,
8897 * making them as big as you wish.
8899 * @see elm_gengrid_item_size_get()
8903 EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8906 * Get the size set for the items of a given gengrid widget
8908 * @param obj The gengrid object.
8909 * @param w Pointer to a variable where to store the items' width.
8910 * @param h Pointer to a variable where to store the items' height.
8912 * @note Use @c NULL pointers on the size values you're not
8913 * interested in: they'll be ignored by the function.
8915 * @see elm_gengrid_item_size_get() for more details
8919 EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8922 * Set the size for the group items of a given gengrid widget
8924 * @param obj The gengrid object.
8925 * @param w The group items' width.
8926 * @param h The group items' height;
8928 * A gengrid, after creation, has still no information on the size
8929 * to give to each of its cells. So, you most probably will end up
8930 * with squares one @ref Fingers "finger" wide, the default
8931 * size. Use this function to force a custom size for you group items,
8932 * making them as big as you wish.
8934 * @see elm_gengrid_group_item_size_get()
8938 EAPI void elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8941 * Get the size set for the group items of a given gengrid widget
8943 * @param obj The gengrid object.
8944 * @param w Pointer to a variable where to store the group items' width.
8945 * @param h Pointer to a variable where to store the group items' height.
8947 * @note Use @c NULL pointers on the size values you're not
8948 * interested in: they'll be ignored by the function.
8950 * @see elm_gengrid_group_item_size_get() for more details
8954 EAPI void elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8957 * Set the items grid's alignment within a given gengrid widget
8959 * @param obj The gengrid object.
8960 * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8961 * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8963 * This sets the alignment of the whole grid of items of a gengrid
8964 * within its given viewport. By default, those values are both
8965 * 0.5, meaning that the gengrid will have its items grid placed
8966 * exactly in the middle of its viewport.
8968 * @note If given alignment values are out of the cited ranges,
8969 * they'll be changed to the nearest boundary values on the valid
8972 * @see elm_gengrid_align_get()
8976 EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8979 * Get the items grid's alignment values within a given gengrid
8982 * @param obj The gengrid object.
8983 * @param align_x Pointer to a variable where to store the
8984 * horizontal alignment.
8985 * @param align_y Pointer to a variable where to store the vertical
8988 * @note Use @c NULL pointers on the alignment values you're not
8989 * interested in: they'll be ignored by the function.
8991 * @see elm_gengrid_align_set() for more details
8995 EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8998 * Set whether a given gengrid widget is or not able have items
9001 * @param obj The gengrid object
9002 * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
9003 * @c EINA_FALSE to turn it off
9005 * If a gengrid is set to allow reordering, a click held for more
9006 * than 0.5 over a given item will highlight it specially,
9007 * signalling the gengrid has entered the reordering state. From
9008 * that time on, the user will be able to, while still holding the
9009 * mouse button down, move the item freely in the gengrid's
9010 * viewport, replacing to said item to the locations it goes to.
9011 * The replacements will be animated and, whenever the user
9012 * releases the mouse button, the item being replaced gets a new
9013 * definitive place in the grid.
9015 * @see elm_gengrid_reorder_mode_get()
9019 EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
9022 * Get whether a given gengrid widget is or not able have items
9025 * @param obj The gengrid object
9026 * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
9029 * @see elm_gengrid_reorder_mode_set() for more details
9033 EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9036 * Append a new item in a given gengrid widget.
9038 * @param obj The gengrid object.
9039 * @param gic The item class for the item.
9040 * @param data The item data.
9041 * @param func Convenience function called when the item is
9043 * @param func_data Data to be passed to @p func.
9044 * @return A handle to the item added or @c NULL, on errors.
9046 * This adds an item to the beginning of the gengrid.
9048 * @see elm_gengrid_item_prepend()
9049 * @see elm_gengrid_item_insert_before()
9050 * @see elm_gengrid_item_insert_after()
9051 * @see elm_gengrid_item_del()
9055 EAPI Elm_Gengrid_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
9058 * Prepend a new item in a given gengrid widget.
9060 * @param obj The gengrid object.
9061 * @param gic The item class for the item.
9062 * @param data The item data.
9063 * @param func Convenience function called when the item is
9065 * @param func_data Data to be passed to @p func.
9066 * @return A handle to the item added or @c NULL, on errors.
9068 * This adds an item to the end of the gengrid.
9070 * @see elm_gengrid_item_append()
9071 * @see elm_gengrid_item_insert_before()
9072 * @see elm_gengrid_item_insert_after()
9073 * @see elm_gengrid_item_del()
9077 EAPI Elm_Gengrid_Item *elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
9080 * Insert an item before another in a gengrid widget
9082 * @param obj The gengrid object.
9083 * @param gic The item class for the item.
9084 * @param data The item data.
9085 * @param relative The item to place this new one before.
9086 * @param func Convenience function called when the item is
9088 * @param func_data Data to be passed to @p func.
9089 * @return A handle to the item added or @c NULL, on errors.
9091 * This inserts an item before another in the gengrid.
9093 * @see elm_gengrid_item_append()
9094 * @see elm_gengrid_item_prepend()
9095 * @see elm_gengrid_item_insert_after()
9096 * @see elm_gengrid_item_del()
9100 EAPI Elm_Gengrid_Item *elm_gengrid_item_insert_before(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Gengrid_Item *relative, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
9103 * Insert an item after another in a gengrid widget
9105 * @param obj The gengrid object.
9106 * @param gic The item class for the item.
9107 * @param data The item data.
9108 * @param relative The item to place this new one after.
9109 * @param func Convenience function called when the item is
9111 * @param func_data Data to be passed to @p func.
9112 * @return A handle to the item added or @c NULL, on errors.
9114 * This inserts an item after another in the gengrid.
9116 * @see elm_gengrid_item_append()
9117 * @see elm_gengrid_item_prepend()
9118 * @see elm_gengrid_item_insert_after()
9119 * @see elm_gengrid_item_del()
9123 EAPI Elm_Gengrid_Item *elm_gengrid_item_insert_after(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Gengrid_Item *relative, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
9126 * Insert an item in a gengrid widget using a user-defined sort function.
9128 * @param obj The gengrid object.
9129 * @param gic The item class for the item.
9130 * @param data The item data.
9131 * @param comp User defined comparison function that defines the sort order based on
9132 * Elm_Gen_Item and its data param.
9133 * @param func Convenience function called when the item is selected.
9134 * @param func_data Data to be passed to @p func.
9135 * @return A handle to the item added or @c NULL, on errors.
9137 * This inserts an item in the gengrid based on user defined comparison function.
9139 * @see elm_gengrid_item_append()
9140 * @see elm_gengrid_item_prepend()
9141 * @see elm_gengrid_item_insert_after()
9142 * @see elm_gengrid_item_del()
9143 * @see elm_gengrid_item_direct_sorted_insert()
9147 EAPI Elm_Gengrid_Item *elm_gengrid_item_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
9150 * Insert an item in a gengrid widget using a user-defined sort function.
9152 * @param obj The gengrid object.
9153 * @param gic The item class for the item.
9154 * @param data The item data.
9155 * @param comp User defined comparison function that defines the sort order based on
9157 * @param func Convenience function called when the item is selected.
9158 * @param func_data Data to be passed to @p func.
9159 * @return A handle to the item added or @c NULL, on errors.
9161 * This inserts an item in the gengrid based on user defined comparison function.
9163 * @see elm_gengrid_item_append()
9164 * @see elm_gengrid_item_prepend()
9165 * @see elm_gengrid_item_insert_after()
9166 * @see elm_gengrid_item_del()
9167 * @see elm_gengrid_item_sorted_insert()
9171 EAPI Elm_Gengrid_Item *elm_gengrid_item_direct_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
9174 * Set whether items on a given gengrid widget are to get their
9175 * selection callbacks issued for @b every subsequent selection
9176 * click on them or just for the first click.
9178 * @param obj The gengrid object
9179 * @param always_select @c EINA_TRUE to make items "always
9180 * selected", @c EINA_FALSE, otherwise
9182 * By default, grid items will only call their selection callback
9183 * function when firstly getting selected, any subsequent further
9184 * clicks will do nothing. With this call, you make those
9185 * subsequent clicks also to issue the selection callbacks.
9187 * @note <b>Double clicks</b> will @b always be reported on items.
9189 * @see elm_gengrid_always_select_mode_get()
9193 EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
9196 * Get whether items on a given gengrid widget have their selection
9197 * callbacks issued for @b every subsequent selection click on them
9198 * or just for the first click.
9200 * @param obj The gengrid object.
9201 * @return @c EINA_TRUE if the gengrid items are "always selected",
9202 * @c EINA_FALSE, otherwise
9204 * @see elm_gengrid_always_select_mode_set() for more details
9208 EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9211 * Set whether items on a given gengrid widget can be selected or not.
9213 * @param obj The gengrid object
9214 * @param no_select @c EINA_TRUE to make items selectable,
9215 * @c EINA_FALSE otherwise
9217 * This will make items in @p obj selectable or not. In the latter
9218 * case, any user interaction on the gengrid items will neither make
9219 * them appear selected nor them call their selection callback
9222 * @see elm_gengrid_no_select_mode_get()
9226 EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
9229 * Get whether items on a given gengrid widget can be selected or
9232 * @param obj The gengrid object
9233 * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
9236 * @see elm_gengrid_no_select_mode_set() for more details
9240 EAPI Eina_Bool elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9243 * Enable or disable multi-selection in a given gengrid widget
9245 * @param obj The gengrid object.
9246 * @param multi @c EINA_TRUE, to enable multi-selection,
9247 * @c EINA_FALSE to disable it.
9249 * Multi-selection is the ability to have @b more than one
9250 * item selected, on a given gengrid, simultaneously. When it is
9251 * enabled, a sequence of clicks on different items will make them
9252 * all selected, progressively. A click on an already selected item
9253 * will unselect it. If interacting via the keyboard,
9254 * multi-selection is enabled while holding the "Shift" key.
9256 * @note By default, multi-selection is @b disabled on gengrids
9258 * @see elm_gengrid_multi_select_get()
9262 EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
9265 * Get whether multi-selection is enabled or disabled for a given
9268 * @param obj The gengrid object.
9269 * @return @c EINA_TRUE, if multi-selection is enabled, @c
9270 * EINA_FALSE otherwise
9272 * @see elm_gengrid_multi_select_set() for more details
9276 EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9279 * Enable or disable bouncing effect for a given gengrid widget
9281 * @param obj The gengrid object
9282 * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
9283 * @c EINA_FALSE to disable it
9284 * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
9285 * @c EINA_FALSE to disable it
9287 * The bouncing effect occurs whenever one reaches the gengrid's
9288 * edge's while panning it -- it will scroll past its limits a
9289 * little bit and return to the edge again, in a animated for,
9292 * @note By default, gengrids have bouncing enabled on both axis
9294 * @see elm_gengrid_bounce_get()
9298 EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
9301 * Get whether bouncing effects are enabled or disabled, for a
9302 * given gengrid widget, on each axis
9304 * @param obj The gengrid object
9305 * @param h_bounce Pointer to a variable where to store the
9306 * horizontal bouncing flag.
9307 * @param v_bounce Pointer to a variable where to store the
9308 * vertical bouncing flag.
9310 * @see elm_gengrid_bounce_set() for more details
9314 EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
9317 * Set a given gengrid widget's scrolling page size, relative to
9318 * its viewport size.
9320 * @param obj The gengrid object
9321 * @param h_pagerel The horizontal page (relative) size
9322 * @param v_pagerel The vertical page (relative) size
9324 * The gengrid's scroller is capable of binding scrolling by the
9325 * user to "pages". It means that, while scrolling and, specially
9326 * after releasing the mouse button, the grid will @b snap to the
9327 * nearest displaying page's area. When page sizes are set, the
9328 * grid's continuous content area is split into (equal) page sized
9331 * This function sets the size of a page <b>relatively to the
9332 * viewport dimensions</b> of the gengrid, for each axis. A value
9333 * @c 1.0 means "the exact viewport's size", in that axis, while @c
9334 * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
9335 * a viewport". Sane usable values are, than, between @c 0.0 and @c
9336 * 1.0. Values beyond those will make it behave behave
9337 * inconsistently. If you only want one axis to snap to pages, use
9338 * the value @c 0.0 for the other one.
9340 * There is a function setting page size values in @b absolute
9341 * values, too -- elm_gengrid_page_size_set(). Naturally, its use
9342 * is mutually exclusive to this one.
9344 * @see elm_gengrid_page_relative_get()
9348 EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
9351 * Get a given gengrid widget's scrolling page size, relative to
9352 * its viewport size.
9354 * @param obj The gengrid object
9355 * @param h_pagerel Pointer to a variable where to store the
9356 * horizontal page (relative) size
9357 * @param v_pagerel Pointer to a variable where to store the
9358 * vertical page (relative) size
9360 * @see elm_gengrid_page_relative_set() for more details
9364 EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
9367 * Set a given gengrid widget's scrolling page size
9369 * @param obj The gengrid object
9370 * @param h_pagerel The horizontal page size, in pixels
9371 * @param v_pagerel The vertical page size, in pixels
9373 * The gengrid's scroller is capable of binding scrolling by the
9374 * user to "pages". It means that, while scrolling and, specially
9375 * after releasing the mouse button, the grid will @b snap to the
9376 * nearest displaying page's area. When page sizes are set, the
9377 * grid's continuous content area is split into (equal) page sized
9380 * This function sets the size of a page of the gengrid, in pixels,
9381 * for each axis. Sane usable values are, between @c 0 and the
9382 * dimensions of @p obj, for each axis. Values beyond those will
9383 * make it behave behave inconsistently. If you only want one axis
9384 * to snap to pages, use the value @c 0 for the other one.
9386 * There is a function setting page size values in @b relative
9387 * values, too -- elm_gengrid_page_relative_set(). Naturally, its
9388 * use is mutually exclusive to this one.
9392 EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
9395 * @brief Get gengrid current page number.
9397 * @param obj The gengrid object
9398 * @param h_pagenumber The horizontal page number
9399 * @param v_pagenumber The vertical page number
9401 * The page number starts from 0. 0 is the first page.
9402 * Current page means the page which meet the top-left of the viewport.
9403 * If there are two or more pages in the viewport, it returns the number of page
9404 * which meet the top-left of the viewport.
9406 * @see elm_gengrid_last_page_get()
9407 * @see elm_gengrid_page_show()
9408 * @see elm_gengrid_page_brint_in()
9410 EAPI void elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
9413 * @brief Get scroll last page number.
9415 * @param obj The gengrid object
9416 * @param h_pagenumber The horizontal page number
9417 * @param v_pagenumber The vertical page number
9419 * The page number starts from 0. 0 is the first page.
9420 * This returns the last page number among the pages.
9422 * @see elm_gengrid_current_page_get()
9423 * @see elm_gengrid_page_show()
9424 * @see elm_gengrid_page_brint_in()
9426 EAPI void elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
9429 * Show a specific virtual region within the gengrid content object by page number.
9431 * @param obj The gengrid object
9432 * @param h_pagenumber The horizontal page number
9433 * @param v_pagenumber The vertical page number
9435 * 0, 0 of the indicated page is located at the top-left of the viewport.
9436 * This will jump to the page directly without animation.
9441 * sc = elm_gengrid_add(win);
9442 * elm_gengrid_content_set(sc, content);
9443 * elm_gengrid_page_relative_set(sc, 1, 0);
9444 * elm_gengrid_current_page_get(sc, &h_page, &v_page);
9445 * elm_gengrid_page_show(sc, h_page + 1, v_page);
9448 * @see elm_gengrid_page_bring_in()
9450 EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
9453 * Show a specific virtual region within the gengrid content object by page number.
9455 * @param obj The gengrid object
9456 * @param h_pagenumber The horizontal page number
9457 * @param v_pagenumber The vertical page number
9459 * 0, 0 of the indicated page is located at the top-left of the viewport.
9460 * This will slide to the page with animation.
9465 * sc = elm_gengrid_add(win);
9466 * elm_gengrid_content_set(sc, content);
9467 * elm_gengrid_page_relative_set(sc, 1, 0);
9468 * elm_gengrid_last_page_get(sc, &h_page, &v_page);
9469 * elm_gengrid_page_bring_in(sc, h_page, v_page);
9472 * @see elm_gengrid_page_show()
9474 EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
9477 * Set the direction in which a given gengrid widget will expand while
9478 * placing its items.
9480 * @param obj The gengrid object.
9481 * @param setting @c EINA_TRUE to make the gengrid expand
9482 * horizontally, @c EINA_FALSE to expand vertically.
9484 * When in "horizontal mode" (@c EINA_TRUE), items will be placed
9485 * in @b columns, from top to bottom and, when the space for a
9486 * column is filled, another one is started on the right, thus
9487 * expanding the grid horizontally. When in "vertical mode"
9488 * (@c EINA_FALSE), though, items will be placed in @b rows, from left
9489 * to right and, when the space for a row is filled, another one is
9490 * started below, thus expanding the grid vertically.
9492 * @see elm_gengrid_horizontal_get()
9496 EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
9499 * Get for what direction a given gengrid widget will expand while
9500 * placing its items.
9502 * @param obj The gengrid object.
9503 * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
9504 * @c EINA_FALSE if it's set to expand vertically.
9506 * @see elm_gengrid_horizontal_set() for more detais
9510 EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9513 * Get the first item in a given gengrid widget
9515 * @param obj The gengrid object
9516 * @return The first item's handle or @c NULL, if there are no
9517 * items in @p obj (and on errors)
9519 * This returns the first item in the @p obj's internal list of
9522 * @see elm_gengrid_last_item_get()
9526 EAPI Elm_Gengrid_Item *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9529 * Get the last item in a given gengrid widget
9531 * @param obj The gengrid object
9532 * @return The last item's handle or @c NULL, if there are no
9533 * items in @p obj (and on errors)
9535 * This returns the last item in the @p obj's internal list of
9538 * @see elm_gengrid_first_item_get()
9542 EAPI Elm_Gengrid_Item *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9545 * Get the @b next item in a gengrid widget's internal list of items,
9546 * given a handle to one of those items.
9548 * @param item The gengrid item to fetch next from
9549 * @return The item after @p item, or @c NULL if there's none (and
9552 * This returns the item placed after the @p item, on the container
9555 * @see elm_gengrid_item_prev_get()
9559 EAPI Elm_Gengrid_Item *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9562 * Get the @b previous item in a gengrid widget's internal list of items,
9563 * given a handle to one of those items.
9565 * @param item The gengrid item to fetch previous from
9566 * @return The item before @p item, or @c NULL if there's none (and
9569 * This returns the item placed before the @p item, on the container
9572 * @see elm_gengrid_item_next_get()
9576 EAPI Elm_Gengrid_Item *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9579 * Get the gengrid object's handle which contains a given gengrid
9582 * @param item The item to fetch the container from
9583 * @return The gengrid (parent) object
9585 * This returns the gengrid object itself that an item belongs to.
9589 EAPI Evas_Object *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9592 * Remove a gengrid item from its parent, deleting it.
9594 * @param item The item to be removed.
9595 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
9597 * @see elm_gengrid_clear(), to remove all items in a gengrid at
9602 EAPI void elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9605 * Update the contents of a given gengrid item
9607 * @param item The gengrid item
9609 * This updates an item by calling all the item class functions
9610 * again to get the contents, texts and states. Use this when the
9611 * original item data has changed and you want the changes to be
9616 EAPI void elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9619 * Get the Gengrid Item class for the given Gengrid Item.
9621 * @param item The gengrid item
9623 * This returns the Gengrid_Item_Class for the given item. It can be used to examine
9624 * the function pointers and item_style.
9628 EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9631 * Get the Gengrid Item class for the given Gengrid Item.
9633 * This sets the Gengrid_Item_Class for the given item. It can be used to examine
9634 * the function pointers and item_style.
9636 * @param item The gengrid item
9637 * @param gic The gengrid item class describing the function pointers and the item style.
9641 EAPI void elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
9644 * Return the data associated to a given gengrid item
9646 * @param item The gengrid item.
9647 * @return the data associated with this item.
9649 * This returns the @c data value passed on the
9650 * elm_gengrid_item_append() and related item addition calls.
9652 * @see elm_gengrid_item_append()
9653 * @see elm_gengrid_item_data_set()
9657 EAPI void *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9660 * Set the data associated with a given gengrid item
9662 * @param item The gengrid item
9663 * @param data The data pointer to set on it
9665 * This @b overrides the @c data value passed on the
9666 * elm_gengrid_item_append() and related item addition calls. This
9667 * function @b won't call elm_gengrid_item_update() automatically,
9668 * so you'd issue it afterwards if you want to have the item
9669 * updated to reflect the new data.
9671 * @see elm_gengrid_item_data_get()
9672 * @see elm_gengrid_item_update()
9676 EAPI void elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
9679 * Get a given gengrid item's position, relative to the whole
9680 * gengrid's grid area.
9682 * @param item The Gengrid item.
9683 * @param x Pointer to variable to store the item's <b>row number</b>.
9684 * @param y Pointer to variable to store the item's <b>column number</b>.
9686 * This returns the "logical" position of the item within the
9687 * gengrid. For example, @c (0, 1) would stand for first row,
9692 EAPI void elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
9695 * Set whether a given gengrid item is selected or not
9697 * @param item The gengrid item
9698 * @param selected Use @c EINA_TRUE, to make it selected, @c
9699 * EINA_FALSE to make it unselected
9701 * This sets the selected state of an item. If multi-selection is
9702 * not enabled on the containing gengrid and @p selected is @c
9703 * EINA_TRUE, any other previously selected items will get
9704 * unselected in favor of this new one.
9706 * @see elm_gengrid_item_selected_get()
9710 EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
9713 * Get whether a given gengrid item is selected or not
9715 * @param item The gengrid item
9716 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
9718 * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
9720 * @see elm_gengrid_item_selected_set() for more details
9724 EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9727 * Get the real Evas object created to implement the view of a
9728 * given gengrid item
9730 * @param item The gengrid item.
9731 * @return the Evas object implementing this item's view.
9733 * This returns the actual Evas object used to implement the
9734 * specified gengrid item's view. This may be @c NULL, as it may
9735 * not have been created or may have been deleted, at any time, by
9736 * the gengrid. <b>Do not modify this object</b> (move, resize,
9737 * show, hide, etc.), as the gengrid is controlling it. This
9738 * function is for querying, emitting custom signals or hooking
9739 * lower level callbacks for events on that object. Do not delete
9740 * this object under any circumstances.
9742 * @see elm_gengrid_item_data_get()
9746 EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9749 * Show the portion of a gengrid's internal grid containing a given
9750 * item, @b immediately.
9752 * @param item The item to display
9754 * This causes gengrid to @b redraw its viewport's contents to the
9755 * region contining the given @p item item, if it is not fully
9758 * @see elm_gengrid_item_bring_in()
9762 EAPI void elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9765 * Animatedly bring in, to the visible area of a gengrid, a given
9768 * @param item The gengrid item to display
9770 * This causes gengrid to jump to the given @p item and show
9771 * it (by scrolling), if it is not fully visible. This will use
9772 * animation to do so and take a period of time to complete.
9774 * @see elm_gengrid_item_show()
9778 EAPI void elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9781 * Set whether a given gengrid item is disabled or not.
9783 * @param item The gengrid item
9784 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
9785 * to enable it back.
9787 * A disabled item cannot be selected or unselected. It will also
9788 * change its appearance, to signal the user it's disabled.
9790 * @see elm_gengrid_item_disabled_get()
9794 EAPI void elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
9797 * Get whether a given gengrid item is disabled or not.
9799 * @param item The gengrid item
9800 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
9803 * @see elm_gengrid_item_disabled_set() for more details
9807 EAPI Eina_Bool elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9810 * Set the text to be shown in a given gengrid item's tooltips.
9812 * @param item The gengrid item
9813 * @param text The text to set in the content
9815 * This call will setup the text to be used as tooltip to that item
9816 * (analogous to elm_object_tooltip_text_set(), but being item
9817 * tooltips with higher precedence than object tooltips). It can
9818 * have only one tooltip at a time, so any previous tooltip data
9823 EAPI void elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
9826 * Set the content to be shown in a given gengrid item's tooltip
9828 * @param item The gengrid item.
9829 * @param func The function returning the tooltip contents.
9830 * @param data What to provide to @a func as callback data/context.
9831 * @param del_cb Called when data is not needed anymore, either when
9832 * another callback replaces @p func, the tooltip is unset with
9833 * elm_gengrid_item_tooltip_unset() or the owner @p item
9834 * dies. This callback receives as its first parameter the
9835 * given @p data, being @c event_info the item handle.
9837 * This call will setup the tooltip's contents to @p item
9838 * (analogous to elm_object_tooltip_content_cb_set(), but being
9839 * item tooltips with higher precedence than object tooltips). It
9840 * can have only one tooltip at a time, so any previous tooltip
9841 * content will get removed. @p func (with @p data) will be called
9842 * every time Elementary needs to show the tooltip and it should
9843 * return a valid Evas object, which will be fully managed by the
9844 * tooltip system, getting deleted when the tooltip is gone.
9848 EAPI void elm_gengrid_item_tooltip_content_cb_set(Elm_Gengrid_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
9851 * Unset a tooltip from a given gengrid item
9853 * @param item gengrid item to remove a previously set tooltip from.
9855 * This call removes any tooltip set on @p item. The callback
9856 * provided as @c del_cb to
9857 * elm_gengrid_item_tooltip_content_cb_set() will be called to
9858 * notify it is not used anymore (and have resources cleaned, if
9861 * @see elm_gengrid_item_tooltip_content_cb_set()
9865 EAPI void elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9868 * Set a different @b style for a given gengrid item's tooltip.
9870 * @param item gengrid item with tooltip set
9871 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
9872 * "default", @c "transparent", etc)
9874 * Tooltips can have <b>alternate styles</b> to be displayed on,
9875 * which are defined by the theme set on Elementary. This function
9876 * works analogously as elm_object_tooltip_style_set(), but here
9877 * applied only to gengrid item objects. The default style for
9878 * tooltips is @c "default".
9880 * @note before you set a style you should define a tooltip with
9881 * elm_gengrid_item_tooltip_content_cb_set() or
9882 * elm_gengrid_item_tooltip_text_set()
9884 * @see elm_gengrid_item_tooltip_style_get()
9888 EAPI void elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9891 * Get the style set a given gengrid item's tooltip.
9893 * @param item gengrid item with tooltip already set on.
9894 * @return style the theme style in use, which defaults to
9895 * "default". If the object does not have a tooltip set,
9896 * then @c NULL is returned.
9898 * @see elm_gengrid_item_tooltip_style_set() for more details
9902 EAPI const char *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9905 * @brief Disable size restrictions on an object's tooltip
9906 * @param item The tooltip's anchor object
9907 * @param disable If EINA_TRUE, size restrictions are disabled
9908 * @return EINA_FALSE on failure, EINA_TRUE on success
9910 * This function allows a tooltip to expand beyond its parant window's canvas.
9911 * It will instead be limited only by the size of the display.
9913 EAPI Eina_Bool elm_gengrid_item_tooltip_window_mode_set(Elm_Gengrid_Item *item, Eina_Bool disable);
9916 * @brief Retrieve size restriction state of an object's tooltip
9917 * @param item The tooltip's anchor object
9918 * @return If EINA_TRUE, size restrictions are disabled
9920 * This function returns whether a tooltip is allowed to expand beyond
9921 * its parant window's canvas.
9922 * It will instead be limited only by the size of the display.
9924 EAPI Eina_Bool elm_gengrid_item_tooltip_window_mode_get(const Elm_Gengrid_Item *item);
9927 * Set the type of mouse pointer/cursor decoration to be shown,
9928 * when the mouse pointer is over the given gengrid widget item
9930 * @param item gengrid item to customize cursor on
9931 * @param cursor the cursor type's name
9933 * This function works analogously as elm_object_cursor_set(), but
9934 * here the cursor's changing area is restricted to the item's
9935 * area, and not the whole widget's. Note that that item cursors
9936 * have precedence over widget cursors, so that a mouse over @p
9937 * item will always show cursor @p type.
9939 * If this function is called twice for an object, a previously set
9940 * cursor will be unset on the second call.
9942 * @see elm_object_cursor_set()
9943 * @see elm_gengrid_item_cursor_get()
9944 * @see elm_gengrid_item_cursor_unset()
9948 EAPI void elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
9951 * Get the type of mouse pointer/cursor decoration set to be shown,
9952 * when the mouse pointer is over the given gengrid widget item
9954 * @param item gengrid item with custom cursor set
9955 * @return the cursor type's name or @c NULL, if no custom cursors
9956 * were set to @p item (and on errors)
9958 * @see elm_object_cursor_get()
9959 * @see elm_gengrid_item_cursor_set() for more details
9960 * @see elm_gengrid_item_cursor_unset()
9964 EAPI const char *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9967 * Unset any custom mouse pointer/cursor decoration set to be
9968 * shown, when the mouse pointer is over the given gengrid widget
9969 * item, thus making it show the @b default cursor again.
9971 * @param item a gengrid item
9973 * Use this call to undo any custom settings on this item's cursor
9974 * decoration, bringing it back to defaults (no custom style set).
9976 * @see elm_object_cursor_unset()
9977 * @see elm_gengrid_item_cursor_set() for more details
9981 EAPI void elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9984 * Set a different @b style for a given custom cursor set for a
9987 * @param item gengrid item with custom cursor set
9988 * @param style the <b>theme style</b> to use (e.g. @c "default",
9989 * @c "transparent", etc)
9991 * This function only makes sense when one is using custom mouse
9992 * cursor decorations <b>defined in a theme file</b> , which can
9993 * have, given a cursor name/type, <b>alternate styles</b> on
9994 * it. It works analogously as elm_object_cursor_style_set(), but
9995 * here applied only to gengrid item objects.
9997 * @warning Before you set a cursor style you should have defined a
9998 * custom cursor previously on the item, with
9999 * elm_gengrid_item_cursor_set()
10001 * @see elm_gengrid_item_cursor_engine_only_set()
10002 * @see elm_gengrid_item_cursor_style_get()
10006 EAPI void elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
10009 * Get the current @b style set for a given gengrid item's custom
10012 * @param item gengrid item with custom cursor set.
10013 * @return style the cursor style in use. If the object does not
10014 * have a cursor set, then @c NULL is returned.
10016 * @see elm_gengrid_item_cursor_style_set() for more details
10020 EAPI const char *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
10023 * Set if the (custom) cursor for a given gengrid item should be
10024 * searched in its theme, also, or should only rely on the
10025 * rendering engine.
10027 * @param item item with custom (custom) cursor already set on
10028 * @param engine_only Use @c EINA_TRUE to have cursors looked for
10029 * only on those provided by the rendering engine, @c EINA_FALSE to
10030 * have them searched on the widget's theme, as well.
10032 * @note This call is of use only if you've set a custom cursor
10033 * for gengrid items, with elm_gengrid_item_cursor_set().
10035 * @note By default, cursors will only be looked for between those
10036 * provided by the rendering engine.
10040 EAPI void elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
10043 * Get if the (custom) cursor for a given gengrid item is being
10044 * searched in its theme, also, or is only relying on the rendering
10047 * @param item a gengrid item
10048 * @return @c EINA_TRUE, if cursors are being looked for only on
10049 * those provided by the rendering engine, @c EINA_FALSE if they
10050 * are being searched on the widget's theme, as well.
10052 * @see elm_gengrid_item_cursor_engine_only_set(), for more details
10056 EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
10059 * Remove all items from a given gengrid widget
10061 * @param obj The gengrid object.
10063 * This removes (and deletes) all items in @p obj, leaving it
10066 * @see elm_gengrid_item_del(), to remove just one item.
10070 EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
10073 * Get the selected item in a given gengrid widget
10075 * @param obj The gengrid object.
10076 * @return The selected item's handleor @c NULL, if none is
10077 * selected at the moment (and on errors)
10079 * This returns the selected item in @p obj. If multi selection is
10080 * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
10081 * the first item in the list is selected, which might not be very
10082 * useful. For that case, see elm_gengrid_selected_items_get().
10086 EAPI Elm_Gengrid_Item *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10089 * Get <b>a list</b> of selected items in a given gengrid
10091 * @param obj The gengrid object.
10092 * @return The list of selected items or @c NULL, if none is
10093 * selected at the moment (and on errors)
10095 * This returns a list of the selected items, in the order that
10096 * they appear in the grid. This list is only valid as long as no
10097 * more items are selected or unselected (or unselected implictly
10098 * by deletion). The list contains #Elm_Gengrid_Item pointers as
10101 * @see elm_gengrid_selected_item_get()
10105 EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10112 * @defgroup Clock Clock
10114 * @image html img/widget/clock/preview-00.png
10115 * @image latex img/widget/clock/preview-00.eps
10117 * This is a @b digital clock widget. In its default theme, it has a
10118 * vintage "flipping numbers clock" appearance, which will animate
10119 * sheets of individual algarisms individually as time goes by.
10121 * A newly created clock will fetch system's time (already
10122 * considering local time adjustments) to start with, and will tick
10123 * accondingly. It may or may not show seconds.
10125 * Clocks have an @b edition mode. When in it, the sheets will
10126 * display extra arrow indications on the top and bottom and the
10127 * user may click on them to raise or lower the time values. After
10128 * it's told to exit edition mode, it will keep ticking with that
10129 * new time set (it keeps the difference from local time).
10131 * Also, when under edition mode, user clicks on the cited arrows
10132 * which are @b held for some time will make the clock to flip the
10133 * sheet, thus editing the time, continuosly and automatically for
10134 * the user. The interval between sheet flips will keep growing in
10135 * time, so that it helps the user to reach a time which is distant
10136 * from the one set.
10138 * The time display is, by default, in military mode (24h), but an
10139 * am/pm indicator may be optionally shown, too, when it will
10142 * Smart callbacks one can register to:
10143 * - "changed" - the clock's user changed the time
10145 * Here is an example on its usage:
10146 * @li @ref clock_example
10150 * @addtogroup Clock
10155 * Identifiers for which clock digits should be editable, when a
10156 * clock widget is in edition mode. Values may be ORed together to
10157 * make a mask, naturally.
10159 * @see elm_clock_edit_set()
10160 * @see elm_clock_digit_edit_set()
10162 typedef enum _Elm_Clock_Digedit
10164 ELM_CLOCK_NONE = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
10165 ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
10166 ELM_CLOCK_HOUR_UNIT = 1 << 1, /**< Unit algarism of hours value should be editable */
10167 ELM_CLOCK_MIN_DECIMAL = 1 << 2, /**< Decimal algarism of minutes value should be editable */
10168 ELM_CLOCK_MIN_UNIT = 1 << 3, /**< Unit algarism of minutes value should be editable */
10169 ELM_CLOCK_SEC_DECIMAL = 1 << 4, /**< Decimal algarism of seconds value should be editable */
10170 ELM_CLOCK_SEC_UNIT = 1 << 5, /**< Unit algarism of seconds value should be editable */
10171 ELM_CLOCK_ALL = (1 << 6) - 1 /**< All digits should be editable */
10172 } Elm_Clock_Digedit;
10175 * Add a new clock widget to the given parent Elementary
10176 * (container) object
10178 * @param parent The parent object
10179 * @return a new clock widget handle or @c NULL, on errors
10181 * This function inserts a new clock widget on the canvas.
10185 EAPI Evas_Object *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10188 * Set a clock widget's time, programmatically
10190 * @param obj The clock widget object
10191 * @param hrs The hours to set
10192 * @param min The minutes to set
10193 * @param sec The secondes to set
10195 * This function updates the time that is showed by the clock
10198 * Values @b must be set within the following ranges:
10199 * - 0 - 23, for hours
10200 * - 0 - 59, for minutes
10201 * - 0 - 59, for seconds,
10203 * even if the clock is not in "military" mode.
10205 * @warning The behavior for values set out of those ranges is @b
10210 EAPI void elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
10213 * Get a clock widget's time values
10215 * @param obj The clock object
10216 * @param[out] hrs Pointer to the variable to get the hours value
10217 * @param[out] min Pointer to the variable to get the minutes value
10218 * @param[out] sec Pointer to the variable to get the seconds value
10220 * This function gets the time set for @p obj, returning
10221 * it on the variables passed as the arguments to function
10223 * @note Use @c NULL pointers on the time values you're not
10224 * interested in: they'll be ignored by the function.
10228 EAPI void elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
10231 * Set whether a given clock widget is under <b>edition mode</b> or
10232 * under (default) displaying-only mode.
10234 * @param obj The clock object
10235 * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
10236 * put it back to "displaying only" mode
10238 * This function makes a clock's time to be editable or not <b>by
10239 * user interaction</b>. When in edition mode, clocks @b stop
10240 * ticking, until one brings them back to canonical mode. The
10241 * elm_clock_digit_edit_set() function will influence which digits
10242 * of the clock will be editable. By default, all of them will be
10243 * (#ELM_CLOCK_NONE).
10245 * @note am/pm sheets, if being shown, will @b always be editable
10246 * under edition mode.
10248 * @see elm_clock_edit_get()
10252 EAPI void elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
10255 * Retrieve whether a given clock widget is under <b>edition
10256 * mode</b> or under (default) displaying-only mode.
10258 * @param obj The clock object
10259 * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
10262 * This function retrieves whether the clock's time can be edited
10263 * or not by user interaction.
10265 * @see elm_clock_edit_set() for more details
10269 EAPI Eina_Bool elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10272 * Set what digits of the given clock widget should be editable
10273 * when in edition mode.
10275 * @param obj The clock object
10276 * @param digedit Bit mask indicating the digits to be editable
10277 * (values in #Elm_Clock_Digedit).
10279 * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
10280 * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
10283 * @see elm_clock_digit_edit_get()
10287 EAPI void elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
10290 * Retrieve what digits of the given clock widget should be
10291 * editable when in edition mode.
10293 * @param obj The clock object
10294 * @return Bit mask indicating the digits to be editable
10295 * (values in #Elm_Clock_Digedit).
10297 * @see elm_clock_digit_edit_set() for more details
10301 EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10304 * Set if the given clock widget must show hours in military or
10307 * @param obj The clock object
10308 * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
10311 * This function sets if the clock must show hours in military or
10312 * am/pm mode. In some countries like Brazil the military mode
10313 * (00-24h-format) is used, in opposition to the USA, where the
10314 * am/pm mode is more commonly used.
10316 * @see elm_clock_show_am_pm_get()
10320 EAPI void elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
10323 * Get if the given clock widget shows hours in military or am/pm
10326 * @param obj The clock object
10327 * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
10330 * This function gets if the clock shows hours in military or am/pm
10333 * @see elm_clock_show_am_pm_set() for more details
10337 EAPI Eina_Bool elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10340 * Set if the given clock widget must show time with seconds or not
10342 * @param obj The clock object
10343 * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
10345 * This function sets if the given clock must show or not elapsed
10346 * seconds. By default, they are @b not shown.
10348 * @see elm_clock_show_seconds_get()
10352 EAPI void elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
10355 * Get whether the given clock widget is showing time with seconds
10358 * @param obj The clock object
10359 * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
10361 * This function gets whether @p obj is showing or not the elapsed
10364 * @see elm_clock_show_seconds_set()
10368 EAPI Eina_Bool elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10371 * Set the interval on time updates for an user mouse button hold
10372 * on clock widgets' time edition.
10374 * @param obj The clock object
10375 * @param interval The (first) interval value in seconds
10377 * This interval value is @b decreased while the user holds the
10378 * mouse pointer either incrementing or decrementing a given the
10379 * clock digit's value.
10381 * This helps the user to get to a given time distant from the
10382 * current one easier/faster, as it will start to flip quicker and
10383 * quicker on mouse button holds.
10385 * The calculation for the next flip interval value, starting from
10386 * the one set with this call, is the previous interval divided by
10387 * 1.05, so it decreases a little bit.
10389 * The default starting interval value for automatic flips is
10392 * @see elm_clock_interval_get()
10396 EAPI void elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
10399 * Get the interval on time updates for an user mouse button hold
10400 * on clock widgets' time edition.
10402 * @param obj The clock object
10403 * @return The (first) interval value, in seconds, set on it
10405 * @see elm_clock_interval_set() for more details
10409 EAPI double elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10416 * @defgroup Layout Layout
10418 * @image html img/widget/layout/preview-00.png
10419 * @image latex img/widget/layout/preview-00.eps width=\textwidth
10421 * @image html img/layout-predefined.png
10422 * @image latex img/layout-predefined.eps width=\textwidth
10424 * This is a container widget that takes a standard Edje design file and
10425 * wraps it very thinly in a widget.
10427 * An Edje design (theme) file has a very wide range of possibilities to
10428 * describe the behavior of elements added to the Layout. Check out the Edje
10429 * documentation and the EDC reference to get more information about what can
10430 * be done with Edje.
10432 * Just like @ref List, @ref Box, and other container widgets, any
10433 * object added to the Layout will become its child, meaning that it will be
10434 * deleted if the Layout is deleted, move if the Layout is moved, and so on.
10436 * The Layout widget can contain as many Contents, Boxes or Tables as
10437 * described in its theme file. For instance, objects can be added to
10438 * different Tables by specifying the respective Table part names. The same
10439 * is valid for Content and Box.
10441 * The objects added as child of the Layout will behave as described in the
10442 * part description where they were added. There are 3 possible types of
10443 * parts where a child can be added:
10445 * @section secContent Content (SWALLOW part)
10447 * Only one object can be added to the @c SWALLOW part (but you still can
10448 * have many @c SWALLOW parts and one object on each of them). Use the @c
10449 * elm_object_content_set/get/unset functions to set, retrieve and unset
10450 * objects as content of the @c SWALLOW. After being set to this part, the
10451 * object size, position, visibility, clipping and other description
10452 * properties will be totally controlled by the description of the given part
10453 * (inside the Edje theme file).
10455 * One can use @c evas_object_size_hint_* functions on the child to have some
10456 * kind of control over its behavior, but the resulting behavior will still
10457 * depend heavily on the @c SWALLOW part description.
10459 * The Edje theme also can change the part description, based on signals or
10460 * scripts running inside the theme. This change can also be animated. All of
10461 * this will affect the child object set as content accordingly. The object
10462 * size will be changed if the part size is changed, it will animate move if
10463 * the part is moving, and so on.
10465 * The following picture demonstrates a Layout widget with a child object
10466 * added to its @c SWALLOW:
10468 * @image html layout_swallow.png
10469 * @image latex layout_swallow.eps width=\textwidth
10471 * @section secBox Box (BOX part)
10473 * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
10474 * allows one to add objects to the box and have them distributed along its
10475 * area, accordingly to the specified @a layout property (now by @a layout we
10476 * mean the chosen layouting design of the Box, not the Layout widget
10479 * A similar effect for having a box with its position, size and other things
10480 * controlled by the Layout theme would be to create an Elementary @ref Box
10481 * widget and add it as a Content in the @c SWALLOW part.
10483 * The main difference of using the Layout Box is that its behavior, the box
10484 * properties like layouting format, padding, align, etc. will be all
10485 * controlled by the theme. This means, for example, that a signal could be
10486 * sent to the Layout theme (with elm_object_signal_emit()) and the theme
10487 * handled the signal by changing the box padding, or align, or both. Using
10488 * the Elementary @ref Box widget is not necessarily harder or easier, it
10489 * just depends on the circunstances and requirements.
10491 * The Layout Box can be used through the @c elm_layout_box_* set of
10494 * The following picture demonstrates a Layout widget with many child objects
10495 * added to its @c BOX part:
10497 * @image html layout_box.png
10498 * @image latex layout_box.eps width=\textwidth
10500 * @section secTable Table (TABLE part)
10502 * Just like the @ref secBox, the Layout Table is very similar to the
10503 * Elementary @ref Table widget. It allows one to add objects to the Table
10504 * specifying the row and column where the object should be added, and any
10505 * column or row span if necessary.
10507 * Again, we could have this design by adding a @ref Table widget to the @c
10508 * SWALLOW part using elm_object_part_content_set(). The same difference happens
10509 * here when choosing to use the Layout Table (a @c TABLE part) instead of
10510 * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
10512 * The Layout Table can be used through the @c elm_layout_table_* set of
10515 * The following picture demonstrates a Layout widget with many child objects
10516 * added to its @c TABLE part:
10518 * @image html layout_table.png
10519 * @image latex layout_table.eps width=\textwidth
10521 * @section secPredef Predefined Layouts
10523 * Another interesting thing about the Layout widget is that it offers some
10524 * predefined themes that come with the default Elementary theme. These
10525 * themes can be set by the call elm_layout_theme_set(), and provide some
10526 * basic functionality depending on the theme used.
10528 * Most of them already send some signals, some already provide a toolbar or
10529 * back and next buttons.
10531 * These are available predefined theme layouts. All of them have class = @c
10532 * layout, group = @c application, and style = one of the following options:
10534 * @li @c toolbar-content - application with toolbar and main content area
10535 * @li @c toolbar-content-back - application with toolbar and main content
10536 * area with a back button and title area
10537 * @li @c toolbar-content-back-next - application with toolbar and main
10538 * content area with a back and next buttons and title area
10539 * @li @c content-back - application with a main content area with a back
10540 * button and title area
10541 * @li @c content-back-next - application with a main content area with a
10542 * back and next buttons and title area
10543 * @li @c toolbar-vbox - application with toolbar and main content area as a
10545 * @li @c toolbar-table - application with toolbar and main content area as a
10548 * @section secExamples Examples
10550 * Some examples of the Layout widget can be found here:
10551 * @li @ref layout_example_01
10552 * @li @ref layout_example_02
10553 * @li @ref layout_example_03
10554 * @li @ref layout_example_edc
10559 * Add a new layout to the parent
10561 * @param parent The parent object
10562 * @return The new object or NULL if it cannot be created
10564 * @see elm_layout_file_set()
10565 * @see elm_layout_theme_set()
10569 EAPI Evas_Object *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10572 * Set the file that will be used as layout
10574 * @param obj The layout object
10575 * @param file The path to file (edj) that will be used as layout
10576 * @param group The group that the layout belongs in edje file
10578 * @return (1 = success, 0 = error)
10582 EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
10585 * Set the edje group from the elementary theme that will be used as layout
10587 * @param obj The layout object
10588 * @param clas the clas of the group
10589 * @param group the group
10590 * @param style the style to used
10592 * @return (1 = success, 0 = error)
10596 EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
10599 * Set the layout content.
10601 * @param obj The layout object
10602 * @param swallow The swallow part name in the edje file
10603 * @param content The child that will be added in this layout object
10605 * Once the content object is set, a previously set one will be deleted.
10606 * If you want to keep that old content object, use the
10607 * elm_object_part_content_unset() function.
10609 * @note In an Edje theme, the part used as a content container is called @c
10610 * SWALLOW. This is why the parameter name is called @p swallow, but it is
10611 * expected to be a part name just like the second parameter of
10612 * elm_layout_box_append().
10614 * @see elm_layout_box_append()
10615 * @see elm_object_part_content_get()
10616 * @see elm_object_part_content_unset()
10618 * @deprecated use elm_object_part_content_set() instead
10622 EINA_DEPRECATED EAPI void elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10625 * Get the child object in the given content part.
10627 * @param obj The layout object
10628 * @param swallow The SWALLOW part to get its content
10630 * @return The swallowed object or NULL if none or an error occurred
10632 * @deprecated use elm_object_part_content_get() instead
10636 EINA_DEPRECATED EAPI Evas_Object *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10639 * Unset the layout content.
10641 * @param obj The layout object
10642 * @param swallow The swallow part name in the edje file
10643 * @return The content that was being used
10645 * Unparent and return the content object which was set for this part.
10647 * @deprecated use elm_object_part_content_unset() instead
10651 EINA_DEPRECATED EAPI Evas_Object *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10654 * Set the text of the given part
10656 * @param obj The layout object
10657 * @param part The TEXT part where to set the text
10658 * @param text The text to set
10661 * @deprecated use elm_object_part_text_set() instead.
10663 EINA_DEPRECATED EAPI void elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
10666 * Get the text set in the given part
10668 * @param obj The layout object
10669 * @param part The TEXT part to retrieve the text off
10671 * @return The text set in @p part
10674 * @deprecated use elm_object_part_text_get() instead.
10676 EINA_DEPRECATED EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
10679 * Append child to layout box part.
10681 * @param obj the layout object
10682 * @param part the box part to which the object will be appended.
10683 * @param child the child object to append to box.
10685 * Once the object is appended, it will become child of the layout. Its
10686 * lifetime will be bound to the layout, whenever the layout dies the child
10687 * will be deleted automatically. One should use elm_layout_box_remove() to
10688 * make this layout forget about the object.
10690 * @see elm_layout_box_prepend()
10691 * @see elm_layout_box_insert_before()
10692 * @see elm_layout_box_insert_at()
10693 * @see elm_layout_box_remove()
10697 EAPI void elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10700 * Prepend child to layout box part.
10702 * @param obj the layout object
10703 * @param part the box part to prepend.
10704 * @param child the child object to prepend to box.
10706 * Once the object is prepended, it will become child of the layout. Its
10707 * lifetime will be bound to the layout, whenever the layout dies the child
10708 * will be deleted automatically. One should use elm_layout_box_remove() to
10709 * make this layout forget about the object.
10711 * @see elm_layout_box_append()
10712 * @see elm_layout_box_insert_before()
10713 * @see elm_layout_box_insert_at()
10714 * @see elm_layout_box_remove()
10718 EAPI void elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10721 * Insert child to layout box part before a reference object.
10723 * @param obj the layout object
10724 * @param part the box part to insert.
10725 * @param child the child object to insert into box.
10726 * @param reference another reference object to insert before in box.
10728 * Once the object is inserted, it will become child of the layout. Its
10729 * lifetime will be bound to the layout, whenever the layout dies the child
10730 * will be deleted automatically. One should use elm_layout_box_remove() to
10731 * make this layout forget about the object.
10733 * @see elm_layout_box_append()
10734 * @see elm_layout_box_prepend()
10735 * @see elm_layout_box_insert_before()
10736 * @see elm_layout_box_remove()
10740 EAPI void elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
10743 * Insert child to layout box part at a given position.
10745 * @param obj the layout object
10746 * @param part the box part to insert.
10747 * @param child the child object to insert into box.
10748 * @param pos the numeric position >=0 to insert the child.
10750 * Once the object is inserted, it will become child of the layout. Its
10751 * lifetime will be bound to the layout, whenever the layout dies the child
10752 * will be deleted automatically. One should use elm_layout_box_remove() to
10753 * make this layout forget about the object.
10755 * @see elm_layout_box_append()
10756 * @see elm_layout_box_prepend()
10757 * @see elm_layout_box_insert_before()
10758 * @see elm_layout_box_remove()
10762 EAPI void elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
10765 * Remove a child of the given part box.
10767 * @param obj The layout object
10768 * @param part The box part name to remove child.
10769 * @param child The object to remove from box.
10770 * @return The object that was being used, or NULL if not found.
10772 * The object will be removed from the box part and its lifetime will
10773 * not be handled by the layout anymore. This is equivalent to
10774 * elm_object_part_content_unset() for box.
10776 * @see elm_layout_box_append()
10777 * @see elm_layout_box_remove_all()
10781 EAPI Evas_Object *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
10784 * Remove all children of the given part box.
10786 * @param obj The layout object
10787 * @param part The box part name to remove child.
10788 * @param clear If EINA_TRUE, then all objects will be deleted as
10789 * well, otherwise they will just be removed and will be
10790 * dangling on the canvas.
10792 * The objects will be removed from the box part and their lifetime will
10793 * not be handled by the layout anymore. This is equivalent to
10794 * elm_layout_box_remove() for all box children.
10796 * @see elm_layout_box_append()
10797 * @see elm_layout_box_remove()
10801 EAPI void elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10804 * Insert child to layout table part.
10806 * @param obj the layout object
10807 * @param part the box part to pack child.
10808 * @param child_obj the child object to pack into table.
10809 * @param col the column to which the child should be added. (>= 0)
10810 * @param row the row to which the child should be added. (>= 0)
10811 * @param colspan how many columns should be used to store this object. (>=
10813 * @param rowspan how many rows should be used to store this object. (>= 1)
10815 * Once the object is inserted, it will become child of the table. Its
10816 * lifetime will be bound to the layout, and whenever the layout dies the
10817 * child will be deleted automatically. One should use
10818 * elm_layout_table_remove() to make this layout forget about the object.
10820 * If @p colspan or @p rowspan are bigger than 1, that object will occupy
10821 * more space than a single cell. For instance, the following code:
10823 * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
10826 * Would result in an object being added like the following picture:
10828 * @image html layout_colspan.png
10829 * @image latex layout_colspan.eps width=\textwidth
10831 * @see elm_layout_table_unpack()
10832 * @see elm_layout_table_clear()
10836 EAPI void elm_layout_table_pack(Evas_Object *obj, const char *part, Evas_Object *child_obj, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan) EINA_ARG_NONNULL(1);
10839 * Unpack (remove) a child of the given part table.
10841 * @param obj The layout object
10842 * @param part The table part name to remove child.
10843 * @param child_obj The object to remove from table.
10844 * @return The object that was being used, or NULL if not found.
10846 * The object will be unpacked from the table part and its lifetime
10847 * will not be handled by the layout anymore. This is equivalent to
10848 * elm_object_part_content_unset() for table.
10850 * @see elm_layout_table_pack()
10851 * @see elm_layout_table_clear()
10855 EAPI Evas_Object *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
10858 * Remove all the child objects of the given part table.
10860 * @param obj The layout object
10861 * @param part The table part name to remove child.
10862 * @param clear If EINA_TRUE, then all objects will be deleted as
10863 * well, otherwise they will just be removed and will be
10864 * dangling on the canvas.
10866 * The objects will be removed from the table part and their lifetime will
10867 * not be handled by the layout anymore. This is equivalent to
10868 * elm_layout_table_unpack() for all table children.
10870 * @see elm_layout_table_pack()
10871 * @see elm_layout_table_unpack()
10875 EAPI void elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10878 * Get the edje layout
10880 * @param obj The layout object
10882 * @return A Evas_Object with the edje layout settings loaded
10883 * with function elm_layout_file_set
10885 * This returns the edje object. It is not expected to be used to then
10886 * swallow objects via edje_object_part_swallow() for example. Use
10887 * elm_object_part_content_set() instead so child object handling and sizing is
10890 * @note This function should only be used if you really need to call some
10891 * low level Edje function on this edje object. All the common stuff (setting
10892 * text, emitting signals, hooking callbacks to signals, etc.) can be done
10893 * with proper elementary functions.
10895 * @see elm_object_signal_callback_add()
10896 * @see elm_object_signal_emit()
10897 * @see elm_object_part_text_set()
10898 * @see elm_object_part_content_set()
10899 * @see elm_layout_box_append()
10900 * @see elm_layout_table_pack()
10901 * @see elm_layout_data_get()
10905 EAPI Evas_Object *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10908 * Get the edje data from the given layout
10910 * @param obj The layout object
10911 * @param key The data key
10913 * @return The edje data string
10915 * This function fetches data specified inside the edje theme of this layout.
10916 * This function return NULL if data is not found.
10918 * In EDC this comes from a data block within the group block that @p
10919 * obj was loaded from. E.g.
10926 * item: "key1" "value1";
10927 * item: "key2" "value2";
10935 EAPI const char *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
10940 * @param obj The layout object
10942 * Manually forces a sizing re-evaluation. This is useful when the minimum
10943 * size required by the edje theme of this layout has changed. The change on
10944 * the minimum size required by the edje theme is not immediately reported to
10945 * the elementary layout, so one needs to call this function in order to tell
10946 * the widget (layout) that it needs to reevaluate its own size.
10948 * The minimum size of the theme is calculated based on minimum size of
10949 * parts, the size of elements inside containers like box and table, etc. All
10950 * of this can change due to state changes, and that's when this function
10951 * should be called.
10953 * Also note that a standard signal of "size,eval" "elm" emitted from the
10954 * edje object will cause this to happen too.
10958 EAPI void elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
10961 * Sets a specific cursor for an edje part.
10963 * @param obj The layout object.
10964 * @param part_name a part from loaded edje group.
10965 * @param cursor cursor name to use, see Elementary_Cursor.h
10967 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10968 * part not exists or it has "mouse_events: 0".
10972 EAPI Eina_Bool elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
10975 * Get the cursor to be shown when mouse is over an edje part
10977 * @param obj The layout object.
10978 * @param part_name a part from loaded edje group.
10979 * @return the cursor name.
10983 EAPI const char *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10986 * Unsets a cursor previously set with elm_layout_part_cursor_set().
10988 * @param obj The layout object.
10989 * @param part_name a part from loaded edje group, that had a cursor set
10990 * with elm_layout_part_cursor_set().
10994 EAPI void elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10997 * Sets a specific cursor style for an edje part.
10999 * @param obj The layout object.
11000 * @param part_name a part from loaded edje group.
11001 * @param style the theme style to use (default, transparent, ...)
11003 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
11004 * part not exists or it did not had a cursor set.
11008 EAPI Eina_Bool elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
11011 * Gets a specific cursor style for an edje part.
11013 * @param obj The layout object.
11014 * @param part_name a part from loaded edje group.
11016 * @return the theme style in use, defaults to "default". If the
11017 * object does not have a cursor set, then NULL is returned.
11021 EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
11024 * Sets if the cursor set should be searched on the theme or should use
11025 * the provided by the engine, only.
11027 * @note before you set if should look on theme you should define a
11028 * cursor with elm_layout_part_cursor_set(). By default it will only
11029 * look for cursors provided by the engine.
11031 * @param obj The layout object.
11032 * @param part_name a part from loaded edje group.
11033 * @param engine_only if cursors should be just provided by the engine (EINA_TRUE)
11034 * or should also search on widget's theme as well (EINA_FALSE)
11036 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
11037 * part not exists or it did not had a cursor set.
11041 EAPI Eina_Bool elm_layout_part_cursor_engine_only_set(Evas_Object *obj, const char *part_name, Eina_Bool engine_only) EINA_ARG_NONNULL(1, 2);
11044 * Gets a specific cursor engine_only for an edje part.
11046 * @param obj The layout object.
11047 * @param part_name a part from loaded edje group.
11049 * @return whenever the cursor is just provided by engine or also from theme.
11053 EAPI Eina_Bool elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
11056 * @def elm_layout_icon_set
11057 * Convenience macro to set the icon object in a layout that follows the
11058 * Elementary naming convention for its parts.
11062 #define elm_layout_icon_set(_ly, _obj) \
11065 elm_object_part_content_set((_ly), "elm.swallow.icon", (_obj)); \
11066 if ((_obj)) sig = "elm,state,icon,visible"; \
11067 else sig = "elm,state,icon,hidden"; \
11068 elm_object_signal_emit((_ly), sig, "elm"); \
11072 * @def elm_layout_icon_get
11073 * Convienience macro to get the icon object from a layout that follows the
11074 * Elementary naming convention for its parts.
11078 #define elm_layout_icon_get(_ly) \
11079 elm_object_part_content_get((_ly), "elm.swallow.icon")
11082 * @def elm_layout_end_set
11083 * Convienience macro to set the end object in a layout that follows the
11084 * Elementary naming convention for its parts.
11088 #define elm_layout_end_set(_ly, _obj) \
11091 elm_object_part_content_set((_ly), "elm.swallow.end", (_obj)); \
11092 if ((_obj)) sig = "elm,state,end,visible"; \
11093 else sig = "elm,state,end,hidden"; \
11094 elm_object_signal_emit((_ly), sig, "elm"); \
11098 * @def elm_layout_end_get
11099 * Convienience macro to get the end object in a layout that follows the
11100 * Elementary naming convention for its parts.
11104 #define elm_layout_end_get(_ly) \
11105 elm_object_part_content_get((_ly), "elm.swallow.end")
11108 * @def elm_layout_label_set
11109 * Convienience macro to set the label in a layout that follows the
11110 * Elementary naming convention for its parts.
11113 * @deprecated use elm_object_text_set() instead.
11115 #define elm_layout_label_set(_ly, _txt) \
11116 elm_layout_text_set((_ly), "elm.text", (_txt))
11119 * @def elm_layout_label_get
11120 * Convenience macro to get the label in a layout that follows the
11121 * Elementary naming convention for its parts.
11124 * @deprecated use elm_object_text_set() instead.
11126 #define elm_layout_label_get(_ly) \
11127 elm_layout_text_get((_ly), "elm.text")
11129 /* smart callbacks called:
11130 * "theme,changed" - when elm theme is changed.
11134 * @defgroup Notify Notify
11136 * @image html img/widget/notify/preview-00.png
11137 * @image latex img/widget/notify/preview-00.eps
11139 * Display a container in a particular region of the parent(top, bottom,
11140 * etc). A timeout can be set to automatically hide the notify. This is so
11141 * that, after an evas_object_show() on a notify object, if a timeout was set
11142 * on it, it will @b automatically get hidden after that time.
11144 * Signals that you can add callbacks for are:
11145 * @li "timeout" - when timeout happens on notify and it's hidden
11146 * @li "block,clicked" - when a click outside of the notify happens
11148 * Default contents parts of the notify widget that you can use for are:
11149 * @li "default" - A content of the notify
11151 * @ref tutorial_notify show usage of the API.
11157 * @brief Possible orient values for notify.
11159 * This values should be used in conjunction to elm_notify_orient_set() to
11160 * set the position in which the notify should appear(relative to its parent)
11161 * and in conjunction with elm_notify_orient_get() to know where the notify
11164 typedef enum _Elm_Notify_Orient
11166 ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
11167 ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
11168 ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
11169 ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
11170 ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
11171 ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
11172 ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
11173 ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
11174 ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
11175 ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
11176 } Elm_Notify_Orient;
11179 * @brief Add a new notify to the parent
11181 * @param parent The parent object
11182 * @return The new object or NULL if it cannot be created
11184 EAPI Evas_Object *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11187 * @brief Set the content of the notify widget
11189 * @param obj The notify object
11190 * @param content The content will be filled in this notify object
11192 * Once the content object is set, a previously set one will be deleted. If
11193 * you want to keep that old content object, use the
11194 * elm_notify_content_unset() function.
11196 * @deprecated use elm_object_content_set() instead
11199 EINA_DEPRECATED EAPI void elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
11202 * @brief Unset the content of the notify widget
11204 * @param obj The notify object
11205 * @return The content that was being used
11207 * Unparent and return the content object which was set for this widget
11209 * @see elm_notify_content_set()
11210 * @deprecated use elm_object_content_unset() instead
11213 EINA_DEPRECATED EAPI Evas_Object *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11216 * @brief Return the content of the notify widget
11218 * @param obj The notify object
11219 * @return The content that is being used
11221 * @see elm_notify_content_set()
11222 * @deprecated use elm_object_content_get() instead
11225 EINA_DEPRECATED EAPI Evas_Object *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11228 * @brief Set the notify parent
11230 * @param obj The notify object
11231 * @param content The new parent
11233 * Once the parent object is set, a previously set one will be disconnected
11236 EAPI void elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11239 * @brief Get the notify parent
11241 * @param obj The notify object
11242 * @return The parent
11244 * @see elm_notify_parent_set()
11246 EAPI Evas_Object *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11249 * @brief Set the orientation
11251 * @param obj The notify object
11252 * @param orient The new orientation
11254 * Sets the position in which the notify will appear in its parent.
11256 * @see @ref Elm_Notify_Orient for possible values.
11258 EAPI void elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
11261 * @brief Return the orientation
11262 * @param obj The notify object
11263 * @return The orientation of the notification
11265 * @see elm_notify_orient_set()
11266 * @see Elm_Notify_Orient
11268 EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11271 * @brief Set the time interval after which the notify window is going to be
11274 * @param obj The notify object
11275 * @param time The timeout in seconds
11277 * This function sets a timeout and starts the timer controlling when the
11278 * notify is hidden. Since calling evas_object_show() on a notify restarts
11279 * the timer controlling when the notify is hidden, setting this before the
11280 * notify is shown will in effect mean starting the timer when the notify is
11283 * @note Set a value <= 0.0 to disable a running timer.
11285 * @note If the value > 0.0 and the notify is previously visible, the
11286 * timer will be started with this value, canceling any running timer.
11288 EAPI void elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
11291 * @brief Return the timeout value (in seconds)
11292 * @param obj the notify object
11294 * @see elm_notify_timeout_set()
11296 EAPI double elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11299 * @brief Sets whether events should be passed to by a click outside
11302 * @param obj The notify object
11303 * @param repeats EINA_TRUE Events are repeats, else no
11305 * When true if the user clicks outside the window the events will be caught
11306 * by the others widgets, else the events are blocked.
11308 * @note The default value is EINA_TRUE.
11310 EAPI void elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
11313 * @brief Return true if events are repeat below the notify object
11314 * @param obj the notify object
11316 * @see elm_notify_repeat_events_set()
11318 EAPI Eina_Bool elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11325 * @defgroup Hover Hover
11327 * @image html img/widget/hover/preview-00.png
11328 * @image latex img/widget/hover/preview-00.eps
11330 * A Hover object will hover over its @p parent object at the @p target
11331 * location. Anything in the background will be given a darker coloring to
11332 * indicate that the hover object is on top (at the default theme). When the
11333 * hover is clicked it is dismissed(hidden), if the contents of the hover are
11334 * clicked that @b doesn't cause the hover to be dismissed.
11336 * A Hover object has two parents. One parent that owns it during creation
11337 * and the other parent being the one over which the hover object spans.
11340 * @note The hover object will take up the entire space of @p target
11343 * Elementary has the following styles for the hover widget:
11347 * @li hoversel_vertical
11349 * The following are the available position for content:
11361 * Signals that you can add callbacks for are:
11362 * @li "clicked" - the user clicked the empty space in the hover to dismiss
11363 * @li "smart,changed" - a content object placed under the "smart"
11364 * policy was replaced to a new slot direction.
11366 * See @ref tutorial_hover for more information.
11370 typedef enum _Elm_Hover_Axis
11372 ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
11373 ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
11374 ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
11375 ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
11379 * @brief Adds a hover object to @p parent
11381 * @param parent The parent object
11382 * @return The hover object or NULL if one could not be created
11384 EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11387 * @brief Sets the target object for the hover.
11389 * @param obj The hover object
11390 * @param target The object to center the hover onto.
11392 * This function will cause the hover to be centered on the target object.
11394 EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
11397 * @brief Gets the target object for the hover.
11399 * @param obj The hover object
11400 * @return The target object for the hover.
11402 * @see elm_hover_target_set()
11404 EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11407 * @brief Sets the parent object for the hover.
11409 * @param obj The hover object
11410 * @param parent The object to locate the hover over.
11412 * This function will cause the hover to take up the entire space that the
11413 * parent object fills.
11415 EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11418 * @brief Gets the parent object for the hover.
11420 * @param obj The hover object
11421 * @return The parent object to locate the hover over.
11423 * @see elm_hover_parent_set()
11425 EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11428 * @brief Sets the content of the hover object and the direction in which it
11431 * @param obj The hover object
11432 * @param swallow The direction that the object will be displayed
11433 * at. Accepted values are "left", "top-left", "top", "top-right",
11434 * "right", "bottom-right", "bottom", "bottom-left", "middle" and
11436 * @param content The content to place at @p swallow
11438 * Once the content object is set for a given direction, a previously
11439 * set one (on the same direction) will be deleted. If you want to
11440 * keep that old content object, use the elm_hover_content_unset()
11443 * All directions may have contents at the same time, except for
11444 * "smart". This is a special placement hint and its use case
11445 * independs of the calculations coming from
11446 * elm_hover_best_content_location_get(). Its use is for cases when
11447 * one desires only one hover content, but with a dynamic special
11448 * placement within the hover area. The content's geometry, whenever
11449 * it changes, will be used to decide on a best location, not
11450 * extrapolating the hover's parent object view to show it in (still
11451 * being the hover's target determinant of its medium part -- move and
11452 * resize it to simulate finger sizes, for example). If one of the
11453 * directions other than "smart" are used, a previously content set
11454 * using it will be deleted, and vice-versa.
11456 EAPI void elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
11459 * @brief Get the content of the hover object, in a given direction.
11461 * Return the content object which was set for this widget in the
11462 * @p swallow direction.
11464 * @param obj The hover object
11465 * @param swallow The direction that the object was display at.
11466 * @return The content that was being used
11468 * @see elm_hover_content_set()
11470 EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
11473 * @brief Unset the content of the hover object, in a given direction.
11475 * Unparent and return the content object set at @p swallow direction.
11477 * @param obj The hover object
11478 * @param swallow The direction that the object was display at.
11479 * @return The content that was being used.
11481 * @see elm_hover_content_set()
11483 EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
11486 * @brief Returns the best swallow location for content in the hover.
11488 * @param obj The hover object
11489 * @param pref_axis The preferred orientation axis for the hover object to use
11490 * @return The edje location to place content into the hover or @c
11493 * Best is defined here as the location at which there is the most available
11496 * @p pref_axis may be one of
11497 * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
11498 * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
11499 * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
11500 * - @c ELM_HOVER_AXIS_BOTH -- both
11502 * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
11503 * nescessarily be along the horizontal axis("left" or "right"). If
11504 * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
11505 * be along the vertical axis("top" or "bottom"). Chossing
11506 * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
11507 * returned position may be in either axis.
11509 * @see elm_hover_content_set()
11511 EAPI const char *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
11519 * @defgroup Entry Entry
11521 * @image html img/widget/entry/preview-00.png
11522 * @image latex img/widget/entry/preview-00.eps width=\textwidth
11523 * @image html img/widget/entry/preview-01.png
11524 * @image latex img/widget/entry/preview-01.eps width=\textwidth
11525 * @image html img/widget/entry/preview-02.png
11526 * @image latex img/widget/entry/preview-02.eps width=\textwidth
11527 * @image html img/widget/entry/preview-03.png
11528 * @image latex img/widget/entry/preview-03.eps width=\textwidth
11530 * An entry is a convenience widget which shows a box that the user can
11531 * enter text into. Entries by default don't scroll, so they grow to
11532 * accomodate the entire text, resizing the parent window as needed. This
11533 * can be changed with the elm_entry_scrollable_set() function.
11535 * They can also be single line or multi line (the default) and when set
11536 * to multi line mode they support text wrapping in any of the modes
11537 * indicated by #Elm_Wrap_Type.
11539 * Other features include password mode, filtering of inserted text with
11540 * elm_entry_text_filter_append() and related functions, inline "items" and
11541 * formatted markup text.
11543 * @section entry-markup Formatted text
11545 * The markup tags supported by the Entry are defined by the theme, but
11546 * even when writing new themes or extensions it's a good idea to stick to
11547 * a sane default, to maintain coherency and avoid application breakages.
11548 * Currently defined by the default theme are the following tags:
11549 * @li \<br\>: Inserts a line break.
11550 * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
11552 * @li \<tab\>: Inserts a tab.
11553 * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
11555 * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
11556 * @li \<link\>...\</link\>: Underlines the enclosed text.
11557 * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
11559 * @section entry-special Special markups
11561 * Besides those used to format text, entries support two special markup
11562 * tags used to insert clickable portions of text or items inlined within
11565 * @subsection entry-anchors Anchors
11567 * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
11568 * \</a\> tags and an event will be generated when this text is clicked,
11572 * This text is outside <a href=anc-01>but this one is an anchor</a>
11575 * The @c href attribute in the opening tag gives the name that will be
11576 * used to identify the anchor and it can be any valid utf8 string.
11578 * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
11579 * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
11580 * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
11581 * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
11584 * @subsection entry-items Items
11586 * Inlined in the text, any other @c Evas_Object can be inserted by using
11587 * \<item\> tags this way:
11590 * <item size=16x16 vsize=full href=emoticon/haha></item>
11593 * Just like with anchors, the @c href identifies each item, but these need,
11594 * in addition, to indicate their size, which is done using any one of
11595 * @c size, @c absize or @c relsize attributes. These attributes take their
11596 * value in the WxH format, where W is the width and H the height of the
11599 * @li absize: Absolute pixel size for the item. Whatever value is set will
11600 * be the item's size regardless of any scale value the object may have
11601 * been set to. The final line height will be adjusted to fit larger items.
11602 * @li size: Similar to @c absize, but it's adjusted to the scale value set
11604 * @li relsize: Size is adjusted for the item to fit within the current
11607 * Besides their size, items are specificed a @c vsize value that affects
11608 * how their final size and position are calculated. The possible values
11610 * @li ascent: Item will be placed within the line's baseline and its
11611 * ascent. That is, the height between the line where all characters are
11612 * positioned and the highest point in the line. For @c size and @c absize
11613 * items, the descent value will be added to the total line height to make
11614 * them fit. @c relsize items will be adjusted to fit within this space.
11615 * @li full: Items will be placed between the descent and ascent, or the
11616 * lowest point in the line and its highest.
11618 * The next image shows different configurations of items and how
11619 * the previously mentioned options affect their sizes. In all cases,
11620 * the green line indicates the ascent, blue for the baseline and red for
11623 * @image html entry_item.png
11624 * @image latex entry_item.eps width=\textwidth
11626 * And another one to show how size differs from absize. In the first one,
11627 * the scale value is set to 1.0, while the second one is using one of 2.0.
11629 * @image html entry_item_scale.png
11630 * @image latex entry_item_scale.eps width=\textwidth
11632 * After the size for an item is calculated, the entry will request an
11633 * object to place in its space. For this, the functions set with
11634 * elm_entry_item_provider_append() and related functions will be called
11635 * in order until one of them returns a @c non-NULL value. If no providers
11636 * are available, or all of them return @c NULL, then the entry falls back
11637 * to one of the internal defaults, provided the name matches with one of
11640 * All of the following are currently supported:
11643 * - emoticon/angry-shout
11644 * - emoticon/crazy-laugh
11645 * - emoticon/evil-laugh
11647 * - emoticon/goggle-smile
11648 * - emoticon/grumpy
11649 * - emoticon/grumpy-smile
11650 * - emoticon/guilty
11651 * - emoticon/guilty-smile
11653 * - emoticon/half-smile
11654 * - emoticon/happy-panting
11656 * - emoticon/indifferent
11658 * - emoticon/knowing-grin
11660 * - emoticon/little-bit-sorry
11661 * - emoticon/love-lots
11663 * - emoticon/minimal-smile
11664 * - emoticon/not-happy
11665 * - emoticon/not-impressed
11667 * - emoticon/opensmile
11670 * - emoticon/squint-laugh
11671 * - emoticon/surprised
11672 * - emoticon/suspicious
11673 * - emoticon/tongue-dangling
11674 * - emoticon/tongue-poke
11676 * - emoticon/unhappy
11677 * - emoticon/very-sorry
11680 * - emoticon/worried
11683 * Alternatively, an item may reference an image by its path, using
11684 * the URI form @c file:///path/to/an/image.png and the entry will then
11685 * use that image for the item.
11687 * @section entry-files Loading and saving files
11689 * Entries have convinience functions to load text from a file and save
11690 * changes back to it after a short delay. The automatic saving is enabled
11691 * by default, but can be disabled with elm_entry_autosave_set() and files
11692 * can be loaded directly as plain text or have any markup in them
11693 * recognized. See elm_entry_file_set() for more details.
11695 * @section entry-signals Emitted signals
11697 * This widget emits the following signals:
11699 * @li "changed": The text within the entry was changed.
11700 * @li "changed,user": The text within the entry was changed because of user interaction.
11701 * @li "activated": The enter key was pressed on a single line entry.
11702 * @li "press": A mouse button has been pressed on the entry.
11703 * @li "longpressed": A mouse button has been pressed and held for a couple
11705 * @li "clicked": The entry has been clicked (mouse press and release).
11706 * @li "clicked,double": The entry has been double clicked.
11707 * @li "clicked,triple": The entry has been triple clicked.
11708 * @li "focused": The entry has received focus.
11709 * @li "unfocused": The entry has lost focus.
11710 * @li "selection,paste": A paste of the clipboard contents was requested.
11711 * @li "selection,copy": A copy of the selected text into the clipboard was
11713 * @li "selection,cut": A cut of the selected text into the clipboard was
11715 * @li "selection,start": A selection has begun and no previous selection
11717 * @li "selection,changed": The current selection has changed.
11718 * @li "selection,cleared": The current selection has been cleared.
11719 * @li "cursor,changed": The cursor has changed position.
11720 * @li "anchor,clicked": An anchor has been clicked. The event_info
11721 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11722 * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
11723 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11724 * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
11725 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11726 * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
11727 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11728 * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
11729 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11730 * @li "preedit,changed": The preedit string has changed.
11731 * @li "language,changed": Program language changed.
11733 * @section entry-examples
11735 * An overview of the Entry API can be seen in @ref entry_example_01
11741 * @typedef Elm_Entry_Anchor_Info
11743 * The info sent in the callback for the "anchor,clicked" signals emitted
11746 typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
11749 * @struct _Elm_Entry_Anchor_Info
11751 * The info sent in the callback for the "anchor,clicked" signals emitted
11754 struct _Elm_Entry_Anchor_Info
11756 const char *name; /**< The name of the anchor, as stated in its href */
11757 int button; /**< The mouse button used to click on it */
11758 Evas_Coord x, /**< Anchor geometry, relative to canvas */
11759 y, /**< Anchor geometry, relative to canvas */
11760 w, /**< Anchor geometry, relative to canvas */
11761 h; /**< Anchor geometry, relative to canvas */
11765 * @typedef Elm_Entry_Filter_Cb
11766 * This callback type is used by entry filters to modify text.
11767 * @param data The data specified as the last param when adding the filter
11768 * @param entry The entry object
11769 * @param text A pointer to the location of the text being filtered. This data can be modified,
11770 * but any additional allocations must be managed by the user.
11771 * @see elm_entry_text_filter_append
11772 * @see elm_entry_text_filter_prepend
11774 typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
11777 * @typedef Elm_Entry_Change_Info
11778 * This corresponds to Edje_Entry_Change_Info. Includes information about
11779 * a change in the entry.
11781 typedef Edje_Entry_Change_Info Elm_Entry_Change_Info;
11785 * This adds an entry to @p parent object.
11787 * By default, entries are:
11791 * @li autosave is enabled
11793 * @param parent The parent object
11794 * @return The new object or NULL if it cannot be created
11796 EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11799 * Sets the entry to single line mode.
11801 * In single line mode, entries don't ever wrap when the text reaches the
11802 * edge, and instead they keep growing horizontally. Pressing the @c Enter
11803 * key will generate an @c "activate" event instead of adding a new line.
11805 * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
11806 * and pressing enter will break the text into a different line
11807 * without generating any events.
11809 * @param obj The entry object
11810 * @param single_line If true, the text in the entry
11811 * will be on a single line.
11813 EAPI void elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
11816 * Gets whether the entry is set to be single line.
11818 * @param obj The entry object
11819 * @return single_line If true, the text in the entry is set to display
11820 * on a single line.
11822 * @see elm_entry_single_line_set()
11824 EAPI Eina_Bool elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11827 * Sets the entry to password mode.
11829 * In password mode, entries are implicitly single line and the display of
11830 * any text in them is replaced with asterisks (*).
11832 * @param obj The entry object
11833 * @param password If true, password mode is enabled.
11835 EAPI void elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
11838 * Gets whether the entry is set to password mode.
11840 * @param obj The entry object
11841 * @return If true, the entry is set to display all characters
11842 * as asterisks (*).
11844 * @see elm_entry_password_set()
11846 EAPI Eina_Bool elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11849 * This sets the text displayed within the entry to @p entry.
11851 * @param obj The entry object
11852 * @param entry The text to be displayed
11854 * @deprecated Use elm_object_text_set() instead.
11855 * @note Using this function bypasses text filters
11857 EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11860 * This returns the text currently shown in object @p entry.
11861 * See also elm_entry_entry_set().
11863 * @param obj The entry object
11864 * @return The currently displayed text or NULL on failure
11866 * @deprecated Use elm_object_text_get() instead.
11868 EAPI const char *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11871 * Appends @p entry to the text of the entry.
11873 * Adds the text in @p entry to the end of any text already present in the
11876 * The appended text is subject to any filters set for the widget.
11878 * @param obj The entry object
11879 * @param entry The text to be displayed
11881 * @see elm_entry_text_filter_append()
11883 EAPI void elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11886 * Gets whether the entry is empty.
11888 * Empty means no text at all. If there are any markup tags, like an item
11889 * tag for which no provider finds anything, and no text is displayed, this
11890 * function still returns EINA_FALSE.
11892 * @param obj The entry object
11893 * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
11895 EAPI Eina_Bool elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11898 * Gets any selected text within the entry.
11900 * If there's any selected text in the entry, this function returns it as
11901 * a string in markup format. NULL is returned if no selection exists or
11902 * if an error occurred.
11904 * The returned value points to an internal string and should not be freed
11905 * or modified in any way. If the @p entry object is deleted or its
11906 * contents are changed, the returned pointer should be considered invalid.
11908 * @param obj The entry object
11909 * @return The selected text within the entry or NULL on failure
11911 EAPI const char *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11914 * Returns the actual textblock object of the entry.
11916 * This function exposes the internal textblock object that actually
11917 * contains and draws the text. This should be used for low-level
11918 * manipulations that are otherwise not possible.
11920 * Changing the textblock directly from here will not notify edje/elm to
11921 * recalculate the textblock size automatically, so any modifications
11922 * done to the textblock returned by this function should be followed by
11923 * a call to elm_entry_calc_force().
11925 * The return value is marked as const as an additional warning.
11926 * One should not use the returned object with any of the generic evas
11927 * functions (geometry_get/resize/move and etc), but only with the textblock
11928 * functions; The former will either not work at all, or break the correct
11931 * IMPORTANT: Many functions may change (i.e delete and create a new one)
11932 * the internal textblock object. Do NOT cache the returned object, and try
11933 * not to mix calls on this object with regular elm_entry calls (which may
11934 * change the internal textblock object). This applies to all cursors
11935 * returned from textblock calls, and all the other derivative values.
11937 * @param obj The entry object
11938 * @return The textblock object.
11940 EAPI const Evas_Object *elm_entry_textblock_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11943 * Forces calculation of the entry size and text layouting.
11945 * This should be used after modifying the textblock object directly. See
11946 * elm_entry_textblock_get() for more information.
11948 * @param obj The entry object
11950 * @see elm_entry_textblock_get()
11952 EAPI void elm_entry_calc_force(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11955 * Inserts the given text into the entry at the current cursor position.
11957 * This inserts text at the cursor position as if it was typed
11958 * by the user (note that this also allows markup which a user
11959 * can't just "type" as it would be converted to escaped text, so this
11960 * call can be used to insert things like emoticon items or bold push/pop
11961 * tags, other font and color change tags etc.)
11963 * If any selection exists, it will be replaced by the inserted text.
11965 * The inserted text is subject to any filters set for the widget.
11967 * @param obj The entry object
11968 * @param entry The text to insert
11970 * @see elm_entry_text_filter_append()
11972 EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11975 * Set the line wrap type to use on multi-line entries.
11977 * Sets the wrap type used by the entry to any of the specified in
11978 * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
11979 * line (without inserting a line break or paragraph separator) when it
11980 * reaches the far edge of the widget.
11982 * Note that this only makes sense for multi-line entries. A widget set
11983 * to be single line will never wrap.
11985 * @param obj The entry object
11986 * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
11988 EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
11991 * Gets the wrap mode the entry was set to use.
11993 * @param obj The entry object
11994 * @return Wrap type
11996 * @see also elm_entry_line_wrap_set()
11998 EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12001 * Sets if the entry is to be editable or not.
12003 * By default, entries are editable and when focused, any text input by the
12004 * user will be inserted at the current cursor position. But calling this
12005 * function with @p editable as EINA_FALSE will prevent the user from
12006 * inputting text into the entry.
12008 * The only way to change the text of a non-editable entry is to use
12009 * elm_object_text_set(), elm_entry_entry_insert() and other related
12012 * @param obj The entry object
12013 * @param editable If EINA_TRUE, user input will be inserted in the entry,
12014 * if not, the entry is read-only and no user input is allowed.
12016 EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
12019 * Gets whether the entry is editable or not.
12021 * @param obj The entry object
12022 * @return If true, the entry is editable by the user.
12023 * If false, it is not editable by the user
12025 * @see elm_entry_editable_set()
12027 EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12030 * This drops any existing text selection within the entry.
12032 * @param obj The entry object
12034 EAPI void elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
12037 * This selects all text within the entry.
12039 * @param obj The entry object
12041 EAPI void elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
12044 * This moves the cursor one place to the right within the entry.
12046 * @param obj The entry object
12047 * @return EINA_TRUE upon success, EINA_FALSE upon failure
12049 EAPI Eina_Bool elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
12052 * This moves the cursor one place to the left within the entry.
12054 * @param obj The entry object
12055 * @return EINA_TRUE upon success, EINA_FALSE upon failure
12057 EAPI Eina_Bool elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
12060 * This moves the cursor one line up within the entry.
12062 * @param obj The entry object
12063 * @return EINA_TRUE upon success, EINA_FALSE upon failure
12065 EAPI Eina_Bool elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
12068 * This moves the cursor one line down within the entry.
12070 * @param obj The entry object
12071 * @return EINA_TRUE upon success, EINA_FALSE upon failure
12073 EAPI Eina_Bool elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
12076 * This moves the cursor to the beginning of the entry.
12078 * @param obj The entry object
12080 EAPI void elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12083 * This moves the cursor to the end of the entry.
12085 * @param obj The entry object
12087 EAPI void elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12090 * This moves the cursor to the beginning of the current line.
12092 * @param obj The entry object
12094 EAPI void elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12097 * This moves the cursor to the end of the current line.
12099 * @param obj The entry object
12101 EAPI void elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
12104 * This begins a selection within the entry as though
12105 * the user were holding down the mouse button to make a selection.
12107 * @param obj The entry object
12109 EAPI void elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
12112 * This ends a selection within the entry as though
12113 * the user had just released the mouse button while making a selection.
12115 * @param obj The entry object
12117 EAPI void elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12120 * Gets whether a format node exists at the current cursor position.
12122 * A format node is anything that defines how the text is rendered. It can
12123 * be a visible format node, such as a line break or a paragraph separator,
12124 * or an invisible one, such as bold begin or end tag.
12125 * This function returns whether any format node exists at the current
12128 * @param obj The entry object
12129 * @return EINA_TRUE if the current cursor position contains a format node,
12130 * EINA_FALSE otherwise.
12132 * @see elm_entry_cursor_is_visible_format_get()
12134 EAPI Eina_Bool elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12137 * Gets if the current cursor position holds a visible format node.
12139 * @param obj The entry object
12140 * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
12141 * if it's an invisible one or no format exists.
12143 * @see elm_entry_cursor_is_format_get()
12145 EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12148 * Gets the character pointed by the cursor at its current position.
12150 * This function returns a string with the utf8 character stored at the
12151 * current cursor position.
12152 * Only the text is returned, any format that may exist will not be part
12153 * of the return value.
12155 * @param obj The entry object
12156 * @return The text pointed by the cursors.
12158 EAPI const char *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12161 * This function returns the geometry of the cursor.
12163 * It's useful if you want to draw something on the cursor (or where it is),
12164 * or for example in the case of scrolled entry where you want to show the
12167 * @param obj The entry object
12168 * @param x returned geometry
12169 * @param y returned geometry
12170 * @param w returned geometry
12171 * @param h returned geometry
12172 * @return EINA_TRUE upon success, EINA_FALSE upon failure
12174 EAPI Eina_Bool elm_entry_cursor_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
12177 * Sets the cursor position in the entry to the given value
12179 * The value in @p pos is the index of the character position within the
12180 * contents of the string as returned by elm_entry_cursor_pos_get().
12182 * @param obj The entry object
12183 * @param pos The position of the cursor
12185 EAPI void elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
12188 * Retrieves the current position of the cursor in the entry
12190 * @param obj The entry object
12191 * @return The cursor position
12193 EAPI int elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12196 * This executes a "cut" action on the selected text in the entry.
12198 * @param obj The entry object
12200 EAPI void elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
12203 * This executes a "copy" action on the selected text in the entry.
12205 * @param obj The entry object
12207 EAPI void elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
12210 * This executes a "paste" action in the entry.
12212 * @param obj The entry object
12214 EAPI void elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
12217 * This clears and frees the items in a entry's contextual (longpress)
12220 * @param obj The entry object
12222 * @see elm_entry_context_menu_item_add()
12224 EAPI void elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
12227 * This adds an item to the entry's contextual menu.
12229 * A longpress on an entry will make the contextual menu show up, if this
12230 * hasn't been disabled with elm_entry_context_menu_disabled_set().
12231 * By default, this menu provides a few options like enabling selection mode,
12232 * which is useful on embedded devices that need to be explicit about it,
12233 * and when a selection exists it also shows the copy and cut actions.
12235 * With this function, developers can add other options to this menu to
12236 * perform any action they deem necessary.
12238 * @param obj The entry object
12239 * @param label The item's text label
12240 * @param icon_file The item's icon file
12241 * @param icon_type The item's icon type
12242 * @param func The callback to execute when the item is clicked
12243 * @param data The data to associate with the item for related functions
12245 EAPI void elm_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
12248 * This disables the entry's contextual (longpress) menu.
12250 * @param obj The entry object
12251 * @param disabled If true, the menu is disabled
12253 EAPI void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
12256 * This returns whether the entry's contextual (longpress) menu is
12259 * @param obj The entry object
12260 * @return If true, the menu is disabled
12262 EAPI Eina_Bool elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12265 * This appends a custom item provider to the list for that entry
12267 * This appends the given callback. The list is walked from beginning to end
12268 * with each function called given the item href string in the text. If the
12269 * function returns an object handle other than NULL (it should create an
12270 * object to do this), then this object is used to replace that item. If
12271 * not the next provider is called until one provides an item object, or the
12272 * default provider in entry does.
12274 * @param obj The entry object
12275 * @param func The function called to provide the item object
12276 * @param data The data passed to @p func
12278 * @see @ref entry-items
12280 EAPI void elm_entry_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12283 * This prepends a custom item provider to the list for that entry
12285 * This prepends the given callback. See elm_entry_item_provider_append() for
12288 * @param obj The entry object
12289 * @param func The function called to provide the item object
12290 * @param data The data passed to @p func
12292 EAPI void elm_entry_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12295 * This removes a custom item provider to the list for that entry
12297 * This removes the given callback. See elm_entry_item_provider_append() for
12300 * @param obj The entry object
12301 * @param func The function called to provide the item object
12302 * @param data The data passed to @p func
12304 EAPI void elm_entry_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12307 * Append a filter function for text inserted in the entry
12309 * Append the given callback to the list. This functions will be called
12310 * whenever any text is inserted into the entry, with the text to be inserted
12311 * as a parameter. The callback function is free to alter the text in any way
12312 * it wants, but it must remember to free the given pointer and update it.
12313 * If the new text is to be discarded, the function can free it and set its
12314 * text parameter to NULL. This will also prevent any following filters from
12317 * @param obj The entry object
12318 * @param func The function to use as text filter
12319 * @param data User data to pass to @p func
12321 EAPI void elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
12324 * Prepend a filter function for text insdrted in the entry
12326 * Prepend the given callback to the list. See elm_entry_text_filter_append()
12327 * for more information
12329 * @param obj The entry object
12330 * @param func The function to use as text filter
12331 * @param data User data to pass to @p func
12333 EAPI void elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
12336 * Remove a filter from the list
12338 * Removes the given callback from the filter list. See
12339 * elm_entry_text_filter_append() for more information.
12341 * @param obj The entry object
12342 * @param func The filter function to remove
12343 * @param data The user data passed when adding the function
12345 EAPI void elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
12348 * This converts a markup (HTML-like) string into UTF-8.
12350 * The returned string is a malloc'ed buffer and it should be freed when
12351 * not needed anymore.
12353 * @param s The string (in markup) to be converted
12354 * @return The converted string (in UTF-8). It should be freed.
12356 EAPI char *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
12359 * This converts a UTF-8 string into markup (HTML-like).
12361 * The returned string is a malloc'ed buffer and it should be freed when
12362 * not needed anymore.
12364 * @param s The string (in UTF-8) to be converted
12365 * @return The converted string (in markup). It should be freed.
12367 EAPI char *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
12370 * This sets the file (and implicitly loads it) for the text to display and
12371 * then edit. All changes are written back to the file after a short delay if
12372 * the entry object is set to autosave (which is the default).
12374 * If the entry had any other file set previously, any changes made to it
12375 * will be saved if the autosave feature is enabled, otherwise, the file
12376 * will be silently discarded and any non-saved changes will be lost.
12378 * @param obj The entry object
12379 * @param file The path to the file to load and save
12380 * @param format The file format
12382 EAPI void elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
12385 * Gets the file being edited by the entry.
12387 * This function can be used to retrieve any file set on the entry for
12388 * edition, along with the format used to load and save it.
12390 * @param obj The entry object
12391 * @param file The path to the file to load and save
12392 * @param format The file format
12394 EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
12397 * This function writes any changes made to the file set with
12398 * elm_entry_file_set()
12400 * @param obj The entry object
12402 EAPI void elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
12405 * This sets the entry object to 'autosave' the loaded text file or not.
12407 * @param obj The entry object
12408 * @param autosave Autosave the loaded file or not
12410 * @see elm_entry_file_set()
12412 EAPI void elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
12415 * This gets the entry object's 'autosave' status.
12417 * @param obj The entry object
12418 * @return Autosave the loaded file or not
12420 * @see elm_entry_file_set()
12422 EAPI Eina_Bool elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12425 * Control pasting of text and images for the widget.
12427 * Normally the entry allows both text and images to be pasted. By setting
12428 * textonly to be true, this prevents images from being pasted.
12430 * Note this only changes the behaviour of text.
12432 * @param obj The entry object
12433 * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
12434 * text+image+other.
12436 EAPI void elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
12439 * Getting elm_entry text paste/drop mode.
12441 * In textonly mode, only text may be pasted or dropped into the widget.
12443 * @param obj The entry object
12444 * @return If the widget only accepts text from pastes.
12446 EAPI Eina_Bool elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12449 * Enable or disable scrolling in entry
12451 * Normally the entry is not scrollable unless you enable it with this call.
12453 * @param obj The entry object
12454 * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
12456 EAPI void elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
12459 * Get the scrollable state of the entry
12461 * Normally the entry is not scrollable. This gets the scrollable state
12462 * of the entry. See elm_entry_scrollable_set() for more information.
12464 * @param obj The entry object
12465 * @return The scrollable state
12467 EAPI Eina_Bool elm_entry_scrollable_get(const Evas_Object *obj);
12470 * This sets a widget to be displayed to the left of a scrolled entry.
12472 * @param obj The scrolled entry object
12473 * @param icon The widget to display on the left side of the scrolled
12476 * @note A previously set widget will be destroyed.
12477 * @note If the object being set does not have minimum size hints set,
12478 * it won't get properly displayed.
12480 * @see elm_entry_end_set()
12482 EAPI void elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
12485 * Gets the leftmost widget of the scrolled entry. This object is
12486 * owned by the scrolled entry and should not be modified.
12488 * @param obj The scrolled entry object
12489 * @return the left widget inside the scroller
12491 EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
12494 * Unset the leftmost widget of the scrolled entry, unparenting and
12497 * @param obj The scrolled entry object
12498 * @return the previously set icon sub-object of this entry, on
12501 * @see elm_entry_icon_set()
12503 EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
12506 * Sets the visibility of the left-side widget of the scrolled entry,
12507 * set by elm_entry_icon_set().
12509 * @param obj The scrolled entry object
12510 * @param setting EINA_TRUE if the object should be displayed,
12511 * EINA_FALSE if not.
12513 EAPI void elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
12516 * This sets a widget to be displayed to the end of a scrolled entry.
12518 * @param obj The scrolled entry object
12519 * @param end The widget to display on the right side of the scrolled
12522 * @note A previously set widget will be destroyed.
12523 * @note If the object being set does not have minimum size hints set,
12524 * it won't get properly displayed.
12526 * @see elm_entry_icon_set
12528 EAPI void elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
12531 * Gets the endmost widget of the scrolled entry. This object is owned
12532 * by the scrolled entry and should not be modified.
12534 * @param obj The scrolled entry object
12535 * @return the right widget inside the scroller
12537 EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
12540 * Unset the endmost widget of the scrolled entry, unparenting and
12543 * @param obj The scrolled entry object
12544 * @return the previously set icon sub-object of this entry, on
12547 * @see elm_entry_icon_set()
12549 EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
12552 * Sets the visibility of the end widget of the scrolled entry, set by
12553 * elm_entry_end_set().
12555 * @param obj The scrolled entry object
12556 * @param setting EINA_TRUE if the object should be displayed,
12557 * EINA_FALSE if not.
12559 EAPI void elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
12562 * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
12565 * Setting an entry to single-line mode with elm_entry_single_line_set()
12566 * will automatically disable the display of scrollbars when the entry
12567 * moves inside its scroller.
12569 * @param obj The scrolled entry object
12570 * @param h The horizontal scrollbar policy to apply
12571 * @param v The vertical scrollbar policy to apply
12573 EAPI void elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
12576 * This enables/disables bouncing within the entry.
12578 * This function sets whether the entry will bounce when scrolling reaches
12579 * the end of the contained entry.
12581 * @param obj The scrolled entry object
12582 * @param h The horizontal bounce state
12583 * @param v The vertical bounce state
12585 EAPI void elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
12588 * Get the bounce mode
12590 * @param obj The Entry object
12591 * @param h_bounce Allow bounce horizontally
12592 * @param v_bounce Allow bounce vertically
12594 EAPI void elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
12596 /* pre-made filters for entries */
12598 * @typedef Elm_Entry_Filter_Limit_Size
12600 * Data for the elm_entry_filter_limit_size() entry filter.
12602 typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
12605 * @struct _Elm_Entry_Filter_Limit_Size
12607 * Data for the elm_entry_filter_limit_size() entry filter.
12609 struct _Elm_Entry_Filter_Limit_Size
12611 int max_char_count; /**< The maximum number of characters allowed. */
12612 int max_byte_count; /**< The maximum number of bytes allowed*/
12616 * Filter inserted text based on user defined character and byte limits
12618 * Add this filter to an entry to limit the characters that it will accept
12619 * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
12620 * The funtion works on the UTF-8 representation of the string, converting
12621 * it from the set markup, thus not accounting for any format in it.
12623 * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
12624 * it as data when setting the filter. In it, it's possible to set limits
12625 * by character count or bytes (any of them is disabled if 0), and both can
12626 * be set at the same time. In that case, it first checks for characters,
12629 * The function will cut the inserted text in order to allow only the first
12630 * number of characters that are still allowed. The cut is made in
12631 * characters, even when limiting by bytes, in order to always contain
12632 * valid ones and avoid half unicode characters making it in.
12634 * This filter, like any others, does not apply when setting the entry text
12635 * directly with elm_object_text_set() (or the deprecated
12636 * elm_entry_entry_set()).
12638 EAPI void elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
12641 * @typedef Elm_Entry_Filter_Accept_Set
12643 * Data for the elm_entry_filter_accept_set() entry filter.
12645 typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
12648 * @struct _Elm_Entry_Filter_Accept_Set
12650 * Data for the elm_entry_filter_accept_set() entry filter.
12652 struct _Elm_Entry_Filter_Accept_Set
12654 const char *accepted; /**< Set of characters accepted in the entry. */
12655 const char *rejected; /**< Set of characters rejected from the entry. */
12659 * Filter inserted text based on accepted or rejected sets of characters
12661 * Add this filter to an entry to restrict the set of accepted characters
12662 * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
12663 * This structure contains both accepted and rejected sets, but they are
12664 * mutually exclusive.
12666 * The @c accepted set takes preference, so if it is set, the filter will
12667 * only work based on the accepted characters, ignoring anything in the
12668 * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
12670 * In both cases, the function filters by matching utf8 characters to the
12671 * raw markup text, so it can be used to remove formatting tags.
12673 * This filter, like any others, does not apply when setting the entry text
12674 * directly with elm_object_text_set() (or the deprecated
12675 * elm_entry_entry_set()).
12677 EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
12679 * Set the input panel layout of the entry
12681 * @param obj The entry object
12682 * @param layout layout type
12684 EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
12687 * Get the input panel layout of the entry
12689 * @param obj The entry object
12690 * @return layout type
12692 * @see elm_entry_input_panel_layout_set
12694 EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12697 * Set the autocapitalization type on the immodule.
12699 * @param obj The entry object
12700 * @param autocapital_type The type of autocapitalization
12702 EAPI void elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
12705 * Retrieve the autocapitalization type on the immodule.
12707 * @param obj The entry object
12708 * @return autocapitalization type
12710 EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12713 * Sets the attribute to show the input panel automatically.
12715 * @param obj The entry object
12716 * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
12718 EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
12721 * Retrieve the attribute to show the input panel automatically.
12723 * @param obj The entry object
12724 * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
12726 EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12732 /* composite widgets - these basically put together basic widgets above
12733 * in convenient packages that do more than basic stuff */
12737 * @defgroup Anchorview Anchorview
12739 * @image html img/widget/anchorview/preview-00.png
12740 * @image latex img/widget/anchorview/preview-00.eps
12742 * Anchorview is for displaying text that contains markup with anchors
12743 * like <c>\<a href=1234\>something\</\></c> in it.
12745 * Besides being styled differently, the anchorview widget provides the
12746 * necessary functionality so that clicking on these anchors brings up a
12747 * popup with user defined content such as "call", "add to contacts" or
12748 * "open web page". This popup is provided using the @ref Hover widget.
12750 * This widget is very similar to @ref Anchorblock, so refer to that
12751 * widget for an example. The only difference Anchorview has is that the
12752 * widget is already provided with scrolling functionality, so if the
12753 * text set to it is too large to fit in the given space, it will scroll,
12754 * whereas the @ref Anchorblock widget will keep growing to ensure all the
12755 * text can be displayed.
12757 * This widget emits the following signals:
12758 * @li "anchor,clicked": will be called when an anchor is clicked. The
12759 * @p event_info parameter on the callback will be a pointer of type
12760 * ::Elm_Entry_Anchorview_Info.
12762 * See @ref Anchorblock for an example on how to use both of them.
12772 * @typedef Elm_Entry_Anchorview_Info
12774 * The info sent in the callback for "anchor,clicked" signals emitted by
12775 * the Anchorview widget.
12777 typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
12780 * @struct _Elm_Entry_Anchorview_Info
12782 * The info sent in the callback for "anchor,clicked" signals emitted by
12783 * the Anchorview widget.
12785 struct _Elm_Entry_Anchorview_Info
12787 const char *name; /**< Name of the anchor, as indicated in its href
12789 int button; /**< The mouse button used to click on it */
12790 Evas_Object *hover; /**< The hover object to use for the popup */
12792 Evas_Coord x, y, w, h;
12793 } anchor, /**< Geometry selection of text used as anchor */
12794 hover_parent; /**< Geometry of the object used as parent by the
12796 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
12797 for content on the left side of
12798 the hover. Before calling the
12799 callback, the widget will make the
12800 necessary calculations to check
12801 which sides are fit to be set with
12802 content, based on the position the
12803 hover is activated and its distance
12804 to the edges of its parent object
12806 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
12807 the right side of the hover.
12808 See @ref hover_left */
12809 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
12810 of the hover. See @ref hover_left */
12811 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
12812 below the hover. See @ref
12817 * Add a new Anchorview object
12819 * @param parent The parent object
12820 * @return The new object or NULL if it cannot be created
12822 EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12825 * Set the text to show in the anchorview
12827 * Sets the text of the anchorview to @p text. This text can include markup
12828 * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
12829 * text that will be specially styled and react to click events, ended with
12830 * either of \</a\> or \</\>. When clicked, the anchor will emit an
12831 * "anchor,clicked" signal that you can attach a callback to with
12832 * evas_object_smart_callback_add(). The name of the anchor given in the
12833 * event info struct will be the one set in the href attribute, in this
12834 * case, anchorname.
12836 * Other markup can be used to style the text in different ways, but it's
12837 * up to the style defined in the theme which tags do what.
12838 * @deprecated use elm_object_text_set() instead.
12840 EINA_DEPRECATED EAPI void elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12843 * Get the markup text set for the anchorview
12845 * Retrieves the text set on the anchorview, with markup tags included.
12847 * @param obj The anchorview object
12848 * @return The markup text set or @c NULL if nothing was set or an error
12850 * @deprecated use elm_object_text_set() instead.
12852 EINA_DEPRECATED EAPI const char *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12855 * Set the parent of the hover popup
12857 * Sets the parent object to use by the hover created by the anchorview
12858 * when an anchor is clicked. See @ref Hover for more details on this.
12859 * If no parent is set, the same anchorview object will be used.
12861 * @param obj The anchorview object
12862 * @param parent The object to use as parent for the hover
12864 EAPI void elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12867 * Get the parent of the hover popup
12869 * Get the object used as parent for the hover created by the anchorview
12870 * widget. See @ref Hover for more details on this.
12872 * @param obj The anchorview object
12873 * @return The object used as parent for the hover, NULL if none is set.
12875 EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12878 * Set the style that the hover should use
12880 * When creating the popup hover, anchorview will request that it's
12881 * themed according to @p style.
12883 * @param obj The anchorview object
12884 * @param style The style to use for the underlying hover
12886 * @see elm_object_style_set()
12888 EAPI void elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12891 * Get the style that the hover should use
12893 * Get the style the hover created by anchorview will use.
12895 * @param obj The anchorview object
12896 * @return The style to use by the hover. NULL means the default is used.
12898 * @see elm_object_style_set()
12900 EAPI const char *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12903 * Ends the hover popup in the anchorview
12905 * When an anchor is clicked, the anchorview widget will create a hover
12906 * object to use as a popup with user provided content. This function
12907 * terminates this popup, returning the anchorview to its normal state.
12909 * @param obj The anchorview object
12911 EAPI void elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12914 * Set bouncing behaviour when the scrolled content reaches an edge
12916 * Tell the internal scroller object whether it should bounce or not
12917 * when it reaches the respective edges for each axis.
12919 * @param obj The anchorview object
12920 * @param h_bounce Whether to bounce or not in the horizontal axis
12921 * @param v_bounce Whether to bounce or not in the vertical axis
12923 * @see elm_scroller_bounce_set()
12925 EAPI void elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
12928 * Get the set bouncing behaviour of the internal scroller
12930 * Get whether the internal scroller should bounce when the edge of each
12931 * axis is reached scrolling.
12933 * @param obj The anchorview object
12934 * @param h_bounce Pointer where to store the bounce state of the horizontal
12936 * @param v_bounce Pointer where to store the bounce state of the vertical
12939 * @see elm_scroller_bounce_get()
12941 EAPI void elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
12944 * Appends a custom item provider to the given anchorview
12946 * Appends the given function to the list of items providers. This list is
12947 * called, one function at a time, with the given @p data pointer, the
12948 * anchorview object and, in the @p item parameter, the item name as
12949 * referenced in its href string. Following functions in the list will be
12950 * called in order until one of them returns something different to NULL,
12951 * which should be an Evas_Object which will be used in place of the item
12954 * Items in the markup text take the form \<item relsize=16x16 vsize=full
12955 * href=item/name\>\</item\>
12957 * @param obj The anchorview object
12958 * @param func The function to add to the list of providers
12959 * @param data User data that will be passed to the callback function
12961 * @see elm_entry_item_provider_append()
12963 EAPI void elm_anchorview_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12966 * Prepend a custom item provider to the given anchorview
12968 * Like elm_anchorview_item_provider_append(), but it adds the function
12969 * @p func to the beginning of the list, instead of the end.
12971 * @param obj The anchorview object
12972 * @param func The function to add to the list of providers
12973 * @param data User data that will be passed to the callback function
12975 EAPI void elm_anchorview_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12978 * Remove a custom item provider from the list of the given anchorview
12980 * Removes the function and data pairing that matches @p func and @p data.
12981 * That is, unless the same function and same user data are given, the
12982 * function will not be removed from the list. This allows us to add the
12983 * same callback several times, with different @p data pointers and be
12984 * able to remove them later without conflicts.
12986 * @param obj The anchorview object
12987 * @param func The function to remove from the list
12988 * @param data The data matching the function to remove from the list
12990 EAPI void elm_anchorview_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12998 * @defgroup Anchorblock Anchorblock
13000 * @image html img/widget/anchorblock/preview-00.png
13001 * @image latex img/widget/anchorblock/preview-00.eps
13003 * Anchorblock is for displaying text that contains markup with anchors
13004 * like <c>\<a href=1234\>something\</\></c> in it.
13006 * Besides being styled differently, the anchorblock widget provides the
13007 * necessary functionality so that clicking on these anchors brings up a
13008 * popup with user defined content such as "call", "add to contacts" or
13009 * "open web page". This popup is provided using the @ref Hover widget.
13011 * This widget emits the following signals:
13012 * @li "anchor,clicked": will be called when an anchor is clicked. The
13013 * @p event_info parameter on the callback will be a pointer of type
13014 * ::Elm_Entry_Anchorblock_Info.
13020 * Since examples are usually better than plain words, we might as well
13021 * try @ref tutorial_anchorblock_example "one".
13025 * @addtogroup Anchorblock
13030 * @typedef Elm_Entry_Anchorblock_Info
13032 * The info sent in the callback for "anchor,clicked" signals emitted by
13033 * the Anchorblock widget.
13035 typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
13038 * @struct _Elm_Entry_Anchorblock_Info
13040 * The info sent in the callback for "anchor,clicked" signals emitted by
13041 * the Anchorblock widget.
13043 struct _Elm_Entry_Anchorblock_Info
13045 const char *name; /**< Name of the anchor, as indicated in its href
13047 int button; /**< The mouse button used to click on it */
13048 Evas_Object *hover; /**< The hover object to use for the popup */
13050 Evas_Coord x, y, w, h;
13051 } anchor, /**< Geometry selection of text used as anchor */
13052 hover_parent; /**< Geometry of the object used as parent by the
13054 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
13055 for content on the left side of
13056 the hover. Before calling the
13057 callback, the widget will make the
13058 necessary calculations to check
13059 which sides are fit to be set with
13060 content, based on the position the
13061 hover is activated and its distance
13062 to the edges of its parent object
13064 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
13065 the right side of the hover.
13066 See @ref hover_left */
13067 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
13068 of the hover. See @ref hover_left */
13069 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
13070 below the hover. See @ref
13075 * Add a new Anchorblock object
13077 * @param parent The parent object
13078 * @return The new object or NULL if it cannot be created
13080 EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13083 * Set the text to show in the anchorblock
13085 * Sets the text of the anchorblock to @p text. This text can include markup
13086 * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
13087 * of text that will be specially styled and react to click events, ended
13088 * with either of \</a\> or \</\>. When clicked, the anchor will emit an
13089 * "anchor,clicked" signal that you can attach a callback to with
13090 * evas_object_smart_callback_add(). The name of the anchor given in the
13091 * event info struct will be the one set in the href attribute, in this
13092 * case, anchorname.
13094 * Other markup can be used to style the text in different ways, but it's
13095 * up to the style defined in the theme which tags do what.
13096 * @deprecated use elm_object_text_set() instead.
13098 EINA_DEPRECATED EAPI void elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
13101 * Get the markup text set for the anchorblock
13103 * Retrieves the text set on the anchorblock, with markup tags included.
13105 * @param obj The anchorblock object
13106 * @return The markup text set or @c NULL if nothing was set or an error
13108 * @deprecated use elm_object_text_set() instead.
13110 EINA_DEPRECATED EAPI const char *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13113 * Set the parent of the hover popup
13115 * Sets the parent object to use by the hover created by the anchorblock
13116 * when an anchor is clicked. See @ref Hover for more details on this.
13118 * @param obj The anchorblock object
13119 * @param parent The object to use as parent for the hover
13121 EAPI void elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13124 * Get the parent of the hover popup
13126 * Get the object used as parent for the hover created by the anchorblock
13127 * widget. See @ref Hover for more details on this.
13128 * If no parent is set, the same anchorblock object will be used.
13130 * @param obj The anchorblock object
13131 * @return The object used as parent for the hover, NULL if none is set.
13133 EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13136 * Set the style that the hover should use
13138 * When creating the popup hover, anchorblock will request that it's
13139 * themed according to @p style.
13141 * @param obj The anchorblock object
13142 * @param style The style to use for the underlying hover
13144 * @see elm_object_style_set()
13146 EAPI void elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
13149 * Get the style that the hover should use
13151 * Get the style, the hover created by anchorblock will use.
13153 * @param obj The anchorblock object
13154 * @return The style to use by the hover. NULL means the default is used.
13156 * @see elm_object_style_set()
13158 EAPI const char *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13161 * Ends the hover popup in the anchorblock
13163 * When an anchor is clicked, the anchorblock widget will create a hover
13164 * object to use as a popup with user provided content. This function
13165 * terminates this popup, returning the anchorblock to its normal state.
13167 * @param obj The anchorblock object
13169 EAPI void elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
13172 * Appends a custom item provider to the given anchorblock
13174 * Appends the given function to the list of items providers. This list is
13175 * called, one function at a time, with the given @p data pointer, the
13176 * anchorblock object and, in the @p item parameter, the item name as
13177 * referenced in its href string. Following functions in the list will be
13178 * called in order until one of them returns something different to NULL,
13179 * which should be an Evas_Object which will be used in place of the item
13182 * Items in the markup text take the form \<item relsize=16x16 vsize=full
13183 * href=item/name\>\</item\>
13185 * @param obj The anchorblock object
13186 * @param func The function to add to the list of providers
13187 * @param data User data that will be passed to the callback function
13189 * @see elm_entry_item_provider_append()
13191 EAPI void elm_anchorblock_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
13194 * Prepend a custom item provider to the given anchorblock
13196 * Like elm_anchorblock_item_provider_append(), but it adds the function
13197 * @p func to the beginning of the list, instead of the end.
13199 * @param obj The anchorblock object
13200 * @param func The function to add to the list of providers
13201 * @param data User data that will be passed to the callback function
13203 EAPI void elm_anchorblock_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
13206 * Remove a custom item provider from the list of the given anchorblock
13208 * Removes the function and data pairing that matches @p func and @p data.
13209 * That is, unless the same function and same user data are given, the
13210 * function will not be removed from the list. This allows us to add the
13211 * same callback several times, with different @p data pointers and be
13212 * able to remove them later without conflicts.
13214 * @param obj The anchorblock object
13215 * @param func The function to remove from the list
13216 * @param data The data matching the function to remove from the list
13218 EAPI void elm_anchorblock_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
13225 * @defgroup Bubble Bubble
13227 * @image html img/widget/bubble/preview-00.png
13228 * @image latex img/widget/bubble/preview-00.eps
13229 * @image html img/widget/bubble/preview-01.png
13230 * @image latex img/widget/bubble/preview-01.eps
13231 * @image html img/widget/bubble/preview-02.png
13232 * @image latex img/widget/bubble/preview-02.eps
13234 * @brief The Bubble is a widget to show text similar to how speech is
13235 * represented in comics.
13237 * The bubble widget contains 5 important visual elements:
13238 * @li The frame is a rectangle with rounded edjes and an "arrow".
13239 * @li The @p icon is an image to which the frame's arrow points to.
13240 * @li The @p label is a text which appears to the right of the icon if the
13241 * corner is "top_left" or "bottom_left" and is right aligned to the frame
13243 * @li The @p info is a text which appears to the right of the label. Info's
13244 * font is of a ligther color than label.
13245 * @li The @p content is an evas object that is shown inside the frame.
13247 * The position of the arrow, icon, label and info depends on which corner is
13248 * selected. The four available corners are:
13249 * @li "top_left" - Default
13251 * @li "bottom_left"
13252 * @li "bottom_right"
13254 * Signals that you can add callbacks for are:
13255 * @li "clicked" - This is called when a user has clicked the bubble.
13257 * Default contents parts of the bubble that you can use for are:
13258 * @li "default" - A content of the bubble
13259 * @li "icon" - An icon of the bubble
13261 * Default text parts of the button widget that you can use for are:
13262 * @li NULL - Label of the bubble
13264 * For an example of using a buble see @ref bubble_01_example_page "this".
13270 * Add a new bubble to the parent
13272 * @param parent The parent object
13273 * @return The new object or NULL if it cannot be created
13275 * This function adds a text bubble to the given parent evas object.
13277 EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13280 * Set the label of the bubble
13282 * @param obj The bubble object
13283 * @param label The string to set in the label
13285 * This function sets the title of the bubble. Where this appears depends on
13286 * the selected corner.
13287 * @deprecated use elm_object_text_set() instead.
13289 EINA_DEPRECATED EAPI void elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13292 * Get the label of the bubble
13294 * @param obj The bubble object
13295 * @return The string of set in the label
13297 * This function gets the title of the bubble.
13298 * @deprecated use elm_object_text_get() instead.
13300 EINA_DEPRECATED EAPI const char *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13303 * Set the info of the bubble
13305 * @param obj The bubble object
13306 * @param info The given info about the bubble
13308 * This function sets the info of the bubble. Where this appears depends on
13309 * the selected corner.
13310 * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
13312 EINA_DEPRECATED EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
13315 * Get the info of the bubble
13317 * @param obj The bubble object
13319 * @return The "info" string of the bubble
13321 * This function gets the info text.
13322 * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
13324 EINA_DEPRECATED EAPI const char *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13327 * Set the content to be shown in the bubble
13329 * Once the content object is set, a previously set one will be deleted.
13330 * If you want to keep the old content object, use the
13331 * elm_bubble_content_unset() function.
13333 * @param obj The bubble object
13334 * @param content The given content of the bubble
13336 * This function sets the content shown on the middle of the bubble.
13338 * @deprecated use elm_object_content_set() instead
13341 EINA_DEPRECATED EAPI void elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
13344 * Get the content shown in the bubble
13346 * Return the content object which is set for this widget.
13348 * @param obj The bubble object
13349 * @return The content that is being used
13351 * @deprecated use elm_object_content_get() instead
13354 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13357 * Unset the content shown in the bubble
13359 * Unparent and return the content object which was set for this widget.
13361 * @param obj The bubble object
13362 * @return The content that was being used
13364 * @deprecated use elm_object_content_unset() instead
13367 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13370 * Set the icon of the bubble
13372 * Once the icon object is set, a previously set one will be deleted.
13373 * If you want to keep the old content object, use the
13374 * elm_icon_content_unset() function.
13376 * @param obj The bubble object
13377 * @param icon The given icon for the bubble
13379 * @deprecated use elm_object_part_content_set() instead
13382 EINA_DEPRECATED EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
13385 * Get the icon of the bubble
13387 * @param obj The bubble object
13388 * @return The icon for the bubble
13390 * This function gets the icon shown on the top left of bubble.
13392 * @deprecated use elm_object_part_content_get() instead
13395 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13398 * Unset the icon of the bubble
13400 * Unparent and return the icon object which was set for this widget.
13402 * @param obj The bubble object
13403 * @return The icon that was being used
13405 * @deprecated use elm_object_part_content_unset() instead
13408 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13411 * Set the corner of the bubble
13413 * @param obj The bubble object.
13414 * @param corner The given corner for the bubble.
13416 * This function sets the corner of the bubble. The corner will be used to
13417 * determine where the arrow in the frame points to and where label, icon and
13420 * Possible values for corner are:
13421 * @li "top_left" - Default
13423 * @li "bottom_left"
13424 * @li "bottom_right"
13426 EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
13429 * Get the corner of the bubble
13431 * @param obj The bubble object.
13432 * @return The given corner for the bubble.
13434 * This function gets the selected corner of the bubble.
13436 EAPI const char *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13443 * @defgroup Photo Photo
13445 * For displaying the photo of a person (contact). Simple, yet
13446 * with a very specific purpose.
13448 * Signals that you can add callbacks for are:
13450 * "clicked" - This is called when a user has clicked the photo
13451 * "drag,start" - Someone started dragging the image out of the object
13452 * "drag,end" - Dragged item was dropped (somewhere)
13458 * Add a new photo to the parent
13460 * @param parent The parent object
13461 * @return The new object or NULL if it cannot be created
13465 EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13468 * Set the file that will be used as photo
13470 * @param obj The photo object
13471 * @param file The path to file that will be used as photo
13473 * @return (1 = success, 0 = error)
13477 EAPI Eina_Bool elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
13480 * Set the file that will be used as thumbnail in the photo.
13482 * @param obj The photo object.
13483 * @param file The path to file that will be used as thumb.
13484 * @param group The key used in case of an EET file.
13488 EAPI void elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
13491 * Set the size that will be used on the photo
13493 * @param obj The photo object
13494 * @param size The size that the photo will be
13498 EAPI void elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
13501 * Set if the photo should be completely visible or not.
13503 * @param obj The photo object
13504 * @param fill if true the photo will be completely visible
13508 EAPI void elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
13511 * Set editability of the photo.
13513 * An editable photo can be dragged to or from, and can be cut or
13514 * pasted too. Note that pasting an image or dropping an item on
13515 * the image will delete the existing content.
13517 * @param obj The photo object.
13518 * @param set To set of clear editablity.
13520 EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
13526 /* gesture layer */
13528 * @defgroup Elm_Gesture_Layer Gesture Layer
13529 * Gesture Layer Usage:
13531 * Use Gesture Layer to detect gestures.
13532 * The advantage is that you don't have to implement
13533 * gesture detection, just set callbacks of gesture state.
13534 * By using gesture layer we make standard interface.
13536 * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
13537 * with a parent object parameter.
13538 * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
13539 * call. Usually with same object as target (2nd parameter).
13541 * Now you need to tell gesture layer what gestures you follow.
13542 * This is done with @ref elm_gesture_layer_cb_set call.
13543 * By setting the callback you actually saying to gesture layer:
13544 * I would like to know when the gesture @ref Elm_Gesture_Types
13545 * switches to state @ref Elm_Gesture_State.
13547 * Next, you need to implement the actual action that follows the input
13548 * in your callback.
13550 * Note that if you like to stop being reported about a gesture, just set
13551 * all callbacks referring this gesture to NULL.
13552 * (again with @ref elm_gesture_layer_cb_set)
13554 * The information reported by gesture layer to your callback is depending
13555 * on @ref Elm_Gesture_Types:
13556 * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
13557 * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
13558 * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
13560 * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
13561 * @ref ELM_GESTURE_MOMENTUM.
13563 * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
13564 * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
13565 * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
13566 * Note that we consider a flick as a line-gesture that should be completed
13567 * in flick-time-limit as defined in @ref Config.
13569 * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
13571 * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
13574 * Gesture Layer Tweaks:
13576 * Note that line, flick, gestures can start without the need to remove fingers from surface.
13577 * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
13579 * Setting glayer_continues_enable to false in @ref Config will change this behavior
13580 * so gesture starts when user touches (a *DOWN event) touch-surface
13581 * and ends when no fingers touches surface (a *UP event).
13585 * @enum _Elm_Gesture_Types
13586 * Enum of supported gesture types.
13587 * @ingroup Elm_Gesture_Layer
13589 enum _Elm_Gesture_Types
13591 ELM_GESTURE_FIRST = 0,
13593 ELM_GESTURE_N_TAPS, /**< N fingers single taps */
13594 ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
13595 ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
13596 ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
13598 ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
13600 ELM_GESTURE_N_LINES, /**< N fingers line gesture */
13601 ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
13603 ELM_GESTURE_ZOOM, /**< Zoom */
13604 ELM_GESTURE_ROTATE, /**< Rotate */
13610 * @typedef Elm_Gesture_Types
13611 * gesture types enum
13612 * @ingroup Elm_Gesture_Layer
13614 typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
13617 * @enum _Elm_Gesture_State
13618 * Enum of gesture states.
13619 * @ingroup Elm_Gesture_Layer
13621 enum _Elm_Gesture_State
13623 ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
13624 ELM_GESTURE_STATE_START, /**< Gesture STARTed */
13625 ELM_GESTURE_STATE_MOVE, /**< Gesture is ongoing */
13626 ELM_GESTURE_STATE_END, /**< Gesture completed */
13627 ELM_GESTURE_STATE_ABORT /**< Onging gesture was ABORTed */
13631 * @typedef Elm_Gesture_State
13632 * gesture states enum
13633 * @ingroup Elm_Gesture_Layer
13635 typedef enum _Elm_Gesture_State Elm_Gesture_State;
13638 * @struct _Elm_Gesture_Taps_Info
13639 * Struct holds taps info for user
13640 * @ingroup Elm_Gesture_Layer
13642 struct _Elm_Gesture_Taps_Info
13644 Evas_Coord x, y; /**< Holds center point between fingers */
13645 unsigned int n; /**< Number of fingers tapped */
13646 unsigned int timestamp; /**< event timestamp */
13650 * @typedef Elm_Gesture_Taps_Info
13651 * holds taps info for user
13652 * @ingroup Elm_Gesture_Layer
13654 typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
13657 * @struct _Elm_Gesture_Momentum_Info
13658 * Struct holds momentum info for user
13659 * x1 and y1 are not necessarily in sync
13660 * x1 holds x value of x direction starting point
13661 * and same holds for y1.
13662 * This is noticeable when doing V-shape movement
13663 * @ingroup Elm_Gesture_Layer
13665 struct _Elm_Gesture_Momentum_Info
13666 { /* Report line ends, timestamps, and momentum computed */
13667 Evas_Coord x1; /**< Final-swipe direction starting point on X */
13668 Evas_Coord y1; /**< Final-swipe direction starting point on Y */
13669 Evas_Coord x2; /**< Final-swipe direction ending point on X */
13670 Evas_Coord y2; /**< Final-swipe direction ending point on Y */
13672 unsigned int tx; /**< Timestamp of start of final x-swipe */
13673 unsigned int ty; /**< Timestamp of start of final y-swipe */
13675 Evas_Coord mx; /**< Momentum on X */
13676 Evas_Coord my; /**< Momentum on Y */
13678 unsigned int n; /**< Number of fingers */
13682 * @typedef Elm_Gesture_Momentum_Info
13683 * holds momentum info for user
13684 * @ingroup Elm_Gesture_Layer
13686 typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
13689 * @struct _Elm_Gesture_Line_Info
13690 * Struct holds line info for user
13691 * @ingroup Elm_Gesture_Layer
13693 struct _Elm_Gesture_Line_Info
13694 { /* Report line ends, timestamps, and momentum computed */
13695 Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
13696 double angle; /**< Angle (direction) of lines */
13700 * @typedef Elm_Gesture_Line_Info
13701 * Holds line info for user
13702 * @ingroup Elm_Gesture_Layer
13704 typedef struct _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
13707 * @struct _Elm_Gesture_Zoom_Info
13708 * Struct holds zoom info for user
13709 * @ingroup Elm_Gesture_Layer
13711 struct _Elm_Gesture_Zoom_Info
13713 Evas_Coord x, y; /**< Holds zoom center point reported to user */
13714 Evas_Coord radius; /**< Holds radius between fingers reported to user */
13715 double zoom; /**< Zoom value: 1.0 means no zoom */
13716 double momentum; /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
13720 * @typedef Elm_Gesture_Zoom_Info
13721 * Holds zoom info for user
13722 * @ingroup Elm_Gesture_Layer
13724 typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
13727 * @struct _Elm_Gesture_Rotate_Info
13728 * Struct holds rotation info for user
13729 * @ingroup Elm_Gesture_Layer
13731 struct _Elm_Gesture_Rotate_Info
13733 Evas_Coord x, y; /**< Holds zoom center point reported to user */
13734 Evas_Coord radius; /**< Holds radius between fingers reported to user */
13735 double base_angle; /**< Holds start-angle */
13736 double angle; /**< Rotation value: 0.0 means no rotation */
13737 double momentum; /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
13741 * @typedef Elm_Gesture_Rotate_Info
13742 * Holds rotation info for user
13743 * @ingroup Elm_Gesture_Layer
13745 typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
13748 * @typedef Elm_Gesture_Event_Cb
13749 * User callback used to stream gesture info from gesture layer
13750 * @param data user data
13751 * @param event_info gesture report info
13752 * Returns a flag field to be applied on the causing event.
13753 * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
13754 * upon the event, in an irreversible way.
13756 * @ingroup Elm_Gesture_Layer
13758 typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
13761 * Use function to set callbacks to be notified about
13762 * change of state of gesture.
13763 * When a user registers a callback with this function
13764 * this means this gesture has to be tested.
13766 * When ALL callbacks for a gesture are set to NULL
13767 * it means user isn't interested in gesture-state
13768 * and it will not be tested.
13770 * @param obj Pointer to gesture-layer.
13771 * @param idx The gesture you would like to track its state.
13772 * @param cb callback function pointer.
13773 * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
13774 * @param data user info to be sent to callback (usually, Smart Data)
13776 * @ingroup Elm_Gesture_Layer
13778 EAPI void elm_gesture_layer_cb_set(Evas_Object *obj, Elm_Gesture_Types idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) EINA_ARG_NONNULL(1);
13781 * Call this function to get repeat-events settings.
13783 * @param obj Pointer to gesture-layer.
13785 * @return repeat events settings.
13786 * @see elm_gesture_layer_hold_events_set()
13787 * @ingroup Elm_Gesture_Layer
13789 EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13792 * This function called in order to make gesture-layer repeat events.
13793 * Set this of you like to get the raw events only if gestures were not detected.
13794 * Clear this if you like gesture layer to fwd events as testing gestures.
13796 * @param obj Pointer to gesture-layer.
13797 * @param r Repeat: TRUE/FALSE
13799 * @ingroup Elm_Gesture_Layer
13801 EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
13804 * This function sets step-value for zoom action.
13805 * Set step to any positive value.
13806 * Cancel step setting by setting to 0.0
13808 * @param obj Pointer to gesture-layer.
13809 * @param s new zoom step value.
13811 * @ingroup Elm_Gesture_Layer
13813 EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13816 * This function sets step-value for rotate action.
13817 * Set step to any positive value.
13818 * Cancel step setting by setting to 0.0
13820 * @param obj Pointer to gesture-layer.
13821 * @param s new roatate step value.
13823 * @ingroup Elm_Gesture_Layer
13825 EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13828 * This function called to attach gesture-layer to an Evas_Object.
13829 * @param obj Pointer to gesture-layer.
13830 * @param t Pointer to underlying object (AKA Target)
13832 * @return TRUE, FALSE on success, failure.
13834 * @ingroup Elm_Gesture_Layer
13836 EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
13839 * Call this function to construct a new gesture-layer object.
13840 * This does not activate the gesture layer. You have to
13841 * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
13843 * @param parent the parent object.
13845 * @return Pointer to new gesture-layer object.
13847 * @ingroup Elm_Gesture_Layer
13849 EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13852 * @defgroup Thumb Thumb
13854 * @image html img/widget/thumb/preview-00.png
13855 * @image latex img/widget/thumb/preview-00.eps
13857 * A thumb object is used for displaying the thumbnail of an image or video.
13858 * You must have compiled Elementary with Ethumb_Client support and the DBus
13859 * service must be present and auto-activated in order to have thumbnails to
13862 * Once the thumbnail object becomes visible, it will check if there is a
13863 * previously generated thumbnail image for the file set on it. If not, it
13864 * will start generating this thumbnail.
13866 * Different config settings will cause different thumbnails to be generated
13867 * even on the same file.
13869 * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
13870 * Ethumb documentation to change this path, and to see other configuration
13873 * Signals that you can add callbacks for are:
13875 * - "clicked" - This is called when a user has clicked the thumb without dragging
13877 * - "clicked,double" - This is called when a user has double-clicked the thumb.
13878 * - "press" - This is called when a user has pressed down the thumb.
13879 * - "generate,start" - The thumbnail generation started.
13880 * - "generate,stop" - The generation process stopped.
13881 * - "generate,error" - The generation failed.
13882 * - "load,error" - The thumbnail image loading failed.
13884 * available styles:
13888 * An example of use of thumbnail:
13890 * - @ref thumb_example_01
13894 * @addtogroup Thumb
13899 * @enum _Elm_Thumb_Animation_Setting
13900 * @typedef Elm_Thumb_Animation_Setting
13902 * Used to set if a video thumbnail is animating or not.
13906 typedef enum _Elm_Thumb_Animation_Setting
13908 ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
13909 ELM_THUMB_ANIMATION_LOOP, /**< Keep playing animation until stop is requested */
13910 ELM_THUMB_ANIMATION_STOP, /**< Stop playing the animation */
13911 ELM_THUMB_ANIMATION_LAST
13912 } Elm_Thumb_Animation_Setting;
13915 * Add a new thumb object to the parent.
13917 * @param parent The parent object.
13918 * @return The new object or NULL if it cannot be created.
13920 * @see elm_thumb_file_set()
13921 * @see elm_thumb_ethumb_client_get()
13925 EAPI Evas_Object *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13928 * Reload thumbnail if it was generated before.
13930 * @param obj The thumb object to reload
13932 * This is useful if the ethumb client configuration changed, like its
13933 * size, aspect or any other property one set in the handle returned
13934 * by elm_thumb_ethumb_client_get().
13936 * If the options didn't change, the thumbnail won't be generated again, but
13937 * the old one will still be used.
13939 * @see elm_thumb_file_set()
13943 EAPI void elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
13946 * Set the file that will be used as thumbnail.
13948 * @param obj The thumb object.
13949 * @param file The path to file that will be used as thumb.
13950 * @param key The key used in case of an EET file.
13952 * The file can be an image or a video (in that case, acceptable extensions are:
13953 * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
13954 * function elm_thumb_animate().
13956 * @see elm_thumb_file_get()
13957 * @see elm_thumb_reload()
13958 * @see elm_thumb_animate()
13962 EAPI void elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
13965 * Get the image or video path and key used to generate the thumbnail.
13967 * @param obj The thumb object.
13968 * @param file Pointer to filename.
13969 * @param key Pointer to key.
13971 * @see elm_thumb_file_set()
13972 * @see elm_thumb_path_get()
13976 EAPI void elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13979 * Get the path and key to the image or video generated by ethumb.
13981 * One just need to make sure that the thumbnail was generated before getting
13982 * its path; otherwise, the path will be NULL. One way to do that is by asking
13983 * for the path when/after the "generate,stop" smart callback is called.
13985 * @param obj The thumb object.
13986 * @param file Pointer to thumb path.
13987 * @param key Pointer to thumb key.
13989 * @see elm_thumb_file_get()
13993 EAPI void elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13996 * Set the animation state for the thumb object. If its content is an animated
13997 * video, you may start/stop the animation or tell it to play continuously and
14000 * @param obj The thumb object.
14001 * @param setting The animation setting.
14003 * @see elm_thumb_file_set()
14007 EAPI void elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
14010 * Get the animation state for the thumb object.
14012 * @param obj The thumb object.
14013 * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
14016 * @see elm_thumb_animate_set()
14020 EAPI Elm_Thumb_Animation_Setting elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14023 * Get the ethumb_client handle so custom configuration can be made.
14025 * @return Ethumb_Client instance or NULL.
14027 * This must be called before the objects are created to be sure no object is
14028 * visible and no generation started.
14030 * Example of usage:
14033 * #include <Elementary.h>
14034 * #ifndef ELM_LIB_QUICKLAUNCH
14036 * elm_main(int argc, char **argv)
14038 * Ethumb_Client *client;
14040 * elm_need_ethumb();
14044 * client = elm_thumb_ethumb_client_get();
14047 * ERR("could not get ethumb_client");
14050 * ethumb_client_size_set(client, 100, 100);
14051 * ethumb_client_crop_align_set(client, 0.5, 0.5);
14054 * // Create elm_thumb objects here
14064 * @note There's only one client handle for Ethumb, so once a configuration
14065 * change is done to it, any other request for thumbnails (for any thumbnail
14066 * object) will use that configuration. Thus, this configuration is global.
14070 EAPI void *elm_thumb_ethumb_client_get(void);
14073 * Get the ethumb_client connection state.
14075 * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
14078 EAPI Eina_Bool elm_thumb_ethumb_client_connected(void);
14081 * Make the thumbnail 'editable'.
14083 * @param obj Thumb object.
14084 * @param set Turn on or off editability. Default is @c EINA_FALSE.
14086 * This means the thumbnail is a valid drag target for drag and drop, and can be
14087 * cut or pasted too.
14089 * @see elm_thumb_editable_get()
14093 EAPI Eina_Bool elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
14096 * Make the thumbnail 'editable'.
14098 * @param obj Thumb object.
14099 * @return Editability.
14101 * This means the thumbnail is a valid drag target for drag and drop, and can be
14102 * cut or pasted too.
14104 * @see elm_thumb_editable_set()
14108 EAPI Eina_Bool elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14115 * @defgroup Web Web
14117 * @image html img/widget/web/preview-00.png
14118 * @image latex img/widget/web/preview-00.eps
14120 * A web object is used for displaying web pages (HTML/CSS/JS)
14121 * using WebKit-EFL. You must have compiled Elementary with
14124 * Signals that you can add callbacks for are:
14125 * @li "download,request": A file download has been requested. Event info is
14126 * a pointer to a Elm_Web_Download
14127 * @li "editorclient,contents,changed": Editor client's contents changed
14128 * @li "editorclient,selection,changed": Editor client's selection changed
14129 * @li "frame,created": A new frame was created. Event info is an
14130 * Evas_Object which can be handled with WebKit's ewk_frame API
14131 * @li "icon,received": An icon was received by the main frame
14132 * @li "inputmethod,changed": Input method changed. Event info is an
14133 * Eina_Bool indicating whether it's enabled or not
14134 * @li "js,windowobject,clear": JS window object has been cleared
14135 * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
14136 * is a char *link[2], where the first string contains the URL the link
14137 * points to, and the second one the title of the link
14138 * @li "link,hover,out": Mouse cursor left the link
14139 * @li "load,document,finished": Loading of a document finished. Event info
14140 * is the frame that finished loading
14141 * @li "load,error": Load failed. Event info is a pointer to
14142 * Elm_Web_Frame_Load_Error
14143 * @li "load,finished": Load finished. Event info is NULL on success, on
14144 * error it's a pointer to Elm_Web_Frame_Load_Error
14145 * @li "load,newwindow,show": A new window was created and is ready to be
14147 * @li "load,progress": Overall load progress. Event info is a pointer to
14148 * a double containing a value between 0.0 and 1.0
14149 * @li "load,provisional": Started provisional load
14150 * @li "load,started": Loading of a document started
14151 * @li "menubar,visible,get": Queries if the menubar is visible. Event info
14152 * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
14153 * the menubar is visible, or EINA_FALSE in case it's not
14154 * @li "menubar,visible,set": Informs menubar visibility. Event info is
14155 * an Eina_Bool indicating the visibility
14156 * @li "popup,created": A dropdown widget was activated, requesting its
14157 * popup menu to be created. Event info is a pointer to Elm_Web_Menu
14158 * @li "popup,willdelete": The web object is ready to destroy the popup
14159 * object created. Event info is a pointer to Elm_Web_Menu
14160 * @li "ready": Page is fully loaded
14161 * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
14162 * info is a pointer to Eina_Bool where the visibility state should be set
14163 * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
14164 * is an Eina_Bool with the visibility state set
14165 * @li "statusbar,text,set": Text of the statusbar changed. Even info is
14166 * a string with the new text
14167 * @li "statusbar,visible,get": Queries visibility of the status bar.
14168 * Event info is a pointer to Eina_Bool where the visibility state should be
14170 * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
14171 * an Eina_Bool with the visibility value
14172 * @li "title,changed": Title of the main frame changed. Event info is a
14173 * string with the new title
14174 * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
14175 * is a pointer to Eina_Bool where the visibility state should be set
14176 * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
14177 * info is an Eina_Bool with the visibility state
14178 * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
14179 * a string with the text to show
14180 * @li "uri,changed": URI of the main frame changed. Event info is a string
14182 * @li "view,resized": The web object internal's view changed sized
14183 * @li "windows,close,request": A JavaScript request to close the current
14184 * window was requested
14185 * @li "zoom,animated,end": Animated zoom finished
14187 * available styles:
14190 * An example of use of web:
14192 * - @ref web_example_01 TBD
14201 * Structure used to report load errors.
14203 * Load errors are reported as signal by elm_web. All the strings are
14204 * temporary references and should @b not be used after the signal
14205 * callback returns. If it's required, make copies with strdup() or
14206 * eina_stringshare_add() (they are not even guaranteed to be
14207 * stringshared, so must use eina_stringshare_add() and not
14208 * eina_stringshare_ref()).
14210 typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
14213 * Structure used to report load errors.
14215 * Load errors are reported as signal by elm_web. All the strings are
14216 * temporary references and should @b not be used after the signal
14217 * callback returns. If it's required, make copies with strdup() or
14218 * eina_stringshare_add() (they are not even guaranteed to be
14219 * stringshared, so must use eina_stringshare_add() and not
14220 * eina_stringshare_ref()).
14222 struct _Elm_Web_Frame_Load_Error
14224 int code; /**< Numeric error code */
14225 Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
14226 const char *domain; /**< Error domain name */
14227 const char *description; /**< Error description (already localized) */
14228 const char *failing_url; /**< The URL that failed to load */
14229 Evas_Object *frame; /**< Frame object that produced the error */
14233 * The possibles types that the items in a menu can be
14235 typedef enum _Elm_Web_Menu_Item_Type
14237 ELM_WEB_MENU_SEPARATOR,
14238 ELM_WEB_MENU_GROUP,
14239 ELM_WEB_MENU_OPTION
14240 } Elm_Web_Menu_Item_Type;
14243 * Structure describing the items in a menu
14245 typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
14248 * Structure describing the items in a menu
14250 struct _Elm_Web_Menu_Item
14252 const char *text; /**< The text for the item */
14253 Elm_Web_Menu_Item_Type type; /**< The type of the item */
14257 * Structure describing the menu of a popup
14259 * This structure will be passed as the @c event_info for the "popup,create"
14260 * signal, which is emitted when a dropdown menu is opened. Users wanting
14261 * to handle these popups by themselves should listen to this signal and
14262 * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
14263 * property as @c EINA_FALSE means that the user will not handle the popup
14264 * and the default implementation will be used.
14266 * When the popup is ready to be dismissed, a "popup,willdelete" signal
14267 * will be emitted to notify the user that it can destroy any objects and
14268 * free all data related to it.
14270 * @see elm_web_popup_selected_set()
14271 * @see elm_web_popup_destroy()
14273 typedef struct _Elm_Web_Menu Elm_Web_Menu;
14276 * Structure describing the menu of a popup
14278 * This structure will be passed as the @c event_info for the "popup,create"
14279 * signal, which is emitted when a dropdown menu is opened. Users wanting
14280 * to handle these popups by themselves should listen to this signal and
14281 * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
14282 * property as @c EINA_FALSE means that the user will not handle the popup
14283 * and the default implementation will be used.
14285 * When the popup is ready to be dismissed, a "popup,willdelete" signal
14286 * will be emitted to notify the user that it can destroy any objects and
14287 * free all data related to it.
14289 * @see elm_web_popup_selected_set()
14290 * @see elm_web_popup_destroy()
14292 struct _Elm_Web_Menu
14294 Eina_List *items; /**< List of #Elm_Web_Menu_Item */
14295 int x; /**< The X position of the popup, relative to the elm_web object */
14296 int y; /**< The Y position of the popup, relative to the elm_web object */
14297 int width; /**< Width of the popup menu */
14298 int height; /**< Height of the popup menu */
14300 Eina_Bool handled : 1; /**< Set to @c EINA_TRUE by the user to indicate that the popup has been handled and the default implementation should be ignored. Leave as @c EINA_FALSE otherwise. */
14303 typedef struct _Elm_Web_Download Elm_Web_Download;
14304 struct _Elm_Web_Download
14310 * Types of zoom available.
14312 typedef enum _Elm_Web_Zoom_Mode
14314 ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_web_zoom_set */
14315 ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
14316 ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
14317 ELM_WEB_ZOOM_MODE_LAST
14318 } Elm_Web_Zoom_Mode;
14321 * Opaque handler containing the features (such as statusbar, menubar, etc)
14322 * that are to be set on a newly requested window.
14324 typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
14327 * Callback type for the create_window hook.
14329 * The function parameters are:
14330 * @li @p data User data pointer set when setting the hook function
14331 * @li @p obj The elm_web object requesting the new window
14332 * @li @p js Set to @c EINA_TRUE if the request was originated from
14333 * JavaScript. @c EINA_FALSE otherwise.
14334 * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
14335 * the features requested for the new window.
14337 * The returned value of the function should be the @c elm_web widget where
14338 * the request will be loaded. That is, if a new window or tab is created,
14339 * the elm_web widget in it should be returned, and @b NOT the window
14341 * Returning @c NULL should cancel the request.
14343 * @see elm_web_window_create_hook_set()
14345 typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
14348 * Callback type for the JS alert hook.
14350 * The function parameters are:
14351 * @li @p data User data pointer set when setting the hook function
14352 * @li @p obj The elm_web object requesting the new window
14353 * @li @p message The message to show in the alert dialog
14355 * The function should return the object representing the alert dialog.
14356 * Elm_Web will run a second main loop to handle the dialog and normal
14357 * flow of the application will be restored when the object is deleted, so
14358 * the user should handle the popup properly in order to delete the object
14359 * when the action is finished.
14360 * If the function returns @c NULL the popup will be ignored.
14362 * @see elm_web_dialog_alert_hook_set()
14364 typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
14367 * Callback type for the JS confirm hook.
14369 * The function parameters are:
14370 * @li @p data User data pointer set when setting the hook function
14371 * @li @p obj The elm_web object requesting the new window
14372 * @li @p message The message to show in the confirm dialog
14373 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
14374 * the user selected @c Ok, @c EINA_FALSE otherwise.
14376 * The function should return the object representing the confirm dialog.
14377 * Elm_Web will run a second main loop to handle the dialog and normal
14378 * flow of the application will be restored when the object is deleted, so
14379 * the user should handle the popup properly in order to delete the object
14380 * when the action is finished.
14381 * If the function returns @c NULL the popup will be ignored.
14383 * @see elm_web_dialog_confirm_hook_set()
14385 typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
14388 * Callback type for the JS prompt hook.
14390 * The function parameters are:
14391 * @li @p data User data pointer set when setting the hook function
14392 * @li @p obj The elm_web object requesting the new window
14393 * @li @p message The message to show in the prompt dialog
14394 * @li @p def_value The default value to present the user in the entry
14395 * @li @p value Pointer where to store the value given by the user. Must
14396 * be a malloc'ed string or @c NULL if the user cancelled the popup.
14397 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
14398 * the user selected @c Ok, @c EINA_FALSE otherwise.
14400 * The function should return the object representing the prompt dialog.
14401 * Elm_Web will run a second main loop to handle the dialog and normal
14402 * flow of the application will be restored when the object is deleted, so
14403 * the user should handle the popup properly in order to delete the object
14404 * when the action is finished.
14405 * If the function returns @c NULL the popup will be ignored.
14407 * @see elm_web_dialog_prompt_hook_set()
14409 typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
14412 * Callback type for the JS file selector hook.
14414 * The function parameters are:
14415 * @li @p data User data pointer set when setting the hook function
14416 * @li @p obj The elm_web object requesting the new window
14417 * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
14418 * @li @p accept_types Mime types accepted
14419 * @li @p selected Pointer where to store the list of malloc'ed strings
14420 * containing the path to each file selected. Must be @c NULL if the file
14421 * dialog is cancelled
14422 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
14423 * the user selected @c Ok, @c EINA_FALSE otherwise.
14425 * The function should return the object representing the file selector
14427 * Elm_Web will run a second main loop to handle the dialog and normal
14428 * flow of the application will be restored when the object is deleted, so
14429 * the user should handle the popup properly in order to delete the object
14430 * when the action is finished.
14431 * If the function returns @c NULL the popup will be ignored.
14433 * @see elm_web_dialog_file selector_hook_set()
14435 typedef Evas_Object *(*Elm_Web_Dialog_File_Selector)(void *data, Evas_Object *obj, Eina_Bool allows_multiple, Eina_List *accept_types, Eina_List **selected, Eina_Bool *ret);
14438 * Callback type for the JS console message hook.
14440 * When a console message is added from JavaScript, any set function to the
14441 * console message hook will be called for the user to handle. There is no
14442 * default implementation of this hook.
14444 * The function parameters are:
14445 * @li @p data User data pointer set when setting the hook function
14446 * @li @p obj The elm_web object that originated the message
14447 * @li @p message The message sent
14448 * @li @p line_number The line number
14449 * @li @p source_id Source id
14451 * @see elm_web_console_message_hook_set()
14453 typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
14456 * Add a new web object to the parent.
14458 * @param parent The parent object.
14459 * @return The new object or NULL if it cannot be created.
14461 * @see elm_web_uri_set()
14462 * @see elm_web_webkit_view_get()
14464 EAPI Evas_Object *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14467 * Get internal ewk_view object from web object.
14469 * Elementary may not provide some low level features of EWebKit,
14470 * instead of cluttering the API with proxy methods we opted to
14471 * return the internal reference. Be careful using it as it may
14472 * interfere with elm_web behavior.
14474 * @param obj The web object.
14475 * @return The internal ewk_view object or NULL if it does not
14476 * exist. (Failure to create or Elementary compiled without
14479 * @see elm_web_add()
14481 EAPI Evas_Object *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14484 * Sets the function to call when a new window is requested
14486 * This hook will be called when a request to create a new window is
14487 * issued from the web page loaded.
14488 * There is no default implementation for this feature, so leaving this
14489 * unset or passing @c NULL in @p func will prevent new windows from
14492 * @param obj The web object where to set the hook function
14493 * @param func The hook function to be called when a window is requested
14494 * @param data User data
14496 EAPI void elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
14499 * Sets the function to call when an alert dialog
14501 * This hook will be called when a JavaScript alert dialog is requested.
14502 * If no function is set or @c NULL is passed in @p func, the default
14503 * implementation will take place.
14505 * @param obj The web object where to set the hook function
14506 * @param func The callback function to be used
14507 * @param data User data
14509 * @see elm_web_inwin_mode_set()
14511 EAPI void elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
14514 * Sets the function to call when an confirm dialog
14516 * This hook will be called when a JavaScript confirm dialog is requested.
14517 * If no function is set or @c NULL is passed in @p func, the default
14518 * implementation will take place.
14520 * @param obj The web object where to set the hook function
14521 * @param func The callback function to be used
14522 * @param data User data
14524 * @see elm_web_inwin_mode_set()
14526 EAPI void elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
14529 * Sets the function to call when an prompt dialog
14531 * This hook will be called when a JavaScript prompt dialog is requested.
14532 * If no function is set or @c NULL is passed in @p func, the default
14533 * implementation will take place.
14535 * @param obj The web object where to set the hook function
14536 * @param func The callback function to be used
14537 * @param data User data
14539 * @see elm_web_inwin_mode_set()
14541 EAPI void elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
14544 * Sets the function to call when an file selector dialog
14546 * This hook will be called when a JavaScript file selector dialog is
14548 * If no function is set or @c NULL is passed in @p func, the default
14549 * implementation will take place.
14551 * @param obj The web object where to set the hook function
14552 * @param func The callback function to be used
14553 * @param data User data
14555 * @see elm_web_inwin_mode_set()
14557 EAPI void elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
14560 * Sets the function to call when a console message is emitted from JS
14562 * This hook will be called when a console message is emitted from
14563 * JavaScript. There is no default implementation for this feature.
14565 * @param obj The web object where to set the hook function
14566 * @param func The callback function to be used
14567 * @param data User data
14569 EAPI void elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
14572 * Gets the status of the tab propagation
14574 * @param obj The web object to query
14575 * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
14577 * @see elm_web_tab_propagate_set()
14579 EAPI Eina_Bool elm_web_tab_propagate_get(const Evas_Object *obj);
14582 * Sets whether to use tab propagation
14584 * If tab propagation is enabled, whenever the user presses the Tab key,
14585 * Elementary will handle it and switch focus to the next widget.
14586 * The default value is disabled, where WebKit will handle the Tab key to
14587 * cycle focus though its internal objects, jumping to the next widget
14588 * only when that cycle ends.
14590 * @param obj The web object
14591 * @param propagate Whether to propagate Tab keys to Elementary or not
14593 EAPI void elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
14596 * Sets the URI for the web object
14598 * It must be a full URI, with resource included, in the form
14599 * http://www.enlightenment.org or file:///tmp/something.html
14601 * @param obj The web object
14602 * @param uri The URI to set
14603 * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
14605 EAPI Eina_Bool elm_web_uri_set(Evas_Object *obj, const char *uri);
14608 * Gets the current URI for the object
14610 * The returned string must not be freed and is guaranteed to be
14613 * @param obj The web object
14614 * @return A stringshared internal string with the current URI, or NULL on
14617 EAPI const char *elm_web_uri_get(const Evas_Object *obj);
14620 * Gets the current title
14622 * The returned string must not be freed and is guaranteed to be
14625 * @param obj The web object
14626 * @return A stringshared internal string with the current title, or NULL on
14629 EAPI const char *elm_web_title_get(const Evas_Object *obj);
14632 * Sets the background color to be used by the web object
14634 * This is the color that will be used by default when the loaded page
14635 * does not set it's own. Color values are pre-multiplied.
14637 * @param obj The web object
14638 * @param r Red component
14639 * @param g Green component
14640 * @param b Blue component
14641 * @param a Alpha component
14643 EAPI void elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
14646 * Gets the background color to be used by the web object
14648 * This is the color that will be used by default when the loaded page
14649 * does not set it's own. Color values are pre-multiplied.
14651 * @param obj The web object
14652 * @param r Red component
14653 * @param g Green component
14654 * @param b Blue component
14655 * @param a Alpha component
14657 EAPI void elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
14660 * Gets a copy of the currently selected text
14662 * The string returned must be freed by the user when it's done with it.
14664 * @param obj The web object
14665 * @return A newly allocated string, or NULL if nothing is selected or an
14668 EAPI char *elm_view_selection_get(const Evas_Object *obj);
14671 * Tells the web object which index in the currently open popup was selected
14673 * When the user handles the popup creation from the "popup,created" signal,
14674 * it needs to tell the web object which item was selected by calling this
14675 * function with the index corresponding to the item.
14677 * @param obj The web object
14678 * @param index The index selected
14680 * @see elm_web_popup_destroy()
14682 EAPI void elm_web_popup_selected_set(Evas_Object *obj, int index);
14685 * Dismisses an open dropdown popup
14687 * When the popup from a dropdown widget is to be dismissed, either after
14688 * selecting an option or to cancel it, this function must be called, which
14689 * will later emit an "popup,willdelete" signal to notify the user that
14690 * any memory and objects related to this popup can be freed.
14692 * @param obj The web object
14693 * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
14694 * if there was no menu to destroy
14696 EAPI Eina_Bool elm_web_popup_destroy(Evas_Object *obj);
14699 * Searches the given string in a document.
14701 * @param obj The web object where to search the text
14702 * @param string String to search
14703 * @param case_sensitive If search should be case sensitive or not
14704 * @param forward If search is from cursor and on or backwards
14705 * @param wrap If search should wrap at the end
14707 * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
14710 EAPI Eina_Bool elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
14713 * Marks matches of the given string in a document.
14715 * @param obj The web object where to search text
14716 * @param string String to match
14717 * @param case_sensitive If match should be case sensitive or not
14718 * @param highlight If matches should be highlighted
14719 * @param limit Maximum amount of matches, or zero to unlimited
14721 * @return number of matched @a string
14723 EAPI unsigned int elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
14726 * Clears all marked matches in the document
14728 * @param obj The web object
14730 * @return EINA_TRUE on success, EINA_FALSE otherwise
14732 EAPI Eina_Bool elm_web_text_matches_unmark_all(Evas_Object *obj);
14735 * Sets whether to highlight the matched marks
14737 * If enabled, marks set with elm_web_text_matches_mark() will be
14740 * @param obj The web object
14741 * @param highlight Whether to highlight the marks or not
14743 * @return EINA_TRUE on success, EINA_FALSE otherwise
14745 EAPI Eina_Bool elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
14748 * Gets whether highlighting marks is enabled
14750 * @param The web object
14752 * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
14755 EAPI Eina_Bool elm_web_text_matches_highlight_get(const Evas_Object *obj);
14758 * Gets the overall loading progress of the page
14760 * Returns the estimated loading progress of the page, with a value between
14761 * 0.0 and 1.0. This is an estimated progress accounting for all the frames
14762 * included in the page.
14764 * @param The web object
14766 * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
14769 EAPI double elm_web_load_progress_get(const Evas_Object *obj);
14772 * Stops loading the current page
14774 * Cancels the loading of the current page in the web object. This will
14775 * cause a "load,error" signal to be emitted, with the is_cancellation
14776 * flag set to EINA_TRUE.
14778 * @param obj The web object
14780 * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
14782 EAPI Eina_Bool elm_web_stop(Evas_Object *obj);
14785 * Requests a reload of the current document in the object
14787 * @param obj The web object
14789 * @return EINA_TRUE on success, EINA_FALSE otherwise
14791 EAPI Eina_Bool elm_web_reload(Evas_Object *obj);
14794 * Requests a reload of the current document, avoiding any existing caches
14796 * @param obj The web object
14798 * @return EINA_TRUE on success, EINA_FALSE otherwise
14800 EAPI Eina_Bool elm_web_reload_full(Evas_Object *obj);
14803 * Goes back one step in the browsing history
14805 * This is equivalent to calling elm_web_object_navigate(obj, -1);
14807 * @param obj The web object
14809 * @return EINA_TRUE on success, EINA_FALSE otherwise
14811 * @see elm_web_history_enable_set()
14812 * @see elm_web_back_possible()
14813 * @see elm_web_forward()
14814 * @see elm_web_navigate()
14816 EAPI Eina_Bool elm_web_back(Evas_Object *obj);
14819 * Goes forward one step in the browsing history
14821 * This is equivalent to calling elm_web_object_navigate(obj, 1);
14823 * @param obj The web object
14825 * @return EINA_TRUE on success, EINA_FALSE otherwise
14827 * @see elm_web_history_enable_set()
14828 * @see elm_web_forward_possible()
14829 * @see elm_web_back()
14830 * @see elm_web_navigate()
14832 EAPI Eina_Bool elm_web_forward(Evas_Object *obj);
14835 * Jumps the given number of steps in the browsing history
14837 * The @p steps value can be a negative integer to back in history, or a
14838 * positive to move forward.
14840 * @param obj The web object
14841 * @param steps The number of steps to jump
14843 * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
14844 * history exists to jump the given number of steps
14846 * @see elm_web_history_enable_set()
14847 * @see elm_web_navigate_possible()
14848 * @see elm_web_back()
14849 * @see elm_web_forward()
14851 EAPI Eina_Bool elm_web_navigate(Evas_Object *obj, int steps);
14854 * Queries whether it's possible to go back in history
14856 * @param obj The web object
14858 * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
14861 EAPI Eina_Bool elm_web_back_possible(Evas_Object *obj);
14864 * Queries whether it's possible to go forward in history
14866 * @param obj The web object
14868 * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
14871 EAPI Eina_Bool elm_web_forward_possible(Evas_Object *obj);
14874 * Queries whether it's possible to jump the given number of steps
14876 * The @p steps value can be a negative integer to back in history, or a
14877 * positive to move forward.
14879 * @param obj The web object
14880 * @param steps The number of steps to check for
14882 * @return EINA_TRUE if enough history exists to perform the given jump,
14883 * EINA_FALSE otherwise
14885 EAPI Eina_Bool elm_web_navigate_possible(Evas_Object *obj, int steps);
14888 * Gets whether browsing history is enabled for the given object
14890 * @param obj The web object
14892 * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
14894 EAPI Eina_Bool elm_web_history_enable_get(const Evas_Object *obj);
14897 * Enables or disables the browsing history
14899 * @param obj The web object
14900 * @param enable Whether to enable or disable the browsing history
14902 EAPI void elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
14905 * Sets the zoom level of the web object
14907 * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
14908 * values meaning zoom in and lower meaning zoom out. This function will
14909 * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
14910 * is ::ELM_WEB_ZOOM_MODE_MANUAL.
14912 * @param obj The web object
14913 * @param zoom The zoom level to set
14915 EAPI void elm_web_zoom_set(Evas_Object *obj, double zoom);
14918 * Gets the current zoom level set on the web object
14920 * Note that this is the zoom level set on the web object and not that
14921 * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
14922 * the two zoom levels should match, but for the other two modes the
14923 * Webkit zoom is calculated internally to match the chosen mode without
14924 * changing the zoom level set for the web object.
14926 * @param obj The web object
14928 * @return The zoom level set on the object
14930 EAPI double elm_web_zoom_get(const Evas_Object *obj);
14933 * Sets the zoom mode to use
14935 * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
14936 * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
14938 * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
14939 * with the elm_web_zoom_set() function.
14940 * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
14941 * make sure the entirety of the web object's contents are shown.
14942 * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
14943 * fit the contents in the web object's size, without leaving any space
14946 * @param obj The web object
14947 * @param mode The mode to set
14949 EAPI void elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
14952 * Gets the currently set zoom mode
14954 * @param obj The web object
14956 * @return The current zoom mode set for the object, or
14957 * ::ELM_WEB_ZOOM_MODE_LAST on error
14959 EAPI Elm_Web_Zoom_Mode elm_web_zoom_mode_get(const Evas_Object *obj);
14962 * Shows the given region in the web object
14964 * @param obj The web object
14965 * @param x The x coordinate of the region to show
14966 * @param y The y coordinate of the region to show
14967 * @param w The width of the region to show
14968 * @param h The height of the region to show
14970 EAPI void elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
14973 * Brings in the region to the visible area
14975 * Like elm_web_region_show(), but it animates the scrolling of the object
14978 * @param obj The web object
14979 * @param x The x coordinate of the region to show
14980 * @param y The y coordinate of the region to show
14981 * @param w The width of the region to show
14982 * @param h The height of the region to show
14984 EAPI void elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
14987 * Sets the default dialogs to use an Inwin instead of a normal window
14989 * If set, then the default implementation for the JavaScript dialogs and
14990 * file selector will be opened in an Inwin. Otherwise they will use a
14991 * normal separated window.
14993 * @param obj The web object
14994 * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
14996 EAPI void elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
14999 * Gets whether Inwin mode is set for the current object
15001 * @param obj The web object
15003 * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
15005 EAPI Eina_Bool elm_web_inwin_mode_get(const Evas_Object *obj);
15007 EAPI void elm_web_window_features_ref(Elm_Web_Window_Features *wf);
15008 EAPI void elm_web_window_features_unref(Elm_Web_Window_Features *wf);
15009 EAPI void elm_web_window_features_bool_property_get(const Elm_Web_Window_Features *wf, Eina_Bool *toolbar_visible, Eina_Bool *statusbar_visible, Eina_Bool *scrollbars_visible, Eina_Bool *menubar_visible, Eina_Bool *locationbar_visble, Eina_Bool *fullscreen);
15010 EAPI void elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
15017 * @defgroup Hoversel Hoversel
15019 * @image html img/widget/hoversel/preview-00.png
15020 * @image latex img/widget/hoversel/preview-00.eps
15022 * A hoversel is a button that pops up a list of items (automatically
15023 * choosing the direction to display) that have a label and, optionally, an
15024 * icon to select from. It is a convenience widget to avoid the need to do
15025 * all the piecing together yourself. It is intended for a small number of
15026 * items in the hoversel menu (no more than 8), though is capable of many
15029 * Signals that you can add callbacks for are:
15030 * "clicked" - the user clicked the hoversel button and popped up the sel
15031 * "selected" - an item in the hoversel list is selected. event_info is the item
15032 * "dismissed" - the hover is dismissed
15034 * Default contents parts of the hoversel widget that you can use for are:
15035 * @li "icon" - An icon of the hoversel
15037 * Default text parts of the hoversel widget that you can use for are:
15038 * @li "default" - Label of the hoversel
15040 * Supported elm_object common APIs.
15041 * @li elm_object_disabled_set
15042 * @li elm_object_text_set
15043 * @li elm_object_part_text_set
15044 * @li elm_object_text_get
15045 * @li elm_object_part_text_get
15046 * @li elm_object_content_set
15047 * @li elm_object_part_content_set
15048 * @li elm_object_content_unset
15049 * @li elm_object_part_content_unset
15051 * Supported elm_object_item common APIs.
15052 * @li elm_object_item_text_get
15053 * @li elm_object_item_part_text_get
15055 * See @ref tutorial_hoversel for an example.
15060 * @brief Add a new Hoversel object
15062 * @param parent The parent object
15063 * @return The new object or NULL if it cannot be created
15065 EAPI Evas_Object *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15068 * @brief This sets the hoversel to expand horizontally.
15070 * @param obj The hoversel object
15071 * @param horizontal If true, the hover will expand horizontally to the
15074 * @note The initial button will display horizontally regardless of this
15077 EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15080 * @brief This returns whether the hoversel is set to expand horizontally.
15082 * @param obj The hoversel object
15083 * @return If true, the hover will expand horizontally to the right.
15085 * @see elm_hoversel_horizontal_set()
15087 EAPI Eina_Bool elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15090 * @brief Set the Hover parent
15092 * @param obj The hoversel object
15093 * @param parent The parent to use
15095 * Sets the hover parent object, the area that will be darkened when the
15096 * hoversel is clicked. Should probably be the window that the hoversel is
15097 * in. See @ref Hover objects for more information.
15099 EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15101 * @brief Get the Hover parent
15103 * @param obj The hoversel object
15104 * @return The used parent
15106 * Gets the hover parent object.
15108 * @see elm_hoversel_hover_parent_set()
15110 EAPI Evas_Object *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15113 * @brief Set the hoversel button label
15115 * @param obj The hoversel object
15116 * @param label The label text.
15118 * This sets the label of the button that is always visible (before it is
15119 * clicked and expanded).
15121 * @deprecated elm_object_text_set()
15123 EINA_DEPRECATED EAPI void elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15126 * @brief Get the hoversel button label
15128 * @param obj The hoversel object
15129 * @return The label text.
15131 * @deprecated elm_object_text_get()
15133 EINA_DEPRECATED EAPI const char *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15136 * @brief Set the icon of the hoversel button
15138 * @param obj The hoversel object
15139 * @param icon The icon object
15141 * Sets the icon of the button that is always visible (before it is clicked
15142 * and expanded). Once the icon object is set, a previously set one will be
15143 * deleted, if you want to keep that old content object, use the
15144 * elm_hoversel_icon_unset() function.
15146 * @see elm_object_content_set() for the button widget
15147 * @deprecated Use elm_object_item_part_content_set() instead
15149 EINA_DEPRECATED EAPI void elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15152 * @brief Get the icon of the hoversel button
15154 * @param obj The hoversel object
15155 * @return The icon object
15157 * Get the icon of the button that is always visible (before it is clicked
15158 * and expanded). Also see elm_object_content_get() for the button widget.
15160 * @see elm_hoversel_icon_set()
15161 * @deprecated Use elm_object_item_part_content_get() instead
15163 EINA_DEPRECATED EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15166 * @brief Get and unparent the icon of the hoversel button
15168 * @param obj The hoversel object
15169 * @return The icon object that was being used
15171 * Unparent and return the icon of the button that is always visible
15172 * (before it is clicked and expanded).
15174 * @see elm_hoversel_icon_set()
15175 * @see elm_object_content_unset() for the button widget
15176 * @deprecated Use elm_object_item_part_content_unset() instead
15178 EINA_DEPRECATED EAPI Evas_Object *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15181 * @brief This triggers the hoversel popup from code, the same as if the user
15182 * had clicked the button.
15184 * @param obj The hoversel object
15186 EAPI void elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
15189 * @brief This dismisses the hoversel popup as if the user had clicked
15190 * outside the hover.
15192 * @param obj The hoversel object
15194 EAPI void elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
15197 * @brief Returns whether the hoversel is expanded.
15199 * @param obj The hoversel object
15200 * @return This will return EINA_TRUE if the hoversel is expanded or
15201 * EINA_FALSE if it is not expanded.
15203 EAPI Eina_Bool elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15206 * @brief This will remove all the children items from the hoversel.
15208 * @param obj The hoversel object
15210 * @warning Should @b not be called while the hoversel is active; use
15211 * elm_hoversel_expanded_get() to check first.
15213 * @see elm_hoversel_item_del_cb_set()
15214 * @see elm_hoversel_item_del()
15216 EAPI void elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
15219 * @brief Get the list of items within the given hoversel.
15221 * @param obj The hoversel object
15222 * @return Returns a list of Elm_Object_Item*
15224 * @see elm_hoversel_item_add()
15226 EAPI const Eina_List *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15229 * @brief Add an item to the hoversel button
15231 * @param obj The hoversel object
15232 * @param label The text label to use for the item (NULL if not desired)
15233 * @param icon_file An image file path on disk to use for the icon or standard
15234 * icon name (NULL if not desired)
15235 * @param icon_type The icon type if relevant
15236 * @param func Convenience function to call when this item is selected
15237 * @param data Data to pass to item-related functions
15238 * @return A handle to the item added.
15240 * This adds an item to the hoversel to show when it is clicked. Note: if you
15241 * need to use an icon from an edje file then use
15242 * elm_hoversel_item_icon_set() right after the this function, and set
15243 * icon_file to NULL here.
15245 * For more information on what @p icon_file and @p icon_type are see the
15246 * @ref Icon "icon documentation".
15248 EAPI Elm_Object_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15251 * @brief Delete an item from the hoversel
15253 * @param it The item to delete
15255 * This deletes the item from the hoversel (should not be called while the
15256 * hoversel is active; use elm_hoversel_expanded_get() to check first).
15258 * @see elm_hoversel_item_add()
15259 * @see elm_hoversel_item_del_cb_set()
15261 EAPI void elm_hoversel_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15264 * @brief Set the function to be called when an item from the hoversel is
15267 * @param item The item to set the callback on
15268 * @param func The function called
15270 * That function will receive these parameters:
15271 * @li void * item data
15272 * @li Evas_Object * hoversel object
15273 * @li Elm_Object_Item * hoversel item
15275 * @see elm_hoversel_item_add()
15277 EAPI void elm_hoversel_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15280 * @brief This returns the data pointer supplied with elm_hoversel_item_add()
15281 * that will be passed to associated function callbacks.
15283 * @param it The item to get the data from
15284 * @return The data pointer set with elm_hoversel_item_add()
15286 * @see elm_hoversel_item_add()
15287 * @deprecated Use elm_object_item_data_get() instead
15289 EINA_DEPRECATED EAPI void *elm_hoversel_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15292 * @brief This returns the label text of the given hoversel item.
15294 * @param it The item to get the label
15295 * @return The label text of the hoversel item
15297 * @see elm_hoversel_item_add()
15298 * @deprecated Use elm_object_item_text_get() instead
15300 EINA_DEPRECATED EAPI const char *elm_hoversel_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15303 * @brief This sets the icon for the given hoversel item.
15305 * @param item The item to set the icon
15306 * @param icon_file An image file path on disk to use for the icon or standard
15308 * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
15309 * to NULL if the icon is not an edje file
15310 * @param icon_type The icon type
15312 * The icon can be loaded from the standard set, from an image file, or from
15315 * @see elm_hoversel_item_add()
15317 EAPI void elm_hoversel_item_icon_set(Elm_Object_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type) EINA_ARG_NONNULL(1);
15320 * @brief Get the icon object of the hoversel item
15322 * @param item The item to get the icon from
15323 * @param icon_file The image file path on disk used for the icon or standard
15325 * @param icon_group The edje group used if @p icon_file is an edje file. NULL
15326 * if the icon is not an edje file
15327 * @param icon_type The icon type
15329 * @see elm_hoversel_item_icon_set()
15330 * @see elm_hoversel_item_add()
15332 EAPI void elm_hoversel_item_icon_get(const Elm_Object_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type) EINA_ARG_NONNULL(1);
15339 * @defgroup Toolbar Toolbar
15340 * @ingroup Elementary
15342 * @image html img/widget/toolbar/preview-00.png
15343 * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
15345 * @image html img/toolbar.png
15346 * @image latex img/toolbar.eps width=\textwidth
15348 * A toolbar is a widget that displays a list of items inside
15349 * a box. It can be scrollable, show a menu with items that don't fit
15350 * to toolbar size or even crop them.
15352 * Only one item can be selected at a time.
15354 * Items can have multiple states, or show menus when selected by the user.
15356 * Smart callbacks one can listen to:
15357 * - "clicked" - when the user clicks on a toolbar item and becomes selected.
15358 * - "language,changed" - when the program language changes
15360 * Available styles for it:
15362 * - @c "transparent" - no background or shadow, just show the content
15364 * Default text parts of the toolbar items that you can use for are:
15365 * @li "default" - label of the toolbar item
15367 * Supported elm_object_item common APIs.
15368 * @li elm_object_item_disabled_set
15369 * @li elm_object_item_text_set
15370 * @li elm_object_item_part_text_set
15371 * @li elm_object_item_text_get
15372 * @li elm_object_item_part_text_get
15374 * List of examples:
15375 * @li @ref toolbar_example_01
15376 * @li @ref toolbar_example_02
15377 * @li @ref toolbar_example_03
15381 * @addtogroup Toolbar
15386 * @enum _Elm_Toolbar_Shrink_Mode
15387 * @typedef Elm_Toolbar_Shrink_Mode
15389 * Set toolbar's items display behavior, it can be scrollabel,
15390 * show a menu with exceeding items, or simply hide them.
15392 * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
15395 * Values <b> don't </b> work as bitmask, only one can be choosen.
15397 * @see elm_toolbar_mode_shrink_set()
15398 * @see elm_toolbar_mode_shrink_get()
15402 typedef enum _Elm_Toolbar_Shrink_Mode
15404 ELM_TOOLBAR_SHRINK_NONE, /**< Set toolbar minimun size to fit all the items. */
15405 ELM_TOOLBAR_SHRINK_HIDE, /**< Hide exceeding items. */
15406 ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
15407 ELM_TOOLBAR_SHRINK_MENU, /**< Inserts a button to pop up a menu with exceeding items. */
15408 ELM_TOOLBAR_SHRINK_LAST /**< Indicates error if returned by elm_toolbar_shrink_mode_get() */
15409 } Elm_Toolbar_Shrink_Mode;
15411 typedef struct _Elm_Toolbar_Item_State Elm_Toolbar_Item_State; /**< State of a Elm_Toolbar_Item. Can be created with elm_toolbar_item_state_add() and removed with elm_toolbar_item_state_del(). */
15414 * Add a new toolbar widget to the given parent Elementary
15415 * (container) object.
15417 * @param parent The parent object.
15418 * @return a new toolbar widget handle or @c NULL, on errors.
15420 * This function inserts a new toolbar widget on the canvas.
15424 EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15427 * Set the icon size, in pixels, to be used by toolbar items.
15429 * @param obj The toolbar object
15430 * @param icon_size The icon size in pixels
15432 * @note Default value is @c 32. It reads value from elm config.
15434 * @see elm_toolbar_icon_size_get()
15438 EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
15441 * Get the icon size, in pixels, to be used by toolbar items.
15443 * @param obj The toolbar object.
15444 * @return The icon size in pixels.
15446 * @see elm_toolbar_icon_size_set() for details.
15450 EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15453 * Sets icon lookup order, for toolbar items' icons.
15455 * @param obj The toolbar object.
15456 * @param order The icon lookup order.
15458 * Icons added before calling this function will not be affected.
15459 * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
15461 * @see elm_toolbar_icon_order_lookup_get()
15465 EAPI void elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
15468 * Gets the icon lookup order.
15470 * @param obj The toolbar object.
15471 * @return The icon lookup order.
15473 * @see elm_toolbar_icon_order_lookup_set() for details.
15477 EAPI Elm_Icon_Lookup_Order elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15480 * Set whether the toolbar should always have an item selected.
15482 * @param obj The toolbar object.
15483 * @param wrap @c EINA_TRUE to enable always-select mode or @c EINA_FALSE to
15486 * This will cause the toolbar to always have an item selected, and clicking
15487 * the selected item will not cause a selected event to be emitted. Enabling this mode
15488 * will immediately select the first toolbar item.
15490 * Always-selected is disabled by default.
15492 * @see elm_toolbar_always_select_mode_get().
15496 EAPI void elm_toolbar_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
15499 * Get whether the toolbar should always have an item selected.
15501 * @param obj The toolbar object.
15502 * @return @c EINA_TRUE means an item will always be selected, @c EINA_FALSE indicates
15503 * that it is possible to have no items selected. If @p obj is @c NULL, @c EINA_FALSE is returned.
15505 * @see elm_toolbar_always_select_mode_set() for details.
15509 EAPI Eina_Bool elm_toolbar_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15512 * Set whether the toolbar items' should be selected by the user or not.
15514 * @param obj The toolbar object.
15515 * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
15518 * This will turn off the ability to select items entirely and they will
15519 * neither appear selected nor emit selected signals. The clicked
15520 * callback function will still be called.
15522 * Selection is enabled by default.
15524 * @see elm_toolbar_no_select_mode_get().
15528 EAPI void elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
15531 * Set whether the toolbar items' should be selected by the user or not.
15533 * @param obj The toolbar object.
15534 * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
15535 * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
15537 * @see elm_toolbar_no_select_mode_set() for details.
15541 EAPI Eina_Bool elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15544 * Append item to the toolbar.
15546 * @param obj The toolbar object.
15547 * @param icon A string with icon name or the absolute path of an image file.
15548 * @param label The label of the item.
15549 * @param func The function to call when the item is clicked.
15550 * @param data The data to associate with the item for related callbacks.
15551 * @return The created item or @c NULL upon failure.
15553 * A new item will be created and appended to the toolbar, i.e., will
15554 * be set as @b last item.
15556 * Items created with this method can be deleted with
15557 * elm_toolbar_item_del().
15559 * Associated @p data can be properly freed when item is deleted if a
15560 * callback function is set with elm_toolbar_item_del_cb_set().
15562 * If a function is passed as argument, it will be called everytime this item
15563 * is selected, i.e., the user clicks over an unselected item.
15564 * If such function isn't needed, just passing
15565 * @c NULL as @p func is enough. The same should be done for @p data.
15567 * Toolbar will load icon image from fdo or current theme.
15568 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15569 * If an absolute path is provided it will load it direct from a file.
15571 * @see elm_toolbar_item_icon_set()
15572 * @see elm_toolbar_item_del()
15573 * @see elm_toolbar_item_del_cb_set()
15577 EAPI Elm_Object_Item *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15580 * Prepend item to the toolbar.
15582 * @param obj The toolbar object.
15583 * @param icon A string with icon name or the absolute path of an image file.
15584 * @param label The label of the item.
15585 * @param func The function to call when the item is clicked.
15586 * @param data The data to associate with the item for related callbacks.
15587 * @return The created item or @c NULL upon failure.
15589 * A new item will be created and prepended to the toolbar, i.e., will
15590 * be set as @b first item.
15592 * Items created with this method can be deleted with
15593 * elm_toolbar_item_del().
15595 * Associated @p data can be properly freed when item is deleted if a
15596 * callback function is set with elm_toolbar_item_del_cb_set().
15598 * If a function is passed as argument, it will be called everytime this item
15599 * is selected, i.e., the user clicks over an unselected item.
15600 * If such function isn't needed, just passing
15601 * @c NULL as @p func is enough. The same should be done for @p data.
15603 * Toolbar will load icon image from fdo or current theme.
15604 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15605 * If an absolute path is provided it will load it direct from a file.
15607 * @see elm_toolbar_item_icon_set()
15608 * @see elm_toolbar_item_del()
15609 * @see elm_toolbar_item_del_cb_set()
15613 EAPI Elm_Object_Item *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15616 * Insert a new item into the toolbar object before item @p before.
15618 * @param obj The toolbar object.
15619 * @param before The toolbar item to insert before.
15620 * @param icon A string with icon name or the absolute path of an image file.
15621 * @param label The label of the item.
15622 * @param func The function to call when the item is clicked.
15623 * @param data The data to associate with the item for related callbacks.
15624 * @return The created item or @c NULL upon failure.
15626 * A new item will be created and added to the toolbar. Its position in
15627 * this toolbar will be just before item @p before.
15629 * Items created with this method can be deleted with
15630 * elm_toolbar_item_del().
15632 * Associated @p data can be properly freed when item is deleted if a
15633 * callback function is set with elm_toolbar_item_del_cb_set().
15635 * If a function is passed as argument, it will be called everytime this item
15636 * is selected, i.e., the user clicks over an unselected item.
15637 * If such function isn't needed, just passing
15638 * @c NULL as @p func is enough. The same should be done for @p data.
15640 * Toolbar will load icon image from fdo or current theme.
15641 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15642 * If an absolute path is provided it will load it direct from a file.
15644 * @see elm_toolbar_item_icon_set()
15645 * @see elm_toolbar_item_del()
15646 * @see elm_toolbar_item_del_cb_set()
15650 EAPI Elm_Object_Item *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15653 * Insert a new item into the toolbar object after item @p after.
15655 * @param obj The toolbar object.
15656 * @param after The toolbar item to insert after.
15657 * @param icon A string with icon name or the absolute path of an image file.
15658 * @param label The label of the item.
15659 * @param func The function to call when the item is clicked.
15660 * @param data The data to associate with the item for related callbacks.
15661 * @return The created item or @c NULL upon failure.
15663 * A new item will be created and added to the toolbar. Its position in
15664 * this toolbar will be just after item @p after.
15666 * Items created with this method can be deleted with
15667 * elm_toolbar_item_del().
15669 * Associated @p data can be properly freed when item is deleted if a
15670 * callback function is set with elm_toolbar_item_del_cb_set().
15672 * If a function is passed as argument, it will be called everytime this item
15673 * is selected, i.e., the user clicks over an unselected item.
15674 * If such function isn't needed, just passing
15675 * @c NULL as @p func is enough. The same should be done for @p data.
15677 * Toolbar will load icon image from fdo or current theme.
15678 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15679 * If an absolute path is provided it will load it direct from a file.
15681 * @see elm_toolbar_item_icon_set()
15682 * @see elm_toolbar_item_del()
15683 * @see elm_toolbar_item_del_cb_set()
15687 EAPI Elm_Object_Item *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15690 * Get the first item in the given toolbar widget's list of
15693 * @param obj The toolbar object
15694 * @return The first item or @c NULL, if it has no items (and on
15697 * @see elm_toolbar_item_append()
15698 * @see elm_toolbar_last_item_get()
15702 EAPI Elm_Object_Item *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15705 * Get the last item in the given toolbar widget's list of
15708 * @param obj The toolbar object
15709 * @return The last item or @c NULL, if it has no items (and on
15712 * @see elm_toolbar_item_prepend()
15713 * @see elm_toolbar_first_item_get()
15717 EAPI Elm_Object_Item *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15720 * Get the item after @p item in toolbar.
15722 * @param it The toolbar item.
15723 * @return The item after @p item, or @c NULL if none or on failure.
15725 * @note If it is the last item, @c NULL will be returned.
15727 * @see elm_toolbar_item_append()
15731 EAPI Elm_Object_Item *elm_toolbar_item_next_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15734 * Get the item before @p item in toolbar.
15736 * @param item The toolbar item.
15737 * @return The item before @p item, or @c NULL if none or on failure.
15739 * @note If it is the first item, @c NULL will be returned.
15741 * @see elm_toolbar_item_prepend()
15745 EAPI Elm_Object_Item *elm_toolbar_item_prev_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15748 * Get the toolbar object from an item.
15750 * @param it The item.
15751 * @return The toolbar object.
15753 * This returns the toolbar object itself that an item belongs to.
15755 * @deprecated use elm_object_item_object_get() instead.
15758 EINA_DEPRECATED EAPI Evas_Object *elm_toolbar_item_toolbar_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15761 * Set the priority of a toolbar item.
15763 * @param it The toolbar item.
15764 * @param priority The item priority. The default is zero.
15766 * This is used only when the toolbar shrink mode is set to
15767 * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
15768 * When space is less than required, items with low priority
15769 * will be removed from the toolbar and added to a dynamically-created menu,
15770 * while items with higher priority will remain on the toolbar,
15771 * with the same order they were added.
15773 * @see elm_toolbar_item_priority_get()
15777 EAPI void elm_toolbar_item_priority_set(Elm_Object_Item *it, int priority) EINA_ARG_NONNULL(1);
15780 * Get the priority of a toolbar item.
15782 * @param it The toolbar item.
15783 * @return The @p item priority, or @c 0 on failure.
15785 * @see elm_toolbar_item_priority_set() for details.
15789 EAPI int elm_toolbar_item_priority_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15792 * Get the label of item.
15794 * @param it The item of toolbar.
15795 * @return The label of item.
15797 * The return value is a pointer to the label associated to @p item when
15798 * it was created, with function elm_toolbar_item_append() or similar,
15800 * with function elm_toolbar_item_label_set. If no label
15801 * was passed as argument, it will return @c NULL.
15803 * @see elm_toolbar_item_label_set() for more details.
15804 * @see elm_toolbar_item_append()
15806 * @deprecated use elm_object_item_text_get() instead.
15809 EINA_DEPRECATED EAPI const char *elm_toolbar_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15812 * Set the label of item.
15814 * @param it The item of toolbar.
15815 * @param text The label of item.
15817 * The label to be displayed by the item.
15818 * Label will be placed at icons bottom (if set).
15820 * If a label was passed as argument on item creation, with function
15821 * elm_toolbar_item_append() or similar, it will be already
15822 * displayed by the item.
15824 * @see elm_toolbar_item_label_get()
15825 * @see elm_toolbar_item_append()
15827 * @deprecated use elm_object_item_text_set() instead
15830 EINA_DEPRECATED EAPI void elm_toolbar_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
15833 * Return the data associated with a given toolbar widget item.
15835 * @param it The toolbar widget item handle.
15836 * @return The data associated with @p item.
15838 * @see elm_toolbar_item_data_set()
15840 * @deprecated use elm_object_item_data_get() instead.
15843 EINA_DEPRECATED EAPI void *elm_toolbar_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15846 * Set the data associated with a given toolbar widget item.
15848 * @param it The toolbar widget item handle
15849 * @param data The new data pointer to set to @p item.
15851 * This sets new item data on @p item.
15853 * @warning The old data pointer won't be touched by this function, so
15854 * the user had better to free that old data himself/herself.
15856 * @deprecated use elm_object_item_data_set() instead.
15859 EINA_DEPRECATED EAPI void elm_toolbar_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
15862 * Returns a pointer to a toolbar item by its label.
15864 * @param obj The toolbar object.
15865 * @param label The label of the item to find.
15867 * @return The pointer to the toolbar item matching @p label or @c NULL
15872 EAPI Elm_Object_Item *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15875 * Get whether the @p item is selected or not.
15877 * @param it The toolbar item.
15878 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15879 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15881 * @see elm_toolbar_selected_item_set() for details.
15882 * @see elm_toolbar_item_selected_get()
15886 EAPI Eina_Bool elm_toolbar_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15889 * Set the selected state of an item.
15891 * @param it The toolbar item
15892 * @param selected The selected state
15894 * This sets the selected state of the given item @p it.
15895 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15897 * If a new item is selected the previosly selected will be unselected.
15898 * Previoulsy selected item can be get with function
15899 * elm_toolbar_selected_item_get().
15901 * Selected items will be highlighted.
15903 * @see elm_toolbar_item_selected_get()
15904 * @see elm_toolbar_selected_item_get()
15908 EAPI void elm_toolbar_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
15911 * Get the selected item.
15913 * @param obj The toolbar object.
15914 * @return The selected toolbar item.
15916 * The selected item can be unselected with function
15917 * elm_toolbar_item_selected_set().
15919 * The selected item always will be highlighted on toolbar.
15921 * @see elm_toolbar_selected_items_get()
15925 EAPI Elm_Object_Item *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15928 * Set the icon associated with @p item.
15930 * @param obj The parent of this item.
15931 * @param it The toolbar item.
15932 * @param icon A string with icon name or the absolute path of an image file.
15934 * Toolbar will load icon image from fdo or current theme.
15935 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15936 * If an absolute path is provided it will load it direct from a file.
15938 * @see elm_toolbar_icon_order_lookup_set()
15939 * @see elm_toolbar_icon_order_lookup_get()
15943 EAPI void elm_toolbar_item_icon_set(Elm_Object_Item *it, const char *icon) EINA_ARG_NONNULL(1);
15946 * Get the string used to set the icon of @p item.
15948 * @param it The toolbar item.
15949 * @return The string associated with the icon object.
15951 * @see elm_toolbar_item_icon_set() for details.
15955 EAPI const char *elm_toolbar_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15958 * Get the object of @p item.
15960 * @param it The toolbar item.
15961 * @return The object
15965 EAPI Evas_Object *elm_toolbar_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15968 * Get the icon object of @p item.
15970 * @param it The toolbar item.
15971 * @return The icon object
15973 * @see elm_toolbar_item_icon_set(), elm_toolbar_item_icon_file_set(),
15974 * or elm_toolbar_item_icon_memfile_set() for details.
15978 EAPI Evas_Object *elm_toolbar_item_icon_object_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
15981 * Set the icon associated with @p item to an image in a binary buffer.
15983 * @param it The toolbar item.
15984 * @param img The binary data that will be used as an image
15985 * @param size The size of binary data @p img
15986 * @param format Optional format of @p img to pass to the image loader
15987 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
15989 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
15991 * @note The icon image set by this function can be changed by
15992 * elm_toolbar_item_icon_set().
15996 EAPI Eina_Bool elm_toolbar_item_icon_memfile_set(Elm_Object_Item *it, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1);
15999 * Set the icon associated with @p item to an image in a binary buffer.
16001 * @param it The toolbar item.
16002 * @param file The file that contains the image
16003 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
16005 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
16007 * @note The icon image set by this function can be changed by
16008 * elm_toolbar_item_icon_set().
16012 EAPI Eina_Bool elm_toolbar_item_icon_file_set(Elm_Object_Item *it, const char *file, const char *key) EINA_ARG_NONNULL(1);
16015 * Delete them item from the toolbar.
16017 * @param it The item of toolbar to be deleted.
16019 * @see elm_toolbar_item_append()
16020 * @see elm_toolbar_item_del_cb_set()
16024 EAPI void elm_toolbar_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16027 * Set the function called when a toolbar item is freed.
16029 * @param it The item to set the callback on.
16030 * @param func The function called.
16032 * If there is a @p func, then it will be called prior item's memory release.
16033 * That will be called with the following arguments:
16035 * @li item's Evas object;
16038 * This way, a data associated to a toolbar item could be properly freed.
16042 EAPI void elm_toolbar_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16045 * Get a value whether toolbar item is disabled or not.
16047 * @param it The item.
16048 * @return The disabled state.
16050 * @see elm_toolbar_item_disabled_set() for more details.
16052 * @deprecated use elm_object_item_disabled_get() instead.
16055 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16058 * Sets the disabled/enabled state of a toolbar item.
16060 * @param it The item.
16061 * @param disabled The disabled state.
16063 * A disabled item cannot be selected or unselected. It will also
16064 * change its appearance (generally greyed out). This sets the
16065 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
16068 * @deprecated use elm_object_item_disabled_set() instead.
16071 EINA_DEPRECATED EAPI void elm_toolbar_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16074 * Set or unset item as a separator.
16076 * @param it The toolbar item.
16077 * @param setting @c EINA_TRUE to set item @p item as separator or
16078 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
16080 * Items aren't set as separator by default.
16082 * If set as separator it will display separator theme, so won't display
16085 * @see elm_toolbar_item_separator_get()
16089 EAPI void elm_toolbar_item_separator_set(Elm_Object_Item *it, Eina_Bool separator) EINA_ARG_NONNULL(1);
16092 * Get a value whether item is a separator or not.
16094 * @param it The toolbar item.
16095 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
16096 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
16098 * @see elm_toolbar_item_separator_set() for details.
16102 EAPI Eina_Bool elm_toolbar_item_separator_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16105 * Set the shrink state of toolbar @p obj.
16107 * @param obj The toolbar object.
16108 * @param shrink_mode Toolbar's items display behavior.
16110 * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
16111 * but will enforce a minimun size so all the items will fit, won't scroll
16112 * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
16113 * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
16114 * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
16118 EAPI void elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
16121 * Get the shrink mode of toolbar @p obj.
16123 * @param obj The toolbar object.
16124 * @return Toolbar's items display behavior.
16126 * @see elm_toolbar_mode_shrink_set() for details.
16130 EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16133 * Enable/disable homogeneous mode.
16135 * @param obj The toolbar object
16136 * @param homogeneous Assume the items within the toolbar are of the
16137 * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
16139 * This will enable the homogeneous mode where items are of the same size.
16140 * @see elm_toolbar_homogeneous_get()
16144 EAPI void elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
16147 * Get whether the homogeneous mode is enabled.
16149 * @param obj The toolbar object.
16150 * @return Assume the items within the toolbar are of the same height
16151 * and width (EINA_TRUE = on, EINA_FALSE = off).
16153 * @see elm_toolbar_homogeneous_set()
16157 EAPI Eina_Bool elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16160 * Set the parent object of the toolbar items' menus.
16162 * @param obj The toolbar object.
16163 * @param parent The parent of the menu objects.
16165 * Each item can be set as item menu, with elm_toolbar_item_menu_set().
16167 * For more details about setting the parent for toolbar menus, see
16168 * elm_menu_parent_set().
16170 * @see elm_menu_parent_set() for details.
16171 * @see elm_toolbar_item_menu_set() for details.
16175 EAPI void elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
16178 * Get the parent object of the toolbar items' menus.
16180 * @param obj The toolbar object.
16181 * @return The parent of the menu objects.
16183 * @see elm_toolbar_menu_parent_set() for details.
16187 EAPI Evas_Object *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16190 * Set the alignment of the items.
16192 * @param obj The toolbar object.
16193 * @param align The new alignment, a float between <tt> 0.0 </tt>
16194 * and <tt> 1.0 </tt>.
16196 * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
16197 * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
16200 * Centered items by default.
16202 * @see elm_toolbar_align_get()
16206 EAPI void elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
16209 * Get the alignment of the items.
16211 * @param obj The toolbar object.
16212 * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
16215 * @see elm_toolbar_align_set() for details.
16219 EAPI double elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16222 * Set whether the toolbar item opens a menu.
16224 * @param it The toolbar item.
16225 * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
16227 * A toolbar item can be set to be a menu, using this function.
16229 * Once it is set to be a menu, it can be manipulated through the
16230 * menu-like function elm_toolbar_menu_parent_set() and the other
16231 * elm_menu functions, using the Evas_Object @c menu returned by
16232 * elm_toolbar_item_menu_get().
16234 * So, items to be displayed in this item's menu should be added with
16235 * elm_menu_item_add().
16237 * The following code exemplifies the most basic usage:
16239 * tb = elm_toolbar_add(win)
16240 * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
16241 * elm_toolbar_item_menu_set(item, EINA_TRUE);
16242 * elm_toolbar_menu_parent_set(tb, win);
16243 * menu = elm_toolbar_item_menu_get(item);
16244 * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
16245 * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
16249 * @see elm_toolbar_item_menu_get()
16253 EAPI void elm_toolbar_item_menu_set(Elm_Object_Item *it, Eina_Bool menu) EINA_ARG_NONNULL(1);
16256 * Get toolbar item's menu.
16258 * @param it The toolbar item.
16259 * @return Item's menu object or @c NULL on failure.
16261 * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
16262 * this function will set it.
16264 * @see elm_toolbar_item_menu_set() for details.
16268 EAPI Evas_Object *elm_toolbar_item_menu_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16271 * Add a new state to @p item.
16273 * @param it The toolbar item.
16274 * @param icon A string with icon name or the absolute path of an image file.
16275 * @param label The label of the new state.
16276 * @param func The function to call when the item is clicked when this
16277 * state is selected.
16278 * @param data The data to associate with the state.
16279 * @return The toolbar item state, or @c NULL upon failure.
16281 * Toolbar will load icon image from fdo or current theme.
16282 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
16283 * If an absolute path is provided it will load it direct from a file.
16285 * States created with this function can be removed with
16286 * elm_toolbar_item_state_del().
16288 * @see elm_toolbar_item_state_del()
16289 * @see elm_toolbar_item_state_sel()
16290 * @see elm_toolbar_item_state_get()
16294 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Object_Item *it, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16297 * Delete a previoulsy added state to @p item.
16299 * @param it The toolbar item.
16300 * @param state The state to be deleted.
16301 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
16303 * @see elm_toolbar_item_state_add()
16305 EAPI Eina_Bool elm_toolbar_item_state_del(Elm_Object_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
16308 * Set @p state as the current state of @p it.
16310 * @param it The toolbar item.
16311 * @param state The state to use.
16312 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
16314 * If @p state is @c NULL, it won't select any state and the default item's
16315 * icon and label will be used. It's the same behaviour than
16316 * elm_toolbar_item_state_unser().
16318 * @see elm_toolbar_item_state_unset()
16322 EAPI Eina_Bool elm_toolbar_item_state_set(Elm_Object_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
16325 * Unset the state of @p it.
16327 * @param it The toolbar item.
16329 * The default icon and label from this item will be displayed.
16331 * @see elm_toolbar_item_state_set() for more details.
16335 EAPI void elm_toolbar_item_state_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16338 * Get the current state of @p it.
16340 * @param it The toolbar item.
16341 * @return The selected state or @c NULL if none is selected or on failure.
16343 * @see elm_toolbar_item_state_set() for details.
16344 * @see elm_toolbar_item_state_unset()
16345 * @see elm_toolbar_item_state_add()
16349 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16352 * Get the state after selected state in toolbar's @p item.
16354 * @param it The toolbar item to change state.
16355 * @return The state after current state, or @c NULL on failure.
16357 * If last state is selected, this function will return first state.
16359 * @see elm_toolbar_item_state_set()
16360 * @see elm_toolbar_item_state_add()
16364 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16367 * Get the state before selected state in toolbar's @p item.
16369 * @param it The toolbar item to change state.
16370 * @return The state before current state, or @c NULL on failure.
16372 * If first state is selected, this function will return last state.
16374 * @see elm_toolbar_item_state_set()
16375 * @see elm_toolbar_item_state_add()
16379 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16382 * Set the text to be shown in a given toolbar item's tooltips.
16384 * @param it toolbar item.
16385 * @param text The text to set in the content.
16387 * Setup the text as tooltip to object. The item can have only one tooltip,
16388 * so any previous tooltip data - set with this function or
16389 * elm_toolbar_item_tooltip_content_cb_set() - is removed.
16391 * @see elm_object_tooltip_text_set() for more details.
16395 EAPI void elm_toolbar_item_tooltip_text_set(Elm_Object_Item *it, const char *text) EINA_ARG_NONNULL(1);
16398 * Set the content to be shown in the tooltip item.
16400 * Setup the tooltip to item. The item can have only one tooltip,
16401 * so any previous tooltip data is removed. @p func(with @p data) will
16402 * be called every time that need show the tooltip and it should
16403 * return a valid Evas_Object. This object is then managed fully by
16404 * tooltip system and is deleted when the tooltip is gone.
16406 * @param it the toolbar item being attached a tooltip.
16407 * @param func the function used to create the tooltip contents.
16408 * @param data what to provide to @a func as callback data/context.
16409 * @param del_cb called when data is not needed anymore, either when
16410 * another callback replaces @a func, the tooltip is unset with
16411 * elm_toolbar_item_tooltip_unset() or the owner @a item
16412 * dies. This callback receives as the first parameter the
16413 * given @a data, and @c event_info is the item.
16415 * @see elm_object_tooltip_content_cb_set() for more details.
16419 EAPI void elm_toolbar_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
16422 * Unset tooltip from item.
16424 * @param it toolbar item to remove previously set tooltip.
16426 * Remove tooltip from item. The callback provided as del_cb to
16427 * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
16428 * it is not used anymore.
16430 * @see elm_object_tooltip_unset() for more details.
16431 * @see elm_toolbar_item_tooltip_content_cb_set()
16435 EAPI void elm_toolbar_item_tooltip_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16438 * Sets a different style for this item tooltip.
16440 * @note before you set a style you should define a tooltip with
16441 * elm_toolbar_item_tooltip_content_cb_set() or
16442 * elm_toolbar_item_tooltip_text_set()
16444 * @param it toolbar item with tooltip already set.
16445 * @param style the theme style to use (default, transparent, ...)
16447 * @see elm_object_tooltip_style_set() for more details.
16451 EAPI void elm_toolbar_item_tooltip_style_set(Elm_Object_Item *it, const char *style) EINA_ARG_NONNULL(1);
16454 * Get the style for this item tooltip.
16456 * @param it toolbar item with tooltip already set.
16457 * @return style the theme style in use, defaults to "default". If the
16458 * object does not have a tooltip set, then NULL is returned.
16460 * @see elm_object_tooltip_style_get() for more details.
16461 * @see elm_toolbar_item_tooltip_style_set()
16465 EAPI const char *elm_toolbar_item_tooltip_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16468 * Set the type of mouse pointer/cursor decoration to be shown,
16469 * when the mouse pointer is over the given toolbar widget item
16471 * @param it toolbar item to customize cursor on
16472 * @param cursor the cursor type's name
16474 * This function works analogously as elm_object_cursor_set(), but
16475 * here the cursor's changing area is restricted to the item's
16476 * area, and not the whole widget's. Note that that item cursors
16477 * have precedence over widget cursors, so that a mouse over an
16478 * item with custom cursor set will always show @b that cursor.
16480 * If this function is called twice for an object, a previously set
16481 * cursor will be unset on the second call.
16483 * @see elm_object_cursor_set()
16484 * @see elm_toolbar_item_cursor_get()
16485 * @see elm_toolbar_item_cursor_unset()
16489 EAPI void elm_toolbar_item_cursor_set(Elm_Object_Item *it, const char *cursor) EINA_ARG_NONNULL(1);
16492 * Get the type of mouse pointer/cursor decoration set to be shown,
16493 * when the mouse pointer is over the given toolbar widget item
16495 * @param it toolbar item with custom cursor set
16496 * @return the cursor type's name or @c NULL, if no custom cursors
16497 * were set to @p item (and on errors)
16499 * @see elm_object_cursor_get()
16500 * @see elm_toolbar_item_cursor_set()
16501 * @see elm_toolbar_item_cursor_unset()
16505 EAPI const char *elm_toolbar_item_cursor_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16508 * Unset any custom mouse pointer/cursor decoration set to be
16509 * shown, when the mouse pointer is over the given toolbar widget
16510 * item, thus making it show the @b default cursor again.
16512 * @param it a toolbar item
16514 * Use this call to undo any custom settings on this item's cursor
16515 * decoration, bringing it back to defaults (no custom style set).
16517 * @see elm_object_cursor_unset()
16518 * @see elm_toolbar_item_cursor_set()
16522 EAPI void elm_toolbar_item_cursor_unset(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16525 * Set a different @b style for a given custom cursor set for a
16528 * @param it toolbar item with custom cursor set
16529 * @param style the <b>theme style</b> to use (e.g. @c "default",
16530 * @c "transparent", etc)
16532 * This function only makes sense when one is using custom mouse
16533 * cursor decorations <b>defined in a theme file</b>, which can have,
16534 * given a cursor name/type, <b>alternate styles</b> on it. It
16535 * works analogously as elm_object_cursor_style_set(), but here
16536 * applyed only to toolbar item objects.
16538 * @warning Before you set a cursor style you should have definen a
16539 * custom cursor previously on the item, with
16540 * elm_toolbar_item_cursor_set()
16542 * @see elm_toolbar_item_cursor_engine_only_set()
16543 * @see elm_toolbar_item_cursor_style_get()
16547 EAPI void elm_toolbar_item_cursor_style_set(Elm_Object_Item *it, const char *style) EINA_ARG_NONNULL(1);
16550 * Get the current @b style set for a given toolbar item's custom
16553 * @param it toolbar item with custom cursor set.
16554 * @return style the cursor style in use. If the object does not
16555 * have a cursor set, then @c NULL is returned.
16557 * @see elm_toolbar_item_cursor_style_set() for more details
16561 EAPI const char *elm_toolbar_item_cursor_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16564 * Set if the (custom)cursor for a given toolbar item should be
16565 * searched in its theme, also, or should only rely on the
16566 * rendering engine.
16568 * @param it item with custom (custom) cursor already set on
16569 * @param engine_only Use @c EINA_TRUE to have cursors looked for
16570 * only on those provided by the rendering engine, @c EINA_FALSE to
16571 * have them searched on the widget's theme, as well.
16573 * @note This call is of use only if you've set a custom cursor
16574 * for toolbar items, with elm_toolbar_item_cursor_set().
16576 * @note By default, cursors will only be looked for between those
16577 * provided by the rendering engine.
16581 EAPI void elm_toolbar_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
16584 * Get if the (custom) cursor for a given toolbar item is being
16585 * searched in its theme, also, or is only relying on the rendering
16588 * @param it a toolbar item
16589 * @return @c EINA_TRUE, if cursors are being looked for only on
16590 * those provided by the rendering engine, @c EINA_FALSE if they
16591 * are being searched on the widget's theme, as well.
16593 * @see elm_toolbar_item_cursor_engine_only_set(), for more details
16597 EAPI Eina_Bool elm_toolbar_item_cursor_engine_only_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16600 * Change a toolbar's orientation
16601 * @param obj The toolbar object
16602 * @param vertical If @c EINA_TRUE, the toolbar is vertical
16603 * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
16605 * @deprecated use elm_toolbar_horizontal_set() instead.
16607 EINA_DEPRECATED EAPI void elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
16610 * Change a toolbar's orientation
16611 * @param obj The toolbar object
16612 * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
16613 * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
16616 EAPI void elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16619 * Get a toolbar's orientation
16620 * @param obj The toolbar object
16621 * @return If @c EINA_TRUE, the toolbar is vertical
16622 * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
16624 * @deprecated use elm_toolbar_horizontal_get() instead.
16626 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16629 * Get a toolbar's orientation
16630 * @param obj The toolbar object
16631 * @return If @c EINA_TRUE, the toolbar is horizontal
16632 * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
16635 EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
16641 * @defgroup Tooltips Tooltips
16643 * The Tooltip is an (internal, for now) smart object used to show a
16644 * content in a frame on mouse hover of objects(or widgets), with
16645 * tips/information about them.
16650 EAPI double elm_tooltip_delay_get(void);
16651 EAPI Eina_Bool elm_tooltip_delay_set(double delay);
16652 EAPI void elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
16653 EAPI void elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
16654 EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
16655 EAPI void elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text) EINA_ARG_NONNULL(1, 3);
16656 #define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
16657 EAPI void elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
16658 EAPI void elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16659 EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
16660 EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16661 EAPI Eina_Bool elm_object_tooltip_window_mode_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
16662 EAPI Eina_Bool elm_object_tooltip_window_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16669 * @defgroup Cursors Cursors
16671 * The Elementary cursor is an internal smart object used to
16672 * customize the mouse cursor displayed over objects (or
16673 * widgets). In the most common scenario, the cursor decoration
16674 * comes from the graphical @b engine Elementary is running
16675 * on. Those engines may provide different decorations for cursors,
16676 * and Elementary provides functions to choose them (think of X11
16677 * cursors, as an example).
16679 * There's also the possibility of, besides using engine provided
16680 * cursors, also use ones coming from Edje theming files. Both
16681 * globally and per widget, Elementary makes it possible for one to
16682 * make the cursors lookup to be held on engines only or on
16683 * Elementary's theme file, too. To set cursor's hot spot,
16684 * two data items should be added to cursor's theme: "hot_x" and
16685 * "hot_y", that are the offset from upper-left corner of the cursor
16686 * (coordinates 0,0).
16692 * Set the cursor to be shown when mouse is over the object
16694 * Set the cursor that will be displayed when mouse is over the
16695 * object. The object can have only one cursor set to it, so if
16696 * this function is called twice for an object, the previous set
16698 * If using X cursors, a definition of all the valid cursor names
16699 * is listed on Elementary_Cursors.h. If an invalid name is set
16700 * the default cursor will be used.
16702 * @param obj the object being set a cursor.
16703 * @param cursor the cursor name to be used.
16707 EAPI void elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
16710 * Get the cursor to be shown when mouse is over the object
16712 * @param obj an object with cursor already set.
16713 * @return the cursor name.
16717 EAPI const char *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16720 * Unset cursor for object
16722 * Unset cursor for object, and set the cursor to default if the mouse
16723 * was over this object.
16725 * @param obj Target object
16726 * @see elm_object_cursor_set()
16730 EAPI void elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16733 * Sets a different style for this object cursor.
16735 * @note before you set a style you should define a cursor with
16736 * elm_object_cursor_set()
16738 * @param obj an object with cursor already set.
16739 * @param style the theme style to use (default, transparent, ...)
16743 EAPI void elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
16746 * Get the style for this object cursor.
16748 * @param obj an object with cursor already set.
16749 * @return style the theme style in use, defaults to "default". If the
16750 * object does not have a cursor set, then NULL is returned.
16754 EAPI const char *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16757 * Set if the cursor set should be searched on the theme or should use
16758 * the provided by the engine, only.
16760 * @note before you set if should look on theme you should define a cursor
16761 * with elm_object_cursor_set(). By default it will only look for cursors
16762 * provided by the engine.
16764 * @param obj an object with cursor already set.
16765 * @param engine_only boolean to define it cursors should be looked only
16766 * between the provided by the engine or searched on widget's theme as well.
16770 EAPI void elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
16773 * Get the cursor engine only usage for this object cursor.
16775 * @param obj an object with cursor already set.
16776 * @return engine_only boolean to define it cursors should be
16777 * looked only between the provided by the engine or searched on
16778 * widget's theme as well. If the object does not have a cursor
16779 * set, then EINA_FALSE is returned.
16783 EAPI Eina_Bool elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16786 * Get the configured cursor engine only usage
16788 * This gets the globally configured exclusive usage of engine cursors.
16790 * @return 1 if only engine cursors should be used
16793 EAPI int elm_cursor_engine_only_get(void);
16796 * Set the configured cursor engine only usage
16798 * This sets the globally configured exclusive usage of engine cursors.
16799 * It won't affect cursors set before changing this value.
16801 * @param engine_only If 1 only engine cursors will be enabled, if 0 will
16802 * look for them on theme before.
16803 * @return EINA_TRUE if value is valid and setted (0 or 1)
16806 EAPI Eina_Bool elm_cursor_engine_only_set(int engine_only);
16813 * @defgroup Menu Menu
16815 * @image html img/widget/menu/preview-00.png
16816 * @image latex img/widget/menu/preview-00.eps
16818 * A menu is a list of items displayed above its parent. When the menu is
16819 * showing its parent is darkened. Each item can have a sub-menu. The menu
16820 * object can be used to display a menu on a right click event, in a toolbar,
16823 * Signals that you can add callbacks for are:
16824 * @li "clicked" - the user clicked the empty space in the menu to dismiss.
16826 * Default contents parts of the menu items that you can use for are:
16827 * @li "default" - A main content of the menu item
16829 * Default text parts of the menu items that you can use for are:
16830 * @li "default" - label in the menu item
16832 * @see @ref tutorial_menu
16837 * @brief Add a new menu to the parent
16839 * @param parent The parent object.
16840 * @return The new object or NULL if it cannot be created.
16842 EAPI Evas_Object *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16845 * @brief Set the parent for the given menu widget
16847 * @param obj The menu object.
16848 * @param parent The new parent.
16850 EAPI void elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
16853 * @brief Get the parent for the given menu widget
16855 * @param obj The menu object.
16856 * @return The parent.
16858 * @see elm_menu_parent_set()
16860 EAPI Evas_Object *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16863 * @brief Move the menu to a new position
16865 * @param obj The menu object.
16866 * @param x The new position.
16867 * @param y The new position.
16869 * Sets the top-left position of the menu to (@p x,@p y).
16871 * @note @p x and @p y coordinates are relative to parent.
16873 EAPI void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
16876 * @brief Close a opened menu
16878 * @param obj the menu object
16881 * Hides the menu and all it's sub-menus.
16883 EAPI void elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
16886 * @brief Returns a list of @p item's items.
16888 * @param obj The menu object
16889 * @return An Eina_List* of @p item's items
16891 EAPI const Eina_List *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16894 * @brief Get the Evas_Object of an Elm_Object_Item
16896 * @param it The menu item object.
16897 * @return The edje object containing the swallowed content
16899 * @warning Don't manipulate this object!
16902 EAPI Evas_Object *elm_menu_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16905 * @brief Add an item at the end of the given menu widget
16907 * @param obj The menu object.
16908 * @param parent The parent menu item (optional)
16909 * @param icon An icon display on the item. The icon will be destryed by the menu.
16910 * @param label The label of the item.
16911 * @param func Function called when the user select the item.
16912 * @param data Data sent by the callback.
16913 * @return Returns the new item.
16915 EAPI Elm_Object_Item *elm_menu_item_add(Evas_Object *obj, Elm_Object_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16918 * @brief Add an object swallowed in an item at the end of the given menu
16921 * @param obj The menu object.
16922 * @param parent The parent menu item (optional)
16923 * @param subobj The object to swallow
16924 * @param func Function called when the user select the item.
16925 * @param data Data sent by the callback.
16926 * @return Returns the new item.
16928 * Add an evas object as an item to the menu.
16930 EAPI Elm_Object_Item *elm_menu_item_add_object(Evas_Object *obj, Elm_Object_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16933 * @brief Set the label of a menu item
16935 * @param it The menu item object.
16936 * @param label The label to set for @p item
16938 * @warning Don't use this funcion on items created with
16939 * elm_menu_item_add_object() or elm_menu_item_separator_add().
16941 * @deprecated Use elm_object_item_text_set() instead
16943 EINA_DEPRECATED EAPI void elm_menu_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
16946 * @brief Get the label of a menu item
16948 * @param it The menu item object.
16949 * @return The label of @p item
16950 * @deprecated Use elm_object_item_text_get() instead
16952 EINA_DEPRECATED EAPI const char *elm_menu_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16955 * @brief Set the icon of a menu item to the standard icon with name @p icon
16957 * @param it The menu item object.
16958 * @param icon The icon object to set for the content of @p item
16960 * Once this icon is set, any previously set icon will be deleted.
16962 EAPI void elm_menu_item_object_icon_name_set(Elm_Object_Item *it, const char *icon) EINA_ARG_NONNULL(1, 2);
16965 * @brief Get the string representation from the icon of a menu item
16967 * @param it The menu item object.
16968 * @return The string representation of @p item's icon or NULL
16970 * @see elm_menu_item_object_icon_name_set()
16972 EAPI const char *elm_menu_item_object_icon_name_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
16975 * @brief Set the content object of a menu item
16977 * @param it The menu item object
16978 * @param The content object or NULL
16979 * @return EINA_TRUE on success, else EINA_FALSE
16981 * Use this function to change the object swallowed by a menu item, deleting
16982 * any previously swallowed object.
16984 * @deprecated Use elm_object_item_content_set() instead
16986 EINA_DEPRECATED EAPI Eina_Bool elm_menu_item_object_content_set(Elm_Object_Item *it, Evas_Object *obj) EINA_ARG_NONNULL(1);
16989 * @brief Get the content object of a menu item
16991 * @param it The menu item object
16992 * @return The content object or NULL
16993 * @note If @p item was added with elm_menu_item_add_object, this
16994 * function will return the object passed, else it will return the
16997 * @see elm_menu_item_object_content_set()
16999 * @deprecated Use elm_object_item_content_get() instead
17001 EINA_DEPRECATED EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17004 * @brief Set the selected state of @p item.
17006 * @param it The menu item object.
17007 * @param selected The selected/unselected state of the item
17009 EAPI void elm_menu_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
17012 * @brief Get the selected state of @p item.
17014 * @param it The menu item object.
17015 * @return The selected/unselected state of the item
17017 * @see elm_menu_item_selected_set()
17019 EAPI Eina_Bool elm_menu_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17022 * @brief Set the disabled state of @p item.
17024 * @param it The menu item object.
17025 * @param disabled The enabled/disabled state of the item
17026 * @deprecated Use elm_object_item_disabled_set() instead
17028 EINA_DEPRECATED EAPI void elm_menu_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17031 * @brief Get the disabled state of @p item.
17033 * @param it The menu item object.
17034 * @return The enabled/disabled state of the item
17036 * @see elm_menu_item_disabled_set()
17037 * @deprecated Use elm_object_item_disabled_get() instead
17039 EINA_DEPRECATED EAPI Eina_Bool elm_menu_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17042 * @brief Add a separator item to menu @p obj under @p parent.
17044 * @param obj The menu object
17045 * @param parent The item to add the separator under
17046 * @return The created item or NULL on failure
17048 * This is item is a @ref Separator.
17050 EAPI Elm_Object_Item *elm_menu_item_separator_add(Evas_Object *obj, Elm_Object_Item *parent) EINA_ARG_NONNULL(1);
17053 * @brief Returns whether @p item is a separator.
17055 * @param it The item to check
17056 * @return If true, @p item is a separator
17058 * @see elm_menu_item_separator_add()
17060 EAPI Eina_Bool elm_menu_item_is_separator(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17063 * @brief Deletes an item from the menu.
17065 * @param it The item to delete.
17067 * @see elm_menu_item_add()
17069 EAPI void elm_menu_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17072 * @brief Set the function called when a menu item is deleted.
17074 * @param it The item to set the callback on
17075 * @param func The function called
17077 * @see elm_menu_item_add()
17078 * @see elm_menu_item_del()
17080 EAPI void elm_menu_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17083 * @brief Returns the data associated with menu item @p item.
17085 * @param it The item
17086 * @return The data associated with @p item or NULL if none was set.
17088 * This is the data set with elm_menu_add() or elm_menu_item_data_set().
17090 * @deprecated Use elm_object_item_data_get() instead
17092 EINA_DEPRECATED EAPI void *elm_menu_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17095 * @brief Sets the data to be associated with menu item @p item.
17097 * @param it The item
17098 * @param data The data to be associated with @p item
17100 * @deprecated Use elm_object_item_data_set() instead
17102 EINA_DEPRECATED EAPI void elm_menu_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
17105 * @brief Returns a list of @p item's subitems.
17107 * @param it The item
17108 * @return An Eina_List* of @p item's subitems
17110 * @see elm_menu_add()
17112 EAPI const Eina_List *elm_menu_item_subitems_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17115 * @brief Get the position of a menu item
17117 * @param it The menu item
17118 * @return The item's index
17120 * This function returns the index position of a menu item in a menu.
17121 * For a sub-menu, this number is relative to the first item in the sub-menu.
17123 * @note Index values begin with 0
17125 EAPI unsigned int elm_menu_item_index_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1) EINA_PURE;
17128 * @brief @brief Return a menu item's owner menu
17130 * @param it The menu item
17131 * @return The menu object owning @p item, or NULL on failure
17133 * Use this function to get the menu object owning an item.
17135 EAPI Evas_Object *elm_menu_item_menu_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1) EINA_PURE;
17138 * @brief Get the selected item in the menu
17140 * @param obj The menu object
17141 * @return The selected item, or NULL if none
17143 * @see elm_menu_item_selected_get()
17144 * @see elm_menu_item_selected_set()
17146 EAPI Elm_Object_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
17149 * @brief Get the last item in the menu
17151 * @param obj The menu object
17152 * @return The last item, or NULL if none
17154 EAPI Elm_Object_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
17157 * @brief Get the first item in the menu
17159 * @param obj The menu object
17160 * @return The first item, or NULL if none
17162 EAPI Elm_Object_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
17165 * @brief Get the next item in the menu.
17167 * @param it The menu item object.
17168 * @return The item after it, or NULL if none
17170 EAPI Elm_Object_Item *elm_menu_item_next_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17173 * @brief Get the previous item in the menu.
17175 * @param it The menu item object.
17176 * @return The item before it, or NULL if none
17178 EAPI Elm_Object_Item *elm_menu_item_prev_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
17185 * @defgroup List List
17186 * @ingroup Elementary
17188 * @image html img/widget/list/preview-00.png
17189 * @image latex img/widget/list/preview-00.eps width=\textwidth
17191 * @image html img/list.png
17192 * @image latex img/list.eps width=\textwidth
17194 * A list widget is a container whose children are displayed vertically or
17195 * horizontally, in order, and can be selected.
17196 * The list can accept only one or multiple items selection. Also has many
17197 * modes of items displaying.
17199 * A list is a very simple type of list widget. For more robust
17200 * lists, @ref Genlist should probably be used.
17202 * Smart callbacks one can listen to:
17203 * - @c "activated" - The user has double-clicked or pressed
17204 * (enter|return|spacebar) on an item. The @c event_info parameter
17205 * is the item that was activated.
17206 * - @c "clicked,double" - The user has double-clicked an item.
17207 * The @c event_info parameter is the item that was double-clicked.
17208 * - "selected" - when the user selected an item
17209 * - "unselected" - when the user unselected an item
17210 * - "longpressed" - an item in the list is long-pressed
17211 * - "edge,top" - the list is scrolled until the top edge
17212 * - "edge,bottom" - the list is scrolled until the bottom edge
17213 * - "edge,left" - the list is scrolled until the left edge
17214 * - "edge,right" - the list is scrolled until the right edge
17215 * - "language,changed" - the program's language changed
17217 * Available styles for it:
17220 * List of examples:
17221 * @li @ref list_example_01
17222 * @li @ref list_example_02
17223 * @li @ref list_example_03
17232 * @enum _Elm_List_Mode
17233 * @typedef Elm_List_Mode
17235 * Set list's resize behavior, transverse axis scroll and
17236 * items cropping. See each mode's description for more details.
17238 * @note Default value is #ELM_LIST_SCROLL.
17240 * Values <b> don't </b> work as bitmask, only one can be choosen.
17242 * @see elm_list_mode_set()
17243 * @see elm_list_mode_get()
17247 typedef enum _Elm_List_Mode
17249 ELM_LIST_COMPRESS = 0, /**< Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one won't be able to scroll it in that direction. */
17250 ELM_LIST_SCROLL, /**< Default value. Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one will be able to scroll it in that direction (large items will get cropped). */
17251 ELM_LIST_LIMIT, /**< Set a minimun size hint on the list object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a minimum size hint will be set for its transverse axis, so that the @b largest item in that direction fits well. Can have effects bounded by setting the list object's maximum size hints. */
17252 ELM_LIST_EXPAND, /**< Besides setting a minimum size on the transverse axis, just like the previous mode, will set a minimum size on the longitudinal axis too, trying to reserve space to all its children to be visible at a time. Can have effects bounded by setting the list object's maximum size hints. */
17253 ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
17256 typedef struct _Elm_List_Item Elm_List_Item; /**< Item of Elm_List. Sub-type of Elm_Widget_Item. Can be created with elm_list_item_append(), elm_list_item_prepend() and functions to add items in relative positions, like elm_list_item_insert_before(), and deleted with elm_list_item_del(). */
17259 * Add a new list widget to the given parent Elementary
17260 * (container) object.
17262 * @param parent The parent object.
17263 * @return a new list widget handle or @c NULL, on errors.
17265 * This function inserts a new list widget on the canvas.
17269 EAPI Evas_Object *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17274 * @param obj The list object
17276 * @note Call before running show() on the list object.
17277 * @warning If not called, it won't display the list properly.
17280 * li = elm_list_add(win);
17281 * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
17282 * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
17284 * evas_object_show(li);
17289 EAPI void elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
17292 * Enable or disable multiple items selection on the list object.
17294 * @param obj The list object
17295 * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
17298 * Disabled by default. If disabled, the user can select a single item of
17299 * the list each time. Selected items are highlighted on list.
17300 * If enabled, many items can be selected.
17302 * If a selected item is selected again, it will be unselected.
17304 * @see elm_list_multi_select_get()
17308 EAPI void elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
17311 * Get a value whether multiple items selection is enabled or not.
17313 * @see elm_list_multi_select_set() for details.
17315 * @param obj The list object.
17316 * @return @c EINA_TRUE means multiple items selection is enabled.
17317 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
17318 * @c EINA_FALSE is returned.
17322 EAPI Eina_Bool elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17325 * Set which mode to use for the list object.
17327 * @param obj The list object
17328 * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
17329 * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
17331 * Set list's resize behavior, transverse axis scroll and
17332 * items cropping. See each mode's description for more details.
17334 * @note Default value is #ELM_LIST_SCROLL.
17336 * Only one can be set, if a previous one was set, it will be changed
17337 * by the new mode set. Bitmask won't work as well.
17339 * @see elm_list_mode_get()
17343 EAPI void elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
17346 * Get the mode the list is at.
17348 * @param obj The list object
17349 * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
17350 * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
17352 * @note see elm_list_mode_set() for more information.
17356 EAPI Elm_List_Mode elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17359 * Enable or disable horizontal mode on the list object.
17361 * @param obj The list object.
17362 * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
17363 * disable it, i.e., to enable vertical mode.
17365 * @note Vertical mode is set by default.
17367 * On horizontal mode items are displayed on list from left to right,
17368 * instead of from top to bottom. Also, the list will scroll horizontally.
17369 * Each item will presents left icon on top and right icon, or end, at
17372 * @see elm_list_horizontal_get()
17376 EAPI void elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17379 * Get a value whether horizontal mode is enabled or not.
17381 * @param obj The list object.
17382 * @return @c EINA_TRUE means horizontal mode selection is enabled.
17383 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
17384 * @c EINA_FALSE is returned.
17386 * @see elm_list_horizontal_set() for details.
17390 EAPI Eina_Bool elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17393 * Enable or disable always select mode on the list object.
17395 * @param obj The list object
17396 * @param always_select @c EINA_TRUE to enable always select mode or
17397 * @c EINA_FALSE to disable it.
17399 * @note Always select mode is disabled by default.
17401 * Default behavior of list items is to only call its callback function
17402 * the first time it's pressed, i.e., when it is selected. If a selected
17403 * item is pressed again, and multi-select is disabled, it won't call
17404 * this function (if multi-select is enabled it will unselect the item).
17406 * If always select is enabled, it will call the callback function
17407 * everytime a item is pressed, so it will call when the item is selected,
17408 * and again when a selected item is pressed.
17410 * @see elm_list_always_select_mode_get()
17411 * @see elm_list_multi_select_set()
17415 EAPI void elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
17418 * Get a value whether always select mode is enabled or not, meaning that
17419 * an item will always call its callback function, even if already selected.
17421 * @param obj The list object
17422 * @return @c EINA_TRUE means horizontal mode selection is enabled.
17423 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
17424 * @c EINA_FALSE is returned.
17426 * @see elm_list_always_select_mode_set() for details.
17430 EAPI Eina_Bool elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17433 * Set bouncing behaviour when the scrolled content reaches an edge.
17435 * Tell the internal scroller object whether it should bounce or not
17436 * when it reaches the respective edges for each axis.
17438 * @param obj The list object
17439 * @param h_bounce Whether to bounce or not in the horizontal axis.
17440 * @param v_bounce Whether to bounce or not in the vertical axis.
17442 * @see elm_scroller_bounce_set()
17446 EAPI void elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
17449 * Get the bouncing behaviour of the internal scroller.
17451 * Get whether the internal scroller should bounce when the edge of each
17452 * axis is reached scrolling.
17454 * @param obj The list object.
17455 * @param h_bounce Pointer where to store the bounce state of the horizontal
17457 * @param v_bounce Pointer where to store the bounce state of the vertical
17460 * @see elm_scroller_bounce_get()
17461 * @see elm_list_bounce_set()
17465 EAPI void elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
17468 * Set the scrollbar policy.
17470 * @param obj The list object
17471 * @param policy_h Horizontal scrollbar policy.
17472 * @param policy_v Vertical scrollbar policy.
17474 * This sets the scrollbar visibility policy for the given scroller.
17475 * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
17476 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
17477 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
17478 * This applies respectively for the horizontal and vertical scrollbars.
17480 * The both are disabled by default, i.e., are set to
17481 * #ELM_SCROLLER_POLICY_OFF.
17485 EAPI void elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17488 * Get the scrollbar policy.
17490 * @see elm_list_scroller_policy_get() for details.
17492 * @param obj The list object.
17493 * @param policy_h Pointer where to store horizontal scrollbar policy.
17494 * @param policy_v Pointer where to store vertical scrollbar policy.
17498 EAPI void elm_list_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
17501 * Append a new item to the list object.
17503 * @param obj The list object.
17504 * @param label The label of the list item.
17505 * @param icon The icon object to use for the left side of the item. An
17506 * icon can be any Evas object, but usually it is an icon created
17507 * with elm_icon_add().
17508 * @param end The icon object to use for the right side of the item. An
17509 * icon can be any Evas object.
17510 * @param func The function to call when the item is clicked.
17511 * @param data The data to associate with the item for related callbacks.
17513 * @return The created item or @c NULL upon failure.
17515 * A new item will be created and appended to the list, i.e., will
17516 * be set as @b last item.
17518 * Items created with this method can be deleted with
17519 * elm_list_item_del().
17521 * Associated @p data can be properly freed when item is deleted if a
17522 * callback function is set with elm_list_item_del_cb_set().
17524 * If a function is passed as argument, it will be called everytime this item
17525 * is selected, i.e., the user clicks over an unselected item.
17526 * If always select is enabled it will call this function every time
17527 * user clicks over an item (already selected or not).
17528 * If such function isn't needed, just passing
17529 * @c NULL as @p func is enough. The same should be done for @p data.
17531 * Simple example (with no function callback or data associated):
17533 * li = elm_list_add(win);
17534 * ic = elm_icon_add(win);
17535 * elm_icon_file_set(ic, "path/to/image", NULL);
17536 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
17537 * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
17539 * evas_object_show(li);
17542 * @see elm_list_always_select_mode_set()
17543 * @see elm_list_item_del()
17544 * @see elm_list_item_del_cb_set()
17545 * @see elm_list_clear()
17546 * @see elm_icon_add()
17550 EAPI Elm_List_Item *elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
17553 * Prepend a new item to the list object.
17555 * @param obj The list object.
17556 * @param label The label of the list item.
17557 * @param icon The icon object to use for the left side of the item. An
17558 * icon can be any Evas object, but usually it is an icon created
17559 * with elm_icon_add().
17560 * @param end The icon object to use for the right side of the item. An
17561 * icon can be any Evas object.
17562 * @param func The function to call when the item is clicked.
17563 * @param data The data to associate with the item for related callbacks.
17565 * @return The created item or @c NULL upon failure.
17567 * A new item will be created and prepended to the list, i.e., will
17568 * be set as @b first item.
17570 * Items created with this method can be deleted with
17571 * elm_list_item_del().
17573 * Associated @p data can be properly freed when item is deleted if a
17574 * callback function is set with elm_list_item_del_cb_set().
17576 * If a function is passed as argument, it will be called everytime this item
17577 * is selected, i.e., the user clicks over an unselected item.
17578 * If always select is enabled it will call this function every time
17579 * user clicks over an item (already selected or not).
17580 * If such function isn't needed, just passing
17581 * @c NULL as @p func is enough. The same should be done for @p data.
17583 * @see elm_list_item_append() for a simple code example.
17584 * @see elm_list_always_select_mode_set()
17585 * @see elm_list_item_del()
17586 * @see elm_list_item_del_cb_set()
17587 * @see elm_list_clear()
17588 * @see elm_icon_add()
17592 EAPI Elm_List_Item *elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
17595 * Insert a new item into the list object before item @p before.
17597 * @param obj The list object.
17598 * @param before The list item to insert before.
17599 * @param label The label of the list item.
17600 * @param icon The icon object to use for the left side of the item. An
17601 * icon can be any Evas object, but usually it is an icon created
17602 * with elm_icon_add().
17603 * @param end The icon object to use for the right side of the item. An
17604 * icon can be any Evas object.
17605 * @param func The function to call when the item is clicked.
17606 * @param data The data to associate with the item for related callbacks.
17608 * @return The created item or @c NULL upon failure.
17610 * A new item will be created and added to the list. Its position in
17611 * this list will be just before item @p before.
17613 * Items created with this method can be deleted with
17614 * elm_list_item_del().
17616 * Associated @p data can be properly freed when item is deleted if a
17617 * callback function is set with elm_list_item_del_cb_set().
17619 * If a function is passed as argument, it will be called everytime this item
17620 * is selected, i.e., the user clicks over an unselected item.
17621 * If always select is enabled it will call this function every time
17622 * user clicks over an item (already selected or not).
17623 * If such function isn't needed, just passing
17624 * @c NULL as @p func is enough. The same should be done for @p data.
17626 * @see elm_list_item_append() for a simple code example.
17627 * @see elm_list_always_select_mode_set()
17628 * @see elm_list_item_del()
17629 * @see elm_list_item_del_cb_set()
17630 * @see elm_list_clear()
17631 * @see elm_icon_add()
17635 EAPI Elm_List_Item *elm_list_item_insert_before(Evas_Object *obj, Elm_List_Item *before, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
17638 * Insert a new item into the list object after item @p after.
17640 * @param obj The list object.
17641 * @param after The list item to insert after.
17642 * @param label The label of the list item.
17643 * @param icon The icon object to use for the left side of the item. An
17644 * icon can be any Evas object, but usually it is an icon created
17645 * with elm_icon_add().
17646 * @param end The icon object to use for the right side of the item. An
17647 * icon can be any Evas object.
17648 * @param func The function to call when the item is clicked.
17649 * @param data The data to associate with the item for related callbacks.
17651 * @return The created item or @c NULL upon failure.
17653 * A new item will be created and added to the list. Its position in
17654 * this list will be just after item @p after.
17656 * Items created with this method can be deleted with
17657 * elm_list_item_del().
17659 * Associated @p data can be properly freed when item is deleted if a
17660 * callback function is set with elm_list_item_del_cb_set().
17662 * If a function is passed as argument, it will be called everytime this item
17663 * is selected, i.e., the user clicks over an unselected item.
17664 * If always select is enabled it will call this function every time
17665 * user clicks over an item (already selected or not).
17666 * If such function isn't needed, just passing
17667 * @c NULL as @p func is enough. The same should be done for @p data.
17669 * @see elm_list_item_append() for a simple code example.
17670 * @see elm_list_always_select_mode_set()
17671 * @see elm_list_item_del()
17672 * @see elm_list_item_del_cb_set()
17673 * @see elm_list_clear()
17674 * @see elm_icon_add()
17678 EAPI Elm_List_Item *elm_list_item_insert_after(Evas_Object *obj, Elm_List_Item *after, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
17681 * Insert a new item into the sorted list object.
17683 * @param obj The list object.
17684 * @param label The label of the list item.
17685 * @param icon The icon object to use for the left side of the item. An
17686 * icon can be any Evas object, but usually it is an icon created
17687 * with elm_icon_add().
17688 * @param end The icon object to use for the right side of the item. An
17689 * icon can be any Evas object.
17690 * @param func The function to call when the item is clicked.
17691 * @param data The data to associate with the item for related callbacks.
17692 * @param cmp_func The comparing function to be used to sort list
17693 * items <b>by #Elm_List_Item item handles</b>. This function will
17694 * receive two items and compare them, returning a non-negative integer
17695 * if the second item should be place after the first, or negative value
17696 * if should be placed before.
17698 * @return The created item or @c NULL upon failure.
17700 * @note This function inserts values into a list object assuming it was
17701 * sorted and the result will be sorted.
17703 * A new item will be created and added to the list. Its position in
17704 * this list will be found comparing the new item with previously inserted
17705 * items using function @p cmp_func.
17707 * Items created with this method can be deleted with
17708 * elm_list_item_del().
17710 * Associated @p data can be properly freed when item is deleted if a
17711 * callback function is set with elm_list_item_del_cb_set().
17713 * If a function is passed as argument, it will be called everytime this item
17714 * is selected, i.e., the user clicks over an unselected item.
17715 * If always select is enabled it will call this function every time
17716 * user clicks over an item (already selected or not).
17717 * If such function isn't needed, just passing
17718 * @c NULL as @p func is enough. The same should be done for @p data.
17720 * @see elm_list_item_append() for a simple code example.
17721 * @see elm_list_always_select_mode_set()
17722 * @see elm_list_item_del()
17723 * @see elm_list_item_del_cb_set()
17724 * @see elm_list_clear()
17725 * @see elm_icon_add()
17729 EAPI Elm_List_Item *elm_list_item_sorted_insert(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func) EINA_ARG_NONNULL(1);
17732 * Remove all list's items.
17734 * @param obj The list object
17736 * @see elm_list_item_del()
17737 * @see elm_list_item_append()
17741 EAPI void elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
17744 * Get a list of all the list items.
17746 * @param obj The list object
17747 * @return An @c Eina_List of list items, #Elm_List_Item,
17748 * or @c NULL on failure.
17750 * @see elm_list_item_append()
17751 * @see elm_list_item_del()
17752 * @see elm_list_clear()
17756 EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17759 * Get the selected item.
17761 * @param obj The list object.
17762 * @return The selected list item.
17764 * The selected item can be unselected with function
17765 * elm_list_item_selected_set().
17767 * The selected item always will be highlighted on list.
17769 * @see elm_list_selected_items_get()
17773 EAPI Elm_List_Item *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17776 * Return a list of the currently selected list items.
17778 * @param obj The list object.
17779 * @return An @c Eina_List of list items, #Elm_List_Item,
17780 * or @c NULL on failure.
17782 * Multiple items can be selected if multi select is enabled. It can be
17783 * done with elm_list_multi_select_set().
17785 * @see elm_list_selected_item_get()
17786 * @see elm_list_multi_select_set()
17790 EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17793 * Set the selected state of an item.
17795 * @param item The list item
17796 * @param selected The selected state
17798 * This sets the selected state of the given item @p it.
17799 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
17801 * If a new item is selected the previosly selected will be unselected,
17802 * unless multiple selection is enabled with elm_list_multi_select_set().
17803 * Previoulsy selected item can be get with function
17804 * elm_list_selected_item_get().
17806 * Selected items will be highlighted.
17808 * @see elm_list_item_selected_get()
17809 * @see elm_list_selected_item_get()
17810 * @see elm_list_multi_select_set()
17814 EAPI void elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17817 * Get whether the @p item is selected or not.
17819 * @param item The list item.
17820 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
17821 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
17823 * @see elm_list_selected_item_set() for details.
17824 * @see elm_list_item_selected_get()
17828 EAPI Eina_Bool elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17831 * Set or unset item as a separator.
17833 * @param it The list item.
17834 * @param setting @c EINA_TRUE to set item @p it as separator or
17835 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
17837 * Items aren't set as separator by default.
17839 * If set as separator it will display separator theme, so won't display
17842 * @see elm_list_item_separator_get()
17846 EAPI void elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
17849 * Get a value whether item is a separator or not.
17851 * @see elm_list_item_separator_set() for details.
17853 * @param it The list item.
17854 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
17855 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
17859 EAPI Eina_Bool elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17862 * Show @p item in the list view.
17864 * @param item The list item to be shown.
17866 * It won't animate list until item is visible. If such behavior is wanted,
17867 * use elm_list_bring_in() intead.
17871 EAPI void elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17874 * Bring in the given item to list view.
17876 * @param item The item.
17878 * This causes list to jump to the given item @p item and show it
17879 * (by scrolling), if it is not fully visible.
17881 * This may use animation to do so and take a period of time.
17883 * If animation isn't wanted, elm_list_item_show() can be used.
17887 EAPI void elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17890 * Delete them item from the list.
17892 * @param item The item of list to be deleted.
17894 * If deleting all list items is required, elm_list_clear()
17895 * should be used instead of getting items list and deleting each one.
17897 * @see elm_list_clear()
17898 * @see elm_list_item_append()
17899 * @see elm_list_item_del_cb_set()
17903 EAPI void elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17906 * Set the function called when a list item is freed.
17908 * @param item The item to set the callback on
17909 * @param func The function called
17911 * If there is a @p func, then it will be called prior item's memory release.
17912 * That will be called with the following arguments:
17914 * @li item's Evas object;
17917 * This way, a data associated to a list item could be properly freed.
17921 EAPI void elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17924 * Get the data associated to the item.
17926 * @param item The list item
17927 * @return The data associated to @p item
17929 * The return value is a pointer to data associated to @p item when it was
17930 * created, with function elm_list_item_append() or similar. If no data
17931 * was passed as argument, it will return @c NULL.
17933 * @see elm_list_item_append()
17937 EAPI void *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17940 * Get the left side icon associated to the item.
17942 * @param item The list item
17943 * @return The left side icon associated to @p item
17945 * The return value is a pointer to the icon associated to @p item when
17947 * created, with function elm_list_item_append() or similar, or later
17948 * with function elm_list_item_icon_set(). If no icon
17949 * was passed as argument, it will return @c NULL.
17951 * @see elm_list_item_append()
17952 * @see elm_list_item_icon_set()
17956 EAPI Evas_Object *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17959 * Set the left side icon associated to the item.
17961 * @param item The list item
17962 * @param icon The left side icon object to associate with @p item
17964 * The icon object to use at left side of the item. An
17965 * icon can be any Evas object, but usually it is an icon created
17966 * with elm_icon_add().
17968 * Once the icon object is set, a previously set one will be deleted.
17969 * @warning Setting the same icon for two items will cause the icon to
17970 * dissapear from the first item.
17972 * If an icon was passed as argument on item creation, with function
17973 * elm_list_item_append() or similar, it will be already
17974 * associated to the item.
17976 * @see elm_list_item_append()
17977 * @see elm_list_item_icon_get()
17981 EAPI void elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
17984 * Get the right side icon associated to the item.
17986 * @param item The list item
17987 * @return The right side icon associated to @p item
17989 * The return value is a pointer to the icon associated to @p item when
17991 * created, with function elm_list_item_append() or similar, or later
17992 * with function elm_list_item_icon_set(). If no icon
17993 * was passed as argument, it will return @c NULL.
17995 * @see elm_list_item_append()
17996 * @see elm_list_item_icon_set()
18000 EAPI Evas_Object *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18003 * Set the right side icon associated to the item.
18005 * @param item The list item
18006 * @param end The right side icon object to associate with @p item
18008 * The icon object to use at right side of the item. An
18009 * icon can be any Evas object, but usually it is an icon created
18010 * with elm_icon_add().
18012 * Once the icon object is set, a previously set one will be deleted.
18013 * @warning Setting the same icon for two items will cause the icon to
18014 * dissapear from the first item.
18016 * If an icon was passed as argument on item creation, with function
18017 * elm_list_item_append() or similar, it will be already
18018 * associated to the item.
18020 * @see elm_list_item_append()
18021 * @see elm_list_item_end_get()
18025 EAPI void elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
18028 * Gets the base object of the item.
18030 * @param item The list item
18031 * @return The base object associated with @p item
18033 * Base object is the @c Evas_Object that represents that item.
18037 EAPI Evas_Object *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18038 EINA_DEPRECATED EAPI Evas_Object *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18041 * Get the label of item.
18043 * @param item The item of list.
18044 * @return The label of item.
18046 * The return value is a pointer to the label associated to @p item when
18047 * it was created, with function elm_list_item_append(), or later
18048 * with function elm_list_item_label_set. If no label
18049 * was passed as argument, it will return @c NULL.
18051 * @see elm_list_item_label_set() for more details.
18052 * @see elm_list_item_append()
18056 EAPI const char *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18059 * Set the label of item.
18061 * @param item The item of list.
18062 * @param text The label of item.
18064 * The label to be displayed by the item.
18065 * Label will be placed between left and right side icons (if set).
18067 * If a label was passed as argument on item creation, with function
18068 * elm_list_item_append() or similar, it will be already
18069 * displayed by the item.
18071 * @see elm_list_item_label_get()
18072 * @see elm_list_item_append()
18076 EAPI void elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
18079 * Get the item before @p it in list.
18081 * @param it The list item.
18082 * @return The item before @p it, or @c NULL if none or on failure.
18084 * @note If it is the first item, @c NULL will be returned.
18086 * @see elm_list_item_append()
18087 * @see elm_list_items_get()
18091 EAPI Elm_List_Item *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
18094 * Get the item after @p it in list.
18096 * @param it The list item.
18097 * @return The item after @p it, or @c NULL if none or on failure.
18099 * @note If it is the last item, @c NULL will be returned.
18101 * @see elm_list_item_append()
18102 * @see elm_list_items_get()
18106 EAPI Elm_List_Item *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
18109 * Sets the disabled/enabled state of a list item.
18111 * @param it The item.
18112 * @param disabled The disabled state.
18114 * A disabled item cannot be selected or unselected. It will also
18115 * change its appearance (generally greyed out). This sets the
18116 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
18121 EAPI void elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
18124 * Get a value whether list item is disabled or not.
18126 * @param it The item.
18127 * @return The disabled state.
18129 * @see elm_list_item_disabled_set() for more details.
18133 EAPI Eina_Bool elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
18136 * Set the text to be shown in a given list item's tooltips.
18138 * @param item Target item.
18139 * @param text The text to set in the content.
18141 * Setup the text as tooltip to object. The item can have only one tooltip,
18142 * so any previous tooltip data - set with this function or
18143 * elm_list_item_tooltip_content_cb_set() - is removed.
18145 * @see elm_object_tooltip_text_set() for more details.
18149 EAPI void elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
18152 * @brief Disable size restrictions on an object's tooltip
18153 * @param item The tooltip's anchor object
18154 * @param disable If EINA_TRUE, size restrictions are disabled
18155 * @return EINA_FALSE on failure, EINA_TRUE on success
18157 * This function allows a tooltip to expand beyond its parant window's canvas.
18158 * It will instead be limited only by the size of the display.
18160 EAPI Eina_Bool elm_list_item_tooltip_window_mode_set(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
18162 * @brief Retrieve size restriction state of an object's tooltip
18163 * @param obj The tooltip's anchor object
18164 * @return If EINA_TRUE, size restrictions are disabled
18166 * This function returns whether a tooltip is allowed to expand beyond
18167 * its parant window's canvas.
18168 * It will instead be limited only by the size of the display.
18170 EAPI Eina_Bool elm_list_item_tooltip_window_mode_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18173 * Set the content to be shown in the tooltip item.
18175 * Setup the tooltip to item. The item can have only one tooltip,
18176 * so any previous tooltip data is removed. @p func(with @p data) will
18177 * be called every time that need show the tooltip and it should
18178 * return a valid Evas_Object. This object is then managed fully by
18179 * tooltip system and is deleted when the tooltip is gone.
18181 * @param item the list item being attached a tooltip.
18182 * @param func the function used to create the tooltip contents.
18183 * @param data what to provide to @a func as callback data/context.
18184 * @param del_cb called when data is not needed anymore, either when
18185 * another callback replaces @a func, the tooltip is unset with
18186 * elm_list_item_tooltip_unset() or the owner @a item
18187 * dies. This callback receives as the first parameter the
18188 * given @a data, and @c event_info is the item.
18190 * @see elm_object_tooltip_content_cb_set() for more details.
18194 EAPI void elm_list_item_tooltip_content_cb_set(Elm_List_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
18197 * Unset tooltip from item.
18199 * @param item list item to remove previously set tooltip.
18201 * Remove tooltip from item. The callback provided as del_cb to
18202 * elm_list_item_tooltip_content_cb_set() will be called to notify
18203 * it is not used anymore.
18205 * @see elm_object_tooltip_unset() for more details.
18206 * @see elm_list_item_tooltip_content_cb_set()
18210 EAPI void elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
18213 * Sets a different style for this item tooltip.
18215 * @note before you set a style you should define a tooltip with
18216 * elm_list_item_tooltip_content_cb_set() or
18217 * elm_list_item_tooltip_text_set()
18219 * @param item list item with tooltip already set.
18220 * @param style the theme style to use (default, transparent, ...)
18222 * @see elm_object_tooltip_style_set() for more details.
18226 EAPI void elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
18229 * Get the style for this item tooltip.
18231 * @param item list item with tooltip already set.
18232 * @return style the theme style in use, defaults to "default". If the
18233 * object does not have a tooltip set, then NULL is returned.
18235 * @see elm_object_tooltip_style_get() for more details.
18236 * @see elm_list_item_tooltip_style_set()
18240 EAPI const char *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18243 * Set the type of mouse pointer/cursor decoration to be shown,
18244 * when the mouse pointer is over the given list widget item
18246 * @param item list item to customize cursor on
18247 * @param cursor the cursor type's name
18249 * This function works analogously as elm_object_cursor_set(), but
18250 * here the cursor's changing area is restricted to the item's
18251 * area, and not the whole widget's. Note that that item cursors
18252 * have precedence over widget cursors, so that a mouse over an
18253 * item with custom cursor set will always show @b that cursor.
18255 * If this function is called twice for an object, a previously set
18256 * cursor will be unset on the second call.
18258 * @see elm_object_cursor_set()
18259 * @see elm_list_item_cursor_get()
18260 * @see elm_list_item_cursor_unset()
18264 EAPI void elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
18267 * Get the type of mouse pointer/cursor decoration set to be shown,
18268 * when the mouse pointer is over the given list widget item
18270 * @param item list item with custom cursor set
18271 * @return the cursor type's name or @c NULL, if no custom cursors
18272 * were set to @p item (and on errors)
18274 * @see elm_object_cursor_get()
18275 * @see elm_list_item_cursor_set()
18276 * @see elm_list_item_cursor_unset()
18280 EAPI const char *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18283 * Unset any custom mouse pointer/cursor decoration set to be
18284 * shown, when the mouse pointer is over the given list widget
18285 * item, thus making it show the @b default cursor again.
18287 * @param item a list item
18289 * Use this call to undo any custom settings on this item's cursor
18290 * decoration, bringing it back to defaults (no custom style set).
18292 * @see elm_object_cursor_unset()
18293 * @see elm_list_item_cursor_set()
18297 EAPI void elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
18300 * Set a different @b style for a given custom cursor set for a
18303 * @param item list item with custom cursor set
18304 * @param style the <b>theme style</b> to use (e.g. @c "default",
18305 * @c "transparent", etc)
18307 * This function only makes sense when one is using custom mouse
18308 * cursor decorations <b>defined in a theme file</b>, which can have,
18309 * given a cursor name/type, <b>alternate styles</b> on it. It
18310 * works analogously as elm_object_cursor_style_set(), but here
18311 * applyed only to list item objects.
18313 * @warning Before you set a cursor style you should have definen a
18314 * custom cursor previously on the item, with
18315 * elm_list_item_cursor_set()
18317 * @see elm_list_item_cursor_engine_only_set()
18318 * @see elm_list_item_cursor_style_get()
18322 EAPI void elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
18325 * Get the current @b style set for a given list item's custom
18328 * @param item list item with custom cursor set.
18329 * @return style the cursor style in use. If the object does not
18330 * have a cursor set, then @c NULL is returned.
18332 * @see elm_list_item_cursor_style_set() for more details
18336 EAPI const char *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18339 * Set if the (custom)cursor for a given list item should be
18340 * searched in its theme, also, or should only rely on the
18341 * rendering engine.
18343 * @param item item with custom (custom) cursor already set on
18344 * @param engine_only Use @c EINA_TRUE to have cursors looked for
18345 * only on those provided by the rendering engine, @c EINA_FALSE to
18346 * have them searched on the widget's theme, as well.
18348 * @note This call is of use only if you've set a custom cursor
18349 * for list items, with elm_list_item_cursor_set().
18351 * @note By default, cursors will only be looked for between those
18352 * provided by the rendering engine.
18356 EAPI void elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
18359 * Get if the (custom) cursor for a given list item is being
18360 * searched in its theme, also, or is only relying on the rendering
18363 * @param item a list item
18364 * @return @c EINA_TRUE, if cursors are being looked for only on
18365 * those provided by the rendering engine, @c EINA_FALSE if they
18366 * are being searched on the widget's theme, as well.
18368 * @see elm_list_item_cursor_engine_only_set(), for more details
18372 EAPI Eina_Bool elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
18379 * @defgroup Slider Slider
18380 * @ingroup Elementary
18382 * @image html img/widget/slider/preview-00.png
18383 * @image latex img/widget/slider/preview-00.eps width=\textwidth
18385 * The slider adds a dragable āsliderā widget for selecting the value of
18386 * something within a range.
18388 * A slider can be horizontal or vertical. It can contain an Icon and has a
18389 * primary label as well as a units label (that is formatted with floating
18390 * point values and thus accepts a printf-style format string, like
18391 * ā%1.2f unitsā. There is also an indicator string that may be somewhere
18392 * else (like on the slider itself) that also accepts a format string like
18393 * units. Label, Icon Unit and Indicator strings/objects are optional.
18395 * A slider may be inverted which means values invert, with high vales being
18396 * on the left or top and low values on the right or bottom (as opposed to
18397 * normally being low on the left or top and high on the bottom and right).
18399 * The slider should have its minimum and maximum values set by the
18400 * application with elm_slider_min_max_set() and value should also be set by
18401 * the application before use with elm_slider_value_set(). The span of the
18402 * slider is its length (horizontally or vertically). This will be scaled by
18403 * the object or applications scaling factor. At any point code can query the
18404 * slider for its value with elm_slider_value_get().
18406 * Smart callbacks one can listen to:
18407 * - "changed" - Whenever the slider value is changed by the user.
18408 * - "slider,drag,start" - dragging the slider indicator around has started.
18409 * - "slider,drag,stop" - dragging the slider indicator around has stopped.
18410 * - "delay,changed" - A short time after the value is changed by the user.
18411 * This will be called only when the user stops dragging for
18412 * a very short period or when they release their
18413 * finger/mouse, so it avoids possibly expensive reactions to
18414 * the value change.
18416 * Available styles for it:
18419 * Default contents parts of the slider widget that you can use for are:
18420 * @li "icon" - An icon of the slider
18421 * @li "end" - A end part content of the slider
18423 * Default text parts of the silder widget that you can use for are:
18424 * @li "default" - Label of the silder
18425 * Here is an example on its usage:
18426 * @li @ref slider_example
18430 * @addtogroup Slider
18435 * Add a new slider widget to the given parent Elementary
18436 * (container) object.
18438 * @param parent The parent object.
18439 * @return a new slider widget handle or @c NULL, on errors.
18441 * This function inserts a new slider widget on the canvas.
18445 EAPI Evas_Object *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18448 * Set the label of a given slider widget
18450 * @param obj The progress bar object
18451 * @param label The text label string, in UTF-8
18454 * @deprecated use elm_object_text_set() instead.
18456 EINA_DEPRECATED EAPI void elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18459 * Get the label of a given slider widget
18461 * @param obj The progressbar object
18462 * @return The text label string, in UTF-8
18465 * @deprecated use elm_object_text_get() instead.
18467 EINA_DEPRECATED EAPI const char *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18470 * Set the icon object of the slider object.
18472 * @param obj The slider object.
18473 * @param icon The icon object.
18475 * On horizontal mode, icon is placed at left, and on vertical mode,
18478 * @note Once the icon object is set, a previously set one will be deleted.
18479 * If you want to keep that old content object, use the
18480 * elm_slider_icon_unset() function.
18482 * @warning If the object being set does not have minimum size hints set,
18483 * it won't get properly displayed.
18486 * @deprecated use elm_object_part_content_set() instead.
18488 EINA_DEPRECATED EAPI void elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18491 * Unset an icon set on a given slider widget.
18493 * @param obj The slider object.
18494 * @return The icon object that was being used, if any was set, or
18495 * @c NULL, otherwise (and on errors).
18497 * On horizontal mode, icon is placed at left, and on vertical mode,
18500 * This call will unparent and return the icon object which was set
18501 * for this widget, previously, on success.
18503 * @see elm_slider_icon_set() for more details
18504 * @see elm_slider_icon_get()
18505 * @deprecated use elm_object_part_content_unset() instead.
18509 EINA_DEPRECATED EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18512 * Retrieve the icon object set for a given slider widget.
18514 * @param obj The slider object.
18515 * @return The icon object's handle, if @p obj had one set, or @c NULL,
18516 * otherwise (and on errors).
18518 * On horizontal mode, icon is placed at left, and on vertical mode,
18521 * @see elm_slider_icon_set() for more details
18522 * @see elm_slider_icon_unset()
18524 * @deprecated use elm_object_part_content_get() instead.
18528 EINA_DEPRECATED EAPI Evas_Object *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18531 * Set the end object of the slider object.
18533 * @param obj The slider object.
18534 * @param end The end object.
18536 * On horizontal mode, end is placed at left, and on vertical mode,
18537 * placed at bottom.
18539 * @note Once the icon object is set, a previously set one will be deleted.
18540 * If you want to keep that old content object, use the
18541 * elm_slider_end_unset() function.
18543 * @warning If the object being set does not have minimum size hints set,
18544 * it won't get properly displayed.
18546 * @deprecated use elm_object_part_content_set() instead.
18550 EINA_DEPRECATED EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
18553 * Unset an end object set on a given slider widget.
18555 * @param obj The slider object.
18556 * @return The end object that was being used, if any was set, or
18557 * @c NULL, otherwise (and on errors).
18559 * On horizontal mode, end is placed at left, and on vertical mode,
18560 * placed at bottom.
18562 * This call will unparent and return the icon object which was set
18563 * for this widget, previously, on success.
18565 * @see elm_slider_end_set() for more details.
18566 * @see elm_slider_end_get()
18568 * @deprecated use elm_object_part_content_unset() instead
18573 EINA_DEPRECATED EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18576 * Retrieve the end object set for a given slider widget.
18578 * @param obj The slider object.
18579 * @return The end object's handle, if @p obj had one set, or @c NULL,
18580 * otherwise (and on errors).
18582 * On horizontal mode, icon is placed at right, and on vertical mode,
18583 * placed at bottom.
18585 * @see elm_slider_end_set() for more details.
18586 * @see elm_slider_end_unset()
18589 * @deprecated use elm_object_part_content_get() instead
18594 EINA_DEPRECATED EAPI Evas_Object *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18597 * Set the (exact) length of the bar region of a given slider widget.
18599 * @param obj The slider object.
18600 * @param size The length of the slider's bar region.
18602 * This sets the minimum width (when in horizontal mode) or height
18603 * (when in vertical mode) of the actual bar area of the slider
18604 * @p obj. This in turn affects the object's minimum size. Use
18605 * this when you're not setting other size hints expanding on the
18606 * given direction (like weight and alignment hints) and you would
18607 * like it to have a specific size.
18609 * @note Icon, end, label, indicator and unit text around @p obj
18610 * will require their
18611 * own space, which will make @p obj to require more the @p size,
18614 * @see elm_slider_span_size_get()
18618 EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
18621 * Get the length set for the bar region of a given slider widget
18623 * @param obj The slider object.
18624 * @return The length of the slider's bar region.
18626 * If that size was not set previously, with
18627 * elm_slider_span_size_set(), this call will return @c 0.
18631 EAPI Evas_Coord elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18634 * Set the format string for the unit label.
18636 * @param obj The slider object.
18637 * @param format The format string for the unit display.
18639 * Unit label is displayed all the time, if set, after slider's bar.
18640 * In horizontal mode, at right and in vertical mode, at bottom.
18642 * If @c NULL, unit label won't be visible. If not it sets the format
18643 * string for the label text. To the label text is provided a floating point
18644 * value, so the label text can display up to 1 floating point value.
18645 * Note that this is optional.
18647 * Use a format string such as "%1.2f meters" for example, and it will
18648 * display values like: "3.14 meters" for a value equal to 3.14159.
18650 * Default is unit label disabled.
18652 * @see elm_slider_indicator_format_get()
18656 EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
18659 * Get the unit label format of the slider.
18661 * @param obj The slider object.
18662 * @return The unit label format string in UTF-8.
18664 * Unit label is displayed all the time, if set, after slider's bar.
18665 * In horizontal mode, at right and in vertical mode, at bottom.
18667 * @see elm_slider_unit_format_set() for more
18668 * information on how this works.
18672 EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18675 * Set the format string for the indicator label.
18677 * @param obj The slider object.
18678 * @param indicator The format string for the indicator display.
18680 * The slider may display its value somewhere else then unit label,
18681 * for example, above the slider knob that is dragged around. This function
18682 * sets the format string used for this.
18684 * If @c NULL, indicator label won't be visible. If not it sets the format
18685 * string for the label text. To the label text is provided a floating point
18686 * value, so the label text can display up to 1 floating point value.
18687 * Note that this is optional.
18689 * Use a format string such as "%1.2f meters" for example, and it will
18690 * display values like: "3.14 meters" for a value equal to 3.14159.
18692 * Default is indicator label disabled.
18694 * @see elm_slider_indicator_format_get()
18698 EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
18701 * Get the indicator label format of the slider.
18703 * @param obj The slider object.
18704 * @return The indicator label format string in UTF-8.
18706 * The slider may display its value somewhere else then unit label,
18707 * for example, above the slider knob that is dragged around. This function
18708 * gets the format string used for this.
18710 * @see elm_slider_indicator_format_set() for more
18711 * information on how this works.
18715 EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18718 * Set the format function pointer for the indicator label
18720 * @param obj The slider object.
18721 * @param func The indicator format function.
18722 * @param free_func The freeing function for the format string.
18724 * Set the callback function to format the indicator string.
18726 * @see elm_slider_indicator_format_set() for more info on how this works.
18730 EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str)) EINA_ARG_NONNULL(1);
18733 * Set the format function pointer for the units label
18735 * @param obj The slider object.
18736 * @param func The units format function.
18737 * @param free_func The freeing function for the format string.
18739 * Set the callback function to format the indicator string.
18741 * @see elm_slider_units_format_set() for more info on how this works.
18745 EAPI void elm_slider_units_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str)) EINA_ARG_NONNULL(1);
18748 * Set the orientation of a given slider widget.
18750 * @param obj The slider object.
18751 * @param horizontal Use @c EINA_TRUE to make @p obj to be
18752 * @b horizontal, @c EINA_FALSE to make it @b vertical.
18754 * Use this function to change how your slider is to be
18755 * disposed: vertically or horizontally.
18757 * By default it's displayed horizontally.
18759 * @see elm_slider_horizontal_get()
18763 EAPI void elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
18766 * Retrieve the orientation of a given slider widget
18768 * @param obj The slider object.
18769 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
18770 * @c EINA_FALSE if it's @b vertical (and on errors).
18772 * @see elm_slider_horizontal_set() for more details.
18776 EAPI Eina_Bool elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18779 * Set the minimum and maximum values for the slider.
18781 * @param obj The slider object.
18782 * @param min The minimum value.
18783 * @param max The maximum value.
18785 * Define the allowed range of values to be selected by the user.
18787 * If actual value is less than @p min, it will be updated to @p min. If it
18788 * is bigger then @p max, will be updated to @p max. Actual value can be
18789 * get with elm_slider_value_get().
18791 * By default, min is equal to 0.0, and max is equal to 1.0.
18793 * @warning Maximum must be greater than minimum, otherwise behavior
18796 * @see elm_slider_min_max_get()
18800 EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
18803 * Get the minimum and maximum values of the slider.
18805 * @param obj The slider object.
18806 * @param min Pointer where to store the minimum value.
18807 * @param max Pointer where to store the maximum value.
18809 * @note If only one value is needed, the other pointer can be passed
18812 * @see elm_slider_min_max_set() for details.
18816 EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
18819 * Set the value the slider displays.
18821 * @param obj The slider object.
18822 * @param val The value to be displayed.
18824 * Value will be presented on the unit label following format specified with
18825 * elm_slider_unit_format_set() and on indicator with
18826 * elm_slider_indicator_format_set().
18828 * @warning The value must to be between min and max values. This values
18829 * are set by elm_slider_min_max_set().
18831 * @see elm_slider_value_get()
18832 * @see elm_slider_unit_format_set()
18833 * @see elm_slider_indicator_format_set()
18834 * @see elm_slider_min_max_set()
18838 EAPI void elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
18841 * Get the value displayed by the spinner.
18843 * @param obj The spinner object.
18844 * @return The value displayed.
18846 * @see elm_spinner_value_set() for details.
18850 EAPI double elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18853 * Invert a given slider widget's displaying values order
18855 * @param obj The slider object.
18856 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
18857 * @c EINA_FALSE to bring it back to default, non-inverted values.
18859 * A slider may be @b inverted, in which state it gets its
18860 * values inverted, with high vales being on the left or top and
18861 * low values on the right or bottom, as opposed to normally have
18862 * the low values on the former and high values on the latter,
18863 * respectively, for horizontal and vertical modes.
18865 * @see elm_slider_inverted_get()
18869 EAPI void elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
18872 * Get whether a given slider widget's displaying values are
18875 * @param obj The slider object.
18876 * @return @c EINA_TRUE, if @p obj has inverted values,
18877 * @c EINA_FALSE otherwise (and on errors).
18879 * @see elm_slider_inverted_set() for more details.
18883 EAPI Eina_Bool elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18886 * Set whether to enlarge slider indicator (augmented knob) or not.
18888 * @param obj The slider object.
18889 * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
18890 * let the knob always at default size.
18892 * By default, indicator will be bigger while dragged by the user.
18894 * @warning It won't display values set with
18895 * elm_slider_indicator_format_set() if you disable indicator.
18899 EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
18902 * Get whether a given slider widget's enlarging indicator or not.
18904 * @param obj The slider object.
18905 * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
18906 * @c EINA_FALSE otherwise (and on errors).
18908 * @see elm_slider_indicator_show_set() for details.
18912 EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18919 * @addtogroup Actionslider Actionslider
18921 * @image html img/widget/actionslider/preview-00.png
18922 * @image latex img/widget/actionslider/preview-00.eps
18924 * An actionslider is a switcher for 2 or 3 labels with customizable magnet
18925 * properties. The user drags and releases the indicator, to choose a label.
18927 * Labels occupy the following positions.
18932 * Positions can be enabled or disabled.
18934 * Magnets can be set on the above positions.
18936 * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
18938 * @note By default all positions are set as enabled.
18940 * Signals that you can add callbacks for are:
18942 * "selected" - when user selects an enabled position (the label is passed
18945 * "pos_changed" - when the indicator reaches any of the positions("left",
18946 * "right" or "center").
18948 * See an example of actionslider usage @ref actionslider_example_page "here"
18951 typedef enum _Elm_Actionslider_Pos
18953 ELM_ACTIONSLIDER_NONE = 0,
18954 ELM_ACTIONSLIDER_LEFT = 1 << 0,
18955 ELM_ACTIONSLIDER_CENTER = 1 << 1,
18956 ELM_ACTIONSLIDER_RIGHT = 1 << 2,
18957 ELM_ACTIONSLIDER_ALL = (1 << 3) -1
18958 } Elm_Actionslider_Pos;
18961 * Add a new actionslider to the parent.
18963 * @param parent The parent object
18964 * @return The new actionslider object or NULL if it cannot be created
18966 EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18969 * Set actionslider labels.
18971 * @param obj The actionslider object
18972 * @param left_label The label to be set on the left.
18973 * @param center_label The label to be set on the center.
18974 * @param right_label The label to be set on the right.
18975 * @deprecated use elm_object_text_set() instead.
18977 EINA_DEPRECATED EAPI void elm_actionslider_labels_set(Evas_Object *obj, const char *left_label, const char *center_label, const char *right_label) EINA_ARG_NONNULL(1);
18980 * Get actionslider labels.
18982 * @param obj The actionslider object
18983 * @param left_label A char** to place the left_label of @p obj into.
18984 * @param center_label A char** to place the center_label of @p obj into.
18985 * @param right_label A char** to place the right_label of @p obj into.
18986 * @deprecated use elm_object_text_set() instead.
18988 EINA_DEPRECATED EAPI void elm_actionslider_labels_get(const Evas_Object *obj, const char **left_label, const char **center_label, const char **right_label) EINA_ARG_NONNULL(1);
18991 * Get actionslider selected label.
18993 * @param obj The actionslider object
18994 * @return The selected label
18996 EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18999 * Set actionslider indicator position.
19001 * @param obj The actionslider object.
19002 * @param pos The position of the indicator.
19004 EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
19007 * Get actionslider indicator position.
19009 * @param obj The actionslider object.
19010 * @return The position of the indicator.
19012 EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19015 * Set actionslider magnet position. To make multiple positions magnets @c or
19016 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
19018 * @param obj The actionslider object.
19019 * @param pos Bit mask indicating the magnet positions.
19021 EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
19024 * Get actionslider magnet position.
19026 * @param obj The actionslider object.
19027 * @return The positions with magnet property.
19029 EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19032 * Set actionslider enabled position. To set multiple positions as enabled @c or
19033 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
19035 * @note All the positions are enabled by default.
19037 * @param obj The actionslider object.
19038 * @param pos Bit mask indicating the enabled positions.
19040 EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
19043 * Get actionslider enabled position.
19045 * @param obj The actionslider object.
19046 * @return The enabled positions.
19048 EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19051 * Set the label used on the indicator.
19053 * @param obj The actionslider object
19054 * @param label The label to be set on the indicator.
19055 * @deprecated use elm_object_text_set() instead.
19057 EINA_DEPRECATED EAPI void elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19060 * Get the label used on the indicator object.
19062 * @param obj The actionslider object
19063 * @return The indicator label
19064 * @deprecated use elm_object_text_get() instead.
19066 EINA_DEPRECATED EAPI const char *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
19073 * @defgroup Genlist Genlist
19075 * @image html img/widget/genlist/preview-00.png
19076 * @image latex img/widget/genlist/preview-00.eps
19077 * @image html img/genlist.png
19078 * @image latex img/genlist.eps
19080 * This widget aims to have more expansive list than the simple list in
19081 * Elementary that could have more flexible items and allow many more entries
19082 * while still being fast and low on memory usage. At the same time it was
19083 * also made to be able to do tree structures. But the price to pay is more
19084 * complexity when it comes to usage. If all you want is a simple list with
19085 * icons and a single text, use the normal @ref List object.
19087 * Genlist has a fairly large API, mostly because it's relatively complex,
19088 * trying to be both expansive, powerful and efficient. First we will begin
19089 * an overview on the theory behind genlist.
19091 * @section Genlist_Item_Class Genlist item classes - creating items
19093 * In order to have the ability to add and delete items on the fly, genlist
19094 * implements a class (callback) system where the application provides a
19095 * structure with information about that type of item (genlist may contain
19096 * multiple different items with different classes, states and styles).
19097 * Genlist will call the functions in this struct (methods) when an item is
19098 * "realized" (i.e., created dynamically, while the user is scrolling the
19099 * grid). All objects will simply be deleted when no longer needed with
19100 * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
19101 * following members:
19102 * - @c item_style - This is a constant string and simply defines the name
19103 * of the item style. It @b must be specified and the default should be @c
19106 * - @c func - A struct with pointers to functions that will be called when
19107 * an item is going to be actually created. All of them receive a @c data
19108 * parameter that will point to the same data passed to
19109 * elm_genlist_item_append() and related item creation functions, and a @c
19110 * obj parameter that points to the genlist object itself.
19112 * The function pointers inside @c func are @c text_get, @c content_get, @c
19113 * state_get and @c del. The 3 first functions also receive a @c part
19114 * parameter described below. A brief description of these functions follows:
19116 * - @c text_get - The @c part parameter is the name string of one of the
19117 * existing text parts in the Edje group implementing the item's theme.
19118 * This function @b must return a strdup'()ed string, as the caller will
19119 * free() it when done. See #Elm_Genlist_Item_Text_Get_Cb.
19120 * - @c content_get - The @c part parameter is the name string of one of the
19121 * existing (content) swallow parts in the Edje group implementing the item's
19122 * theme. It must return @c NULL, when no content is desired, or a valid
19123 * object handle, otherwise. The object will be deleted by the genlist on
19124 * its deletion or when the item is "unrealized". See
19125 * #Elm_Genlist_Item_Content_Get_Cb.
19126 * - @c func.state_get - The @c part parameter is the name string of one of
19127 * the state parts in the Edje group implementing the item's theme. Return
19128 * @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
19129 * emit a signal to its theming Edje object with @c "elm,state,XXX,active"
19130 * and @c "elm" as "emission" and "source" arguments, respectively, when
19131 * the state is true (the default is false), where @c XXX is the name of
19132 * the (state) part. See #Elm_Genlist_Item_State_Get_Cb.
19133 * - @c func.del - This is intended for use when genlist items are deleted,
19134 * so any data attached to the item (e.g. its data parameter on creation)
19135 * can be deleted. See #Elm_Genlist_Item_Del_Cb.
19137 * available item styles:
19139 * - default_style - The text part is a textblock
19141 * @image html img/widget/genlist/preview-04.png
19142 * @image latex img/widget/genlist/preview-04.eps
19146 * @image html img/widget/genlist/preview-01.png
19147 * @image latex img/widget/genlist/preview-01.eps
19149 * - icon_top_text_bottom
19151 * @image html img/widget/genlist/preview-02.png
19152 * @image latex img/widget/genlist/preview-02.eps
19156 * @image html img/widget/genlist/preview-03.png
19157 * @image latex img/widget/genlist/preview-03.eps
19159 * @section Genlist_Items Structure of items
19161 * An item in a genlist can have 0 or more texts (they can be regular
19162 * text or textblock Evas objects - that's up to the style to determine), 0
19163 * or more contents (which are simply objects swallowed into the genlist item's
19164 * theming Edje object) and 0 or more <b>boolean states</b>, which have the
19165 * behavior left to the user to define. The Edje part names for each of
19166 * these properties will be looked up, in the theme file for the genlist,
19167 * under the Edje (string) data items named @c "labels", @c "contents" and @c
19168 * "states", respectively. For each of those properties, if more than one
19169 * part is provided, they must have names listed separated by spaces in the
19170 * data fields. For the default genlist item theme, we have @b one text
19171 * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
19172 * "elm.swallow.end") and @b no state parts.
19174 * A genlist item may be at one of several styles. Elementary provides one
19175 * by default - "default", but this can be extended by system or application
19176 * custom themes/overlays/extensions (see @ref Theme "themes" for more
19179 * @section Genlist_Manipulation Editing and Navigating
19181 * Items can be added by several calls. All of them return a @ref
19182 * Elm_Genlist_Item handle that is an internal member inside the genlist.
19183 * They all take a data parameter that is meant to be used for a handle to
19184 * the applications internal data (eg the struct with the original item
19185 * data). The parent parameter is the parent genlist item this belongs to if
19186 * it is a tree or an indexed group, and NULL if there is no parent. The
19187 * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
19188 * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
19189 * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
19190 * that is able to expand and have child items. If ELM_GENLIST_ITEM_GROUP
19191 * is set then this item is group index item that is displayed at the top
19192 * until the next group comes. The func parameter is a convenience callback
19193 * that is called when the item is selected and the data parameter will be
19194 * the func_data parameter, obj be the genlist object and event_info will be
19195 * the genlist item.
19197 * elm_genlist_item_append() adds an item to the end of the list, or if
19198 * there is a parent, to the end of all the child items of the parent.
19199 * elm_genlist_item_prepend() is the same but adds to the beginning of
19200 * the list or children list. elm_genlist_item_insert_before() inserts at
19201 * item before another item and elm_genlist_item_insert_after() inserts after
19202 * the indicated item.
19204 * The application can clear the list with elm_genlist_clear() which deletes
19205 * all the items in the list and elm_genlist_item_del() will delete a specific
19206 * item. elm_genlist_item_subitems_clear() will clear all items that are
19207 * children of the indicated parent item.
19209 * To help inspect list items you can jump to the item at the top of the list
19210 * with elm_genlist_first_item_get() which will return the item pointer, and
19211 * similarly elm_genlist_last_item_get() gets the item at the end of the list.
19212 * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
19213 * and previous items respectively relative to the indicated item. Using
19214 * these calls you can walk the entire item list/tree. Note that as a tree
19215 * the items are flattened in the list, so elm_genlist_item_parent_get() will
19216 * let you know which item is the parent (and thus know how to skip them if
19219 * @section Genlist_Muti_Selection Multi-selection
19221 * If the application wants multiple items to be able to be selected,
19222 * elm_genlist_multi_select_set() can enable this. If the list is
19223 * single-selection only (the default), then elm_genlist_selected_item_get()
19224 * will return the selected item, if any, or NULL if none is selected. If the
19225 * list is multi-select then elm_genlist_selected_items_get() will return a
19226 * list (that is only valid as long as no items are modified (added, deleted,
19227 * selected or unselected)).
19229 * @section Genlist_Usage_Hints Usage hints
19231 * There are also convenience functions. elm_genlist_item_genlist_get() will
19232 * return the genlist object the item belongs to. elm_genlist_item_show()
19233 * will make the scroller scroll to show that specific item so its visible.
19234 * elm_genlist_item_data_get() returns the data pointer set by the item
19235 * creation functions.
19237 * If an item changes (state of boolean changes, text or contents change),
19238 * then use elm_genlist_item_update() to have genlist update the item with
19239 * the new state. Genlist will re-realize the item thus call the functions
19240 * in the _Elm_Genlist_Item_Class for that item.
19242 * To programmatically (un)select an item use elm_genlist_item_selected_set().
19243 * To get its selected state use elm_genlist_item_selected_get(). Similarly
19244 * to expand/contract an item and get its expanded state, use
19245 * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
19246 * again to make an item disabled (unable to be selected and appear
19247 * differently) use elm_genlist_item_disabled_set() to set this and
19248 * elm_genlist_item_disabled_get() to get the disabled state.
19250 * In general to indicate how the genlist should expand items horizontally to
19251 * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
19252 * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
19253 * mode means that if items are too wide to fit, the scroller will scroll
19254 * horizontally. Otherwise items are expanded to fill the width of the
19255 * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
19256 * to the viewport width and limited to that size. This can be combined with
19257 * a different style that uses edjes' ellipsis feature (cutting text off like
19260 * Items will only call their selection func and callback when first becoming
19261 * selected. Any further clicks will do nothing, unless you enable always
19262 * select with elm_genlist_always_select_mode_set(). This means even if
19263 * selected, every click will make the selected callbacks be called.
19264 * elm_genlist_no_select_mode_set() will turn off the ability to select
19265 * items entirely and they will neither appear selected nor call selected
19266 * callback functions.
19268 * Remember that you can create new styles and add your own theme augmentation
19269 * per application with elm_theme_extension_add(). If you absolutely must
19270 * have a specific style that overrides any theme the user or system sets up
19271 * you can use elm_theme_overlay_add() to add such a file.
19273 * @section Genlist_Implementation Implementation
19275 * Evas tracks every object you create. Every time it processes an event
19276 * (mouse move, down, up etc.) it needs to walk through objects and find out
19277 * what event that affects. Even worse every time it renders display updates,
19278 * in order to just calculate what to re-draw, it needs to walk through many
19279 * many many objects. Thus, the more objects you keep active, the more
19280 * overhead Evas has in just doing its work. It is advisable to keep your
19281 * active objects to the minimum working set you need. Also remember that
19282 * object creation and deletion carries an overhead, so there is a
19283 * middle-ground, which is not easily determined. But don't keep massive lists
19284 * of objects you can't see or use. Genlist does this with list objects. It
19285 * creates and destroys them dynamically as you scroll around. It groups them
19286 * into blocks so it can determine the visibility etc. of a whole block at
19287 * once as opposed to having to walk the whole list. This 2-level list allows
19288 * for very large numbers of items to be in the list (tests have used up to
19289 * 2,000,000 items). Also genlist employs a queue for adding items. As items
19290 * may be different sizes, every item added needs to be calculated as to its
19291 * size and thus this presents a lot of overhead on populating the list, this
19292 * genlist employs a queue. Any item added is queued and spooled off over
19293 * time, actually appearing some time later, so if your list has many members
19294 * you may find it takes a while for them to all appear, with your process
19295 * consuming a lot of CPU while it is busy spooling.
19297 * Genlist also implements a tree structure, but it does so with callbacks to
19298 * the application, with the application filling in tree structures when
19299 * requested (allowing for efficient building of a very deep tree that could
19300 * even be used for file-management). See the above smart signal callbacks for
19303 * @section Genlist_Smart_Events Genlist smart events
19305 * Signals that you can add callbacks for are:
19306 * - @c "activated" - The user has double-clicked or pressed
19307 * (enter|return|spacebar) on an item. The @c event_info parameter is the
19308 * item that was activated.
19309 * - @c "clicked,double" - The user has double-clicked an item. The @c
19310 * event_info parameter is the item that was double-clicked.
19311 * - @c "selected" - This is called when a user has made an item selected.
19312 * The event_info parameter is the genlist item that was selected.
19313 * - @c "unselected" - This is called when a user has made an item
19314 * unselected. The event_info parameter is the genlist item that was
19316 * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
19317 * called and the item is now meant to be expanded. The event_info
19318 * parameter is the genlist item that was indicated to expand. It is the
19319 * job of this callback to then fill in the child items.
19320 * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
19321 * called and the item is now meant to be contracted. The event_info
19322 * parameter is the genlist item that was indicated to contract. It is the
19323 * job of this callback to then delete the child items.
19324 * - @c "expand,request" - This is called when a user has indicated they want
19325 * to expand a tree branch item. The callback should decide if the item can
19326 * expand (has any children) and then call elm_genlist_item_expanded_set()
19327 * appropriately to set the state. The event_info parameter is the genlist
19328 * item that was indicated to expand.
19329 * - @c "contract,request" - This is called when a user has indicated they
19330 * want to contract a tree branch item. The callback should decide if the
19331 * item can contract (has any children) and then call
19332 * elm_genlist_item_expanded_set() appropriately to set the state. The
19333 * event_info parameter is the genlist item that was indicated to contract.
19334 * - @c "realized" - This is called when the item in the list is created as a
19335 * real evas object. event_info parameter is the genlist item that was
19336 * created. The object may be deleted at any time, so it is up to the
19337 * caller to not use the object pointer from elm_genlist_item_object_get()
19338 * in a way where it may point to freed objects.
19339 * - @c "unrealized" - This is called just before an item is unrealized.
19340 * After this call content objects provided will be deleted and the item
19341 * object itself delete or be put into a floating cache.
19342 * - @c "drag,start,up" - This is called when the item in the list has been
19343 * dragged (not scrolled) up.
19344 * - @c "drag,start,down" - This is called when the item in the list has been
19345 * dragged (not scrolled) down.
19346 * - @c "drag,start,left" - This is called when the item in the list has been
19347 * dragged (not scrolled) left.
19348 * - @c "drag,start,right" - This is called when the item in the list has
19349 * been dragged (not scrolled) right.
19350 * - @c "drag,stop" - This is called when the item in the list has stopped
19352 * - @c "drag" - This is called when the item in the list is being dragged.
19353 * - @c "longpressed" - This is called when the item is pressed for a certain
19354 * amount of time. By default it's 1 second.
19355 * - @c "scroll,anim,start" - This is called when scrolling animation has
19357 * - @c "scroll,anim,stop" - This is called when scrolling animation has
19359 * - @c "scroll,drag,start" - This is called when dragging the content has
19361 * - @c "scroll,drag,stop" - This is called when dragging the content has
19363 * - @c "edge,top" - This is called when the genlist is scrolled until
19365 * - @c "edge,bottom" - This is called when the genlist is scrolled
19366 * until the bottom edge.
19367 * - @c "edge,left" - This is called when the genlist is scrolled
19368 * until the left edge.
19369 * - @c "edge,right" - This is called when the genlist is scrolled
19370 * until the right edge.
19371 * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
19373 * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
19375 * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
19377 * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
19379 * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
19380 * pinched out. "- @c multi,pinch,in" - This is called when the genlist is
19381 * multi-touch pinched in.
19382 * - @c "swipe" - This is called when the genlist is swiped.
19383 * - @c "moved" - This is called when a genlist item is moved.
19384 * - @c "language,changed" - This is called when the program's language is
19387 * @section Genlist_Examples Examples
19389 * Here is a list of examples that use the genlist, trying to show some of
19390 * its capabilities:
19391 * - @ref genlist_example_01
19392 * - @ref genlist_example_02
19393 * - @ref genlist_example_03
19394 * - @ref genlist_example_04
19395 * - @ref genlist_example_05
19399 * @addtogroup Genlist
19404 * @enum _Elm_Genlist_Item_Flags
19405 * @typedef Elm_Genlist_Item_Flags
19407 * Defines if the item is of any special type (has subitems or it's the
19408 * index of a group), or is just a simple item.
19412 typedef enum _Elm_Genlist_Item_Flags
19414 ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
19415 ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
19416 ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
19417 } Elm_Genlist_Item_Flags;
19418 typedef enum _Elm_Genlist_Item_Field_Flags
19420 ELM_GENLIST_ITEM_FIELD_ALL = 0,
19421 ELM_GENLIST_ITEM_FIELD_LABEL = (1 << 0),
19422 ELM_GENLIST_ITEM_FIELD_CONTENT = (1 << 1),
19423 ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2)
19424 } Elm_Genlist_Item_Field_Flags;
19425 typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class; /**< Genlist item class definition structs */
19426 #define Elm_Genlist_Item_Class Elm_Gen_Item_Class
19427 typedef struct _Elm_Genlist_Item Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
19428 #define Elm_Genlist_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
19429 typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
19432 * Text fetching class function for Elm_Gen_Item_Class.
19433 * @param data The data passed in the item creation function
19434 * @param obj The base widget object
19435 * @param part The part name of the swallow
19436 * @return The allocated (NOT stringshared) string to set as the text
19438 typedef char *(*Elm_Genlist_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part);
19441 * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
19442 * @param data The data passed in the item creation function
19443 * @param obj The base widget object
19444 * @param part The part name of the swallow
19445 * @return The content object to swallow
19447 typedef Evas_Object *(*Elm_Genlist_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part);
19450 * State fetching class function for Elm_Gen_Item_Class.
19451 * @param data The data passed in the item creation function
19452 * @param obj The base widget object
19453 * @param part The part name of the swallow
19454 * @return The hell if I know
19456 typedef Eina_Bool (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
19459 * Deletion class function for Elm_Gen_Item_Class.
19460 * @param data The data passed in the item creation function
19461 * @param obj The base widget object
19463 typedef void (*Elm_Genlist_Item_Del_Cb) (void *data, Evas_Object *obj);
19466 * @struct _Elm_Genlist_Item_Class
19468 * Genlist item class definition structs.
19470 * This struct contains the style and fetching functions that will define the
19471 * contents of each item.
19473 * @see @ref Genlist_Item_Class
19475 struct _Elm_Genlist_Item_Class
19477 const char *item_style; /**< style of this class. */
19478 struct Elm_Genlist_Item_Class_Func
19480 Elm_Genlist_Item_Text_Get_Cb text_get; /**< Text fetching class function for genlist item classes.*/
19481 Elm_Genlist_Item_Content_Get_Cb content_get; /**< Content fetching class function for genlist item classes. */
19482 Elm_Genlist_Item_State_Get_Cb state_get; /**< State fetching class function for genlist item classes. */
19483 Elm_Genlist_Item_Del_Cb del; /**< Deletion class function for genlist item classes. */
19486 #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
19488 * Add a new genlist widget to the given parent Elementary
19489 * (container) object
19491 * @param parent The parent object
19492 * @return a new genlist widget handle or @c NULL, on errors
19494 * This function inserts a new genlist widget on the canvas.
19496 * @see elm_genlist_item_append()
19497 * @see elm_genlist_item_del()
19498 * @see elm_genlist_clear()
19502 EAPI Evas_Object *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19505 * Remove all items from a given genlist widget.
19507 * @param obj The genlist object
19509 * This removes (and deletes) all items in @p obj, leaving it empty.
19511 * @see elm_genlist_item_del(), to remove just one item.
19515 EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
19518 * Enable or disable multi-selection in the genlist
19520 * @param obj The genlist object
19521 * @param multi Multi-select enable/disable. Default is disabled.
19523 * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
19524 * the list. This allows more than 1 item to be selected. To retrieve the list
19525 * of selected items, use elm_genlist_selected_items_get().
19527 * @see elm_genlist_selected_items_get()
19528 * @see elm_genlist_multi_select_get()
19532 EAPI void elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
19535 * Gets if multi-selection in genlist is enabled or disabled.
19537 * @param obj The genlist object
19538 * @return Multi-select enabled/disabled
19539 * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
19541 * @see elm_genlist_multi_select_set()
19545 EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19548 * This sets the horizontal stretching mode.
19550 * @param obj The genlist object
19551 * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
19553 * This sets the mode used for sizing items horizontally. Valid modes
19554 * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
19555 * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
19556 * the scroller will scroll horizontally. Otherwise items are expanded
19557 * to fill the width of the viewport of the scroller. If it is
19558 * ELM_LIST_LIMIT, items will be expanded to the viewport width and
19559 * limited to that size.
19561 * @see elm_genlist_horizontal_get()
19565 EAPI void elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
19566 EINA_DEPRECATED EAPI void elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
19569 * Gets the horizontal stretching mode.
19571 * @param obj The genlist object
19572 * @return The mode to use
19573 * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
19575 * @see elm_genlist_horizontal_set()
19579 EAPI Elm_List_Mode elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19580 EINA_DEPRECATED EAPI Elm_List_Mode elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19583 * Set the always select mode.
19585 * @param obj The genlist object
19586 * @param always_select The always select mode (@c EINA_TRUE = on, @c
19587 * EINA_FALSE = off). Default is @c EINA_FALSE.
19589 * Items will only call their selection func and callback when first
19590 * becoming selected. Any further clicks will do nothing, unless you
19591 * enable always select with elm_genlist_always_select_mode_set().
19592 * This means that, even if selected, every click will make the selected
19593 * callbacks be called.
19595 * @see elm_genlist_always_select_mode_get()
19599 EAPI void elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
19602 * Get the always select mode.
19604 * @param obj The genlist object
19605 * @return The always select mode
19606 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
19608 * @see elm_genlist_always_select_mode_set()
19612 EAPI Eina_Bool elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19615 * Enable/disable the no select mode.
19617 * @param obj The genlist object
19618 * @param no_select The no select mode
19619 * (EINA_TRUE = on, EINA_FALSE = off)
19621 * This will turn off the ability to select items entirely and they
19622 * will neither appear selected nor call selected callback functions.
19624 * @see elm_genlist_no_select_mode_get()
19628 EAPI void elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
19631 * Gets whether the no select mode is enabled.
19633 * @param obj The genlist object
19634 * @return The no select mode
19635 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
19637 * @see elm_genlist_no_select_mode_set()
19641 EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19644 * Enable/disable compress mode.
19646 * @param obj The genlist object
19647 * @param compress The compress mode
19648 * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
19650 * This will enable the compress mode where items are "compressed"
19651 * horizontally to fit the genlist scrollable viewport width. This is
19652 * special for genlist. Do not rely on
19653 * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
19654 * work as genlist needs to handle it specially.
19656 * @see elm_genlist_compress_mode_get()
19660 EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
19663 * Get whether the compress mode is enabled.
19665 * @param obj The genlist object
19666 * @return The compress mode
19667 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
19669 * @see elm_genlist_compress_mode_set()
19673 EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19676 * Enable/disable height-for-width mode.
19678 * @param obj The genlist object
19679 * @param setting The height-for-width mode (@c EINA_TRUE = on,
19680 * @c EINA_FALSE = off). Default is @c EINA_FALSE.
19682 * With height-for-width mode the item width will be fixed (restricted
19683 * to a minimum of) to the list width when calculating its size in
19684 * order to allow the height to be calculated based on it. This allows,
19685 * for instance, text block to wrap lines if the Edje part is
19686 * configured with "text.min: 0 1".
19688 * @note This mode will make list resize slower as it will have to
19689 * recalculate every item height again whenever the list width
19692 * @note When height-for-width mode is enabled, it also enables
19693 * compress mode (see elm_genlist_compress_mode_set()) and
19694 * disables homogeneous (see elm_genlist_homogeneous_set()).
19698 EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
19701 * Get whether the height-for-width mode is enabled.
19703 * @param obj The genlist object
19704 * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
19709 EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19712 * Enable/disable horizontal and vertical bouncing effect.
19714 * @param obj The genlist object
19715 * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
19716 * EINA_FALSE = off). Default is @c EINA_FALSE.
19717 * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
19718 * EINA_FALSE = off). Default is @c EINA_TRUE.
19720 * This will enable or disable the scroller bouncing effect for the
19721 * genlist. See elm_scroller_bounce_set() for details.
19723 * @see elm_scroller_bounce_set()
19724 * @see elm_genlist_bounce_get()
19728 EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
19731 * Get whether the horizontal and vertical bouncing effect is enabled.
19733 * @param obj The genlist object
19734 * @param h_bounce Pointer to a bool to receive if the bounce horizontally
19736 * @param v_bounce Pointer to a bool to receive if the bounce vertically
19739 * @see elm_genlist_bounce_set()
19743 EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
19746 * Enable/disable homogeneous mode.
19748 * @param obj The genlist object
19749 * @param homogeneous Assume the items within the genlist are of the
19750 * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
19753 * This will enable the homogeneous mode where items are of the same
19754 * height and width so that genlist may do the lazy-loading at its
19755 * maximum (which increases the performance for scrolling the list). This
19756 * implies 'compressed' mode.
19758 * @see elm_genlist_compress_mode_set()
19759 * @see elm_genlist_homogeneous_get()
19763 EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
19766 * Get whether the homogeneous mode is enabled.
19768 * @param obj The genlist object
19769 * @return Assume the items within the genlist are of the same height
19770 * and width (EINA_TRUE = on, EINA_FALSE = off)
19772 * @see elm_genlist_homogeneous_set()
19776 EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19779 * Set the maximum number of items within an item block
19781 * @param obj The genlist object
19782 * @param n Maximum number of items within an item block. Default is 32.
19784 * This will configure the block count to tune to the target with
19785 * particular performance matrix.
19787 * A block of objects will be used to reduce the number of operations due to
19788 * many objects in the screen. It can determine the visibility, or if the
19789 * object has changed, it theme needs to be updated, etc. doing this kind of
19790 * calculation to the entire block, instead of per object.
19792 * The default value for the block count is enough for most lists, so unless
19793 * you know you will have a lot of objects visible in the screen at the same
19794 * time, don't try to change this.
19796 * @see elm_genlist_block_count_get()
19797 * @see @ref Genlist_Implementation
19801 EAPI void elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
19804 * Get the maximum number of items within an item block
19806 * @param obj The genlist object
19807 * @return Maximum number of items within an item block
19809 * @see elm_genlist_block_count_set()
19813 EAPI int elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19816 * Set the timeout in seconds for the longpress event.
19818 * @param obj The genlist object
19819 * @param timeout timeout in seconds. Default is 1.
19821 * This option will change how long it takes to send an event "longpressed"
19822 * after the mouse down signal is sent to the list. If this event occurs, no
19823 * "clicked" event will be sent.
19825 * @see elm_genlist_longpress_timeout_set()
19829 EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
19832 * Get the timeout in seconds for the longpress event.
19834 * @param obj The genlist object
19835 * @return timeout in seconds
19837 * @see elm_genlist_longpress_timeout_get()
19841 EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19844 * Append a new item in a given genlist widget.
19846 * @param obj The genlist object
19847 * @param itc The item class for the item
19848 * @param data The item data
19849 * @param parent The parent item, or NULL if none
19850 * @param flags Item flags
19851 * @param func Convenience function called when the item is selected
19852 * @param func_data Data passed to @p func above.
19853 * @return A handle to the item added or @c NULL if not possible
19855 * This adds the given item to the end of the list or the end of
19856 * the children list if the @p parent is given.
19858 * @see elm_genlist_item_prepend()
19859 * @see elm_genlist_item_insert_before()
19860 * @see elm_genlist_item_insert_after()
19861 * @see elm_genlist_item_del()
19865 EAPI Elm_Genlist_Item *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
19868 * Prepend a new item in a given genlist widget.
19870 * @param obj The genlist object
19871 * @param itc The item class for the item
19872 * @param data The item data
19873 * @param parent The parent item, or NULL if none
19874 * @param flags Item flags
19875 * @param func Convenience function called when the item is selected
19876 * @param func_data Data passed to @p func above.
19877 * @return A handle to the item added or NULL if not possible
19879 * This adds an item to the beginning of the list or beginning of the
19880 * children of the parent if given.
19882 * @see elm_genlist_item_append()
19883 * @see elm_genlist_item_insert_before()
19884 * @see elm_genlist_item_insert_after()
19885 * @see elm_genlist_item_del()
19889 EAPI Elm_Genlist_Item *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
19892 * Insert an item before another in a genlist widget
19894 * @param obj The genlist object
19895 * @param itc The item class for the item
19896 * @param data The item data
19897 * @param before The item to place this new one before.
19898 * @param flags Item flags
19899 * @param func Convenience function called when the item is selected
19900 * @param func_data Data passed to @p func above.
19901 * @return A handle to the item added or @c NULL if not possible
19903 * This inserts an item before another in the list. It will be in the
19904 * same tree level or group as the item it is inserted before.
19906 * @see elm_genlist_item_append()
19907 * @see elm_genlist_item_prepend()
19908 * @see elm_genlist_item_insert_after()
19909 * @see elm_genlist_item_del()
19913 EAPI Elm_Genlist_Item *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item *before, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1, 5);
19916 * Insert an item after another in a genlist widget
19918 * @param obj The genlist object
19919 * @param itc The item class for the item
19920 * @param data The item data
19921 * @param after The item to place this new one after.
19922 * @param flags Item flags
19923 * @param func Convenience function called when the item is selected
19924 * @param func_data Data passed to @p func above.
19925 * @return A handle to the item added or @c NULL if not possible
19927 * This inserts an item after another in the list. It will be in the
19928 * same tree level or group as the item it is inserted after.
19930 * @see elm_genlist_item_append()
19931 * @see elm_genlist_item_prepend()
19932 * @see elm_genlist_item_insert_before()
19933 * @see elm_genlist_item_del()
19937 EAPI Elm_Genlist_Item *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item *after, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1, 5);
19940 * Insert a new item into the sorted genlist object
19942 * @param obj The genlist object
19943 * @param itc The item class for the item
19944 * @param data The item data
19945 * @param parent The parent item, or NULL if none
19946 * @param flags Item flags
19947 * @param comp The function called for the sort
19948 * @param func Convenience function called when item selected
19949 * @param func_data Data passed to @p func above.
19950 * @return A handle to the item added or NULL if not possible
19954 EAPI Elm_Genlist_Item *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func,const void *func_data);
19955 EAPI Elm_Genlist_Item *elm_genlist_item_direct_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
19957 /* operations to retrieve existing items */
19959 * Get the selectd item in the genlist.
19961 * @param obj The genlist object
19962 * @return The selected item, or NULL if none is selected.
19964 * This gets the selected item in the list (if multi-selection is enabled, only
19965 * the item that was first selected in the list is returned - which is not very
19966 * useful, so see elm_genlist_selected_items_get() for when multi-selection is
19969 * If no item is selected, NULL is returned.
19971 * @see elm_genlist_selected_items_get()
19975 EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19978 * Get a list of selected items in the genlist.
19980 * @param obj The genlist object
19981 * @return The list of selected items, or NULL if none are selected.
19983 * It returns a list of the selected items. This list pointer is only valid so
19984 * long as the selection doesn't change (no items are selected or unselected, or
19985 * unselected implicitly by deletion). The list contains Elm_Genlist_Item
19986 * pointers. The order of the items in this list is the order which they were
19987 * selected, i.e. the first item in this list is the first item that was
19988 * selected, and so on.
19990 * @note If not in multi-select mode, consider using function
19991 * elm_genlist_selected_item_get() instead.
19993 * @see elm_genlist_multi_select_set()
19994 * @see elm_genlist_selected_item_get()
19998 EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20001 * Get the mode item style of items in the genlist
20002 * @param obj The genlist object
20003 * @return The mode item style string, or NULL if none is specified
20005 * This is a constant string and simply defines the name of the
20006 * style that will be used for mode animations. It can be
20007 * @c NULL if you don't plan to use Genlist mode. See
20008 * elm_genlist_item_mode_set() for more info.
20012 EAPI const char *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20015 * Set the mode item style of items in the genlist
20016 * @param obj The genlist object
20017 * @param style The mode item style string, or NULL if none is desired
20019 * This is a constant string and simply defines the name of the
20020 * style that will be used for mode animations. It can be
20021 * @c NULL if you don't plan to use Genlist mode. See
20022 * elm_genlist_item_mode_set() for more info.
20026 EAPI void elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
20029 * Get a list of realized items in genlist
20031 * @param obj The genlist object
20032 * @return The list of realized items, nor NULL if none are realized.
20034 * This returns a list of the realized items in the genlist. The list
20035 * contains Elm_Genlist_Item pointers. The list must be freed by the
20036 * caller when done with eina_list_free(). The item pointers in the
20037 * list are only valid so long as those items are not deleted or the
20038 * genlist is not deleted.
20040 * @see elm_genlist_realized_items_update()
20044 EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20047 * Get the item that is at the x, y canvas coords.
20049 * @param obj The gelinst object.
20050 * @param x The input x coordinate
20051 * @param y The input y coordinate
20052 * @param posret The position relative to the item returned here
20053 * @return The item at the coordinates or NULL if none
20055 * This returns the item at the given coordinates (which are canvas
20056 * relative, not object-relative). If an item is at that coordinate,
20057 * that item handle is returned, and if @p posret is not NULL, the
20058 * integer pointed to is set to a value of -1, 0 or 1, depending if
20059 * the coordinate is on the upper portion of that item (-1), on the
20060 * middle section (0) or on the lower part (1). If NULL is returned as
20061 * an item (no item found there), then posret may indicate -1 or 1
20062 * based if the coordinate is above or below all items respectively in
20067 EAPI Elm_Genlist_Item *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret) EINA_ARG_NONNULL(1);
20070 * Get the first item in the genlist
20072 * This returns the first item in the list.
20074 * @param obj The genlist object
20075 * @return The first item, or NULL if none
20079 EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20082 * Get the last item in the genlist
20084 * This returns the last item in the list.
20086 * @return The last item, or NULL if none
20090 EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20093 * Set the scrollbar policy
20095 * @param obj The genlist object
20096 * @param policy_h Horizontal scrollbar policy.
20097 * @param policy_v Vertical scrollbar policy.
20099 * This sets the scrollbar visibility policy for the given genlist
20100 * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
20101 * made visible if it is needed, and otherwise kept hidden.
20102 * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
20103 * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
20104 * respectively for the horizontal and vertical scrollbars. Default is
20105 * #ELM_SMART_SCROLLER_POLICY_AUTO
20107 * @see elm_genlist_scroller_policy_get()
20111 EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
20114 * Get the scrollbar policy
20116 * @param obj The genlist object
20117 * @param policy_h Pointer to store the horizontal scrollbar policy.
20118 * @param policy_v Pointer to store the vertical scrollbar policy.
20120 * @see elm_genlist_scroller_policy_set()
20124 EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
20127 * Get the @b next item in a genlist widget's internal list of items,
20128 * given a handle to one of those items.
20130 * @param item The genlist item to fetch next from
20131 * @return The item after @p item, or @c NULL if there's none (and
20134 * This returns the item placed after the @p item, on the container
20137 * @see elm_genlist_item_prev_get()
20141 EAPI Elm_Genlist_Item *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20144 * Get the @b previous item in a genlist widget's internal list of items,
20145 * given a handle to one of those items.
20147 * @param item The genlist item to fetch previous from
20148 * @return The item before @p item, or @c NULL if there's none (and
20151 * This returns the item placed before the @p item, on the container
20154 * @see elm_genlist_item_next_get()
20158 EAPI Elm_Genlist_Item *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20161 * Get the genlist object's handle which contains a given genlist
20164 * @param item The item to fetch the container from
20165 * @return The genlist (parent) object
20167 * This returns the genlist object itself that an item belongs to.
20171 EAPI Evas_Object *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20174 * Get the parent item of the given item
20176 * @param it The item
20177 * @return The parent of the item or @c NULL if it has no parent.
20179 * This returns the item that was specified as parent of the item @p it on
20180 * elm_genlist_item_append() and insertion related functions.
20184 EAPI Elm_Genlist_Item *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20187 * Remove all sub-items (children) of the given item
20189 * @param it The item
20191 * This removes all items that are children (and their descendants) of the
20192 * given item @p it.
20194 * @see elm_genlist_clear()
20195 * @see elm_genlist_item_del()
20199 EAPI void elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20202 * Set whether a given genlist item is selected or not
20204 * @param it The item
20205 * @param selected Use @c EINA_TRUE, to make it selected, @c
20206 * EINA_FALSE to make it unselected
20208 * This sets the selected state of an item. If multi selection is
20209 * not enabled on the containing genlist and @p selected is @c
20210 * EINA_TRUE, any other previously selected items will get
20211 * unselected in favor of this new one.
20213 * @see elm_genlist_item_selected_get()
20217 EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
20220 * Get whether a given genlist item is selected or not
20222 * @param it The item
20223 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
20225 * @see elm_genlist_item_selected_set() for more details
20229 EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20232 * Sets the expanded state of an item.
20234 * @param it The item
20235 * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
20237 * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
20240 * The theme will respond to this change visually, and a signal "expanded" or
20241 * "contracted" will be sent from the genlist with a pointer to the item that
20242 * has been expanded/contracted.
20244 * Calling this function won't show or hide any child of this item (if it is
20245 * a parent). You must manually delete and create them on the callbacks fo
20246 * the "expanded" or "contracted" signals.
20248 * @see elm_genlist_item_expanded_get()
20252 EAPI void elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
20255 * Get the expanded state of an item
20257 * @param it The item
20258 * @return The expanded state
20260 * This gets the expanded state of an item.
20262 * @see elm_genlist_item_expanded_set()
20266 EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20269 * Get the depth of expanded item
20271 * @param it The genlist item object
20272 * @return The depth of expanded item
20276 EAPI int elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20279 * Set whether a given genlist item is disabled or not.
20281 * @param it The item
20282 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
20283 * to enable it back.
20285 * A disabled item cannot be selected or unselected. It will also
20286 * change its appearance, to signal the user it's disabled.
20288 * @see elm_genlist_item_disabled_get()
20292 EAPI void elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
20295 * Get whether a given genlist item is disabled or not.
20297 * @param it The item
20298 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
20301 * @see elm_genlist_item_disabled_set() for more details
20305 EAPI Eina_Bool elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20308 * Sets the display only state of an item.
20310 * @param it The item
20311 * @param display_only @c EINA_TRUE if the item is display only, @c
20312 * EINA_FALSE otherwise.
20314 * A display only item cannot be selected or unselected. It is for
20315 * display only and not selecting or otherwise clicking, dragging
20316 * etc. by the user, thus finger size rules will not be applied to
20319 * It's good to set group index items to display only state.
20321 * @see elm_genlist_item_display_only_get()
20325 EAPI void elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
20328 * Get the display only state of an item
20330 * @param it The item
20331 * @return @c EINA_TRUE if the item is display only, @c
20332 * EINA_FALSE otherwise.
20334 * @see elm_genlist_item_display_only_set()
20338 EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20341 * Show the portion of a genlist's internal list containing a given
20342 * item, immediately.
20344 * @param it The item to display
20346 * This causes genlist to jump to the given item @p it and show it (by
20347 * immediately scrolling to that position), if it is not fully visible.
20349 * @see elm_genlist_item_bring_in()
20350 * @see elm_genlist_item_top_show()
20351 * @see elm_genlist_item_middle_show()
20355 EAPI void elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20358 * Animatedly bring in, to the visible are of a genlist, a given
20361 * @param it The item to display
20363 * This causes genlist to jump to the given item @p it and show it (by
20364 * animatedly scrolling), if it is not fully visible. This may use animation
20365 * to do so and take a period of time
20367 * @see elm_genlist_item_show()
20368 * @see elm_genlist_item_top_bring_in()
20369 * @see elm_genlist_item_middle_bring_in()
20373 EAPI void elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20376 * Show the portion of a genlist's internal list containing a given
20377 * item, immediately.
20379 * @param it The item to display
20381 * This causes genlist to jump to the given item @p it and show it (by
20382 * immediately scrolling to that position), if it is not fully visible.
20384 * The item will be positioned at the top of the genlist viewport.
20386 * @see elm_genlist_item_show()
20387 * @see elm_genlist_item_top_bring_in()
20391 EAPI void elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20394 * Animatedly bring in, to the visible are of a genlist, a given
20397 * @param it The item
20399 * This causes genlist to jump to the given item @p it and show it (by
20400 * animatedly scrolling), if it is not fully visible. This may use animation
20401 * to do so and take a period of time
20403 * The item will be positioned at the top of the genlist viewport.
20405 * @see elm_genlist_item_bring_in()
20406 * @see elm_genlist_item_top_show()
20410 EAPI void elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20413 * Show the portion of a genlist's internal list containing a given
20414 * item, immediately.
20416 * @param it The item to display
20418 * This causes genlist to jump to the given item @p it and show it (by
20419 * immediately scrolling to that position), if it is not fully visible.
20421 * The item will be positioned at the middle of the genlist viewport.
20423 * @see elm_genlist_item_show()
20424 * @see elm_genlist_item_middle_bring_in()
20428 EAPI void elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20431 * Animatedly bring in, to the visible are of a genlist, a given
20434 * @param it The item
20436 * This causes genlist to jump to the given item @p it and show it (by
20437 * animatedly scrolling), if it is not fully visible. This may use animation
20438 * to do so and take a period of time
20440 * The item will be positioned at the middle of the genlist viewport.
20442 * @see elm_genlist_item_bring_in()
20443 * @see elm_genlist_item_middle_show()
20447 EAPI void elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20450 * Remove a genlist item from the its parent, deleting it.
20452 * @param item The item to be removed.
20453 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
20455 * @see elm_genlist_clear(), to remove all items in a genlist at
20460 EAPI void elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20463 * Return the data associated to a given genlist item
20465 * @param item The genlist item.
20466 * @return the data associated to this item.
20468 * This returns the @c data value passed on the
20469 * elm_genlist_item_append() and related item addition calls.
20471 * @see elm_genlist_item_append()
20472 * @see elm_genlist_item_data_set()
20476 EAPI void *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20479 * Set the data associated to a given genlist item
20481 * @param item The genlist item
20482 * @param data The new data pointer to set on it
20484 * This @b overrides the @c data value passed on the
20485 * elm_genlist_item_append() and related item addition calls. This
20486 * function @b won't call elm_genlist_item_update() automatically,
20487 * so you'd issue it afterwards if you want to hove the item
20488 * updated to reflect the that new data.
20490 * @see elm_genlist_item_data_get()
20494 EAPI void elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
20497 * Tells genlist to "orphan" contents fetchs by the item class
20499 * @param it The item
20501 * This instructs genlist to release references to contents in the item,
20502 * meaning that they will no longer be managed by genlist and are
20503 * floating "orphans" that can be re-used elsewhere if the user wants
20508 EAPI void elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20509 EINA_DEPRECATED EAPI void elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20512 * Get the real Evas object created to implement the view of a
20513 * given genlist item
20515 * @param item The genlist item.
20516 * @return the Evas object implementing this item's view.
20518 * This returns the actual Evas object used to implement the
20519 * specified genlist item's view. This may be @c NULL, as it may
20520 * not have been created or may have been deleted, at any time, by
20521 * the genlist. <b>Do not modify this object</b> (move, resize,
20522 * show, hide, etc.), as the genlist is controlling it. This
20523 * function is for querying, emitting custom signals or hooking
20524 * lower level callbacks for events on that object. Do not delete
20525 * this object under any circumstances.
20527 * @see elm_genlist_item_data_get()
20531 EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20534 * Update the contents of an item
20536 * @param it The item
20538 * This updates an item by calling all the item class functions again
20539 * to get the contents, texts and states. Use this when the original
20540 * item data has changed and the changes are desired to be reflected.
20542 * Use elm_genlist_realized_items_update() to update all already realized
20545 * @see elm_genlist_realized_items_update()
20549 EAPI void elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20552 * Promote an item to the top of the list
20554 * @param it The item
20558 EAPI void elm_genlist_item_promote(Elm_Gen_Item *it) EINA_ARG_NONNULL(1);
20561 * Demote an item to the end of the list
20563 * @param it The item
20567 EAPI void elm_genlist_item_demote(Elm_Gen_Item *it) EINA_ARG_NONNULL(1);
20570 * Update the part of an item
20572 * @param it The item
20573 * @param parts The name of item's part
20574 * @param itf The flags of item's part type
20576 * This updates an item's part by calling item's fetching functions again
20577 * to get the contents, texts and states. Use this when the original
20578 * item data has changed and the changes are desired to be reflected.
20579 * Second parts argument is used for globbing to match '*', '?', and '.'
20580 * It can be used at updating multi fields.
20582 * Use elm_genlist_realized_items_update() to update an item's all
20585 * @see elm_genlist_item_update()
20589 EAPI void elm_genlist_item_fields_update(Elm_Genlist_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf) EINA_ARG_NONNULL(1);
20592 * Update the item class of an item
20594 * @param it The item
20595 * @param itc The item class for the item
20597 * This sets another class fo the item, changing the way that it is
20598 * displayed. After changing the item class, elm_genlist_item_update() is
20599 * called on the item @p it.
20603 EAPI void elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
20604 EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
20607 * Set the text to be shown in a given genlist item's tooltips.
20609 * @param item The genlist item
20610 * @param text The text to set in the content
20612 * This call will setup the text to be used as tooltip to that item
20613 * (analogous to elm_object_tooltip_text_set(), but being item
20614 * tooltips with higher precedence than object tooltips). It can
20615 * have only one tooltip at a time, so any previous tooltip data
20616 * will get removed.
20618 * In order to set a content or something else as a tooltip, look at
20619 * elm_genlist_item_tooltip_content_cb_set().
20623 EAPI void elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
20626 * Set the content to be shown in a given genlist item's tooltips
20628 * @param item The genlist item.
20629 * @param func The function returning the tooltip contents.
20630 * @param data What to provide to @a func as callback data/context.
20631 * @param del_cb Called when data is not needed anymore, either when
20632 * another callback replaces @p func, the tooltip is unset with
20633 * elm_genlist_item_tooltip_unset() or the owner @p item
20634 * dies. This callback receives as its first parameter the
20635 * given @p data, being @c event_info the item handle.
20637 * This call will setup the tooltip's contents to @p item
20638 * (analogous to elm_object_tooltip_content_cb_set(), but being
20639 * item tooltips with higher precedence than object tooltips). It
20640 * can have only one tooltip at a time, so any previous tooltip
20641 * content will get removed. @p func (with @p data) will be called
20642 * every time Elementary needs to show the tooltip and it should
20643 * return a valid Evas object, which will be fully managed by the
20644 * tooltip system, getting deleted when the tooltip is gone.
20646 * In order to set just a text as a tooltip, look at
20647 * elm_genlist_item_tooltip_text_set().
20651 EAPI void elm_genlist_item_tooltip_content_cb_set(Elm_Genlist_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
20654 * Unset a tooltip from a given genlist item
20656 * @param item genlist item to remove a previously set tooltip from.
20658 * This call removes any tooltip set on @p item. The callback
20659 * provided as @c del_cb to
20660 * elm_genlist_item_tooltip_content_cb_set() will be called to
20661 * notify it is not used anymore (and have resources cleaned, if
20664 * @see elm_genlist_item_tooltip_content_cb_set()
20668 EAPI void elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20671 * Set a different @b style for a given genlist item's tooltip.
20673 * @param item genlist item with tooltip set
20674 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
20675 * "default", @c "transparent", etc)
20677 * Tooltips can have <b>alternate styles</b> to be displayed on,
20678 * which are defined by the theme set on Elementary. This function
20679 * works analogously as elm_object_tooltip_style_set(), but here
20680 * applied only to genlist item objects. The default style for
20681 * tooltips is @c "default".
20683 * @note before you set a style you should define a tooltip with
20684 * elm_genlist_item_tooltip_content_cb_set() or
20685 * elm_genlist_item_tooltip_text_set()
20687 * @see elm_genlist_item_tooltip_style_get()
20691 EAPI void elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
20694 * Get the style set a given genlist item's tooltip.
20696 * @param item genlist item with tooltip already set on.
20697 * @return style the theme style in use, which defaults to
20698 * "default". If the object does not have a tooltip set,
20699 * then @c NULL is returned.
20701 * @see elm_genlist_item_tooltip_style_set() for more details
20705 EAPI const char *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20708 * @brief Disable size restrictions on an object's tooltip
20709 * @param item The tooltip's anchor object
20710 * @param disable If EINA_TRUE, size restrictions are disabled
20711 * @return EINA_FALSE on failure, EINA_TRUE on success
20713 * This function allows a tooltip to expand beyond its parant window's canvas.
20714 * It will instead be limited only by the size of the display.
20716 EAPI Eina_Bool elm_genlist_item_tooltip_window_mode_set(Elm_Genlist_Item *item, Eina_Bool disable);
20719 * @brief Retrieve size restriction state of an object's tooltip
20720 * @param item The tooltip's anchor object
20721 * @return If EINA_TRUE, size restrictions are disabled
20723 * This function returns whether a tooltip is allowed to expand beyond
20724 * its parant window's canvas.
20725 * It will instead be limited only by the size of the display.
20727 EAPI Eina_Bool elm_genlist_item_tooltip_window_mode_get(const Elm_Genlist_Item *item);
20730 * Set the type of mouse pointer/cursor decoration to be shown,
20731 * when the mouse pointer is over the given genlist widget item
20733 * @param item genlist item to customize cursor on
20734 * @param cursor the cursor type's name
20736 * This function works analogously as elm_object_cursor_set(), but
20737 * here the cursor's changing area is restricted to the item's
20738 * area, and not the whole widget's. Note that that item cursors
20739 * have precedence over widget cursors, so that a mouse over @p
20740 * item will always show cursor @p type.
20742 * If this function is called twice for an object, a previously set
20743 * cursor will be unset on the second call.
20745 * @see elm_object_cursor_set()
20746 * @see elm_genlist_item_cursor_get()
20747 * @see elm_genlist_item_cursor_unset()
20751 EAPI void elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
20754 * Get the type of mouse pointer/cursor decoration set to be shown,
20755 * when the mouse pointer is over the given genlist widget item
20757 * @param item genlist item with custom cursor set
20758 * @return the cursor type's name or @c NULL, if no custom cursors
20759 * were set to @p item (and on errors)
20761 * @see elm_object_cursor_get()
20762 * @see elm_genlist_item_cursor_set() for more details
20763 * @see elm_genlist_item_cursor_unset()
20767 EAPI const char *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20770 * Unset any custom mouse pointer/cursor decoration set to be
20771 * shown, when the mouse pointer is over the given genlist widget
20772 * item, thus making it show the @b default cursor again.
20774 * @param item a genlist item
20776 * Use this call to undo any custom settings on this item's cursor
20777 * decoration, bringing it back to defaults (no custom style set).
20779 * @see elm_object_cursor_unset()
20780 * @see elm_genlist_item_cursor_set() for more details
20784 EAPI void elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20787 * Set a different @b style for a given custom cursor set for a
20790 * @param item genlist item with custom cursor set
20791 * @param style the <b>theme style</b> to use (e.g. @c "default",
20792 * @c "transparent", etc)
20794 * This function only makes sense when one is using custom mouse
20795 * cursor decorations <b>defined in a theme file</b> , which can
20796 * have, given a cursor name/type, <b>alternate styles</b> on
20797 * it. It works analogously as elm_object_cursor_style_set(), but
20798 * here applied only to genlist item objects.
20800 * @warning Before you set a cursor style you should have defined a
20801 * custom cursor previously on the item, with
20802 * elm_genlist_item_cursor_set()
20804 * @see elm_genlist_item_cursor_engine_only_set()
20805 * @see elm_genlist_item_cursor_style_get()
20809 EAPI void elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
20812 * Get the current @b style set for a given genlist item's custom
20815 * @param item genlist item with custom cursor set.
20816 * @return style the cursor style in use. If the object does not
20817 * have a cursor set, then @c NULL is returned.
20819 * @see elm_genlist_item_cursor_style_set() for more details
20823 EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20826 * Set if the (custom) cursor for a given genlist item should be
20827 * searched in its theme, also, or should only rely on the
20828 * rendering engine.
20830 * @param item item with custom (custom) cursor already set on
20831 * @param engine_only Use @c EINA_TRUE to have cursors looked for
20832 * only on those provided by the rendering engine, @c EINA_FALSE to
20833 * have them searched on the widget's theme, as well.
20835 * @note This call is of use only if you've set a custom cursor
20836 * for genlist items, with elm_genlist_item_cursor_set().
20838 * @note By default, cursors will only be looked for between those
20839 * provided by the rendering engine.
20843 EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
20846 * Get if the (custom) cursor for a given genlist item is being
20847 * searched in its theme, also, or is only relying on the rendering
20850 * @param item a genlist item
20851 * @return @c EINA_TRUE, if cursors are being looked for only on
20852 * those provided by the rendering engine, @c EINA_FALSE if they
20853 * are being searched on the widget's theme, as well.
20855 * @see elm_genlist_item_cursor_engine_only_set(), for more details
20859 EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
20862 * Get the index of the item. It is only valid once displayed.
20864 * @param item a genlist item
20865 * @return the position inside the list of item.
20869 EAPI int elm_genlist_item_index_get(Elm_Gen_Item *it);
20872 * Update the contents of all realized items.
20874 * @param obj The genlist object.
20876 * This updates all realized items by calling all the item class functions again
20877 * to get the contents, texts and states. Use this when the original
20878 * item data has changed and the changes are desired to be reflected.
20880 * To update just one item, use elm_genlist_item_update().
20882 * @see elm_genlist_realized_items_get()
20883 * @see elm_genlist_item_update()
20887 EAPI void elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
20890 * Activate a genlist mode on an item
20892 * @param item The genlist item
20893 * @param mode Mode name
20894 * @param mode_set Boolean to define set or unset mode.
20896 * A genlist mode is a different way of selecting an item. Once a mode is
20897 * activated on an item, any other selected item is immediately unselected.
20898 * This feature provides an easy way of implementing a new kind of animation
20899 * for selecting an item, without having to entirely rewrite the item style
20900 * theme. However, the elm_genlist_selected_* API can't be used to get what
20901 * item is activate for a mode.
20903 * The current item style will still be used, but applying a genlist mode to
20904 * an item will select it using a different kind of animation.
20906 * The current active item for a mode can be found by
20907 * elm_genlist_mode_item_get().
20909 * The characteristics of genlist mode are:
20910 * - Only one mode can be active at any time, and for only one item.
20911 * - Genlist handles deactivating other items when one item is activated.
20912 * - A mode is defined in the genlist theme (edc), and more modes can easily
20914 * - A mode style and the genlist item style are different things. They
20915 * can be combined to provide a default style to the item, with some kind
20916 * of animation for that item when the mode is activated.
20918 * When a mode is activated on an item, a new view for that item is created.
20919 * The theme of this mode defines the animation that will be used to transit
20920 * the item from the old view to the new view. This second (new) view will be
20921 * active for that item while the mode is active on the item, and will be
20922 * destroyed after the mode is totally deactivated from that item.
20924 * @see elm_genlist_mode_get()
20925 * @see elm_genlist_mode_item_get()
20929 EAPI void elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
20932 * Get the last (or current) genlist mode used.
20934 * @param obj The genlist object
20936 * This function just returns the name of the last used genlist mode. It will
20937 * be the current mode if it's still active.
20939 * @see elm_genlist_item_mode_set()
20940 * @see elm_genlist_mode_item_get()
20944 EAPI const char *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20947 * Get active genlist mode item
20949 * @param obj The genlist object
20950 * @return The active item for that current mode. Or @c NULL if no item is
20951 * activated with any mode.
20953 * This function returns the item that was activated with a mode, by the
20954 * function elm_genlist_item_mode_set().
20956 * @see elm_genlist_item_mode_set()
20957 * @see elm_genlist_mode_get()
20961 EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20966 * @param obj The genlist object
20967 * @param reorder_mode The reorder mode
20968 * (EINA_TRUE = on, EINA_FALSE = off)
20972 EAPI void elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
20975 * Get the reorder mode
20977 * @param obj The genlist object
20978 * @return The reorder mode
20979 * (EINA_TRUE = on, EINA_FALSE = off)
20983 EAPI Eina_Bool elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20990 * @defgroup Check Check
20992 * @image html img/widget/check/preview-00.png
20993 * @image latex img/widget/check/preview-00.eps
20994 * @image html img/widget/check/preview-01.png
20995 * @image latex img/widget/check/preview-01.eps
20996 * @image html img/widget/check/preview-02.png
20997 * @image latex img/widget/check/preview-02.eps
20999 * @brief The check widget allows for toggling a value between true and
21002 * Check objects are a lot like radio objects in layout and functionality
21003 * except they do not work as a group, but independently and only toggle the
21004 * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
21005 * the boolean state (1 for true, 0 for false), and elm_check_state_get()
21006 * returns the current state. For convenience, like the radio objects, you
21007 * can set a pointer to a boolean directly with elm_check_state_pointer_set()
21008 * for it to modify.
21010 * Signals that you can add callbacks for are:
21011 * "changed" - This is called whenever the user changes the state of one of
21012 * the check object(event_info is NULL).
21014 * Default contents parts of the check widget that you can use for are:
21015 * @li "icon" - An icon of the check
21017 * Default text parts of the check widget that you can use for are:
21018 * @li "elm.text" - Label of the check
21020 * @ref tutorial_check should give you a firm grasp of how to use this widget
21025 * @brief Add a new Check object
21027 * @param parent The parent object
21028 * @return The new object or NULL if it cannot be created
21030 EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21033 * @brief Set the text label of the check object
21035 * @param obj The check object
21036 * @param label The text label string in UTF-8
21038 * @deprecated use elm_object_text_set() instead.
21040 EINA_DEPRECATED EAPI void elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21043 * @brief Get the text label of the check object
21045 * @param obj The check object
21046 * @return The text label string in UTF-8
21048 * @deprecated use elm_object_text_get() instead.
21050 EINA_DEPRECATED EAPI const char *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21053 * @brief Set the icon object of the check object
21055 * @param obj The check object
21056 * @param icon The icon object
21058 * Once the icon object is set, a previously set one will be deleted.
21059 * If you want to keep that old content object, use the
21060 * elm_object_content_unset() function.
21062 * @deprecated use elm_object_part_content_set() instead.
21065 EINA_DEPRECATED EAPI void elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21068 * @brief Get the icon object of the check object
21070 * @param obj The check object
21071 * @return The icon object
21073 * @deprecated use elm_object_part_content_get() instead.
21076 EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21079 * @brief Unset the icon used for the check object
21081 * @param obj The check object
21082 * @return The icon object that was being used
21084 * Unparent and return the icon object which was set for this widget.
21086 * @deprecated use elm_object_part_content_unset() instead.
21089 EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21092 * @brief Set the on/off state of the check object
21094 * @param obj The check object
21095 * @param state The state to use (1 == on, 0 == off)
21097 * This sets the state of the check. If set
21098 * with elm_check_state_pointer_set() the state of that variable is also
21099 * changed. Calling this @b doesn't cause the "changed" signal to be emited.
21101 EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
21104 * @brief Get the state of the check object
21106 * @param obj The check object
21107 * @return The boolean state
21109 EAPI Eina_Bool elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21112 * @brief Set a convenience pointer to a boolean to change
21114 * @param obj The check object
21115 * @param statep Pointer to the boolean to modify
21117 * This sets a pointer to a boolean, that, in addition to the check objects
21118 * state will also be modified directly. To stop setting the object pointed
21119 * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
21120 * then when this is called, the check objects state will also be modified to
21121 * reflect the value of the boolean @p statep points to, just like calling
21122 * elm_check_state_set().
21124 EAPI void elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
21125 EINA_DEPRECATED EAPI void elm_check_states_labels_set(Evas_Object *obj, const char *ontext, const char *offtext) EINA_ARG_NONNULL(1,2,3);
21126 EINA_DEPRECATED EAPI void elm_check_states_labels_get(const Evas_Object *obj, const char **ontext, const char **offtext) EINA_ARG_NONNULL(1,2,3);
21133 * @defgroup Radio Radio
21135 * @image html img/widget/radio/preview-00.png
21136 * @image latex img/widget/radio/preview-00.eps
21138 * @brief Radio is a widget that allows for 1 or more options to be displayed
21139 * and have the user choose only 1 of them.
21141 * A radio object contains an indicator, an optional Label and an optional
21142 * icon object. While it's possible to have a group of only one radio they,
21143 * are normally used in groups of 2 or more. To add a radio to a group use
21144 * elm_radio_group_add(). The radio object(s) will select from one of a set
21145 * of integer values, so any value they are configuring needs to be mapped to
21146 * a set of integers. To configure what value that radio object represents,
21147 * use elm_radio_state_value_set() to set the integer it represents. To set
21148 * the value the whole group(which one is currently selected) is to indicate
21149 * use elm_radio_value_set() on any group member, and to get the groups value
21150 * use elm_radio_value_get(). For convenience the radio objects are also able
21151 * to directly set an integer(int) to the value that is selected. To specify
21152 * the pointer to this integer to modify, use elm_radio_value_pointer_set().
21153 * The radio objects will modify this directly. That implies the pointer must
21154 * point to valid memory for as long as the radio objects exist.
21156 * Signals that you can add callbacks for are:
21157 * @li changed - This is called whenever the user changes the state of one of
21158 * the radio objects within the group of radio objects that work together.
21160 * Default contents parts of the radio widget that you can use for are:
21161 * @li "icon" - An icon of the radio
21163 * @ref tutorial_radio show most of this API in action.
21168 * @brief Add a new radio to the parent
21170 * @param parent The parent object
21171 * @return The new object or NULL if it cannot be created
21173 EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21176 * @brief Set the text label of the radio object
21178 * @param obj The radio object
21179 * @param label The text label string in UTF-8
21181 * @deprecated use elm_object_text_set() instead.
21183 EINA_DEPRECATED EAPI void elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21186 * @brief Get the text label of the radio object
21188 * @param obj The radio object
21189 * @return The text label string in UTF-8
21191 * @deprecated use elm_object_text_set() instead.
21193 EINA_DEPRECATED EAPI const char *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21196 * @brief Set the icon object of the radio object
21198 * @param obj The radio object
21199 * @param icon The icon object
21201 * Once the icon object is set, a previously set one will be deleted. If you
21202 * want to keep that old content object, use the elm_radio_icon_unset()
21205 * @deprecated use elm_object_part_content_set() instead.
21208 EINA_DEPRECATED EAPI void elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21211 * @brief Get the icon object of the radio object
21213 * @param obj The radio object
21214 * @return The icon object
21216 * @see elm_radio_icon_set()
21218 * @deprecated use elm_object_part_content_get() instead.
21221 EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21224 * @brief Unset the icon used for the radio object
21226 * @param obj The radio object
21227 * @return The icon object that was being used
21229 * Unparent and return the icon object which was set for this widget.
21231 * @see elm_radio_icon_set()
21232 * @deprecated use elm_object_part_content_unset() instead.
21235 EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21238 * @brief Add this radio to a group of other radio objects
21240 * @param obj The radio object
21241 * @param group Any object whose group the @p obj is to join.
21243 * Radio objects work in groups. Each member should have a different integer
21244 * value assigned. In order to have them work as a group, they need to know
21245 * about each other. This adds the given radio object to the group of which
21246 * the group object indicated is a member.
21248 EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
21251 * @brief Set the integer value that this radio object represents
21253 * @param obj The radio object
21254 * @param value The value to use if this radio object is selected
21256 * This sets the value of the radio.
21258 EAPI void elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
21261 * @brief Get the integer value that this radio object represents
21263 * @param obj The radio object
21264 * @return The value used if this radio object is selected
21266 * This gets the value of the radio.
21268 * @see elm_radio_value_set()
21270 EAPI int elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21273 * @brief Set the value of the radio.
21275 * @param obj The radio object
21276 * @param value The value to use for the group
21278 * This sets the value of the radio group and will also set the value if
21279 * pointed to, to the value supplied, but will not call any callbacks.
21281 EAPI void elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
21284 * @brief Get the state of the radio object
21286 * @param obj The radio object
21287 * @return The integer state
21289 EAPI int elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21292 * @brief Set a convenience pointer to a integer to change
21294 * @param obj The radio object
21295 * @param valuep Pointer to the integer to modify
21297 * This sets a pointer to a integer, that, in addition to the radio objects
21298 * state will also be modified directly. To stop setting the object pointed
21299 * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
21300 * when this is called, the radio objects state will also be modified to
21301 * reflect the value of the integer valuep points to, just like calling
21302 * elm_radio_value_set().
21304 EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
21311 * @defgroup Pager Pager
21313 * @image html img/widget/pager/preview-00.png
21314 * @image latex img/widget/pager/preview-00.eps
21316 * @brief Widget that allows flipping between one or more āpagesā
21319 * The flipping between pages of objects is animated. All content
21320 * in the pager is kept in a stack, being the last content added
21321 * (visible one) on the top of that stack.
21323 * Objects can be pushed or popped from the stack or deleted as
21324 * well. Pushes and pops will animate the widget accordingly to its
21325 * style (a pop will also delete the child object once the
21326 * animation is finished). Any object already in the pager can be
21327 * promoted to the top (from its current stacking position) through
21328 * the use of elm_pager_content_promote(). New objects are pushed
21329 * to the top with elm_pager_content_push(). When the top item is
21330 * no longer wanted, simply pop it with elm_pager_content_pop() and
21331 * it will also be deleted. If an object is no longer needed and is
21332 * not the top item, just delete it as normal. You can query which
21333 * objects are the top and bottom with
21334 * elm_pager_content_bottom_get() and elm_pager_content_top_get().
21336 * Signals that you can add callbacks for are:
21337 * - @c "show,finished" - when a new page is actually shown on the top
21338 * - @c "hide,finished" - when a previous page is hidden
21340 * Only after the first of that signals the child object is
21341 * guaranteed to be visible, as in @c evas_object_visible_get().
21343 * This widget has the following styles available:
21346 * - @c "fade_translucide"
21347 * - @c "fade_invisible"
21349 * @note These styles affect only the flipping animations on the
21350 * default theme; the appearance when not animating is unaffected
21353 * @ref tutorial_pager gives a good overview of the usage of the API.
21358 * Add a new pager to the parent
21360 * @param parent The parent object
21361 * @return The new object or NULL if it cannot be created
21365 EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21368 * @brief Push an object to the top of the pager stack (and show it).
21370 * @param obj The pager object
21371 * @param content The object to push
21373 * The object pushed becomes a child of the pager, it will be controlled and
21374 * deleted when the pager is deleted.
21376 * @note If the content is already in the stack use
21377 * elm_pager_content_promote().
21378 * @warning Using this function on @p content already in the stack results in
21379 * undefined behavior.
21381 EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
21384 * @brief Pop the object that is on top of the stack
21386 * @param obj The pager object
21388 * This pops the object that is on the top(visible) of the pager, makes it
21389 * disappear, then deletes the object. The object that was underneath it on
21390 * the stack will become visible.
21392 EAPI void elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
21395 * @brief Moves an object already in the pager stack to the top of the stack.
21397 * @param obj The pager object
21398 * @param content The object to promote
21400 * This will take the @p content and move it to the top of the stack as
21401 * if it had been pushed there.
21403 * @note If the content isn't already in the stack use
21404 * elm_pager_content_push().
21405 * @warning Using this function on @p content not already in the stack
21406 * results in undefined behavior.
21408 EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
21411 * @brief Return the object at the bottom of the pager stack
21413 * @param obj The pager object
21414 * @return The bottom object or NULL if none
21416 EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21419 * @brief Return the object at the top of the pager stack
21421 * @param obj The pager object
21422 * @return The top object or NULL if none
21424 EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21431 * @defgroup Slideshow Slideshow
21433 * @image html img/widget/slideshow/preview-00.png
21434 * @image latex img/widget/slideshow/preview-00.eps
21436 * This widget, as the name indicates, is a pre-made image
21437 * slideshow panel, with API functions acting on (child) image
21438 * items presentation. Between those actions, are:
21439 * - advance to next/previous image
21440 * - select the style of image transition animation
21441 * - set the exhibition time for each image
21442 * - start/stop the slideshow
21444 * The transition animations are defined in the widget's theme,
21445 * consequently new animations can be added without having to
21446 * update the widget's code.
21448 * @section Slideshow_Items Slideshow items
21450 * For slideshow items, just like for @ref Genlist "genlist" ones,
21451 * the user defines a @b classes, specifying functions that will be
21452 * called on the item's creation and deletion times.
21454 * The #Elm_Slideshow_Item_Class structure contains the following
21457 * - @c func.get - When an item is displayed, this function is
21458 * called, and it's where one should create the item object, de
21459 * facto. For example, the object can be a pure Evas image object
21460 * or an Elementary @ref Photocam "photocam" widget. See
21461 * #SlideshowItemGetFunc.
21462 * - @c func.del - When an item is no more displayed, this function
21463 * is called, where the user must delete any data associated to
21464 * the item. See #SlideshowItemDelFunc.
21466 * @section Slideshow_Caching Slideshow caching
21468 * The slideshow provides facilities to have items adjacent to the
21469 * one being displayed <b>already "realized"</b> (i.e. loaded) for
21470 * you, so that the system does not have to decode image data
21471 * anymore at the time it has to actually switch images on its
21472 * viewport. The user is able to set the numbers of items to be
21473 * cached @b before and @b after the current item, in the widget's
21476 * Smart events one can add callbacks for are:
21478 * - @c "changed" - when the slideshow switches its view to a new
21479 * item. event_info parameter in callback contains the current visible item
21480 * - @c "transition,end" - when a slide transition ends. event_info parameter
21481 * in callback contains the current visible item
21483 * List of examples for the slideshow widget:
21484 * @li @ref slideshow_example
21488 * @addtogroup Slideshow
21492 typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
21493 typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
21494 typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
21495 typedef void (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
21498 * @struct _Elm_Slideshow_Item_Class
21500 * Slideshow item class definition. See @ref Slideshow_Items for
21503 struct _Elm_Slideshow_Item_Class
21505 struct _Elm_Slideshow_Item_Class_Func
21507 SlideshowItemGetFunc get;
21508 SlideshowItemDelFunc del;
21510 }; /**< #Elm_Slideshow_Item_Class member definitions */
21513 * Add a new slideshow widget to the given parent Elementary
21514 * (container) object
21516 * @param parent The parent object
21517 * @return A new slideshow widget handle or @c NULL, on errors
21519 * This function inserts a new slideshow widget on the canvas.
21521 * @ingroup Slideshow
21523 EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21526 * Add (append) a new item in a given slideshow widget.
21528 * @param obj The slideshow object
21529 * @param itc The item class for the item
21530 * @param data The item's data
21531 * @return A handle to the item added or @c NULL, on errors
21533 * Add a new item to @p obj's internal list of items, appending it.
21534 * The item's class must contain the function really fetching the
21535 * image object to show for this item, which could be an Evas image
21536 * object or an Elementary photo, for example. The @p data
21537 * parameter is going to be passed to both class functions of the
21540 * @see #Elm_Slideshow_Item_Class
21541 * @see elm_slideshow_item_sorted_insert()
21542 * @see elm_object_item_data_set()
21544 * @ingroup Slideshow
21546 EAPI Elm_Object_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
21549 * Insert a new item into the given slideshow widget, using the @p func
21550 * function to sort items (by item handles).
21552 * @param obj The slideshow object
21553 * @param itc The item class for the item
21554 * @param data The item's data
21555 * @param func The comparing function to be used to sort slideshow
21556 * items <b>by #Elm_Slideshow_Item item handles</b>
21557 * @return Returns The slideshow item handle, on success, or
21558 * @c NULL, on errors
21560 * Add a new item to @p obj's internal list of items, in a position
21561 * determined by the @p func comparing function. The item's class
21562 * must contain the function really fetching the image object to
21563 * show for this item, which could be an Evas image object or an
21564 * Elementary photo, for example. The @p data parameter is going to
21565 * be passed to both class functions of the item.
21567 * @see #Elm_Slideshow_Item_Class
21568 * @see elm_slideshow_item_add()
21570 * @ingroup Slideshow
21572 EAPI Elm_Object_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func) EINA_ARG_NONNULL(1);
21575 * Display a given slideshow widget's item, programmatically.
21577 * @param it The item to display on @p obj's viewport
21579 * The change between the current item and @p item will use the
21580 * transition @p obj is set to use (@see
21581 * elm_slideshow_transition_set()).
21583 * @ingroup Slideshow
21585 EAPI void elm_slideshow_show(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21588 * Slide to the @b next item, in a given slideshow widget
21590 * @param obj The slideshow object
21592 * The sliding animation @p obj is set to use will be the
21593 * transition effect used, after this call is issued.
21595 * @note If the end of the slideshow's internal list of items is
21596 * reached, it'll wrap around to the list's beginning, again.
21598 * @ingroup Slideshow
21600 EAPI void elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
21603 * Slide to the @b previous item, in a given slideshow widget
21605 * @param obj The slideshow object
21607 * The sliding animation @p obj is set to use will be the
21608 * transition effect used, after this call is issued.
21610 * @note If the beginning of the slideshow's internal list of items
21611 * is reached, it'll wrap around to the list's end, again.
21613 * @ingroup Slideshow
21615 EAPI void elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
21618 * Returns the list of sliding transition/effect names available, for a
21619 * given slideshow widget.
21621 * @param obj The slideshow object
21622 * @return The list of transitions (list of @b stringshared strings
21625 * The transitions, which come from @p obj's theme, must be an EDC
21626 * data item named @c "transitions" on the theme file, with (prefix)
21627 * names of EDC programs actually implementing them.
21629 * The available transitions for slideshows on the default theme are:
21630 * - @c "fade" - the current item fades out, while the new one
21631 * fades in to the slideshow's viewport.
21632 * - @c "black_fade" - the current item fades to black, and just
21633 * then, the new item will fade in.
21634 * - @c "horizontal" - the current item slides horizontally, until
21635 * it gets out of the slideshow's viewport, while the new item
21636 * comes from the left to take its place.
21637 * - @c "vertical" - the current item slides vertically, until it
21638 * gets out of the slideshow's viewport, while the new item comes
21639 * from the bottom to take its place.
21640 * - @c "square" - the new item starts to appear from the middle of
21641 * the current one, but with a tiny size, growing until its
21642 * target (full) size and covering the old one.
21644 * @warning The stringshared strings get no new references
21645 * exclusive to the user grabbing the list, here, so if you'd like
21646 * to use them out of this call's context, you'd better @c
21647 * eina_stringshare_ref() them.
21649 * @see elm_slideshow_transition_set()
21651 * @ingroup Slideshow
21653 EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21656 * Set the current slide transition/effect in use for a given
21659 * @param obj The slideshow object
21660 * @param transition The new transition's name string
21662 * If @p transition is implemented in @p obj's theme (i.e., is
21663 * contained in the list returned by
21664 * elm_slideshow_transitions_get()), this new sliding effect will
21665 * be used on the widget.
21667 * @see elm_slideshow_transitions_get() for more details
21669 * @ingroup Slideshow
21671 EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
21674 * Get the current slide transition/effect in use for a given
21677 * @param obj The slideshow object
21678 * @return The current transition's name
21680 * @see elm_slideshow_transition_set() for more details
21682 * @ingroup Slideshow
21684 EAPI const char *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21687 * Set the interval between each image transition on a given
21688 * slideshow widget, <b>and start the slideshow, itself</b>
21690 * @param obj The slideshow object
21691 * @param timeout The new displaying timeout for images
21693 * After this call, the slideshow widget will start cycling its
21694 * view, sequentially and automatically, with the images of the
21695 * items it has. The time between each new image displayed is going
21696 * to be @p timeout, in @b seconds. If a different timeout was set
21697 * previously and an slideshow was in progress, it will continue
21698 * with the new time between transitions, after this call.
21700 * @note A value less than or equal to 0 on @p timeout will disable
21701 * the widget's internal timer, thus halting any slideshow which
21702 * could be happening on @p obj.
21704 * @see elm_slideshow_timeout_get()
21706 * @ingroup Slideshow
21708 EAPI void elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
21711 * Get the interval set for image transitions on a given slideshow
21714 * @param obj The slideshow object
21715 * @return Returns the timeout set on it
21717 * @see elm_slideshow_timeout_set() for more details
21719 * @ingroup Slideshow
21721 EAPI double elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21724 * Set if, after a slideshow is started, for a given slideshow
21725 * widget, its items should be displayed cyclically or not.
21727 * @param obj The slideshow object
21728 * @param loop Use @c EINA_TRUE to make it cycle through items or
21729 * @c EINA_FALSE for it to stop at the end of @p obj's internal
21732 * @note elm_slideshow_next() and elm_slideshow_previous() will @b
21733 * ignore what is set by this functions, i.e., they'll @b always
21734 * cycle through items. This affects only the "automatic"
21735 * slideshow, as set by elm_slideshow_timeout_set().
21737 * @see elm_slideshow_loop_get()
21739 * @ingroup Slideshow
21741 EAPI void elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
21744 * Get if, after a slideshow is started, for a given slideshow
21745 * widget, its items are to be displayed cyclically or not.
21747 * @param obj The slideshow object
21748 * @return @c EINA_TRUE, if the items in @p obj will be cycled
21749 * through or @c EINA_FALSE, otherwise
21751 * @see elm_slideshow_loop_set() for more details
21753 * @ingroup Slideshow
21755 EAPI Eina_Bool elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21758 * Remove all items from a given slideshow widget
21760 * @param obj The slideshow object
21762 * This removes (and deletes) all items in @p obj, leaving it
21765 * @see elm_slideshow_item_del(), to remove just one item.
21767 * @ingroup Slideshow
21769 EAPI void elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
21772 * Get the internal list of items in a given slideshow widget.
21774 * @param obj The slideshow object
21775 * @return The list of items (#Elm_Object_Item as data) or
21776 * @c NULL on errors.
21778 * This list is @b not to be modified in any way and must not be
21779 * freed. Use the list members with functions like
21780 * elm_slideshow_item_del(), elm_slideshow_item_data_get().
21782 * @warning This list is only valid until @p obj object's internal
21783 * items list is changed. It should be fetched again with another
21784 * call to this function when changes happen.
21786 * @ingroup Slideshow
21788 EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21791 * Delete a given item from a slideshow widget.
21793 * @param it The slideshow item
21795 * @ingroup Slideshow
21797 EAPI void elm_slideshow_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21800 * Return the data associated with a given slideshow item
21802 * @param it The slideshow item
21803 * @return Returns the data associated to this item
21805 * @deprecated use elm_object_item_data_get() instead
21806 * @ingroup Slideshow
21808 EINA_DEPRECATED EAPI void *elm_slideshow_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
21811 * Returns the currently displayed item, in a given slideshow widget
21813 * @param obj The slideshow object
21814 * @return A handle to the item being displayed in @p obj or
21815 * @c NULL, if none is (and on errors)
21817 * @ingroup Slideshow
21819 EAPI Elm_Object_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21822 * Get the real Evas object created to implement the view of a
21823 * given slideshow item
21825 * @param item The slideshow item.
21826 * @return the Evas object implementing this item's view.
21828 * This returns the actual Evas object used to implement the
21829 * specified slideshow item's view. This may be @c NULL, as it may
21830 * not have been created or may have been deleted, at any time, by
21831 * the slideshow. <b>Do not modify this object</b> (move, resize,
21832 * show, hide, etc.), as the slideshow is controlling it. This
21833 * function is for querying, emitting custom signals or hooking
21834 * lower level callbacks for events on that object. Do not delete
21835 * this object under any circumstances.
21837 * @see elm_slideshow_item_data_get()
21839 * @ingroup Slideshow
21841 EAPI Evas_Object* elm_slideshow_item_object_get(const Elm_Object_Item* it) EINA_ARG_NONNULL(1);
21844 * Get the the item, in a given slideshow widget, placed at
21845 * position @p nth, in its internal items list
21847 * @param obj The slideshow object
21848 * @param nth The number of the item to grab a handle to (0 being
21850 * @return The item stored in @p obj at position @p nth or @c NULL,
21851 * if there's no item with that index (and on errors)
21853 * @ingroup Slideshow
21855 EAPI Elm_Object_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
21858 * Set the current slide layout in use for a given slideshow widget
21860 * @param obj The slideshow object
21861 * @param layout The new layout's name string
21863 * If @p layout is implemented in @p obj's theme (i.e., is contained
21864 * in the list returned by elm_slideshow_layouts_get()), this new
21865 * images layout will be used on the widget.
21867 * @see elm_slideshow_layouts_get() for more details
21869 * @ingroup Slideshow
21871 EAPI void elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
21874 * Get the current slide layout in use for a given slideshow widget
21876 * @param obj The slideshow object
21877 * @return The current layout's name
21879 * @see elm_slideshow_layout_set() for more details
21881 * @ingroup Slideshow
21883 EAPI const char *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21886 * Returns the list of @b layout names available, for a given
21887 * slideshow widget.
21889 * @param obj The slideshow object
21890 * @return The list of layouts (list of @b stringshared strings
21893 * Slideshow layouts will change how the widget is to dispose each
21894 * image item in its viewport, with regard to cropping, scaling,
21897 * The layouts, which come from @p obj's theme, must be an EDC
21898 * data item name @c "layouts" on the theme file, with (prefix)
21899 * names of EDC programs actually implementing them.
21901 * The available layouts for slideshows on the default theme are:
21902 * - @c "fullscreen" - item images with original aspect, scaled to
21903 * touch top and down slideshow borders or, if the image's heigh
21904 * is not enough, left and right slideshow borders.
21905 * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
21906 * one, but always leaving 10% of the slideshow's dimensions of
21907 * distance between the item image's borders and the slideshow
21908 * borders, for each axis.
21910 * @warning The stringshared strings get no new references
21911 * exclusive to the user grabbing the list, here, so if you'd like
21912 * to use them out of this call's context, you'd better @c
21913 * eina_stringshare_ref() them.
21915 * @see elm_slideshow_layout_set()
21917 * @ingroup Slideshow
21919 EAPI const Eina_List *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21922 * Set the number of items to cache, on a given slideshow widget,
21923 * <b>before the current item</b>
21925 * @param obj The slideshow object
21926 * @param count Number of items to cache before the current one
21928 * The default value for this property is @c 2. See
21929 * @ref Slideshow_Caching "slideshow caching" for more details.
21931 * @see elm_slideshow_cache_before_get()
21933 * @ingroup Slideshow
21935 EAPI void elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
21938 * Retrieve the number of items to cache, on a given slideshow widget,
21939 * <b>before the current item</b>
21941 * @param obj The slideshow object
21942 * @return The number of items set to be cached before the current one
21944 * @see elm_slideshow_cache_before_set() for more details
21946 * @ingroup Slideshow
21948 EAPI int elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21951 * Set the number of items to cache, on a given slideshow widget,
21952 * <b>after the current item</b>
21954 * @param obj The slideshow object
21955 * @param count Number of items to cache after the current one
21957 * The default value for this property is @c 2. See
21958 * @ref Slideshow_Caching "slideshow caching" for more details.
21960 * @see elm_slideshow_cache_after_get()
21962 * @ingroup Slideshow
21964 EAPI void elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
21967 * Retrieve the number of items to cache, on a given slideshow widget,
21968 * <b>after the current item</b>
21970 * @param obj The slideshow object
21971 * @return The number of items set to be cached after the current one
21973 * @see elm_slideshow_cache_after_set() for more details
21975 * @ingroup Slideshow
21977 EAPI int elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21980 * Get the number of items stored in a given slideshow widget
21982 * @param obj The slideshow object
21983 * @return The number of items on @p obj, at the moment of this call
21985 * @ingroup Slideshow
21987 EAPI unsigned int elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21994 * @defgroup Fileselector File Selector
21996 * @image html img/widget/fileselector/preview-00.png
21997 * @image latex img/widget/fileselector/preview-00.eps
21999 * A file selector is a widget that allows a user to navigate
22000 * through a file system, reporting file selections back via its
22003 * It contains shortcut buttons for home directory (@c ~) and to
22004 * jump one directory upwards (..), as well as cancel/ok buttons to
22005 * confirm/cancel a given selection. After either one of those two
22006 * former actions, the file selector will issue its @c "done" smart
22009 * There's a text entry on it, too, showing the name of the current
22010 * selection. There's the possibility of making it editable, so it
22011 * is useful on file saving dialogs on applications, where one
22012 * gives a file name to save contents to, in a given directory in
22013 * the system. This custom file name will be reported on the @c
22014 * "done" smart callback (explained in sequence).
22016 * Finally, it has a view to display file system items into in two
22021 * If Elementary is built with support of the Ethumb thumbnailing
22022 * library, the second form of view will display preview thumbnails
22023 * of files which it supports.
22025 * Smart callbacks one can register to:
22027 * - @c "selected" - the user has clicked on a file (when not in
22028 * folders-only mode) or directory (when in folders-only mode)
22029 * - @c "directory,open" - the list has been populated with new
22030 * content (@c event_info is a pointer to the directory's
22031 * path, a @b stringshared string)
22032 * - @c "done" - the user has clicked on the "ok" or "cancel"
22033 * buttons (@c event_info is a pointer to the selection's
22034 * path, a @b stringshared string)
22036 * Here is an example on its usage:
22037 * @li @ref fileselector_example
22041 * @addtogroup Fileselector
22046 * Defines how a file selector widget is to layout its contents
22047 * (file system entries).
22049 typedef enum _Elm_Fileselector_Mode
22051 ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
22052 ELM_FILESELECTOR_GRID, /**< layout as a grid */
22053 ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
22054 } Elm_Fileselector_Mode;
22057 * Add a new file selector widget to the given parent Elementary
22058 * (container) object
22060 * @param parent The parent object
22061 * @return a new file selector widget handle or @c NULL, on errors
22063 * This function inserts a new file selector widget on the canvas.
22065 * @ingroup Fileselector
22067 EAPI Evas_Object *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22070 * Enable/disable the file name entry box where the user can type
22071 * in a name for a file, in a given file selector widget
22073 * @param obj The file selector object
22074 * @param is_save @c EINA_TRUE to make the file selector a "saving
22075 * dialog", @c EINA_FALSE otherwise
22077 * Having the entry editable is useful on file saving dialogs on
22078 * applications, where one gives a file name to save contents to,
22079 * in a given directory in the system. This custom file name will
22080 * be reported on the @c "done" smart callback.
22082 * @see elm_fileselector_is_save_get()
22084 * @ingroup Fileselector
22086 EAPI void elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
22089 * Get whether the given file selector is in "saving dialog" mode
22091 * @param obj The file selector object
22092 * @return @c EINA_TRUE, if the file selector is in "saving dialog"
22093 * mode, @c EINA_FALSE otherwise (and on errors)
22095 * @see elm_fileselector_is_save_set() for more details
22097 * @ingroup Fileselector
22099 EAPI Eina_Bool elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22102 * Enable/disable folder-only view for a given file selector widget
22104 * @param obj The file selector object
22105 * @param only @c EINA_TRUE to make @p obj only display
22106 * directories, @c EINA_FALSE to make files to be displayed in it
22109 * If enabled, the widget's view will only display folder items,
22112 * @see elm_fileselector_folder_only_get()
22114 * @ingroup Fileselector
22116 EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
22119 * Get whether folder-only view is set for a given file selector
22122 * @param obj The file selector object
22123 * @return only @c EINA_TRUE if @p obj is only displaying
22124 * directories, @c EINA_FALSE if files are being displayed in it
22125 * too (and on errors)
22127 * @see elm_fileselector_folder_only_get()
22129 * @ingroup Fileselector
22131 EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22134 * Enable/disable the "ok" and "cancel" buttons on a given file
22137 * @param obj The file selector object
22138 * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
22140 * @note A file selector without those buttons will never emit the
22141 * @c "done" smart event, and is only usable if one is just hooking
22142 * to the other two events.
22144 * @see elm_fileselector_buttons_ok_cancel_get()
22146 * @ingroup Fileselector
22148 EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
22151 * Get whether the "ok" and "cancel" buttons on a given file
22152 * selector widget are being shown.
22154 * @param obj The file selector object
22155 * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
22156 * otherwise (and on errors)
22158 * @see elm_fileselector_buttons_ok_cancel_set() for more details
22160 * @ingroup Fileselector
22162 EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22165 * Enable/disable a tree view in the given file selector widget,
22166 * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
22168 * @param obj The file selector object
22169 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
22172 * In a tree view, arrows are created on the sides of directories,
22173 * allowing them to expand in place.
22175 * @note If it's in other mode, the changes made by this function
22176 * will only be visible when one switches back to "list" mode.
22178 * @see elm_fileselector_expandable_get()
22180 * @ingroup Fileselector
22182 EAPI void elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
22185 * Get whether tree view is enabled for the given file selector
22188 * @param obj The file selector object
22189 * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
22190 * otherwise (and or errors)
22192 * @see elm_fileselector_expandable_set() for more details
22194 * @ingroup Fileselector
22196 EAPI Eina_Bool elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22199 * Set, programmatically, the @b directory that a given file
22200 * selector widget will display contents from
22202 * @param obj The file selector object
22203 * @param path The path to display in @p obj
22205 * This will change the @b directory that @p obj is displaying. It
22206 * will also clear the text entry area on the @p obj object, which
22207 * displays select files' names.
22209 * @see elm_fileselector_path_get()
22211 * @ingroup Fileselector
22213 EAPI void elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
22216 * Get the parent directory's path that a given file selector
22217 * widget is displaying
22219 * @param obj The file selector object
22220 * @return The (full) path of the directory the file selector is
22221 * displaying, a @b stringshared string
22223 * @see elm_fileselector_path_set()
22225 * @ingroup Fileselector
22227 EAPI const char *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22230 * Set, programmatically, the currently selected file/directory in
22231 * the given file selector widget
22233 * @param obj The file selector object
22234 * @param path The (full) path to a file or directory
22235 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
22236 * latter case occurs if the directory or file pointed to do not
22239 * @see elm_fileselector_selected_get()
22241 * @ingroup Fileselector
22243 EAPI Eina_Bool elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
22246 * Get the currently selected item's (full) path, in the given file
22249 * @param obj The file selector object
22250 * @return The absolute path of the selected item, a @b
22251 * stringshared string
22253 * @note Custom editions on @p obj object's text entry, if made,
22254 * will appear on the return string of this function, naturally.
22256 * @see elm_fileselector_selected_set() for more details
22258 * @ingroup Fileselector
22260 EAPI const char *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22263 * Set the mode in which a given file selector widget will display
22264 * (layout) file system entries in its view
22266 * @param obj The file selector object
22267 * @param mode The mode of the fileselector, being it one of
22268 * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
22269 * first one, naturally, will display the files in a list. The
22270 * latter will make the widget to display its entries in a grid
22273 * @note By using elm_fileselector_expandable_set(), the user may
22274 * trigger a tree view for that list.
22276 * @note If Elementary is built with support of the Ethumb
22277 * thumbnailing library, the second form of view will display
22278 * preview thumbnails of files which it supports. You must have
22279 * elm_need_ethumb() called in your Elementary for thumbnailing to
22282 * @see elm_fileselector_expandable_set().
22283 * @see elm_fileselector_mode_get().
22285 * @ingroup Fileselector
22287 EAPI void elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
22290 * Get the mode in which a given file selector widget is displaying
22291 * (layouting) file system entries in its view
22293 * @param obj The fileselector object
22294 * @return The mode in which the fileselector is at
22296 * @see elm_fileselector_mode_set() for more details
22298 * @ingroup Fileselector
22300 EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22307 * @defgroup Progressbar Progress bar
22309 * The progress bar is a widget for visually representing the
22310 * progress status of a given job/task.
22312 * A progress bar may be horizontal or vertical. It may display an
22313 * icon besides it, as well as primary and @b units labels. The
22314 * former is meant to label the widget as a whole, while the
22315 * latter, which is formatted with floating point values (and thus
22316 * accepts a <c>printf</c>-style format string, like <c>"%1.2f
22317 * units"</c>), is meant to label the widget's <b>progress
22318 * value</b>. Label, icon and unit strings/objects are @b optional
22319 * for progress bars.
22321 * A progress bar may be @b inverted, in which state it gets its
22322 * values inverted, with high values being on the left or top and
22323 * low values on the right or bottom, as opposed to normally have
22324 * the low values on the former and high values on the latter,
22325 * respectively, for horizontal and vertical modes.
22327 * The @b span of the progress, as set by
22328 * elm_progressbar_span_size_set(), is its length (horizontally or
22329 * vertically), unless one puts size hints on the widget to expand
22330 * on desired directions, by any container. That length will be
22331 * scaled by the object or applications scaling factor. At any
22332 * point code can query the progress bar for its value with
22333 * elm_progressbar_value_get().
22335 * Available widget styles for progress bars:
22337 * - @c "wheel" (simple style, no text, no progression, only
22338 * "pulse" effect is available)
22340 * Default contents parts of the progressbar widget that you can use for are:
22341 * @li "icon" - An icon of the progressbar
22343 * Here is an example on its usage:
22344 * @li @ref progressbar_example
22348 * Add a new progress bar widget to the given parent Elementary
22349 * (container) object
22351 * @param parent The parent object
22352 * @return a new progress bar widget handle or @c NULL, on errors
22354 * This function inserts a new progress bar widget on the canvas.
22356 * @ingroup Progressbar
22358 EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22361 * Set whether a given progress bar widget is at "pulsing mode" or
22364 * @param obj The progress bar object
22365 * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
22366 * @c EINA_FALSE to put it back to its default one
22368 * By default, progress bars will display values from the low to
22369 * high value boundaries. There are, though, contexts in which the
22370 * state of progression of a given task is @b unknown. For those,
22371 * one can set a progress bar widget to a "pulsing state", to give
22372 * the user an idea that some computation is being held, but
22373 * without exact progress values. In the default theme it will
22374 * animate its bar with the contents filling in constantly and back
22375 * to non-filled, in a loop. To start and stop this pulsing
22376 * animation, one has to explicitly call elm_progressbar_pulse().
22378 * @see elm_progressbar_pulse_get()
22379 * @see elm_progressbar_pulse()
22381 * @ingroup Progressbar
22383 EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
22386 * Get whether a given progress bar widget is at "pulsing mode" or
22389 * @param obj The progress bar object
22390 * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
22391 * if it's in the default one (and on errors)
22393 * @ingroup Progressbar
22395 EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22398 * Start/stop a given progress bar "pulsing" animation, if its
22401 * @param obj The progress bar object
22402 * @param state @c EINA_TRUE, to @b start the pulsing animation,
22403 * @c EINA_FALSE to @b stop it
22405 * @note This call won't do anything if @p obj is not under "pulsing mode".
22407 * @see elm_progressbar_pulse_set() for more details.
22409 * @ingroup Progressbar
22411 EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
22414 * Set the progress value (in percentage) on a given progress bar
22417 * @param obj The progress bar object
22418 * @param val The progress value (@b must be between @c 0.0 and @c
22421 * Use this call to set progress bar levels.
22423 * @note If you passes a value out of the specified range for @p
22424 * val, it will be interpreted as the @b closest of the @b boundary
22425 * values in the range.
22427 * @ingroup Progressbar
22429 EAPI void elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
22432 * Get the progress value (in percentage) on a given progress bar
22435 * @param obj The progress bar object
22436 * @return The value of the progressbar
22438 * @see elm_progressbar_value_set() for more details
22440 * @ingroup Progressbar
22442 EAPI double elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22445 * Set the label of a given progress bar widget
22447 * @param obj The progress bar object
22448 * @param label The text label string, in UTF-8
22450 * @ingroup Progressbar
22451 * @deprecated use elm_object_text_set() instead.
22453 EINA_DEPRECATED EAPI void elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
22456 * Get the label of a given progress bar widget
22458 * @param obj The progressbar object
22459 * @return The text label string, in UTF-8
22461 * @ingroup Progressbar
22462 * @deprecated use elm_object_text_set() instead.
22464 EINA_DEPRECATED EAPI const char *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22467 * Set the icon object of a given progress bar widget
22469 * @param obj The progress bar object
22470 * @param icon The icon object
22472 * Use this call to decorate @p obj with an icon next to it.
22474 * @note Once the icon object is set, a previously set one will be
22475 * deleted. If you want to keep that old content object, use the
22476 * elm_progressbar_icon_unset() function.
22478 * @see elm_progressbar_icon_get()
22479 * @deprecated use elm_object_part_content_set() instead.
22481 * @ingroup Progressbar
22483 EINA_DEPRECATED EAPI void elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
22486 * Retrieve the icon object set for a given progress bar widget
22488 * @param obj The progress bar object
22489 * @return The icon object's handle, if @p obj had one set, or @c NULL,
22490 * otherwise (and on errors)
22492 * @see elm_progressbar_icon_set() for more details
22493 * @deprecated use elm_object_part_content_get() instead.
22495 * @ingroup Progressbar
22497 EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22500 * Unset an icon set on a given progress bar widget
22502 * @param obj The progress bar object
22503 * @return The icon object that was being used, if any was set, or
22504 * @c NULL, otherwise (and on errors)
22506 * This call will unparent and return the icon object which was set
22507 * for this widget, previously, on success.
22509 * @see elm_progressbar_icon_set() for more details
22510 * @deprecated use elm_object_part_content_unset() instead.
22512 * @ingroup Progressbar
22514 EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22517 * Set the (exact) length of the bar region of a given progress bar
22520 * @param obj The progress bar object
22521 * @param size The length of the progress bar's bar region
22523 * This sets the minimum width (when in horizontal mode) or height
22524 * (when in vertical mode) of the actual bar area of the progress
22525 * bar @p obj. This in turn affects the object's minimum size. Use
22526 * this when you're not setting other size hints expanding on the
22527 * given direction (like weight and alignment hints) and you would
22528 * like it to have a specific size.
22530 * @note Icon, label and unit text around @p obj will require their
22531 * own space, which will make @p obj to require more the @p size,
22534 * @see elm_progressbar_span_size_get()
22536 * @ingroup Progressbar
22538 EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
22541 * Get the length set for the bar region of a given progress bar
22544 * @param obj The progress bar object
22545 * @return The length of the progress bar's bar region
22547 * If that size was not set previously, with
22548 * elm_progressbar_span_size_set(), this call will return @c 0.
22550 * @ingroup Progressbar
22552 EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22555 * Set the format string for a given progress bar widget's units
22558 * @param obj The progress bar object
22559 * @param format The format string for @p obj's units label
22561 * If @c NULL is passed on @p format, it will make @p obj's units
22562 * area to be hidden completely. If not, it'll set the <b>format
22563 * string</b> for the units label's @b text. The units label is
22564 * provided a floating point value, so the units text is up display
22565 * at most one floating point falue. Note that the units label is
22566 * optional. Use a format string such as "%1.2f meters" for
22569 * @note The default format string for a progress bar is an integer
22570 * percentage, as in @c "%.0f %%".
22572 * @see elm_progressbar_unit_format_get()
22574 * @ingroup Progressbar
22576 EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
22579 * Retrieve the format string set for a given progress bar widget's
22582 * @param obj The progress bar object
22583 * @return The format set string for @p obj's units label or
22584 * @c NULL, if none was set (and on errors)
22586 * @see elm_progressbar_unit_format_set() for more details
22588 * @ingroup Progressbar
22590 EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22593 * Set the orientation of a given progress bar widget
22595 * @param obj The progress bar object
22596 * @param horizontal Use @c EINA_TRUE to make @p obj to be
22597 * @b horizontal, @c EINA_FALSE to make it @b vertical
22599 * Use this function to change how your progress bar is to be
22600 * disposed: vertically or horizontally.
22602 * @see elm_progressbar_horizontal_get()
22604 * @ingroup Progressbar
22606 EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22609 * Retrieve the orientation of a given progress bar widget
22611 * @param obj The progress bar object
22612 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22613 * @c EINA_FALSE if it's @b vertical (and on errors)
22615 * @see elm_progressbar_horizontal_set() for more details
22617 * @ingroup Progressbar
22619 EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22622 * Invert a given progress bar widget's displaying values order
22624 * @param obj The progress bar object
22625 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
22626 * @c EINA_FALSE to bring it back to default, non-inverted values.
22628 * A progress bar may be @b inverted, in which state it gets its
22629 * values inverted, with high values being on the left or top and
22630 * low values on the right or bottom, as opposed to normally have
22631 * the low values on the former and high values on the latter,
22632 * respectively, for horizontal and vertical modes.
22634 * @see elm_progressbar_inverted_get()
22636 * @ingroup Progressbar
22638 EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
22641 * Get whether a given progress bar widget's displaying values are
22644 * @param obj The progress bar object
22645 * @return @c EINA_TRUE, if @p obj has inverted values,
22646 * @c EINA_FALSE otherwise (and on errors)
22648 * @see elm_progressbar_inverted_set() for more details
22650 * @ingroup Progressbar
22652 EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22655 * @defgroup Separator Separator
22657 * @brief Separator is a very thin object used to separate other objects.
22659 * A separator can be vertical or horizontal.
22661 * @ref tutorial_separator is a good example of how to use a separator.
22665 * @brief Add a separator object to @p parent
22667 * @param parent The parent object
22669 * @return The separator object, or NULL upon failure
22671 EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22673 * @brief Set the horizontal mode of a separator object
22675 * @param obj The separator object
22676 * @param horizontal If true, the separator is horizontal
22678 EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22680 * @brief Get the horizontal mode of a separator object
22682 * @param obj The separator object
22683 * @return If true, the separator is horizontal
22685 * @see elm_separator_horizontal_set()
22687 EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22693 * @defgroup Spinner Spinner
22694 * @ingroup Elementary
22696 * @image html img/widget/spinner/preview-00.png
22697 * @image latex img/widget/spinner/preview-00.eps
22699 * A spinner is a widget which allows the user to increase or decrease
22700 * numeric values using arrow buttons, or edit values directly, clicking
22701 * over it and typing the new value.
22703 * By default the spinner will not wrap and has a label
22704 * of "%.0f" (just showing the integer value of the double).
22706 * A spinner has a label that is formatted with floating
22707 * point values and thus accepts a printf-style format string, like
22708 * ā%1.2f unitsā.
22710 * It also allows specific values to be replaced by pre-defined labels.
22712 * Smart callbacks one can register to:
22714 * - "changed" - Whenever the spinner value is changed.
22715 * - "delay,changed" - A short time after the value is changed by the user.
22716 * This will be called only when the user stops dragging for a very short
22717 * period or when they release their finger/mouse, so it avoids possibly
22718 * expensive reactions to the value change.
22720 * Available styles for it:
22722 * - @c "vertical": up/down buttons at the right side and text left aligned.
22724 * Here is an example on its usage:
22725 * @ref spinner_example
22729 * @addtogroup Spinner
22734 * Add a new spinner widget to the given parent Elementary
22735 * (container) object.
22737 * @param parent The parent object.
22738 * @return a new spinner widget handle or @c NULL, on errors.
22740 * This function inserts a new spinner widget on the canvas.
22745 EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22748 * Set the format string of the displayed label.
22750 * @param obj The spinner object.
22751 * @param fmt The format string for the label display.
22753 * If @c NULL, this sets the format to "%.0f". If not it sets the format
22754 * string for the label text. The label text is provided a floating point
22755 * value, so the label text can display up to 1 floating point value.
22756 * Note that this is optional.
22758 * Use a format string such as "%1.2f meters" for example, and it will
22759 * display values like: "3.14 meters" for a value equal to 3.14159.
22761 * Default is "%0.f".
22763 * @see elm_spinner_label_format_get()
22767 EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
22770 * Get the label format of the spinner.
22772 * @param obj The spinner object.
22773 * @return The text label format string in UTF-8.
22775 * @see elm_spinner_label_format_set() for details.
22779 EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22782 * Set the minimum and maximum values for the spinner.
22784 * @param obj The spinner object.
22785 * @param min The minimum value.
22786 * @param max The maximum value.
22788 * Define the allowed range of values to be selected by the user.
22790 * If actual value is less than @p min, it will be updated to @p min. If it
22791 * is bigger then @p max, will be updated to @p max. Actual value can be
22792 * get with elm_spinner_value_get().
22794 * By default, min is equal to 0, and max is equal to 100.
22796 * @warning Maximum must be greater than minimum.
22798 * @see elm_spinner_min_max_get()
22802 EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
22805 * Get the minimum and maximum values of the spinner.
22807 * @param obj The spinner object.
22808 * @param min Pointer where to store the minimum value.
22809 * @param max Pointer where to store the maximum value.
22811 * @note If only one value is needed, the other pointer can be passed
22814 * @see elm_spinner_min_max_set() for details.
22818 EAPI void elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
22821 * Set the step used to increment or decrement the spinner value.
22823 * @param obj The spinner object.
22824 * @param step The step value.
22826 * This value will be incremented or decremented to the displayed value.
22827 * It will be incremented while the user keep right or top arrow pressed,
22828 * and will be decremented while the user keep left or bottom arrow pressed.
22830 * The interval to increment / decrement can be set with
22831 * elm_spinner_interval_set().
22833 * By default step value is equal to 1.
22835 * @see elm_spinner_step_get()
22839 EAPI void elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
22842 * Get the step used to increment or decrement the spinner value.
22844 * @param obj The spinner object.
22845 * @return The step value.
22847 * @see elm_spinner_step_get() for more details.
22851 EAPI double elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22854 * Set the value the spinner displays.
22856 * @param obj The spinner object.
22857 * @param val The value to be displayed.
22859 * Value will be presented on the label following format specified with
22860 * elm_spinner_format_set().
22862 * @warning The value must to be between min and max values. This values
22863 * are set by elm_spinner_min_max_set().
22865 * @see elm_spinner_value_get().
22866 * @see elm_spinner_format_set().
22867 * @see elm_spinner_min_max_set().
22871 EAPI void elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
22874 * Get the value displayed by the spinner.
22876 * @param obj The spinner object.
22877 * @return The value displayed.
22879 * @see elm_spinner_value_set() for details.
22883 EAPI double elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22886 * Set whether the spinner should wrap when it reaches its
22887 * minimum or maximum value.
22889 * @param obj The spinner object.
22890 * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
22893 * Disabled by default. If disabled, when the user tries to increment the
22895 * but displayed value plus step value is bigger than maximum value,
22897 * won't allow it. The same happens when the user tries to decrement it,
22898 * but the value less step is less than minimum value.
22900 * When wrap is enabled, in such situations it will allow these changes,
22901 * but will get the value that would be less than minimum and subtracts
22902 * from maximum. Or add the value that would be more than maximum to
22906 * @li min value = 10
22907 * @li max value = 50
22908 * @li step value = 20
22909 * @li displayed value = 20
22911 * When the user decrement value (using left or bottom arrow), it will
22912 * displays @c 40, because max - (min - (displayed - step)) is
22913 * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
22915 * @see elm_spinner_wrap_get().
22919 EAPI void elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
22922 * Get whether the spinner should wrap when it reaches its
22923 * minimum or maximum value.
22925 * @param obj The spinner object
22926 * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
22927 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22929 * @see elm_spinner_wrap_set() for details.
22933 EAPI Eina_Bool elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22936 * Set whether the spinner can be directly edited by the user or not.
22938 * @param obj The spinner object.
22939 * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
22940 * don't allow users to edit it directly.
22942 * Spinner objects can have edition @b disabled, in which state they will
22943 * be changed only by arrows.
22944 * Useful for contexts
22945 * where you don't want your users to interact with it writting the value.
22947 * when using special values, the user can see real value instead
22948 * of special label on edition.
22950 * It's enabled by default.
22952 * @see elm_spinner_editable_get()
22956 EAPI void elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22959 * Get whether the spinner can be directly edited by the user or not.
22961 * @param obj The spinner object.
22962 * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
22963 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22965 * @see elm_spinner_editable_set() for details.
22969 EAPI Eina_Bool elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22972 * Set a special string to display in the place of the numerical value.
22974 * @param obj The spinner object.
22975 * @param value The value to be replaced.
22976 * @param label The label to be used.
22978 * It's useful for cases when a user should select an item that is
22979 * better indicated by a label than a value. For example, weekdays or months.
22983 * sp = elm_spinner_add(win);
22984 * elm_spinner_min_max_set(sp, 1, 3);
22985 * elm_spinner_special_value_add(sp, 1, "January");
22986 * elm_spinner_special_value_add(sp, 2, "February");
22987 * elm_spinner_special_value_add(sp, 3, "March");
22988 * evas_object_show(sp);
22993 EAPI void elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
22996 * Set the interval on time updates for an user mouse button hold
22997 * on spinner widgets' arrows.
22999 * @param obj The spinner object.
23000 * @param interval The (first) interval value in seconds.
23002 * This interval value is @b decreased while the user holds the
23003 * mouse pointer either incrementing or decrementing spinner's value.
23005 * This helps the user to get to a given value distant from the
23006 * current one easier/faster, as it will start to change quicker and
23007 * quicker on mouse button holds.
23009 * The calculation for the next change interval value, starting from
23010 * the one set with this call, is the previous interval divided by
23011 * @c 1.05, so it decreases a little bit.
23013 * The default starting interval value for automatic changes is
23016 * @see elm_spinner_interval_get()
23020 EAPI void elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23023 * Get the interval on time updates for an user mouse button hold
23024 * on spinner widgets' arrows.
23026 * @param obj The spinner object.
23027 * @return The (first) interval value, in seconds, set on it.
23029 * @see elm_spinner_interval_set() for more details.
23033 EAPI double elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23040 * @defgroup Index Index
23042 * @image html img/widget/index/preview-00.png
23043 * @image latex img/widget/index/preview-00.eps
23045 * An index widget gives you an index for fast access to whichever
23046 * group of other UI items one might have. It's a list of text
23047 * items (usually letters, for alphabetically ordered access).
23049 * Index widgets are by default hidden and just appear when the
23050 * user clicks over it's reserved area in the canvas. In its
23051 * default theme, it's an area one @ref Fingers "finger" wide on
23052 * the right side of the index widget's container.
23054 * When items on the index are selected, smart callbacks get
23055 * called, so that its user can make other container objects to
23056 * show a given area or child object depending on the index item
23057 * selected. You'd probably be using an index together with @ref
23058 * List "lists", @ref Genlist "generic lists" or @ref Gengrid
23061 * Smart events one can add callbacks for are:
23062 * - @c "changed" - When the selected index item changes. @c
23063 * event_info is the selected item's data pointer.
23064 * - @c "delay,changed" - When the selected index item changes, but
23065 * after a small idling period. @c event_info is the selected
23066 * item's data pointer.
23067 * - @c "selected" - When the user releases a mouse button and
23068 * selects an item. @c event_info is the selected item's data
23070 * - @c "level,up" - when the user moves a finger from the first
23071 * level to the second level
23072 * - @c "level,down" - when the user moves a finger from the second
23073 * level to the first level
23075 * The @c "delay,changed" event is so that it'll wait a small time
23076 * before actually reporting those events and, moreover, just the
23077 * last event happening on those time frames will actually be
23080 * Here are some examples on its usage:
23081 * @li @ref index_example_01
23082 * @li @ref index_example_02
23086 * @addtogroup Index
23090 typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
23093 * Add a new index widget to the given parent Elementary
23094 * (container) object
23096 * @param parent The parent object
23097 * @return a new index widget handle or @c NULL, on errors
23099 * This function inserts a new index widget on the canvas.
23103 EAPI Evas_Object *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23106 * Set whether a given index widget is or not visible,
23109 * @param obj The index object
23110 * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
23112 * Not to be confused with visible as in @c evas_object_show() --
23113 * visible with regard to the widget's auto hiding feature.
23115 * @see elm_index_active_get()
23119 EAPI void elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
23122 * Get whether a given index widget is currently visible or not.
23124 * @param obj The index object
23125 * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
23127 * @see elm_index_active_set() for more details
23131 EAPI Eina_Bool elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23134 * Set the items level for a given index widget.
23136 * @param obj The index object.
23137 * @param level @c 0 or @c 1, the currently implemented levels.
23139 * @see elm_index_item_level_get()
23143 EAPI void elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
23146 * Get the items level set for a given index widget.
23148 * @param obj The index object.
23149 * @return @c 0 or @c 1, which are the levels @p obj might be at.
23151 * @see elm_index_item_level_set() for more information
23155 EAPI int elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23158 * Returns the last selected item, for a given index widget.
23160 * @param obj The index object.
23161 * @return The last item @b selected on @p obj (or @c NULL, on errors).
23165 EAPI Elm_Index_Item *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
23168 * Append a new item on a given index widget.
23170 * @param obj The index object.
23171 * @param letter Letter under which the item should be indexed
23172 * @param item The item data to set for the index's item
23174 * Despite the most common usage of the @p letter argument is for
23175 * single char strings, one could use arbitrary strings as index
23178 * @c item will be the pointer returned back on @c "changed", @c
23179 * "delay,changed" and @c "selected" smart events.
23183 EAPI void elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
23186 * Prepend a new item on a given index widget.
23188 * @param obj The index object.
23189 * @param letter Letter under which the item should be indexed
23190 * @param item The item data to set for the index's item
23192 * Despite the most common usage of the @p letter argument is for
23193 * single char strings, one could use arbitrary strings as index
23196 * @c item will be the pointer returned back on @c "changed", @c
23197 * "delay,changed" and @c "selected" smart events.
23201 EAPI void elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
23204 * Append a new item, on a given index widget, <b>after the item
23205 * having @p relative as data</b>.
23207 * @param obj The index object.
23208 * @param letter Letter under which the item should be indexed
23209 * @param item The item data to set for the index's item
23210 * @param relative The index item to be the predecessor of this new one
23212 * Despite the most common usage of the @p letter argument is for
23213 * single char strings, one could use arbitrary strings as index
23216 * @c item will be the pointer returned back on @c "changed", @c
23217 * "delay,changed" and @c "selected" smart events.
23219 * @note If @p relative is @c NULL this function will behave as
23220 * elm_index_item_append().
23224 EAPI void elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const Elm_Index_Item *relative) EINA_ARG_NONNULL(1);
23227 * Prepend a new item, on a given index widget, <b>after the item
23228 * having @p relative as data</b>.
23230 * @param obj The index object.
23231 * @param letter Letter under which the item should be indexed
23232 * @param item The item data to set for the index's item
23233 * @param relative The index item to be the successor of this new one
23235 * Despite the most common usage of the @p letter argument is for
23236 * single char strings, one could use arbitrary strings as index
23239 * @c item will be the pointer returned back on @c "changed", @c
23240 * "delay,changed" and @c "selected" smart events.
23242 * @note If @p relative is @c NULL this function will behave as
23243 * elm_index_item_prepend().
23247 EAPI void elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const Elm_Index_Item *relative) EINA_ARG_NONNULL(1);
23250 * Insert a new item into the given index widget, using @p cmp_func
23251 * function to sort items (by item handles).
23253 * @param obj The index object.
23254 * @param letter Letter under which the item should be indexed
23255 * @param item The item data to set for the index's item
23256 * @param cmp_func The comparing function to be used to sort index
23257 * items <b>by #Elm_Index_Item item handles</b>
23258 * @param cmp_data_func A @b fallback function to be called for the
23259 * sorting of index items <b>by item data</b>). It will be used
23260 * when @p cmp_func returns @c 0 (equality), which means an index
23261 * item with provided item data already exists. To decide which
23262 * data item should be pointed to by the index item in question, @p
23263 * cmp_data_func will be used. If @p cmp_data_func returns a
23264 * non-negative value, the previous index item data will be
23265 * replaced by the given @p item pointer. If the previous data need
23266 * to be freed, it should be done by the @p cmp_data_func function,
23267 * because all references to it will be lost. If this function is
23268 * not provided (@c NULL is given), index items will be @b
23269 * duplicated, if @p cmp_func returns @c 0.
23271 * Despite the most common usage of the @p letter argument is for
23272 * single char strings, one could use arbitrary strings as index
23275 * @c item will be the pointer returned back on @c "changed", @c
23276 * "delay,changed" and @c "selected" smart events.
23280 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);
23283 * Remove an item from a given index widget, <b>to be referenced by
23284 * it's data value</b>.
23286 * @param obj The index object
23287 * @param item The item to be removed from @p obj
23289 * If a deletion callback is set, via elm_index_item_del_cb_set(),
23290 * that callback function will be called by this one.
23294 EAPI void elm_index_item_del(Evas_Object *obj, Elm_Index_Item *item) EINA_ARG_NONNULL(1);
23297 * Find a given index widget's item, <b>using item data</b>.
23299 * @param obj The index object
23300 * @param item The item data pointed to by the desired index item
23301 * @return The index item handle, if found, or @c NULL otherwise
23305 EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
23308 * Removes @b all items from a given index widget.
23310 * @param obj The index object.
23312 * If deletion callbacks are set, via elm_index_item_del_cb_set(),
23313 * that callback function will be called for each item in @p obj.
23317 EAPI void elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23320 * Go to a given items level on a index widget
23322 * @param obj The index object
23323 * @param level The index level (one of @c 0 or @c 1)
23327 EAPI void elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
23330 * Return the data associated with a given index widget item
23332 * @param it The index widget item handle
23333 * @return The data associated with @p it
23335 * @see elm_index_item_data_set()
23339 EAPI void *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
23342 * Set the data associated with a given index widget item
23344 * @param it The index widget item handle
23345 * @param data The new data pointer to set to @p it
23347 * This sets new item data on @p it.
23349 * @warning The old data pointer won't be touched by this function, so
23350 * the user had better to free that old data himself/herself.
23354 EAPI void elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
23357 * Set the function to be called when a given index widget item is freed.
23359 * @param it The item to set the callback on
23360 * @param func The function to call on the item's deletion
23362 * When called, @p func will have both @c data and @c event_info
23363 * arguments with the @p it item's data value and, naturally, the
23364 * @c obj argument with a handle to the parent index widget.
23368 EAPI void elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
23371 * Get the letter (string) set on a given index widget item.
23373 * @param it The index item handle
23374 * @return The letter string set on @p it
23378 EAPI const char *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
23385 * @defgroup Photocam Photocam
23387 * @image html img/widget/photocam/preview-00.png
23388 * @image latex img/widget/photocam/preview-00.eps
23390 * This is a widget specifically for displaying high-resolution digital
23391 * camera photos giving speedy feedback (fast load), low memory footprint
23392 * and zooming and panning as well as fitting logic. It is entirely focused
23393 * on jpeg images, and takes advantage of properties of the jpeg format (via
23394 * evas loader features in the jpeg loader).
23396 * Signals that you can add callbacks for are:
23397 * @li "clicked" - This is called when a user has clicked the photo without
23399 * @li "press" - This is called when a user has pressed down on the photo.
23400 * @li "longpressed" - This is called when a user has pressed down on the
23401 * photo for a long time without dragging around.
23402 * @li "clicked,double" - This is called when a user has double-clicked the
23404 * @li "load" - Photo load begins.
23405 * @li "loaded" - This is called when the image file load is complete for the
23406 * first view (low resolution blurry version).
23407 * @li "load,detail" - Photo detailed data load begins.
23408 * @li "loaded,detail" - This is called when the image file load is complete
23409 * for the detailed image data (full resolution needed).
23410 * @li "zoom,start" - Zoom animation started.
23411 * @li "zoom,stop" - Zoom animation stopped.
23412 * @li "zoom,change" - Zoom changed when using an auto zoom mode.
23413 * @li "scroll" - the content has been scrolled (moved)
23414 * @li "scroll,anim,start" - scrolling animation has started
23415 * @li "scroll,anim,stop" - scrolling animation has stopped
23416 * @li "scroll,drag,start" - dragging the contents around has started
23417 * @li "scroll,drag,stop" - dragging the contents around has stopped
23419 * @ref tutorial_photocam shows the API in action.
23424 * @brief Types of zoom available.
23426 typedef enum _Elm_Photocam_Zoom_Mode
23428 ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_photocam_zoom_set */
23429 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
23430 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
23431 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN, /**< Unzoom until photo fits in photocam */
23432 ELM_PHOTOCAM_ZOOM_MODE_LAST
23433 } Elm_Photocam_Zoom_Mode;
23436 * @brief Add a new Photocam object
23438 * @param parent The parent object
23439 * @return The new object or NULL if it cannot be created
23441 EAPI Evas_Object *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23444 * @brief Set the photo file to be shown
23446 * @param obj The photocam object
23447 * @param file The photo file
23448 * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
23450 * This sets (and shows) the specified file (with a relative or absolute
23451 * path) and will return a load error (same error that
23452 * evas_object_image_load_error_get() will return). The image will change and
23453 * adjust its size at this point and begin a background load process for this
23454 * photo that at some time in the future will be displayed at the full
23457 EAPI Evas_Load_Error elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
23460 * @brief Returns the path of the current image file
23462 * @param obj The photocam object
23463 * @return Returns the path
23465 * @see elm_photocam_file_set()
23467 EAPI const char *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23470 * @brief Set the zoom level of the photo
23472 * @param obj The photocam object
23473 * @param zoom The zoom level to set
23475 * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
23476 * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
23477 * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
23478 * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
23481 EAPI void elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
23484 * @brief Get the zoom level of the photo
23486 * @param obj The photocam object
23487 * @return The current zoom level
23489 * This returns the current zoom level of the photocam object. Note that if
23490 * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
23491 * (which is the default), the zoom level may be changed at any time by the
23492 * photocam object itself to account for photo size and photocam viewpoer
23495 * @see elm_photocam_zoom_set()
23496 * @see elm_photocam_zoom_mode_set()
23498 EAPI double elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23501 * @brief Set the zoom mode
23503 * @param obj The photocam object
23504 * @param mode The desired mode
23506 * This sets the zoom mode to manual or one of several automatic levels.
23507 * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
23508 * elm_photocam_zoom_set() and will stay at that level until changed by code
23509 * or until zoom mode is changed. This is the default mode. The Automatic
23510 * modes will allow the photocam object to automatically adjust zoom mode
23511 * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
23512 * the photo fits EXACTLY inside the scroll frame with no pixels outside this
23513 * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
23514 * pixels within the frame are left unfilled.
23516 EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
23519 * @brief Get the zoom mode
23521 * @param obj The photocam object
23522 * @return The current zoom mode
23524 * This gets the current zoom mode of the photocam object.
23526 * @see elm_photocam_zoom_mode_set()
23528 EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23531 * @brief Get the current image pixel width and height
23533 * @param obj The photocam object
23534 * @param w A pointer to the width return
23535 * @param h A pointer to the height return
23537 * This gets the current photo pixel width and height (for the original).
23538 * The size will be returned in the integers @p w and @p h that are pointed
23541 EAPI void elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
23544 * @brief Get the area of the image that is currently shown
23547 * @param x A pointer to the X-coordinate of region
23548 * @param y A pointer to the Y-coordinate of region
23549 * @param w A pointer to the width
23550 * @param h A pointer to the height
23552 * @see elm_photocam_image_region_show()
23553 * @see elm_photocam_image_region_bring_in()
23555 EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
23558 * @brief Set the viewed portion of the image
23560 * @param obj The photocam object
23561 * @param x X-coordinate of region in image original pixels
23562 * @param y Y-coordinate of region in image original pixels
23563 * @param w Width of region in image original pixels
23564 * @param h Height of region in image original pixels
23566 * This shows the region of the image without using animation.
23568 EAPI void elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
23571 * @brief Bring in the viewed portion of the image
23573 * @param obj The photocam object
23574 * @param x X-coordinate of region in image original pixels
23575 * @param y Y-coordinate of region in image original pixels
23576 * @param w Width of region in image original pixels
23577 * @param h Height of region in image original pixels
23579 * This shows the region of the image using animation.
23581 EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
23584 * @brief Set the paused state for photocam
23586 * @param obj The photocam object
23587 * @param paused The pause state to set
23589 * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
23590 * photocam. The default is off. This will stop zooming using animation on
23591 * zoom levels changes and change instantly. This will stop any existing
23592 * animations that are running.
23594 EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
23597 * @brief Get the paused state for photocam
23599 * @param obj The photocam object
23600 * @return The current paused state
23602 * This gets the current paused state for the photocam object.
23604 * @see elm_photocam_paused_set()
23606 EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23609 * @brief Get the internal low-res image used for photocam
23611 * @param obj The photocam object
23612 * @return The internal image object handle, or NULL if none exists
23614 * This gets the internal image object inside photocam. Do not modify it. It
23615 * is for inspection only, and hooking callbacks to. Nothing else. It may be
23616 * deleted at any time as well.
23618 EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23621 * @brief Set the photocam scrolling bouncing.
23623 * @param obj The photocam object
23624 * @param h_bounce bouncing for horizontal
23625 * @param v_bounce bouncing for vertical
23627 EAPI void elm_photocam_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
23630 * @brief Get the photocam scrolling bouncing.
23632 * @param obj The photocam object
23633 * @param h_bounce bouncing for horizontal
23634 * @param v_bounce bouncing for vertical
23636 * @see elm_photocam_bounce_set()
23638 EAPI void elm_photocam_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
23645 * @defgroup Map Map
23646 * @ingroup Elementary
23648 * @image html img/widget/map/preview-00.png
23649 * @image latex img/widget/map/preview-00.eps
23651 * This is a widget specifically for displaying a map. It uses basically
23652 * OpenStreetMap provider http://www.openstreetmap.org/,
23653 * but custom providers can be added.
23655 * It supports some basic but yet nice features:
23656 * @li zoom and scroll
23657 * @li markers with content to be displayed when user clicks over it
23658 * @li group of markers
23661 * Smart callbacks one can listen to:
23663 * - "clicked" - This is called when a user has clicked the map without
23665 * - "press" - This is called when a user has pressed down on the map.
23666 * - "longpressed" - This is called when a user has pressed down on the map
23667 * for a long time without dragging around.
23668 * - "clicked,double" - This is called when a user has double-clicked
23670 * - "load,detail" - Map detailed data load begins.
23671 * - "loaded,detail" - This is called when all currently visible parts of
23672 * the map are loaded.
23673 * - "zoom,start" - Zoom animation started.
23674 * - "zoom,stop" - Zoom animation stopped.
23675 * - "zoom,change" - Zoom changed when using an auto zoom mode.
23676 * - "scroll" - the content has been scrolled (moved).
23677 * - "scroll,anim,start" - scrolling animation has started.
23678 * - "scroll,anim,stop" - scrolling animation has stopped.
23679 * - "scroll,drag,start" - dragging the contents around has started.
23680 * - "scroll,drag,stop" - dragging the contents around has stopped.
23681 * - "downloaded" - This is called when all currently required map images
23683 * - "route,load" - This is called when route request begins.
23684 * - "route,loaded" - This is called when route request ends.
23685 * - "name,load" - This is called when name request begins.
23686 * - "name,loaded- This is called when name request ends.
23688 * Available style for map widget:
23691 * Available style for markers:
23696 * Available style for marker bubble:
23699 * List of examples:
23700 * @li @ref map_example_01
23701 * @li @ref map_example_02
23702 * @li @ref map_example_03
23711 * @enum _Elm_Map_Zoom_Mode
23712 * @typedef Elm_Map_Zoom_Mode
23714 * Set map's zoom behavior. It can be set to manual or automatic.
23716 * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
23718 * Values <b> don't </b> work as bitmask, only one can be choosen.
23720 * @note Valid sizes are 2^zoom, consequently the map may be smaller
23721 * than the scroller view.
23723 * @see elm_map_zoom_mode_set()
23724 * @see elm_map_zoom_mode_get()
23728 typedef enum _Elm_Map_Zoom_Mode
23730 ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controlled manually by elm_map_zoom_set(). It's set by default. */
23731 ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
23732 ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
23733 ELM_MAP_ZOOM_MODE_LAST
23734 } Elm_Map_Zoom_Mode;
23737 * @enum _Elm_Map_Route_Sources
23738 * @typedef Elm_Map_Route_Sources
23740 * Set route service to be used. By default used source is
23741 * #ELM_MAP_ROUTE_SOURCE_YOURS.
23743 * @see elm_map_route_source_set()
23744 * @see elm_map_route_source_get()
23748 typedef enum _Elm_Map_Route_Sources
23750 ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
23751 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. */
23752 ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
23753 ELM_MAP_ROUTE_SOURCE_LAST
23754 } Elm_Map_Route_Sources;
23756 typedef enum _Elm_Map_Name_Sources
23758 ELM_MAP_NAME_SOURCE_NOMINATIM,
23759 ELM_MAP_NAME_SOURCE_LAST
23760 } Elm_Map_Name_Sources;
23763 * @enum _Elm_Map_Route_Type
23764 * @typedef Elm_Map_Route_Type
23766 * Set type of transport used on route.
23768 * @see elm_map_route_add()
23772 typedef enum _Elm_Map_Route_Type
23774 ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
23775 ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
23776 ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
23777 ELM_MAP_ROUTE_TYPE_LAST
23778 } Elm_Map_Route_Type;
23781 * @enum _Elm_Map_Route_Method
23782 * @typedef Elm_Map_Route_Method
23784 * Set the routing method, what should be priorized, time or distance.
23786 * @see elm_map_route_add()
23790 typedef enum _Elm_Map_Route_Method
23792 ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
23793 ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
23794 ELM_MAP_ROUTE_METHOD_LAST
23795 } Elm_Map_Route_Method;
23797 typedef enum _Elm_Map_Name_Method
23799 ELM_MAP_NAME_METHOD_SEARCH,
23800 ELM_MAP_NAME_METHOD_REVERSE,
23801 ELM_MAP_NAME_METHOD_LAST
23802 } Elm_Map_Name_Method;
23804 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(). */
23805 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(). */
23806 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(). */
23807 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(). */
23808 typedef struct _Elm_Map_Name Elm_Map_Name; /**< A handle for specific coordinates. */
23809 typedef struct _Elm_Map_Track Elm_Map_Track;
23811 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. */
23812 typedef void (*ElmMapMarkerDelFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
23813 typedef Evas_Object *(*ElmMapMarkerIconGetFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
23814 typedef Evas_Object *(*ElmMapGroupIconGetFunc) (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
23816 typedef char *(*ElmMapModuleSourceFunc) (void);
23817 typedef int (*ElmMapModuleZoomMinFunc) (void);
23818 typedef int (*ElmMapModuleZoomMaxFunc) (void);
23819 typedef char *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
23820 typedef int (*ElmMapModuleRouteSourceFunc) (void);
23821 typedef char *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
23822 typedef char *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
23823 typedef Eina_Bool (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
23824 typedef Eina_Bool (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
23827 * Add a new map widget to the given parent Elementary (container) object.
23829 * @param parent The parent object.
23830 * @return a new map widget handle or @c NULL, on errors.
23832 * This function inserts a new map widget on the canvas.
23836 EAPI Evas_Object *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23839 * Set the zoom level of the map.
23841 * @param obj The map object.
23842 * @param zoom The zoom level to set.
23844 * This sets the zoom level.
23846 * It will respect limits defined by elm_map_source_zoom_min_set() and
23847 * elm_map_source_zoom_max_set().
23849 * By default these values are 0 (world map) and 18 (maximum zoom).
23851 * This function should be used when zoom mode is set to
23852 * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
23853 * with elm_map_zoom_mode_set().
23855 * @see elm_map_zoom_mode_set().
23856 * @see elm_map_zoom_get().
23860 EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23863 * Get the zoom level of the map.
23865 * @param obj The map object.
23866 * @return The current zoom level.
23868 * This returns the current zoom level of the map object.
23870 * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
23871 * (which is the default), the zoom level may be changed at any time by the
23872 * map object itself to account for map size and map viewport size.
23874 * @see elm_map_zoom_set() for details.
23878 EAPI int elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23881 * Set the zoom mode used by the map object.
23883 * @param obj The map object.
23884 * @param mode The zoom mode of the map, being it one of
23885 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
23886 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
23888 * This sets the zoom mode to manual or one of the automatic levels.
23889 * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
23890 * elm_map_zoom_set() and will stay at that level until changed by code
23891 * or until zoom mode is changed. This is the default mode.
23893 * The Automatic modes will allow the map object to automatically
23894 * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
23895 * adjust zoom so the map fits inside the scroll frame with no pixels
23896 * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
23897 * ensure no pixels within the frame are left unfilled. Do not forget that
23898 * the valid sizes are 2^zoom, consequently the map may be smaller than
23899 * the scroller view.
23901 * @see elm_map_zoom_set()
23905 EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
23908 * Get the zoom mode used by the map object.
23910 * @param obj The map object.
23911 * @return The zoom mode of the map, being it one of
23912 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
23913 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
23915 * This function returns the current zoom mode used by the map object.
23917 * @see elm_map_zoom_mode_set() for more details.
23921 EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23924 * Get the current coordinates of the map.
23926 * @param obj The map object.
23927 * @param lon Pointer where to store longitude.
23928 * @param lat Pointer where to store latitude.
23930 * This gets the current center coordinates of the map object. It can be
23931 * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
23933 * @see elm_map_geo_region_bring_in()
23934 * @see elm_map_geo_region_show()
23938 EAPI void elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
23941 * Animatedly bring in given coordinates to the center of the map.
23943 * @param obj The map object.
23944 * @param lon Longitude to center at.
23945 * @param lat Latitude to center at.
23947 * This causes map to jump to the given @p lat and @p lon coordinates
23948 * and show it (by scrolling) in the center of the viewport, if it is not
23949 * already centered. This will use animation to do so and take a period
23950 * of time to complete.
23952 * @see elm_map_geo_region_show() for a function to avoid animation.
23953 * @see elm_map_geo_region_get()
23957 EAPI void elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23960 * Show the given coordinates at the center of the map, @b immediately.
23962 * @param obj The map object.
23963 * @param lon Longitude to center at.
23964 * @param lat Latitude to center at.
23966 * This causes map to @b redraw its viewport's contents to the
23967 * region contining the given @p lat and @p lon, that will be moved to the
23968 * center of the map.
23970 * @see elm_map_geo_region_bring_in() for a function to move with animation.
23971 * @see elm_map_geo_region_get()
23975 EAPI void elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23978 * Pause or unpause the map.
23980 * @param obj The map object.
23981 * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
23984 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
23987 * The default is off.
23989 * This will stop zooming using animation, changing zoom levels will
23990 * change instantly. This will stop any existing animations that are running.
23992 * @see elm_map_paused_get()
23996 EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
23999 * Get a value whether map is paused or not.
24001 * @param obj The map object.
24002 * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
24003 * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
24005 * This gets the current paused state for the map object.
24007 * @see elm_map_paused_set() for details.
24011 EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24014 * Set to show markers during zoom level changes or not.
24016 * @param obj The map object.
24017 * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
24020 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
24023 * The default is off.
24025 * This will stop zooming using animation, changing zoom levels will
24026 * change instantly. This will stop any existing animations that are running.
24028 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
24031 * The default is off.
24033 * Enabling it will force the map to stop displaying the markers during
24034 * zoom level changes. Set to on if you have a large number of markers.
24036 * @see elm_map_paused_markers_get()
24040 EAPI void elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
24043 * Get a value whether markers will be displayed on zoom level changes or not
24045 * @param obj The map object.
24046 * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
24047 * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
24049 * This gets the current markers paused state for the map object.
24051 * @see elm_map_paused_markers_set() for details.
24055 EAPI Eina_Bool elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24058 * Get the information of downloading status.
24060 * @param obj The map object.
24061 * @param try_num Pointer where to store number of tiles being downloaded.
24062 * @param finish_num Pointer where to store number of tiles successfully
24065 * This gets the current downloading status for the map object, the number
24066 * of tiles being downloaded and the number of tiles already downloaded.
24070 EAPI void elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
24073 * Convert a pixel coordinate (x,y) into a geographic coordinate
24074 * (longitude, latitude).
24076 * @param obj The map object.
24077 * @param x the coordinate.
24078 * @param y the coordinate.
24079 * @param size the size in pixels of the map.
24080 * The map is a square and generally his size is : pow(2.0, zoom)*256.
24081 * @param lon Pointer where to store the longitude that correspond to x.
24082 * @param lat Pointer where to store the latitude that correspond to y.
24084 * @note Origin pixel point is the top left corner of the viewport.
24085 * Map zoom and size are taken on account.
24087 * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
24091 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);
24094 * Convert a geographic coordinate (longitude, latitude) into a pixel
24095 * coordinate (x, y).
24097 * @param obj The map object.
24098 * @param lon the longitude.
24099 * @param lat the latitude.
24100 * @param size the size in pixels of the map. The map is a square
24101 * and generally his size is : pow(2.0, zoom)*256.
24102 * @param x Pointer where to store the horizontal pixel coordinate that
24103 * correspond to the longitude.
24104 * @param y Pointer where to store the vertical pixel coordinate that
24105 * correspond to the latitude.
24107 * @note Origin pixel point is the top left corner of the viewport.
24108 * Map zoom and size are taken on account.
24110 * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
24114 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);
24117 * Convert a geographic coordinate (longitude, latitude) into a name
24120 * @param obj The map object.
24121 * @param lon the longitude.
24122 * @param lat the latitude.
24123 * @return name A #Elm_Map_Name handle for this coordinate.
24125 * To get the string for this address, elm_map_name_address_get()
24128 * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
24132 EAPI Elm_Map_Name *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
24135 * Convert a name (address) into a geographic coordinate
24136 * (longitude, latitude).
24138 * @param obj The map object.
24139 * @param name The address.
24140 * @return name A #Elm_Map_Name handle for this address.
24142 * To get the longitude and latitude, elm_map_name_region_get()
24145 * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
24149 EAPI Elm_Map_Name *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
24152 * Convert a pixel coordinate into a rotated pixel coordinate.
24154 * @param obj The map object.
24155 * @param x horizontal coordinate of the point to rotate.
24156 * @param y vertical coordinate of the point to rotate.
24157 * @param cx rotation's center horizontal position.
24158 * @param cy rotation's center vertical position.
24159 * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
24160 * @param xx Pointer where to store rotated x.
24161 * @param yy Pointer where to store rotated y.
24165 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);
24168 * Add a new marker to the map object.
24170 * @param obj The map object.
24171 * @param lon The longitude of the marker.
24172 * @param lat The latitude of the marker.
24173 * @param clas The class, to use when marker @b isn't grouped to others.
24174 * @param clas_group The class group, to use when marker is grouped to others
24175 * @param data The data passed to the callbacks.
24177 * @return The created marker or @c NULL upon failure.
24179 * A marker will be created and shown in a specific point of the map, defined
24180 * by @p lon and @p lat.
24182 * It will be displayed using style defined by @p class when this marker
24183 * is displayed alone (not grouped). A new class can be created with
24184 * elm_map_marker_class_new().
24186 * If the marker is grouped to other markers, it will be displayed with
24187 * style defined by @p class_group. Markers with the same group are grouped
24188 * if they are close. A new group class can be created with
24189 * elm_map_marker_group_class_new().
24191 * Markers created with this method can be deleted with
24192 * elm_map_marker_remove().
24194 * A marker can have associated content to be displayed by a bubble,
24195 * when a user click over it, as well as an icon. These objects will
24196 * be fetch using class' callback functions.
24198 * @see elm_map_marker_class_new()
24199 * @see elm_map_marker_group_class_new()
24200 * @see elm_map_marker_remove()
24204 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);
24207 * Set the maximum numbers of markers' content to be displayed in a group.
24209 * @param obj The map object.
24210 * @param max The maximum numbers of items displayed in a bubble.
24212 * A bubble will be displayed when the user clicks over the group,
24213 * and will place the content of markers that belong to this group
24216 * A group can have a long list of markers, consequently the creation
24217 * of the content of the bubble can be very slow.
24219 * In order to avoid this, a maximum number of items is displayed
24222 * By default this number is 30.
24224 * Marker with the same group class are grouped if they are close.
24226 * @see elm_map_marker_add()
24230 EAPI void elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
24233 * Remove a marker from the map.
24235 * @param marker The marker to remove.
24237 * @see elm_map_marker_add()
24241 EAPI void elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24244 * Get the current coordinates of the marker.
24246 * @param marker marker.
24247 * @param lat Pointer where to store the marker's latitude.
24248 * @param lon Pointer where to store the marker's longitude.
24250 * These values are set when adding markers, with function
24251 * elm_map_marker_add().
24253 * @see elm_map_marker_add()
24257 EAPI void elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
24260 * Animatedly bring in given marker to the center of the map.
24262 * @param marker The marker to center at.
24264 * This causes map to jump to the given @p marker's coordinates
24265 * and show it (by scrolling) in the center of the viewport, if it is not
24266 * already centered. This will use animation to do so and take a period
24267 * of time to complete.
24269 * @see elm_map_marker_show() for a function to avoid animation.
24270 * @see elm_map_marker_region_get()
24274 EAPI void elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24277 * Show the given marker at the center of the map, @b immediately.
24279 * @param marker The marker to center at.
24281 * This causes map to @b redraw its viewport's contents to the
24282 * region contining the given @p marker's coordinates, that will be
24283 * moved to the center of the map.
24285 * @see elm_map_marker_bring_in() for a function to move with animation.
24286 * @see elm_map_markers_list_show() if more than one marker need to be
24288 * @see elm_map_marker_region_get()
24292 EAPI void elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24295 * Move and zoom the map to display a list of markers.
24297 * @param markers A list of #Elm_Map_Marker handles.
24299 * The map will be centered on the center point of the markers in the list.
24300 * Then the map will be zoomed in order to fit the markers using the maximum
24301 * zoom which allows display of all the markers.
24303 * @warning All the markers should belong to the same map object.
24305 * @see elm_map_marker_show() to show a single marker.
24306 * @see elm_map_marker_bring_in()
24310 EAPI void elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
24313 * Get the Evas object returned by the ElmMapMarkerGetFunc callback
24315 * @param marker The marker wich content should be returned.
24316 * @return Return the evas object if it exists, else @c NULL.
24318 * To set callback function #ElmMapMarkerGetFunc for the marker class,
24319 * elm_map_marker_class_get_cb_set() should be used.
24321 * This content is what will be inside the bubble that will be displayed
24322 * when an user clicks over the marker.
24324 * This returns the actual Evas object used to be placed inside
24325 * the bubble. This may be @c NULL, as it may
24326 * not have been created or may have been deleted, at any time, by
24327 * the map. <b>Do not modify this object</b> (move, resize,
24328 * show, hide, etc.), as the map is controlling it. This
24329 * function is for querying, emitting custom signals or hooking
24330 * lower level callbacks for events on that object. Do not delete
24331 * this object under any circumstances.
24335 EAPI Evas_Object *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24338 * Update the marker
24340 * @param marker The marker to be updated.
24342 * If a content is set to this marker, it will call function to delete it,
24343 * #ElmMapMarkerDelFunc, and then will fetch the content again with
24344 * #ElmMapMarkerGetFunc.
24346 * These functions are set for the marker class with
24347 * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
24351 EAPI void elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
24354 * Close all the bubbles opened by the user.
24356 * @param obj The map object.
24358 * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
24359 * when the user clicks on a marker.
24361 * This functions is set for the marker class with
24362 * elm_map_marker_class_get_cb_set().
24366 EAPI void elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
24369 * Create a new group class.
24371 * @param obj The map object.
24372 * @return Returns the new group class.
24374 * Each marker must be associated to a group class. Markers in the same
24375 * group are grouped if they are close.
24377 * The group class defines the style of the marker when a marker is grouped
24378 * to others markers. When it is alone, another class will be used.
24380 * A group class will need to be provided when creating a marker with
24381 * elm_map_marker_add().
24383 * Some properties and functions can be set by class, as:
24384 * - style, with elm_map_group_class_style_set()
24385 * - data - to be associated to the group class. It can be set using
24386 * elm_map_group_class_data_set().
24387 * - min zoom to display markers, set with
24388 * elm_map_group_class_zoom_displayed_set().
24389 * - max zoom to group markers, set using
24390 * elm_map_group_class_zoom_grouped_set().
24391 * - visibility - set if markers will be visible or not, set with
24392 * elm_map_group_class_hide_set().
24393 * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
24394 * It can be set using elm_map_group_class_icon_cb_set().
24396 * @see elm_map_marker_add()
24397 * @see elm_map_group_class_style_set()
24398 * @see elm_map_group_class_data_set()
24399 * @see elm_map_group_class_zoom_displayed_set()
24400 * @see elm_map_group_class_zoom_grouped_set()
24401 * @see elm_map_group_class_hide_set()
24402 * @see elm_map_group_class_icon_cb_set()
24406 EAPI Elm_Map_Group_Class *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
24409 * Set the marker's style of a group class.
24411 * @param clas The group class.
24412 * @param style The style to be used by markers.
24414 * Each marker must be associated to a group class, and will use the style
24415 * defined by such class when grouped to other markers.
24417 * The following styles are provided by default theme:
24418 * @li @c radio - blue circle
24419 * @li @c radio2 - green circle
24422 * @see elm_map_group_class_new() for more details.
24423 * @see elm_map_marker_add()
24427 EAPI void elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
24430 * Set the icon callback function of a group class.
24432 * @param clas The group class.
24433 * @param icon_get The callback function that will return the icon.
24435 * Each marker must be associated to a group class, and it can display a
24436 * custom icon. The function @p icon_get must return this icon.
24438 * @see elm_map_group_class_new() for more details.
24439 * @see elm_map_marker_add()
24443 EAPI void elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
24446 * Set the data associated to the group class.
24448 * @param clas The group class.
24449 * @param data The new user data.
24451 * This data will be passed for callback functions, like icon get callback,
24452 * that can be set with elm_map_group_class_icon_cb_set().
24454 * If a data was previously set, the object will lose the pointer for it,
24455 * so if needs to be freed, you must do it yourself.
24457 * @see elm_map_group_class_new() for more details.
24458 * @see elm_map_group_class_icon_cb_set()
24459 * @see elm_map_marker_add()
24463 EAPI void elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
24466 * Set the minimum zoom from where the markers are displayed.
24468 * @param clas The group class.
24469 * @param zoom The minimum zoom.
24471 * Markers only will be displayed when the map is displayed at @p zoom
24474 * @see elm_map_group_class_new() for more details.
24475 * @see elm_map_marker_add()
24479 EAPI void elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
24482 * Set the zoom from where the markers are no more grouped.
24484 * @param clas The group class.
24485 * @param zoom The maximum zoom.
24487 * Markers only will be grouped when the map is displayed at
24488 * less than @p zoom.
24490 * @see elm_map_group_class_new() for more details.
24491 * @see elm_map_marker_add()
24495 EAPI void elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
24498 * Set if the markers associated to the group class @clas are hidden or not.
24500 * @param clas The group class.
24501 * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
24504 * If @p hide is @c EINA_TRUE the markers will be hidden, but default
24509 EAPI void elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
24512 * Create a new marker class.
24514 * @param obj The map object.
24515 * @return Returns the new group class.
24517 * Each marker must be associated to a class.
24519 * The marker class defines the style of the marker when a marker is
24520 * displayed alone, i.e., not grouped to to others markers. When grouped
24521 * it will use group class style.
24523 * A marker class will need to be provided when creating a marker with
24524 * elm_map_marker_add().
24526 * Some properties and functions can be set by class, as:
24527 * - style, with elm_map_marker_class_style_set()
24528 * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
24529 * It can be set using elm_map_marker_class_icon_cb_set().
24530 * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
24531 * Set using elm_map_marker_class_get_cb_set().
24532 * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
24533 * Set using elm_map_marker_class_del_cb_set().
24535 * @see elm_map_marker_add()
24536 * @see elm_map_marker_class_style_set()
24537 * @see elm_map_marker_class_icon_cb_set()
24538 * @see elm_map_marker_class_get_cb_set()
24539 * @see elm_map_marker_class_del_cb_set()
24543 EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
24546 * Set the marker's style of a marker class.
24548 * @param clas The marker class.
24549 * @param style The style to be used by markers.
24551 * Each marker must be associated to a marker class, and will use the style
24552 * defined by such class when alone, i.e., @b not grouped to other markers.
24554 * The following styles are provided by default theme:
24559 * @see elm_map_marker_class_new() for more details.
24560 * @see elm_map_marker_add()
24564 EAPI void elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
24567 * Set the icon callback function of a marker class.
24569 * @param clas The marker class.
24570 * @param icon_get The callback function that will return the icon.
24572 * Each marker must be associated to a marker class, and it can display a
24573 * custom icon. The function @p icon_get must return this icon.
24575 * @see elm_map_marker_class_new() for more details.
24576 * @see elm_map_marker_add()
24580 EAPI void elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
24583 * Set the bubble content callback function of a marker class.
24585 * @param clas The marker class.
24586 * @param get The callback function that will return the content.
24588 * Each marker must be associated to a marker class, and it can display a
24589 * a content on a bubble that opens when the user click over the marker.
24590 * The function @p get must return this content object.
24592 * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
24595 * @see elm_map_marker_class_new() for more details.
24596 * @see elm_map_marker_class_del_cb_set()
24597 * @see elm_map_marker_add()
24601 EAPI void elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
24604 * Set the callback function used to delete bubble content of a marker class.
24606 * @param clas The marker class.
24607 * @param del The callback function that will delete the content.
24609 * Each marker must be associated to a marker class, and it can display a
24610 * a content on a bubble that opens when the user click over the marker.
24611 * The function to return such content can be set with
24612 * elm_map_marker_class_get_cb_set().
24614 * If this content must be freed, a callback function need to be
24615 * set for that task with this function.
24617 * If this callback is defined it will have to delete (or not) the
24618 * object inside, but if the callback is not defined the object will be
24619 * destroyed with evas_object_del().
24621 * @see elm_map_marker_class_new() for more details.
24622 * @see elm_map_marker_class_get_cb_set()
24623 * @see elm_map_marker_add()
24627 EAPI void elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
24630 * Get the list of available sources.
24632 * @param obj The map object.
24633 * @return The source names list.
24635 * It will provide a list with all available sources, that can be set as
24636 * current source with elm_map_source_name_set(), or get with
24637 * elm_map_source_name_get().
24639 * Available sources:
24645 * @see elm_map_source_name_set() for more details.
24646 * @see elm_map_source_name_get()
24650 EAPI const char **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24653 * Set the source of the map.
24655 * @param obj The map object.
24656 * @param source The source to be used.
24658 * Map widget retrieves images that composes the map from a web service.
24659 * This web service can be set with this method.
24661 * A different service can return a different maps with different
24662 * information and it can use different zoom values.
24664 * The @p source_name need to match one of the names provided by
24665 * elm_map_source_names_get().
24667 * The current source can be get using elm_map_source_name_get().
24669 * @see elm_map_source_names_get()
24670 * @see elm_map_source_name_get()
24675 EAPI void elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
24678 * Get the name of currently used source.
24680 * @param obj The map object.
24681 * @return Returns the name of the source in use.
24683 * @see elm_map_source_name_set() for more details.
24687 EAPI const char *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24690 * Set the source of the route service to be used by the map.
24692 * @param obj The map object.
24693 * @param source The route service to be used, being it one of
24694 * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
24695 * and #ELM_MAP_ROUTE_SOURCE_ORS.
24697 * Each one has its own algorithm, so the route retrieved may
24698 * differ depending on the source route. Now, only the default is working.
24700 * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
24701 * http://www.yournavigation.org/.
24703 * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
24704 * assumptions. Its routing core is based on Contraction Hierarchies.
24706 * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
24708 * @see elm_map_route_source_get().
24712 EAPI void elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
24715 * Get the current route source.
24717 * @param obj The map object.
24718 * @return The source of the route service used by the map.
24720 * @see elm_map_route_source_set() for details.
24724 EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24727 * Set the minimum zoom of the source.
24729 * @param obj The map object.
24730 * @param zoom New minimum zoom value to be used.
24732 * By default, it's 0.
24736 EAPI void elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
24739 * Get the minimum zoom of the source.
24741 * @param obj The map object.
24742 * @return Returns the minimum zoom of the source.
24744 * @see elm_map_source_zoom_min_set() for details.
24748 EAPI int elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24751 * Set the maximum zoom of the source.
24753 * @param obj The map object.
24754 * @param zoom New maximum zoom value to be used.
24756 * By default, it's 18.
24760 EAPI void elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
24763 * Get the maximum zoom of the source.
24765 * @param obj The map object.
24766 * @return Returns the maximum zoom of the source.
24768 * @see elm_map_source_zoom_min_set() for details.
24772 EAPI int elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24775 * Set the user agent used by the map object to access routing services.
24777 * @param obj The map object.
24778 * @param user_agent The user agent to be used by the map.
24780 * User agent is a client application implementing a network protocol used
24781 * in communications within a clientāserver distributed computing system
24783 * The @p user_agent identification string will transmitted in a header
24784 * field @c User-Agent.
24786 * @see elm_map_user_agent_get()
24790 EAPI void elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
24793 * Get the user agent used by the map object.
24795 * @param obj The map object.
24796 * @return The user agent identification string used by the map.
24798 * @see elm_map_user_agent_set() for details.
24802 EAPI const char *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24805 * Add a new route to the map object.
24807 * @param obj The map object.
24808 * @param type The type of transport to be considered when tracing a route.
24809 * @param method The routing method, what should be priorized.
24810 * @param flon The start longitude.
24811 * @param flat The start latitude.
24812 * @param tlon The destination longitude.
24813 * @param tlat The destination latitude.
24815 * @return The created route or @c NULL upon failure.
24817 * A route will be traced by point on coordinates (@p flat, @p flon)
24818 * to point on coordinates (@p tlat, @p tlon), using the route service
24819 * set with elm_map_route_source_set().
24821 * It will take @p type on consideration to define the route,
24822 * depending if the user will be walking or driving, the route may vary.
24823 * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
24824 * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
24826 * Another parameter is what the route should priorize, the minor distance
24827 * or the less time to be spend on the route. So @p method should be one
24828 * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
24830 * Routes created with this method can be deleted with
24831 * elm_map_route_remove(), colored with elm_map_route_color_set(),
24832 * and distance can be get with elm_map_route_distance_get().
24834 * @see elm_map_route_remove()
24835 * @see elm_map_route_color_set()
24836 * @see elm_map_route_distance_get()
24837 * @see elm_map_route_source_set()
24841 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);
24844 * Remove a route from the map.
24846 * @param route The route to remove.
24848 * @see elm_map_route_add()
24852 EAPI void elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24855 * Set the route color.
24857 * @param route The route object.
24858 * @param r Red channel value, from 0 to 255.
24859 * @param g Green channel value, from 0 to 255.
24860 * @param b Blue channel value, from 0 to 255.
24861 * @param a Alpha channel value, from 0 to 255.
24863 * It uses an additive color model, so each color channel represents
24864 * how much of each primary colors must to be used. 0 represents
24865 * ausence of this color, so if all of the three are set to 0,
24866 * the color will be black.
24868 * These component values should be integers in the range 0 to 255,
24869 * (single 8-bit byte).
24871 * This sets the color used for the route. By default, it is set to
24872 * solid red (r = 255, g = 0, b = 0, a = 255).
24874 * For alpha channel, 0 represents completely transparent, and 255, opaque.
24876 * @see elm_map_route_color_get()
24880 EAPI void elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24883 * Get the route color.
24885 * @param route The route object.
24886 * @param r Pointer where to store the red channel value.
24887 * @param g Pointer where to store the green channel value.
24888 * @param b Pointer where to store the blue channel value.
24889 * @param a Pointer where to store the alpha channel value.
24891 * @see elm_map_route_color_set() for details.
24895 EAPI void elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24898 * Get the route distance in kilometers.
24900 * @param route The route object.
24901 * @return The distance of route (unit : km).
24905 EAPI double elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24908 * Get the information of route nodes.
24910 * @param route The route object.
24911 * @return Returns a string with the nodes of route.
24915 EAPI const char *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24918 * Get the information of route waypoint.
24920 * @param route the route object.
24921 * @return Returns a string with information about waypoint of route.
24925 EAPI const char *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
24928 * Get the address of the name.
24930 * @param name The name handle.
24931 * @return Returns the address string of @p name.
24933 * This gets the coordinates of the @p name, created with one of the
24934 * conversion functions.
24936 * @see elm_map_utils_convert_name_into_coord()
24937 * @see elm_map_utils_convert_coord_into_name()
24941 EAPI const char *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
24944 * Get the current coordinates of the name.
24946 * @param name The name handle.
24947 * @param lat Pointer where to store the latitude.
24948 * @param lon Pointer where to store The longitude.
24950 * This gets the coordinates of the @p name, created with one of the
24951 * conversion functions.
24953 * @see elm_map_utils_convert_name_into_coord()
24954 * @see elm_map_utils_convert_coord_into_name()
24958 EAPI void elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
24961 * Remove a name from the map.
24963 * @param name The name to remove.
24965 * Basically the struct handled by @p name will be freed, so convertions
24966 * between address and coordinates will be lost.
24968 * @see elm_map_utils_convert_name_into_coord()
24969 * @see elm_map_utils_convert_coord_into_name()
24973 EAPI void elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
24978 * @param obj The map object.
24979 * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
24980 * @param cx Rotation's center horizontal position.
24981 * @param cy Rotation's center vertical position.
24983 * @see elm_map_rotate_get()
24987 EAPI void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
24990 * Get the rotate degree of the map
24992 * @param obj The map object
24993 * @param degree Pointer where to store degrees from 0.0 to 360.0
24994 * to rotate arount Z axis.
24995 * @param cx Pointer where to store rotation's center horizontal position.
24996 * @param cy Pointer where to store rotation's center vertical position.
24998 * @see elm_map_rotate_set() to set map rotation.
25002 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);
25005 * Enable or disable mouse wheel to be used to zoom in / out the map.
25007 * @param obj The map object.
25008 * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
25011 * Mouse wheel can be used for the user to zoom in or zoom out the map.
25013 * It's disabled by default.
25015 * @see elm_map_wheel_disabled_get()
25019 EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
25022 * Get a value whether mouse wheel is enabled or not.
25024 * @param obj The map object.
25025 * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
25026 * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25028 * Mouse wheel can be used for the user to zoom in or zoom out the map.
25030 * @see elm_map_wheel_disabled_set() for details.
25034 EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25038 * Add a track on the map
25040 * @param obj The map object.
25041 * @param emap The emap route object.
25042 * @return The route object. This is an elm object of type Route.
25044 * @see elm_route_add() for details.
25048 EAPI Evas_Object *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
25052 * Remove a track from the map
25054 * @param obj The map object.
25055 * @param route The track to remove.
25059 EAPI void elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
25066 EAPI Evas_Object *elm_route_add(Evas_Object *parent);
25068 EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
25070 EAPI double elm_route_lon_min_get(Evas_Object *obj);
25071 EAPI double elm_route_lat_min_get(Evas_Object *obj);
25072 EAPI double elm_route_lon_max_get(Evas_Object *obj);
25073 EAPI double elm_route_lat_max_get(Evas_Object *obj);
25077 * @defgroup Panel Panel
25079 * @image html img/widget/panel/preview-00.png
25080 * @image latex img/widget/panel/preview-00.eps
25082 * @brief A panel is a type of animated container that contains subobjects.
25083 * It can be expanded or contracted by clicking the button on it's edge.
25085 * Orientations are as follows:
25086 * @li ELM_PANEL_ORIENT_TOP
25087 * @li ELM_PANEL_ORIENT_LEFT
25088 * @li ELM_PANEL_ORIENT_RIGHT
25090 * Default contents parts of the panel widget that you can use for are:
25091 * @li "default" - A content of the panel
25093 * @ref tutorial_panel shows one way to use this widget.
25096 typedef enum _Elm_Panel_Orient
25098 ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
25099 ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
25100 ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
25101 ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
25102 } Elm_Panel_Orient;
25105 * @brief Adds a panel object
25107 * @param parent The parent object
25109 * @return The panel object, or NULL on failure
25111 EAPI Evas_Object *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25114 * @brief Sets the orientation of the panel
25116 * @param parent The parent object
25117 * @param orient The panel orientation. Can be one of the following:
25118 * @li ELM_PANEL_ORIENT_TOP
25119 * @li ELM_PANEL_ORIENT_LEFT
25120 * @li ELM_PANEL_ORIENT_RIGHT
25122 * Sets from where the panel will (dis)appear.
25124 EAPI void elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
25127 * @brief Get the orientation of the panel.
25129 * @param obj The panel object
25130 * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
25132 EAPI Elm_Panel_Orient elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25135 * @brief Set the content of the panel.
25137 * @param obj The panel object
25138 * @param content The panel content
25140 * Once the content object is set, a previously set one will be deleted.
25141 * If you want to keep that old content object, use the
25142 * elm_panel_content_unset() function.
25144 * @deprecated use elm_object_content_set() instead
25147 EINA_DEPRECATED EAPI void elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25150 * @brief Get the content of the panel.
25152 * @param obj The panel object
25153 * @return The content that is being used
25155 * Return the content object which is set for this widget.
25157 * @see elm_panel_content_set()
25159 * @deprecated use elm_object_content_get() instead
25162 EINA_DEPRECATED EAPI Evas_Object *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25165 * @brief Unset the content of the panel.
25167 * @param obj The panel object
25168 * @return The content that was being used
25170 * Unparent and return the content object which was set for this widget.
25172 * @see elm_panel_content_set()
25174 * @deprecated use elm_object_content_unset() instead
25177 EINA_DEPRECATED EAPI Evas_Object *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25180 * @brief Set the state of the panel.
25182 * @param obj The panel object
25183 * @param hidden If true, the panel will run the animation to contract
25185 EAPI void elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
25188 * @brief Get the state of the panel.
25190 * @param obj The panel object
25191 * @param hidden If true, the panel is in the "hide" state
25193 EAPI Eina_Bool elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25196 * @brief Toggle the hidden state of the panel from code
25198 * @param obj The panel object
25200 EAPI void elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
25207 * @defgroup Panes Panes
25208 * @ingroup Elementary
25210 * @image html img/widget/panes/preview-00.png
25211 * @image latex img/widget/panes/preview-00.eps width=\textwidth
25213 * @image html img/panes.png
25214 * @image latex img/panes.eps width=\textwidth
25216 * The panes adds a dragable bar between two contents. When dragged
25217 * this bar will resize contents size.
25219 * Panes can be displayed vertically or horizontally, and contents
25220 * size proportion can be customized (homogeneous by default).
25222 * Smart callbacks one can listen to:
25223 * - "press" - The panes has been pressed (button wasn't released yet).
25224 * - "unpressed" - The panes was released after being pressed.
25225 * - "clicked" - The panes has been clicked>
25226 * - "clicked,double" - The panes has been double clicked
25228 * Available styles for it:
25231 * Default contents parts of the panes widget that you can use for are:
25232 * @li "left" - A leftside content of the panes
25233 * @li "right" - A rightside content of the panes
25235 * If panes is displayed vertically, left content will be displayed at
25238 * Here is an example on its usage:
25239 * @li @ref panes_example
25243 * @addtogroup Panes
25248 * Add a new panes widget to the given parent Elementary
25249 * (container) object.
25251 * @param parent The parent object.
25252 * @return a new panes widget handle or @c NULL, on errors.
25254 * This function inserts a new panes widget on the canvas.
25258 EAPI Evas_Object *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25261 * Set the left content of the panes widget.
25263 * @param obj The panes object.
25264 * @param content The new left content object.
25266 * Once the content object is set, a previously set one will be deleted.
25267 * If you want to keep that old content object, use the
25268 * elm_panes_content_left_unset() function.
25270 * If panes is displayed vertically, left content will be displayed at
25273 * @see elm_panes_content_left_get()
25274 * @see elm_panes_content_right_set() to set content on the other side.
25276 * @deprecated use elm_object_part_content_set() instead
25280 EINA_DEPRECATED EAPI void elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25283 * Set the right content of the panes widget.
25285 * @param obj The panes object.
25286 * @param content The new right content object.
25288 * Once the content object is set, a previously set one will be deleted.
25289 * If you want to keep that old content object, use the
25290 * elm_panes_content_right_unset() function.
25292 * If panes is displayed vertically, left content will be displayed at
25295 * @see elm_panes_content_right_get()
25296 * @see elm_panes_content_left_set() to set content on the other side.
25298 * @deprecated use elm_object_part_content_set() instead
25302 EINA_DEPRECATED EAPI void elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25305 * Get the left content of the panes.
25307 * @param obj The panes object.
25308 * @return The left content object that is being used.
25310 * Return the left content object which is set for this widget.
25312 * @see elm_panes_content_left_set() for details.
25314 * @deprecated use elm_object_part_content_get() instead
25318 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25321 * Get the right content of the panes.
25323 * @param obj The panes object
25324 * @return The right content object that is being used
25326 * Return the right content object which is set for this widget.
25328 * @see elm_panes_content_right_set() for details.
25330 * @deprecated use elm_object_part_content_get() instead
25334 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25337 * Unset the left content used for the panes.
25339 * @param obj The panes object.
25340 * @return The left content object that was being used.
25342 * Unparent and return the left content object which was set for this widget.
25344 * @see elm_panes_content_left_set() for details.
25345 * @see elm_panes_content_left_get().
25347 * @deprecated use elm_object_part_content_unset() instead
25351 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25354 * Unset the right content used for the panes.
25356 * @param obj The panes object.
25357 * @return The right content object that was being used.
25359 * Unparent and return the right content object which was set for this
25362 * @see elm_panes_content_right_set() for details.
25363 * @see elm_panes_content_right_get().
25365 * @deprecated use elm_object_part_content_unset() instead
25369 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25372 * Get the size proportion of panes widget's left side.
25374 * @param obj The panes object.
25375 * @return float value between 0.0 and 1.0 representing size proportion
25378 * @see elm_panes_content_left_size_set() for more details.
25382 EAPI double elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25385 * Set the size proportion of panes widget's left side.
25387 * @param obj The panes object.
25388 * @param size Value between 0.0 and 1.0 representing size proportion
25391 * By default it's homogeneous, i.e., both sides have the same size.
25393 * If something different is required, it can be set with this function.
25394 * For example, if the left content should be displayed over
25395 * 75% of the panes size, @p size should be passed as @c 0.75.
25396 * This way, right content will be resized to 25% of panes size.
25398 * If displayed vertically, left content is displayed at top, and
25399 * right content at bottom.
25401 * @note This proportion will change when user drags the panes bar.
25403 * @see elm_panes_content_left_size_get()
25407 EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
25410 * Set the orientation of a given panes widget.
25412 * @param obj The panes object.
25413 * @param horizontal Use @c EINA_TRUE to make @p obj to be
25414 * @b horizontal, @c EINA_FALSE to make it @b vertical.
25416 * Use this function to change how your panes is to be
25417 * disposed: vertically or horizontally.
25419 * By default it's displayed horizontally.
25421 * @see elm_panes_horizontal_get()
25425 EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
25428 * Retrieve the orientation of a given panes widget.
25430 * @param obj The panes object.
25431 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
25432 * @c EINA_FALSE if it's @b vertical (and on errors).
25434 * @see elm_panes_horizontal_set() for more details.
25438 EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25439 EAPI void elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
25440 EAPI Eina_Bool elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25447 * @defgroup Flip Flip
25449 * @image html img/widget/flip/preview-00.png
25450 * @image latex img/widget/flip/preview-00.eps
25452 * This widget holds 2 content objects(Evas_Object): one on the front and one
25453 * on the back. It allows you to flip from front to back and vice-versa using
25454 * various animations.
25456 * If either the front or back contents are not set the flip will treat that
25457 * as transparent. So if you wore to set the front content but not the back,
25458 * and then call elm_flip_go() you would see whatever is below the flip.
25460 * For a list of supported animations see elm_flip_go().
25462 * Signals that you can add callbacks for are:
25463 * "animate,begin" - when a flip animation was started
25464 * "animate,done" - when a flip animation is finished
25466 * @ref tutorial_flip show how to use most of the API.
25470 typedef enum _Elm_Flip_Mode
25472 ELM_FLIP_ROTATE_Y_CENTER_AXIS,
25473 ELM_FLIP_ROTATE_X_CENTER_AXIS,
25474 ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
25475 ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
25476 ELM_FLIP_CUBE_LEFT,
25477 ELM_FLIP_CUBE_RIGHT,
25479 ELM_FLIP_CUBE_DOWN,
25480 ELM_FLIP_PAGE_LEFT,
25481 ELM_FLIP_PAGE_RIGHT,
25485 typedef enum _Elm_Flip_Interaction
25487 ELM_FLIP_INTERACTION_NONE,
25488 ELM_FLIP_INTERACTION_ROTATE,
25489 ELM_FLIP_INTERACTION_CUBE,
25490 ELM_FLIP_INTERACTION_PAGE
25491 } Elm_Flip_Interaction;
25492 typedef enum _Elm_Flip_Direction
25494 ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
25495 ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
25496 ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
25497 ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
25498 } Elm_Flip_Direction;
25501 * @brief Add a new flip to the parent
25503 * @param parent The parent object
25504 * @return The new object or NULL if it cannot be created
25506 EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25509 * @brief Set the front content of the flip widget.
25511 * @param obj The flip object
25512 * @param content The new front content object
25514 * Once the content object is set, a previously set one will be deleted.
25515 * If you want to keep that old content object, use the
25516 * elm_flip_content_front_unset() function.
25518 EAPI void elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25521 * @brief Set the back content of the flip widget.
25523 * @param obj The flip object
25524 * @param content The new back content object
25526 * Once the content object is set, a previously set one will be deleted.
25527 * If you want to keep that old content object, use the
25528 * elm_flip_content_back_unset() function.
25530 EAPI void elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25533 * @brief Get the front content used for the flip
25535 * @param obj The flip object
25536 * @return The front content object that is being used
25538 * Return the front content object which is set for this widget.
25540 EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25543 * @brief Get the back content used for the flip
25545 * @param obj The flip object
25546 * @return The back content object that is being used
25548 * Return the back content object which is set for this widget.
25550 EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25553 * @brief Unset the front content used for the flip
25555 * @param obj The flip object
25556 * @return The front content object that was being used
25558 * Unparent and return the front content object which was set for this widget.
25560 EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25563 * @brief Unset the back content used for the flip
25565 * @param obj The flip object
25566 * @return The back content object that was being used
25568 * Unparent and return the back content object which was set for this widget.
25570 EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25573 * @brief Get flip front visibility state
25575 * @param obj The flip objct
25576 * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
25579 EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25582 * @brief Set flip perspective
25584 * @param obj The flip object
25585 * @param foc The coordinate to set the focus on
25586 * @param x The X coordinate
25587 * @param y The Y coordinate
25589 * @warning This function currently does nothing.
25591 EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
25594 * @brief Runs the flip animation
25596 * @param obj The flip object
25597 * @param mode The mode type
25599 * Flips the front and back contents using the @p mode animation. This
25600 * efectively hides the currently visible content and shows the hidden one.
25602 * There a number of possible animations to use for the flipping:
25603 * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
25604 * around a horizontal axis in the middle of its height, the other content
25605 * is shown as the other side of the flip.
25606 * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
25607 * around a vertical axis in the middle of its width, the other content is
25608 * shown as the other side of the flip.
25609 * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
25610 * around a diagonal axis in the middle of its width, the other content is
25611 * shown as the other side of the flip.
25612 * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
25613 * around a diagonal axis in the middle of its height, the other content is
25614 * shown as the other side of the flip.
25615 * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
25616 * as if the flip was a cube, the other content is show as the right face of
25618 * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
25619 * right as if the flip was a cube, the other content is show as the left
25620 * face of the cube.
25621 * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
25622 * flip was a cube, the other content is show as the bottom face of the cube.
25623 * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
25624 * the flip was a cube, the other content is show as the upper face of the
25626 * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
25627 * if the flip was a book, the other content is shown as the page below that.
25628 * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
25629 * as if the flip was a book, the other content is shown as the page below
25631 * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
25632 * flip was a book, the other content is shown as the page below that.
25633 * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
25634 * flip was a book, the other content is shown as the page below that.
25636 * @image html elm_flip.png
25637 * @image latex elm_flip.eps width=\textwidth
25639 EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
25642 * @brief Set the interactive flip mode
25644 * @param obj The flip object
25645 * @param mode The interactive flip mode to use
25647 * This sets if the flip should be interactive (allow user to click and
25648 * drag a side of the flip to reveal the back page and cause it to flip).
25649 * By default a flip is not interactive. You may also need to set which
25650 * sides of the flip are "active" for flipping and how much space they use
25651 * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
25652 * and elm_flip_interacton_direction_hitsize_set()
25654 * The four avilable mode of interaction are:
25655 * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
25656 * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
25657 * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
25658 * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
25660 * @note ELM_FLIP_INTERACTION_ROTATE won't cause
25661 * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
25662 * happen, those can only be acheived with elm_flip_go();
25664 EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
25667 * @brief Get the interactive flip mode
25669 * @param obj The flip object
25670 * @return The interactive flip mode
25672 * Returns the interactive flip mode set by elm_flip_interaction_set()
25674 EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
25677 * @brief Set which directions of the flip respond to interactive flip
25679 * @param obj The flip object
25680 * @param dir The direction to change
25681 * @param enabled If that direction is enabled or not
25683 * By default all directions are disabled, so you may want to enable the
25684 * desired directions for flipping if you need interactive flipping. You must
25685 * call this function once for each direction that should be enabled.
25687 * @see elm_flip_interaction_set()
25689 EAPI void elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
25692 * @brief Get the enabled state of that flip direction
25694 * @param obj The flip object
25695 * @param dir The direction to check
25696 * @return If that direction is enabled or not
25698 * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
25700 * @see elm_flip_interaction_set()
25702 EAPI Eina_Bool elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
25705 * @brief Set the amount of the flip that is sensitive to interactive flip
25707 * @param obj The flip object
25708 * @param dir The direction to modify
25709 * @param hitsize The amount of that dimension (0.0 to 1.0) to use
25711 * Set the amount of the flip that is sensitive to interactive flip, with 0
25712 * representing no area in the flip and 1 representing the entire flip. There
25713 * is however a consideration to be made in that the area will never be
25714 * smaller than the finger size set(as set in your Elementary configuration).
25716 * @see elm_flip_interaction_set()
25718 EAPI void elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
25721 * @brief Get the amount of the flip that is sensitive to interactive flip
25723 * @param obj The flip object
25724 * @param dir The direction to check
25725 * @return The size set for that direction
25727 * Returns the amount os sensitive area set by
25728 * elm_flip_interacton_direction_hitsize_set().
25730 EAPI double elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
25736 /* scrolledentry */
25737 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25738 EINA_DEPRECATED EAPI void elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
25739 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25740 EINA_DEPRECATED EAPI void elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
25741 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25742 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
25743 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25744 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
25745 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25746 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25747 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
25748 EINA_DEPRECATED EAPI void elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
25749 EINA_DEPRECATED EAPI void elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
25750 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25751 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
25752 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
25753 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
25754 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
25755 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
25756 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
25757 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25758 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25759 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25760 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
25761 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
25762 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
25763 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25764 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25765 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25766 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25767 EINA_DEPRECATED EAPI int elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25768 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
25769 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
25770 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
25771 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25772 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);
25773 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
25774 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25775 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);
25776 EINA_DEPRECATED EAPI void elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
25777 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);
25778 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
25779 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25780 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25781 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
25782 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
25783 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25784 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25785 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
25786 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);
25787 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);
25788 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);
25789 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);
25790 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);
25791 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);
25792 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
25793 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
25794 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
25795 EINA_DEPRECATED EAPI void elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
25796 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25797 EINA_DEPRECATED EAPI void elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
25798 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
25801 * @defgroup Conformant Conformant
25802 * @ingroup Elementary
25804 * @image html img/widget/conformant/preview-00.png
25805 * @image latex img/widget/conformant/preview-00.eps width=\textwidth
25807 * @image html img/conformant.png
25808 * @image latex img/conformant.eps width=\textwidth
25810 * The aim is to provide a widget that can be used in elementary apps to
25811 * account for space taken up by the indicator, virtual keypad & softkey
25812 * windows when running the illume2 module of E17.
25814 * So conformant content will be sized and positioned considering the
25815 * space required for such stuff, and when they popup, as a keyboard
25816 * shows when an entry is selected, conformant content won't change.
25818 * Available styles for it:
25821 * Default contents parts of the conformant widget that you can use for are:
25822 * @li "default" - A content of the conformant
25824 * See how to use this widget in this example:
25825 * @ref conformant_example
25829 * @addtogroup Conformant
25834 * Add a new conformant widget to the given parent Elementary
25835 * (container) object.
25837 * @param parent The parent object.
25838 * @return A new conformant widget handle or @c NULL, on errors.
25840 * This function inserts a new conformant widget on the canvas.
25842 * @ingroup Conformant
25844 EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25847 * Set the content of the conformant widget.
25849 * @param obj The conformant object.
25850 * @param content The content to be displayed by the conformant.
25852 * Content will be sized and positioned considering the space required
25853 * to display a virtual keyboard. So it won't fill all the conformant
25854 * size. This way is possible to be sure that content won't resize
25855 * or be re-positioned after the keyboard is displayed.
25857 * Once the content object is set, a previously set one will be deleted.
25858 * If you want to keep that old content object, use the
25859 * elm_object_content_unset() function.
25861 * @see elm_object_content_unset()
25862 * @see elm_object_content_get()
25864 * @deprecated use elm_object_content_set() instead
25866 * @ingroup Conformant
25868 EINA_DEPRECATED EAPI void elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25871 * Get the content of the conformant widget.
25873 * @param obj The conformant object.
25874 * @return The content that is being used.
25876 * Return the content object which is set for this widget.
25877 * It won't be unparent from conformant. For that, use
25878 * elm_object_content_unset().
25880 * @see elm_object_content_set().
25881 * @see elm_object_content_unset()
25883 * @deprecated use elm_object_content_get() instead
25885 * @ingroup Conformant
25887 EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25890 * Unset the content of the conformant widget.
25892 * @param obj The conformant object.
25893 * @return The content that was being used.
25895 * Unparent and return the content object which was set for this widget.
25897 * @see elm_object_content_set().
25899 * @deprecated use elm_object_content_unset() instead
25901 * @ingroup Conformant
25903 EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25906 * Returns the Evas_Object that represents the content area.
25908 * @param obj The conformant object.
25909 * @return The content area of the widget.
25911 * @ingroup Conformant
25913 EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25920 * @defgroup Mapbuf Mapbuf
25921 * @ingroup Elementary
25923 * @image html img/widget/mapbuf/preview-00.png
25924 * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
25926 * This holds one content object and uses an Evas Map of transformation
25927 * points to be later used with this content. So the content will be
25928 * moved, resized, etc as a single image. So it will improve performance
25929 * when you have a complex interafce, with a lot of elements, and will
25930 * need to resize or move it frequently (the content object and its
25933 * Default contents parts of the mapbuf widget that you can use for are:
25934 * @li "default" - A content of the mapbuf
25936 * To enable map, elm_mapbuf_enabled_set() should be used.
25938 * See how to use this widget in this example:
25939 * @ref mapbuf_example
25943 * @addtogroup Mapbuf
25948 * Add a new mapbuf widget to the given parent Elementary
25949 * (container) object.
25951 * @param parent The parent object.
25952 * @return A new mapbuf widget handle or @c NULL, on errors.
25954 * This function inserts a new mapbuf widget on the canvas.
25958 EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25961 * Set the content of the mapbuf.
25963 * @param obj The mapbuf object.
25964 * @param content The content that will be filled in this mapbuf object.
25966 * Once the content object is set, a previously set one will be deleted.
25967 * If you want to keep that old content object, use the
25968 * elm_mapbuf_content_unset() function.
25970 * To enable map, elm_mapbuf_enabled_set() should be used.
25972 * @deprecated use elm_object_content_set() instead
25976 EINA_DEPRECATED EAPI void elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
25979 * Get the content of the mapbuf.
25981 * @param obj The mapbuf object.
25982 * @return The content that is being used.
25984 * Return the content object which is set for this widget.
25986 * @see elm_mapbuf_content_set() for details.
25988 * @deprecated use elm_object_content_get() instead
25992 EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25995 * Unset the content of the mapbuf.
25997 * @param obj The mapbuf object.
25998 * @return The content that was being used.
26000 * Unparent and return the content object which was set for this widget.
26002 * @see elm_mapbuf_content_set() for details.
26004 * @deprecated use elm_object_content_unset() instead
26008 EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
26011 * Enable or disable the map.
26013 * @param obj The mapbuf object.
26014 * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
26016 * This enables the map that is set or disables it. On enable, the object
26017 * geometry will be saved, and the new geometry will change (position and
26018 * size) to reflect the map geometry set.
26020 * Also, when enabled, alpha and smooth states will be used, so if the
26021 * content isn't solid, alpha should be enabled, for example, otherwise
26022 * a black retangle will fill the content.
26024 * When disabled, the stored map will be freed and geometry prior to
26025 * enabling the map will be restored.
26027 * It's disabled by default.
26029 * @see elm_mapbuf_alpha_set()
26030 * @see elm_mapbuf_smooth_set()
26034 EAPI void elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
26037 * Get a value whether map is enabled or not.
26039 * @param obj The mapbuf object.
26040 * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
26041 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26043 * @see elm_mapbuf_enabled_set() for details.
26047 EAPI Eina_Bool elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26050 * Enable or disable smooth map rendering.
26052 * @param obj The mapbuf object.
26053 * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
26056 * This sets smoothing for map rendering. If the object is a type that has
26057 * its own smoothing settings, then both the smooth settings for this object
26058 * and the map must be turned off.
26060 * By default smooth maps are enabled.
26064 EAPI void elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
26067 * Get a value whether smooth map rendering is enabled or not.
26069 * @param obj The mapbuf object.
26070 * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
26071 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26073 * @see elm_mapbuf_smooth_set() for details.
26077 EAPI Eina_Bool elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26080 * Set or unset alpha flag for map rendering.
26082 * @param obj The mapbuf object.
26083 * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
26086 * This sets alpha flag for map rendering. If the object is a type that has
26087 * its own alpha settings, then this will take precedence. Only image objects
26088 * have this currently. It stops alpha blending of the map area, and is
26089 * useful if you know the object and/or all sub-objects is 100% solid.
26091 * Alpha is enabled by default.
26095 EAPI void elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
26098 * Get a value whether alpha blending is enabled or not.
26100 * @param obj The mapbuf object.
26101 * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
26102 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26104 * @see elm_mapbuf_alpha_set() for details.
26108 EAPI Eina_Bool elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26115 * @defgroup Flipselector Flip Selector
26117 * @image html img/widget/flipselector/preview-00.png
26118 * @image latex img/widget/flipselector/preview-00.eps
26120 * A flip selector is a widget to show a set of @b text items, one
26121 * at a time, with the same sheet switching style as the @ref Clock
26122 * "clock" widget, when one changes the current displaying sheet
26123 * (thus, the "flip" in the name).
26125 * User clicks to flip sheets which are @b held for some time will
26126 * make the flip selector to flip continuosly and automatically for
26127 * the user. The interval between flips will keep growing in time,
26128 * so that it helps the user to reach an item which is distant from
26129 * the current selection.
26131 * Smart callbacks one can register to:
26132 * - @c "selected" - when the widget's selected text item is changed
26133 * - @c "overflowed" - when the widget's current selection is changed
26134 * from the first item in its list to the last
26135 * - @c "underflowed" - when the widget's current selection is changed
26136 * from the last item in its list to the first
26138 * Available styles for it:
26141 * To set/get the label of the flipselector item, you can use
26142 * elm_object_item_text_set/get APIs.
26143 * Once the text is set, a previously set one will be deleted.
26145 * Here is an example on its usage:
26146 * @li @ref flipselector_example
26150 * @addtogroup Flipselector
26155 * Add a new flip selector widget to the given parent Elementary
26156 * (container) widget
26158 * @param parent The parent object
26159 * @return a new flip selector widget handle or @c NULL, on errors
26161 * This function inserts a new flip selector widget on the canvas.
26163 * @ingroup Flipselector
26165 EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26168 * Programmatically select the next item of a flip selector widget
26170 * @param obj The flipselector object
26172 * @note The selection will be animated. Also, if it reaches the
26173 * end of its list of member items, it will continue with the first
26176 * @ingroup Flipselector
26178 EAPI void elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
26181 * Programmatically select the previous item of a flip selector
26184 * @param obj The flipselector object
26186 * @note The selection will be animated. Also, if it reaches the
26187 * beginning of its list of member items, it will continue with the
26188 * last one backwards.
26190 * @ingroup Flipselector
26192 EAPI void elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
26195 * Append a (text) item to a flip selector widget
26197 * @param obj The flipselector object
26198 * @param label The (text) label of the new item
26199 * @param func Convenience callback function to take place when
26201 * @param data Data passed to @p func, above
26202 * @return A handle to the item added or @c NULL, on errors
26204 * The widget's list of labels to show will be appended with the
26205 * given value. If the user wishes so, a callback function pointer
26206 * can be passed, which will get called when this same item is
26209 * @note The current selection @b won't be modified by appending an
26210 * element to the list.
26212 * @note The maximum length of the text label is going to be
26213 * determined <b>by the widget's theme</b>. Strings larger than
26214 * that value are going to be @b truncated.
26216 * @ingroup Flipselector
26218 EAPI Elm_Object_Item *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
26221 * Prepend a (text) item to a flip selector widget
26223 * @param obj The flipselector object
26224 * @param label The (text) label of the new item
26225 * @param func Convenience callback function to take place when
26227 * @param data Data passed to @p func, above
26228 * @return A handle to the item added or @c NULL, on errors
26230 * The widget's list of labels to show will be prepended with the
26231 * given value. If the user wishes so, a callback function pointer
26232 * can be passed, which will get called when this same item is
26235 * @note The current selection @b won't be modified by prepending
26236 * an element to the list.
26238 * @note The maximum length of the text label is going to be
26239 * determined <b>by the widget's theme</b>. Strings larger than
26240 * that value are going to be @b truncated.
26242 * @ingroup Flipselector
26244 EAPI Elm_Object_Item *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
26247 * Get the internal list of items in a given flip selector widget.
26249 * @param obj The flipselector object
26250 * @return The list of items (#Elm_Object_Item as data) or
26251 * @c NULL on errors.
26253 * This list is @b not to be modified in any way and must not be
26254 * freed. Use the list members with functions like
26255 * elm_object_item_text_set(),
26256 * elm_object_item_text_get(),
26257 * elm_flipselector_item_del(),
26258 * elm_flipselector_item_selected_get(),
26259 * elm_flipselector_item_selected_set().
26261 * @warning This list is only valid until @p obj object's internal
26262 * items list is changed. It should be fetched again with another
26263 * call to this function when changes happen.
26265 * @ingroup Flipselector
26267 EAPI const Eina_List *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26270 * Get the first item in the given flip selector widget's list of
26273 * @param obj The flipselector object
26274 * @return The first item or @c NULL, if it has no items (and on
26277 * @see elm_flipselector_item_append()
26278 * @see elm_flipselector_last_item_get()
26280 * @ingroup Flipselector
26282 EAPI Elm_Object_Item *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26285 * Get the last item in the given flip selector widget's list of
26288 * @param obj The flipselector object
26289 * @return The last item or @c NULL, if it has no items (and on
26292 * @see elm_flipselector_item_prepend()
26293 * @see elm_flipselector_first_item_get()
26295 * @ingroup Flipselector
26297 EAPI Elm_Object_Item *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26300 * Get the currently selected item in a flip selector widget.
26302 * @param obj The flipselector object
26303 * @return The selected item or @c NULL, if the widget has no items
26306 * @ingroup Flipselector
26308 EAPI Elm_Object_Item *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26311 * Set whether a given flip selector widget's item should be the
26312 * currently selected one.
26314 * @param it The flip selector item
26315 * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
26317 * This sets whether @p item is or not the selected (thus, under
26318 * display) one. If @p item is different than one under display,
26319 * the latter will be unselected. If the @p item is set to be
26320 * unselected, on the other hand, the @b first item in the widget's
26321 * internal members list will be the new selected one.
26323 * @see elm_flipselector_item_selected_get()
26325 * @ingroup Flipselector
26327 EAPI void elm_flipselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
26330 * Get whether a given flip selector widget's item is the currently
26333 * @param it The flip selector item
26334 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
26337 * @see elm_flipselector_item_selected_set()
26339 * @ingroup Flipselector
26341 EAPI Eina_Bool elm_flipselector_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26344 * Delete a given item from a flip selector widget.
26346 * @param it The item to delete
26348 * @ingroup Flipselector
26350 EAPI void elm_flipselector_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26353 * Get the label of a given flip selector widget's item.
26355 * @param it The item to get label from
26356 * @return The text label of @p item or @c NULL, on errors
26358 * @see elm_object_item_text_set()
26360 * @deprecated see elm_object_item_text_get() instead
26361 * @ingroup Flipselector
26363 EINA_DEPRECATED EAPI const char *elm_flipselector_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26366 * Set the label of a given flip selector widget's item.
26368 * @param it The item to set label on
26369 * @param label The text label string, in UTF-8 encoding
26371 * @see elm_object_item_text_get()
26373 * @deprecated see elm_object_item_text_set() instead
26374 * @ingroup Flipselector
26376 EINA_DEPRECATED EAPI void elm_flipselector_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26379 * Gets the item before @p item in a flip selector widget's
26380 * internal list of items.
26382 * @param it The item to fetch previous from
26383 * @return The item before the @p item, in its parent's list. If
26384 * there is no previous item for @p item or there's an
26385 * error, @c NULL is returned.
26387 * @see elm_flipselector_item_next_get()
26389 * @ingroup Flipselector
26391 EAPI Elm_Object_Item *elm_flipselector_item_prev_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26394 * Gets the item after @p item in a flip selector widget's
26395 * internal list of items.
26397 * @param it The item to fetch next from
26398 * @return The item after the @p item, in its parent's list. If
26399 * there is no next item for @p item or there's an
26400 * error, @c NULL is returned.
26402 * @see elm_flipselector_item_next_get()
26404 * @ingroup Flipselector
26406 EAPI Elm_Object_Item *elm_flipselector_item_next_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26409 * Set the interval on time updates for an user mouse button hold
26410 * on a flip selector widget.
26412 * @param obj The flip selector object
26413 * @param interval The (first) interval value in seconds
26415 * This interval value is @b decreased while the user holds the
26416 * mouse pointer either flipping up or flipping doww a given flip
26419 * This helps the user to get to a given item distant from the
26420 * current one easier/faster, as it will start to flip quicker and
26421 * quicker on mouse button holds.
26423 * The calculation for the next flip interval value, starting from
26424 * the one set with this call, is the previous interval divided by
26425 * 1.05, so it decreases a little bit.
26427 * The default starting interval value for automatic flips is
26430 * @see elm_flipselector_interval_get()
26432 * @ingroup Flipselector
26434 EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
26437 * Get the interval on time updates for an user mouse button hold
26438 * on a flip selector widget.
26440 * @param obj The flip selector object
26441 * @return The (first) interval value, in seconds, set on it
26443 * @see elm_flipselector_interval_set() for more details
26445 * @ingroup Flipselector
26447 EAPI double elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26453 * @addtogroup Calendar
26458 * @enum _Elm_Calendar_Mark_Repeat
26459 * @typedef Elm_Calendar_Mark_Repeat
26461 * Event periodicity, used to define if a mark should be repeated
26462 * @b beyond event's day. It's set when a mark is added.
26464 * So, for a mark added to 13th May with periodicity set to WEEKLY,
26465 * there will be marks every week after this date. Marks will be displayed
26466 * at 13th, 20th, 27th, 3rd June ...
26468 * Values don't work as bitmask, only one can be choosen.
26470 * @see elm_calendar_mark_add()
26472 * @ingroup Calendar
26474 typedef enum _Elm_Calendar_Mark_Repeat
26476 ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
26477 ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
26478 ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
26479 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*/
26480 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. */
26481 } Elm_Calendar_Mark_Repeat;
26483 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(). */
26486 * Add a new calendar widget to the given parent Elementary
26487 * (container) object.
26489 * @param parent The parent object.
26490 * @return a new calendar widget handle or @c NULL, on errors.
26492 * This function inserts a new calendar widget on the canvas.
26494 * @ref calendar_example_01
26496 * @ingroup Calendar
26498 EAPI Evas_Object *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26501 * Get weekdays names displayed by the calendar.
26503 * @param obj The calendar object.
26504 * @return Array of seven strings to be used as weekday names.
26506 * By default, weekdays abbreviations get from system are displayed:
26507 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
26508 * The first string is related to Sunday, the second to Monday...
26510 * @see elm_calendar_weekdays_name_set()
26512 * @ref calendar_example_05
26514 * @ingroup Calendar
26516 EAPI const char **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26519 * Set weekdays names to be displayed by the calendar.
26521 * @param obj The calendar object.
26522 * @param weekdays Array of seven strings to be used as weekday names.
26523 * @warning It must have 7 elements, or it will access invalid memory.
26524 * @warning The strings must be NULL terminated ('@\0').
26526 * By default, weekdays abbreviations get from system are displayed:
26527 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
26529 * The first string should be related to Sunday, the second to Monday...
26531 * The usage should be like this:
26533 * const char *weekdays[] =
26535 * "Sunday", "Monday", "Tuesday", "Wednesday",
26536 * "Thursday", "Friday", "Saturday"
26538 * elm_calendar_weekdays_names_set(calendar, weekdays);
26541 * @see elm_calendar_weekdays_name_get()
26543 * @ref calendar_example_02
26545 * @ingroup Calendar
26547 EAPI void elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
26550 * Set the minimum and maximum values for the year
26552 * @param obj The calendar object
26553 * @param min The minimum year, greater than 1901;
26554 * @param max The maximum year;
26556 * Maximum must be greater than minimum, except if you don't wan't to set
26558 * Default values are 1902 and -1.
26560 * If the maximum year is a negative value, it will be limited depending
26561 * on the platform architecture (year 2037 for 32 bits);
26563 * @see elm_calendar_min_max_year_get()
26565 * @ref calendar_example_03
26567 * @ingroup Calendar
26569 EAPI void elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
26572 * Get the minimum and maximum values for the year
26574 * @param obj The calendar object.
26575 * @param min The minimum year.
26576 * @param max The maximum year.
26578 * Default values are 1902 and -1.
26580 * @see elm_calendar_min_max_year_get() for more details.
26582 * @ref calendar_example_05
26584 * @ingroup Calendar
26586 EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
26589 * Enable or disable day selection
26591 * @param obj The calendar object.
26592 * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
26595 * Enabled by default. If disabled, the user still can select months,
26596 * but not days. Selected days are highlighted on calendar.
26597 * It should be used if you won't need such selection for the widget usage.
26599 * When a day is selected, or month is changed, smart callbacks for
26600 * signal "changed" will be called.
26602 * @see elm_calendar_day_selection_enable_get()
26604 * @ref calendar_example_04
26606 * @ingroup Calendar
26608 EAPI void elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
26611 * Get a value whether day selection is enabled or not.
26613 * @see elm_calendar_day_selection_enable_set() for details.
26615 * @param obj The calendar object.
26616 * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
26617 * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
26619 * @ref calendar_example_05
26621 * @ingroup Calendar
26623 EAPI Eina_Bool elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26627 * Set selected date to be highlighted on calendar.
26629 * @param obj The calendar object.
26630 * @param selected_time A @b tm struct to represent the selected date.
26632 * Set the selected date, changing the displayed month if needed.
26633 * Selected date changes when the user goes to next/previous month or
26634 * select a day pressing over it on calendar.
26636 * @see elm_calendar_selected_time_get()
26638 * @ref calendar_example_04
26640 * @ingroup Calendar
26642 EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
26645 * Get selected date.
26647 * @param obj The calendar object
26648 * @param selected_time A @b tm struct to point to selected date
26649 * @return EINA_FALSE means an error ocurred and returned time shouldn't
26652 * Get date selected by the user or set by function
26653 * elm_calendar_selected_time_set().
26654 * Selected date changes when the user goes to next/previous month or
26655 * select a day pressing over it on calendar.
26657 * @see elm_calendar_selected_time_get()
26659 * @ref calendar_example_05
26661 * @ingroup Calendar
26663 EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
26666 * Set a function to format the string that will be used to display
26669 * @param obj The calendar object
26670 * @param format_function Function to set the month-year string given
26671 * the selected date
26673 * By default it uses strftime with "%B %Y" format string.
26674 * It should allocate the memory that will be used by the string,
26675 * that will be freed by the widget after usage.
26676 * A pointer to the string and a pointer to the time struct will be provided.
26681 * _format_month_year(struct tm *selected_time)
26684 * if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
26685 * return strdup(buf);
26688 * elm_calendar_format_function_set(calendar, _format_month_year);
26691 * @ref calendar_example_02
26693 * @ingroup Calendar
26695 EAPI void elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
26698 * Add a new mark to the calendar
26700 * @param obj The calendar object
26701 * @param mark_type A string used to define the type of mark. It will be
26702 * emitted to the theme, that should display a related modification on these
26703 * days representation.
26704 * @param mark_time A time struct to represent the date of inclusion of the
26705 * mark. For marks that repeats it will just be displayed after the inclusion
26706 * date in the calendar.
26707 * @param repeat Repeat the event following this periodicity. Can be a unique
26708 * mark (that don't repeat), daily, weekly, monthly or annually.
26709 * @return The created mark or @p NULL upon failure.
26711 * Add a mark that will be drawn in the calendar respecting the insertion
26712 * time and periodicity. It will emit the type as signal to the widget theme.
26713 * Default theme supports "holiday" and "checked", but it can be extended.
26715 * It won't immediately update the calendar, drawing the marks.
26716 * For this, call elm_calendar_marks_draw(). However, when user selects
26717 * next or previous month calendar forces marks drawn.
26719 * Marks created with this method can be deleted with
26720 * elm_calendar_mark_del().
26724 * struct tm selected_time;
26725 * time_t current_time;
26727 * current_time = time(NULL) + 5 * 84600;
26728 * localtime_r(¤t_time, &selected_time);
26729 * elm_calendar_mark_add(cal, "holiday", selected_time,
26730 * ELM_CALENDAR_ANNUALLY);
26732 * current_time = time(NULL) + 1 * 84600;
26733 * localtime_r(¤t_time, &selected_time);
26734 * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
26736 * elm_calendar_marks_draw(cal);
26739 * @see elm_calendar_marks_draw()
26740 * @see elm_calendar_mark_del()
26742 * @ref calendar_example_06
26744 * @ingroup Calendar
26746 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);
26749 * Delete mark from the calendar.
26751 * @param mark The mark to be deleted.
26753 * If deleting all calendar marks is required, elm_calendar_marks_clear()
26754 * should be used instead of getting marks list and deleting each one.
26756 * @see elm_calendar_mark_add()
26758 * @ref calendar_example_06
26760 * @ingroup Calendar
26762 EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
26765 * Remove all calendar's marks
26767 * @param obj The calendar object.
26769 * @see elm_calendar_mark_add()
26770 * @see elm_calendar_mark_del()
26772 * @ingroup Calendar
26774 EAPI void elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26777 * Get a list of all the calendar marks.
26779 * @param obj The calendar object.
26780 * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
26782 * @see elm_calendar_mark_add()
26783 * @see elm_calendar_mark_del()
26784 * @see elm_calendar_marks_clear()
26786 * @ingroup Calendar
26788 EAPI const Eina_List *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26791 * Draw calendar marks.
26793 * @param obj The calendar object.
26795 * Should be used after adding, removing or clearing marks.
26796 * It will go through the entire marks list updating the calendar.
26797 * If lots of marks will be added, add all the marks and then call
26800 * When the month is changed, i.e. user selects next or previous month,
26801 * marks will be drawed.
26803 * @see elm_calendar_mark_add()
26804 * @see elm_calendar_mark_del()
26805 * @see elm_calendar_marks_clear()
26807 * @ref calendar_example_06
26809 * @ingroup Calendar
26811 EAPI void elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
26814 * Set a day text color to the same that represents Saturdays.
26816 * @param obj The calendar object.
26817 * @param pos The text position. Position is the cell counter, from left
26818 * to right, up to down. It starts on 0 and ends on 41.
26820 * @deprecated use elm_calendar_mark_add() instead like:
26823 * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
26824 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
26827 * @see elm_calendar_mark_add()
26829 * @ingroup Calendar
26831 EINA_DEPRECATED EAPI void elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26834 * Set a day text color to the same that represents Sundays.
26836 * @param obj The calendar object.
26837 * @param pos The text position. Position is the cell counter, from left
26838 * to right, up to down. It starts on 0 and ends on 41.
26840 * @deprecated use elm_calendar_mark_add() instead like:
26843 * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
26844 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
26847 * @see elm_calendar_mark_add()
26849 * @ingroup Calendar
26851 EINA_DEPRECATED EAPI void elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26854 * Set a day text color to the same that represents Weekdays.
26856 * @param obj The calendar object
26857 * @param pos The text position. Position is the cell counter, from left
26858 * to right, up to down. It starts on 0 and ends on 41.
26860 * @deprecated use elm_calendar_mark_add() instead like:
26863 * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
26865 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
26866 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26867 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
26868 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26869 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
26870 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26871 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
26872 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
26873 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
26876 * @see elm_calendar_mark_add()
26878 * @ingroup Calendar
26880 EINA_DEPRECATED EAPI void elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
26883 * Set the interval on time updates for an user mouse button hold
26884 * on calendar widgets' month selection.
26886 * @param obj The calendar object
26887 * @param interval The (first) interval value in seconds
26889 * This interval value is @b decreased while the user holds the
26890 * mouse pointer either selecting next or previous month.
26892 * This helps the user to get to a given month distant from the
26893 * current one easier/faster, as it will start to change quicker and
26894 * quicker on mouse button holds.
26896 * The calculation for the next change interval value, starting from
26897 * the one set with this call, is the previous interval divided by
26898 * 1.05, so it decreases a little bit.
26900 * The default starting interval value for automatic changes is
26903 * @see elm_calendar_interval_get()
26905 * @ingroup Calendar
26907 EAPI void elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
26910 * Get the interval on time updates for an user mouse button hold
26911 * on calendar widgets' month selection.
26913 * @param obj The calendar object
26914 * @return The (first) interval value, in seconds, set on it
26916 * @see elm_calendar_interval_set() for more details
26918 * @ingroup Calendar
26920 EAPI double elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26927 * @defgroup Diskselector Diskselector
26928 * @ingroup Elementary
26930 * @image html img/widget/diskselector/preview-00.png
26931 * @image latex img/widget/diskselector/preview-00.eps
26933 * A diskselector is a kind of list widget. It scrolls horizontally,
26934 * and can contain label and icon objects. Three items are displayed
26935 * with the selected one in the middle.
26937 * It can act like a circular list with round mode and labels can be
26938 * reduced for a defined length for side items.
26940 * Smart callbacks one can listen to:
26941 * - "selected" - when item is selected, i.e. scroller stops.
26943 * Available styles for it:
26946 * List of examples:
26947 * @li @ref diskselector_example_01
26948 * @li @ref diskselector_example_02
26952 * @addtogroup Diskselector
26956 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(). */
26959 * Add a new diskselector widget to the given parent Elementary
26960 * (container) object.
26962 * @param parent The parent object.
26963 * @return a new diskselector widget handle or @c NULL, on errors.
26965 * This function inserts a new diskselector widget on the canvas.
26967 * @ingroup Diskselector
26969 EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26972 * Enable or disable round mode.
26974 * @param obj The diskselector object.
26975 * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
26978 * Disabled by default. If round mode is enabled the items list will
26979 * work like a circle list, so when the user reaches the last item,
26980 * the first one will popup.
26982 * @see elm_diskselector_round_get()
26984 * @ingroup Diskselector
26986 EAPI void elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
26989 * Get a value whether round mode is enabled or not.
26991 * @see elm_diskselector_round_set() for details.
26993 * @param obj The diskselector object.
26994 * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
26995 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
26997 * @ingroup Diskselector
26999 EAPI Eina_Bool elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27002 * Get the side labels max length.
27004 * @deprecated use elm_diskselector_side_label_length_get() instead:
27006 * @param obj The diskselector object.
27007 * @return The max length defined for side labels, or 0 if not a valid
27010 * @ingroup Diskselector
27012 EINA_DEPRECATED EAPI int elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27015 * Set the side labels max length.
27017 * @deprecated use elm_diskselector_side_label_length_set() instead:
27019 * @param obj The diskselector object.
27020 * @param len The max length defined for side labels.
27022 * @ingroup Diskselector
27024 EINA_DEPRECATED EAPI void elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
27027 * Get the side labels max length.
27029 * @see elm_diskselector_side_label_length_set() for details.
27031 * @param obj The diskselector object.
27032 * @return The max length defined for side labels, or 0 if not a valid
27035 * @ingroup Diskselector
27037 EAPI int elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27040 * Set the side labels max length.
27042 * @param obj The diskselector object.
27043 * @param len The max length defined for side labels.
27045 * Length is the number of characters of items' label that will be
27046 * visible when it's set on side positions. It will just crop
27047 * the string after defined size. E.g.:
27049 * An item with label "January" would be displayed on side position as
27050 * "Jan" if max length is set to 3, or "Janu", if this property
27053 * When it's selected, the entire label will be displayed, except for
27054 * width restrictions. In this case label will be cropped and "..."
27055 * will be concatenated.
27057 * Default side label max length is 3.
27059 * This property will be applyed over all items, included before or
27060 * later this function call.
27062 * @ingroup Diskselector
27064 EAPI void elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
27067 * Set the number of items to be displayed.
27069 * @param obj The diskselector object.
27070 * @param num The number of items the diskselector will display.
27072 * Default value is 3, and also it's the minimun. If @p num is less
27073 * than 3, it will be set to 3.
27075 * Also, it can be set on theme, using data item @c display_item_num
27076 * on group "elm/diskselector/item/X", where X is style set.
27079 * group { name: "elm/diskselector/item/X";
27081 * item: "display_item_num" "5";
27084 * @ingroup Diskselector
27086 EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
27089 * Get the number of items in the diskselector object.
27091 * @param obj The diskselector object.
27093 * @ingroup Diskselector
27095 EAPI int elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27098 * Set bouncing behaviour when the scrolled content reaches an edge.
27100 * Tell the internal scroller object whether it should bounce or not
27101 * when it reaches the respective edges for each axis.
27103 * @param obj The diskselector object.
27104 * @param h_bounce Whether to bounce or not in the horizontal axis.
27105 * @param v_bounce Whether to bounce or not in the vertical axis.
27107 * @see elm_scroller_bounce_set()
27109 * @ingroup Diskselector
27111 EAPI void elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
27114 * Get the bouncing behaviour of the internal scroller.
27116 * Get whether the internal scroller should bounce when the edge of each
27117 * axis is reached scrolling.
27119 * @param obj The diskselector object.
27120 * @param h_bounce Pointer where to store the bounce state of the horizontal
27122 * @param v_bounce Pointer where to store the bounce state of the vertical
27125 * @see elm_scroller_bounce_get()
27126 * @see elm_diskselector_bounce_set()
27128 * @ingroup Diskselector
27130 EAPI void elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
27133 * Get the scrollbar policy.
27135 * @see elm_diskselector_scroller_policy_get() for details.
27137 * @param obj The diskselector object.
27138 * @param policy_h Pointer where to store horizontal scrollbar policy.
27139 * @param policy_v Pointer where to store vertical scrollbar policy.
27141 * @ingroup Diskselector
27143 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);
27146 * Set the scrollbar policy.
27148 * @param obj The diskselector object.
27149 * @param policy_h Horizontal scrollbar policy.
27150 * @param policy_v Vertical scrollbar policy.
27152 * This sets the scrollbar visibility policy for the given scroller.
27153 * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
27154 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
27155 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
27156 * This applies respectively for the horizontal and vertical scrollbars.
27158 * The both are disabled by default, i.e., are set to
27159 * #ELM_SCROLLER_POLICY_OFF.
27161 * @ingroup Diskselector
27163 EAPI void elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
27166 * Remove all diskselector's items.
27168 * @param obj The diskselector object.
27170 * @see elm_diskselector_item_del()
27171 * @see elm_diskselector_item_append()
27173 * @ingroup Diskselector
27175 EAPI void elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
27178 * Get a list of all the diskselector items.
27180 * @param obj The diskselector object.
27181 * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
27182 * or @c NULL on failure.
27184 * @see elm_diskselector_item_append()
27185 * @see elm_diskselector_item_del()
27186 * @see elm_diskselector_clear()
27188 * @ingroup Diskselector
27190 EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27193 * Appends a new item to the diskselector object.
27195 * @param obj The diskselector object.
27196 * @param label The label of the diskselector item.
27197 * @param icon The icon object to use at left side of the item. An
27198 * icon can be any Evas object, but usually it is an icon created
27199 * with elm_icon_add().
27200 * @param func The function to call when the item is selected.
27201 * @param data The data to associate with the item for related callbacks.
27203 * @return The created item or @c NULL upon failure.
27205 * A new item will be created and appended to the diskselector, i.e., will
27206 * be set as last item. Also, if there is no selected item, it will
27207 * be selected. This will always happens for the first appended item.
27209 * If no icon is set, label will be centered on item position, otherwise
27210 * the icon will be placed at left of the label, that will be shifted
27213 * Items created with this method can be deleted with
27214 * elm_diskselector_item_del().
27216 * Associated @p data can be properly freed when item is deleted if a
27217 * callback function is set with elm_diskselector_item_del_cb_set().
27219 * If a function is passed as argument, it will be called everytime this item
27220 * is selected, i.e., the user stops the diskselector with this
27221 * item on center position. If such function isn't needed, just passing
27222 * @c NULL as @p func is enough. The same should be done for @p data.
27224 * Simple example (with no function callback or data associated):
27226 * disk = elm_diskselector_add(win);
27227 * ic = elm_icon_add(win);
27228 * elm_icon_file_set(ic, "path/to/image", NULL);
27229 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
27230 * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
27233 * @see elm_diskselector_item_del()
27234 * @see elm_diskselector_item_del_cb_set()
27235 * @see elm_diskselector_clear()
27236 * @see elm_icon_add()
27238 * @ingroup Diskselector
27240 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);
27244 * Delete them item from the diskselector.
27246 * @param it The item of diskselector to be deleted.
27248 * If deleting all diskselector items is required, elm_diskselector_clear()
27249 * should be used instead of getting items list and deleting each one.
27251 * @see elm_diskselector_clear()
27252 * @see elm_diskselector_item_append()
27253 * @see elm_diskselector_item_del_cb_set()
27255 * @ingroup Diskselector
27257 EAPI void elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27260 * Set the function called when a diskselector item is freed.
27262 * @param it The item to set the callback on
27263 * @param func The function called
27265 * If there is a @p func, then it will be called prior item's memory release.
27266 * That will be called with the following arguments:
27268 * @li item's Evas object;
27271 * This way, a data associated to a diskselector item could be properly
27274 * @ingroup Diskselector
27276 EAPI void elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
27279 * Get the data associated to the item.
27281 * @param it The diskselector item
27282 * @return The data associated to @p it
27284 * The return value is a pointer to data associated to @p item when it was
27285 * created, with function elm_diskselector_item_append(). If no data
27286 * was passed as argument, it will return @c NULL.
27288 * @see elm_diskselector_item_append()
27290 * @ingroup Diskselector
27292 EAPI void *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27295 * Set the icon associated to the item.
27297 * @param it The diskselector item
27298 * @param icon The icon object to associate with @p it
27300 * The icon object to use at left side of the item. An
27301 * icon can be any Evas object, but usually it is an icon created
27302 * with elm_icon_add().
27304 * Once the icon object is set, a previously set one will be deleted.
27305 * @warning Setting the same icon for two items will cause the icon to
27306 * dissapear from the first item.
27308 * If an icon was passed as argument on item creation, with function
27309 * elm_diskselector_item_append(), it will be already
27310 * associated to the item.
27312 * @see elm_diskselector_item_append()
27313 * @see elm_diskselector_item_icon_get()
27315 * @ingroup Diskselector
27317 EAPI void elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
27320 * Get the icon associated to the item.
27322 * @param it The diskselector item
27323 * @return The icon associated to @p it
27325 * The return value is a pointer to the icon associated to @p item when it was
27326 * created, with function elm_diskselector_item_append(), or later
27327 * with function elm_diskselector_item_icon_set. If no icon
27328 * was passed as argument, it will return @c NULL.
27330 * @see elm_diskselector_item_append()
27331 * @see elm_diskselector_item_icon_set()
27333 * @ingroup Diskselector
27335 EAPI Evas_Object *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27338 * Set the label of item.
27340 * @param it The item of diskselector.
27341 * @param label The label of item.
27343 * The label to be displayed by the item.
27345 * If no icon is set, label will be centered on item position, otherwise
27346 * the icon will be placed at left of the label, that will be shifted
27349 * An item with label "January" would be displayed on side position as
27350 * "Jan" if max length is set to 3 with function
27351 * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
27354 * When this @p item is selected, the entire label will be displayed,
27355 * except for width restrictions.
27356 * In this case label will be cropped and "..." will be concatenated,
27357 * but only for display purposes. It will keep the entire string, so
27358 * if diskselector is resized the remaining characters will be displayed.
27360 * If a label was passed as argument on item creation, with function
27361 * elm_diskselector_item_append(), it will be already
27362 * displayed by the item.
27364 * @see elm_diskselector_side_label_lenght_set()
27365 * @see elm_diskselector_item_label_get()
27366 * @see elm_diskselector_item_append()
27368 * @ingroup Diskselector
27370 EAPI void elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
27373 * Get the label of item.
27375 * @param it The item of diskselector.
27376 * @return The label of item.
27378 * The return value is a pointer to the label associated to @p item when it was
27379 * created, with function elm_diskselector_item_append(), or later
27380 * with function elm_diskselector_item_label_set. If no label
27381 * was passed as argument, it will return @c NULL.
27383 * @see elm_diskselector_item_label_set() for more details.
27384 * @see elm_diskselector_item_append()
27386 * @ingroup Diskselector
27388 EAPI const char *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27391 * Get the selected item.
27393 * @param obj The diskselector object.
27394 * @return The selected diskselector item.
27396 * The selected item can be unselected with function
27397 * elm_diskselector_item_selected_set(), and the first item of
27398 * diskselector will be selected.
27400 * The selected item always will be centered on diskselector, with
27401 * full label displayed, i.e., max lenght set to side labels won't
27402 * apply on the selected item. More details on
27403 * elm_diskselector_side_label_length_set().
27405 * @ingroup Diskselector
27407 EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27410 * Set the selected state of an item.
27412 * @param it The diskselector item
27413 * @param selected The selected state
27415 * This sets the selected state of the given item @p it.
27416 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
27418 * If a new item is selected the previosly selected will be unselected.
27419 * Previoulsy selected item can be get with function
27420 * elm_diskselector_selected_item_get().
27422 * If the item @p it is unselected, the first item of diskselector will
27425 * Selected items will be visible on center position of diskselector.
27426 * So if it was on another position before selected, or was invisible,
27427 * diskselector will animate items until the selected item reaches center
27430 * @see elm_diskselector_item_selected_get()
27431 * @see elm_diskselector_selected_item_get()
27433 * @ingroup Diskselector
27435 EAPI void elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
27438 * Get whether the @p item is selected or not.
27440 * @param it The diskselector item.
27441 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
27442 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
27444 * @see elm_diskselector_selected_item_set() for details.
27445 * @see elm_diskselector_item_selected_get()
27447 * @ingroup Diskselector
27449 EAPI Eina_Bool elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27452 * Get the first item of the diskselector.
27454 * @param obj The diskselector object.
27455 * @return The first item, or @c NULL if none.
27457 * The list of items follows append order. So it will return the first
27458 * item appended to the widget that wasn't deleted.
27460 * @see elm_diskselector_item_append()
27461 * @see elm_diskselector_items_get()
27463 * @ingroup Diskselector
27465 EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27468 * Get the last item of the diskselector.
27470 * @param obj The diskselector object.
27471 * @return The last item, or @c NULL if none.
27473 * The list of items follows append order. So it will return last first
27474 * item appended to the widget that wasn't deleted.
27476 * @see elm_diskselector_item_append()
27477 * @see elm_diskselector_items_get()
27479 * @ingroup Diskselector
27481 EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27484 * Get the item before @p item in diskselector.
27486 * @param it The diskselector item.
27487 * @return The item before @p item, or @c NULL if none or on failure.
27489 * The list of items follows append order. So it will return item appended
27490 * just before @p item and that wasn't deleted.
27492 * If it is the first item, @c NULL will be returned.
27493 * First item can be get by elm_diskselector_first_item_get().
27495 * @see elm_diskselector_item_append()
27496 * @see elm_diskselector_items_get()
27498 * @ingroup Diskselector
27500 EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27503 * Get the item after @p item in diskselector.
27505 * @param it The diskselector item.
27506 * @return The item after @p item, or @c NULL if none or on failure.
27508 * The list of items follows append order. So it will return item appended
27509 * just after @p item and that wasn't deleted.
27511 * If it is the last item, @c NULL will be returned.
27512 * Last item can be get by elm_diskselector_last_item_get().
27514 * @see elm_diskselector_item_append()
27515 * @see elm_diskselector_items_get()
27517 * @ingroup Diskselector
27519 EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27522 * Set the text to be shown in the diskselector item.
27524 * @param item Target item
27525 * @param text The text to set in the content
27527 * Setup the text as tooltip to object. The item can have only one tooltip,
27528 * so any previous tooltip data is removed.
27530 * @see elm_object_tooltip_text_set() for more details.
27532 * @ingroup Diskselector
27534 EAPI void elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
27537 * Set the content to be shown in the tooltip item.
27539 * Setup the tooltip to item. The item can have only one tooltip,
27540 * so any previous tooltip data is removed. @p func(with @p data) will
27541 * be called every time that need show the tooltip and it should
27542 * return a valid Evas_Object. This object is then managed fully by
27543 * tooltip system and is deleted when the tooltip is gone.
27545 * @param item the diskselector item being attached a tooltip.
27546 * @param func the function used to create the tooltip contents.
27547 * @param data what to provide to @a func as callback data/context.
27548 * @param del_cb called when data is not needed anymore, either when
27549 * another callback replaces @p func, the tooltip is unset with
27550 * elm_diskselector_item_tooltip_unset() or the owner @a item
27551 * dies. This callback receives as the first parameter the
27552 * given @a data, and @c event_info is the item.
27554 * @see elm_object_tooltip_content_cb_set() for more details.
27556 * @ingroup Diskselector
27558 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);
27561 * Unset tooltip from item.
27563 * @param item diskselector item to remove previously set tooltip.
27565 * Remove tooltip from item. The callback provided as del_cb to
27566 * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
27567 * it is not used anymore.
27569 * @see elm_object_tooltip_unset() for more details.
27570 * @see elm_diskselector_item_tooltip_content_cb_set()
27572 * @ingroup Diskselector
27574 EAPI void elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27577 * Sets a different style for this item tooltip.
27579 * @note before you set a style you should define a tooltip with
27580 * elm_diskselector_item_tooltip_content_cb_set() or
27581 * elm_diskselector_item_tooltip_text_set()
27583 * @param item diskselector item with tooltip already set.
27584 * @param style the theme style to use (default, transparent, ...)
27586 * @see elm_object_tooltip_style_set() for more details.
27588 * @ingroup Diskselector
27590 EAPI void elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
27593 * Get the style for this item tooltip.
27595 * @param item diskselector item with tooltip already set.
27596 * @return style the theme style in use, defaults to "default". If the
27597 * object does not have a tooltip set, then NULL is returned.
27599 * @see elm_object_tooltip_style_get() for more details.
27600 * @see elm_diskselector_item_tooltip_style_set()
27602 * @ingroup Diskselector
27604 EAPI const char *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27607 * Set the cursor to be shown when mouse is over the diskselector item
27609 * @param item Target item
27610 * @param cursor the cursor name to be used.
27612 * @see elm_object_cursor_set() for more details.
27614 * @ingroup Diskselector
27616 EAPI void elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
27619 * Get the cursor to be shown when mouse is over the diskselector item
27621 * @param item diskselector item with cursor already set.
27622 * @return the cursor name.
27624 * @see elm_object_cursor_get() for more details.
27625 * @see elm_diskselector_cursor_set()
27627 * @ingroup Diskselector
27629 EAPI const char *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27632 * Unset the cursor to be shown when mouse is over the diskselector item
27634 * @param item Target item
27636 * @see elm_object_cursor_unset() for more details.
27637 * @see elm_diskselector_cursor_set()
27639 * @ingroup Diskselector
27641 EAPI void elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27644 * Sets a different style for this item cursor.
27646 * @note before you set a style you should define a cursor with
27647 * elm_diskselector_item_cursor_set()
27649 * @param item diskselector item with cursor already set.
27650 * @param style the theme style to use (default, transparent, ...)
27652 * @see elm_object_cursor_style_set() for more details.
27654 * @ingroup Diskselector
27656 EAPI void elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
27659 * Get the style for this item cursor.
27661 * @param item diskselector item with cursor already set.
27662 * @return style the theme style in use, defaults to "default". If the
27663 * object does not have a cursor set, then @c NULL is returned.
27665 * @see elm_object_cursor_style_get() for more details.
27666 * @see elm_diskselector_item_cursor_style_set()
27668 * @ingroup Diskselector
27670 EAPI const char *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27674 * Set if the cursor set should be searched on the theme or should use
27675 * the provided by the engine, only.
27677 * @note before you set if should look on theme you should define a cursor
27678 * with elm_diskselector_item_cursor_set().
27679 * By default it will only look for cursors provided by the engine.
27681 * @param item widget item with cursor already set.
27682 * @param engine_only boolean to define if cursors set with
27683 * elm_diskselector_item_cursor_set() should be searched only
27684 * between cursors provided by the engine or searched on widget's
27687 * @see elm_object_cursor_engine_only_set() for more details.
27689 * @ingroup Diskselector
27691 EAPI void elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
27694 * Get the cursor engine only usage for this item cursor.
27696 * @param item widget item with cursor already set.
27697 * @return engine_only boolean to define it cursors should be looked only
27698 * between the provided by the engine or searched on widget's theme as well.
27699 * If the item does not have a cursor set, then @c EINA_FALSE is returned.
27701 * @see elm_object_cursor_engine_only_get() for more details.
27702 * @see elm_diskselector_item_cursor_engine_only_set()
27704 * @ingroup Diskselector
27706 EAPI Eina_Bool elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
27713 * @defgroup Colorselector Colorselector
27717 * @image html img/widget/colorselector/preview-00.png
27718 * @image latex img/widget/colorselector/preview-00.eps
27720 * @brief Widget for user to select a color.
27722 * Signals that you can add callbacks for are:
27723 * "changed" - When the color value changes(event_info is NULL).
27725 * See @ref tutorial_colorselector.
27728 * @brief Add a new colorselector to the parent
27730 * @param parent The parent object
27731 * @return The new object or NULL if it cannot be created
27733 * @ingroup Colorselector
27735 EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27737 * Set a color for the colorselector
27739 * @param obj Colorselector object
27740 * @param r r-value of color
27741 * @param g g-value of color
27742 * @param b b-value of color
27743 * @param a a-value of color
27745 * @ingroup Colorselector
27747 EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
27749 * Get a color from the colorselector
27751 * @param obj Colorselector object
27752 * @param r integer pointer for r-value of color
27753 * @param g integer pointer for g-value of color
27754 * @param b integer pointer for b-value of color
27755 * @param a integer pointer for a-value of color
27757 * @ingroup Colorselector
27759 EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
27765 * @defgroup Ctxpopup Ctxpopup
27767 * @image html img/widget/ctxpopup/preview-00.png
27768 * @image latex img/widget/ctxpopup/preview-00.eps
27770 * @brief Context popup widet.
27772 * A ctxpopup is a widget that, when shown, pops up a list of items.
27773 * It automatically chooses an area inside its parent object's view
27774 * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
27775 * optimally fit into it. In the default theme, it will also point an
27776 * arrow to it's top left position at the time one shows it. Ctxpopup
27777 * items have a label and/or an icon. It is intended for a small
27778 * number of items (hence the use of list, not genlist).
27780 * @note Ctxpopup is a especialization of @ref Hover.
27782 * Signals that you can add callbacks for are:
27783 * "dismissed" - the ctxpopup was dismissed
27785 * Default contents parts of the ctxpopup widget that you can use for are:
27786 * @li "default" - A content of the ctxpopup
27788 * Default contents parts of the ctxpopup items that you can use for are:
27789 * @li "icon" - An icon in the title area
27791 * Default text parts of the ctxpopup items that you can use for are:
27792 * @li "default" - Title label in the title area
27794 * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
27799 * @addtogroup Ctxpopup
27803 typedef enum _Elm_Ctxpopup_Direction
27805 ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
27807 ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
27808 the clicked area */
27809 ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
27810 the clicked area */
27811 ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
27813 ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
27814 } Elm_Ctxpopup_Direction;
27817 * @brief Add a new Ctxpopup object to the parent.
27819 * @param parent Parent object
27820 * @return New object or @c NULL, if it cannot be created
27822 * @ingroup Ctxpopup
27824 EAPI Evas_Object *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27827 * @brief Set the Ctxpopup's parent
27829 * @param obj The ctxpopup object
27830 * @param area The parent to use
27832 * Set the parent object.
27834 * @note elm_ctxpopup_add() will automatically call this function
27835 * with its @c parent argument.
27837 * @see elm_ctxpopup_add()
27838 * @see elm_hover_parent_set()
27840 * @ingroup Ctxpopup
27842 EAPI void elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
27845 * @brief Get the Ctxpopup's parent
27847 * @param obj The ctxpopup object
27849 * @see elm_ctxpopup_hover_parent_set() for more information
27851 * @ingroup Ctxpopup
27853 EAPI Evas_Object *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27856 * @brief Clear all items in the given ctxpopup object.
27858 * @param obj Ctxpopup object
27860 * @ingroup Ctxpopup
27862 EAPI void elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
27865 * @brief Change the ctxpopup's orientation to horizontal or vertical.
27867 * @param obj Ctxpopup object
27868 * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
27870 * @ingroup Ctxpopup
27872 EAPI void elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
27875 * @brief Get the value of current ctxpopup object's orientation.
27877 * @param obj Ctxpopup object
27878 * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
27880 * @see elm_ctxpopup_horizontal_set()
27882 * @ingroup Ctxpopup
27884 EAPI Eina_Bool elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
27887 * @brief Add a new item to a ctxpopup object.
27889 * @param obj Ctxpopup object
27890 * @param icon Icon to be set on new item
27891 * @param label The Label of the new item
27892 * @param func Convenience function called when item selected
27893 * @param data Data passed to @p func
27894 * @return A handle to the item added or @c NULL, on errors
27896 * @warning Ctxpopup can't hold both an item list and a content at the same
27897 * time. When an item is added, any previous content will be removed.
27899 * @see elm_ctxpopup_content_set()
27901 * @ingroup Ctxpopup
27903 Elm_Object_Item *elm_ctxpopup_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
27906 * @brief Delete the given item in a ctxpopup object.
27908 * @param it Ctxpopup item to be deleted
27910 * @see elm_ctxpopup_item_append()
27912 * @ingroup Ctxpopup
27914 EAPI void elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27917 * @brief Set the ctxpopup item's state as disabled or enabled.
27919 * @param it Ctxpopup item to be enabled/disabled
27920 * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
27922 * When disabled the item is greyed out to indicate it's state.
27923 * @deprecated use elm_object_item_disabled_set() instead
27925 * @ingroup Ctxpopup
27927 EINA_DEPRECATED EAPI void elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
27930 * @brief Get the ctxpopup item's disabled/enabled state.
27932 * @param it Ctxpopup item to be enabled/disabled
27933 * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
27935 * @see elm_ctxpopup_item_disabled_set()
27936 * @deprecated use elm_object_item_disabled_get() instead
27938 * @ingroup Ctxpopup
27940 EAPI Eina_Bool elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27943 * @brief Get the icon object for the given ctxpopup item.
27945 * @param it Ctxpopup item
27946 * @return icon object or @c NULL, if the item does not have icon or an error
27949 * @see elm_ctxpopup_item_append()
27950 * @see elm_ctxpopup_item_icon_set()
27952 * @deprecated use elm_object_item_part_content_get() instead
27954 * @ingroup Ctxpopup
27956 EINA_DEPRECATED EAPI Evas_Object *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27959 * @brief Sets the side icon associated with the ctxpopup item
27961 * @param it Ctxpopup item
27962 * @param icon Icon object to be set
27964 * Once the icon object is set, a previously set one will be deleted.
27965 * @warning Setting the same icon for two items will cause the icon to
27966 * dissapear from the first item.
27968 * @see elm_ctxpopup_item_append()
27970 * @deprecated use elm_object_item_part_content_set() instead
27972 * @ingroup Ctxpopup
27974 EINA_DEPRECATED EAPI void elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
27977 * @brief Get the label for the given ctxpopup item.
27979 * @param it Ctxpopup item
27980 * @return label string or @c NULL, if the item does not have label or an
27983 * @see elm_ctxpopup_item_append()
27984 * @see elm_ctxpopup_item_label_set()
27986 * @deprecated use elm_object_item_text_get() instead
27988 * @ingroup Ctxpopup
27990 EINA_DEPRECATED EAPI const char *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
27993 * @brief (Re)set the label on the given ctxpopup item.
27995 * @param it Ctxpopup item
27996 * @param label String to set as label
27998 * @deprecated use elm_object_item_text_set() instead
28000 * @ingroup Ctxpopup
28002 EINA_DEPRECATED EAPI void elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
28005 * @brief Set an elm widget as the content of the ctxpopup.
28007 * @param obj Ctxpopup object
28008 * @param content Content to be swallowed
28010 * If the content object is already set, a previous one will bedeleted. If
28011 * you want to keep that old content object, use the
28012 * elm_ctxpopup_content_unset() function.
28014 * @warning Ctxpopup can't hold both a item list and a content at the same
28015 * time. When a content is set, any previous items will be removed.
28017 * @deprecated use elm_object_content_set() instead
28019 * @ingroup Ctxpopup
28021 EINA_DEPRECATED EAPI void elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
28024 * @brief Unset the ctxpopup content
28026 * @param obj Ctxpopup object
28027 * @return The content that was being used
28029 * Unparent and return the content object which was set for this widget.
28031 * @deprecated use elm_object_content_unset()
28033 * @see elm_ctxpopup_content_set()
28035 * @deprecated use elm_object_content_unset() instead
28037 * @ingroup Ctxpopup
28039 EINA_DEPRECATED EAPI Evas_Object *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
28042 * @brief Set the direction priority of a ctxpopup.
28044 * @param obj Ctxpopup object
28045 * @param first 1st priority of direction
28046 * @param second 2nd priority of direction
28047 * @param third 3th priority of direction
28048 * @param fourth 4th priority of direction
28050 * This functions gives a chance to user to set the priority of ctxpopup
28051 * showing direction. This doesn't guarantee the ctxpopup will appear in the
28052 * requested direction.
28054 * @see Elm_Ctxpopup_Direction
28056 * @ingroup Ctxpopup
28058 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);
28061 * @brief Get the direction priority of a ctxpopup.
28063 * @param obj Ctxpopup object
28064 * @param first 1st priority of direction to be returned
28065 * @param second 2nd priority of direction to be returned
28066 * @param third 3th priority of direction to be returned
28067 * @param fourth 4th priority of direction to be returned
28069 * @see elm_ctxpopup_direction_priority_set() for more information.
28071 * @ingroup Ctxpopup
28073 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);
28076 * @brief Get the current direction of a ctxpopup.
28078 * @param obj Ctxpopup object
28079 * @return current direction of a ctxpopup
28081 * @warning Once the ctxpopup showed up, the direction would be determined
28083 * @ingroup Ctxpopup
28085 EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28094 * @defgroup Transit Transit
28095 * @ingroup Elementary
28097 * Transit is designed to apply various animated transition effects to @c
28098 * Evas_Object, such like translation, rotation, etc. For using these
28099 * effects, create an @ref Elm_Transit and add the desired transition effects.
28101 * Once the effects are added into transit, they will be automatically
28102 * managed (their callback will be called until the duration is ended, and
28103 * they will be deleted on completion).
28107 * Elm_Transit *trans = elm_transit_add();
28108 * elm_transit_object_add(trans, obj);
28109 * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
28110 * elm_transit_duration_set(transit, 1);
28111 * elm_transit_auto_reverse_set(transit, EINA_TRUE);
28112 * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
28113 * elm_transit_repeat_times_set(transit, 3);
28116 * Some transition effects are used to change the properties of objects. They
28118 * @li @ref elm_transit_effect_translation_add
28119 * @li @ref elm_transit_effect_color_add
28120 * @li @ref elm_transit_effect_rotation_add
28121 * @li @ref elm_transit_effect_wipe_add
28122 * @li @ref elm_transit_effect_zoom_add
28123 * @li @ref elm_transit_effect_resizing_add
28125 * Other transition effects are used to make one object disappear and another
28126 * object appear on its old place. These effects are:
28128 * @li @ref elm_transit_effect_flip_add
28129 * @li @ref elm_transit_effect_resizable_flip_add
28130 * @li @ref elm_transit_effect_fade_add
28131 * @li @ref elm_transit_effect_blend_add
28133 * It's also possible to make a transition chain with @ref
28134 * elm_transit_chain_transit_add.
28136 * @warning We strongly recommend to use elm_transit just when edje can not do
28137 * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
28138 * animations can be manipulated inside the theme.
28140 * List of examples:
28141 * @li @ref transit_example_01_explained
28142 * @li @ref transit_example_02_explained
28143 * @li @ref transit_example_03_c
28144 * @li @ref transit_example_04_c
28150 * @enum Elm_Transit_Tween_Mode
28152 * The type of acceleration used in the transition.
28156 ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
28157 ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
28158 over time, then decrease again
28160 ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
28162 ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
28164 } Elm_Transit_Tween_Mode;
28167 * @enum Elm_Transit_Effect_Flip_Axis
28169 * The axis where flip effect should be applied.
28173 ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
28174 ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
28175 } Elm_Transit_Effect_Flip_Axis;
28178 * @enum Elm_Transit_Effect_Wipe_Dir
28180 * The direction where the wipe effect should occur.
28184 ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
28185 ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
28186 ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
28187 ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
28188 } Elm_Transit_Effect_Wipe_Dir;
28190 /** @enum Elm_Transit_Effect_Wipe_Type
28192 * Whether the wipe effect should show or hide the object.
28196 ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
28198 ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
28200 } Elm_Transit_Effect_Wipe_Type;
28203 * @typedef Elm_Transit
28205 * The Transit created with elm_transit_add(). This type has the information
28206 * about the objects which the transition will be applied, and the
28207 * transition effects that will be used. It also contains info about
28208 * duration, number of repetitions, auto-reverse, etc.
28210 typedef struct _Elm_Transit Elm_Transit;
28211 typedef void Elm_Transit_Effect;
28214 * @typedef Elm_Transit_Effect_Transition_Cb
28216 * Transition callback called for this effect on each transition iteration.
28218 typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
28221 * Elm_Transit_Effect_End_Cb
28223 * Transition callback called for this effect when the transition is over.
28225 typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
28228 * Elm_Transit_Del_Cb
28230 * A callback called when the transit is deleted.
28232 typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
28237 * @note Is not necessary to delete the transit object, it will be deleted at
28238 * the end of its operation.
28239 * @note The transit will start playing when the program enter in the main loop, is not
28240 * necessary to give a start to the transit.
28242 * @return The transit object.
28246 EAPI Elm_Transit *elm_transit_add(void);
28249 * Stops the animation and delete the @p transit object.
28251 * Call this function if you wants to stop the animation before the duration
28252 * time. Make sure the @p transit object is still alive with
28253 * elm_transit_del_cb_set() function.
28254 * All added effects will be deleted, calling its repective data_free_cb
28255 * functions. The function setted by elm_transit_del_cb_set() will be called.
28257 * @see elm_transit_del_cb_set()
28259 * @param transit The transit object to be deleted.
28262 * @warning Just call this function if you are sure the transit is alive.
28264 EAPI void elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
28267 * Add a new effect to the transit.
28269 * @note The cb function and the data are the key to the effect. If you try to
28270 * add an already added effect, nothing is done.
28271 * @note After the first addition of an effect in @p transit, if its
28272 * effect list become empty again, the @p transit will be killed by
28273 * elm_transit_del(transit) function.
28277 * Elm_Transit *transit = elm_transit_add();
28278 * elm_transit_effect_add(transit,
28279 * elm_transit_effect_blend_op,
28280 * elm_transit_effect_blend_context_new(),
28281 * elm_transit_effect_blend_context_free);
28284 * @param transit The transit object.
28285 * @param transition_cb The operation function. It is called when the
28286 * animation begins, it is the function that actually performs the animation.
28287 * It is called with the @p data, @p transit and the time progression of the
28288 * animation (a double value between 0.0 and 1.0).
28289 * @param effect The context data of the effect.
28290 * @param end_cb The function to free the context data, it will be called
28291 * at the end of the effect, it must finalize the animation and free the
28295 * @warning The transit free the context data at the and of the transition with
28296 * the data_free_cb function, do not use the context data in another transit.
28298 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);
28301 * Delete an added effect.
28303 * This function will remove the effect from the @p transit, calling the
28304 * data_free_cb to free the @p data.
28306 * @see elm_transit_effect_add()
28308 * @note If the effect is not found, nothing is done.
28309 * @note If the effect list become empty, this function will call
28310 * elm_transit_del(transit), that is, it will kill the @p transit.
28312 * @param transit The transit object.
28313 * @param transition_cb The operation function.
28314 * @param effect The context data of the effect.
28318 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);
28321 * Add new object to apply the effects.
28323 * @note After the first addition of an object in @p transit, if its
28324 * object list become empty again, the @p transit will be killed by
28325 * elm_transit_del(transit) function.
28326 * @note If the @p obj belongs to another transit, the @p obj will be
28327 * removed from it and it will only belong to the @p transit. If the old
28328 * transit stays without objects, it will die.
28329 * @note When you add an object into the @p transit, its state from
28330 * evas_object_pass_events_get(obj) is saved, and it is applied when the
28331 * transit ends, if you change this state whith evas_object_pass_events_set()
28332 * after add the object, this state will change again when @p transit stops to
28335 * @param transit The transit object.
28336 * @param obj Object to be animated.
28339 * @warning It is not allowed to add a new object after transit begins to go.
28341 EAPI void elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
28344 * Removes an added object from the transit.
28346 * @note If the @p obj is not in the @p transit, nothing is done.
28347 * @note If the list become empty, this function will call
28348 * elm_transit_del(transit), that is, it will kill the @p transit.
28350 * @param transit The transit object.
28351 * @param obj Object to be removed from @p transit.
28354 * @warning It is not allowed to remove objects after transit begins to go.
28356 EAPI void elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
28359 * Get the objects of the transit.
28361 * @param transit The transit object.
28362 * @return a Eina_List with the objects from the transit.
28366 EAPI const Eina_List *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28369 * Enable/disable keeping up the objects states.
28370 * If it is not kept, the objects states will be reset when transition ends.
28372 * @note @p transit can not be NULL.
28373 * @note One state includes geometry, color, map data.
28375 * @param transit The transit object.
28376 * @param state_keep Keeping or Non Keeping.
28380 EAPI void elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
28383 * Get a value whether the objects states will be reset or not.
28385 * @note @p transit can not be NULL
28387 * @see elm_transit_objects_final_state_keep_set()
28389 * @param transit The transit object.
28390 * @return EINA_TRUE means the states of the objects will be reset.
28391 * If @p transit is NULL, EINA_FALSE is returned
28395 EAPI Eina_Bool elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28398 * Set the event enabled when transit is operating.
28400 * If @p enabled is EINA_TRUE, the objects of the transit will receives
28401 * events from mouse and keyboard during the animation.
28402 * @note When you add an object with elm_transit_object_add(), its state from
28403 * evas_object_pass_events_get(obj) is saved, and it is applied when the
28404 * transit ends, if you change this state with evas_object_pass_events_set()
28405 * after adding the object, this state will change again when @p transit stops
28408 * @param transit The transit object.
28409 * @param enabled Events are received when enabled is @c EINA_TRUE, and
28410 * ignored otherwise.
28414 EAPI void elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
28417 * Get the value of event enabled status.
28419 * @see elm_transit_event_enabled_set()
28421 * @param transit The Transit object
28422 * @return EINA_TRUE, when event is enabled. If @p transit is NULL
28423 * EINA_FALSE is returned
28427 EAPI Eina_Bool elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28430 * Set the user-callback function when the transit is deleted.
28432 * @note Using this function twice will overwrite the first function setted.
28433 * @note the @p transit object will be deleted after call @p cb function.
28435 * @param transit The transit object.
28436 * @param cb Callback function pointer. This function will be called before
28437 * the deletion of the transit.
28438 * @param data Callback funtion user data. It is the @p op parameter.
28442 EAPI void elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
28445 * Set reverse effect automatically.
28447 * If auto reverse is setted, after running the effects with the progress
28448 * parameter from 0 to 1, it will call the effecs again with the progress
28449 * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
28450 * where the duration was setted with the function elm_transit_add and
28451 * the repeat with the function elm_transit_repeat_times_set().
28453 * @param transit The transit object.
28454 * @param reverse EINA_TRUE means the auto_reverse is on.
28458 EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
28461 * Get if the auto reverse is on.
28463 * @see elm_transit_auto_reverse_set()
28465 * @param transit The transit object.
28466 * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
28467 * EINA_FALSE is returned
28471 EAPI Eina_Bool elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28474 * Set the transit repeat count. Effect will be repeated by repeat count.
28476 * This function sets the number of repetition the transit will run after
28477 * the first one, that is, if @p repeat is 1, the transit will run 2 times.
28478 * If the @p repeat is a negative number, it will repeat infinite times.
28480 * @note If this function is called during the transit execution, the transit
28481 * will run @p repeat times, ignoring the times it already performed.
28483 * @param transit The transit object
28484 * @param repeat Repeat count
28488 EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
28491 * Get the transit repeat count.
28493 * @see elm_transit_repeat_times_set()
28495 * @param transit The Transit object.
28496 * @return The repeat count. If @p transit is NULL
28501 EAPI int elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28504 * Set the transit animation acceleration type.
28506 * This function sets the tween mode of the transit that can be:
28507 * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
28508 * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
28509 * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
28510 * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
28512 * @param transit The transit object.
28513 * @param tween_mode The tween type.
28517 EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
28520 * Get the transit animation acceleration type.
28522 * @note @p transit can not be NULL
28524 * @param transit The transit object.
28525 * @return The tween type. If @p transit is NULL
28526 * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
28530 EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28533 * Set the transit animation time
28535 * @note @p transit can not be NULL
28537 * @param transit The transit object.
28538 * @param duration The animation time.
28542 EAPI void elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
28545 * Get the transit animation time
28547 * @note @p transit can not be NULL
28549 * @param transit The transit object.
28551 * @return The transit animation time.
28555 EAPI double elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28558 * Starts the transition.
28559 * Once this API is called, the transit begins to measure the time.
28561 * @note @p transit can not be NULL
28563 * @param transit The transit object.
28567 EAPI void elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
28570 * Pause/Resume the transition.
28572 * If you call elm_transit_go again, the transit will be started from the
28573 * beginning, and will be unpaused.
28575 * @note @p transit can not be NULL
28577 * @param transit The transit object.
28578 * @param paused Whether the transition should be paused or not.
28582 EAPI void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
28585 * Get the value of paused status.
28587 * @see elm_transit_paused_set()
28589 * @note @p transit can not be NULL
28591 * @param transit The transit object.
28592 * @return EINA_TRUE means transition is paused. If @p transit is NULL
28593 * EINA_FALSE is returned
28597 EAPI Eina_Bool elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28600 * Get the time progression of the animation (a double value between 0.0 and 1.0).
28602 * The value returned is a fraction (current time / total time). It
28603 * represents the progression position relative to the total.
28605 * @note @p transit can not be NULL
28607 * @param transit The transit object.
28609 * @return The time progression value. If @p transit is NULL
28614 EAPI double elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
28617 * Makes the chain relationship between two transits.
28619 * @note @p transit can not be NULL. Transit would have multiple chain transits.
28620 * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
28622 * @param transit The transit object.
28623 * @param chain_transit The chain transit object. This transit will be operated
28624 * after transit is done.
28626 * This function adds @p chain_transit transition to a chain after the @p
28627 * transit, and will be started as soon as @p transit ends. See @ref
28628 * transit_example_02_explained for a full example.
28632 EAPI void elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
28635 * Cut off the chain relationship between two transits.
28637 * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
28638 * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
28640 * @param transit The transit object.
28641 * @param chain_transit The chain transit object.
28643 * This function remove the @p chain_transit transition from the @p transit.
28647 EAPI void elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
28650 * Get the current chain transit list.
28652 * @note @p transit can not be NULL.
28654 * @param transit The transit object.
28655 * @return chain transit list.
28659 EAPI Eina_List *elm_transit_chain_transits_get(const Elm_Transit *transit);
28662 * Add the Resizing Effect to Elm_Transit.
28664 * @note This API is one of the facades. It creates resizing effect context
28665 * and add it's required APIs to elm_transit_effect_add.
28667 * @see elm_transit_effect_add()
28669 * @param transit Transit object.
28670 * @param from_w Object width size when effect begins.
28671 * @param from_h Object height size when effect begins.
28672 * @param to_w Object width size when effect ends.
28673 * @param to_h Object height size when effect ends.
28674 * @return Resizing effect context data.
28678 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);
28681 * Add the Translation Effect to Elm_Transit.
28683 * @note This API is one of the facades. It creates translation effect context
28684 * and add it's required APIs to elm_transit_effect_add.
28686 * @see elm_transit_effect_add()
28688 * @param transit Transit object.
28689 * @param from_dx X Position variation when effect begins.
28690 * @param from_dy Y Position variation when effect begins.
28691 * @param to_dx X Position variation when effect ends.
28692 * @param to_dy Y Position variation when effect ends.
28693 * @return Translation effect context data.
28696 * @warning It is highly recommended just create a transit with this effect when
28697 * the window that the objects of the transit belongs has already been created.
28698 * This is because this effect needs the geometry information about the objects,
28699 * and if the window was not created yet, it can get a wrong information.
28701 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);
28704 * Add the Zoom Effect to Elm_Transit.
28706 * @note This API is one of the facades. It creates zoom effect context
28707 * and add it's required APIs to elm_transit_effect_add.
28709 * @see elm_transit_effect_add()
28711 * @param transit Transit object.
28712 * @param from_rate Scale rate when effect begins (1 is current rate).
28713 * @param to_rate Scale rate when effect ends.
28714 * @return Zoom effect context data.
28717 * @warning It is highly recommended just create a transit with this effect when
28718 * the window that the objects of the transit belongs has already been created.
28719 * This is because this effect needs the geometry information about the objects,
28720 * and if the window was not created yet, it can get a wrong information.
28722 EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
28725 * Add the Flip Effect to Elm_Transit.
28727 * @note This API is one of the facades. It creates flip effect context
28728 * and add it's required APIs to elm_transit_effect_add.
28729 * @note This effect is applied to each pair of objects in the order they are listed
28730 * in the transit list of objects. The first object in the pair will be the
28731 * "front" object and the second will be the "back" object.
28733 * @see elm_transit_effect_add()
28735 * @param transit Transit object.
28736 * @param axis Flipping Axis(X or Y).
28737 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
28738 * @return Flip effect context data.
28741 * @warning It is highly recommended just create a transit with this effect when
28742 * the window that the objects of the transit belongs has already been created.
28743 * This is because this effect needs the geometry information about the objects,
28744 * and if the window was not created yet, it can get a wrong information.
28746 EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
28749 * Add the Resizable Flip Effect to Elm_Transit.
28751 * @note This API is one of the facades. It creates resizable flip effect context
28752 * and add it's required APIs to elm_transit_effect_add.
28753 * @note This effect is applied to each pair of objects in the order they are listed
28754 * in the transit list of objects. The first object in the pair will be the
28755 * "front" object and the second will be the "back" object.
28757 * @see elm_transit_effect_add()
28759 * @param transit Transit object.
28760 * @param axis Flipping Axis(X or Y).
28761 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
28762 * @return Resizable flip effect context data.
28765 * @warning It is highly recommended just create a transit with this effect when
28766 * the window that the objects of the transit belongs has already been created.
28767 * This is because this effect needs the geometry information about the objects,
28768 * and if the window was not created yet, it can get a wrong information.
28770 EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
28773 * Add the Wipe Effect to Elm_Transit.
28775 * @note This API is one of the facades. It creates wipe effect context
28776 * and add it's required APIs to elm_transit_effect_add.
28778 * @see elm_transit_effect_add()
28780 * @param transit Transit object.
28781 * @param type Wipe type. Hide or show.
28782 * @param dir Wipe Direction.
28783 * @return Wipe effect context data.
28786 * @warning It is highly recommended just create a transit with this effect when
28787 * the window that the objects of the transit belongs has already been created.
28788 * This is because this effect needs the geometry information about the objects,
28789 * and if the window was not created yet, it can get a wrong information.
28791 EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
28794 * Add the Color Effect to Elm_Transit.
28796 * @note This API is one of the facades. It creates color effect context
28797 * and add it's required APIs to elm_transit_effect_add.
28799 * @see elm_transit_effect_add()
28801 * @param transit Transit object.
28802 * @param from_r RGB R when effect begins.
28803 * @param from_g RGB G when effect begins.
28804 * @param from_b RGB B when effect begins.
28805 * @param from_a RGB A when effect begins.
28806 * @param to_r RGB R when effect ends.
28807 * @param to_g RGB G when effect ends.
28808 * @param to_b RGB B when effect ends.
28809 * @param to_a RGB A when effect ends.
28810 * @return Color effect context data.
28814 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);
28817 * Add the Fade Effect to Elm_Transit.
28819 * @note This API is one of the facades. It creates fade effect context
28820 * and add it's required APIs to elm_transit_effect_add.
28821 * @note This effect is applied to each pair of objects in the order they are listed
28822 * in the transit list of objects. The first object in the pair will be the
28823 * "before" object and the second will be the "after" object.
28825 * @see elm_transit_effect_add()
28827 * @param transit Transit object.
28828 * @return Fade effect context data.
28831 * @warning It is highly recommended just create a transit with this effect when
28832 * the window that the objects of the transit belongs has already been created.
28833 * This is because this effect needs the color information about the objects,
28834 * and if the window was not created yet, it can get a wrong information.
28836 EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
28839 * Add the Blend Effect to Elm_Transit.
28841 * @note This API is one of the facades. It creates blend effect context
28842 * and add it's required APIs to elm_transit_effect_add.
28843 * @note This effect is applied to each pair of objects in the order they are listed
28844 * in the transit list of objects. The first object in the pair will be the
28845 * "before" object and the second will be the "after" object.
28847 * @see elm_transit_effect_add()
28849 * @param transit Transit object.
28850 * @return Blend effect context data.
28853 * @warning It is highly recommended just create a transit with this effect when
28854 * the window that the objects of the transit belongs has already been created.
28855 * This is because this effect needs the color information about the objects,
28856 * and if the window was not created yet, it can get a wrong information.
28858 EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
28861 * Add the Rotation Effect to Elm_Transit.
28863 * @note This API is one of the facades. It creates rotation effect context
28864 * and add it's required APIs to elm_transit_effect_add.
28866 * @see elm_transit_effect_add()
28868 * @param transit Transit object.
28869 * @param from_degree Degree when effect begins.
28870 * @param to_degree Degree when effect is ends.
28871 * @return Rotation effect context data.
28874 * @warning It is highly recommended just create a transit with this effect when
28875 * the window that the objects of the transit belongs has already been created.
28876 * This is because this effect needs the geometry information about the objects,
28877 * and if the window was not created yet, it can get a wrong information.
28879 EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
28882 * Add the ImageAnimation Effect to Elm_Transit.
28884 * @note This API is one of the facades. It creates image animation effect context
28885 * and add it's required APIs to elm_transit_effect_add.
28886 * The @p images parameter is a list images paths. This list and
28887 * its contents will be deleted at the end of the effect by
28888 * elm_transit_effect_image_animation_context_free() function.
28892 * char buf[PATH_MAX];
28893 * Eina_List *images = NULL;
28894 * Elm_Transit *transi = elm_transit_add();
28896 * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
28897 * images = eina_list_append(images, eina_stringshare_add(buf));
28899 * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
28900 * images = eina_list_append(images, eina_stringshare_add(buf));
28901 * elm_transit_effect_image_animation_add(transi, images);
28905 * @see elm_transit_effect_add()
28907 * @param transit Transit object.
28908 * @param images Eina_List of images file paths. This list and
28909 * its contents will be deleted at the end of the effect by
28910 * elm_transit_effect_image_animation_context_free() function.
28911 * @return Image Animation effect context data.
28915 EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
28920 typedef struct _Elm_Store Elm_Store;
28921 typedef struct _Elm_Store_Filesystem Elm_Store_Filesystem;
28922 typedef struct _Elm_Store_Item Elm_Store_Item;
28923 typedef struct _Elm_Store_Item_Filesystem Elm_Store_Item_Filesystem;
28924 typedef struct _Elm_Store_Item_Info Elm_Store_Item_Info;
28925 typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
28926 typedef struct _Elm_Store_Item_Mapping Elm_Store_Item_Mapping;
28927 typedef struct _Elm_Store_Item_Mapping_Empty Elm_Store_Item_Mapping_Empty;
28928 typedef struct _Elm_Store_Item_Mapping_Icon Elm_Store_Item_Mapping_Icon;
28929 typedef struct _Elm_Store_Item_Mapping_Photo Elm_Store_Item_Mapping_Photo;
28930 typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom;
28932 typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
28933 typedef void (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
28934 typedef void (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
28935 typedef void *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
28939 ELM_STORE_ITEM_MAPPING_NONE = 0,
28940 ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
28941 ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
28942 ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
28943 ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
28944 ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
28945 // can add more here as needed by common apps
28946 ELM_STORE_ITEM_MAPPING_LAST
28947 } Elm_Store_Item_Mapping_Type;
28949 struct _Elm_Store_Item_Mapping_Icon
28951 // FIXME: allow edje file icons
28953 Elm_Icon_Lookup_Order lookup_order;
28954 Eina_Bool standard_name : 1;
28955 Eina_Bool no_scale : 1;
28956 Eina_Bool smooth : 1;
28957 Eina_Bool scale_up : 1;
28958 Eina_Bool scale_down : 1;
28961 struct _Elm_Store_Item_Mapping_Empty
28966 struct _Elm_Store_Item_Mapping_Photo
28971 struct _Elm_Store_Item_Mapping_Custom
28973 Elm_Store_Item_Mapping_Cb func;
28976 struct _Elm_Store_Item_Mapping
28978 Elm_Store_Item_Mapping_Type type;
28983 Elm_Store_Item_Mapping_Empty empty;
28984 Elm_Store_Item_Mapping_Icon icon;
28985 Elm_Store_Item_Mapping_Photo photo;
28986 Elm_Store_Item_Mapping_Custom custom;
28987 // add more types here
28991 struct _Elm_Store_Item_Info
28993 Elm_Genlist_Item_Class *item_class;
28994 const Elm_Store_Item_Mapping *mapping;
28999 struct _Elm_Store_Item_Info_Filesystem
29001 Elm_Store_Item_Info base;
29005 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
29006 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
29008 EAPI void elm_store_free(Elm_Store *st);
29010 EAPI Elm_Store *elm_store_filesystem_new(void);
29011 EAPI void elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
29012 EAPI const char *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29013 EAPI const char *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29015 EAPI void elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
29017 EAPI void elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
29018 EAPI int elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29019 EAPI void elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
29020 EAPI void elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
29021 EAPI void elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
29022 EAPI Eina_Bool elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29024 EAPI void elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
29025 EAPI void elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
29026 EAPI Eina_Bool elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
29027 EAPI void elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
29028 EAPI void *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29029 EAPI const Elm_Store *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29030 EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
29033 * @defgroup SegmentControl SegmentControl
29034 * @ingroup Elementary
29036 * @image html img/widget/segment_control/preview-00.png
29037 * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
29039 * @image html img/segment_control.png
29040 * @image latex img/segment_control.eps width=\textwidth
29042 * Segment control widget is a horizontal control made of multiple segment
29043 * items, each segment item functioning similar to discrete two state button.
29044 * A segment control groups the items together and provides compact
29045 * single button with multiple equal size segments.
29047 * Segment item size is determined by base widget
29048 * size and the number of items added.
29049 * Only one segment item can be at selected state. A segment item can display
29050 * combination of Text and any Evas_Object like Images or other widget.
29052 * Smart callbacks one can listen to:
29053 * - "changed" - When the user clicks on a segment item which is not
29054 * previously selected and get selected. The event_info parameter is the
29055 * segment item pointer.
29057 * Available styles for it:
29060 * Here is an example on its usage:
29061 * @li @ref segment_control_example
29065 * @addtogroup SegmentControl
29069 typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
29072 * Add a new segment control widget to the given parent Elementary
29073 * (container) object.
29075 * @param parent The parent object.
29076 * @return a new segment control widget handle or @c NULL, on errors.
29078 * This function inserts a new segment control widget on the canvas.
29080 * @ingroup SegmentControl
29082 EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
29085 * Append a new item to the segment control object.
29087 * @param obj The segment control object.
29088 * @param icon The icon object to use for the left side of the item. An
29089 * icon can be any Evas object, but usually it is an icon created
29090 * with elm_icon_add().
29091 * @param label The label of the item.
29092 * Note that, NULL is different from empty string "".
29093 * @return The created item or @c NULL upon failure.
29095 * A new item will be created and appended to the segment control, i.e., will
29096 * be set as @b last item.
29098 * If it should be inserted at another position,
29099 * elm_segment_control_item_insert_at() should be used instead.
29101 * Items created with this function can be deleted with function
29102 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
29104 * @note @p label set to @c NULL is different from empty string "".
29106 * only has icon, it will be displayed bigger and centered. If it has
29107 * icon and label, even that an empty string, icon will be smaller and
29108 * positioned at left.
29112 * sc = elm_segment_control_add(win);
29113 * ic = elm_icon_add(win);
29114 * elm_icon_file_set(ic, "path/to/image", NULL);
29115 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
29116 * elm_segment_control_item_add(sc, ic, "label");
29117 * evas_object_show(sc);
29120 * @see elm_segment_control_item_insert_at()
29121 * @see elm_segment_control_item_del()
29123 * @ingroup SegmentControl
29125 EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
29128 * Insert a new item to the segment control object at specified position.
29130 * @param obj The segment control object.
29131 * @param icon The icon object to use for the left side of the item. An
29132 * icon can be any Evas object, but usually it is an icon created
29133 * with elm_icon_add().
29134 * @param label The label of the item.
29135 * @param index Item position. Value should be between 0 and items count.
29136 * @return The created item or @c NULL upon failure.
29138 * Index values must be between @c 0, when item will be prepended to
29139 * segment control, and items count, that can be get with
29140 * elm_segment_control_item_count_get(), case when item will be appended
29141 * to segment control, just like elm_segment_control_item_add().
29143 * Items created with this function can be deleted with function
29144 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
29146 * @note @p label set to @c NULL is different from empty string "".
29148 * only has icon, it will be displayed bigger and centered. If it has
29149 * icon and label, even that an empty string, icon will be smaller and
29150 * positioned at left.
29152 * @see elm_segment_control_item_add()
29153 * @see elm_segment_control_item_count_get()
29154 * @see elm_segment_control_item_del()
29156 * @ingroup SegmentControl
29158 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);
29161 * Remove a segment control item from its parent, deleting it.
29163 * @param it The item to be removed.
29165 * Items can be added with elm_segment_control_item_add() or
29166 * elm_segment_control_item_insert_at().
29168 * @ingroup SegmentControl
29170 EAPI void elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
29173 * Remove a segment control item at given index from its parent,
29176 * @param obj The segment control object.
29177 * @param index The position of the segment control item to be deleted.
29179 * Items can be added with elm_segment_control_item_add() or
29180 * elm_segment_control_item_insert_at().
29182 * @ingroup SegmentControl
29184 EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29187 * Get the Segment items count from segment control.
29189 * @param obj The segment control object.
29190 * @return Segment items count.
29192 * It will just return the number of items added to segment control @p obj.
29194 * @ingroup SegmentControl
29196 EAPI int elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29199 * Get the item placed at specified index.
29201 * @param obj The segment control object.
29202 * @param index The index of the segment item.
29203 * @return The segment control item or @c NULL on failure.
29205 * Index is the position of an item in segment control widget. Its
29206 * range is from @c 0 to <tt> count - 1 </tt>.
29207 * Count is the number of items, that can be get with
29208 * elm_segment_control_item_count_get().
29210 * @ingroup SegmentControl
29212 EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29215 * Get the label of item.
29217 * @param obj The segment control object.
29218 * @param index The index of the segment item.
29219 * @return The label of the item at @p index.
29221 * The return value is a pointer to the label associated to the item when
29222 * it was created, with function elm_segment_control_item_add(), or later
29223 * with function elm_segment_control_item_label_set. If no label
29224 * was passed as argument, it will return @c NULL.
29226 * @see elm_segment_control_item_label_set() for more details.
29227 * @see elm_segment_control_item_add()
29229 * @ingroup SegmentControl
29231 EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29234 * Set the label of item.
29236 * @param it The item of segment control.
29237 * @param text The label of item.
29239 * The label to be displayed by the item.
29240 * Label will be at right of the icon (if set).
29242 * If a label was passed as argument on item creation, with function
29243 * elm_control_segment_item_add(), it will be already
29244 * displayed by the item.
29246 * @see elm_segment_control_item_label_get()
29247 * @see elm_segment_control_item_add()
29249 * @ingroup SegmentControl
29251 EAPI void elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
29254 * Get the icon associated to the item.
29256 * @param obj The segment control object.
29257 * @param index The index of the segment item.
29258 * @return The left side icon associated to the item at @p index.
29260 * The return value is a pointer to the icon associated to the item when
29261 * it was created, with function elm_segment_control_item_add(), or later
29262 * with function elm_segment_control_item_icon_set(). If no icon
29263 * was passed as argument, it will return @c NULL.
29265 * @see elm_segment_control_item_add()
29266 * @see elm_segment_control_item_icon_set()
29268 * @ingroup SegmentControl
29270 EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
29273 * Set the icon associated to the item.
29275 * @param it The segment control item.
29276 * @param icon The icon object to associate with @p it.
29278 * The icon object to use at left side of the item. An
29279 * icon can be any Evas object, but usually it is an icon created
29280 * with elm_icon_add().
29282 * Once the icon object is set, a previously set one will be deleted.
29283 * @warning Setting the same icon for two items will cause the icon to
29284 * dissapear from the first item.
29286 * If an icon was passed as argument on item creation, with function
29287 * elm_segment_control_item_add(), it will be already
29288 * associated to the item.
29290 * @see elm_segment_control_item_add()
29291 * @see elm_segment_control_item_icon_get()
29293 * @ingroup SegmentControl
29295 EAPI void elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
29298 * Get the index of an item.
29300 * @param it The segment control item.
29301 * @return The position of item in segment control widget.
29303 * Index is the position of an item in segment control widget. Its
29304 * range is from @c 0 to <tt> count - 1 </tt>.
29305 * Count is the number of items, that can be get with
29306 * elm_segment_control_item_count_get().
29308 * @ingroup SegmentControl
29310 EAPI int elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
29313 * Get the base object of the item.
29315 * @param it The segment control item.
29316 * @return The base object associated with @p it.
29318 * Base object is the @c Evas_Object that represents that item.
29320 * @ingroup SegmentControl
29322 EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
29325 * Get the selected item.
29327 * @param obj The segment control object.
29328 * @return The selected item or @c NULL if none of segment items is
29331 * The selected item can be unselected with function
29332 * elm_segment_control_item_selected_set().
29334 * The selected item always will be highlighted on segment control.
29336 * @ingroup SegmentControl
29338 EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29341 * Set the selected state of an item.
29343 * @param it The segment control item
29344 * @param select The selected state
29346 * This sets the selected state of the given item @p it.
29347 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
29349 * If a new item is selected the previosly selected will be unselected.
29350 * Previoulsy selected item can be get with function
29351 * elm_segment_control_item_selected_get().
29353 * The selected item always will be highlighted on segment control.
29355 * @see elm_segment_control_item_selected_get()
29357 * @ingroup SegmentControl
29359 EAPI void elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
29366 * @defgroup Grid Grid
29368 * The grid is a grid layout widget that lays out a series of children as a
29369 * fixed "grid" of widgets using a given percentage of the grid width and
29370 * height each using the child object.
29372 * The Grid uses a "Virtual resolution" that is stretched to fill the grid
29373 * widgets size itself. The default is 100 x 100, so that means the
29374 * position and sizes of children will effectively be percentages (0 to 100)
29375 * of the width or height of the grid widget
29381 * Add a new grid to the parent
29383 * @param parent The parent object
29384 * @return The new object or NULL if it cannot be created
29388 EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
29391 * Set the virtual size of the grid
29393 * @param obj The grid object
29394 * @param w The virtual width of the grid
29395 * @param h The virtual height of the grid
29399 EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h);
29402 * Get the virtual size of the grid
29404 * @param obj The grid object
29405 * @param w Pointer to integer to store the virtual width of the grid
29406 * @param h Pointer to integer to store the virtual height of the grid
29410 EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h);
29413 * Pack child at given position and size
29415 * @param obj The grid object
29416 * @param subobj The child to pack
29417 * @param x The virtual x coord at which to pack it
29418 * @param y The virtual y coord at which to pack it
29419 * @param w The virtual width at which to pack it
29420 * @param h The virtual height at which to pack it
29424 EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
29427 * Unpack a child from a grid object
29429 * @param obj The grid object
29430 * @param subobj The child to unpack
29434 EAPI void elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
29437 * Faster way to remove all child objects from a grid object.
29439 * @param obj The grid object
29440 * @param clear If true, it will delete just removed children
29444 EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
29447 * Set packing of an existing child at to position and size
29449 * @param subobj The child to set packing of
29450 * @param x The virtual x coord at which to pack it
29451 * @param y The virtual y coord at which to pack it
29452 * @param w The virtual width at which to pack it
29453 * @param h The virtual height at which to pack it
29457 EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
29460 * get packing of a child
29462 * @param subobj The child to query
29463 * @param x Pointer to integer to store the virtual x coord
29464 * @param y Pointer to integer to store the virtual y coord
29465 * @param w Pointer to integer to store the virtual width
29466 * @param h Pointer to integer to store the virtual height
29470 EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
29476 EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
29477 EINA_DEPRECATED EAPI void elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
29478 EINA_DEPRECATED EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
29479 EAPI void elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
29480 EAPI Eina_Bool elm_factory_maxmin_mode_get(const Evas_Object *obj);
29481 EAPI void elm_factory_maxmin_reset_set(Evas_Object *obj);
29484 * @defgroup Video Video
29486 * @addtogroup Video
29489 * Elementary comes with two object that help design application that need
29490 * to display video. The main one, Elm_Video, display a video by using Emotion.
29491 * It does embedded the video inside an Edje object, so you can do some
29492 * animation depending on the video state change. It does also implement a
29493 * ressource management policy to remove this burden from the application writer.
29495 * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
29496 * It take care of updating its content according to Emotion event and provide a
29497 * way to theme itself. It also does automatically raise the priority of the
29498 * linked Elm_Video so it will use the video decoder if available. It also does
29499 * activate the remember function on the linked Elm_Video object.
29501 * Signals that you can add callback for are :
29503 * "forward,clicked" - the user clicked the forward button.
29504 * "info,clicked" - the user clicked the info button.
29505 * "next,clicked" - the user clicked the next button.
29506 * "pause,clicked" - the user clicked the pause button.
29507 * "play,clicked" - the user clicked the play button.
29508 * "prev,clicked" - the user clicked the prev button.
29509 * "rewind,clicked" - the user clicked the rewind button.
29510 * "stop,clicked" - the user clicked the stop button.
29512 * Default contents parts of the player widget that you can use for are:
29513 * @li "video" - A video of the player
29518 * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
29520 * @param parent The parent object
29521 * @return a new player widget handle or @c NULL, on errors.
29523 * This function inserts a new player widget on the canvas.
29525 * @see elm_object_part_content_set()
29529 EAPI Evas_Object *elm_player_add(Evas_Object *parent);
29532 * @brief Link a Elm_Payer with an Elm_Video object.
29534 * @param player the Elm_Player object.
29535 * @param video The Elm_Video object.
29537 * This mean that action on the player widget will affect the
29538 * video object and the state of the video will be reflected in
29539 * the player itself.
29541 * @see elm_player_add()
29542 * @see elm_video_add()
29543 * @deprecated use elm_object_part_content_set() instead
29547 EINA_DEPRECATED EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
29550 * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
29552 * @param parent The parent object
29553 * @return a new video widget handle or @c NULL, on errors.
29555 * This function inserts a new video widget on the canvas.
29557 * @seeelm_video_file_set()
29558 * @see elm_video_uri_set()
29562 EAPI Evas_Object *elm_video_add(Evas_Object *parent);
29565 * @brief Define the file that will be the video source.
29567 * @param video The video object to define the file for.
29568 * @param filename The file to target.
29570 * This function will explicitly define a filename as a source
29571 * for the video of the Elm_Video object.
29573 * @see elm_video_uri_set()
29574 * @see elm_video_add()
29575 * @see elm_player_add()
29579 EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
29582 * @brief Define the uri that will be the video source.
29584 * @param video The video object to define the file for.
29585 * @param uri The uri to target.
29587 * This function will define an uri as a source for the video of the
29588 * Elm_Video object. URI could be remote source of video, like http:// or local source
29589 * like for example WebCam who are most of the time v4l2:// (but that depend and
29590 * you should use Emotion API to request and list the available Webcam on your system).
29592 * @see elm_video_file_set()
29593 * @see elm_video_add()
29594 * @see elm_player_add()
29598 EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
29601 * @brief Get the underlying Emotion object.
29603 * @param video The video object to proceed the request on.
29604 * @return the underlying Emotion object.
29608 EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
29611 * @brief Start to play the video
29613 * @param video The video object to proceed the request on.
29615 * Start to play the video and cancel all suspend state.
29619 EAPI void elm_video_play(Evas_Object *video);
29622 * @brief Pause the video
29624 * @param video The video object to proceed the request on.
29626 * Pause the video and start a timer to trigger suspend mode.
29630 EAPI void elm_video_pause(Evas_Object *video);
29633 * @brief Stop the video
29635 * @param video The video object to proceed the request on.
29637 * Stop the video and put the emotion in deep sleep mode.
29641 EAPI void elm_video_stop(Evas_Object *video);
29644 * @brief Is the video actually playing.
29646 * @param video The video object to proceed the request on.
29647 * @return EINA_TRUE if the video is actually playing.
29649 * You should consider watching event on the object instead of polling
29650 * the object state.
29654 EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
29657 * @brief Is it possible to seek inside the video.
29659 * @param video The video object to proceed the request on.
29660 * @return EINA_TRUE if is possible to seek inside the video.
29664 EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
29667 * @brief Is the audio muted.
29669 * @param video The video object to proceed the request on.
29670 * @return EINA_TRUE if the audio is muted.
29674 EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
29677 * @brief Change the mute state of the Elm_Video object.
29679 * @param video The video object to proceed the request on.
29680 * @param mute The new mute state.
29684 EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
29687 * @brief Get the audio level of the current video.
29689 * @param video The video object to proceed the request on.
29690 * @return the current audio level.
29694 EAPI double elm_video_audio_level_get(const Evas_Object *video);
29697 * @brief Set the audio level of anElm_Video object.
29699 * @param video The video object to proceed the request on.
29700 * @param volume The new audio volume.
29704 EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
29706 EAPI double elm_video_play_position_get(const Evas_Object *video);
29707 EAPI void elm_video_play_position_set(Evas_Object *video, double position);
29708 EAPI double elm_video_play_length_get(const Evas_Object *video);
29709 EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
29710 EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
29711 EAPI const char *elm_video_title_get(const Evas_Object *video);
29717 * @defgroup Naviframe Naviframe
29718 * @ingroup Elementary
29720 * @brief Naviframe is a kind of view manager for the applications.
29722 * Naviframe provides functions to switch different pages with stack
29723 * mechanism. It means if one page(item) needs to be changed to the new one,
29724 * then naviframe would push the new page to it's internal stack. Of course,
29725 * it can be back to the previous page by popping the top page. Naviframe
29726 * provides some transition effect while the pages are switching (same as
29729 * Since each item could keep the different styles, users could keep the
29730 * same look & feel for the pages or different styles for the items in it's
29733 * Signals that you can add callback for are:
29734 * @li "transition,finished" - When the transition is finished in changing
29736 * @li "title,clicked" - User clicked title area
29738 * Default contents parts of the naviframe items that you can use for are:
29739 * @li "default" - A main content of the page
29740 * @li "icon" - An icon in the title area
29741 * @li "prev_btn" - A button to go to the previous page
29742 * @li "next_btn" - A button to go to the next page
29744 * Default text parts of the naviframe items that you can use for are:
29745 * @li "default" - Title label in the title area
29746 * @li "subtitle" - Sub-title label in the title area
29748 * Supported elm_object common APIs.
29749 * @li elm_object_signal_emit
29751 * Supported elm_object_item common APIs.
29752 * @li elm_object_item_text_set
29753 * @li elm_object_item_part_text_set
29754 * @li elm_object_item_text_get
29755 * @li elm_object_item_part_text_get
29756 * @li elm_object_item_content_set
29757 * @li elm_object_item_part_content_set
29758 * @li elm_object_item_content_get
29759 * @li elm_object_item_part_content_get
29760 * @li elm_object_item_content_unset
29761 * @li elm_object_item_part_content_unset
29762 * @li elm_object_item_signal_emit
29764 * @ref tutorial_naviframe gives a good overview of the usage of the API.
29768 * @addtogroup Naviframe
29773 * @brief Add a new Naviframe object to the parent.
29775 * @param parent Parent object
29776 * @return New object or @c NULL, if it cannot be created
29778 * @ingroup Naviframe
29780 EAPI Evas_Object *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
29783 * @brief Push a new item to the top of the naviframe stack (and show it).
29785 * @param obj The naviframe object
29786 * @param title_label The label in the title area. The name of the title
29787 * label part is "elm.text.title"
29788 * @param prev_btn The button to go to the previous item. If it is NULL,
29789 * then naviframe will create a back button automatically. The name of
29790 * the prev_btn part is "elm.swallow.prev_btn"
29791 * @param next_btn The button to go to the next item. Or It could be just an
29792 * extra function button. The name of the next_btn part is
29793 * "elm.swallow.next_btn"
29794 * @param content The main content object. The name of content part is
29795 * "elm.swallow.content"
29796 * @param item_style The current item style name. @c NULL would be default.
29797 * @return The created item or @c NULL upon failure.
29799 * The item pushed becomes one page of the naviframe, this item will be
29800 * deleted when it is popped.
29802 * @see also elm_naviframe_item_style_set()
29803 * @see also elm_naviframe_item_insert_before()
29804 * @see also elm_naviframe_item_insert_after()
29806 * The following styles are available for this item:
29809 * @ingroup Naviframe
29811 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);
29814 * @brief Insert a new item into the naviframe before item @p before.
29816 * @param before The naviframe item to insert before.
29817 * @param title_label The label in the title area. The name of the title
29818 * label part is "elm.text.title"
29819 * @param prev_btn The button to go to the previous item. If it is NULL,
29820 * then naviframe will create a back button automatically. The name of
29821 * the prev_btn part is "elm.swallow.prev_btn"
29822 * @param next_btn The button to go to the next item. Or It could be just an
29823 * extra function button. The name of the next_btn part is
29824 * "elm.swallow.next_btn"
29825 * @param content The main content object. The name of content part is
29826 * "elm.swallow.content"
29827 * @param item_style The current item style name. @c NULL would be default.
29828 * @return The created item or @c NULL upon failure.
29830 * The item is inserted into the naviframe straight away without any
29831 * transition operations. This item will be deleted when it is popped.
29833 * @see also elm_naviframe_item_style_set()
29834 * @see also elm_naviframe_item_push()
29835 * @see also elm_naviframe_item_insert_after()
29837 * The following styles are available for this item:
29840 * @ingroup Naviframe
29842 EAPI Elm_Object_Item *elm_naviframe_item_insert_before(Elm_Object_Item *before, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
29845 * @brief Insert a new item into the naviframe after item @p after.
29847 * @param after The naviframe item to insert after.
29848 * @param title_label The label in the title area. The name of the title
29849 * label part is "elm.text.title"
29850 * @param prev_btn The button to go to the previous item. If it is NULL,
29851 * then naviframe will create a back button automatically. The name of
29852 * the prev_btn part is "elm.swallow.prev_btn"
29853 * @param next_btn The button to go to the next item. Or It could be just an
29854 * extra function button. The name of the next_btn part is
29855 * "elm.swallow.next_btn"
29856 * @param content The main content object. The name of content part is
29857 * "elm.swallow.content"
29858 * @param item_style The current item style name. @c NULL would be default.
29859 * @return The created item or @c NULL upon failure.
29861 * The item is inserted into the naviframe straight away without any
29862 * transition operations. This item will be deleted when it is popped.
29864 * @see also elm_naviframe_item_style_set()
29865 * @see also elm_naviframe_item_push()
29866 * @see also elm_naviframe_item_insert_before()
29868 * The following styles are available for this item:
29871 * @ingroup Naviframe
29873 EAPI Elm_Object_Item *elm_naviframe_item_insert_after(Elm_Object_Item *after, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
29876 * @brief Pop an item that is on top of the stack
29878 * @param obj The naviframe object
29879 * @return @c NULL or the content object(if the
29880 * elm_naviframe_content_preserve_on_pop_get is true).
29882 * This pops an item that is on the top(visible) of the naviframe, makes it
29883 * disappear, then deletes the item. The item that was underneath it on the
29884 * stack will become visible.
29886 * @see also elm_naviframe_content_preserve_on_pop_get()
29888 * @ingroup Naviframe
29890 EAPI Evas_Object *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
29893 * @brief Pop the items between the top and the above one on the given item.
29895 * @param it The naviframe item
29897 * @ingroup Naviframe
29899 EAPI void elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29902 * Promote an item already in the naviframe stack to the top of the stack
29904 * @param it The naviframe item
29906 * This will take the indicated item and promote it to the top of the stack
29907 * as if it had been pushed there. The item must already be inside the
29908 * naviframe stack to work.
29911 EAPI void elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29914 * @brief Delete the given item instantly.
29916 * @param it The naviframe item
29918 * This just deletes the given item from the naviframe item list instantly.
29919 * So this would not emit any signals for view transitions but just change
29920 * the current view if the given item is a top one.
29922 * @ingroup Naviframe
29924 EAPI void elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
29927 * @brief preserve the content objects when items are popped.
29929 * @param obj The naviframe object
29930 * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
29932 * @see also elm_naviframe_content_preserve_on_pop_get()
29934 * @ingroup Naviframe
29936 EAPI void elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
29939 * @brief Get a value whether preserve mode is enabled or not.
29941 * @param obj The naviframe object
29942 * @return If @c EINA_TRUE, preserve mode is enabled
29944 * @see also elm_naviframe_content_preserve_on_pop_set()
29946 * @ingroup Naviframe
29948 EAPI Eina_Bool elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29951 * @brief Get a top item on the naviframe stack
29953 * @param obj The naviframe object
29954 * @return The top item on the naviframe stack or @c NULL, if the stack is
29957 * @ingroup Naviframe
29959 EAPI Elm_Object_Item *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29962 * @brief Get a bottom item on the naviframe stack
29964 * @param obj The naviframe object
29965 * @return The bottom item on the naviframe stack or @c NULL, if the stack is
29968 * @ingroup Naviframe
29970 EAPI Elm_Object_Item *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
29973 * @brief Set an item style
29975 * @param obj The naviframe item
29976 * @param item_style The current item style name. @c NULL would be default
29978 * The following styles are available for this item:
29981 * @see also elm_naviframe_item_style_get()
29983 * @ingroup Naviframe
29985 EAPI void elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
29988 * @brief Get an item style
29990 * @param obj The naviframe item
29991 * @return The current item style name
29993 * @see also elm_naviframe_item_style_set()
29995 * @ingroup Naviframe
29997 EAPI const char *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
30000 * @brief Show/Hide the title area
30002 * @param it The naviframe item
30003 * @param visible If @c EINA_TRUE, title area will be visible, hidden
30006 * When the title area is invisible, then the controls would be hidden so as * to expand the content area to full-size.
30008 * @see also elm_naviframe_item_title_visible_get()
30010 * @ingroup Naviframe
30012 EAPI void elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
30015 * @brief Get a value whether title area is visible or not.
30017 * @param it The naviframe item
30018 * @return If @c EINA_TRUE, title area is visible
30020 * @see also elm_naviframe_item_title_visible_set()
30022 * @ingroup Naviframe
30024 EAPI Eina_Bool elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
30027 * @brief Set creating prev button automatically or not
30029 * @param obj The naviframe object
30030 * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
30031 * be created internally when you pass the @c NULL to the prev_btn
30032 * parameter in elm_naviframe_item_push
30034 * @see also elm_naviframe_item_push()
30036 * @ingroup Naviframe
30038 EAPI void elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
30041 * @brief Get a value whether prev button(back button) will be auto pushed or
30044 * @param obj The naviframe object
30045 * @return If @c EINA_TRUE, prev button will be auto pushed.
30047 * @see also elm_naviframe_item_push()
30048 * elm_naviframe_prev_btn_auto_pushed_set()
30050 * @ingroup Naviframe
30052 EAPI Eina_Bool elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30055 * @brief Get a list of all the naviframe items.
30057 * @param obj The naviframe object
30058 * @return An Eina_Inlist* of naviframe items, #Elm_Object_Item,
30059 * or @c NULL on failure.
30061 * @ingroup Naviframe
30063 EAPI Eina_Inlist *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30066 * @brief Set the event enabled when pushing/popping items
30068 * If @c enabled is EINA_TRUE, the contents of the naviframe item will
30069 * receives events from mouse and keyboard during view changing such as
30072 * @param obj The naviframe object
30073 * @param enabled Events are received when enabled is @c EINA_TRUE, and
30074 * ignored otherwise.
30076 * @warning Events will be blocked by calling evas_object_freeze_events_set()
30077 * internally. So don't call the API whiling pushing/popping items.
30079 * @see elm_naviframe_event_enabled_get()
30080 * @see evas_object_freeze_events_set()
30082 * @ingroup Naviframe
30084 EAPI void elm_naviframe_event_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
30087 * @brief Get the value of event enabled status.
30089 * @param obj The naviframe object
30090 * @return EINA_TRUE, when event is enabled
30092 * @see elm_naviframe_event_enabled_set()
30094 * @ingroup Naviframe
30096 EAPI Eina_Bool elm_naviframe_event_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30103 * @defgroup Multibuttonentry Multibuttonentry
30105 * A Multibuttonentry is a widget to allow a user enter text and manage it as a number of buttons
30106 * Each text button is inserted by pressing the "return" key. If there is no space in the current row,
30107 * a new button is added to the next row. When a text button is pressed, it will become focused.
30108 * Backspace removes the focus.
30109 * When the Multibuttonentry loses focus items longer than 1 lines are shrunk to one line.
30111 * Smart callbacks one can register:
30112 * - @c "item,selected" - when item is selected. May be called on backspace key.
30113 * - @c "item,added" - when a new multibuttonentry item is added.
30114 * - @c "item,deleted" - when a multibuttonentry item is deleted.
30115 * - @c "item,clicked" - selected item of multibuttonentry is clicked.
30116 * - @c "clicked" - when multibuttonentry is clicked.
30117 * - @c "focused" - when multibuttonentry is focused.
30118 * - @c "unfocused" - when multibuttonentry is unfocused.
30119 * - @c "expanded" - when multibuttonentry is expanded.
30120 * - @c "shrank" - when multibuttonentry is shrank.
30121 * - @c "shrank,state,changed" - when shrink mode state of multibuttonentry is changed.
30123 * Here is an example on its usage:
30124 * @li @ref multibuttonentry_example
30128 * @addtogroup Multibuttonentry
30132 typedef struct _Multibuttonentry_Item Elm_Multibuttonentry_Item;
30133 typedef Eina_Bool (*Elm_Multibuttonentry_Item_Filter_callback) (Evas_Object *obj, const char *item_label, void *item_data, void *data);
30136 * @brief Add a new multibuttonentry to the parent
30138 * @param parent The parent object
30139 * @return The new object or NULL if it cannot be created
30142 EAPI Evas_Object *elm_multibuttonentry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
30147 * @param obj The multibuttonentry object
30148 * @return The label, or NULL if none
30151 EAPI const char *elm_multibuttonentry_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30156 * @param obj The multibuttonentry object
30157 * @param label The text label string
30160 EAPI void elm_multibuttonentry_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
30163 * Get the entry of the multibuttonentry object
30165 * @param obj The multibuttonentry object
30166 * @return The entry object, or NULL if none
30169 EAPI Evas_Object *elm_multibuttonentry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30172 * Get the guide text
30174 * @param obj The multibuttonentry object
30175 * @return The guide text, or NULL if none
30178 EAPI const char * elm_multibuttonentry_guide_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30181 * Set the guide text
30183 * @param obj The multibuttonentry object
30184 * @param label The guide text string
30187 EAPI void elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext) EINA_ARG_NONNULL(1);
30190 * Get the value of shrink_mode state.
30192 * @param obj The multibuttonentry object
30193 * @param the value of shrink mode state.
30196 EAPI int elm_multibuttonentry_shrink_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30199 * Set/Unset the multibuttonentry to shrink mode state of single line
30201 * @param obj The multibuttonentry object
30202 * @param the value of shrink_mode state. set this to 1 to set the multibuttonentry to shrink state of single line. set this to 0 to unset the contracted state.
30205 EAPI void elm_multibuttonentry_shrink_mode_set(Evas_Object *obj, int shrink) EINA_ARG_NONNULL(1);
30208 * Prepend a new item to the multibuttonentry
30210 * @param obj The multibuttonentry object
30211 * @param label The label of new item
30212 * @param data The ponter to the data to be attached
30213 * @return A handle to the item added or NULL if not possible
30216 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prepend(Evas_Object *obj, const char *label, void *data) EINA_ARG_NONNULL(1);
30219 * Append a new item to the multibuttonentry
30221 * @param obj The multibuttonentry object
30222 * @param label The label of new item
30223 * @param data The ponter to the data to be attached
30224 * @return A handle to the item added or NULL if not possible
30227 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_append(Evas_Object *obj, const char *label, void *data) EINA_ARG_NONNULL(1);
30230 * Add a new item to the multibuttonentry before the indicated object
30233 * @param obj The multibuttonentry object
30234 * @param before The item before which to add it
30235 * @param label The label of new item
30236 * @param data The ponter to the data to be attached
30237 * @return A handle to the item added or NULL if not possible
30240 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_insert_before(Evas_Object *obj, Elm_Multibuttonentry_Item *before, const char *label, void *data) EINA_ARG_NONNULL(1);
30243 * Add a new item to the multibuttonentry after the indicated object
30245 * @param obj The multibuttonentry object
30246 * @param after The item after which to add it
30247 * @param label The label of new item
30248 * @param data The ponter to the data to be attached
30249 * @return A handle to the item added or NULL if not possible
30252 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_insert_after(Evas_Object *obj, Elm_Multibuttonentry_Item *after, const char *label, void *data) EINA_ARG_NONNULL(1);
30255 * Get a list of items in the multibuttonentry
30257 * @param obj The multibuttonentry object
30258 * @return The list of items, or NULL if none
30261 EAPI const Eina_List *elm_multibuttonentry_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30264 * Get the first item in the multibuttonentry
30266 * @param obj The multibuttonentry object
30267 * @return The first item, or NULL if none
30270 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30273 * Get the last item in the multibuttonentry
30275 * @param obj The multibuttonentry object
30276 * @return The last item, or NULL if none
30279 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30282 * Get the selected item in the multibuttonentry
30284 * @param obj The multibuttonentry object
30285 * @return The selected item, or NULL if none
30288 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
30291 * Set the selected state of an item
30293 * @param item The item
30294 * @param selected if it's EINA_TRUE, select the item otherwise, unselect the item
30297 EAPI void elm_multibuttonentry_item_select(Elm_Multibuttonentry_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
30300 * unselect all items.
30302 * @param obj The multibuttonentry object
30305 EAPI void elm_multibuttonentry_item_unselect_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
30308 * Delete a given item
30310 * @param item The item
30313 EAPI void elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30316 * Remove all items in the multibuttonentry.
30318 * @param obj The multibuttonentry object
30321 EAPI void elm_multibuttonentry_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
30324 * Get the label of a given item
30326 * @param item The item
30327 * @return The label of a given item, or NULL if none
30330 EAPI const char *elm_multibuttonentry_item_label_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30333 * Set the label of a given item
30335 * @param item The item
30336 * @param label The text label string
30339 EAPI void elm_multibuttonentry_item_label_set(Elm_Multibuttonentry_Item *item, const char *str) EINA_ARG_NONNULL(1);
30342 * Get the previous item in the multibuttonentry
30344 * @param item The item
30345 * @return The item before the item @p item
30348 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prev_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30351 * Get the next item in the multibuttonentry
30353 * @param item The item
30354 * @return The item after the item @p item
30357 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_next_get(const Elm_Multibuttonentry_Item *item) EINA_ARG_NONNULL(1);
30360 * Append a item filter function for text inserted in the Multibuttonentry
30362 * Append the given callback to the list. This functions will be called
30363 * whenever any text is inserted into the Multibuttonentry, with the text to be inserted
30364 * as a parameter. The callback function is free to alter the text in any way
30365 * it wants, but it must remember to free the given pointer and update it.
30366 * If the new text is to be discarded, the function can free it and set it text
30367 * parameter to NULL. This will also prevent any following filters from being
30370 * @param obj The multibuttonentryentry object
30371 * @param func The function to use as item filter
30372 * @param data User data to pass to @p func
30375 EAPI void elm_multibuttonentry_item_filter_append(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
30378 * Prepend a filter function for text inserted in the Multibuttentry
30380 * Prepend the given callback to the list. See elm_multibuttonentry_item_filter_append()
30381 * for more information
30383 * @param obj The multibuttonentry object
30384 * @param func The function to use as text filter
30385 * @param data User data to pass to @p func
30388 EAPI void elm_multibuttonentry_item_filter_prepend(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
30391 * Remove a filter from the list
30393 * Removes the given callback from the filter list. See elm_multibuttonentry_item_filter_append()
30394 * for more information.
30396 * @param obj The multibuttonentry object
30397 * @param func The filter function to remove
30398 * @param data The user data passed when adding the function
30401 EAPI void elm_multibuttonentry_item_filter_remove(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_callback func, void *data) EINA_ARG_NONNULL(1);
30408 * @addtogroup CopyPaste
30412 typedef struct _Elm_Selection_Data Elm_Selection_Data;
30413 typedef Eina_Bool (*Elm_Drop_Cb) (void *d, Evas_Object *o, Elm_Selection_Data *data);
30415 typedef enum _Elm_Sel_Type
30417 ELM_SEL_TYPE_PRIMARY,
30418 ELM_SEL_TYPE_SECONDARY,
30419 ELM_SEL_TYPE_CLIPBOARD,
30425 typedef enum _Elm_Sel_Format
30427 /** Targets: for matching every atom requesting */
30428 ELM_SEL_FORMAT_TARGETS = -1,
30429 /** they come from outside of elm */
30430 ELM_SEL_FORMAT_NONE = 0x0,
30431 /** Plain unformated text: Used for things that don't want rich markup */
30432 ELM_SEL_FORMAT_TEXT = 0x01,
30433 /** Edje textblock markup, including inline images */
30434 ELM_SEL_FORMAT_MARKUP = 0x02,
30436 ELM_SEL_FORMAT_IMAGE = 0x04,
30438 ELM_SEL_FORMAT_VCARD = 0x08,
30439 /** Raw HTMLish things for widgets that want that stuff (hello webkit!) */
30440 ELM_SEL_FORMAT_HTML = 0x10,
30445 struct _Elm_Selection_Data
30448 Elm_Sel_Format format;
30454 * @brief Set a data of a widget to copy and paste.
30456 * Append the given callback to the list. This functions will be called
30459 * @param selection selection type for copying and pasting
30460 * @param widget The source widget pointer
30461 * @param format Type of selection format
30462 * @param buf The pointer of data source
30463 * @return If EINA_TRUE, setting data is success.
30465 * @ingroup CopyPaste
30469 EAPI Eina_Bool elm_cnp_selection_set(Elm_Sel_Type selection, Evas_Object *widget, Elm_Sel_Format format, const void *buf, size_t buflen);
30472 * @brief Retrive the data from the widget which is set for copying and pasting.
30474 * Getting the data from the widget which is set for copying and pasting.
30475 * Mainly the widget is elm_entry. If then @p datacb and @p udata are
30476 * can be NULL. If not, @p datacb and @p udata are used for retriving data.
30478 * @see also elm_cnp_selection_set()
30480 * @param selection selection type for copying and pasting
30481 * @param widget The source widget pointer
30482 * @param datacb The user data callback if the target widget isn't elm_entry
30483 * @param udata The user data pointer for @p datacb
30484 * @return If EINA_TRUE, getting data is success.
30486 * @ingroup CopyPaste
30490 EAPI Eina_Bool elm_cnp_selection_get(Elm_Sel_Type selection, Elm_Sel_Format format, Evas_Object *widget, Elm_Drop_Cb datacb, void *udata);
30493 * @brief Clear the data in the widget which is set for copying and pasting.
30495 * Clear the data in the widget. Normally this function isn't need to call.
30497 * @see also elm_cnp_selection_set()
30499 * @param selection selection type for copying and pasting
30500 * @param widget The source widget pointer
30501 * @return If EINA_TRUE, clearing data is success.
30503 * @ingroup CopyPaste
30507 EAPI Eina_Bool elm_cnp_selection_clear(Elm_Sel_Type selection, Evas_Object *widget);