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
244 @page authors Authors
245 @author Carsten Haitzler <raster@@rasterman.com>
246 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
247 @author Cedric Bail <cedric.bail@@free.fr>
248 @author Vincent Torri <vtorri@@univ-evry.fr>
249 @author Daniel Kolesa <quaker66@@gmail.com>
250 @author Jaime Thomas <avi.thomas@@gmail.com>
251 @author Swisscom - http://www.swisscom.ch/
252 @author Christopher Michael <devilhorns@@comcast.net>
253 @author Marco Trevisan (TreviƱo) <mail@@3v1n0.net>
254 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
255 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
256 @author Brian Wang <brian.wang.0721@@gmail.com>
257 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
258 @author Samsung Electronics <tbd>
259 @author Samsung SAIT <tbd>
260 @author Brett Nash <nash@@nash.id.au>
261 @author Bruno Dilly <bdilly@@profusion.mobi>
262 @author Rafael Fonseca <rfonseca@@profusion.mobi>
263 @author Chuneon Park <hermet@@hermet.pe.kr>
264 @author Woohyun Jung <wh0705.jung@@samsung.com>
265 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
266 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
267 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
268 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
269 @author Gustavo Lima Chaves <glima@@profusion.mobi>
270 @author Fabiano FidĆŖncio <fidencio@@profusion.mobi>
271 @author Tiago FalcĆ£o <tiago@@profusion.mobi>
272 @author Otavio Pontes <otavio@@profusion.mobi>
273 @author Viktor Kojouharov <vkojouharov@@gmail.com>
274 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
275 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
276 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
277 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
278 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
279 @author Jihoon Kim <jihoon48.kim@@samsung.com>
280 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
281 @author Tom Hacohen <tom@@stosb.com>
282 @author Aharon Hillel <a.hillel@@partner.samsung.com>
283 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
284 @author Shinwoo Kim <kimcinoo@@gmail.com>
285 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
286 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
287 @author Sung W. Park <sungwoo@gmail.com>
288 @author Thierry el Borgi <thierry@substantiel.fr>
289 @author Shilpa Singh <shilpa.singh@samsung.com> <shilpasingh.o@gmail.com>
290 @author Chanwook Jung <joey.jung@samsung.com>
291 @author Hyoyoung Chang <hyoyoung.chang@samsung.com>
292 @author Guillaume "Kuri" Friloux <guillaume.friloux@asp64.com>
293 @author Kim Yunhan <spbear@gmail.com>
295 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
296 contact with the developers and maintainers.
304 * @brief Elementary's API
309 @ELM_UNIX_DEF@ ELM_UNIX
310 @ELM_WIN32_DEF@ ELM_WIN32
311 @ELM_WINCE_DEF@ ELM_WINCE
312 @ELM_EDBUS_DEF@ ELM_EDBUS
313 @ELM_EFREET_DEF@ ELM_EFREET
314 @ELM_ETHUMB_DEF@ ELM_ETHUMB
315 @ELM_WEB_DEF@ ELM_WEB
316 @ELM_EMAP_DEF@ ELM_EMAP
317 @ELM_DEBUG_DEF@ ELM_DEBUG
318 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
319 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
320 @ELM_DIRENT_H_DEF@ ELM_DIRENT_H
322 /* Standard headers for standard system calls etc. */
327 #include <sys/types.h>
328 #include <sys/stat.h>
329 #include <sys/time.h>
330 #include <sys/param.h>
344 # ifdef ELM_LIBINTL_H
345 # include <libintl.h>
356 #if defined (ELM_WIN32) || defined (ELM_WINCE)
359 # define alloca _alloca
368 // disabled - evas 1.1 won't have this.
369 //#include <Evas_GL.h>
371 #include <Ecore_Evas.h>
372 #include <Ecore_File.h>
373 @ELEMENTARY_ECORE_IMF_INC@
374 @ELEMENTARY_ECORE_CON_INC@
383 # include <Efreet_Mime.h>
384 # include <Efreet_Trash.h>
388 # include <Ethumb_Client.h>
400 # ifdef ELEMENTARY_BUILD
402 # define EAPI __declspec(dllexport)
405 # endif /* ! DLL_EXPORT */
407 # define EAPI __declspec(dllimport)
408 # endif /* ! EFL_EVAS_BUILD */
412 # define EAPI __attribute__ ((visibility("default")))
419 #endif /* ! _WIN32 */
424 # define EAPI_MAIN EAPI
427 /* allow usage from c++ */
432 #define ELM_VERSION_MAJOR @VMAJ@
433 #define ELM_VERSION_MINOR @VMIN@
435 typedef struct _Elm_Version
443 EAPI extern Elm_Version *elm_version;
446 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
447 #define ELM_PI 3.14159265358979323846
450 * @defgroup General General
452 * @brief General Elementary API. Functions that don't relate to
453 * Elementary objects specifically.
455 * Here are documented functions which init/shutdown the library,
456 * that apply to generic Elementary objects, that deal with
457 * configuration, et cetera.
459 * @ref general_functions_example_page "This" example contemplates
460 * some of these functions.
464 * @addtogroup General
469 * Defines couple of standard Evas_Object layers to be used
470 * with evas_object_layer_set().
472 * @note whenever extending with new values, try to keep some padding
473 * to siblings so there is room for further extensions.
475 typedef enum _Elm_Object_Layer
477 ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
478 ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
479 ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
480 ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
481 ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
482 ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
485 /**************************************************************************/
486 EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
489 * Emitted when the application has reconfigured elementary settings due
490 * to an external configuration tool asking it to.
492 EAPI extern int ELM_EVENT_CONFIG_ALL_CHANGED;
495 * Emitted when any Elementary's policy value is changed.
497 EAPI extern int ELM_EVENT_POLICY_CHANGED;
500 * @typedef Elm_Event_Policy_Changed
502 * Data on the event when an Elementary policy has changed
504 typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
507 * @struct _Elm_Event_Policy_Changed
509 * Data on the event when an Elementary policy has changed
511 struct _Elm_Event_Policy_Changed
513 unsigned int policy; /**< the policy identifier */
514 int new_value; /**< value the policy had before the change */
515 int old_value; /**< new value the policy got */
519 * Policy identifiers.
521 typedef enum _Elm_Policy
523 ELM_POLICY_QUIT, /**< under which circumstances the application
524 * should quit automatically. @see
528 } Elm_Policy; /**< Elementary policy identifiers/groups enumeration. @see elm_policy_set()
531 typedef enum _Elm_Policy_Quit
533 ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
535 ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
537 * window is closed */
538 } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
540 typedef enum _Elm_Focus_Direction
544 } Elm_Focus_Direction;
546 typedef enum _Elm_Text_Format
548 ELM_TEXT_FORMAT_PLAIN_UTF8,
549 ELM_TEXT_FORMAT_MARKUP_UTF8
553 * Line wrapping types.
555 typedef enum _Elm_Wrap_Type
557 ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
558 ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
559 ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
560 ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
566 ELM_INPUT_PANEL_LAYOUT_NORMAL, /**< Default layout */
567 ELM_INPUT_PANEL_LAYOUT_NUMBER, /**< Number layout */
568 ELM_INPUT_PANEL_LAYOUT_EMAIL, /**< Email layout */
569 ELM_INPUT_PANEL_LAYOUT_URL, /**< URL layout */
570 ELM_INPUT_PANEL_LAYOUT_PHONENUMBER, /**< Phone Number layout */
571 ELM_INPUT_PANEL_LAYOUT_IP, /**< IP layout */
572 ELM_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */
573 ELM_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */
574 ELM_INPUT_PANEL_LAYOUT_INVALID
575 } Elm_Input_Panel_Layout;
579 ELM_AUTOCAPITAL_TYPE_NONE,
580 ELM_AUTOCAPITAL_TYPE_WORD,
581 ELM_AUTOCAPITAL_TYPE_SENTENCE,
582 ELM_AUTOCAPITAL_TYPE_ALLCHARACTER,
583 } Elm_Autocapital_Type;
586 * @typedef Elm_Object_Item
587 * An Elementary Object item handle.
590 typedef struct _Elm_Object_Item Elm_Object_Item;
594 * Called back when a widget's tooltip is activated and needs content.
595 * @param data user-data given to elm_object_tooltip_content_cb_set()
596 * @param obj owner widget.
597 * @param tooltip The tooltip object (affix content to this!)
599 typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
602 * Called back when a widget's item tooltip is activated and needs content.
603 * @param data user-data given to elm_object_tooltip_content_cb_set()
604 * @param obj owner widget.
605 * @param tooltip The tooltip object (affix content to this!)
606 * @param item context dependent item. As an example, if tooltip was
607 * set on Elm_List_Item, then it is of this type.
609 typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
611 typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info); /**< Function prototype definition for callbacks on input events happening on Elementary widgets. @a data will receive the user data pointer passed to elm_object_event_callback_add(). @a src will be a pointer to the widget on which the input event took place. @a type will get the type of this event and @a event_info, the struct with details on this event. */
613 #ifndef ELM_LIB_QUICKLAUNCH
614 #define ELM_MAIN() int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv);} /**< macro to be used after the elm_main() function */
616 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
619 /**************************************************************************/
623 * Initialize Elementary
625 * @param[in] argc System's argument count value
626 * @param[in] argv System's pointer to array of argument strings
627 * @return The init counter value.
629 * This function initializes Elementary and increments a counter of
630 * the number of calls to it. It returns the new counter's value.
632 * @warning This call is exported only for use by the @c ELM_MAIN()
633 * macro. There is no need to use this if you use this macro (which
634 * is highly advisable). An elm_main() should contain the entry
635 * point code for your application, having the same prototype as
636 * elm_init(), and @b not being static (putting the @c EAPI symbol
637 * in front of its type declaration is advisable). The @c
638 * ELM_MAIN() call should be placed just after it.
641 * @dontinclude bg_example_01.c
645 * See the full @ref bg_example_01_c "example".
647 * @see elm_shutdown().
650 EAPI int elm_init(int argc, char **argv);
653 * Shut down Elementary
655 * @return The init counter value.
657 * This should be called at the end of your application, just
658 * before it ceases to do any more processing. This will clean up
659 * any permanent resources your application may have allocated via
660 * Elementary that would otherwise persist.
662 * @see elm_init() for an example
666 EAPI int elm_shutdown(void);
669 * Run Elementary's main loop
671 * This call should be issued just after all initialization is
672 * completed. This function will not return until elm_exit() is
673 * called. It will keep looping, running the main
674 * (event/processing) loop for Elementary.
676 * @see elm_init() for an example
680 EAPI void elm_run(void);
683 * Exit Elementary's main loop
685 * If this call is issued, it will flag the main loop to cease
686 * processing and return back to its parent function (usually your
687 * elm_main() function).
689 * @see elm_init() for an example. There, just after a request to
690 * close the window comes, the main loop will be left.
692 * @note By using the appropriate #ELM_POLICY_QUIT on your Elementary
693 * applications, you'll be able to get this function called automatically for you.
697 EAPI void elm_exit(void);
700 * Provide information in order to make Elementary determine the @b
701 * run time location of the software in question, so other data files
702 * such as images, sound files, executable utilities, libraries,
703 * modules and locale files can be found.
705 * @param mainfunc This is your application's main function name,
706 * whose binary's location is to be found. Providing @c NULL
707 * will make Elementary not to use it
708 * @param dom This will be used as the application's "domain", in the
709 * form of a prefix to any environment variables that may
710 * override prefix detection and the directory name, inside the
711 * standard share or data directories, where the software's
712 * data files will be looked for.
713 * @param checkfile This is an (optional) magic file's path to check
714 * for existence (and it must be located in the data directory,
715 * under the share directory provided above). Its presence will
716 * help determine the prefix found was correct. Pass @c NULL if
717 * the check is not to be done.
719 * This function allows one to re-locate the application somewhere
720 * else after compilation, if the developer wishes for easier
721 * distribution of pre-compiled binaries.
723 * The prefix system is designed to locate where the given software is
724 * installed (under a common path prefix) at run time and then report
725 * specific locations of this prefix and common directories inside
726 * this prefix like the binary, library, data and locale directories,
727 * through the @c elm_app_*_get() family of functions.
729 * Call elm_app_info_set() early on before you change working
730 * directory or anything about @c argv[0], so it gets accurate
733 * It will then try and trace back which file @p mainfunc comes from,
734 * if provided, to determine the application's prefix directory.
736 * The @p dom parameter provides a string prefix to prepend before
737 * environment variables, allowing a fallback to @b specific
738 * environment variables to locate the software. You would most
739 * probably provide a lowercase string there, because it will also
740 * serve as directory domain, explained next. For environment
741 * variables purposes, this string is made uppercase. For example if
742 * @c "myapp" is provided as the prefix, then the program would expect
743 * @c "MYAPP_PREFIX" as a master environment variable to specify the
744 * exact install prefix for the software, or more specific environment
745 * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
746 * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
747 * the user or scripts before launching. If not provided (@c NULL),
748 * environment variables will not be used to override compiled-in
749 * defaults or auto detections.
751 * The @p dom string also provides a subdirectory inside the system
752 * shared data directory for data files. For example, if the system
753 * directory is @c /usr/local/share, then this directory name is
754 * appended, creating @c /usr/local/share/myapp, if it @p was @c
755 * "myapp". It is expected that the application installs data files in
758 * The @p checkfile is a file name or path of something inside the
759 * share or data directory to be used to test that the prefix
760 * detection worked. For example, your app will install a wallpaper
761 * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
762 * check that this worked, provide @c "images/wallpaper.jpg" as the @p
765 * @see elm_app_compile_bin_dir_set()
766 * @see elm_app_compile_lib_dir_set()
767 * @see elm_app_compile_data_dir_set()
768 * @see elm_app_compile_locale_set()
769 * @see elm_app_prefix_dir_get()
770 * @see elm_app_bin_dir_get()
771 * @see elm_app_lib_dir_get()
772 * @see elm_app_data_dir_get()
773 * @see elm_app_locale_dir_get()
775 EAPI void elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
778 * Provide information on the @b fallback application's binaries
779 * directory, in scenarios where they get overriden by
780 * elm_app_info_set().
782 * @param dir The path to the default binaries directory (compile time
785 * @note Elementary will as well use this path to determine actual
786 * names of binaries' directory paths, maybe changing it to be @c
787 * something/local/bin instead of @c something/bin, only, for
790 * @warning You should call this function @b before
791 * elm_app_info_set().
793 EAPI void elm_app_compile_bin_dir_set(const char *dir);
796 * Provide information on the @b fallback application's libraries
797 * directory, on scenarios where they get overriden by
798 * elm_app_info_set().
800 * @param dir The path to the default libraries directory (compile
803 * @note Elementary will as well use this path to determine actual
804 * names of libraries' directory paths, maybe changing it to be @c
805 * something/lib32 or @c something/lib64 instead of @c something/lib,
808 * @warning You should call this function @b before
809 * elm_app_info_set().
811 EAPI void elm_app_compile_lib_dir_set(const char *dir);
814 * Provide information on the @b fallback application's data
815 * directory, on scenarios where they get overriden by
816 * elm_app_info_set().
818 * @param dir The path to the default data directory (compile time
821 * @note Elementary will as well use this path to determine actual
822 * names of data directory paths, maybe changing it to be @c
823 * something/local/share instead of @c something/share, only, for
826 * @warning You should call this function @b before
827 * elm_app_info_set().
829 EAPI void elm_app_compile_data_dir_set(const char *dir);
832 * Provide information on the @b fallback application's locale
833 * directory, on scenarios where they get overriden by
834 * elm_app_info_set().
836 * @param dir The path to the default locale directory (compile time
839 * @warning You should call this function @b before
840 * elm_app_info_set().
842 EAPI void elm_app_compile_locale_set(const char *dir);
845 * Retrieve the application's run time prefix directory, as set by
846 * elm_app_info_set() and the way (environment) the application was
849 * @return The directory prefix the application is actually using.
851 EAPI const char *elm_app_prefix_dir_get(void);
854 * Retrieve the application's run time binaries prefix directory, as
855 * set by elm_app_info_set() and the way (environment) the application
858 * @return The binaries directory prefix the application is actually
861 EAPI const char *elm_app_bin_dir_get(void);
864 * Retrieve the application's run time libraries prefix directory, as
865 * set by elm_app_info_set() and the way (environment) the application
868 * @return The libraries directory prefix the application is actually
871 EAPI const char *elm_app_lib_dir_get(void);
874 * Retrieve the application's run time data prefix directory, as
875 * set by elm_app_info_set() and the way (environment) the application
878 * @return The data directory prefix the application is actually
881 EAPI const char *elm_app_data_dir_get(void);
884 * Retrieve the application's run time locale prefix directory, as
885 * set by elm_app_info_set() and the way (environment) the application
888 * @return The locale directory prefix the application is actually
891 EAPI const char *elm_app_locale_dir_get(void);
893 EAPI void elm_quicklaunch_mode_set(Eina_Bool ql_on);
894 EAPI Eina_Bool elm_quicklaunch_mode_get(void);
895 EAPI int elm_quicklaunch_init(int argc, char **argv);
896 EAPI int elm_quicklaunch_sub_init(int argc, char **argv);
897 EAPI int elm_quicklaunch_sub_shutdown(void);
898 EAPI int elm_quicklaunch_shutdown(void);
899 EAPI void elm_quicklaunch_seed(void);
900 EAPI Eina_Bool elm_quicklaunch_prepare(int argc, char **argv);
901 EAPI Eina_Bool elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
902 EAPI void elm_quicklaunch_cleanup(void);
903 EAPI int elm_quicklaunch_fallback(int argc, char **argv);
904 EAPI char *elm_quicklaunch_exe_path_get(const char *exe);
906 EAPI Eina_Bool elm_need_efreet(void);
907 EAPI Eina_Bool elm_need_e_dbus(void);
910 * This must be called before any other function that deals with
911 * elm_thumb objects or ethumb_client instances.
915 EAPI Eina_Bool elm_need_ethumb(void);
918 * This must be called before any other function that deals with
919 * elm_web objects or ewk_view instances.
923 EAPI Eina_Bool elm_need_web(void);
926 * Set a new policy's value (for a given policy group/identifier).
928 * @param policy policy identifier, as in @ref Elm_Policy.
929 * @param value policy value, which depends on the identifier
931 * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
933 * Elementary policies define applications' behavior,
934 * somehow. These behaviors are divided in policy groups (see
935 * #Elm_Policy enumeration). This call will emit the Ecore event
936 * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
937 * handlers. An #Elm_Event_Policy_Changed struct will be passed,
940 * @note Currently, we have only one policy identifier/group
941 * (#ELM_POLICY_QUIT), which has two possible values.
945 EAPI Eina_Bool elm_policy_set(unsigned int policy, int value);
948 * Gets the policy value for given policy identifier.
950 * @param policy policy identifier, as in #Elm_Policy.
951 * @return The currently set policy value, for that
952 * identifier. Will be @c 0 if @p policy passed is invalid.
956 EAPI int elm_policy_get(unsigned int policy);
959 * Change the language of the current application
961 * The @p lang passed must be the full name of the locale to use, for
962 * example "en_US.utf8" or "es_ES@euro".
964 * Changing language with this function will make Elementary run through
965 * all its widgets, translating strings set with
966 * elm_object_domain_translatable_text_part_set(). This way, an entire
967 * UI can have its language changed without having to restart the program.
969 * For more complex cases, like having formatted strings that need
970 * translation, widgets will also emit a "language,changed" signal that
971 * the user can listen to to manually translate the text.
973 * @param lang Language to set, must be the full name of the locale
977 EAPI void elm_language_set(const char *lang);
980 * Set a label of an object
982 * @param obj The Elementary object
983 * @param part The text part name to set (NULL for the default label)
984 * @param label The new text of the label
986 * @note Elementary objects may have many labels (e.g. Action Slider)
987 * @deprecated Use elm_object_part_text_set() instead.
990 EINA_DEPRECATED EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
993 * Set a label of an object
995 * @param obj The Elementary object
996 * @param part The text part name to set (NULL for the default label)
997 * @param label The new text of the label
999 * @note Elementary objects may have many labels (e.g. Action Slider)
1003 EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
1005 #define elm_object_text_set(obj, label) elm_object_part_text_set((obj), NULL, (label))
1008 * Get a label of an object
1010 * @param obj The Elementary object
1011 * @param part The text part name to get (NULL for the default label)
1012 * @return text of the label or NULL for any error
1014 * @note Elementary objects may have many labels (e.g. Action Slider)
1015 * @deprecated Use elm_object_part_text_get() instead.
1018 EINA_DEPRECATED EAPI const char *elm_object_text_part_get(const Evas_Object *obj, const char *part);
1021 * Get a label of an object
1023 * @param obj The Elementary object
1024 * @param part The text part name to get (NULL for the default label)
1025 * @return text of the label or NULL for any error
1027 * @note Elementary objects may have many labels (e.g. Action Slider)
1031 EAPI const char *elm_object_part_text_get(const Evas_Object *obj, const char *part);
1033 #define elm_object_text_get(obj) elm_object_part_text_get((obj), NULL)
1036 * Set the text for an objects' part, marking it as translatable.
1038 * The string to set as @p text must be the original one. Do not pass the
1039 * return of @c gettext() here. Elementary will translate the string
1040 * internally and set it on the object using elm_object_part_text_set(),
1041 * also storing the original string so that it can be automatically
1042 * translated when the language is changed with elm_language_set().
1044 * The @p domain will be stored along to find the translation in the
1045 * correct catalog. It can be NULL, in which case it will use whatever
1046 * domain was set by the application with @c textdomain(). This is useful
1047 * in case you are building a library on top of Elementary that will have
1048 * its own translatable strings, that should not be mixed with those of
1049 * programs using the library.
1051 * @param obj The object containing the text part
1052 * @param part The name of the part to set
1053 * @param domain The translation domain to use
1054 * @param text The original, non-translated text to set
1058 EAPI void elm_object_domain_translatable_text_part_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
1060 #define elm_object_domain_translatable_text_set(obj, domain, text) elm_object_domain_translatable_text_part_set((obj), NULL, (domain), (text))
1062 #define elm_object_translatable_text_set(obj, text) elm_object_domain_translatable_text_part_set((obj), NULL, NULL, (text))
1065 * Gets the original string set as translatable for an object
1067 * When setting translated strings, the function elm_object_part_text_get()
1068 * will return the translation returned by @c gettext(). To get the
1069 * original string use this function.
1071 * @param obj The object
1072 * @param part The name of the part that was set
1074 * @return The original, untranslated string
1078 EAPI const char *elm_object_translatable_text_part_get(const Evas_Object *obj, const char *part);
1080 #define elm_object_translatable_text_get(obj) elm_object_translatable_text_part_get((obj), NULL)
1083 * Set a content of an object
1085 * @param obj The Elementary object
1086 * @param part The content part name to set (NULL for the default content)
1087 * @param content The new content of the object
1089 * @note Elementary objects may have many contents
1090 * @deprecated Use elm_object_part_content_set instead.
1093 EINA_DEPRECATED EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
1096 * Set a content of an object
1098 * @param obj The Elementary object
1099 * @param part The content part name to set (NULL for the default content)
1100 * @param content The new content of the object
1102 * @note Elementary objects may have many contents
1106 EAPI void elm_object_part_content_set(Evas_Object *obj, const char *part, Evas_Object *content);
1108 #define elm_object_content_set(obj, content) elm_object_part_content_set((obj), NULL, (content))
1111 * Get a content of an object
1113 * @param obj The Elementary object
1114 * @param item The content part name to get (NULL for the default content)
1115 * @return content of the object or NULL for any error
1117 * @note Elementary objects may have many contents
1118 * @deprecated Use elm_object_part_content_get instead.
1121 EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
1124 * Get a content of an object
1126 * @param obj The Elementary object
1127 * @param item The content part name to get (NULL for the default content)
1128 * @return content of the object or NULL for any error
1130 * @note Elementary objects may have many contents
1134 EAPI Evas_Object *elm_object_part_content_get(const Evas_Object *obj, const char *part);
1136 #define elm_object_content_get(obj) elm_object_part_content_get((obj), NULL)
1139 * Unset a content of an object
1141 * @param obj The Elementary object
1142 * @param item The content part name to unset (NULL for the default content)
1144 * @note Elementary objects may have many contents
1145 * @deprecated Use elm_object_part_content_unset instead.
1148 EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1151 * Unset a content of an object
1153 * @param obj The Elementary object
1154 * @param item The content part name to unset (NULL for the default content)
1156 * @note Elementary objects may have many contents
1160 EAPI Evas_Object *elm_object_part_content_unset(Evas_Object *obj, const char *part);
1162 #define elm_object_content_unset(obj) elm_object_part_content_unset((obj), NULL)
1165 * Set the text to read out when in accessibility mode
1167 * @param obj The object which is to be described
1168 * @param txt The text that describes the widget to people with poor or no vision
1172 EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1175 * Get the widget object's handle which contains a given item
1177 * @param item The Elementary object item
1178 * @return The widget object
1180 * @note This returns the widget object itself that an item belongs to.
1184 EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1187 * Set a content of an object item
1189 * @param it The Elementary object item
1190 * @param part The content part name to set (NULL for the default content)
1191 * @param content The new content of the object item
1193 * @note Elementary object items may have many contents
1194 * @deprecated Use elm_object_item_part_content_set instead.
1197 EINA_DEPRECATED EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1200 * Set a content of an object item
1202 * @param it The Elementary object item
1203 * @param part The content part name to set (NULL for the default content)
1204 * @param content The new content of the object item
1206 * @note Elementary object items may have many contents
1210 EAPI void elm_object_item_part_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1212 #define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
1215 * Get a content of an object item
1217 * @param it The Elementary object item
1218 * @param part The content part name to unset (NULL for the default content)
1219 * @return content of the object item or NULL for any error
1221 * @note Elementary object items may have many contents
1222 * @deprecated Use elm_object_item_part_content_get instead.
1225 EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *part);
1228 * Get a content of an object item
1230 * @param it The Elementary object item
1231 * @param part The content part name to unset (NULL for the default content)
1232 * @return content of the object item or NULL for any error
1234 * @note Elementary object items may have many contents
1238 EAPI Evas_Object *elm_object_item_part_content_get(const Elm_Object_Item *it, const char *part);
1240 #define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
1243 * Unset a content of an object item
1245 * @param it The Elementary object item
1246 * @param part The content part name to unset (NULL for the default content)
1248 * @note Elementary object items may have many contents
1249 * @deprecated Use elm_object_item_part_content_unset instead.
1252 EINA_DEPRECATED EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1255 * Unset a content of an object item
1257 * @param it The Elementary object item
1258 * @param part The content part name to unset (NULL for the default content)
1260 * @note Elementary object items may have many contents
1264 EAPI Evas_Object *elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part);
1266 #define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
1269 * Set a label of an object item
1271 * @param it The Elementary object item
1272 * @param part The text part name to set (NULL for the default label)
1273 * @param label The new text of the label
1275 * @note Elementary object items may have many labels
1276 * @deprecated Use elm_object_item_part_text_set instead.
1279 EINA_DEPRECATED EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1282 * Set a label of an object item
1284 * @param it The Elementary object item
1285 * @param part The text part name to set (NULL for the default label)
1286 * @param label The new text of the label
1288 * @note Elementary object items may have many labels
1292 EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
1294 #define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
1297 * Get a label of an object item
1299 * @param it The Elementary object item
1300 * @param part The text part name to get (NULL for the default label)
1301 * @return text of the label or NULL for any error
1303 * @note Elementary object items may have many labels
1304 * @deprecated Use elm_object_item_part_text_get instead.
1307 EINA_DEPRECATED EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1309 * Get a label of an object item
1311 * @param it The Elementary object item
1312 * @param part The text part name to get (NULL for the default label)
1313 * @return text of the label or NULL for any error
1315 * @note Elementary object items may have many labels
1319 EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
1321 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
1324 * Set the text to read out when in accessibility mode
1326 * @param it The object item which is to be described
1327 * @param txt The text that describes the widget to people with poor or no vision
1331 EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1334 * Get the data associated with an object item
1335 * @param it The Elementary object item
1336 * @return The data associated with @p it
1340 EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
1343 * Set the data associated with an object item
1344 * @param it The Elementary object item
1345 * @param data The data to be associated with @p it
1349 EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
1352 * Send a signal to the edje object of the widget item.
1354 * This function sends a signal to the edje object of the obj item. An
1355 * edje program can respond to a signal by specifying matching
1356 * 'signal' and 'source' fields.
1358 * @param it The Elementary object item
1359 * @param emission The signal's name.
1360 * @param source The signal's source.
1363 EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1366 * Set the disabled state of an widget item.
1368 * @param obj The Elementary object item
1369 * @param disabled The state to put in in: @c EINA_TRUE for
1370 * disabled, @c EINA_FALSE for enabled
1372 * Elementary object item can be @b disabled, in which state they won't
1373 * receive input and, in general, will be themed differently from
1374 * their normal state, usually greyed out. Useful for contexts
1375 * where you don't want your users to interact with some of the
1376 * parts of you interface.
1378 * This sets the state for the widget item, either disabling it or
1383 EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1386 * Get the disabled state of an widget item.
1388 * @param obj The Elementary object
1389 * @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
1390 * if it's enabled (or on errors)
1392 * This gets the state of the widget, which might be enabled or disabled.
1396 EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
1403 * @defgroup Caches Caches
1405 * These are functions which let one fine-tune some cache values for
1406 * Elementary applications, thus allowing for performance adjustments.
1412 * @brief Flush all caches.
1414 * Frees all data that was in cache and is not currently being used to reduce
1415 * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1416 * to calling all of the following functions:
1417 * @li edje_file_cache_flush()
1418 * @li edje_collection_cache_flush()
1419 * @li eet_clearcache()
1420 * @li evas_image_cache_flush()
1421 * @li evas_font_cache_flush()
1422 * @li evas_render_dump()
1423 * @note Evas caches are flushed for every canvas associated with a window.
1427 EAPI void elm_all_flush(void);
1430 * Get the configured cache flush interval time
1432 * This gets the globally configured cache flush interval time, in
1435 * @return The cache flush interval time
1438 * @see elm_all_flush()
1440 EAPI int elm_cache_flush_interval_get(void);
1443 * Set the configured cache flush interval time
1445 * This sets the globally configured cache flush interval time, in ticks
1447 * @param size The cache flush interval time
1450 * @see elm_all_flush()
1452 EAPI void elm_cache_flush_interval_set(int size);
1455 * Set the configured cache flush interval time for all applications on the
1458 * This sets the globally configured cache flush interval time -- in ticks
1459 * -- for all applications on the display.
1461 * @param size The cache flush interval time
1464 EAPI void elm_cache_flush_interval_all_set(int size);
1467 * Get the configured cache flush enabled state
1469 * This gets the globally configured cache flush state - if it is enabled
1470 * or not. When cache flushing is enabled, elementary will regularly
1471 * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1472 * memory and allow usage to re-seed caches and data in memory where it
1473 * can do so. An idle application will thus minimise its memory usage as
1474 * data will be freed from memory and not be re-loaded as it is idle and
1475 * not rendering or doing anything graphically right now.
1477 * @return The cache flush state
1480 * @see elm_all_flush()
1482 EAPI Eina_Bool elm_cache_flush_enabled_get(void);
1485 * Set the configured cache flush enabled state
1487 * This sets the globally configured cache flush enabled state.
1489 * @param size The cache flush enabled state
1492 * @see elm_all_flush()
1494 EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled);
1497 * Set the configured cache flush enabled state for all applications on the
1500 * This sets the globally configured cache flush enabled state for all
1501 * applications on the display.
1503 * @param size The cache flush enabled state
1506 EAPI void elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1509 * Get the configured font cache size
1511 * This gets the globally configured font cache size, in bytes.
1513 * @return The font cache size
1516 EAPI int elm_font_cache_get(void);
1519 * Set the configured font cache size
1521 * This sets the globally configured font cache size, in bytes
1523 * @param size The font cache size
1526 EAPI void elm_font_cache_set(int size);
1529 * Set the configured font cache size for all applications on the
1532 * This sets the globally configured font cache size -- in bytes
1533 * -- for all applications on the display.
1535 * @param size The font cache size
1538 EAPI void elm_font_cache_all_set(int size);
1541 * Get the configured image cache size
1543 * This gets the globally configured image cache size, in bytes
1545 * @return The image cache size
1548 EAPI int elm_image_cache_get(void);
1551 * Set the configured image cache size
1553 * This sets the globally configured image cache size, in bytes
1555 * @param size The image cache size
1558 EAPI void elm_image_cache_set(int size);
1561 * Set the configured image cache size for all applications on the
1564 * This sets the globally configured image cache size -- in bytes
1565 * -- for all applications on the display.
1567 * @param size The image cache size
1570 EAPI void elm_image_cache_all_set(int size);
1573 * Get the configured edje file cache size.
1575 * This gets the globally configured edje file cache size, in number
1578 * @return The edje file cache size
1581 EAPI int elm_edje_file_cache_get(void);
1584 * Set the configured edje file cache size
1586 * This sets the globally configured edje file cache size, in number
1589 * @param size The edje file cache size
1592 EAPI void elm_edje_file_cache_set(int size);
1595 * Set the configured edje file cache size for all applications on the
1598 * This sets the globally configured edje file cache size -- in number
1599 * of files -- for all applications on the display.
1601 * @param size The edje file cache size
1604 EAPI void elm_edje_file_cache_all_set(int size);
1607 * Get the configured edje collections (groups) cache size.
1609 * This gets the globally configured edje collections cache size, in
1610 * number of collections.
1612 * @return The edje collections cache size
1615 EAPI int elm_edje_collection_cache_get(void);
1618 * Set the configured edje collections (groups) cache size
1620 * This sets the globally configured edje collections cache size, in
1621 * number of collections.
1623 * @param size The edje collections cache size
1626 EAPI void elm_edje_collection_cache_set(int size);
1629 * Set the configured edje collections (groups) cache size for all
1630 * applications on the display
1632 * This sets the globally configured edje collections cache size -- in
1633 * number of collections -- for all applications on the display.
1635 * @param size The edje collections cache size
1638 EAPI void elm_edje_collection_cache_all_set(int size);
1645 * @defgroup Scaling Widget Scaling
1647 * Different widgets can be scaled independently. These functions
1648 * allow you to manipulate this scaling on a per-widget basis. The
1649 * object and all its children get their scaling factors multiplied
1650 * by the scale factor set. This is multiplicative, in that if a
1651 * child also has a scale size set it is in turn multiplied by its
1652 * parent's scale size. @c 1.0 means ādon't scaleā, @c 2.0 is
1653 * double size, @c 0.5 is half, etc.
1655 * @ref general_functions_example_page "This" example contemplates
1656 * some of these functions.
1660 * Get the global scaling factor
1662 * This gets the globally configured scaling factor that is applied to all
1665 * @return The scaling factor
1668 EAPI double elm_scale_get(void);
1671 * Set the global scaling factor
1673 * This sets the globally configured scaling factor that is applied to all
1676 * @param scale The scaling factor to set
1679 EAPI void elm_scale_set(double scale);
1682 * Set the global scaling factor for all applications on the display
1684 * This sets the globally configured scaling factor that is applied to all
1685 * objects for all applications.
1686 * @param scale The scaling factor to set
1689 EAPI void elm_scale_all_set(double scale);
1692 * Set the scaling factor for a given Elementary object
1694 * @param obj The Elementary to operate on
1695 * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1700 EAPI void elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1703 * Get the scaling factor for a given Elementary object
1705 * @param obj The object
1706 * @return The scaling factor set by elm_object_scale_set()
1710 EAPI double elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1713 * @defgroup Password_last_show Password last input show
1715 * Last show feature of password mode enables user to view
1716 * the last input entered for few seconds before masking it.
1717 * These functions allow to set this feature in password mode
1718 * of entry widget and also allow to manipulate the duration
1719 * for which the input has to be visible.
1725 * Get show last setting of password mode.
1727 * This gets the show last input setting of password mode which might be
1728 * enabled or disabled.
1730 * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1732 * @ingroup Password_last_show
1734 EAPI Eina_Bool elm_password_show_last_get(void);
1737 * Set show last setting in password mode.
1739 * This enables or disables show last setting of password mode.
1741 * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1742 * @see elm_password_show_last_timeout_set()
1743 * @ingroup Password_last_show
1745 EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1748 * Get's the timeout value in last show password mode.
1750 * This gets the time out value for which the last input entered in password
1751 * mode will be visible.
1753 * @return The timeout value of last show password mode.
1754 * @ingroup Password_last_show
1756 EAPI double elm_password_show_last_timeout_get(void);
1759 * Set's the timeout value in last show password mode.
1761 * This sets the time out value for which the last input entered in password
1762 * mode will be visible.
1764 * @param password_show_last_timeout The timeout value.
1765 * @see elm_password_show_last_set()
1766 * @ingroup Password_last_show
1768 EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1775 * @defgroup UI-Mirroring Selective Widget mirroring
1777 * These functions allow you to set ui-mirroring on specific
1778 * widgets or the whole interface. Widgets can be in one of two
1779 * modes, automatic and manual. Automatic means they'll be changed
1780 * according to the system mirroring mode and manual means only
1781 * explicit changes will matter. You are not supposed to change
1782 * mirroring state of a widget set to automatic, will mostly work,
1783 * but the behavior is not really defined.
1788 EAPI Eina_Bool elm_mirrored_get(void);
1789 EAPI void elm_mirrored_set(Eina_Bool mirrored);
1792 * Get the system mirrored mode. This determines the default mirrored mode
1795 * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1797 EAPI Eina_Bool elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1800 * Set the system mirrored mode. This determines the default mirrored mode
1803 * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1805 EAPI void elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1808 * Returns the widget's mirrored mode setting.
1810 * @param obj The widget.
1811 * @return mirrored mode setting of the object.
1814 EAPI Eina_Bool elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1817 * Sets the widget's mirrored mode setting.
1818 * When widget in automatic mode, it follows the system mirrored mode set by
1819 * elm_mirrored_set().
1820 * @param obj The widget.
1821 * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1823 EAPI void elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1830 * Set the style to use by a widget
1832 * Sets the style name that will define the appearance of a widget. Styles
1833 * vary from widget to widget and may also be defined by other themes
1834 * by means of extensions and overlays.
1836 * @param obj The Elementary widget to style
1837 * @param style The style name to use
1839 * @see elm_theme_extension_add()
1840 * @see elm_theme_extension_del()
1841 * @see elm_theme_overlay_add()
1842 * @see elm_theme_overlay_del()
1846 EAPI void elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1848 * Get the style used by the widget
1850 * This gets the style being used for that widget. Note that the string
1851 * pointer is only valid as longas the object is valid and the style doesn't
1854 * @param obj The Elementary widget to query for its style
1855 * @return The style name used
1857 * @see elm_object_style_set()
1861 EAPI const char *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1864 * @defgroup Styles Styles
1866 * Widgets can have different styles of look. These generic API's
1867 * set styles of widgets, if they support them (and if the theme(s)
1870 * @ref general_functions_example_page "This" example contemplates
1871 * some of these functions.
1875 * Set the disabled state of an Elementary object.
1877 * @param obj The Elementary object to operate on
1878 * @param disabled The state to put in in: @c EINA_TRUE for
1879 * disabled, @c EINA_FALSE for enabled
1881 * Elementary objects can be @b disabled, in which state they won't
1882 * receive input and, in general, will be themed differently from
1883 * their normal state, usually greyed out. Useful for contexts
1884 * where you don't want your users to interact with some of the
1885 * parts of you interface.
1887 * This sets the state for the widget, either disabling it or
1892 EAPI void elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1895 * Get the disabled state of an Elementary object.
1897 * @param obj The Elementary object to operate on
1898 * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1899 * if it's enabled (or on errors)
1901 * This gets the state of the widget, which might be enabled or disabled.
1905 EAPI Eina_Bool elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1908 * @defgroup WidgetNavigation Widget Tree Navigation.
1910 * How to check if an Evas Object is an Elementary widget? How to
1911 * get the first elementary widget that is parent of the given
1912 * object? These are all covered in widget tree navigation.
1914 * @ref general_functions_example_page "This" example contemplates
1915 * some of these functions.
1919 * Check if the given Evas Object is an Elementary widget.
1921 * @param obj the object to query.
1922 * @return @c EINA_TRUE if it is an elementary widget variant,
1923 * @c EINA_FALSE otherwise
1924 * @ingroup WidgetNavigation
1926 EAPI Eina_Bool elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1929 * Get the first parent of the given object that is an Elementary
1932 * @param obj the Elementary object to query parent from.
1933 * @return the parent object that is an Elementary widget, or @c
1934 * NULL, if it was not found.
1936 * Use this to query for an object's parent widget.
1938 * @note Most of Elementary users wouldn't be mixing non-Elementary
1939 * smart objects in the objects tree of an application, as this is
1940 * an advanced usage of Elementary with Evas. So, except for the
1941 * application's window, which is the root of that tree, all other
1942 * objects would have valid Elementary widget parents.
1944 * @ingroup WidgetNavigation
1946 EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1949 * Get the top level parent of an Elementary widget.
1951 * @param obj The object to query.
1952 * @return The top level Elementary widget, or @c NULL if parent cannot be
1954 * @ingroup WidgetNavigation
1956 EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1959 * Get the string that represents this Elementary widget.
1961 * @note Elementary is weird and exposes itself as a single
1962 * Evas_Object_Smart_Class of type "elm_widget", so
1963 * evas_object_type_get() always return that, making debug and
1964 * language bindings hard. This function tries to mitigate this
1965 * problem, but the solution is to change Elementary to use
1966 * proper inheritance.
1968 * @param obj the object to query.
1969 * @return Elementary widget name, or @c NULL if not a valid widget.
1970 * @ingroup WidgetNavigation
1972 EAPI const char *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1975 * @defgroup Config Elementary Config
1977 * Elementary configuration is formed by a set options bounded to a
1978 * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1979 * "finger size", etc. These are functions with which one syncronizes
1980 * changes made to those values to the configuration storing files, de
1981 * facto. You most probably don't want to use the functions in this
1982 * group unlees you're writing an elementary configuration manager.
1988 * Save back Elementary's configuration, so that it will persist on
1991 * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1994 * This function will take effect -- thus, do I/O -- immediately. Use
1995 * it when you want to apply all configuration changes at once. The
1996 * current configuration set will get saved onto the current profile
1997 * configuration file.
2000 EAPI Eina_Bool elm_config_save(void);
2003 * Reload Elementary's configuration, bounded to current selected
2006 * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
2009 * Useful when you want to force reloading of configuration values for
2010 * a profile. If one removes user custom configuration directories,
2011 * for example, it will force a reload with system values instead.
2014 EAPI void elm_config_reload(void);
2021 * @defgroup Profile Elementary Profile
2023 * Profiles are pre-set options that affect the whole look-and-feel of
2024 * Elementary-based applications. There are, for example, profiles
2025 * aimed at desktop computer applications and others aimed at mobile,
2026 * touchscreen-based ones. You most probably don't want to use the
2027 * functions in this group unlees you're writing an elementary
2028 * configuration manager.
2034 * Get Elementary's profile in use.
2036 * This gets the global profile that is applied to all Elementary
2039 * @return The profile's name
2042 EAPI const char *elm_profile_current_get(void);
2045 * Get an Elementary's profile directory path in the filesystem. One
2046 * may want to fetch a system profile's dir or an user one (fetched
2049 * @param profile The profile's name
2050 * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
2051 * or a system one (@c EINA_FALSE)
2052 * @return The profile's directory path.
2055 * @note You must free it with elm_profile_dir_free().
2057 EAPI const char *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
2060 * Free an Elementary's profile directory path, as returned by
2061 * elm_profile_dir_get().
2063 * @param p_dir The profile's path
2067 EAPI void elm_profile_dir_free(const char *p_dir);
2070 * Get Elementary's list of available profiles.
2072 * @return The profiles list. List node data are the profile name
2076 * @note One must free this list, after usage, with the function
2077 * elm_profile_list_free().
2079 EAPI Eina_List *elm_profile_list_get(void);
2082 * Free Elementary's list of available profiles.
2084 * @param l The profiles list, as returned by elm_profile_list_get().
2088 EAPI void elm_profile_list_free(Eina_List *l);
2091 * Set Elementary's profile.
2093 * This sets the global profile that is applied to Elementary
2094 * applications. Just the process the call comes from will be
2097 * @param profile The profile's name
2101 EAPI void elm_profile_set(const char *profile);
2104 * Set Elementary's profile.
2106 * This sets the global profile that is applied to all Elementary
2107 * applications. All running Elementary windows will be affected.
2109 * @param profile The profile's name
2113 EAPI void elm_profile_all_set(const char *profile);
2120 * @defgroup Engine Elementary Engine
2122 * These are functions setting and querying which rendering engine
2123 * Elementary will use for drawing its windows' pixels.
2125 * The following are the available engines:
2126 * @li "software_x11"
2129 * @li "software_16_x11"
2130 * @li "software_8_x11"
2133 * @li "software_gdi"
2134 * @li "software_16_wince_gdi"
2136 * @li "software_16_sdl"
2140 * @li "opengl_cocoa"
2147 * @brief Get Elementary's rendering engine in use.
2149 * @return The rendering engine's name
2150 * @note there's no need to free the returned string, here.
2152 * This gets the global rendering engine that is applied to all Elementary
2155 * @see elm_engine_set()
2157 EAPI const char *elm_engine_current_get(void);
2160 * @brief Set Elementary's rendering engine for use.
2162 * @param engine The rendering engine's name
2164 * This sets global rendering engine that is applied to all Elementary
2165 * applications. Note that it will take effect only to Elementary windows
2166 * created after this is called.
2168 * @see elm_win_add()
2170 EAPI void elm_engine_set(const char *engine);
2177 * @defgroup Fonts Elementary Fonts
2179 * These are functions dealing with font rendering, selection and the
2180 * like for Elementary applications. One might fetch which system
2181 * fonts are there to use and set custom fonts for individual classes
2182 * of UI items containing text (text classes).
2187 typedef struct _Elm_Text_Class
2193 typedef struct _Elm_Font_Overlay
2195 const char *text_class;
2197 Evas_Font_Size size;
2200 typedef struct _Elm_Font_Properties
2204 } Elm_Font_Properties;
2207 * Get Elementary's list of supported text classes.
2209 * @return The text classes list, with @c Elm_Text_Class blobs as data.
2212 * Release the list with elm_text_classes_list_free().
2214 EAPI const Eina_List *elm_text_classes_list_get(void);
2217 * Free Elementary's list of supported text classes.
2221 * @see elm_text_classes_list_get().
2223 EAPI void elm_text_classes_list_free(const Eina_List *list);
2226 * Get Elementary's list of font overlays, set with
2227 * elm_font_overlay_set().
2229 * @return The font overlays list, with @c Elm_Font_Overlay blobs as
2234 * For each text class, one can set a <b>font overlay</b> for it,
2235 * overriding the default font properties for that class coming from
2236 * the theme in use. There is no need to free this list.
2238 * @see elm_font_overlay_set() and elm_font_overlay_unset().
2240 EAPI const Eina_List *elm_font_overlay_list_get(void);
2243 * Set a font overlay for a given Elementary text class.
2245 * @param text_class Text class name
2246 * @param font Font name and style string
2247 * @param size Font size
2251 * @p font has to be in the format returned by
2252 * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
2253 * and elm_font_overlay_unset().
2255 EAPI void elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
2258 * Unset a font overlay for a given Elementary text class.
2260 * @param text_class Text class name
2264 * This will bring back text elements belonging to text class
2265 * @p text_class back to their default font settings.
2267 EAPI void elm_font_overlay_unset(const char *text_class);
2270 * Apply the changes made with elm_font_overlay_set() and
2271 * elm_font_overlay_unset() on the current Elementary window.
2275 * This applies all font overlays set to all objects in the UI.
2277 EAPI void elm_font_overlay_apply(void);
2280 * Apply the changes made with elm_font_overlay_set() and
2281 * elm_font_overlay_unset() on all Elementary application windows.
2285 * This applies all font overlays set to all objects in the UI.
2287 EAPI void elm_font_overlay_all_apply(void);
2290 * Translate a font (family) name string in fontconfig's font names
2291 * syntax into an @c Elm_Font_Properties struct.
2293 * @param font The font name and styles string
2294 * @return the font properties struct
2298 * @note The reverse translation can be achived with
2299 * elm_font_fontconfig_name_get(), for one style only (single font
2300 * instance, not family).
2302 EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2305 * Free font properties return by elm_font_properties_get().
2307 * @param efp the font properties struct
2311 EAPI void elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2314 * Translate a font name, bound to a style, into fontconfig's font names
2317 * @param name The font (family) name
2318 * @param style The given style (may be @c NULL)
2320 * @return the font name and style string
2324 * @note The reverse translation can be achived with
2325 * elm_font_properties_get(), for one style only (single font
2326 * instance, not family).
2328 EAPI const char *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2331 * Free the font string return by elm_font_fontconfig_name_get().
2333 * @param efp the font properties struct
2337 EAPI void elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2340 * Create a font hash table of available system fonts.
2342 * One must call it with @p list being the return value of
2343 * evas_font_available_list(). The hash will be indexed by font
2344 * (family) names, being its values @c Elm_Font_Properties blobs.
2346 * @param list The list of available system fonts, as returned by
2347 * evas_font_available_list().
2348 * @return the font hash.
2352 * @note The user is supposed to get it populated at least with 3
2353 * default font families (Sans, Serif, Monospace), which should be
2354 * present on most systems.
2356 EAPI Eina_Hash *elm_font_available_hash_add(Eina_List *list);
2359 * Free the hash return by elm_font_available_hash_add().
2361 * @param hash the hash to be freed.
2365 EAPI void elm_font_available_hash_del(Eina_Hash *hash);
2372 * @defgroup Fingers Fingers
2374 * Elementary is designed to be finger-friendly for touchscreens,
2375 * and so in addition to scaling for display resolution, it can
2376 * also scale based on finger "resolution" (or size). You can then
2377 * customize the granularity of the areas meant to receive clicks
2380 * Different profiles may have pre-set values for finger sizes.
2382 * @ref general_functions_example_page "This" example contemplates
2383 * some of these functions.
2389 * Get the configured "finger size"
2391 * @return The finger size
2393 * This gets the globally configured finger size, <b>in pixels</b>
2397 EAPI Evas_Coord elm_finger_size_get(void);
2400 * Set the configured finger size
2402 * This sets the globally configured finger size in pixels
2404 * @param size The finger size
2407 EAPI void elm_finger_size_set(Evas_Coord size);
2410 * Set the configured finger size for all applications on the display
2412 * This sets the globally configured finger size in pixels for all
2413 * applications on the display
2415 * @param size The finger size
2418 EAPI void elm_finger_size_all_set(Evas_Coord size);
2425 * @defgroup Focus Focus
2427 * An Elementary application has, at all times, one (and only one)
2428 * @b focused object. This is what determines where the input
2429 * events go to within the application's window. Also, focused
2430 * objects can be decorated differently, in order to signal to the
2431 * user where the input is, at a given moment.
2433 * Elementary applications also have the concept of <b>focus
2434 * chain</b>: one can cycle through all the windows' focusable
2435 * objects by input (tab key) or programmatically. The default
2436 * focus chain for an application is the one define by the order in
2437 * which the widgets where added in code. One will cycle through
2438 * top level widgets, and, for each one containg sub-objects, cycle
2439 * through them all, before returning to the level
2440 * above. Elementary also allows one to set @b custom focus chains
2441 * for their applications.
2443 * Besides the focused decoration a widget may exhibit, when it
2444 * gets focus, Elementary has a @b global focus highlight object
2445 * that can be enabled for a window. If one chooses to do so, this
2446 * extra highlight effect will surround the current focused object,
2449 * @note Some Elementary widgets are @b unfocusable, after
2450 * creation, by their very nature: they are not meant to be
2451 * interacted with input events, but are there just for visual
2454 * @ref general_functions_example_page "This" example contemplates
2455 * some of these functions.
2459 * Get the enable status of the focus highlight
2461 * This gets whether the highlight on focused objects is enabled or not
2464 EAPI Eina_Bool elm_focus_highlight_enabled_get(void);
2467 * Set the enable status of the focus highlight
2469 * Set whether to show or not the highlight on focused objects
2470 * @param enable Enable highlight if EINA_TRUE, disable otherwise
2473 EAPI void elm_focus_highlight_enabled_set(Eina_Bool enable);
2476 * Get the enable status of the highlight animation
2478 * Get whether the focus highlight, if enabled, will animate its switch from
2479 * one object to the next
2482 EAPI Eina_Bool elm_focus_highlight_animate_get(void);
2485 * Set the enable status of the highlight animation
2487 * Set whether the focus highlight, if enabled, will animate its switch from
2488 * one object to the next
2489 * @param animate Enable animation if EINA_TRUE, disable otherwise
2492 EAPI void elm_focus_highlight_animate_set(Eina_Bool animate);
2495 * Get the whether an Elementary object has the focus or not.
2497 * @param obj The Elementary object to get the information from
2498 * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2499 * not (and on errors).
2501 * @see elm_object_focus_set()
2505 EAPI Eina_Bool elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2508 * Set/unset focus to a given Elementary object.
2510 * @param obj The Elementary object to operate on.
2511 * @param enable @c EINA_TRUE Set focus to a given object,
2512 * @c EINA_FALSE Unset focus to a given object.
2514 * @note When you set focus to this object, if it can handle focus, will
2515 * take the focus away from the one who had it previously and will, for
2516 * now on, be the one receiving input events. Unsetting focus will remove
2517 * the focus from @p obj, passing it back to the previous element in the
2520 * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2524 EAPI void elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2527 * Make a given Elementary object the focused one.
2529 * @param obj The Elementary object to make focused.
2531 * @note This object, if it can handle focus, will take the focus
2532 * away from the one who had it previously and will, for now on, be
2533 * the one receiving input events.
2535 * @see elm_object_focus_get()
2536 * @deprecated use elm_object_focus_set() instead.
2540 EINA_DEPRECATED EAPI void elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2543 * Remove the focus from an Elementary object
2545 * @param obj The Elementary to take focus from
2547 * This removes the focus from @p obj, passing it back to the
2548 * previous element in the focus chain list.
2550 * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2551 * @deprecated use elm_object_focus_set() instead.
2555 EINA_DEPRECATED EAPI void elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2558 * Set the ability for an Element object to be focused
2560 * @param obj The Elementary object to operate on
2561 * @param enable @c EINA_TRUE if the object can be focused, @c
2562 * EINA_FALSE if not (and on errors)
2564 * This sets whether the object @p obj is able to take focus or
2565 * not. Unfocusable objects do nothing when programmatically
2566 * focused, being the nearest focusable parent object the one
2567 * really getting focus. Also, when they receive mouse input, they
2568 * will get the event, but not take away the focus from where it
2573 EAPI void elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2576 * Get whether an Elementary object is focusable or not
2578 * @param obj The Elementary object to operate on
2579 * @return @c EINA_TRUE if the object is allowed to be focused, @c
2580 * EINA_FALSE if not (and on errors)
2582 * @note Objects which are meant to be interacted with by input
2583 * events are created able to be focused, by default. All the
2588 EAPI Eina_Bool elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2591 * Set custom focus chain.
2593 * This function overwrites any previous custom focus chain within
2594 * the list of objects. The previous list will be deleted and this list
2595 * will be managed by elementary. After it is set, don't modify it.
2597 * @note On focus cycle, only will be evaluated children of this container.
2599 * @param obj The container object
2600 * @param objs Chain of objects to pass focus
2603 EAPI void elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2606 * Unset a custom focus chain on a given Elementary widget
2608 * @param obj The container object to remove focus chain from
2610 * Any focus chain previously set on @p obj (for its child objects)
2611 * is removed entirely after this call.
2615 EAPI void elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2618 * Get custom focus chain
2620 * @param obj The container object
2623 EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2626 * Append object to custom focus chain.
2628 * @note If relative_child equal to NULL or not in custom chain, the object
2629 * will be added in end.
2631 * @note On focus cycle, only will be evaluated children of this container.
2633 * @param obj The container object
2634 * @param child The child to be added in custom chain
2635 * @param relative_child The relative object to position the child
2638 EAPI void elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2641 * Prepend object to custom focus chain.
2643 * @note If relative_child equal to NULL or not in custom chain, the object
2644 * will be added in begin.
2646 * @note On focus cycle, only will be evaluated children of this container.
2648 * @param obj The container object
2649 * @param child The child to be added in custom chain
2650 * @param relative_child The relative object to position the child
2653 EAPI void elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2656 * Give focus to next object in object tree.
2658 * Give focus to next object in focus chain of one object sub-tree.
2659 * If the last object of chain already have focus, the focus will go to the
2660 * first object of chain.
2662 * @param obj The object root of sub-tree
2663 * @param dir Direction to cycle the focus
2667 EAPI void elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2670 * Give focus to near object in one direction.
2672 * Give focus to near object in direction of one object.
2673 * If none focusable object in given direction, the focus will not change.
2675 * @param obj The reference object
2676 * @param x Horizontal component of direction to focus
2677 * @param y Vertical component of direction to focus
2681 EAPI void elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2684 * Make the elementary object and its children to be unfocusable
2687 * @param obj The Elementary object to operate on
2688 * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2689 * @c EINA_FALSE for focusable.
2691 * This sets whether the object @p obj and its children objects
2692 * are able to take focus or not. If the tree is set as unfocusable,
2693 * newest focused object which is not in this tree will get focus.
2694 * This API can be helpful for an object to be deleted.
2695 * When an object will be deleted soon, it and its children may not
2696 * want to get focus (by focus reverting or by other focus controls).
2697 * Then, just use this API before deleting.
2699 * @see elm_object_tree_unfocusable_get()
2703 EAPI void elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable) EINA_ARG_NONNULL(1);
2706 * Get whether an Elementary object and its children are unfocusable or not.
2708 * @param obj The Elementary object to get the information from
2709 * @return @c EINA_TRUE, if the tree is unfocussable,
2710 * @c EINA_FALSE if not (and on errors).
2712 * @see elm_object_tree_unfocusable_set()
2716 EAPI Eina_Bool elm_object_tree_unfocusable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2719 * @defgroup Scrolling Scrolling
2721 * These are functions setting how scrollable views in Elementary
2722 * widgets should behave on user interaction.
2728 * Get whether scrollers should bounce when they reach their
2729 * viewport's edge during a scroll.
2731 * @return the thumb scroll bouncing state
2733 * This is the default behavior for touch screens, in general.
2734 * @ingroup Scrolling
2736 EAPI Eina_Bool elm_scroll_bounce_enabled_get(void);
2739 * Set whether scrollers should bounce when they reach their
2740 * viewport's edge during a scroll.
2742 * @param enabled the thumb scroll bouncing state
2744 * @see elm_thumbscroll_bounce_enabled_get()
2745 * @ingroup Scrolling
2747 EAPI void elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2750 * Set whether scrollers should bounce when they reach their
2751 * viewport's edge during a scroll, for all Elementary application
2754 * @param enabled the thumb scroll bouncing state
2756 * @see elm_thumbscroll_bounce_enabled_get()
2757 * @ingroup Scrolling
2759 EAPI void elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2762 * Get the amount of inertia a scroller will impose at bounce
2765 * @return the thumb scroll bounce friction
2767 * @ingroup Scrolling
2769 EAPI double elm_scroll_bounce_friction_get(void);
2772 * Set the amount of inertia a scroller will impose at bounce
2775 * @param friction the thumb scroll bounce friction
2777 * @see elm_thumbscroll_bounce_friction_get()
2778 * @ingroup Scrolling
2780 EAPI void elm_scroll_bounce_friction_set(double friction);
2783 * Set the amount of inertia a scroller will impose at bounce
2784 * animations, for all Elementary application windows.
2786 * @param friction the thumb scroll bounce friction
2788 * @see elm_thumbscroll_bounce_friction_get()
2789 * @ingroup Scrolling
2791 EAPI void elm_scroll_bounce_friction_all_set(double friction);
2794 * Get the amount of inertia a <b>paged</b> scroller will impose at
2795 * page fitting animations.
2797 * @return the page scroll friction
2799 * @ingroup Scrolling
2801 EAPI double elm_scroll_page_scroll_friction_get(void);
2804 * Set the amount of inertia a <b>paged</b> scroller will impose at
2805 * page fitting animations.
2807 * @param friction the page scroll friction
2809 * @see elm_thumbscroll_page_scroll_friction_get()
2810 * @ingroup Scrolling
2812 EAPI void elm_scroll_page_scroll_friction_set(double friction);
2815 * Set the amount of inertia a <b>paged</b> scroller will impose at
2816 * page fitting animations, for all Elementary application windows.
2818 * @param friction the page scroll friction
2820 * @see elm_thumbscroll_page_scroll_friction_get()
2821 * @ingroup Scrolling
2823 EAPI void elm_scroll_page_scroll_friction_all_set(double friction);
2826 * Get the amount of inertia a scroller will impose at region bring
2829 * @return the bring in scroll friction
2831 * @ingroup Scrolling
2833 EAPI double elm_scroll_bring_in_scroll_friction_get(void);
2836 * Set the amount of inertia a scroller will impose at region bring
2839 * @param friction the bring in scroll friction
2841 * @see elm_thumbscroll_bring_in_scroll_friction_get()
2842 * @ingroup Scrolling
2844 EAPI void elm_scroll_bring_in_scroll_friction_set(double friction);
2847 * Set the amount of inertia a scroller will impose at region bring
2848 * animations, for all Elementary application windows.
2850 * @param friction the bring in scroll friction
2852 * @see elm_thumbscroll_bring_in_scroll_friction_get()
2853 * @ingroup Scrolling
2855 EAPI void elm_scroll_bring_in_scroll_friction_all_set(double friction);
2858 * Get the amount of inertia scrollers will impose at animations
2859 * triggered by Elementary widgets' zooming API.
2861 * @return the zoom friction
2863 * @ingroup Scrolling
2865 EAPI double elm_scroll_zoom_friction_get(void);
2868 * Set the amount of inertia scrollers will impose at animations
2869 * triggered by Elementary widgets' zooming API.
2871 * @param friction the zoom friction
2873 * @see elm_thumbscroll_zoom_friction_get()
2874 * @ingroup Scrolling
2876 EAPI void elm_scroll_zoom_friction_set(double friction);
2879 * Set the amount of inertia scrollers will impose at animations
2880 * triggered by Elementary widgets' zooming API, for all Elementary
2881 * application windows.
2883 * @param friction the zoom friction
2885 * @see elm_thumbscroll_zoom_friction_get()
2886 * @ingroup Scrolling
2888 EAPI void elm_scroll_zoom_friction_all_set(double friction);
2891 * Get whether scrollers should be draggable from any point in their
2894 * @return the thumb scroll state
2896 * @note This is the default behavior for touch screens, in general.
2897 * @note All other functions namespaced with "thumbscroll" will only
2898 * have effect if this mode is enabled.
2900 * @ingroup Scrolling
2902 EAPI Eina_Bool elm_scroll_thumbscroll_enabled_get(void);
2905 * Set whether scrollers should be draggable from any point in their
2908 * @param enabled the thumb scroll state
2910 * @see elm_thumbscroll_enabled_get()
2911 * @ingroup Scrolling
2913 EAPI void elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2916 * Set whether scrollers should be draggable from any point in their
2917 * views, for all Elementary application windows.
2919 * @param enabled the thumb scroll state
2921 * @see elm_thumbscroll_enabled_get()
2922 * @ingroup Scrolling
2924 EAPI void elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2927 * Get the number of pixels one should travel while dragging a
2928 * scroller's view to actually trigger scrolling.
2930 * @return the thumb scroll threshould
2932 * One would use higher values for touch screens, in general, because
2933 * of their inherent imprecision.
2934 * @ingroup Scrolling
2936 EAPI unsigned int elm_scroll_thumbscroll_threshold_get(void);
2939 * Set the number of pixels one should travel while dragging a
2940 * scroller's view to actually trigger scrolling.
2942 * @param threshold the thumb scroll threshould
2944 * @see elm_thumbscroll_threshould_get()
2945 * @ingroup Scrolling
2947 EAPI void elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2950 * Set the number of pixels one should travel while dragging a
2951 * scroller's view to actually trigger scrolling, for all Elementary
2952 * application windows.
2954 * @param threshold the thumb scroll threshould
2956 * @see elm_thumbscroll_threshould_get()
2957 * @ingroup Scrolling
2959 EAPI void elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2962 * Get the minimum speed of mouse cursor movement which will trigger
2963 * list self scrolling animation after a mouse up event
2966 * @return the thumb scroll momentum threshould
2968 * @ingroup Scrolling
2970 EAPI double elm_scroll_thumbscroll_momentum_threshold_get(void);
2973 * Set the minimum speed of mouse cursor movement which will trigger
2974 * list self scrolling animation after a mouse up event
2977 * @param threshold the thumb scroll momentum threshould
2979 * @see elm_thumbscroll_momentum_threshould_get()
2980 * @ingroup Scrolling
2982 EAPI void elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2985 * Set the minimum speed of mouse cursor movement which will trigger
2986 * list self scrolling animation after a mouse up event
2987 * (pixels/second), for all Elementary application windows.
2989 * @param threshold the thumb scroll momentum threshould
2991 * @see elm_thumbscroll_momentum_threshould_get()
2992 * @ingroup Scrolling
2994 EAPI void elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2997 * Get the amount of inertia a scroller will impose at self scrolling
3000 * @return the thumb scroll friction
3002 * @ingroup Scrolling
3004 EAPI double elm_scroll_thumbscroll_friction_get(void);
3007 * Set the amount of inertia a scroller will impose at self scrolling
3010 * @param friction the thumb scroll friction
3012 * @see elm_thumbscroll_friction_get()
3013 * @ingroup Scrolling
3015 EAPI void elm_scroll_thumbscroll_friction_set(double friction);
3018 * Set the amount of inertia a scroller will impose at self scrolling
3019 * animations, for all Elementary application windows.
3021 * @param friction the thumb scroll friction
3023 * @see elm_thumbscroll_friction_get()
3024 * @ingroup Scrolling
3026 EAPI void elm_scroll_thumbscroll_friction_all_set(double friction);
3029 * Get the amount of lag between your actual mouse cursor dragging
3030 * movement and a scroller's view movement itself, while pushing it
3031 * into bounce state manually.
3033 * @return the thumb scroll border friction
3035 * @ingroup Scrolling
3037 EAPI double elm_scroll_thumbscroll_border_friction_get(void);
3040 * Set the amount of lag between your actual mouse cursor dragging
3041 * movement and a scroller's view movement itself, while pushing it
3042 * into bounce state manually.
3044 * @param friction the thumb scroll border friction. @c 0.0 for
3045 * perfect synchrony between two movements, @c 1.0 for maximum
3048 * @see elm_thumbscroll_border_friction_get()
3049 * @note parameter value will get bound to 0.0 - 1.0 interval, always
3051 * @ingroup Scrolling
3053 EAPI void elm_scroll_thumbscroll_border_friction_set(double friction);
3056 * Set the amount of lag between your actual mouse cursor dragging
3057 * movement and a scroller's view movement itself, while pushing it
3058 * into bounce state manually, for all Elementary application windows.
3060 * @param friction the thumb scroll border friction. @c 0.0 for
3061 * perfect synchrony between two movements, @c 1.0 for maximum
3064 * @see elm_thumbscroll_border_friction_get()
3065 * @note parameter value will get bound to 0.0 - 1.0 interval, always
3067 * @ingroup Scrolling
3069 EAPI void elm_scroll_thumbscroll_border_friction_all_set(double friction);
3072 * Get the sensitivity amount which is be multiplied by the length of
3075 * @return the thumb scroll sensitivity friction
3077 * @ingroup Scrolling
3079 EAPI double elm_scroll_thumbscroll_sensitivity_friction_get(void);
3082 * Set the sensitivity amount which is be multiplied by the length of
3085 * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3086 * minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3089 * @see elm_thumbscroll_sensitivity_friction_get()
3090 * @note parameter value will get bound to 0.1 - 1.0 interval, always
3092 * @ingroup Scrolling
3094 EAPI void elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
3097 * Set the sensitivity amount which is be multiplied by the length of
3098 * mouse dragging, for all Elementary application windows.
3100 * @param friction the thumb scroll sensitivity friction. @c 0.1 for
3101 * minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
3104 * @see elm_thumbscroll_sensitivity_friction_get()
3105 * @note parameter value will get bound to 0.1 - 1.0 interval, always
3107 * @ingroup Scrolling
3109 EAPI void elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
3116 * @defgroup Scrollhints Scrollhints
3118 * Objects when inside a scroller can scroll, but this may not always be
3119 * desirable in certain situations. This allows an object to hint to itself
3120 * and parents to "not scroll" in one of 2 ways. If any child object of a
3121 * scroller has pushed a scroll freeze or hold then it affects all parent
3122 * scrollers until all children have released them.
3124 * 1. To hold on scrolling. This means just flicking and dragging may no
3125 * longer scroll, but pressing/dragging near an edge of the scroller will
3126 * still scroll. This is automatically used by the entry object when
3129 * 2. To totally freeze scrolling. This means it stops. until
3136 * Push the scroll hold by 1
3138 * This increments the scroll hold count by one. If it is more than 0 it will
3139 * take effect on the parents of the indicated object.
3141 * @param obj The object
3142 * @ingroup Scrollhints
3144 EAPI void elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3147 * Pop the scroll hold by 1
3149 * This decrements the scroll hold count by one. If it is more than 0 it will
3150 * take effect on the parents of the indicated object.
3152 * @param obj The object
3153 * @ingroup Scrollhints
3155 EAPI void elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3158 * Push the scroll freeze by 1
3160 * This increments the scroll freeze count by one. If it is more
3161 * than 0 it will take effect on the parents of the indicated
3164 * @param obj The object
3165 * @ingroup Scrollhints
3167 EAPI void elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
3170 * Pop the scroll freeze by 1
3172 * This decrements the scroll freeze count by one. If it is more
3173 * than 0 it will take effect on the parents of the indicated
3176 * @param obj The object
3177 * @ingroup Scrollhints
3179 EAPI void elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
3182 * Lock the scrolling of the given widget (and thus all parents)
3184 * This locks the given object from scrolling in the X axis (and implicitly
3185 * also locks all parent scrollers too from doing the same).
3187 * @param obj The object
3188 * @param lock The lock state (1 == locked, 0 == unlocked)
3189 * @ingroup Scrollhints
3191 EAPI void elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3194 * Lock the scrolling of the given widget (and thus all parents)
3196 * This locks the given object from scrolling in the Y axis (and implicitly
3197 * also locks all parent scrollers too from doing the same).
3199 * @param obj The object
3200 * @param lock The lock state (1 == locked, 0 == unlocked)
3201 * @ingroup Scrollhints
3203 EAPI void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
3206 * Get the scrolling lock of the given widget
3208 * This gets the lock for X axis scrolling.
3210 * @param obj The object
3211 * @ingroup Scrollhints
3213 EAPI Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3216 * Get the scrolling lock of the given widget
3218 * This gets the lock for X axis scrolling.
3220 * @param obj The object
3221 * @ingroup Scrollhints
3223 EAPI Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3230 * Send a signal to the widget edje object.
3232 * This function sends a signal to the edje object of the obj. An
3233 * edje program can respond to a signal by specifying matching
3234 * 'signal' and 'source' fields.
3236 * @param obj The object
3237 * @param emission The signal's name.
3238 * @param source The signal's source.
3241 EAPI void elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
3244 * Add a callback for a signal emitted by widget edje object.
3246 * This function connects a callback function to a signal emitted by the
3247 * edje object of the obj.
3248 * Globs can occur in either the emission or source name.
3250 * @param obj The object
3251 * @param emission The signal's name.
3252 * @param source The signal's source.
3253 * @param func The callback function to be executed when the signal is
3255 * @param data A pointer to data to pass in to the callback function.
3258 EAPI void elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) EINA_ARG_NONNULL(1, 4);
3261 * Remove a signal-triggered callback from a widget edje object.
3263 * This function removes a callback, previoulsy attached to a
3264 * signal emitted by the edje object of the obj. The parameters
3265 * emission, source and func must match exactly those passed to a
3266 * previous call to elm_object_signal_callback_add(). The data
3267 * pointer that was passed to this call will be returned.
3269 * @param obj The object
3270 * @param emission The signal's name.
3271 * @param source The signal's source.
3272 * @param func The callback function to be executed when the signal is
3274 * @return The data pointer
3277 EAPI void *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func) EINA_ARG_NONNULL(1, 4);
3280 * Add a callback for input events (key up, key down, mouse wheel)
3281 * on a given Elementary widget
3283 * @param obj The widget to add an event callback on
3284 * @param func The callback function to be executed when the event
3286 * @param data Data to pass in to @p func
3288 * Every widget in an Elementary interface set to receive focus,
3289 * with elm_object_focus_allow_set(), will propagate @b all of its
3290 * key up, key down and mouse wheel input events up to its parent
3291 * object, and so on. All of the focusable ones in this chain which
3292 * had an event callback set, with this call, will be able to treat
3293 * those events. There are two ways of making the propagation of
3294 * these event upwards in the tree of widgets to @b cease:
3295 * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
3296 * the event was @b not processed, so the propagation will go on.
3297 * - The @c event_info pointer passed to @p func will contain the
3298 * event's structure and, if you OR its @c event_flags inner
3299 * value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
3300 * one has already handled it, thus killing the event's
3303 * @note Your event callback will be issued on those events taking
3304 * place only if no other child widget of @obj has consumed the
3307 * @note Not to be confused with @c
3308 * evas_object_event_callback_add(), which will add event callbacks
3309 * per type on general Evas objects (no event propagation
3310 * infrastructure taken in account).
3312 * @note Not to be confused with @c
3313 * elm_object_signal_callback_add(), which will add callbacks to @b
3314 * signals coming from a widget's theme, not input events.
3316 * @note Not to be confused with @c
3317 * edje_object_signal_callback_add(), which does the same as
3318 * elm_object_signal_callback_add(), but directly on an Edje
3321 * @note Not to be confused with @c
3322 * evas_object_smart_callback_add(), which adds callbacks to smart
3323 * objects' <b>smart events</b>, and not input events.
3325 * @see elm_object_event_callback_del()
3329 EAPI void elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3332 * Remove an event callback from a widget.
3334 * This function removes a callback, previoulsy attached to event emission
3336 * The parameters func and data must match exactly those passed to
3337 * a previous call to elm_object_event_callback_add(). The data pointer that
3338 * was passed to this call will be returned.
3340 * @param obj The object
3341 * @param func The callback function to be executed when the event is
3343 * @param data Data to pass in to the callback function.
3344 * @return The data pointer
3347 EAPI void *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3350 * Adjust size of an element for finger usage.
3352 * @param times_w How many fingers should fit horizontally
3353 * @param w Pointer to the width size to adjust
3354 * @param times_h How many fingers should fit vertically
3355 * @param h Pointer to the height size to adjust
3357 * This takes width and height sizes (in pixels) as input and a
3358 * size multiple (which is how many fingers you want to place
3359 * within the area, being "finger" the size set by
3360 * elm_finger_size_set()), and adjusts the size to be large enough
3361 * to accommodate the resulting size -- if it doesn't already
3362 * accommodate it. On return the @p w and @p h sizes pointed to by
3363 * these parameters will be modified, on those conditions.
3365 * @note This is kind of a low level Elementary call, most useful
3366 * on size evaluation times for widgets. An external user wouldn't
3367 * be calling, most of the time.
3371 EAPI void elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3374 * Get the duration for occuring long press event.
3376 * @return Timeout for long press event
3377 * @ingroup Longpress
3379 EAPI double elm_longpress_timeout_get(void);
3382 * Set the duration for occuring long press event.
3384 * @param lonpress_timeout Timeout for long press event
3385 * @ingroup Longpress
3387 EAPI void elm_longpress_timeout_set(double longpress_timeout);
3390 * @defgroup Debug Debug
3391 * don't use it unless you are sure
3397 * Print Tree object hierarchy in stdout
3399 * @param obj The root object
3402 EAPI void elm_object_tree_dump(const Evas_Object *top);
3405 * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3407 * @param obj The root object
3408 * @param file The path of output file
3411 EAPI void elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3418 * @defgroup Theme Theme
3420 * Elementary uses Edje to theme its widgets, naturally. But for the most
3421 * part this is hidden behind a simpler interface that lets the user set
3422 * extensions and choose the style of widgets in a much easier way.
3424 * Instead of thinking in terms of paths to Edje files and their groups
3425 * each time you want to change the appearance of a widget, Elementary
3426 * works so you can add any theme file with extensions or replace the
3427 * main theme at one point in the application, and then just set the style
3428 * of widgets with elm_object_style_set() and related functions. Elementary
3429 * will then look in its list of themes for a matching group and apply it,
3430 * and when the theme changes midway through the application, all widgets
3431 * will be updated accordingly.
3433 * There are three concepts you need to know to understand how Elementary
3434 * theming works: default theme, extensions and overlays.
3436 * Default theme, obviously enough, is the one that provides the default
3437 * look of all widgets. End users can change the theme used by Elementary
3438 * by setting the @c ELM_THEME environment variable before running an
3439 * application, or globally for all programs using the @c elementary_config
3440 * utility. Applications can change the default theme using elm_theme_set(),
3441 * but this can go against the user wishes, so it's not an adviced practice.
3443 * Ideally, applications should find everything they need in the already
3444 * provided theme, but there may be occasions when that's not enough and
3445 * custom styles are required to correctly express the idea. For this
3446 * cases, Elementary has extensions.
3448 * Extensions allow the application developer to write styles of its own
3449 * to apply to some widgets. This requires knowledge of how each widget
3450 * is themed, as extensions will always replace the entire group used by
3451 * the widget, so important signals and parts need to be there for the
3452 * object to behave properly (see documentation of Edje for details).
3453 * Once the theme for the extension is done, the application needs to add
3454 * it to the list of themes Elementary will look into, using
3455 * elm_theme_extension_add(), and set the style of the desired widgets as
3456 * he would normally with elm_object_style_set().
3458 * Overlays, on the other hand, can replace the look of all widgets by
3459 * overriding the default style. Like extensions, it's up to the application
3460 * developer to write the theme for the widgets it wants, the difference
3461 * being that when looking for the theme, Elementary will check first the
3462 * list of overlays, then the set theme and lastly the list of extensions,
3463 * so with overlays it's possible to replace the default view and every
3464 * widget will be affected. This is very much alike to setting the whole
3465 * theme for the application and will probably clash with the end user
3466 * options, not to mention the risk of ending up with not matching styles
3467 * across the program. Unless there's a very special reason to use them,
3468 * overlays should be avoided for the resons exposed before.
3470 * All these theme lists are handled by ::Elm_Theme instances. Elementary
3471 * keeps one default internally and every function that receives one of
3472 * these can be called with NULL to refer to this default (except for
3473 * elm_theme_free()). It's possible to create a new instance of a
3474 * ::Elm_Theme to set other theme for a specific widget (and all of its
3475 * children), but this is as discouraged, if not even more so, than using
3476 * overlays. Don't use this unless you really know what you are doing.
3478 * But to be less negative about things, you can look at the following
3480 * @li @ref theme_example_01 "Using extensions"
3481 * @li @ref theme_example_02 "Using overlays"
3486 * @typedef Elm_Theme
3488 * Opaque handler for the list of themes Elementary looks for when
3489 * rendering widgets.
3491 * Stay out of this unless you really know what you are doing. For most
3492 * cases, sticking to the default is all a developer needs.
3494 typedef struct _Elm_Theme Elm_Theme;
3497 * Create a new specific theme
3499 * This creates an empty specific theme that only uses the default theme. A
3500 * specific theme has its own private set of extensions and overlays too
3501 * (which are empty by default). Specific themes do not fall back to themes
3502 * of parent objects. They are not intended for this use. Use styles, overlays
3503 * and extensions when needed, but avoid specific themes unless there is no
3504 * other way (example: you want to have a preview of a new theme you are
3505 * selecting in a "theme selector" window. The preview is inside a scroller
3506 * and should display what the theme you selected will look like, but not
3507 * actually apply it yet. The child of the scroller will have a specific
3508 * theme set to show this preview before the user decides to apply it to all
3511 EAPI Elm_Theme *elm_theme_new(void);
3513 * Free a specific theme
3515 * @param th The theme to free
3517 * This frees a theme created with elm_theme_new().
3519 EAPI void elm_theme_free(Elm_Theme *th);
3521 * Copy the theme fom the source to the destination theme
3523 * @param th The source theme to copy from
3524 * @param thdst The destination theme to copy data to
3526 * This makes a one-time static copy of all the theme config, extensions
3527 * and overlays from @p th to @p thdst. If @p th references a theme, then
3528 * @p thdst is also set to reference it, with all the theme settings,
3529 * overlays and extensions that @p th had.
3531 EAPI void elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3533 * Tell the source theme to reference the ref theme
3535 * @param th The theme that will do the referencing
3536 * @param thref The theme that is the reference source
3538 * This clears @p th to be empty and then sets it to refer to @p thref
3539 * so @p th acts as an override to @p thref, but where its overrides
3540 * don't apply, it will fall through to @p thref for configuration.
3542 EAPI void elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3544 * Return the theme referred to
3546 * @param th The theme to get the reference from
3547 * @return The referenced theme handle
3549 * This gets the theme set as the reference theme by elm_theme_ref_set().
3550 * If no theme is set as a reference, NULL is returned.
3552 EAPI Elm_Theme *elm_theme_ref_get(Elm_Theme *th);
3554 * Return the default theme
3556 * @return The default theme handle
3558 * This returns the internal default theme setup handle that all widgets
3559 * use implicitly unless a specific theme is set. This is also often use
3560 * as a shorthand of NULL.
3562 EAPI Elm_Theme *elm_theme_default_get(void);
3564 * Prepends a theme overlay to the list of overlays
3566 * @param th The theme to add to, or if NULL, the default theme
3567 * @param item The Edje file path to be used
3569 * Use this if your application needs to provide some custom overlay theme
3570 * (An Edje file that replaces some default styles of widgets) where adding
3571 * new styles, or changing system theme configuration is not possible. Do
3572 * NOT use this instead of a proper system theme configuration. Use proper
3573 * configuration files, profiles, environment variables etc. to set a theme
3574 * so that the theme can be altered by simple confiugration by a user. Using
3575 * this call to achieve that effect is abusing the API and will create lots
3578 * @see elm_theme_extension_add()
3580 EAPI void elm_theme_overlay_add(Elm_Theme *th, const char *item);
3582 * Delete a theme overlay from the list of overlays
3584 * @param th The theme to delete from, or if NULL, the default theme
3585 * @param item The name of the theme overlay
3587 * @see elm_theme_overlay_add()
3589 EAPI void elm_theme_overlay_del(Elm_Theme *th, const char *item);
3591 * Appends a theme extension to the list of extensions.
3593 * @param th The theme to add to, or if NULL, the default theme
3594 * @param item The Edje file path to be used
3596 * This is intended when an application needs more styles of widgets or new
3597 * widget themes that the default does not provide (or may not provide). The
3598 * application has "extended" usage by coming up with new custom style names
3599 * for widgets for specific uses, but as these are not "standard", they are
3600 * not guaranteed to be provided by a default theme. This means the
3601 * application is required to provide these extra elements itself in specific
3602 * Edje files. This call adds one of those Edje files to the theme search
3603 * path to be search after the default theme. The use of this call is
3604 * encouraged when default styles do not meet the needs of the application.
3605 * Use this call instead of elm_theme_overlay_add() for almost all cases.
3607 * @see elm_object_style_set()
3609 EAPI void elm_theme_extension_add(Elm_Theme *th, const char *item);
3611 * Deletes a theme extension from the list of extensions.
3613 * @param th The theme to delete from, or if NULL, the default theme
3614 * @param item The name of the theme extension
3616 * @see elm_theme_extension_add()
3618 EAPI void elm_theme_extension_del(Elm_Theme *th, const char *item);
3620 * Set the theme search order for the given theme
3622 * @param th The theme to set the search order, or if NULL, the default theme
3623 * @param theme Theme search string
3625 * This sets the search string for the theme in path-notation from first
3626 * theme to search, to last, delimited by the : character. Example:
3628 * "shiny:/path/to/file.edj:default"
3630 * See the ELM_THEME environment variable for more information.
3632 * @see elm_theme_get()
3633 * @see elm_theme_list_get()
3635 EAPI void elm_theme_set(Elm_Theme *th, const char *theme);
3637 * Return the theme search order
3639 * @param th The theme to get the search order, or if NULL, the default theme
3640 * @return The internal search order path
3642 * This function returns a colon separated string of theme elements as
3643 * returned by elm_theme_list_get().
3645 * @see elm_theme_set()
3646 * @see elm_theme_list_get()
3648 EAPI const char *elm_theme_get(Elm_Theme *th);
3650 * Return a list of theme elements to be used in a theme.
3652 * @param th Theme to get the list of theme elements from.
3653 * @return The internal list of theme elements
3655 * This returns the internal list of theme elements (will only be valid as
3656 * long as the theme is not modified by elm_theme_set() or theme is not
3657 * freed by elm_theme_free(). This is a list of strings which must not be
3658 * altered as they are also internal. If @p th is NULL, then the default
3659 * theme element list is returned.
3661 * A theme element can consist of a full or relative path to a .edj file,
3662 * or a name, without extension, for a theme to be searched in the known
3663 * theme paths for Elemementary.
3665 * @see elm_theme_set()
3666 * @see elm_theme_get()
3668 EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3670 * Return the full patrh for a theme element
3672 * @param f The theme element name
3673 * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3674 * @return The full path to the file found.
3676 * This returns a string you should free with free() on success, NULL on
3677 * failure. This will search for the given theme element, and if it is a
3678 * full or relative path element or a simple searchable name. The returned
3679 * path is the full path to the file, if searched, and the file exists, or it
3680 * is simply the full path given in the element or a resolved path if
3681 * relative to home. The @p in_search_path boolean pointed to is set to
3682 * EINA_TRUE if the file was a searchable file andis in the search path,
3683 * and EINA_FALSE otherwise.
3685 EAPI char *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3687 * Flush the current theme.
3689 * @param th Theme to flush
3691 * This flushes caches that let elementary know where to find theme elements
3692 * in the given theme. If @p th is NULL, then the default theme is flushed.
3693 * Call this function if source theme data has changed in such a way as to
3694 * make any caches Elementary kept invalid.
3696 EAPI void elm_theme_flush(Elm_Theme *th);
3698 * This flushes all themes (default and specific ones).
3700 * This will flush all themes in the current application context, by calling
3701 * elm_theme_flush() on each of them.
3703 EAPI void elm_theme_full_flush(void);
3705 * Set the theme for all elementary using applications on the current display
3707 * @param theme The name of the theme to use. Format same as the ELM_THEME
3708 * environment variable.
3710 EAPI void elm_theme_all_set(const char *theme);
3712 * Return a list of theme elements in the theme search path
3714 * @return A list of strings that are the theme element names.
3716 * This lists all available theme files in the standard Elementary search path
3717 * for theme elements, and returns them in alphabetical order as theme
3718 * element names in a list of strings. Free this with
3719 * elm_theme_name_available_list_free() when you are done with the list.
3721 EAPI Eina_List *elm_theme_name_available_list_new(void);
3723 * Free the list returned by elm_theme_name_available_list_new()
3725 * This frees the list of themes returned by
3726 * elm_theme_name_available_list_new(). Once freed the list should no longer
3727 * be used. a new list mys be created.
3729 EAPI void elm_theme_name_available_list_free(Eina_List *list);
3731 * Set a specific theme to be used for this object and its children
3733 * @param obj The object to set the theme on
3734 * @param th The theme to set
3736 * This sets a specific theme that will be used for the given object and any
3737 * child objects it has. If @p th is NULL then the theme to be used is
3738 * cleared and the object will inherit its theme from its parent (which
3739 * ultimately will use the default theme if no specific themes are set).
3741 * Use special themes with great care as this will annoy users and make
3742 * configuration difficult. Avoid any custom themes at all if it can be
3745 EAPI void elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3747 * Get the specific theme to be used
3749 * @param obj The object to get the specific theme from
3750 * @return The specifc theme set.
3752 * This will return a specific theme set, or NULL if no specific theme is
3753 * set on that object. It will not return inherited themes from parents, only
3754 * the specific theme set for that specific object. See elm_object_theme_set()
3755 * for more information.
3757 EAPI Elm_Theme *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3760 * Get a data item from a theme
3762 * @param th The theme, or NULL for default theme
3763 * @param key The data key to search with
3764 * @return The data value, or NULL on failure
3766 * This function is used to return data items from edc in @p th, an overlay, or an extension.
3767 * It works the same way as edje_file_data_get() except that the return is stringshared.
3769 EAPI const char *elm_theme_data_get(Elm_Theme *th, const char *key) EINA_ARG_NONNULL(2);
3775 /** @defgroup Win Win
3777 * @image html img/widget/win/preview-00.png
3778 * @image latex img/widget/win/preview-00.eps
3780 * The window class of Elementary. Contains functions to manipulate
3781 * windows. The Evas engine used to render the window contents is specified
3782 * in the system or user elementary config files (whichever is found last),
3783 * and can be overridden with the ELM_ENGINE environment variable for
3784 * testing. Engines that may be supported (depending on Evas and Ecore-Evas
3785 * compilation setup and modules actually installed at runtime) are (listed
3786 * in order of best supported and most likely to be complete and work to
3789 * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3790 * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3792 * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3794 * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3796 * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3798 * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3799 * rendering using SDL as the buffer)
3800 * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3801 * GDI with software)
3802 * @li "dfb", "directfb" (Rendering to a DirectFB window)
3803 * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3804 * grayscale using dedicated 8bit software engine in X11)
3805 * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3806 * X11 using 16bit software engine)
3807 * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3808 * (Windows CE rendering via GDI with 16bit software renderer)
3809 * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3810 * buffer with 16bit software renderer)
3811 * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System)
3812 * @li "gl-cocoa", "gl_cocoa", "opengl-cocoa", "opengl_cocoa" (OpenGL rendering in Cocoa)
3813 * @li "psl1ght" (PS3 rendering using PSL1GHT)
3815 * All engines use a simple string to select the engine to render, EXCEPT
3816 * the "shot" engine. This actually encodes the output of the virtual
3817 * screenshot and how long to delay in the engine string. The engine string
3818 * is encoded in the following way:
3820 * "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3822 * Where options are separated by a ":" char if more than one option is
3823 * given, with delay, if provided being the first option and file the last
3824 * (order is important). The delay specifies how long to wait after the
3825 * window is shown before doing the virtual "in memory" rendering and then
3826 * save the output to the file specified by the file option (and then exit).
3827 * If no delay is given, the default is 0.5 seconds. If no file is given the
3828 * default output file is "out.png". Repeat option is for continous
3829 * capturing screenshots. Repeat range is from 1 to 999 and filename is
3830 * fixed to "out001.png" Some examples of using the shot engine:
3832 * ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3833 * ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3834 * ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3835 * ELM_ENGINE="shot:delay=2.0" elementary_test
3836 * ELM_ENGINE="shot:" elementary_test
3838 * Signals that you can add callbacks for are:
3840 * @li "delete,request": the user requested to close the window. See
3841 * elm_win_autodel_set().
3842 * @li "focus,in": window got focus
3843 * @li "focus,out": window lost focus
3844 * @li "moved": window that holds the canvas was moved
3847 * @li @ref win_example_01
3852 * Defines the types of window that can be created
3854 * These are hints set on the window so that a running Window Manager knows
3855 * how the window should be handled and/or what kind of decorations it
3858 * Currently, only the X11 backed engines use them.
3860 typedef enum _Elm_Win_Type
3862 ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3863 window. Almost every window will be created with this
3865 ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3866 ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3867 window holding desktop icons. */
3868 ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3869 be kept on top of any other window by the Window
3871 ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3873 ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3874 ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3876 ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3877 ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3878 entry in a menubar is clicked. Typically used
3879 with elm_win_override_set(). This hint exists
3880 for completion only, as the EFL way of
3881 implementing a menu would not normally use a
3882 separate window for its contents. */
3883 ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3884 triggered by right-clicking an object. */
3885 ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3886 explanatory text that typically appear after the
3887 mouse cursor hovers over an object for a while.
3888 Typically used with elm_win_override_set() and also
3889 not very commonly used in the EFL. */
3890 ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3891 battery life or a new E-Mail received. */
3892 ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3893 usually used in the EFL. */
3894 ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3895 object being dragged across different windows, or even
3896 applications. Typically used with
3897 elm_win_override_set(). */
3898 ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3899 buffer. No actual window is created for this
3900 type, instead the window and all of its
3901 contents will be rendered to an image buffer.
3902 This allows to have children window inside a
3903 parent one just like any other object would
3904 be, and do other things like applying @c
3905 Evas_Map effects to it. This is the only type
3906 of window that requires the @c parent
3907 parameter of elm_win_add() to be a valid @c
3912 * The differents layouts that can be requested for the virtual keyboard.
3914 * When the application window is being managed by Illume, it may request
3915 * any of the following layouts for the virtual keyboard.
3917 typedef enum _Elm_Win_Keyboard_Mode
3919 ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3920 ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3921 ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3922 ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3923 ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3924 ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3925 ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3926 ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3927 ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3928 ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3929 ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3930 ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3931 ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3932 ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3933 ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3934 ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3935 } Elm_Win_Keyboard_Mode;
3938 * Available commands that can be sent to the Illume manager.
3940 * When running under an Illume session, a window may send commands to the
3941 * Illume manager to perform different actions.
3943 typedef enum _Elm_Illume_Command
3945 ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3947 ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3949 ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3951 ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3952 } Elm_Illume_Command;
3955 * Adds a window object. If this is the first window created, pass NULL as
3958 * @param parent Parent object to add the window to, or NULL
3959 * @param name The name of the window
3960 * @param type The window type, one of #Elm_Win_Type.
3962 * The @p parent paramter can be @c NULL for every window @p type except
3963 * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3964 * which the image object will be created.
3966 * @return The created object, or NULL on failure
3968 EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3970 * Adds a window object with standard setup
3972 * @param name The name of the window
3973 * @param title The title for the window
3975 * This creates a window like elm_win_add() but also puts in a standard
3976 * background with elm_bg_add(), as well as setting the window title to
3977 * @p title. The window type created is of type ELM_WIN_BASIC, with NULL
3978 * as the parent widget.
3980 * @return The created object, or NULL on failure
3982 * @see elm_win_add()
3984 EAPI Evas_Object *elm_win_util_standard_add(const char *name, const char *title);
3986 * Add @p subobj as a resize object of window @p obj.
3989 * Setting an object as a resize object of the window means that the
3990 * @p subobj child's size and position will be controlled by the window
3991 * directly. That is, the object will be resized to match the window size
3992 * and should never be moved or resized manually by the developer.
3994 * In addition, resize objects of the window control what the minimum size
3995 * of it will be, as well as whether it can or not be resized by the user.
3997 * For the end user to be able to resize a window by dragging the handles
3998 * or borders provided by the Window Manager, or using any other similar
3999 * mechanism, all of the resize objects in the window should have their
4000 * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
4002 * @param obj The window object
4003 * @param subobj The resize object to add
4005 EAPI void elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4007 * Delete @p subobj as a resize object of window @p obj.
4009 * This function removes the object @p subobj from the resize objects of
4010 * the window @p obj. It will not delete the object itself, which will be
4011 * left unmanaged and should be deleted by the developer, manually handled
4012 * or set as child of some other container.
4014 * @param obj The window object
4015 * @param subobj The resize object to add
4017 EAPI void elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
4019 * Set the title of the window
4021 * @param obj The window object
4022 * @param title The title to set
4024 EAPI void elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
4026 * Get the title of the window
4028 * The returned string is an internal one and should not be freed or
4029 * modified. It will also be rendered invalid if a new title is set or if
4030 * the window is destroyed.
4032 * @param obj The window object
4035 EAPI const char *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4037 * Set the window's autodel state.
4039 * When closing the window in any way outside of the program control, like
4040 * pressing the X button in the titlebar or using a command from the
4041 * Window Manager, a "delete,request" signal is emitted to indicate that
4042 * this event occurred and the developer can take any action, which may
4043 * include, or not, destroying the window object.
4045 * When the @p autodel parameter is set, the window will be automatically
4046 * destroyed when this event occurs, after the signal is emitted.
4047 * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
4048 * and is up to the program to do so when it's required.
4050 * @param obj The window object
4051 * @param autodel If true, the window will automatically delete itself when
4054 EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
4056 * Get the window's autodel state.
4058 * @param obj The window object
4059 * @return If the window will automatically delete itself when closed
4061 * @see elm_win_autodel_set()
4063 EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4065 * Activate a window object.
4067 * This function sends a request to the Window Manager to activate the
4068 * window pointed by @p obj. If honored by the WM, the window will receive
4069 * the keyboard focus.
4071 * @note This is just a request that a Window Manager may ignore, so calling
4072 * this function does not ensure in any way that the window will be the
4073 * active one after it.
4075 * @param obj The window object
4077 EAPI void elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4079 * Lower a window object.
4081 * Places the window pointed by @p obj at the bottom of the stack, so that
4082 * no other window is covered by it.
4084 * If elm_win_override_set() is not set, the Window Manager may ignore this
4087 * @param obj The window object
4089 EAPI void elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
4091 * Raise a window object.
4093 * Places the window pointed by @p obj at the top of the stack, so that it's
4094 * not covered by any other window.
4096 * If elm_win_override_set() is not set, the Window Manager may ignore this
4099 * @param obj The window object
4101 EAPI void elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
4103 * Set the borderless state of a window.
4105 * This function requests the Window Manager to not draw any decoration
4106 * around the window.
4108 * @param obj The window object
4109 * @param borderless If true, the window is borderless
4111 EAPI void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
4113 * Get the borderless state of a window.
4115 * @param obj The window object
4116 * @return If true, the window is borderless
4118 EAPI Eina_Bool elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4120 * Set the shaped state of a window.
4122 * Shaped windows, when supported, will render the parts of the window that
4123 * has no content, transparent.
4125 * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
4126 * background object or cover the entire window in any other way, or the
4127 * parts of the canvas that have no data will show framebuffer artifacts.
4129 * @param obj The window object
4130 * @param shaped If true, the window is shaped
4132 * @see elm_win_alpha_set()
4134 EAPI void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
4136 * Get the shaped state of a window.
4138 * @param obj The window object
4139 * @return If true, the window is shaped
4141 * @see elm_win_shaped_set()
4143 EAPI Eina_Bool elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4145 * Set the alpha channel state of a window.
4147 * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
4148 * possibly making parts of the window completely or partially transparent.
4149 * This is also subject to the underlying system supporting it, like for
4150 * example, running under a compositing manager. If no compositing is
4151 * available, enabling this option will instead fallback to using shaped
4152 * windows, with elm_win_shaped_set().
4154 * @param obj The window object
4155 * @param alpha If true, the window has an alpha channel
4157 * @see elm_win_alpha_set()
4159 EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
4161 * Get the transparency state of a window.
4163 * @param obj The window object
4164 * @return If true, the window is transparent
4166 * @see elm_win_transparent_set()
4168 EAPI Eina_Bool elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4170 * Set the transparency state of a window.
4172 * Use elm_win_alpha_set() instead.
4174 * @param obj The window object
4175 * @param transparent If true, the window is transparent
4177 * @see elm_win_alpha_set()
4179 EAPI void elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
4181 * Get the alpha channel state of a window.
4183 * @param obj The window object
4184 * @return If true, the window has an alpha channel
4186 EAPI Eina_Bool elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4188 * Set the override state of a window.
4190 * A window with @p override set to EINA_TRUE will not be managed by the
4191 * Window Manager. This means that no decorations of any kind will be shown
4192 * for it, moving and resizing must be handled by the application, as well
4193 * as the window visibility.
4195 * This should not be used for normal windows, and even for not so normal
4196 * ones, it should only be used when there's a good reason and with a lot
4197 * of care. Mishandling override windows may result situations that
4198 * disrupt the normal workflow of the end user.
4200 * @param obj The window object
4201 * @param override If true, the window is overridden
4203 EAPI void elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
4205 * Get the override state of a window.
4207 * @param obj The window object
4208 * @return If true, the window is overridden
4210 * @see elm_win_override_set()
4212 EAPI Eina_Bool elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4214 * Set the fullscreen state of a window.
4216 * @param obj The window object
4217 * @param fullscreen If true, the window is fullscreen
4219 EAPI void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
4221 * Get the fullscreen state of a window.
4223 * @param obj The window object
4224 * @return If true, the window is fullscreen
4226 EAPI Eina_Bool elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4228 * Set the maximized state of a window.
4230 * @param obj The window object
4231 * @param maximized If true, the window is maximized
4233 EAPI void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
4235 * Get the maximized state of a window.
4237 * @param obj The window object
4238 * @return If true, the window is maximized
4240 EAPI Eina_Bool elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4242 * Set the iconified state of a window.
4244 * @param obj The window object
4245 * @param iconified If true, the window is iconified
4247 EAPI void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
4249 * Get the iconified state of a window.
4251 * @param obj The window object
4252 * @return If true, the window is iconified
4254 EAPI Eina_Bool elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4256 * Set the layer of the window.
4258 * What this means exactly will depend on the underlying engine used.
4260 * In the case of X11 backed engines, the value in @p layer has the
4261 * following meanings:
4262 * @li < 3: The window will be placed below all others.
4263 * @li > 5: The window will be placed above all others.
4264 * @li other: The window will be placed in the default layer.
4266 * @param obj The window object
4267 * @param layer The layer of the window
4269 EAPI void elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
4271 * Get the layer of the window.
4273 * @param obj The window object
4274 * @return The layer of the window
4276 * @see elm_win_layer_set()
4278 EAPI int elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4280 * Set the rotation of the window.
4282 * Most engines only work with multiples of 90.
4284 * This function is used to set the orientation of the window @p obj to
4285 * match that of the screen. The window itself will be resized to adjust
4286 * to the new geometry of its contents. If you want to keep the window size,
4287 * see elm_win_rotation_with_resize_set().
4289 * @param obj The window object
4290 * @param rotation The rotation of the window, in degrees (0-360),
4291 * counter-clockwise.
4293 EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4295 * Rotates the window and resizes it.
4297 * Like elm_win_rotation_set(), but it also resizes the window's contents so
4298 * that they fit inside the current window geometry.
4300 * @param obj The window object
4301 * @param layer The rotation of the window in degrees (0-360),
4302 * counter-clockwise.
4304 EAPI void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
4306 * Get the rotation of the window.
4308 * @param obj The window object
4309 * @return The rotation of the window in degrees (0-360)
4311 * @see elm_win_rotation_set()
4312 * @see elm_win_rotation_with_resize_set()
4314 EAPI int elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4316 * Set the sticky state of the window.
4318 * Hints the Window Manager that the window in @p obj should be left fixed
4319 * at its position even when the virtual desktop it's on moves or changes.
4321 * @param obj The window object
4322 * @param sticky If true, the window's sticky state is enabled
4324 EAPI void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
4326 * Get the sticky state of the window.
4328 * @param obj The window object
4329 * @return If true, the window's sticky state is enabled
4331 * @see elm_win_sticky_set()
4333 EAPI Eina_Bool elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4335 * Set if this window is an illume conformant window
4337 * @param obj The window object
4338 * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
4340 EAPI void elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
4342 * Get if this window is an illume conformant window
4344 * @param obj The window object
4345 * @return A boolean if this window is illume conformant or not
4347 EAPI Eina_Bool elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4349 * Set a window to be an illume quickpanel window
4351 * By default window objects are not quickpanel windows.
4353 * @param obj The window object
4354 * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
4356 EAPI void elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
4358 * Get if this window is a quickpanel or not
4360 * @param obj The window object
4361 * @return A boolean if this window is a quickpanel or not
4363 EAPI Eina_Bool elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4365 * Set the major priority of a quickpanel window
4367 * @param obj The window object
4368 * @param priority The major priority for this quickpanel
4370 EAPI void elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4372 * Get the major priority of a quickpanel window
4374 * @param obj The window object
4375 * @return The major priority of this quickpanel
4377 EAPI int elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4379 * Set the minor priority of a quickpanel window
4381 * @param obj The window object
4382 * @param priority The minor priority for this quickpanel
4384 EAPI void elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4386 * Get the minor priority of a quickpanel window
4388 * @param obj The window object
4389 * @return The minor priority of this quickpanel
4391 EAPI int elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4393 * Set which zone this quickpanel should appear in
4395 * @param obj The window object
4396 * @param zone The requested zone for this quickpanel
4398 EAPI void elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4400 * Get which zone this quickpanel should appear in
4402 * @param obj The window object
4403 * @return The requested zone for this quickpanel
4405 EAPI int elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4407 * Set the window to be skipped by keyboard focus
4409 * This sets the window to be skipped by normal keyboard input. This means
4410 * a window manager will be asked to not focus this window as well as omit
4411 * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4413 * Call this and enable it on a window BEFORE you show it for the first time,
4414 * otherwise it may have no effect.
4416 * Use this for windows that have only output information or might only be
4417 * interacted with by the mouse or fingers, and never for typing input.
4418 * Be careful that this may have side-effects like making the window
4419 * non-accessible in some cases unless the window is specially handled. Use
4422 * @param obj The window object
4423 * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4425 EAPI void elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4427 * Send a command to the windowing environment
4429 * This is intended to work in touchscreen or small screen device
4430 * environments where there is a more simplistic window management policy in
4431 * place. This uses the window object indicated to select which part of the
4432 * environment to control (the part that this window lives in), and provides
4433 * a command and an optional parameter structure (use NULL for this if not
4436 * @param obj The window object that lives in the environment to control
4437 * @param command The command to send
4438 * @param params Optional parameters for the command
4440 EAPI void elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4442 * Get the inlined image object handle
4444 * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4445 * then the window is in fact an evas image object inlined in the parent
4446 * canvas. You can get this object (be careful to not manipulate it as it
4447 * is under control of elementary), and use it to do things like get pixel
4448 * data, save the image to a file, etc.
4450 * @param obj The window object to get the inlined image from
4451 * @return The inlined image object, or NULL if none exists
4453 EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4455 * Determine whether a window has focus
4456 * @param obj The window to query
4457 * @return EINA_TRUE if the window exists and has focus, else EINA_FALSE
4459 EAPI Eina_Bool elm_win_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4461 * Get screen geometry details for the screen that a window is on
4462 * @param obj The window to query
4463 * @param x where to return the horizontal offset value. May be NULL.
4464 * @param y where to return the vertical offset value. May be NULL.
4465 * @param w where to return the width value. May be NULL.
4466 * @param h where to return the height value. May be NULL.
4468 EAPI void elm_win_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
4470 * Set the enabled status for the focus highlight in a window
4472 * This function will enable or disable the focus highlight only for the
4473 * given window, regardless of the global setting for it
4475 * @param obj The window where to enable the highlight
4476 * @param enabled The enabled value for the highlight
4478 EAPI void elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4480 * Get the enabled value of the focus highlight for this window
4482 * @param obj The window in which to check if the focus highlight is enabled
4484 * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4486 EAPI Eina_Bool elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4488 * Set the style for the focus highlight on this window
4490 * Sets the style to use for theming the highlight of focused objects on
4491 * the given window. If @p style is NULL, the default will be used.
4493 * @param obj The window where to set the style
4494 * @param style The style to set
4496 EAPI void elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4498 * Get the style set for the focus highlight object
4500 * Gets the style set for this windows highilght object, or NULL if none
4503 * @param obj The window to retrieve the highlights style from
4505 * @return The style set or NULL if none was. Default is used in that case.
4507 EAPI const char *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4509 * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4510 * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4511 * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4512 * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4513 * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4514 * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4515 * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4517 * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4518 * (blank mouse, private mouse obj, defaultmouse)
4522 * Sets the keyboard mode of the window.
4524 * @param obj The window object
4525 * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4527 EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4529 * Gets the keyboard mode of the window.
4531 * @param obj The window object
4532 * @return The mode, one of #Elm_Win_Keyboard_Mode
4534 EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4536 * Sets whether the window is a keyboard.
4538 * @param obj The window object
4539 * @param is_keyboard If true, the window is a virtual keyboard
4541 EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4543 * Gets whether the window is a keyboard.
4545 * @param obj The window object
4546 * @return If the window is a virtual keyboard
4548 EAPI Eina_Bool elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4551 * Get the screen position of a window.
4553 * @param obj The window object
4554 * @param x The int to store the x coordinate to
4555 * @param y The int to store the y coordinate to
4557 EAPI void elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4563 * @defgroup Inwin Inwin
4565 * @image html img/widget/inwin/preview-00.png
4566 * @image latex img/widget/inwin/preview-00.eps
4567 * @image html img/widget/inwin/preview-01.png
4568 * @image latex img/widget/inwin/preview-01.eps
4569 * @image html img/widget/inwin/preview-02.png
4570 * @image latex img/widget/inwin/preview-02.eps
4572 * An inwin is a window inside a window that is useful for a quick popup.
4573 * It does not hover.
4575 * It works by creating an object that will occupy the entire window, so it
4576 * must be created using an @ref Win "elm_win" as parent only. The inwin
4577 * object can be hidden or restacked below every other object if it's
4578 * needed to show what's behind it without destroying it. If this is done,
4579 * the elm_win_inwin_activate() function can be used to bring it back to
4580 * full visibility again.
4582 * There are three styles available in the default theme. These are:
4583 * @li default: The inwin is sized to take over most of the window it's
4585 * @li minimal: The size of the inwin will be the minimum necessary to show
4587 * @li minimal_vertical: Horizontally, the inwin takes as much space as
4588 * possible, but it's sized vertically the most it needs to fit its\
4591 * Some examples of Inwin can be found in the following:
4592 * @li @ref inwin_example_01
4597 * Adds an inwin to the current window
4599 * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4600 * Never call this function with anything other than the top-most window
4601 * as its parameter, unless you are fond of undefined behavior.
4603 * After creating the object, the widget will set itself as resize object
4604 * for the window with elm_win_resize_object_add(), so when shown it will
4605 * appear to cover almost the entire window (how much of it depends on its
4606 * content and the style used). It must not be added into other container
4607 * objects and it needs not be moved or resized manually.
4609 * @param parent The parent object
4610 * @return The new object or NULL if it cannot be created
4612 EAPI Evas_Object *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4614 * Activates an inwin object, ensuring its visibility
4616 * This function will make sure that the inwin @p obj is completely visible
4617 * by calling evas_object_show() and evas_object_raise() on it, to bring it
4618 * to the front. It also sets the keyboard focus to it, which will be passed
4621 * The object's theme will also receive the signal "elm,action,show" with
4624 * @param obj The inwin to activate
4626 EAPI void elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4628 * Set the content of an inwin object.
4630 * Once the content object is set, a previously set one will be deleted.
4631 * If you want to keep that old content object, use the
4632 * elm_win_inwin_content_unset() function.
4634 * @param obj The inwin object
4635 * @param content The object to set as content
4637 EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4639 * Get the content of an inwin object.
4641 * Return the content object which is set for this widget.
4643 * The returned object is valid as long as the inwin is still alive and no
4644 * other content is set on it. Deleting the object will notify the inwin
4645 * about it and this one will be left empty.
4647 * If you need to remove an inwin's content to be reused somewhere else,
4648 * see elm_win_inwin_content_unset().
4650 * @param obj The inwin object
4651 * @return The content that is being used
4653 EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4655 * Unset the content of an inwin object.
4657 * Unparent and return the content object which was set for this widget.
4659 * @param obj The inwin object
4660 * @return The content that was being used
4662 EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4666 /* X specific calls - won't work on non-x engines (return 0) */
4669 * Get the Ecore_X_Window of an Evas_Object
4671 * @param obj The object
4673 * @return The Ecore_X_Window of @p obj
4677 EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4679 /* smart callbacks called:
4680 * "delete,request" - the user requested to delete the window
4681 * "focus,in" - window got focus
4682 * "focus,out" - window lost focus
4683 * "moved" - window that holds the canvas was moved
4689 * @image html img/widget/bg/preview-00.png
4690 * @image latex img/widget/bg/preview-00.eps
4692 * @brief Background object, used for setting a solid color, image or Edje
4693 * group as background to a window or any container object.
4695 * The bg object is used for setting a solid background to a window or
4696 * packing into any container object. It works just like an image, but has
4697 * some properties useful to a background, like setting it to tiled,
4698 * centered, scaled or stretched.
4700 * Default contents parts of the bg widget that you can use for are:
4701 * @li "overlay" - overlay of the bg
4703 * Here is some sample code using it:
4704 * @li @ref bg_01_example_page
4705 * @li @ref bg_02_example_page
4706 * @li @ref bg_03_example_page
4710 typedef enum _Elm_Bg_Option
4712 ELM_BG_OPTION_CENTER, /**< center the background */
4713 ELM_BG_OPTION_SCALE, /**< scale the background retaining aspect ratio */
4714 ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4715 ELM_BG_OPTION_TILE /**< tile background at its original size */
4719 * Add a new background to the parent
4721 * @param parent The parent object
4722 * @return The new object or NULL if it cannot be created
4726 EAPI Evas_Object *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4729 * Set the file (image or edje) used for the background
4731 * @param obj The bg object
4732 * @param file The file path
4733 * @param group Optional key (group in Edje) within the file
4735 * This sets the image file used in the background object. The image (or edje)
4736 * will be stretched (retaining aspect if its an image file) to completely fill
4737 * the bg object. This may mean some parts are not visible.
4739 * @note Once the image of @p obj is set, a previously set one will be deleted,
4740 * even if @p file is NULL.
4744 EAPI void elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4747 * Get the file (image or edje) used for the background
4749 * @param obj The bg object
4750 * @param file The file path
4751 * @param group Optional key (group in Edje) within the file
4755 EAPI void elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4758 * Set the option used for the background image
4760 * @param obj The bg object
4761 * @param option The desired background option (TILE, SCALE)
4763 * This sets the option used for manipulating the display of the background
4764 * image. The image can be tiled or scaled.
4768 EAPI void elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4771 * Get the option used for the background image
4773 * @param obj The bg object
4774 * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4778 EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4780 * Set the option used for the background color
4782 * @param obj The bg object
4787 * This sets the color used for the background rectangle. Its range goes
4792 EAPI void elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4794 * Get the option used for the background color
4796 * @param obj The bg object
4803 EAPI void elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4806 * Set the overlay object used for the background object.
4808 * @param obj The bg object
4809 * @param overlay The overlay object
4811 * This provides a way for elm_bg to have an 'overlay' that will be on top
4812 * of the bg. Once the over object is set, a previously set one will be
4813 * deleted, even if you set the new one to NULL. If you want to keep that
4814 * old content object, use the elm_bg_overlay_unset() function.
4816 * @deprecated use elm_object_part_content_set() instead
4821 EINA_DEPRECATED EAPI void elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4824 * Get the overlay object used for the background object.
4826 * @param obj The bg object
4827 * @return The content that is being used
4829 * Return the content object which is set for this widget
4831 * @deprecated use elm_object_part_content_get() instead
4835 EINA_DEPRECATED EAPI Evas_Object *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4838 * Get the overlay object used for the background object.
4840 * @param obj The bg object
4841 * @return The content that was being used
4843 * Unparent and return the overlay object which was set for this widget
4845 * @deprecated use elm_object_part_content_unset() instead
4849 EINA_DEPRECATED EAPI Evas_Object *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4852 * Set the size of the pixmap representation of the image.
4854 * This option just makes sense if an image is going to be set in the bg.
4856 * @param obj The bg object
4857 * @param w The new width of the image pixmap representation.
4858 * @param h The new height of the image pixmap representation.
4860 * This function sets a new size for pixmap representation of the given bg
4861 * image. It allows the image to be loaded already in the specified size,
4862 * reducing the memory usage and load time when loading a big image with load
4863 * size set to a smaller size.
4865 * NOTE: this is just a hint, the real size of the pixmap may differ
4866 * depending on the type of image being loaded, being bigger than requested.
4870 EAPI void elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4871 /* smart callbacks called:
4875 * @defgroup Icon Icon
4877 * @image html img/widget/icon/preview-00.png
4878 * @image latex img/widget/icon/preview-00.eps
4880 * An object that provides standard icon images (delete, edit, arrows, etc.)
4881 * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4883 * The icon image requested can be in the elementary theme, or in the
4884 * freedesktop.org paths. It's possible to set the order of preference from
4885 * where the image will be used.
4887 * This API is very similar to @ref Image, but with ready to use images.
4889 * Default images provided by the theme are described below.
4891 * The first list contains icons that were first intended to be used in
4892 * toolbars, but can be used in many other places too:
4908 * Now some icons that were designed to be used in menus (but again, you can
4909 * use them anywhere else):
4914 * @li menu/arrow_down
4915 * @li menu/arrow_left
4916 * @li menu/arrow_right
4925 * And here we have some media player specific icons:
4926 * @li media_player/forward
4927 * @li media_player/info
4928 * @li media_player/next
4929 * @li media_player/pause
4930 * @li media_player/play
4931 * @li media_player/prev
4932 * @li media_player/rewind
4933 * @li media_player/stop
4935 * Signals that you can add callbacks for are:
4937 * "clicked" - This is called when a user has clicked the icon
4939 * An example of usage for this API follows:
4940 * @li @ref tutorial_icon
4948 typedef enum _Elm_Icon_Type
4955 * @enum _Elm_Icon_Lookup_Order
4956 * @typedef Elm_Icon_Lookup_Order
4958 * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4959 * theme, FDO paths, or both?
4963 typedef enum _Elm_Icon_Lookup_Order
4965 ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4966 ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4967 ELM_ICON_LOOKUP_FDO, /**< icon look up order: freedesktop */
4968 ELM_ICON_LOOKUP_THEME /**< icon look up order: theme */
4969 } Elm_Icon_Lookup_Order;
4972 * Add a new icon object to the parent.
4974 * @param parent The parent object
4975 * @return The new object or NULL if it cannot be created
4977 * @see elm_icon_file_set()
4981 EAPI Evas_Object *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4983 * Set the file that will be used as icon.
4985 * @param obj The icon object
4986 * @param file The path to file that will be used as icon image
4987 * @param group The group that the icon belongs to an edje file
4989 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4991 * @note The icon image set by this function can be changed by
4992 * elm_icon_standard_set().
4994 * @see elm_icon_file_get()
4998 EAPI Eina_Bool elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5000 * Set a location in memory to be used as an icon
5002 * @param obj The icon object
5003 * @param img The binary data that will be used as an image
5004 * @param size The size of binary data @p img
5005 * @param format Optional format of @p img to pass to the image loader
5006 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
5008 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5010 * @note The icon image set by this function can be changed by
5011 * elm_icon_standard_set().
5015 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);
5017 * Get the file that will be used as icon.
5019 * @param obj The icon object
5020 * @param file The path to file that will be used as the icon image
5021 * @param group The group that the icon belongs to, in edje file
5023 * @see elm_icon_file_set()
5027 EAPI void elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5028 EAPI void elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5030 * Set the icon by icon standards names.
5032 * @param obj The icon object
5033 * @param name The icon name
5035 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5037 * For example, freedesktop.org defines standard icon names such as "home",
5038 * "network", etc. There can be different icon sets to match those icon
5039 * keys. The @p name given as parameter is one of these "keys", and will be
5040 * used to look in the freedesktop.org paths and elementary theme. One can
5041 * change the lookup order with elm_icon_order_lookup_set().
5043 * If name is not found in any of the expected locations and it is the
5044 * absolute path of an image file, this image will be used.
5046 * @note The icon image set by this function can be changed by
5047 * elm_icon_file_set().
5049 * @see elm_icon_standard_get()
5050 * @see elm_icon_file_set()
5054 EAPI Eina_Bool elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
5056 * Get the icon name set by icon standard names.
5058 * @param obj The icon object
5059 * @return The icon name
5061 * If the icon image was set using elm_icon_file_set() instead of
5062 * elm_icon_standard_set(), then this function will return @c NULL.
5064 * @see elm_icon_standard_set()
5068 EAPI const char *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5070 * Set the smooth scaling for an icon object.
5072 * @param obj The icon object
5073 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5074 * otherwise. Default is @c EINA_TRUE.
5076 * Set the scaling algorithm to be used when scaling the icon image. Smooth
5077 * scaling provides a better resulting image, but is slower.
5079 * The smooth scaling should be disabled when making animations that change
5080 * the icon size, since they will be faster. Animations that don't require
5081 * resizing of the icon can keep the smooth scaling enabled (even if the icon
5082 * is already scaled, since the scaled icon image will be cached).
5084 * @see elm_icon_smooth_get()
5088 EAPI void elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5090 * Get whether smooth scaling is enabled for an icon object.
5092 * @param obj The icon object
5093 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5095 * @see elm_icon_smooth_set()
5099 EAPI Eina_Bool elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5101 * Disable scaling of this object.
5103 * @param obj The icon object.
5104 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5105 * otherwise. Default is @c EINA_FALSE.
5107 * This function disables scaling of the icon object through the function
5108 * elm_object_scale_set(). However, this does not affect the object
5109 * size/resize in any way. For that effect, take a look at
5110 * elm_icon_scale_set().
5112 * @see elm_icon_no_scale_get()
5113 * @see elm_icon_scale_set()
5114 * @see elm_object_scale_set()
5118 EAPI void elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5120 * Get whether scaling is disabled on the object.
5122 * @param obj The icon object
5123 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5125 * @see elm_icon_no_scale_set()
5129 EAPI Eina_Bool elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5131 * Set if the object is (up/down) resizable.
5133 * @param obj The icon object
5134 * @param scale_up A bool to set if the object is resizable up. Default is
5136 * @param scale_down A bool to set if the object is resizable down. Default
5139 * This function limits the icon object resize ability. If @p scale_up is set to
5140 * @c EINA_FALSE, the object can't have its height or width resized to a value
5141 * higher than the original icon size. Same is valid for @p scale_down.
5143 * @see elm_icon_scale_get()
5147 EAPI void elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5149 * Get if the object is (up/down) resizable.
5151 * @param obj The icon object
5152 * @param scale_up A bool to set if the object is resizable up
5153 * @param scale_down A bool to set if the object is resizable down
5155 * @see elm_icon_scale_set()
5159 EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5161 * Get the object's image size
5163 * @param obj The icon object
5164 * @param w A pointer to store the width in
5165 * @param h A pointer to store the height in
5169 EAPI void elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5171 * Set if the icon fill the entire object area.
5173 * @param obj The icon object
5174 * @param fill_outside @c EINA_TRUE if the object is filled outside,
5175 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5177 * When the icon object is resized to a different aspect ratio from the
5178 * original icon image, the icon image will still keep its aspect. This flag
5179 * tells how the image should fill the object's area. They are: keep the
5180 * entire icon inside the limits of height and width of the object (@p
5181 * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
5182 * of the object, and the icon will fill the entire object (@p fill_outside
5185 * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
5186 * retain property to false. Thus, the icon image will always keep its
5187 * original aspect ratio.
5189 * @see elm_icon_fill_outside_get()
5190 * @see elm_image_fill_outside_set()
5194 EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5196 * Get if the object is filled outside.
5198 * @param obj The icon object
5199 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5201 * @see elm_icon_fill_outside_set()
5205 EAPI Eina_Bool elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5207 * Set the prescale size for the icon.
5209 * @param obj The icon object
5210 * @param size The prescale size. This value is used for both width and
5213 * This function sets a new size for pixmap representation of the given
5214 * icon. It allows the icon to be loaded already in the specified size,
5215 * reducing the memory usage and load time when loading a big icon with load
5216 * size set to a smaller size.
5218 * It's equivalent to the elm_bg_load_size_set() function for bg.
5220 * @note this is just a hint, the real size of the pixmap may differ
5221 * depending on the type of icon being loaded, being bigger than requested.
5223 * @see elm_icon_prescale_get()
5224 * @see elm_bg_load_size_set()
5228 EAPI void elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5230 * Get the prescale size for the icon.
5232 * @param obj The icon object
5233 * @return The prescale size
5235 * @see elm_icon_prescale_set()
5239 EAPI int elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5241 * Gets the image object of the icon. DO NOT MODIFY THIS.
5243 * @param obj The icon object
5244 * @return The internal icon object
5248 EAPI Evas_Object *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5250 * Sets the icon lookup order used by elm_icon_standard_set().
5252 * @param obj The icon object
5253 * @param order The icon lookup order (can be one of
5254 * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
5255 * or ELM_ICON_LOOKUP_THEME)
5257 * @see elm_icon_order_lookup_get()
5258 * @see Elm_Icon_Lookup_Order
5262 EAPI void elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5264 * Gets the icon lookup order.
5266 * @param obj The icon object
5267 * @return The icon lookup order
5269 * @see elm_icon_order_lookup_set()
5270 * @see Elm_Icon_Lookup_Order
5274 EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5276 * Enable or disable preloading of the icon
5278 * @param obj The icon object
5279 * @param disable If EINA_TRUE, preloading will be disabled
5282 EAPI void elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
5284 * Get if the icon supports animation or not.
5286 * @param obj The icon object
5287 * @return @c EINA_TRUE if the icon supports animation,
5288 * @c EINA_FALSE otherwise.
5290 * Return if this elm icon's image can be animated. Currently Evas only
5291 * supports gif animation. If the return value is EINA_FALSE, other
5292 * elm_icon_animated_XXX APIs won't work.
5295 EAPI Eina_Bool elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5297 * Set animation mode of the icon.
5299 * @param obj The icon object
5300 * @param anim @c EINA_TRUE if the object do animation job,
5301 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5303 * Since the default animation mode is set to EINA_FALSE,
5304 * the icon is shown without animation.
5305 * This might be desirable when the application developer wants to show
5306 * a snapshot of the animated icon.
5307 * Set it to EINA_TRUE when the icon needs to be animated.
5310 EAPI void elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
5312 * Get animation mode of the icon.
5314 * @param obj The icon object
5315 * @return The animation mode of the icon object
5316 * @see elm_icon_animated_set
5319 EAPI Eina_Bool elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5321 * Set animation play mode of the icon.
5323 * @param obj The icon object
5324 * @param play @c EINA_TRUE the object play animation images,
5325 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5327 * To play elm icon's animation, set play to EINA_TURE.
5328 * For example, you make gif player using this set/get API and click event.
5330 * 1. Click event occurs
5331 * 2. Check play flag using elm_icon_animaged_play_get
5332 * 3. If elm icon was playing, set play to EINA_FALSE.
5333 * Then animation will be stopped and vice versa
5336 EAPI void elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
5338 * Get animation play mode of the icon.
5340 * @param obj The icon object
5341 * @return The play mode of the icon object
5343 * @see elm_icon_animated_play_get
5346 EAPI Eina_Bool elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5353 * @defgroup Image Image
5355 * @image html img/widget/image/preview-00.png
5356 * @image latex img/widget/image/preview-00.eps
5359 * An object that allows one to load an image file to it. It can be used
5360 * anywhere like any other elementary widget.
5362 * This widget provides most of the functionality provided from @ref Bg or @ref
5363 * Icon, but with a slightly different API (use the one that fits better your
5366 * The features not provided by those two other image widgets are:
5367 * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5368 * @li change the object orientation with elm_image_orient_set();
5369 * @li and turning the image editable with elm_image_editable_set().
5371 * Signals that you can add callbacks for are:
5373 * @li @c "clicked" - This is called when a user has clicked the image
5375 * An example of usage for this API follows:
5376 * @li @ref tutorial_image
5385 * @enum _Elm_Image_Orient
5386 * @typedef Elm_Image_Orient
5388 * Possible orientation options for elm_image_orient_set().
5390 * @image html elm_image_orient_set.png
5391 * @image latex elm_image_orient_set.eps width=\textwidth
5395 typedef enum _Elm_Image_Orient
5397 ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
5398 ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
5399 ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
5400 ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5401 ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
5402 ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
5403 ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
5404 ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
5408 * Add a new image to the parent.
5410 * @param parent The parent object
5411 * @return The new object or NULL if it cannot be created
5413 * @see elm_image_file_set()
5417 EAPI Evas_Object *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5419 * Set the file that will be used as image.
5421 * @param obj The image object
5422 * @param file The path to file that will be used as image
5423 * @param group The group that the image belongs in edje file (if it's an
5426 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5428 * @see elm_image_file_get()
5432 EAPI Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5434 * Get the file that will be used as image.
5436 * @param obj The image object
5437 * @param file The path to file
5438 * @param group The group that the image belongs in edje file
5440 * @see elm_image_file_set()
5444 EAPI void elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5446 * Set the smooth effect for an image.
5448 * @param obj The image object
5449 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5450 * otherwise. Default is @c EINA_TRUE.
5452 * Set the scaling algorithm to be used when scaling the image. Smooth
5453 * scaling provides a better resulting image, but is slower.
5455 * The smooth scaling should be disabled when making animations that change
5456 * the image size, since it will be faster. Animations that don't require
5457 * resizing of the image can keep the smooth scaling enabled (even if the
5458 * image is already scaled, since the scaled image will be cached).
5460 * @see elm_image_smooth_get()
5464 EAPI void elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5466 * Get the smooth effect for an image.
5468 * @param obj The image object
5469 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5471 * @see elm_image_smooth_get()
5475 EAPI Eina_Bool elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5478 * Gets the current size of the image.
5480 * @param obj The image object.
5481 * @param w Pointer to store width, or NULL.
5482 * @param h Pointer to store height, or NULL.
5484 * This is the real size of the image, not the size of the object.
5486 * On error, neither w or h will be written.
5490 EAPI void elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5492 * Disable scaling of this object.
5494 * @param obj The image object.
5495 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5496 * otherwise. Default is @c EINA_FALSE.
5498 * This function disables scaling of the elm_image widget through the
5499 * function elm_object_scale_set(). However, this does not affect the widget
5500 * size/resize in any way. For that effect, take a look at
5501 * elm_image_scale_set().
5503 * @see elm_image_no_scale_get()
5504 * @see elm_image_scale_set()
5505 * @see elm_object_scale_set()
5509 EAPI void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5511 * Get whether scaling is disabled on the object.
5513 * @param obj The image object
5514 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5516 * @see elm_image_no_scale_set()
5520 EAPI Eina_Bool elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5522 * Set if the object is (up/down) resizable.
5524 * @param obj The image object
5525 * @param scale_up A bool to set if the object is resizable up. Default is
5527 * @param scale_down A bool to set if the object is resizable down. Default
5530 * This function limits the image resize ability. If @p scale_up is set to
5531 * @c EINA_FALSE, the object can't have its height or width resized to a value
5532 * higher than the original image size. Same is valid for @p scale_down.
5534 * @see elm_image_scale_get()
5538 EAPI void elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5540 * Get if the object is (up/down) resizable.
5542 * @param obj The image object
5543 * @param scale_up A bool to set if the object is resizable up
5544 * @param scale_down A bool to set if the object is resizable down
5546 * @see elm_image_scale_set()
5550 EAPI void elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5552 * Set if the image fills the entire object area, when keeping the aspect ratio.
5554 * @param obj The image object
5555 * @param fill_outside @c EINA_TRUE if the object is filled outside,
5556 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5558 * When the image should keep its aspect ratio even if resized to another
5559 * aspect ratio, there are two possibilities to resize it: keep the entire
5560 * image inside the limits of height and width of the object (@p fill_outside
5561 * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5562 * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5564 * @note This option will have no effect if
5565 * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5567 * @see elm_image_fill_outside_get()
5568 * @see elm_image_aspect_ratio_retained_set()
5572 EAPI void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5574 * Get if the object is filled outside
5576 * @param obj The image object
5577 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5579 * @see elm_image_fill_outside_set()
5583 EAPI Eina_Bool elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5585 * Set the prescale size for the image
5587 * @param obj The image object
5588 * @param size The prescale size. This value is used for both width and
5591 * This function sets a new size for pixmap representation of the given
5592 * image. It allows the image to be loaded already in the specified size,
5593 * reducing the memory usage and load time when loading a big image with load
5594 * size set to a smaller size.
5596 * It's equivalent to the elm_bg_load_size_set() function for bg.
5598 * @note this is just a hint, the real size of the pixmap may differ
5599 * depending on the type of image being loaded, being bigger than requested.
5601 * @see elm_image_prescale_get()
5602 * @see elm_bg_load_size_set()
5606 EAPI void elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5608 * Get the prescale size for the image
5610 * @param obj The image object
5611 * @return The prescale size
5613 * @see elm_image_prescale_set()
5617 EAPI int elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5619 * Set the image orientation.
5621 * @param obj The image object
5622 * @param orient The image orientation @ref Elm_Image_Orient
5623 * Default is #ELM_IMAGE_ORIENT_NONE.
5625 * This function allows to rotate or flip the given image.
5627 * @see elm_image_orient_get()
5628 * @see @ref Elm_Image_Orient
5632 EAPI void elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5634 * Get the image orientation.
5636 * @param obj The image object
5637 * @return The image orientation @ref Elm_Image_Orient
5639 * @see elm_image_orient_set()
5640 * @see @ref Elm_Image_Orient
5644 EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5646 * Make the image 'editable'.
5648 * @param obj Image object.
5649 * @param set Turn on or off editability. Default is @c EINA_FALSE.
5651 * This means the image is a valid drag target for drag and drop, and can be
5652 * cut or pasted too.
5656 EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5658 * Check if the image 'editable'.
5660 * @param obj Image object.
5661 * @return Editability.
5663 * A return value of EINA_TRUE means the image is a valid drag target
5664 * for drag and drop, and can be cut or pasted too.
5668 EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5670 * Get the basic Evas_Image object from this object (widget).
5672 * @param obj The image object to get the inlined image from
5673 * @return The inlined image object, or NULL if none exists
5675 * This function allows one to get the underlying @c Evas_Object of type
5676 * Image from this elementary widget. It can be useful to do things like get
5677 * the pixel data, save the image to a file, etc.
5679 * @note Be careful to not manipulate it, as it is under control of
5684 EAPI Evas_Object *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5686 * Set whether the original aspect ratio of the image should be kept on resize.
5688 * @param obj The image object.
5689 * @param retained @c EINA_TRUE if the image should retain the aspect,
5690 * @c EINA_FALSE otherwise.
5692 * The original aspect ratio (width / height) of the image is usually
5693 * distorted to match the object's size. Enabling this option will retain
5694 * this original aspect, and the way that the image is fit into the object's
5695 * area depends on the option set by elm_image_fill_outside_set().
5697 * @see elm_image_aspect_ratio_retained_get()
5698 * @see elm_image_fill_outside_set()
5702 EAPI void elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5704 * Get if the object retains the original aspect ratio.
5706 * @param obj The image object.
5707 * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5712 EAPI Eina_Bool elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5722 * @image html img/widget/box/preview-00.png
5723 * @image latex img/widget/box/preview-00.eps width=\textwidth
5725 * @image html img/box.png
5726 * @image latex img/box.eps width=\textwidth
5728 * A box arranges objects in a linear fashion, governed by a layout function
5729 * that defines the details of this arrangement.
5731 * By default, the box will use an internal function to set the layout to
5732 * a single row, either vertical or horizontal. This layout is affected
5733 * by a number of parameters, such as the homogeneous flag set by
5734 * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5735 * elm_box_align_set() and the hints set to each object in the box.
5737 * For this default layout, it's possible to change the orientation with
5738 * elm_box_horizontal_set(). The box will start in the vertical orientation,
5739 * placing its elements ordered from top to bottom. When horizontal is set,
5740 * the order will go from left to right. If the box is set to be
5741 * homogeneous, every object in it will be assigned the same space, that
5742 * of the largest object. Padding can be used to set some spacing between
5743 * the cell given to each object. The alignment of the box, set with
5744 * elm_box_align_set(), determines how the bounding box of all the elements
5745 * will be placed within the space given to the box widget itself.
5747 * The size hints of each object also affect how they are placed and sized
5748 * within the box. evas_object_size_hint_min_set() will give the minimum
5749 * size the object can have, and the box will use it as the basis for all
5750 * latter calculations. Elementary widgets set their own minimum size as
5751 * needed, so there's rarely any need to use it manually.
5753 * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5754 * used to tell whether the object will be allocated the minimum size it
5755 * needs or if the space given to it should be expanded. It's important
5756 * to realize that expanding the size given to the object is not the same
5757 * thing as resizing the object. It could very well end being a small
5758 * widget floating in a much larger empty space. If not set, the weight
5759 * for objects will normally be 0.0 for both axis, meaning the widget will
5760 * not be expanded. To take as much space possible, set the weight to
5761 * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5763 * Besides how much space each object is allocated, it's possible to control
5764 * how the widget will be placed within that space using
5765 * evas_object_size_hint_align_set(). By default, this value will be 0.5
5766 * for both axis, meaning the object will be centered, but any value from
5767 * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5768 * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5769 * is -1.0, means the object will be resized to fill the entire space it
5772 * In addition, customized functions to define the layout can be set, which
5773 * allow the application developer to organize the objects within the box
5774 * in any number of ways.
5776 * The special elm_box_layout_transition() function can be used
5777 * to switch from one layout to another, animating the motion of the
5778 * children of the box.
5780 * @note Objects should not be added to box objects using _add() calls.
5782 * Some examples on how to use boxes follow:
5783 * @li @ref box_example_01
5784 * @li @ref box_example_02
5789 * @typedef Elm_Box_Transition
5791 * Opaque handler containing the parameters to perform an animated
5792 * transition of the layout the box uses.
5794 * @see elm_box_transition_new()
5795 * @see elm_box_layout_set()
5796 * @see elm_box_layout_transition()
5798 typedef struct _Elm_Box_Transition Elm_Box_Transition;
5801 * Add a new box to the parent
5803 * By default, the box will be in vertical mode and non-homogeneous.
5805 * @param parent The parent object
5806 * @return The new object or NULL if it cannot be created
5808 EAPI Evas_Object *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5810 * Set the horizontal orientation
5812 * By default, box object arranges their contents vertically from top to
5814 * By calling this function with @p horizontal as EINA_TRUE, the box will
5815 * become horizontal, arranging contents from left to right.
5817 * @note This flag is ignored if a custom layout function is set.
5819 * @param obj The box object
5820 * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5821 * EINA_FALSE = vertical)
5823 EAPI void elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5825 * Get the horizontal orientation
5827 * @param obj The box object
5828 * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5830 EAPI Eina_Bool elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5832 * Set the box to arrange its children homogeneously
5834 * If enabled, homogeneous layout makes all items the same size, according
5835 * to the size of the largest of its children.
5837 * @note This flag is ignored if a custom layout function is set.
5839 * @param obj The box object
5840 * @param homogeneous The homogeneous flag
5842 EAPI void elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5844 * Get whether the box is using homogeneous mode or not
5846 * @param obj The box object
5847 * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5849 EAPI Eina_Bool elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5850 EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5851 EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5853 * Add an object to the beginning of the pack list
5855 * Pack @p subobj into the box @p obj, placing it first in the list of
5856 * children objects. The actual position the object will get on screen
5857 * depends on the layout used. If no custom layout is set, it will be at
5858 * the top or left, depending if the box is vertical or horizontal,
5861 * @param obj The box object
5862 * @param subobj The object to add to the box
5864 * @see elm_box_pack_end()
5865 * @see elm_box_pack_before()
5866 * @see elm_box_pack_after()
5867 * @see elm_box_unpack()
5868 * @see elm_box_unpack_all()
5869 * @see elm_box_clear()
5871 EAPI void elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5873 * Add an object at the end of the pack list
5875 * Pack @p subobj into the box @p obj, placing it last in the list of
5876 * children objects. The actual position the object will get on screen
5877 * depends on the layout used. If no custom layout is set, it will be at
5878 * the bottom or right, depending if the box is vertical or horizontal,
5881 * @param obj The box object
5882 * @param subobj The object to add to the box
5884 * @see elm_box_pack_start()
5885 * @see elm_box_pack_before()
5886 * @see elm_box_pack_after()
5887 * @see elm_box_unpack()
5888 * @see elm_box_unpack_all()
5889 * @see elm_box_clear()
5891 EAPI void elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5893 * Adds an object to the box before the indicated object
5895 * This will add the @p subobj to the box indicated before the object
5896 * indicated with @p before. If @p before is not already in the box, results
5897 * are undefined. Before means either to the left of the indicated object or
5898 * above it depending on orientation.
5900 * @param obj The box object
5901 * @param subobj The object to add to the box
5902 * @param before The object before which to add it
5904 * @see elm_box_pack_start()
5905 * @see elm_box_pack_end()
5906 * @see elm_box_pack_after()
5907 * @see elm_box_unpack()
5908 * @see elm_box_unpack_all()
5909 * @see elm_box_clear()
5911 EAPI void elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5913 * Adds an object to the box after the indicated object
5915 * This will add the @p subobj to the box indicated after the object
5916 * indicated with @p after. If @p after is not already in the box, results
5917 * are undefined. After means either to the right of the indicated object or
5918 * below it depending on orientation.
5920 * @param obj The box object
5921 * @param subobj The object to add to the box
5922 * @param after The object after which to add it
5924 * @see elm_box_pack_start()
5925 * @see elm_box_pack_end()
5926 * @see elm_box_pack_before()
5927 * @see elm_box_unpack()
5928 * @see elm_box_unpack_all()
5929 * @see elm_box_clear()
5931 EAPI void elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5933 * Clear the box of all children
5935 * Remove all the elements contained by the box, deleting the respective
5938 * @param obj The box object
5940 * @see elm_box_unpack()
5941 * @see elm_box_unpack_all()
5943 EAPI void elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5947 * Remove the object given by @p subobj from the box @p obj without
5950 * @param obj The box object
5952 * @see elm_box_unpack_all()
5953 * @see elm_box_clear()
5955 EAPI void elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5957 * Remove all items from the box, without deleting them
5959 * Clear the box from all children, but don't delete the respective objects.
5960 * If no other references of the box children exist, the objects will never
5961 * be deleted, and thus the application will leak the memory. Make sure
5962 * when using this function that you hold a reference to all the objects
5963 * in the box @p obj.
5965 * @param obj The box object
5967 * @see elm_box_clear()
5968 * @see elm_box_unpack()
5970 EAPI void elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5972 * Retrieve a list of the objects packed into the box
5974 * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5975 * The order of the list corresponds to the packing order the box uses.
5977 * You must free this list with eina_list_free() once you are done with it.
5979 * @param obj The box object
5981 EAPI const Eina_List *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5983 * Set the space (padding) between the box's elements.
5985 * Extra space in pixels that will be added between a box child and its
5986 * neighbors after its containing cell has been calculated. This padding
5987 * is set for all elements in the box, besides any possible padding that
5988 * individual elements may have through their size hints.
5990 * @param obj The box object
5991 * @param horizontal The horizontal space between elements
5992 * @param vertical The vertical space between elements
5994 EAPI void elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5996 * Get the space (padding) between the box's elements.
5998 * @param obj The box object
5999 * @param horizontal The horizontal space between elements
6000 * @param vertical The vertical space between elements
6002 * @see elm_box_padding_set()
6004 EAPI void elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
6006 * Set the alignment of the whole bouding box of contents.
6008 * Sets how the bounding box containing all the elements of the box, after
6009 * their sizes and position has been calculated, will be aligned within
6010 * the space given for the whole box widget.
6012 * @param obj The box object
6013 * @param horizontal The horizontal alignment of elements
6014 * @param vertical The vertical alignment of elements
6016 EAPI void elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
6018 * Get the alignment of the whole bouding box of contents.
6020 * @param obj The box object
6021 * @param horizontal The horizontal alignment of elements
6022 * @param vertical The vertical alignment of elements
6024 * @see elm_box_align_set()
6026 EAPI void elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
6029 * Force the box to recalculate its children packing.
6031 * If any children was added or removed, box will not calculate the
6032 * values immediately rather leaving it to the next main loop
6033 * iteration. While this is great as it would save lots of
6034 * recalculation, whenever you need to get the position of a just
6035 * added item you must force recalculate before doing so.
6037 * @param obj The box object.
6039 EAPI void elm_box_recalculate(Evas_Object *obj);
6042 * Set the layout defining function to be used by the box
6044 * Whenever anything changes that requires the box in @p obj to recalculate
6045 * the size and position of its elements, the function @p cb will be called
6046 * to determine what the layout of the children will be.
6048 * Once a custom function is set, everything about the children layout
6049 * is defined by it. The flags set by elm_box_horizontal_set() and
6050 * elm_box_homogeneous_set() no longer have any meaning, and the values
6051 * given by elm_box_padding_set() and elm_box_align_set() are up to this
6052 * layout function to decide if they are used and how. These last two
6053 * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
6054 * passed to @p cb. The @c Evas_Object the function receives is not the
6055 * Elementary widget, but the internal Evas Box it uses, so none of the
6056 * functions described here can be used on it.
6058 * Any of the layout functions in @c Evas can be used here, as well as the
6059 * special elm_box_layout_transition().
6061 * The final @p data argument received by @p cb is the same @p data passed
6062 * here, and the @p free_data function will be called to free it
6063 * whenever the box is destroyed or another layout function is set.
6065 * Setting @p cb to NULL will revert back to the default layout function.
6067 * @param obj The box object
6068 * @param cb The callback function used for layout
6069 * @param data Data that will be passed to layout function
6070 * @param free_data Function called to free @p data
6072 * @see elm_box_layout_transition()
6074 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);
6076 * Special layout function that animates the transition from one layout to another
6078 * Normally, when switching the layout function for a box, this will be
6079 * reflected immediately on screen on the next render, but it's also
6080 * possible to do this through an animated transition.
6082 * This is done by creating an ::Elm_Box_Transition and setting the box
6083 * layout to this function.
6087 * Elm_Box_Transition *t = elm_box_transition_new(1.0,
6088 * evas_object_box_layout_vertical, // start
6089 * NULL, // data for initial layout
6090 * NULL, // free function for initial data
6091 * evas_object_box_layout_horizontal, // end
6092 * NULL, // data for final layout
6093 * NULL, // free function for final data
6094 * anim_end, // will be called when animation ends
6095 * NULL); // data for anim_end function\
6096 * elm_box_layout_set(box, elm_box_layout_transition, t,
6097 * elm_box_transition_free);
6100 * @note This function can only be used with elm_box_layout_set(). Calling
6101 * it directly will not have the expected results.
6103 * @see elm_box_transition_new
6104 * @see elm_box_transition_free
6105 * @see elm_box_layout_set
6107 EAPI void elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
6109 * Create a new ::Elm_Box_Transition to animate the switch of layouts
6111 * If you want to animate the change from one layout to another, you need
6112 * to set the layout function of the box to elm_box_layout_transition(),
6113 * passing as user data to it an instance of ::Elm_Box_Transition with the
6114 * necessary information to perform this animation. The free function to
6115 * set for the layout is elm_box_transition_free().
6117 * The parameters to create an ::Elm_Box_Transition sum up to how long
6118 * will it be, in seconds, a layout function to describe the initial point,
6119 * another for the final position of the children and one function to be
6120 * called when the whole animation ends. This last function is useful to
6121 * set the definitive layout for the box, usually the same as the end
6122 * layout for the animation, but could be used to start another transition.
6124 * @param start_layout The layout function that will be used to start the animation
6125 * @param start_layout_data The data to be passed the @p start_layout function
6126 * @param start_layout_free_data Function to free @p start_layout_data
6127 * @param end_layout The layout function that will be used to end the animation
6128 * @param end_layout_free_data The data to be passed the @p end_layout function
6129 * @param end_layout_free_data Function to free @p end_layout_data
6130 * @param transition_end_cb Callback function called when animation ends
6131 * @param transition_end_data Data to be passed to @p transition_end_cb
6132 * @return An instance of ::Elm_Box_Transition
6134 * @see elm_box_transition_new
6135 * @see elm_box_layout_transition
6137 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);
6139 * Free a Elm_Box_Transition instance created with elm_box_transition_new().
6141 * This function is mostly useful as the @c free_data parameter in
6142 * elm_box_layout_set() when elm_box_layout_transition().
6144 * @param data The Elm_Box_Transition instance to be freed.
6146 * @see elm_box_transition_new
6147 * @see elm_box_layout_transition
6149 EAPI void elm_box_transition_free(void *data);
6156 * @defgroup Button Button
6158 * @image html img/widget/button/preview-00.png
6159 * @image latex img/widget/button/preview-00.eps
6160 * @image html img/widget/button/preview-01.png
6161 * @image latex img/widget/button/preview-01.eps
6162 * @image html img/widget/button/preview-02.png
6163 * @image latex img/widget/button/preview-02.eps
6165 * This is a push-button. Press it and run some function. It can contain
6166 * a simple label and icon object and it also has an autorepeat feature.
6168 * This widgets emits the following signals:
6169 * @li "clicked": the user clicked the button (press/release).
6170 * @li "repeated": the user pressed the button without releasing it.
6171 * @li "pressed": button was pressed.
6172 * @li "unpressed": button was released after being pressed.
6173 * In all three cases, the @c event parameter of the callback will be
6176 * Also, defined in the default theme, the button has the following styles
6178 * @li default: a normal button.
6179 * @li anchor: Like default, but the button fades away when the mouse is not
6180 * over it, leaving only the text or icon.
6181 * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6182 * continuous look across its options.
6183 * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6185 * Default contents parts of the button widget that you can use for are:
6186 * @li "icon" - A icon of the button
6188 * Default text parts of the button widget that you can use for are:
6189 * @li "default" - Label of the button
6191 * Follow through a complete example @ref button_example_01 "here".
6195 * Add a new button to the parent's canvas
6197 * @param parent The parent object
6198 * @return The new object or NULL if it cannot be created
6200 EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6202 * Set the label used in the button
6204 * The passed @p label can be NULL to clean any existing text in it and
6205 * leave the button as an icon only object.
6207 * @param obj The button object
6208 * @param label The text will be written on the button
6209 * @deprecated use elm_object_text_set() instead.
6211 EINA_DEPRECATED EAPI void elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6213 * Get the label set for the button
6215 * The string returned is an internal pointer and should not be freed or
6216 * altered. It will also become invalid when the button is destroyed.
6217 * The string returned, if not NULL, is a stringshare, so if you need to
6218 * keep it around even after the button is destroyed, you can use
6219 * eina_stringshare_ref().
6221 * @param obj The button object
6222 * @return The text set to the label, or NULL if nothing is set
6223 * @deprecated use elm_object_text_set() instead.
6225 EINA_DEPRECATED EAPI const char *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6227 * Set the icon used for the button
6229 * Setting a new icon will delete any other that was previously set, making
6230 * any reference to them invalid. If you need to maintain the previous
6231 * object alive, unset it first with elm_button_icon_unset().
6233 * @param obj The button object
6234 * @param icon The icon object for the button
6235 * @deprecated use elm_object_part_content_set() instead.
6237 EINA_DEPRECATED EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6239 * Get the icon used for the button
6241 * Return the icon object which is set for this widget. If the button is
6242 * destroyed or another icon is set, the returned object will be deleted
6243 * and any reference to it will be invalid.
6245 * @param obj The button object
6246 * @return The icon object that is being used
6248 * @deprecated use elm_object_part_content_get() instead
6250 EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6252 * Remove the icon set without deleting it and return the object
6254 * This function drops the reference the button holds of the icon object
6255 * and returns this last object. It is used in case you want to remove any
6256 * icon, or set another one, without deleting the actual object. The button
6257 * will be left without an icon set.
6259 * @param obj The button object
6260 * @return The icon object that was being used
6261 * @deprecated use elm_object_part_content_unset() instead.
6263 EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6265 * Turn on/off the autorepeat event generated when the button is kept pressed
6267 * When off, no autorepeat is performed and buttons emit a normal @c clicked
6268 * signal when they are clicked.
6270 * When on, keeping a button pressed will continuously emit a @c repeated
6271 * signal until the button is released. The time it takes until it starts
6272 * emitting the signal is given by
6273 * elm_button_autorepeat_initial_timeout_set(), and the time between each
6274 * new emission by elm_button_autorepeat_gap_timeout_set().
6276 * @param obj The button object
6277 * @param on A bool to turn on/off the event
6279 EAPI void elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6281 * Get whether the autorepeat feature is enabled
6283 * @param obj The button object
6284 * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6286 * @see elm_button_autorepeat_set()
6288 EAPI Eina_Bool elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6290 * Set the initial timeout before the autorepeat event is generated
6292 * Sets the timeout, in seconds, since the button is pressed until the
6293 * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6294 * won't be any delay and the even will be fired the moment the button is
6297 * @param obj The button object
6298 * @param t Timeout in seconds
6300 * @see elm_button_autorepeat_set()
6301 * @see elm_button_autorepeat_gap_timeout_set()
6303 EAPI void elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6305 * Get the initial timeout before the autorepeat event is generated
6307 * @param obj The button object
6308 * @return Timeout in seconds
6310 * @see elm_button_autorepeat_initial_timeout_set()
6312 EAPI double elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6314 * Set the interval between each generated autorepeat event
6316 * After the first @c repeated event is fired, all subsequent ones will
6317 * follow after a delay of @p t seconds for each.
6319 * @param obj The button object
6320 * @param t Interval in seconds
6322 * @see elm_button_autorepeat_initial_timeout_set()
6324 EAPI void elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6326 * Get the interval between each generated autorepeat event
6328 * @param obj The button object
6329 * @return Interval in seconds
6331 EAPI double elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6337 * @defgroup File_Selector_Button File Selector Button
6339 * @image html img/widget/fileselector_button/preview-00.png
6340 * @image latex img/widget/fileselector_button/preview-00.eps
6341 * @image html img/widget/fileselector_button/preview-01.png
6342 * @image latex img/widget/fileselector_button/preview-01.eps
6343 * @image html img/widget/fileselector_button/preview-02.png
6344 * @image latex img/widget/fileselector_button/preview-02.eps
6346 * This is a button that, when clicked, creates an Elementary
6347 * window (or inner window) <b> with a @ref Fileselector "file
6348 * selector widget" within</b>. When a file is chosen, the (inner)
6349 * window is closed and the button emits a signal having the
6350 * selected file as it's @c event_info.
6352 * This widget encapsulates operations on its internal file
6353 * selector on its own API. There is less control over its file
6354 * selector than that one would have instatiating one directly.
6356 * The following styles are available for this button:
6359 * @li @c "hoversel_vertical"
6360 * @li @c "hoversel_vertical_entry"
6362 * Smart callbacks one can register to:
6363 * - @c "file,chosen" - the user has selected a path, whose string
6364 * pointer comes as the @c event_info data (a stringshared
6367 * Here is an example on its usage:
6368 * @li @ref fileselector_button_example
6370 * @see @ref File_Selector_Entry for a similar widget.
6375 * Add a new file selector button widget to the given parent
6376 * Elementary (container) object
6378 * @param parent The parent object
6379 * @return a new file selector button widget handle or @c NULL, on
6382 EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6385 * Set the label for a given file selector button widget
6387 * @param obj The file selector button widget
6388 * @param label The text label to be displayed on @p obj
6390 * @deprecated use elm_object_text_set() instead.
6392 EINA_DEPRECATED EAPI void elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6395 * Get the label set for a given file selector button widget
6397 * @param obj The file selector button widget
6398 * @return The button label
6400 * @deprecated use elm_object_text_set() instead.
6402 EINA_DEPRECATED EAPI const char *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6405 * Set the icon on a given file selector button widget
6407 * @param obj The file selector button widget
6408 * @param icon The icon object for the button
6410 * Once the icon object is set, a previously set one will be
6411 * deleted. If you want to keep the latter, use the
6412 * elm_fileselector_button_icon_unset() function.
6414 * @see elm_fileselector_button_icon_get()
6416 EAPI void elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6419 * Get the icon set for a given file selector button widget
6421 * @param obj The file selector button widget
6422 * @return The icon object currently set on @p obj or @c NULL, if
6425 * @see elm_fileselector_button_icon_set()
6427 EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6430 * Unset the icon used in a given file selector button widget
6432 * @param obj The file selector button widget
6433 * @return The icon object that was being used on @p obj or @c
6436 * Unparent and return the icon object which was set for this
6439 * @see elm_fileselector_button_icon_set()
6441 EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6444 * Set the title for a given file selector button widget's window
6446 * @param obj The file selector button widget
6447 * @param title The title string
6449 * This will change the window's title, when the file selector pops
6450 * out after a click on the button. Those windows have the default
6451 * (unlocalized) value of @c "Select a file" as titles.
6453 * @note It will only take any effect if the file selector
6454 * button widget is @b not under "inwin mode".
6456 * @see elm_fileselector_button_window_title_get()
6458 EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6461 * Get the title set for a given file selector button widget's
6464 * @param obj The file selector button widget
6465 * @return Title of the file selector button's window
6467 * @see elm_fileselector_button_window_title_get() for more details
6469 EAPI const char *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6472 * Set the size of a given file selector button widget's window,
6473 * holding the file selector itself.
6475 * @param obj The file selector button widget
6476 * @param width The window's width
6477 * @param height The window's height
6479 * @note it will only take any effect if the file selector button
6480 * widget is @b not under "inwin mode". The default size for the
6481 * window (when applicable) is 400x400 pixels.
6483 * @see elm_fileselector_button_window_size_get()
6485 EAPI void elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6488 * Get the size of a given file selector button widget's window,
6489 * holding the file selector itself.
6491 * @param obj The file selector button widget
6492 * @param width Pointer into which to store the width value
6493 * @param height Pointer into which to store the height value
6495 * @note Use @c NULL pointers on the size values you're not
6496 * interested in: they'll be ignored by the function.
6498 * @see elm_fileselector_button_window_size_set(), for more details
6500 EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6503 * Set the initial file system path for a given file selector
6506 * @param obj The file selector button widget
6507 * @param path The path string
6509 * It must be a <b>directory</b> path, which will have the contents
6510 * displayed initially in the file selector's view, when invoked
6511 * from @p obj. The default initial path is the @c "HOME"
6512 * environment variable's value.
6514 * @see elm_fileselector_button_path_get()
6516 EAPI void elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6519 * Get the initial file system path set for a given file selector
6522 * @param obj The file selector button widget
6523 * @return path The path string
6525 * @see elm_fileselector_button_path_set() for more details
6527 EAPI const char *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6530 * Enable/disable a tree view in the given file selector button
6531 * widget's internal file selector
6533 * @param obj The file selector button widget
6534 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6537 * This has the same effect as elm_fileselector_expandable_set(),
6538 * but now applied to a file selector button's internal file
6541 * @note There's no way to put a file selector button's internal
6542 * file selector in "grid mode", as one may do with "pure" file
6545 * @see elm_fileselector_expandable_get()
6547 EAPI void elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6550 * Get whether tree view is enabled for the given file selector
6551 * button widget's internal file selector
6553 * @param obj The file selector button widget
6554 * @return @c EINA_TRUE if @p obj widget's internal file selector
6555 * is in tree view, @c EINA_FALSE otherwise (and or errors)
6557 * @see elm_fileselector_expandable_set() for more details
6559 EAPI Eina_Bool elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6562 * Set whether a given file selector button widget's internal file
6563 * selector is to display folders only or the directory contents,
6566 * @param obj The file selector button widget
6567 * @param only @c EINA_TRUE to make @p obj widget's internal file
6568 * selector only display directories, @c EINA_FALSE to make files
6569 * to be displayed in it too
6571 * This has the same effect as elm_fileselector_folder_only_set(),
6572 * but now applied to a file selector button's internal file
6575 * @see elm_fileselector_folder_only_get()
6577 EAPI void elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6580 * Get whether a given file selector button widget's internal file
6581 * selector is displaying folders only or the directory contents,
6584 * @param obj The file selector button widget
6585 * @return @c EINA_TRUE if @p obj widget's internal file
6586 * selector is only displaying directories, @c EINA_FALSE if files
6587 * are being displayed in it too (and on errors)
6589 * @see elm_fileselector_button_folder_only_set() for more details
6591 EAPI Eina_Bool elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6594 * Enable/disable the file name entry box where the user can type
6595 * in a name for a file, in a given file selector button widget's
6596 * internal file selector.
6598 * @param obj The file selector button widget
6599 * @param is_save @c EINA_TRUE to make @p obj widget's internal
6600 * file selector a "saving dialog", @c EINA_FALSE otherwise
6602 * This has the same effect as elm_fileselector_is_save_set(),
6603 * but now applied to a file selector button's internal file
6606 * @see elm_fileselector_is_save_get()
6608 EAPI void elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6611 * Get whether the given file selector button widget's internal
6612 * file selector is in "saving dialog" mode
6614 * @param obj The file selector button widget
6615 * @return @c EINA_TRUE, if @p obj widget's internal file selector
6616 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6619 * @see elm_fileselector_button_is_save_set() for more details
6621 EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6624 * Set whether a given file selector button widget's internal file
6625 * selector will raise an Elementary "inner window", instead of a
6626 * dedicated Elementary window. By default, it won't.
6628 * @param obj The file selector button widget
6629 * @param value @c EINA_TRUE to make it use an inner window, @c
6630 * EINA_TRUE to make it use a dedicated window
6632 * @see elm_win_inwin_add() for more information on inner windows
6633 * @see elm_fileselector_button_inwin_mode_get()
6635 EAPI void elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6638 * Get whether a given file selector button widget's internal file
6639 * selector will raise an Elementary "inner window", instead of a
6640 * dedicated Elementary window.
6642 * @param obj The file selector button widget
6643 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6644 * if it will use a dedicated window
6646 * @see elm_fileselector_button_inwin_mode_set() for more details
6648 EAPI Eina_Bool elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6655 * @defgroup File_Selector_Entry File Selector Entry
6657 * @image html img/widget/fileselector_entry/preview-00.png
6658 * @image latex img/widget/fileselector_entry/preview-00.eps
6660 * This is an entry made to be filled with or display a <b>file
6661 * system path string</b>. Besides the entry itself, the widget has
6662 * a @ref File_Selector_Button "file selector button" on its side,
6663 * which will raise an internal @ref Fileselector "file selector widget",
6664 * when clicked, for path selection aided by file system
6667 * This file selector may appear in an Elementary window or in an
6668 * inner window. When a file is chosen from it, the (inner) window
6669 * is closed and the selected file's path string is exposed both as
6670 * an smart event and as the new text on the entry.
6672 * This widget encapsulates operations on its internal file
6673 * selector on its own API. There is less control over its file
6674 * selector than that one would have instatiating one directly.
6676 * Smart callbacks one can register to:
6677 * - @c "changed" - The text within the entry was changed
6678 * - @c "activated" - The entry has had editing finished and
6679 * changes are to be "committed"
6680 * - @c "press" - The entry has been clicked
6681 * - @c "longpressed" - The entry has been clicked (and held) for a
6683 * - @c "clicked" - The entry has been clicked
6684 * - @c "clicked,double" - The entry has been double clicked
6685 * - @c "focused" - The entry has received focus
6686 * - @c "unfocused" - The entry has lost focus
6687 * - @c "selection,paste" - A paste action has occurred on the
6689 * - @c "selection,copy" - A copy action has occurred on the entry
6690 * - @c "selection,cut" - A cut action has occurred on the entry
6691 * - @c "unpressed" - The file selector entry's button was released
6692 * after being pressed.
6693 * - @c "file,chosen" - The user has selected a path via the file
6694 * selector entry's internal file selector, whose string pointer
6695 * comes as the @c event_info data (a stringshared string)
6697 * Here is an example on its usage:
6698 * @li @ref fileselector_entry_example
6700 * @see @ref File_Selector_Button for a similar widget.
6705 * Add a new file selector entry widget to the given parent
6706 * Elementary (container) object
6708 * @param parent The parent object
6709 * @return a new file selector entry widget handle or @c NULL, on
6712 EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6715 * Set the label for a given file selector entry widget's button
6717 * @param obj The file selector entry widget
6718 * @param label The text label to be displayed on @p obj widget's
6721 * @deprecated use elm_object_text_set() instead.
6723 EINA_DEPRECATED EAPI void elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6726 * Get the label set for a given file selector entry widget's button
6728 * @param obj The file selector entry widget
6729 * @return The widget button's label
6731 * @deprecated use elm_object_text_set() instead.
6733 EINA_DEPRECATED EAPI const char *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6736 * Set the icon on a given file selector entry widget's button
6738 * @param obj The file selector entry widget
6739 * @param icon The icon object for the entry's button
6741 * Once the icon object is set, a previously set one will be
6742 * deleted. If you want to keep the latter, use the
6743 * elm_fileselector_entry_button_icon_unset() function.
6745 * @see elm_fileselector_entry_button_icon_get()
6747 EAPI void elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6750 * Get the icon set for a given file selector entry widget's button
6752 * @param obj The file selector entry widget
6753 * @return The icon object currently set on @p obj widget's button
6754 * or @c NULL, if none is
6756 * @see elm_fileselector_entry_button_icon_set()
6758 EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6761 * Unset the icon used in a given file selector entry widget's
6764 * @param obj The file selector entry widget
6765 * @return The icon object that was being used on @p obj widget's
6766 * button or @c NULL, on errors
6768 * Unparent and return the icon object which was set for this
6771 * @see elm_fileselector_entry_button_icon_set()
6773 EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6776 * Set the title for a given file selector entry widget's window
6778 * @param obj The file selector entry widget
6779 * @param title The title string
6781 * This will change the window's title, when the file selector pops
6782 * out after a click on the entry's button. Those windows have the
6783 * default (unlocalized) value of @c "Select a file" as titles.
6785 * @note It will only take any effect if the file selector
6786 * entry widget is @b not under "inwin mode".
6788 * @see elm_fileselector_entry_window_title_get()
6790 EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6793 * Get the title set for a given file selector entry widget's
6796 * @param obj The file selector entry widget
6797 * @return Title of the file selector entry's window
6799 * @see elm_fileselector_entry_window_title_get() for more details
6801 EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6804 * Set the size of a given file selector entry widget's window,
6805 * holding the file selector itself.
6807 * @param obj The file selector entry widget
6808 * @param width The window's width
6809 * @param height The window's height
6811 * @note it will only take any effect if the file selector entry
6812 * widget is @b not under "inwin mode". The default size for the
6813 * window (when applicable) is 400x400 pixels.
6815 * @see elm_fileselector_entry_window_size_get()
6817 EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6820 * Get the size of a given file selector entry widget's window,
6821 * holding the file selector itself.
6823 * @param obj The file selector entry widget
6824 * @param width Pointer into which to store the width value
6825 * @param height Pointer into which to store the height value
6827 * @note Use @c NULL pointers on the size values you're not
6828 * interested in: they'll be ignored by the function.
6830 * @see elm_fileselector_entry_window_size_set(), for more details
6832 EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6835 * Set the initial file system path and the entry's path string for
6836 * a given file selector entry widget
6838 * @param obj The file selector entry widget
6839 * @param path The path string
6841 * It must be a <b>directory</b> path, which will have the contents
6842 * displayed initially in the file selector's view, when invoked
6843 * from @p obj. The default initial path is the @c "HOME"
6844 * environment variable's value.
6846 * @see elm_fileselector_entry_path_get()
6848 EAPI void elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6851 * Get the entry's path string for a given file selector entry
6854 * @param obj The file selector entry widget
6855 * @return path The path string
6857 * @see elm_fileselector_entry_path_set() for more details
6859 EAPI const char *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6862 * Enable/disable a tree view in the given file selector entry
6863 * widget's internal file selector
6865 * @param obj The file selector entry widget
6866 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6869 * This has the same effect as elm_fileselector_expandable_set(),
6870 * but now applied to a file selector entry's internal file
6873 * @note There's no way to put a file selector entry's internal
6874 * file selector in "grid mode", as one may do with "pure" file
6877 * @see elm_fileselector_expandable_get()
6879 EAPI void elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6882 * Get whether tree view is enabled for the given file selector
6883 * entry widget's internal file selector
6885 * @param obj The file selector entry widget
6886 * @return @c EINA_TRUE if @p obj widget's internal file selector
6887 * is in tree view, @c EINA_FALSE otherwise (and or errors)
6889 * @see elm_fileselector_expandable_set() for more details
6891 EAPI Eina_Bool elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6894 * Set whether a given file selector entry widget's internal file
6895 * selector is to display folders only or the directory contents,
6898 * @param obj The file selector entry widget
6899 * @param only @c EINA_TRUE to make @p obj widget's internal file
6900 * selector only display directories, @c EINA_FALSE to make files
6901 * to be displayed in it too
6903 * This has the same effect as elm_fileselector_folder_only_set(),
6904 * but now applied to a file selector entry's internal file
6907 * @see elm_fileselector_folder_only_get()
6909 EAPI void elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6912 * Get whether a given file selector entry widget's internal file
6913 * selector is displaying folders only or the directory contents,
6916 * @param obj The file selector entry widget
6917 * @return @c EINA_TRUE if @p obj widget's internal file
6918 * selector is only displaying directories, @c EINA_FALSE if files
6919 * are being displayed in it too (and on errors)
6921 * @see elm_fileselector_entry_folder_only_set() for more details
6923 EAPI Eina_Bool elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6926 * Enable/disable the file name entry box where the user can type
6927 * in a name for a file, in a given file selector entry widget's
6928 * internal file selector.
6930 * @param obj The file selector entry widget
6931 * @param is_save @c EINA_TRUE to make @p obj widget's internal
6932 * file selector a "saving dialog", @c EINA_FALSE otherwise
6934 * This has the same effect as elm_fileselector_is_save_set(),
6935 * but now applied to a file selector entry's internal file
6938 * @see elm_fileselector_is_save_get()
6940 EAPI void elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6943 * Get whether the given file selector entry widget's internal
6944 * file selector is in "saving dialog" mode
6946 * @param obj The file selector entry widget
6947 * @return @c EINA_TRUE, if @p obj widget's internal file selector
6948 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6951 * @see elm_fileselector_entry_is_save_set() for more details
6953 EAPI Eina_Bool elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6956 * Set whether a given file selector entry widget's internal file
6957 * selector will raise an Elementary "inner window", instead of a
6958 * dedicated Elementary window. By default, it won't.
6960 * @param obj The file selector entry widget
6961 * @param value @c EINA_TRUE to make it use an inner window, @c
6962 * EINA_TRUE to make it use a dedicated window
6964 * @see elm_win_inwin_add() for more information on inner windows
6965 * @see elm_fileselector_entry_inwin_mode_get()
6967 EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6970 * Get whether a given file selector entry widget's internal file
6971 * selector will raise an Elementary "inner window", instead of a
6972 * dedicated Elementary window.
6974 * @param obj The file selector entry widget
6975 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6976 * if it will use a dedicated window
6978 * @see elm_fileselector_entry_inwin_mode_set() for more details
6980 EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6983 * Set the initial file system path for a given file selector entry
6986 * @param obj The file selector entry widget
6987 * @param path The path string
6989 * It must be a <b>directory</b> path, which will have the contents
6990 * displayed initially in the file selector's view, when invoked
6991 * from @p obj. The default initial path is the @c "HOME"
6992 * environment variable's value.
6994 * @see elm_fileselector_entry_path_get()
6996 EAPI void elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6999 * Get the parent directory's path to the latest file selection on
7000 * a given filer selector entry widget
7002 * @param obj The file selector object
7003 * @return The (full) path of the directory of the last selection
7004 * on @p obj widget, a @b stringshared string
7006 * @see elm_fileselector_entry_path_set()
7008 EAPI const char *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7015 * @defgroup Scroller Scroller
7017 * A scroller holds a single object and "scrolls it around". This means that
7018 * it allows the user to use a scrollbar (or a finger) to drag the viewable
7019 * region around, allowing to move through a much larger object that is
7020 * contained in the scroller. The scroller will always have a small minimum
7021 * size by default as it won't be limited by the contents of the scroller.
7023 * Signals that you can add callbacks for are:
7024 * @li "edge,left" - the left edge of the content has been reached
7025 * @li "edge,right" - the right edge of the content has been reached
7026 * @li "edge,top" - the top edge of the content has been reached
7027 * @li "edge,bottom" - the bottom edge of the content has been reached
7028 * @li "scroll" - the content has been scrolled (moved)
7029 * @li "scroll,anim,start" - scrolling animation has started
7030 * @li "scroll,anim,stop" - scrolling animation has stopped
7031 * @li "scroll,drag,start" - dragging the contents around has started
7032 * @li "scroll,drag,stop" - dragging the contents around has stopped
7033 * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
7036 * @note When Elemementary is in embedded mode the scrollbars will not be
7037 * dragable, they appear merely as indicators of how much has been scrolled.
7038 * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
7039 * fingerscroll) won't work.
7041 * Default contents parts of the scroller widget that you can use for are:
7042 * @li "default" - A content of the scroller
7044 * In @ref tutorial_scroller you'll find an example of how to use most of
7049 * @brief Type that controls when scrollbars should appear.
7051 * @see elm_scroller_policy_set()
7053 typedef enum _Elm_Scroller_Policy
7055 ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
7056 ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
7057 ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
7058 ELM_SCROLLER_POLICY_LAST
7059 } Elm_Scroller_Policy;
7061 * @brief Add a new scroller to the parent
7063 * @param parent The parent object
7064 * @return The new object or NULL if it cannot be created
7066 EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7068 * @brief Set the content of the scroller widget (the object to be scrolled around).
7070 * @param obj The scroller object
7071 * @param content The new content object
7073 * Once the content object is set, a previously set one will be deleted.
7074 * If you want to keep that old content object, use the
7075 * elm_scroller_content_unset() function.
7076 * @deprecated use elm_object_content_set() instead
7078 EINA_DEPRECATED EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
7080 * @brief Get the content of the scroller widget
7082 * @param obj The slider object
7083 * @return The content that is being used
7085 * Return the content object which is set for this widget
7087 * @see elm_scroller_content_set()
7088 * @deprecated use elm_object_content_get() instead.
7090 EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7092 * @brief Unset the content of the scroller widget
7094 * @param obj The slider object
7095 * @return The content that was being used
7097 * Unparent and return the content object which was set for this widget
7099 * @see elm_scroller_content_set()
7100 * @deprecated use elm_object_content_unset() instead.
7102 EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7104 * @brief Set custom theme elements for the scroller
7106 * @param obj The scroller object
7107 * @param widget The widget name to use (default is "scroller")
7108 * @param base The base name to use (default is "base")
7110 EAPI void elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
7112 * @brief Make the scroller minimum size limited to the minimum size of the content
7114 * @param obj The scroller object
7115 * @param w Enable limiting minimum size horizontally
7116 * @param h Enable limiting minimum size vertically
7118 * By default the scroller will be as small as its design allows,
7119 * irrespective of its content. This will make the scroller minimum size the
7120 * right size horizontally and/or vertically to perfectly fit its content in
7123 EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
7125 * @brief Show a specific virtual region within the scroller content object
7127 * @param obj The scroller object
7128 * @param x X coordinate of the region
7129 * @param y Y coordinate of the region
7130 * @param w Width of the region
7131 * @param h Height of the region
7133 * This will ensure all (or part if it does not fit) of the designated
7134 * region in the virtual content object (0, 0 starting at the top-left of the
7135 * virtual content object) is shown within the scroller.
7137 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);
7139 * @brief Set the scrollbar visibility policy
7141 * @param obj The scroller object
7142 * @param policy_h Horizontal scrollbar policy
7143 * @param policy_v Vertical scrollbar policy
7145 * This sets the scrollbar visibility policy for the given scroller.
7146 * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7147 * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7148 * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7149 * respectively for the horizontal and vertical scrollbars.
7151 EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7153 * @brief Gets scrollbar visibility policy
7155 * @param obj The scroller object
7156 * @param policy_h Horizontal scrollbar policy
7157 * @param policy_v Vertical scrollbar policy
7159 * @see elm_scroller_policy_set()
7161 EAPI void elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7163 * @brief Get the currently visible content region
7165 * @param obj The scroller object
7166 * @param x X coordinate of the region
7167 * @param y Y coordinate of the region
7168 * @param w Width of the region
7169 * @param h Height of the region
7171 * This gets the current region in the content object that is visible through
7172 * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7173 * w, @p h values pointed to.
7175 * @note All coordinates are relative to the content.
7177 * @see elm_scroller_region_show()
7179 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);
7181 * @brief Get the size of the content object
7183 * @param obj The scroller object
7184 * @param w Width of the content object.
7185 * @param h Height of the content object.
7187 * This gets the size of the content object of the scroller.
7189 EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7191 * @brief Set bouncing behavior
7193 * @param obj The scroller object
7194 * @param h_bounce Allow bounce horizontally
7195 * @param v_bounce Allow bounce vertically
7197 * When scrolling, the scroller may "bounce" when reaching an edge of the
7198 * content object. This is a visual way to indicate the end has been reached.
7199 * This is enabled by default for both axis. This API will set if it is enabled
7200 * for the given axis with the boolean parameters for each axis.
7202 EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7204 * @brief Get the bounce behaviour
7206 * @param obj The Scroller object
7207 * @param h_bounce Will the scroller bounce horizontally or not
7208 * @param v_bounce Will the scroller bounce vertically or not
7210 * @see elm_scroller_bounce_set()
7212 EAPI void elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7214 * @brief Set scroll page size relative to viewport size.
7216 * @param obj The scroller object
7217 * @param h_pagerel The horizontal page relative size
7218 * @param v_pagerel The vertical page relative size
7220 * The scroller is capable of limiting scrolling by the user to "pages". That
7221 * is to jump by and only show a "whole page" at a time as if the continuous
7222 * area of the scroller content is split into page sized pieces. This sets
7223 * the size of a page relative to the viewport of the scroller. 1.0 is "1
7224 * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7225 * axis. This is mutually exclusive with page size
7226 * (see elm_scroller_page_size_set() for more information). Likewise 0.5
7227 * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7228 * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7231 EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7233 * @brief Set scroll page size.
7235 * @param obj The scroller object
7236 * @param h_pagesize The horizontal page size
7237 * @param v_pagesize The vertical page size
7239 * This sets the page size to an absolute fixed value, with 0 turning it off
7242 * @see elm_scroller_page_relative_set()
7244 EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7246 * @brief Get scroll current page number.
7248 * @param obj The scroller object
7249 * @param h_pagenumber The horizontal page number
7250 * @param v_pagenumber The vertical page number
7252 * The page number starts from 0. 0 is the first page.
7253 * Current page means the page which meets the top-left of the viewport.
7254 * If there are two or more pages in the viewport, it returns the number of the page
7255 * which meets the top-left of the viewport.
7257 * @see elm_scroller_last_page_get()
7258 * @see elm_scroller_page_show()
7259 * @see elm_scroller_page_brint_in()
7261 EAPI void elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7263 * @brief Get scroll last page number.
7265 * @param obj The scroller object
7266 * @param h_pagenumber The horizontal page number
7267 * @param v_pagenumber The vertical page number
7269 * The page number starts from 0. 0 is the first page.
7270 * This returns the last page number among the pages.
7272 * @see elm_scroller_current_page_get()
7273 * @see elm_scroller_page_show()
7274 * @see elm_scroller_page_brint_in()
7276 EAPI void elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7278 * Show a specific virtual region within the scroller content object by page number.
7280 * @param obj The scroller object
7281 * @param h_pagenumber The horizontal page number
7282 * @param v_pagenumber The vertical page number
7284 * 0, 0 of the indicated page is located at the top-left of the viewport.
7285 * This will jump to the page directly without animation.
7290 * sc = elm_scroller_add(win);
7291 * elm_scroller_content_set(sc, content);
7292 * elm_scroller_page_relative_set(sc, 1, 0);
7293 * elm_scroller_current_page_get(sc, &h_page, &v_page);
7294 * elm_scroller_page_show(sc, h_page + 1, v_page);
7297 * @see elm_scroller_page_bring_in()
7299 EAPI void elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7301 * Show a specific virtual region within the scroller content object by page number.
7303 * @param obj The scroller object
7304 * @param h_pagenumber The horizontal page number
7305 * @param v_pagenumber The vertical page number
7307 * 0, 0 of the indicated page is located at the top-left of the viewport.
7308 * This will slide to the page with animation.
7313 * sc = elm_scroller_add(win);
7314 * elm_scroller_content_set(sc, content);
7315 * elm_scroller_page_relative_set(sc, 1, 0);
7316 * elm_scroller_last_page_get(sc, &h_page, &v_page);
7317 * elm_scroller_page_bring_in(sc, h_page, v_page);
7320 * @see elm_scroller_page_show()
7322 EAPI void elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7324 * @brief Show a specific virtual region within the scroller content object.
7326 * @param obj The scroller object
7327 * @param x X coordinate of the region
7328 * @param y Y coordinate of the region
7329 * @param w Width of the region
7330 * @param h Height of the region
7332 * This will ensure all (or part if it does not fit) of the designated
7333 * region in the virtual content object (0, 0 starting at the top-left of the
7334 * virtual content object) is shown within the scroller. Unlike
7335 * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7336 * to this location (if configuration in general calls for transitions). It
7337 * may not jump immediately to the new location and make take a while and
7338 * show other content along the way.
7340 * @see elm_scroller_region_show()
7342 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);
7344 * @brief Set event propagation on a scroller
7346 * @param obj The scroller object
7347 * @param propagation If propagation is enabled or not
7349 * This enables or disabled event propagation from the scroller content to
7350 * the scroller and its parent. By default event propagation is disabled.
7352 EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7354 * @brief Get event propagation for a scroller
7356 * @param obj The scroller object
7357 * @return The propagation state
7359 * This gets the event propagation for a scroller.
7361 * @see elm_scroller_propagate_events_set()
7363 EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7365 * @brief Set scrolling gravity on a scroller
7367 * @param obj The scroller object
7368 * @param x The scrolling horizontal gravity
7369 * @param y The scrolling vertical gravity
7371 * The gravity, defines how the scroller will adjust its view
7372 * when the size of the scroller contents increase.
7374 * The scroller will adjust the view to glue itself as follows.
7376 * x=0.0, for showing the left most region of the content.
7377 * x=1.0, for showing the right most region of the content.
7378 * y=0.0, for showing the bottom most region of the content.
7379 * y=1.0, for showing the top most region of the content.
7381 * Default values for x and y are 0.0
7383 EAPI void elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7385 * @brief Get scrolling gravity values for a scroller
7387 * @param obj The scroller object
7388 * @param x The scrolling horizontal gravity
7389 * @param y The scrolling vertical gravity
7391 * This gets gravity values for a scroller.
7393 * @see elm_scroller_gravity_set()
7396 EAPI void elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7402 * @defgroup Label Label
7404 * @image html img/widget/label/preview-00.png
7405 * @image latex img/widget/label/preview-00.eps
7407 * @brief Widget to display text, with simple html-like markup.
7409 * The Label widget @b doesn't allow text to overflow its boundaries, if the
7410 * text doesn't fit the geometry of the label it will be ellipsized or be
7411 * cut. Elementary provides several themes for this widget:
7412 * @li default - No animation
7413 * @li marker - Centers the text in the label and make it bold by default
7414 * @li slide_long - The entire text appears from the right of the screen and
7415 * slides until it disappears in the left of the screen(reappering on the
7417 * @li slide_short - The text appears in the left of the label and slides to
7418 * the right to show the overflow. When all of the text has been shown the
7419 * position is reset.
7420 * @li slide_bounce - The text appears in the left of the label and slides to
7421 * the right to show the overflow. When all of the text has been shown the
7422 * animation reverses, moving the text to the left.
7424 * Custom themes can of course invent new markup tags and style them any way
7427 * The following signals may be emitted by the label widget:
7428 * @li "language,changed": The program's language changed.
7430 * See @ref tutorial_label for a demonstration of how to use a label widget.
7434 * @brief Add a new label to the parent
7436 * @param parent The parent object
7437 * @return The new object or NULL if it cannot be created
7439 EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7441 * @brief Set the label on the label object
7443 * @param obj The label object
7444 * @param label The label will be used on the label object
7445 * @deprecated See elm_object_text_set()
7447 EINA_DEPRECATED EAPI void elm_label_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_set instead */
7449 * @brief Get the label used on the label object
7451 * @param obj The label object
7452 * @return The string inside the label
7453 * @deprecated See elm_object_text_get()
7455 EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7457 * @brief Set the wrapping behavior of the label
7459 * @param obj The label object
7460 * @param wrap To wrap text or not
7462 * By default no wrapping is done. Possible values for @p wrap are:
7463 * @li ELM_WRAP_NONE - No wrapping
7464 * @li ELM_WRAP_CHAR - wrap between characters
7465 * @li ELM_WRAP_WORD - wrap between words
7466 * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7468 EAPI void elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7470 * @brief Get the wrapping behavior of the label
7472 * @param obj The label object
7475 * @see elm_label_line_wrap_set()
7477 EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7479 * @brief Set wrap width of the label
7481 * @param obj The label object
7482 * @param w The wrap width in pixels at a minimum where words need to wrap
7484 * This function sets the maximum width size hint of the label.
7486 * @warning This is only relevant if the label is inside a container.
7488 EAPI void elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7490 * @brief Get wrap width of the label
7492 * @param obj The label object
7493 * @return The wrap width in pixels at a minimum where words need to wrap
7495 * @see elm_label_wrap_width_set()
7497 EAPI Evas_Coord elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7499 * @brief Set wrap height of the label
7501 * @param obj The label object
7502 * @param h The wrap height in pixels at a minimum where words need to wrap
7504 * This function sets the maximum height size hint of the label.
7506 * @warning This is only relevant if the label is inside a container.
7508 EAPI void elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7510 * @brief get wrap width of the label
7512 * @param obj The label object
7513 * @return The wrap height in pixels at a minimum where words need to wrap
7515 EAPI Evas_Coord elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7517 * @brief Set the font size on the label object.
7519 * @param obj The label object
7520 * @param size font size
7522 * @warning NEVER use this. It is for hyper-special cases only. use styles
7523 * instead. e.g. "big", "medium", "small" - or better name them by use:
7524 * "title", "footnote", "quote" etc.
7526 EAPI void elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7528 * @brief Set the text color on the label object
7530 * @param obj The label object
7531 * @param r Red property background color of The label object
7532 * @param g Green property background color of The label object
7533 * @param b Blue property background color of The label object
7534 * @param a Alpha property background color of The label object
7536 * @warning NEVER use this. It is for hyper-special cases only. use styles
7537 * instead. e.g. "big", "medium", "small" - or better name them by use:
7538 * "title", "footnote", "quote" etc.
7540 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);
7542 * @brief Set the text align on the label object
7544 * @param obj The label object
7545 * @param align align mode ("left", "center", "right")
7547 * @warning NEVER use this. It is for hyper-special cases only. use styles
7548 * instead. e.g. "big", "medium", "small" - or better name them by use:
7549 * "title", "footnote", "quote" etc.
7551 EAPI void elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7553 * @brief Set background color of the label
7555 * @param obj The label object
7556 * @param r Red property background color of The label object
7557 * @param g Green property background color of The label object
7558 * @param b Blue property background color of The label object
7559 * @param a Alpha property background alpha of The label object
7561 * @warning NEVER use this. It is for hyper-special cases only. use styles
7562 * instead. e.g. "big", "medium", "small" - or better name them by use:
7563 * "title", "footnote", "quote" etc.
7565 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);
7567 * @brief Set the ellipsis behavior of the label
7569 * @param obj The label object
7570 * @param ellipsis To ellipsis text or not
7572 * If set to true and the text doesn't fit in the label an ellipsis("...")
7573 * will be shown at the end of the widget.
7575 * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7576 * choosen wrap method was ELM_WRAP_WORD.
7578 EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7580 * @brief Set the text slide of the label
7582 * @param obj The label object
7583 * @param slide To start slide or stop
7585 * If set to true, the text of the label will slide/scroll through the length of
7588 * @warning This only works with the themes "slide_short", "slide_long" and
7591 EAPI void elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7593 * @brief Get the text slide mode of the label
7595 * @param obj The label object
7596 * @return slide slide mode value
7598 * @see elm_label_slide_set()
7600 EAPI Eina_Bool elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7602 * @brief Set the slide duration(speed) of the label
7604 * @param obj The label object
7605 * @return The duration in seconds in moving text from slide begin position
7606 * to slide end position
7608 EAPI void elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7610 * @brief Get the slide duration(speed) of the label
7612 * @param obj The label object
7613 * @return The duration time in moving text from slide begin position to slide end position
7615 * @see elm_label_slide_duration_set()
7617 EAPI double elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7623 * @defgroup Toggle Toggle
7625 * @image html img/widget/toggle/preview-00.png
7626 * @image latex img/widget/toggle/preview-00.eps
7628 * @brief A toggle is a slider which can be used to toggle between
7629 * two values. It has two states: on and off.
7631 * This widget is deprecated. Please use elm_check_add() instead using the
7632 * toggle style like:
7635 * obj = elm_check_add(parent);
7636 * elm_object_style_set(obj, "toggle");
7637 * elm_object_part_text_set(obj, "on", "ON");
7638 * elm_object_part_text_set(obj, "off", "OFF");
7641 * Signals that you can add callbacks for are:
7642 * @li "changed" - Whenever the toggle value has been changed. Is not called
7643 * until the toggle is released by the cursor (assuming it
7644 * has been triggered by the cursor in the first place).
7646 * Default contents parts of the toggle widget that you can use for are:
7647 * @li "icon" - A icon of the toggle
7649 * Default text parts of the toggle widget that you can use for are:
7650 * @li "elm.text" - Label of the toggle
7652 * @ref tutorial_toggle show how to use a toggle.
7656 * @brief Add a toggle to @p parent.
7658 * @param parent The parent object
7660 * @return The toggle object
7662 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7664 * @brief Sets the label to be displayed with the toggle.
7666 * @param obj The toggle object
7667 * @param label The label to be displayed
7669 * @deprecated use elm_object_text_set() instead.
7671 EINA_DEPRECATED EAPI void elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7673 * @brief Gets the label of the toggle
7675 * @param obj toggle object
7676 * @return The label of the toggle
7678 * @deprecated use elm_object_text_get() instead.
7680 EINA_DEPRECATED EAPI const char *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7682 * @brief Set the icon used for the toggle
7684 * @param obj The toggle object
7685 * @param icon The icon object for the button
7687 * Once the icon object is set, a previously set one will be deleted
7688 * If you want to keep that old content object, use the
7689 * elm_toggle_icon_unset() function.
7691 * @deprecated use elm_object_part_content_set() instead.
7693 EINA_DEPRECATED EAPI void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7695 * @brief Get the icon used for the toggle
7697 * @param obj The toggle object
7698 * @return The icon object that is being used
7700 * Return the icon object which is set for this widget.
7702 * @see elm_toggle_icon_set()
7704 * @deprecated use elm_object_part_content_get() instead.
7706 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7708 * @brief Unset the icon used for the toggle
7710 * @param obj The toggle object
7711 * @return The icon object that was being used
7713 * Unparent and return the icon object which was set for this widget.
7715 * @see elm_toggle_icon_set()
7717 * @deprecated use elm_object_part_content_unset() instead.
7719 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7721 * @brief Sets the labels to be associated with the on and off states of the toggle.
7723 * @param obj The toggle object
7724 * @param onlabel The label displayed when the toggle is in the "on" state
7725 * @param offlabel The label displayed when the toggle is in the "off" state
7727 * @deprecated use elm_object_part_text_set() for "on" and "off" parts
7730 EINA_DEPRECATED EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7732 * @brief Gets the labels associated with the on and off states of the
7735 * @param obj The toggle object
7736 * @param onlabel A char** to place the onlabel of @p obj into
7737 * @param offlabel A char** to place the offlabel of @p obj into
7739 * @deprecated use elm_object_part_text_get() for "on" and "off" parts
7742 EINA_DEPRECATED EAPI void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7744 * @brief Sets the state of the toggle to @p state.
7746 * @param obj The toggle object
7747 * @param state The state of @p obj
7749 * @deprecated use elm_check_state_set() instead.
7751 EINA_DEPRECATED EAPI void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7753 * @brief Gets the state of the toggle to @p state.
7755 * @param obj The toggle object
7756 * @return The state of @p obj
7758 * @deprecated use elm_check_state_get() instead.
7760 EINA_DEPRECATED EAPI Eina_Bool elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7762 * @brief Sets the state pointer of the toggle to @p statep.
7764 * @param obj The toggle object
7765 * @param statep The state pointer of @p obj
7767 * @deprecated use elm_check_state_pointer_set() instead.
7769 EINA_DEPRECATED EAPI void elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7775 * @defgroup Frame Frame
7777 * @image html img/widget/frame/preview-00.png
7778 * @image latex img/widget/frame/preview-00.eps
7780 * @brief Frame is a widget that holds some content and has a title.
7782 * The default look is a frame with a title, but Frame supports multple
7790 * @li outdent_bottom
7792 * Of all this styles only default shows the title. Frame emits no signals.
7794 * Default contents parts of the frame widget that you can use for are:
7795 * @li "default" - A content of the frame
7797 * Default text parts of the frame widget that you can use for are:
7798 * @li "elm.text" - Label of the frame
7800 * For a detailed example see the @ref tutorial_frame.
7805 * @brief Add a new frame to the parent
7807 * @param parent The parent object
7808 * @return The new object or NULL if it cannot be created
7810 EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7812 * @brief Set the frame label
7814 * @param obj The frame object
7815 * @param label The label of this frame object
7817 * @deprecated use elm_object_text_set() instead.
7819 EINA_DEPRECATED EAPI void elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7821 * @brief Get the frame label
7823 * @param obj The frame object
7825 * @return The label of this frame objet or NULL if unable to get frame
7827 * @deprecated use elm_object_text_get() instead.
7829 EINA_DEPRECATED EAPI const char *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7831 * @brief Set the content of the frame widget
7833 * Once the content object is set, a previously set one will be deleted.
7834 * If you want to keep that old content object, use the
7835 * elm_frame_content_unset() function.
7837 * @param obj The frame object
7838 * @param content The content will be filled in this frame object
7840 * @deprecated use elm_object_content_set() instead.
7842 EINA_DEPRECATED EAPI void elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7844 * @brief Get the content of the frame widget
7846 * Return the content object which is set for this widget
7848 * @param obj The frame object
7849 * @return The content that is being used
7851 * @deprecated use elm_object_content_get() instead.
7853 EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7855 * @brief Unset the content of the frame widget
7857 * Unparent and return the content object which was set for this widget
7859 * @param obj The frame object
7860 * @return The content that was being used
7862 * @deprecated use elm_object_content_unset() instead.
7864 EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7870 * @defgroup Table Table
7872 * A container widget to arrange other widgets in a table where items can
7873 * also span multiple columns or rows - even overlap (and then be raised or
7874 * lowered accordingly to adjust stacking if they do overlap).
7876 * For a Table widget the row/column count is not fixed.
7877 * The table widget adjusts itself when subobjects are added to it dynamically.
7879 * The followin are examples of how to use a table:
7880 * @li @ref tutorial_table_01
7881 * @li @ref tutorial_table_02
7886 * @brief Add a new table to the parent
7888 * @param parent The parent object
7889 * @return The new object or NULL if it cannot be created
7891 EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7893 * @brief Set the homogeneous layout in the table
7895 * @param obj The layout object
7896 * @param homogeneous A boolean to set if the layout is homogeneous in the
7897 * table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
7899 EAPI void elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7901 * @brief Get the current table homogeneous mode.
7903 * @param obj The table object
7904 * @return A boolean to indicating if the layout is homogeneous in the table
7905 * (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
7907 EAPI Eina_Bool elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7909 * @warning <b>Use elm_table_homogeneous_set() instead</b>
7911 EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7913 * @warning <b>Use elm_table_homogeneous_get() instead</b>
7915 EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7917 * @brief Set padding between cells.
7919 * @param obj The layout object.
7920 * @param horizontal set the horizontal padding.
7921 * @param vertical set the vertical padding.
7923 * Default value is 0.
7925 EAPI void elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7927 * @brief Get padding between cells.
7929 * @param obj The layout object.
7930 * @param horizontal set the horizontal padding.
7931 * @param vertical set the vertical padding.
7933 EAPI void elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7935 * @brief Add a subobject on the table with the coordinates passed
7937 * @param obj The table object
7938 * @param subobj The subobject to be added to the table
7939 * @param x Row number
7940 * @param y Column number
7944 * @note All positioning inside the table is relative to rows and columns, so
7945 * a value of 0 for x and y, means the top left cell of the table, and a
7946 * value of 1 for w and h means @p subobj only takes that 1 cell.
7948 EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7950 * @brief Remove child from table.
7952 * @param obj The table object
7953 * @param subobj The subobject
7955 EAPI void elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7957 * @brief Faster way to remove all child objects from a table object.
7959 * @param obj The table object
7960 * @param clear If true, will delete children, else just remove from table.
7962 EAPI void elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7964 * @brief Set the packing location of an existing child of the table
7966 * @param subobj The subobject to be modified in the table
7967 * @param x Row number
7968 * @param y Column number
7972 * Modifies the position of an object already in the table.
7974 * @note All positioning inside the table is relative to rows and columns, so
7975 * a value of 0 for x and y, means the top left cell of the table, and a
7976 * value of 1 for w and h means @p subobj only takes that 1 cell.
7978 EAPI void elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7980 * @brief Get the packing location of an existing child of the table
7982 * @param subobj The subobject to be modified in the table
7983 * @param x Row number
7984 * @param y Column number
7988 * @see elm_table_pack_set()
7990 EAPI void elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7995 /* TEMPORARY: DOCS WILL BE FILLED IN WITH CNP/SED */
7996 typedef struct Elm_Gen_Item Elm_Gen_Item;
7997 typedef struct _Elm_Gen_Item_Class Elm_Gen_Item_Class;
7998 typedef struct _Elm_Gen_Item_Class_Func Elm_Gen_Item_Class_Func; /**< Class functions for gen item classes. */
7999 typedef char *(*Elm_Gen_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gen item classes. */
8000 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. */
8001 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. */
8002 typedef void (*Elm_Gen_Item_Del_Cb) (void *data, Evas_Object *obj); /**< Deletion class function for gen item classes. */
8003 struct _Elm_Gen_Item_Class
8005 const char *item_style;
8006 struct _Elm_Gen_Item_Class_Func
8008 Elm_Gen_Item_Label_Get_Cb label_get;
8009 Elm_Gen_Item_Content_Get_Cb content_get;
8010 Elm_Gen_Item_State_Get_Cb state_get;
8011 Elm_Gen_Item_Del_Cb del;
8014 EAPI void elm_gen_clear(Evas_Object *obj);
8015 EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
8016 EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
8017 EAPI void elm_gen_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
8018 EAPI Eina_Bool elm_gen_always_select_mode_get(const Evas_Object *obj);
8019 EAPI void elm_gen_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
8020 EAPI Eina_Bool elm_gen_no_select_mode_get(const Evas_Object *obj);
8021 EAPI void elm_gen_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
8022 EAPI void elm_gen_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
8023 EAPI void elm_gen_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
8024 EAPI void elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
8025 EAPI void elm_gen_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
8026 EAPI void elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8027 EAPI void elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8028 EAPI void elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8029 EAPI void elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8030 EAPI Elm_Gen_Item *elm_gen_first_item_get(const Evas_Object *obj);
8031 EAPI Elm_Gen_Item *elm_gen_last_item_get(const Evas_Object *obj);
8032 EAPI Elm_Gen_Item *elm_gen_item_next_get(const Elm_Gen_Item *it);
8033 EAPI Elm_Gen_Item *elm_gen_item_prev_get(const Elm_Gen_Item *it);
8034 EAPI Evas_Object *elm_gen_item_widget_get(const Elm_Gen_Item *it);
8037 * @defgroup Gengrid Gengrid (Generic grid)
8039 * This widget aims to position objects in a grid layout while
8040 * actually creating and rendering only the visible ones, using the
8041 * same idea as the @ref Genlist "genlist": the user defines a @b
8042 * class for each item, specifying functions that will be called at
8043 * object creation, deletion, etc. When those items are selected by
8044 * the user, a callback function is issued. Users may interact with
8045 * a gengrid via the mouse (by clicking on items to select them and
8046 * clicking on the grid's viewport and swiping to pan the whole
8047 * view) or via the keyboard, navigating through item with the
8050 * @section Gengrid_Layouts Gengrid layouts
8052 * Gengrid may layout its items in one of two possible layouts:
8056 * When in "horizontal mode", items will be placed in @b columns,
8057 * from top to bottom and, when the space for a column is filled,
8058 * another one is started on the right, thus expanding the grid
8059 * horizontally, making for horizontal scrolling. When in "vertical
8060 * mode" , though, items will be placed in @b rows, from left to
8061 * right and, when the space for a row is filled, another one is
8062 * started below, thus expanding the grid vertically (and making
8063 * for vertical scrolling).
8065 * @section Gengrid_Items Gengrid items
8067 * An item in a gengrid can have 0 or more text labels (they can be
8068 * regular text or textblock Evas objects - that's up to the style
8069 * to determine), 0 or more icons (which are simply objects
8070 * swallowed into the gengrid item's theming Edje object) and 0 or
8071 * more <b>boolean states</b>, which have the behavior left to the
8072 * user to define. The Edje part names for each of these properties
8073 * will be looked up, in the theme file for the gengrid, under the
8074 * Edje (string) data items named @c "labels", @c "icons" and @c
8075 * "states", respectively. For each of those properties, if more
8076 * than one part is provided, they must have names listed separated
8077 * by spaces in the data fields. For the default gengrid item
8078 * theme, we have @b one label part (@c "elm.text"), @b two icon
8079 * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
8082 * A gengrid item may be at one of several styles. Elementary
8083 * provides one by default - "default", but this can be extended by
8084 * system or application custom themes/overlays/extensions (see
8085 * @ref Theme "themes" for more details).
8087 * @section Gengrid_Item_Class Gengrid item classes
8089 * In order to have the ability to add and delete items on the fly,
8090 * gengrid implements a class (callback) system where the
8091 * application provides a structure with information about that
8092 * type of item (gengrid may contain multiple different items with
8093 * different classes, states and styles). Gengrid will call the
8094 * functions in this struct (methods) when an item is "realized"
8095 * (i.e., created dynamically, while the user is scrolling the
8096 * grid). All objects will simply be deleted when no longer needed
8097 * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
8098 * contains the following members:
8099 * - @c item_style - This is a constant string and simply defines
8100 * the name of the item style. It @b must be specified and the
8101 * default should be @c "default".
8102 * - @c func.label_get - This function is called when an item
8103 * object is actually created. The @c data parameter will point to
8104 * the same data passed to elm_gengrid_item_append() and related
8105 * item creation functions. The @c obj parameter is the gengrid
8106 * object itself, while the @c part one is the name string of one
8107 * of the existing text parts in the Edje group implementing the
8108 * item's theme. This function @b must return a strdup'()ed string,
8109 * as the caller will free() it when done. See
8110 * #Elm_Gengrid_Item_Label_Get_Cb.
8111 * - @c func.content_get - This function is called when an item object
8112 * is actually created. The @c data parameter will point to the
8113 * same data passed to elm_gengrid_item_append() and related item
8114 * creation functions. The @c obj parameter is the gengrid object
8115 * itself, while the @c part one is the name string of one of the
8116 * existing (content) swallow parts in the Edje group implementing the
8117 * item's theme. It must return @c NULL, when no content is desired,
8118 * or a valid object handle, otherwise. The object will be deleted
8119 * by the gengrid on its deletion or when the item is "unrealized".
8120 * See #Elm_Gengrid_Item_Content_Get_Cb.
8121 * - @c func.state_get - This function is called when an item
8122 * object is actually created. The @c data parameter will point to
8123 * the same data passed to elm_gengrid_item_append() and related
8124 * item creation functions. The @c obj parameter is the gengrid
8125 * object itself, while the @c part one is the name string of one
8126 * of the state parts in the Edje group implementing the item's
8127 * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
8128 * true/on. Gengrids will emit a signal to its theming Edje object
8129 * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
8130 * "source" arguments, respectively, when the state is true (the
8131 * default is false), where @c XXX is the name of the (state) part.
8132 * See #Elm_Gengrid_Item_State_Get_Cb.
8133 * - @c func.del - This is called when elm_gengrid_item_del() is
8134 * called on an item or elm_gengrid_clear() is called on the
8135 * gengrid. This is intended for use when gengrid items are
8136 * deleted, so any data attached to the item (e.g. its data
8137 * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
8139 * @section Gengrid_Usage_Hints Usage hints
8141 * If the user wants to have multiple items selected at the same
8142 * time, elm_gengrid_multi_select_set() will permit it. If the
8143 * gengrid is single-selection only (the default), then
8144 * elm_gengrid_select_item_get() will return the selected item or
8145 * @c NULL, if none is selected. If the gengrid is under
8146 * multi-selection, then elm_gengrid_selected_items_get() will
8147 * return a list (that is only valid as long as no items are
8148 * modified (added, deleted, selected or unselected) of child items
8151 * If an item changes (internal (boolean) state, label or content
8152 * changes), then use elm_gengrid_item_update() to have gengrid
8153 * update the item with the new state. A gengrid will re-"realize"
8154 * the item, thus calling the functions in the
8155 * #Elm_Gengrid_Item_Class set for that item.
8157 * To programmatically (un)select an item, use
8158 * elm_gengrid_item_selected_set(). To get its selected state use
8159 * elm_gengrid_item_selected_get(). To make an item disabled
8160 * (unable to be selected and appear differently) use
8161 * elm_gengrid_item_disabled_set() to set this and
8162 * elm_gengrid_item_disabled_get() to get the disabled state.
8164 * Grid cells will only have their selection smart callbacks called
8165 * when firstly getting selected. Any further clicks will do
8166 * nothing, unless you enable the "always select mode", with
8167 * elm_gengrid_always_select_mode_set(), thus making every click to
8168 * issue selection callbacks. elm_gengrid_no_select_mode_set() will
8169 * turn off the ability to select items entirely in the widget and
8170 * they will neither appear selected nor call the selection smart
8173 * Remember that you can create new styles and add your own theme
8174 * augmentation per application with elm_theme_extension_add(). If
8175 * you absolutely must have a specific style that overrides any
8176 * theme the user or system sets up you can use
8177 * elm_theme_overlay_add() to add such a file.
8179 * @section Gengrid_Smart_Events Gengrid smart events
8181 * Smart events that you can add callbacks for are:
8182 * - @c "activated" - The user has double-clicked or pressed
8183 * (enter|return|spacebar) on an item. The @c event_info parameter
8184 * is the gengrid item that was activated.
8185 * - @c "clicked,double" - The user has double-clicked an item.
8186 * The @c event_info parameter is the gengrid item that was double-clicked.
8187 * - @c "longpressed" - This is called when the item is pressed for a certain
8188 * amount of time. By default it's 1 second.
8189 * - @c "selected" - The user has made an item selected. The
8190 * @c event_info parameter is the gengrid item that was selected.
8191 * - @c "unselected" - The user has made an item unselected. The
8192 * @c event_info parameter is the gengrid item that was unselected.
8193 * - @c "realized" - This is called when the item in the gengrid
8194 * has its implementing Evas object instantiated, de facto. @c
8195 * event_info is the gengrid item that was created. The object
8196 * may be deleted at any time, so it is highly advised to the
8197 * caller @b not to use the object pointer returned from
8198 * elm_gengrid_item_object_get(), because it may point to freed
8200 * - @c "unrealized" - This is called when the implementing Evas
8201 * object for this item is deleted. @c event_info is the gengrid
8202 * item that was deleted.
8203 * - @c "changed" - Called when an item is added, removed, resized
8204 * or moved and when the gengrid is resized or gets "horizontal"
8206 * - @c "scroll,anim,start" - This is called when scrolling animation has
8208 * - @c "scroll,anim,stop" - This is called when scrolling animation has
8210 * - @c "drag,start,up" - Called when the item in the gengrid has
8211 * been dragged (not scrolled) up.
8212 * - @c "drag,start,down" - Called when the item in the gengrid has
8213 * been dragged (not scrolled) down.
8214 * - @c "drag,start,left" - Called when the item in the gengrid has
8215 * been dragged (not scrolled) left.
8216 * - @c "drag,start,right" - Called when the item in the gengrid has
8217 * been dragged (not scrolled) right.
8218 * - @c "drag,stop" - Called when the item in the gengrid has
8219 * stopped being dragged.
8220 * - @c "drag" - Called when the item in the gengrid is being
8222 * - @c "scroll" - called when the content has been scrolled
8224 * - @c "scroll,drag,start" - called when dragging the content has
8226 * - @c "scroll,drag,stop" - called when dragging the content has
8228 * - @c "edge,top" - This is called when the gengrid is scrolled until
8230 * - @c "edge,bottom" - This is called when the gengrid is scrolled
8231 * until the bottom edge.
8232 * - @c "edge,left" - This is called when the gengrid is scrolled
8233 * until the left edge.
8234 * - @c "edge,right" - This is called when the gengrid is scrolled
8235 * until the right edge.
8237 * List of gengrid examples:
8238 * @li @ref gengrid_example
8242 * @addtogroup Gengrid
8246 typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8247 #define Elm_Gengrid_Item_Class Elm_Gen_Item_Class
8248 typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8249 #define Elm_Gengrid_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
8250 typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8252 * Label fetching class function for Elm_Gen_Item_Class.
8253 * @param data The data passed in the item creation function
8254 * @param obj The base widget object
8255 * @param part The part name of the swallow
8256 * @return The allocated (NOT stringshared) string to set as the label
8258 typedef char *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8260 * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
8261 * @param data The data passed in the item creation function
8262 * @param obj The base widget object
8263 * @param part The part name of the swallow
8264 * @return The content object to swallow
8266 typedef Evas_Object *(*Elm_Gengrid_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8268 * State fetching class function for Elm_Gen_Item_Class.
8269 * @param data The data passed in the item creation function
8270 * @param obj The base widget object
8271 * @param part The part name of the swallow
8272 * @return The hell if I know
8274 typedef Eina_Bool (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8276 * Deletion class function for Elm_Gen_Item_Class.
8277 * @param data The data passed in the item creation function
8278 * @param obj The base widget object
8280 typedef void (*Elm_Gengrid_Item_Del_Cb) (void *data, Evas_Object *obj);
8283 * @struct _Elm_Gengrid_Item_Class
8285 * Gengrid item class definition. See @ref Gengrid_Item_Class for
8288 struct _Elm_Gengrid_Item_Class
8290 const char *item_style;
8291 struct _Elm_Gengrid_Item_Class_Func
8293 Elm_Gengrid_Item_Label_Get_Cb label_get;
8294 Elm_Gengrid_Item_Content_Get_Cb content_get;
8295 Elm_Gengrid_Item_State_Get_Cb state_get;
8296 Elm_Gengrid_Item_Del_Cb del;
8298 }; /**< #Elm_Gengrid_Item_Class member definitions */
8299 #define Elm_Gengrid_Item_Class_Func Elm_Gen_Item_Class_Func
8301 * Add a new gengrid widget to the given parent Elementary
8302 * (container) object
8304 * @param parent The parent object
8305 * @return a new gengrid widget handle or @c NULL, on errors
8307 * This function inserts a new gengrid widget on the canvas.
8309 * @see elm_gengrid_item_size_set()
8310 * @see elm_gengrid_group_item_size_set()
8311 * @see elm_gengrid_horizontal_set()
8312 * @see elm_gengrid_item_append()
8313 * @see elm_gengrid_item_del()
8314 * @see elm_gengrid_clear()
8318 EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8321 * Set the size for the items of a given gengrid widget
8323 * @param obj The gengrid object.
8324 * @param w The items' width.
8325 * @param h The items' height;
8327 * A gengrid, after creation, has still no information on the size
8328 * to give to each of its cells. So, you most probably will end up
8329 * with squares one @ref Fingers "finger" wide, the default
8330 * size. Use this function to force a custom size for you items,
8331 * making them as big as you wish.
8333 * @see elm_gengrid_item_size_get()
8337 EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8340 * Get the size set for the items of a given gengrid widget
8342 * @param obj The gengrid object.
8343 * @param w Pointer to a variable where to store the items' width.
8344 * @param h Pointer to a variable where to store the items' height.
8346 * @note Use @c NULL pointers on the size values you're not
8347 * interested in: they'll be ignored by the function.
8349 * @see elm_gengrid_item_size_get() for more details
8353 EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8356 * Set the size for the group items of a given gengrid widget
8358 * @param obj The gengrid object.
8359 * @param w The group items' width.
8360 * @param h The group items' height;
8362 * A gengrid, after creation, has still no information on the size
8363 * to give to each of its cells. So, you most probably will end up
8364 * with squares one @ref Fingers "finger" wide, the default
8365 * size. Use this function to force a custom size for you group items,
8366 * making them as big as you wish.
8368 * @see elm_gengrid_group_item_size_get()
8372 EAPI void elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8375 * Get the size set for the group items of a given gengrid widget
8377 * @param obj The gengrid object.
8378 * @param w Pointer to a variable where to store the group items' width.
8379 * @param h Pointer to a variable where to store the group items' height.
8381 * @note Use @c NULL pointers on the size values you're not
8382 * interested in: they'll be ignored by the function.
8384 * @see elm_gengrid_group_item_size_get() for more details
8388 EAPI void elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8391 * Set the items grid's alignment within a given gengrid widget
8393 * @param obj The gengrid object.
8394 * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8395 * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8397 * This sets the alignment of the whole grid of items of a gengrid
8398 * within its given viewport. By default, those values are both
8399 * 0.5, meaning that the gengrid will have its items grid placed
8400 * exactly in the middle of its viewport.
8402 * @note If given alignment values are out of the cited ranges,
8403 * they'll be changed to the nearest boundary values on the valid
8406 * @see elm_gengrid_align_get()
8410 EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8413 * Get the items grid's alignment values within a given gengrid
8416 * @param obj The gengrid object.
8417 * @param align_x Pointer to a variable where to store the
8418 * horizontal alignment.
8419 * @param align_y Pointer to a variable where to store the vertical
8422 * @note Use @c NULL pointers on the alignment values you're not
8423 * interested in: they'll be ignored by the function.
8425 * @see elm_gengrid_align_set() for more details
8429 EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8432 * Set whether a given gengrid widget is or not able have items
8435 * @param obj The gengrid object
8436 * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8437 * @c EINA_FALSE to turn it off
8439 * If a gengrid is set to allow reordering, a click held for more
8440 * than 0.5 over a given item will highlight it specially,
8441 * signalling the gengrid has entered the reordering state. From
8442 * that time on, the user will be able to, while still holding the
8443 * mouse button down, move the item freely in the gengrid's
8444 * viewport, replacing to said item to the locations it goes to.
8445 * The replacements will be animated and, whenever the user
8446 * releases the mouse button, the item being replaced gets a new
8447 * definitive place in the grid.
8449 * @see elm_gengrid_reorder_mode_get()
8453 EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8456 * Get whether a given gengrid widget is or not able have items
8459 * @param obj The gengrid object
8460 * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8463 * @see elm_gengrid_reorder_mode_set() for more details
8467 EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8470 * Append a new item in a given gengrid widget.
8472 * @param obj The gengrid object.
8473 * @param gic The item class for the item.
8474 * @param data The item data.
8475 * @param func Convenience function called when the item is
8477 * @param func_data Data to be passed to @p func.
8478 * @return A handle to the item added or @c NULL, on errors.
8480 * This adds an item to the beginning of the gengrid.
8482 * @see elm_gengrid_item_prepend()
8483 * @see elm_gengrid_item_insert_before()
8484 * @see elm_gengrid_item_insert_after()
8485 * @see elm_gengrid_item_del()
8489 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);
8492 * Prepend a new item in a given gengrid widget.
8494 * @param obj The gengrid object.
8495 * @param gic The item class for the item.
8496 * @param data The item data.
8497 * @param func Convenience function called when the item is
8499 * @param func_data Data to be passed to @p func.
8500 * @return A handle to the item added or @c NULL, on errors.
8502 * This adds an item to the end of the gengrid.
8504 * @see elm_gengrid_item_append()
8505 * @see elm_gengrid_item_insert_before()
8506 * @see elm_gengrid_item_insert_after()
8507 * @see elm_gengrid_item_del()
8511 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);
8514 * Insert an item before another in a gengrid widget
8516 * @param obj The gengrid object.
8517 * @param gic The item class for the item.
8518 * @param data The item data.
8519 * @param relative The item to place this new one before.
8520 * @param func Convenience function called when the item is
8522 * @param func_data Data to be passed to @p func.
8523 * @return A handle to the item added or @c NULL, on errors.
8525 * This inserts an item before another in the gengrid.
8527 * @see elm_gengrid_item_append()
8528 * @see elm_gengrid_item_prepend()
8529 * @see elm_gengrid_item_insert_after()
8530 * @see elm_gengrid_item_del()
8534 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);
8537 * Insert an item after another in a gengrid widget
8539 * @param obj The gengrid object.
8540 * @param gic The item class for the item.
8541 * @param data The item data.
8542 * @param relative The item to place this new one after.
8543 * @param func Convenience function called when the item is
8545 * @param func_data Data to be passed to @p func.
8546 * @return A handle to the item added or @c NULL, on errors.
8548 * This inserts an item after another in the gengrid.
8550 * @see elm_gengrid_item_append()
8551 * @see elm_gengrid_item_prepend()
8552 * @see elm_gengrid_item_insert_after()
8553 * @see elm_gengrid_item_del()
8557 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);
8560 * Insert an item in a gengrid widget using a user-defined sort function.
8562 * @param obj The gengrid object.
8563 * @param gic The item class for the item.
8564 * @param data The item data.
8565 * @param comp User defined comparison function that defines the sort order based on
8566 * Elm_Gen_Item and its data param.
8567 * @param func Convenience function called when the item is selected.
8568 * @param func_data Data to be passed to @p func.
8569 * @return A handle to the item added or @c NULL, on errors.
8571 * This inserts an item in the gengrid based on user defined comparison function.
8573 * @see elm_gengrid_item_append()
8574 * @see elm_gengrid_item_prepend()
8575 * @see elm_gengrid_item_insert_after()
8576 * @see elm_gengrid_item_del()
8577 * @see elm_gengrid_item_direct_sorted_insert()
8581 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);
8584 * Insert an item in a gengrid widget using a user-defined sort function.
8586 * @param obj The gengrid object.
8587 * @param gic The item class for the item.
8588 * @param data The item data.
8589 * @param comp User defined comparison function that defines the sort order based on
8591 * @param func Convenience function called when the item is selected.
8592 * @param func_data Data to be passed to @p func.
8593 * @return A handle to the item added or @c NULL, on errors.
8595 * This inserts an item in the gengrid based on user defined comparison function.
8597 * @see elm_gengrid_item_append()
8598 * @see elm_gengrid_item_prepend()
8599 * @see elm_gengrid_item_insert_after()
8600 * @see elm_gengrid_item_del()
8601 * @see elm_gengrid_item_sorted_insert()
8605 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);
8608 * Set whether items on a given gengrid widget are to get their
8609 * selection callbacks issued for @b every subsequent selection
8610 * click on them or just for the first click.
8612 * @param obj The gengrid object
8613 * @param always_select @c EINA_TRUE to make items "always
8614 * selected", @c EINA_FALSE, otherwise
8616 * By default, grid items will only call their selection callback
8617 * function when firstly getting selected, any subsequent further
8618 * clicks will do nothing. With this call, you make those
8619 * subsequent clicks also to issue the selection callbacks.
8621 * @note <b>Double clicks</b> will @b always be reported on items.
8623 * @see elm_gengrid_always_select_mode_get()
8627 EINA_DEPRECATED EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8630 * Get whether items on a given gengrid widget have their selection
8631 * callbacks issued for @b every subsequent selection click on them
8632 * or just for the first click.
8634 * @param obj The gengrid object.
8635 * @return @c EINA_TRUE if the gengrid items are "always selected",
8636 * @c EINA_FALSE, otherwise
8638 * @see elm_gengrid_always_select_mode_set() for more details
8642 EINA_DEPRECATED EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8645 * Set whether items on a given gengrid widget can be selected or not.
8647 * @param obj The gengrid object
8648 * @param no_select @c EINA_TRUE to make items selectable,
8649 * @c EINA_FALSE otherwise
8651 * This will make items in @p obj selectable or not. In the latter
8652 * case, any user interaction on the gengrid items will neither make
8653 * them appear selected nor them call their selection callback
8656 * @see elm_gengrid_no_select_mode_get()
8660 EINA_DEPRECATED EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8663 * Get whether items on a given gengrid widget can be selected or
8666 * @param obj The gengrid object
8667 * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8670 * @see elm_gengrid_no_select_mode_set() for more details
8674 EINA_DEPRECATED EAPI Eina_Bool elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8677 * Enable or disable multi-selection in a given gengrid widget
8679 * @param obj The gengrid object.
8680 * @param multi @c EINA_TRUE, to enable multi-selection,
8681 * @c EINA_FALSE to disable it.
8683 * Multi-selection is the ability to have @b more than one
8684 * item selected, on a given gengrid, simultaneously. When it is
8685 * enabled, a sequence of clicks on different items will make them
8686 * all selected, progressively. A click on an already selected item
8687 * will unselect it. If interacting via the keyboard,
8688 * multi-selection is enabled while holding the "Shift" key.
8690 * @note By default, multi-selection is @b disabled on gengrids
8692 * @see elm_gengrid_multi_select_get()
8696 EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8699 * Get whether multi-selection is enabled or disabled for a given
8702 * @param obj The gengrid object.
8703 * @return @c EINA_TRUE, if multi-selection is enabled, @c
8704 * EINA_FALSE otherwise
8706 * @see elm_gengrid_multi_select_set() for more details
8710 EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8713 * Enable or disable bouncing effect for a given gengrid widget
8715 * @param obj The gengrid object
8716 * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8717 * @c EINA_FALSE to disable it
8718 * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8719 * @c EINA_FALSE to disable it
8721 * The bouncing effect occurs whenever one reaches the gengrid's
8722 * edge's while panning it -- it will scroll past its limits a
8723 * little bit and return to the edge again, in a animated for,
8726 * @note By default, gengrids have bouncing enabled on both axis
8728 * @see elm_gengrid_bounce_get()
8732 EINA_DEPRECATED EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8735 * Get whether bouncing effects are enabled or disabled, for a
8736 * given gengrid widget, on each axis
8738 * @param obj The gengrid object
8739 * @param h_bounce Pointer to a variable where to store the
8740 * horizontal bouncing flag.
8741 * @param v_bounce Pointer to a variable where to store the
8742 * vertical bouncing flag.
8744 * @see elm_gengrid_bounce_set() for more details
8748 EINA_DEPRECATED EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8751 * Set a given gengrid widget's scrolling page size, relative to
8752 * its viewport size.
8754 * @param obj The gengrid object
8755 * @param h_pagerel The horizontal page (relative) size
8756 * @param v_pagerel The vertical page (relative) size
8758 * The gengrid's scroller is capable of binding scrolling by the
8759 * user to "pages". It means that, while scrolling and, specially
8760 * after releasing the mouse button, the grid will @b snap to the
8761 * nearest displaying page's area. When page sizes are set, the
8762 * grid's continuous content area is split into (equal) page sized
8765 * This function sets the size of a page <b>relatively to the
8766 * viewport dimensions</b> of the gengrid, for each axis. A value
8767 * @c 1.0 means "the exact viewport's size", in that axis, while @c
8768 * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8769 * a viewport". Sane usable values are, than, between @c 0.0 and @c
8770 * 1.0. Values beyond those will make it behave behave
8771 * inconsistently. If you only want one axis to snap to pages, use
8772 * the value @c 0.0 for the other one.
8774 * There is a function setting page size values in @b absolute
8775 * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8776 * is mutually exclusive to this one.
8778 * @see elm_gengrid_page_relative_get()
8782 EINA_DEPRECATED EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8785 * Get a given gengrid widget's scrolling page size, relative to
8786 * its viewport size.
8788 * @param obj The gengrid object
8789 * @param h_pagerel Pointer to a variable where to store the
8790 * horizontal page (relative) size
8791 * @param v_pagerel Pointer to a variable where to store the
8792 * vertical page (relative) size
8794 * @see elm_gengrid_page_relative_set() for more details
8798 EINA_DEPRECATED EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8801 * Set a given gengrid widget's scrolling page size
8803 * @param obj The gengrid object
8804 * @param h_pagerel The horizontal page size, in pixels
8805 * @param v_pagerel The vertical page size, in pixels
8807 * The gengrid's scroller is capable of binding scrolling by the
8808 * user to "pages". It means that, while scrolling and, specially
8809 * after releasing the mouse button, the grid will @b snap to the
8810 * nearest displaying page's area. When page sizes are set, the
8811 * grid's continuous content area is split into (equal) page sized
8814 * This function sets the size of a page of the gengrid, in pixels,
8815 * for each axis. Sane usable values are, between @c 0 and the
8816 * dimensions of @p obj, for each axis. Values beyond those will
8817 * make it behave behave inconsistently. If you only want one axis
8818 * to snap to pages, use the value @c 0 for the other one.
8820 * There is a function setting page size values in @b relative
8821 * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8822 * use is mutually exclusive to this one.
8826 EINA_DEPRECATED EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8829 * @brief Get gengrid current page number.
8831 * @param obj The gengrid object
8832 * @param h_pagenumber The horizontal page number
8833 * @param v_pagenumber The vertical page number
8835 * The page number starts from 0. 0 is the first page.
8836 * Current page means the page which meet the top-left of the viewport.
8837 * If there are two or more pages in the viewport, it returns the number of page
8838 * which meet the top-left of the viewport.
8840 * @see elm_gengrid_last_page_get()
8841 * @see elm_gengrid_page_show()
8842 * @see elm_gengrid_page_brint_in()
8844 EINA_DEPRECATED EAPI void elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8847 * @brief Get scroll last page number.
8849 * @param obj The gengrid object
8850 * @param h_pagenumber The horizontal page number
8851 * @param v_pagenumber The vertical page number
8853 * The page number starts from 0. 0 is the first page.
8854 * This returns the last page number among the pages.
8856 * @see elm_gengrid_current_page_get()
8857 * @see elm_gengrid_page_show()
8858 * @see elm_gengrid_page_brint_in()
8860 EINA_DEPRECATED EAPI void elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8863 * Show a specific virtual region within the gengrid content object by page number.
8865 * @param obj The gengrid object
8866 * @param h_pagenumber The horizontal page number
8867 * @param v_pagenumber The vertical page number
8869 * 0, 0 of the indicated page is located at the top-left of the viewport.
8870 * This will jump to the page directly without animation.
8875 * sc = elm_gengrid_add(win);
8876 * elm_gengrid_content_set(sc, content);
8877 * elm_gengrid_page_relative_set(sc, 1, 0);
8878 * elm_gengrid_current_page_get(sc, &h_page, &v_page);
8879 * elm_gengrid_page_show(sc, h_page + 1, v_page);
8882 * @see elm_gengrid_page_bring_in()
8884 EINA_DEPRECATED EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8887 * Show a specific virtual region within the gengrid content object by page number.
8889 * @param obj The gengrid object
8890 * @param h_pagenumber The horizontal page number
8891 * @param v_pagenumber The vertical page number
8893 * 0, 0 of the indicated page is located at the top-left of the viewport.
8894 * This will slide to the page with animation.
8899 * sc = elm_gengrid_add(win);
8900 * elm_gengrid_content_set(sc, content);
8901 * elm_gengrid_page_relative_set(sc, 1, 0);
8902 * elm_gengrid_last_page_get(sc, &h_page, &v_page);
8903 * elm_gengrid_page_bring_in(sc, h_page, v_page);
8906 * @see elm_gengrid_page_show()
8908 EINA_DEPRECATED EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8911 * Set the direction in which a given gengrid widget will expand while
8912 * placing its items.
8914 * @param obj The gengrid object.
8915 * @param setting @c EINA_TRUE to make the gengrid expand
8916 * horizontally, @c EINA_FALSE to expand vertically.
8918 * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8919 * in @b columns, from top to bottom and, when the space for a
8920 * column is filled, another one is started on the right, thus
8921 * expanding the grid horizontally. When in "vertical mode"
8922 * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8923 * to right and, when the space for a row is filled, another one is
8924 * started below, thus expanding the grid vertically.
8926 * @see elm_gengrid_horizontal_get()
8930 EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8933 * Get for what direction a given gengrid widget will expand while
8934 * placing its items.
8936 * @param obj The gengrid object.
8937 * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8938 * @c EINA_FALSE if it's set to expand vertically.
8940 * @see elm_gengrid_horizontal_set() for more detais
8944 EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8947 * Get the first item in a given gengrid widget
8949 * @param obj The gengrid object
8950 * @return The first item's handle or @c NULL, if there are no
8951 * items in @p obj (and on errors)
8953 * This returns the first item in the @p obj's internal list of
8956 * @see elm_gengrid_last_item_get()
8960 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8963 * Get the last item in a given gengrid widget
8965 * @param obj The gengrid object
8966 * @return The last item's handle or @c NULL, if there are no
8967 * items in @p obj (and on errors)
8969 * This returns the last item in the @p obj's internal list of
8972 * @see elm_gengrid_first_item_get()
8976 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8979 * Get the @b next item in a gengrid widget's internal list of items,
8980 * given a handle to one of those items.
8982 * @param item The gengrid item to fetch next from
8983 * @return The item after @p item, or @c NULL if there's none (and
8986 * This returns the item placed after the @p item, on the container
8989 * @see elm_gengrid_item_prev_get()
8993 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8996 * Get the @b previous item in a gengrid widget's internal list of items,
8997 * given a handle to one of those items.
8999 * @param item The gengrid item to fetch previous from
9000 * @return The item before @p item, or @c NULL if there's none (and
9003 * This returns the item placed before the @p item, on the container
9006 * @see elm_gengrid_item_next_get()
9010 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9013 * Get the gengrid object's handle which contains a given gengrid
9016 * @param item The item to fetch the container from
9017 * @return The gengrid (parent) object
9019 * This returns the gengrid object itself that an item belongs to.
9023 EINA_DEPRECATED EAPI Evas_Object *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9026 * Remove a gengrid item from its parent, deleting it.
9028 * @param item The item to be removed.
9029 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
9031 * @see elm_gengrid_clear(), to remove all items in a gengrid at
9036 EAPI void elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9039 * Update the contents of a given gengrid item
9041 * @param item The gengrid item
9043 * This updates an item by calling all the item class functions
9044 * again to get the contents, labels and states. Use this when the
9045 * original item data has changed and you want the changes to be
9050 EAPI void elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9053 * Get the Gengrid Item class for the given Gengrid Item.
9055 * @param item The gengrid item
9057 * This returns the Gengrid_Item_Class for the given item. It can be used to examine
9058 * the function pointers and item_style.
9062 EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9065 * Get the Gengrid Item class for the given Gengrid Item.
9067 * This sets the Gengrid_Item_Class for the given item. It can be used to examine
9068 * the function pointers and item_style.
9070 * @param item The gengrid item
9071 * @param gic The gengrid item class describing the function pointers and the item style.
9075 EAPI void elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
9078 * Return the data associated to a given gengrid item
9080 * @param item The gengrid item.
9081 * @return the data associated with this item.
9083 * This returns the @c data value passed on the
9084 * elm_gengrid_item_append() and related item addition calls.
9086 * @see elm_gengrid_item_append()
9087 * @see elm_gengrid_item_data_set()
9091 EAPI void *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9094 * Set the data associated with a given gengrid item
9096 * @param item The gengrid item
9097 * @param data The data pointer to set on it
9099 * This @b overrides the @c data value passed on the
9100 * elm_gengrid_item_append() and related item addition calls. This
9101 * function @b won't call elm_gengrid_item_update() automatically,
9102 * so you'd issue it afterwards if you want to have the item
9103 * updated to reflect the new data.
9105 * @see elm_gengrid_item_data_get()
9106 * @see elm_gengrid_item_update()
9110 EAPI void elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
9113 * Get a given gengrid item's position, relative to the whole
9114 * gengrid's grid area.
9116 * @param item The Gengrid item.
9117 * @param x Pointer to variable to store the item's <b>row number</b>.
9118 * @param y Pointer to variable to store the item's <b>column number</b>.
9120 * This returns the "logical" position of the item within the
9121 * gengrid. For example, @c (0, 1) would stand for first row,
9126 EAPI void elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
9129 * Set whether a given gengrid item is selected or not
9131 * @param item The gengrid item
9132 * @param selected Use @c EINA_TRUE, to make it selected, @c
9133 * EINA_FALSE to make it unselected
9135 * This sets the selected state of an item. If multi-selection is
9136 * not enabled on the containing gengrid and @p selected is @c
9137 * EINA_TRUE, any other previously selected items will get
9138 * unselected in favor of this new one.
9140 * @see elm_gengrid_item_selected_get()
9144 EINA_DEPRECATED EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
9147 * Get whether a given gengrid item is selected or not
9149 * @param item The gengrid item
9150 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
9152 * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
9154 * @see elm_gengrid_item_selected_set() for more details
9158 EINA_DEPRECATED EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9161 * Get the real Evas object created to implement the view of a
9162 * given gengrid item
9164 * @param item The gengrid item.
9165 * @return the Evas object implementing this item's view.
9167 * This returns the actual Evas object used to implement the
9168 * specified gengrid item's view. This may be @c NULL, as it may
9169 * not have been created or may have been deleted, at any time, by
9170 * the gengrid. <b>Do not modify this object</b> (move, resize,
9171 * show, hide, etc.), as the gengrid is controlling it. This
9172 * function is for querying, emitting custom signals or hooking
9173 * lower level callbacks for events on that object. Do not delete
9174 * this object under any circumstances.
9176 * @see elm_gengrid_item_data_get()
9180 EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9183 * Show the portion of a gengrid's internal grid containing a given
9184 * item, @b immediately.
9186 * @param item The item to display
9188 * This causes gengrid to @b redraw its viewport's contents to the
9189 * region contining the given @p item item, if it is not fully
9192 * @see elm_gengrid_item_bring_in()
9196 EAPI void elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9199 * Animatedly bring in, to the visible area of a gengrid, a given
9202 * @param item The gengrid item to display
9204 * This causes gengrid to jump to the given @p item and show
9205 * it (by scrolling), if it is not fully visible. This will use
9206 * animation to do so and take a period of time to complete.
9208 * @see elm_gengrid_item_show()
9212 EAPI void elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9215 * Set whether a given gengrid item is disabled or not.
9217 * @param item The gengrid item
9218 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
9219 * to enable it back.
9221 * A disabled item cannot be selected or unselected. It will also
9222 * change its appearance, to signal the user it's disabled.
9224 * @see elm_gengrid_item_disabled_get()
9228 EAPI void elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
9231 * Get whether a given gengrid item is disabled or not.
9233 * @param item The gengrid item
9234 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
9237 * @see elm_gengrid_item_disabled_set() for more details
9241 EAPI Eina_Bool elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9244 * Set the text to be shown in a given gengrid item's tooltips.
9246 * @param item The gengrid item
9247 * @param text The text to set in the content
9249 * This call will setup the text to be used as tooltip to that item
9250 * (analogous to elm_object_tooltip_text_set(), but being item
9251 * tooltips with higher precedence than object tooltips). It can
9252 * have only one tooltip at a time, so any previous tooltip data
9257 EAPI void elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
9260 * Set the content to be shown in a given gengrid item's tooltip
9262 * @param item The gengrid item.
9263 * @param func The function returning the tooltip contents.
9264 * @param data What to provide to @a func as callback data/context.
9265 * @param del_cb Called when data is not needed anymore, either when
9266 * another callback replaces @p func, the tooltip is unset with
9267 * elm_gengrid_item_tooltip_unset() or the owner @p item
9268 * dies. This callback receives as its first parameter the
9269 * given @p data, being @c event_info the item handle.
9271 * This call will setup the tooltip's contents to @p item
9272 * (analogous to elm_object_tooltip_content_cb_set(), but being
9273 * item tooltips with higher precedence than object tooltips). It
9274 * can have only one tooltip at a time, so any previous tooltip
9275 * content will get removed. @p func (with @p data) will be called
9276 * every time Elementary needs to show the tooltip and it should
9277 * return a valid Evas object, which will be fully managed by the
9278 * tooltip system, getting deleted when the tooltip is gone.
9282 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);
9285 * Unset a tooltip from a given gengrid item
9287 * @param item gengrid item to remove a previously set tooltip from.
9289 * This call removes any tooltip set on @p item. The callback
9290 * provided as @c del_cb to
9291 * elm_gengrid_item_tooltip_content_cb_set() will be called to
9292 * notify it is not used anymore (and have resources cleaned, if
9295 * @see elm_gengrid_item_tooltip_content_cb_set()
9299 EAPI void elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9302 * Set a different @b style for a given gengrid item's tooltip.
9304 * @param item gengrid item with tooltip set
9305 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
9306 * "default", @c "transparent", etc)
9308 * Tooltips can have <b>alternate styles</b> to be displayed on,
9309 * which are defined by the theme set on Elementary. This function
9310 * works analogously as elm_object_tooltip_style_set(), but here
9311 * applied only to gengrid item objects. The default style for
9312 * tooltips is @c "default".
9314 * @note before you set a style you should define a tooltip with
9315 * elm_gengrid_item_tooltip_content_cb_set() or
9316 * elm_gengrid_item_tooltip_text_set()
9318 * @see elm_gengrid_item_tooltip_style_get()
9322 EAPI void elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9325 * Get the style set a given gengrid item's tooltip.
9327 * @param item gengrid item with tooltip already set on.
9328 * @return style the theme style in use, which defaults to
9329 * "default". If the object does not have a tooltip set,
9330 * then @c NULL is returned.
9332 * @see elm_gengrid_item_tooltip_style_set() for more details
9336 EAPI const char *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9338 * @brief Disable size restrictions on an object's tooltip
9339 * @param item The tooltip's anchor object
9340 * @param disable If EINA_TRUE, size restrictions are disabled
9341 * @return EINA_FALSE on failure, EINA_TRUE on success
9343 * This function allows a tooltip to expand beyond its parant window's canvas.
9344 * It will instead be limited only by the size of the display.
9346 EAPI Eina_Bool elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
9348 * @brief Retrieve size restriction state of an object's tooltip
9349 * @param item The tooltip's anchor object
9350 * @return If EINA_TRUE, size restrictions are disabled
9352 * This function returns whether a tooltip is allowed to expand beyond
9353 * its parant window's canvas.
9354 * It will instead be limited only by the size of the display.
9356 EAPI Eina_Bool elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
9358 * Set the type of mouse pointer/cursor decoration to be shown,
9359 * when the mouse pointer is over the given gengrid widget item
9361 * @param item gengrid item to customize cursor on
9362 * @param cursor the cursor type's name
9364 * This function works analogously as elm_object_cursor_set(), but
9365 * here the cursor's changing area is restricted to the item's
9366 * area, and not the whole widget's. Note that that item cursors
9367 * have precedence over widget cursors, so that a mouse over @p
9368 * item will always show cursor @p type.
9370 * If this function is called twice for an object, a previously set
9371 * cursor will be unset on the second call.
9373 * @see elm_object_cursor_set()
9374 * @see elm_gengrid_item_cursor_get()
9375 * @see elm_gengrid_item_cursor_unset()
9379 EAPI void elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
9382 * Get the type of mouse pointer/cursor decoration set to be shown,
9383 * when the mouse pointer is over the given gengrid widget item
9385 * @param item gengrid item with custom cursor set
9386 * @return the cursor type's name or @c NULL, if no custom cursors
9387 * were set to @p item (and on errors)
9389 * @see elm_object_cursor_get()
9390 * @see elm_gengrid_item_cursor_set() for more details
9391 * @see elm_gengrid_item_cursor_unset()
9395 EAPI const char *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9398 * Unset any custom mouse pointer/cursor decoration set to be
9399 * shown, when the mouse pointer is over the given gengrid widget
9400 * item, thus making it show the @b default cursor again.
9402 * @param item a gengrid item
9404 * Use this call to undo any custom settings on this item's cursor
9405 * decoration, bringing it back to defaults (no custom style set).
9407 * @see elm_object_cursor_unset()
9408 * @see elm_gengrid_item_cursor_set() for more details
9412 EAPI void elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9415 * Set a different @b style for a given custom cursor set for a
9418 * @param item gengrid item with custom cursor set
9419 * @param style the <b>theme style</b> to use (e.g. @c "default",
9420 * @c "transparent", etc)
9422 * This function only makes sense when one is using custom mouse
9423 * cursor decorations <b>defined in a theme file</b> , which can
9424 * have, given a cursor name/type, <b>alternate styles</b> on
9425 * it. It works analogously as elm_object_cursor_style_set(), but
9426 * here applied only to gengrid item objects.
9428 * @warning Before you set a cursor style you should have defined a
9429 * custom cursor previously on the item, with
9430 * elm_gengrid_item_cursor_set()
9432 * @see elm_gengrid_item_cursor_engine_only_set()
9433 * @see elm_gengrid_item_cursor_style_get()
9437 EAPI void elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9440 * Get the current @b style set for a given gengrid item's custom
9443 * @param item gengrid item with custom cursor set.
9444 * @return style the cursor style in use. If the object does not
9445 * have a cursor set, then @c NULL is returned.
9447 * @see elm_gengrid_item_cursor_style_set() for more details
9451 EAPI const char *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9454 * Set if the (custom) cursor for a given gengrid item should be
9455 * searched in its theme, also, or should only rely on the
9458 * @param item item with custom (custom) cursor already set on
9459 * @param engine_only Use @c EINA_TRUE to have cursors looked for
9460 * only on those provided by the rendering engine, @c EINA_FALSE to
9461 * have them searched on the widget's theme, as well.
9463 * @note This call is of use only if you've set a custom cursor
9464 * for gengrid items, with elm_gengrid_item_cursor_set().
9466 * @note By default, cursors will only be looked for between those
9467 * provided by the rendering engine.
9471 EAPI void elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
9474 * Get if the (custom) cursor for a given gengrid item is being
9475 * searched in its theme, also, or is only relying on the rendering
9478 * @param item a gengrid item
9479 * @return @c EINA_TRUE, if cursors are being looked for only on
9480 * those provided by the rendering engine, @c EINA_FALSE if they
9481 * are being searched on the widget's theme, as well.
9483 * @see elm_gengrid_item_cursor_engine_only_set(), for more details
9487 EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9490 * Remove all items from a given gengrid widget
9492 * @param obj The gengrid object.
9494 * This removes (and deletes) all items in @p obj, leaving it
9497 * @see elm_gengrid_item_del(), to remove just one item.
9501 EINA_DEPRECATED EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9504 * Get the selected item in a given gengrid widget
9506 * @param obj The gengrid object.
9507 * @return The selected item's handleor @c NULL, if none is
9508 * selected at the moment (and on errors)
9510 * This returns the selected item in @p obj. If multi selection is
9511 * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
9512 * the first item in the list is selected, which might not be very
9513 * useful. For that case, see elm_gengrid_selected_items_get().
9517 EAPI Elm_Gengrid_Item *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9520 * Get <b>a list</b> of selected items in a given gengrid
9522 * @param obj The gengrid object.
9523 * @return The list of selected items or @c NULL, if none is
9524 * selected at the moment (and on errors)
9526 * This returns a list of the selected items, in the order that
9527 * they appear in the grid. This list is only valid as long as no
9528 * more items are selected or unselected (or unselected implictly
9529 * by deletion). The list contains #Elm_Gengrid_Item pointers as
9532 * @see elm_gengrid_selected_item_get()
9536 EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9543 * @defgroup Clock Clock
9545 * @image html img/widget/clock/preview-00.png
9546 * @image latex img/widget/clock/preview-00.eps
9548 * This is a @b digital clock widget. In its default theme, it has a
9549 * vintage "flipping numbers clock" appearance, which will animate
9550 * sheets of individual algarisms individually as time goes by.
9552 * A newly created clock will fetch system's time (already
9553 * considering local time adjustments) to start with, and will tick
9554 * accondingly. It may or may not show seconds.
9556 * Clocks have an @b edition mode. When in it, the sheets will
9557 * display extra arrow indications on the top and bottom and the
9558 * user may click on them to raise or lower the time values. After
9559 * it's told to exit edition mode, it will keep ticking with that
9560 * new time set (it keeps the difference from local time).
9562 * Also, when under edition mode, user clicks on the cited arrows
9563 * which are @b held for some time will make the clock to flip the
9564 * sheet, thus editing the time, continuosly and automatically for
9565 * the user. The interval between sheet flips will keep growing in
9566 * time, so that it helps the user to reach a time which is distant
9569 * The time display is, by default, in military mode (24h), but an
9570 * am/pm indicator may be optionally shown, too, when it will
9573 * Smart callbacks one can register to:
9574 * - "changed" - the clock's user changed the time
9576 * Here is an example on its usage:
9577 * @li @ref clock_example
9586 * Identifiers for which clock digits should be editable, when a
9587 * clock widget is in edition mode. Values may be ORed together to
9588 * make a mask, naturally.
9590 * @see elm_clock_edit_set()
9591 * @see elm_clock_digit_edit_set()
9593 typedef enum _Elm_Clock_Digedit
9595 ELM_CLOCK_NONE = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9596 ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9597 ELM_CLOCK_HOUR_UNIT = 1 << 1, /**< Unit algarism of hours value should be editable */
9598 ELM_CLOCK_MIN_DECIMAL = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9599 ELM_CLOCK_MIN_UNIT = 1 << 3, /**< Unit algarism of minutes value should be editable */
9600 ELM_CLOCK_SEC_DECIMAL = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9601 ELM_CLOCK_SEC_UNIT = 1 << 5, /**< Unit algarism of seconds value should be editable */
9602 ELM_CLOCK_ALL = (1 << 6) - 1 /**< All digits should be editable */
9603 } Elm_Clock_Digedit;
9606 * Add a new clock widget to the given parent Elementary
9607 * (container) object
9609 * @param parent The parent object
9610 * @return a new clock widget handle or @c NULL, on errors
9612 * This function inserts a new clock widget on the canvas.
9616 EAPI Evas_Object *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9619 * Set a clock widget's time, programmatically
9621 * @param obj The clock widget object
9622 * @param hrs The hours to set
9623 * @param min The minutes to set
9624 * @param sec The secondes to set
9626 * This function updates the time that is showed by the clock
9629 * Values @b must be set within the following ranges:
9630 * - 0 - 23, for hours
9631 * - 0 - 59, for minutes
9632 * - 0 - 59, for seconds,
9634 * even if the clock is not in "military" mode.
9636 * @warning The behavior for values set out of those ranges is @b
9641 EAPI void elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9644 * Get a clock widget's time values
9646 * @param obj The clock object
9647 * @param[out] hrs Pointer to the variable to get the hours value
9648 * @param[out] min Pointer to the variable to get the minutes value
9649 * @param[out] sec Pointer to the variable to get the seconds value
9651 * This function gets the time set for @p obj, returning
9652 * it on the variables passed as the arguments to function
9654 * @note Use @c NULL pointers on the time values you're not
9655 * interested in: they'll be ignored by the function.
9659 EAPI void elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9662 * Set whether a given clock widget is under <b>edition mode</b> or
9663 * under (default) displaying-only mode.
9665 * @param obj The clock object
9666 * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9667 * put it back to "displaying only" mode
9669 * This function makes a clock's time to be editable or not <b>by
9670 * user interaction</b>. When in edition mode, clocks @b stop
9671 * ticking, until one brings them back to canonical mode. The
9672 * elm_clock_digit_edit_set() function will influence which digits
9673 * of the clock will be editable. By default, all of them will be
9674 * (#ELM_CLOCK_NONE).
9676 * @note am/pm sheets, if being shown, will @b always be editable
9677 * under edition mode.
9679 * @see elm_clock_edit_get()
9683 EAPI void elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9686 * Retrieve whether a given clock widget is under <b>edition
9687 * mode</b> or under (default) displaying-only mode.
9689 * @param obj The clock object
9690 * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9693 * This function retrieves whether the clock's time can be edited
9694 * or not by user interaction.
9696 * @see elm_clock_edit_set() for more details
9700 EAPI Eina_Bool elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9703 * Set what digits of the given clock widget should be editable
9704 * when in edition mode.
9706 * @param obj The clock object
9707 * @param digedit Bit mask indicating the digits to be editable
9708 * (values in #Elm_Clock_Digedit).
9710 * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9711 * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9714 * @see elm_clock_digit_edit_get()
9718 EAPI void elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9721 * Retrieve what digits of the given clock widget should be
9722 * editable when in edition mode.
9724 * @param obj The clock object
9725 * @return Bit mask indicating the digits to be editable
9726 * (values in #Elm_Clock_Digedit).
9728 * @see elm_clock_digit_edit_set() for more details
9732 EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9735 * Set if the given clock widget must show hours in military or
9738 * @param obj The clock object
9739 * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9742 * This function sets if the clock must show hours in military or
9743 * am/pm mode. In some countries like Brazil the military mode
9744 * (00-24h-format) is used, in opposition to the USA, where the
9745 * am/pm mode is more commonly used.
9747 * @see elm_clock_show_am_pm_get()
9751 EAPI void elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9754 * Get if the given clock widget shows hours in military or am/pm
9757 * @param obj The clock object
9758 * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9761 * This function gets if the clock shows hours in military or am/pm
9764 * @see elm_clock_show_am_pm_set() for more details
9768 EAPI Eina_Bool elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9771 * Set if the given clock widget must show time with seconds or not
9773 * @param obj The clock object
9774 * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9776 * This function sets if the given clock must show or not elapsed
9777 * seconds. By default, they are @b not shown.
9779 * @see elm_clock_show_seconds_get()
9783 EAPI void elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9786 * Get whether the given clock widget is showing time with seconds
9789 * @param obj The clock object
9790 * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9792 * This function gets whether @p obj is showing or not the elapsed
9795 * @see elm_clock_show_seconds_set()
9799 EAPI Eina_Bool elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9802 * Set the interval on time updates for an user mouse button hold
9803 * on clock widgets' time edition.
9805 * @param obj The clock object
9806 * @param interval The (first) interval value in seconds
9808 * This interval value is @b decreased while the user holds the
9809 * mouse pointer either incrementing or decrementing a given the
9810 * clock digit's value.
9812 * This helps the user to get to a given time distant from the
9813 * current one easier/faster, as it will start to flip quicker and
9814 * quicker on mouse button holds.
9816 * The calculation for the next flip interval value, starting from
9817 * the one set with this call, is the previous interval divided by
9818 * 1.05, so it decreases a little bit.
9820 * The default starting interval value for automatic flips is
9823 * @see elm_clock_interval_get()
9827 EAPI void elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9830 * Get the interval on time updates for an user mouse button hold
9831 * on clock widgets' time edition.
9833 * @param obj The clock object
9834 * @return The (first) interval value, in seconds, set on it
9836 * @see elm_clock_interval_set() for more details
9840 EAPI double elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9847 * @defgroup Layout Layout
9849 * @image html img/widget/layout/preview-00.png
9850 * @image latex img/widget/layout/preview-00.eps width=\textwidth
9852 * @image html img/layout-predefined.png
9853 * @image latex img/layout-predefined.eps width=\textwidth
9855 * This is a container widget that takes a standard Edje design file and
9856 * wraps it very thinly in a widget.
9858 * An Edje design (theme) file has a very wide range of possibilities to
9859 * describe the behavior of elements added to the Layout. Check out the Edje
9860 * documentation and the EDC reference to get more information about what can
9861 * be done with Edje.
9863 * Just like @ref List, @ref Box, and other container widgets, any
9864 * object added to the Layout will become its child, meaning that it will be
9865 * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9867 * The Layout widget can contain as many Contents, Boxes or Tables as
9868 * described in its theme file. For instance, objects can be added to
9869 * different Tables by specifying the respective Table part names. The same
9870 * is valid for Content and Box.
9872 * The objects added as child of the Layout will behave as described in the
9873 * part description where they were added. There are 3 possible types of
9874 * parts where a child can be added:
9876 * @section secContent Content (SWALLOW part)
9878 * Only one object can be added to the @c SWALLOW part (but you still can
9879 * have many @c SWALLOW parts and one object on each of them). Use the @c
9880 * elm_object_content_set/get/unset functions to set, retrieve and unset
9881 * objects as content of the @c SWALLOW. After being set to this part, the
9882 * object size, position, visibility, clipping and other description
9883 * properties will be totally controled by the description of the given part
9884 * (inside the Edje theme file).
9886 * One can use @c evas_object_size_hint_* functions on the child to have some
9887 * kind of control over its behavior, but the resulting behavior will still
9888 * depend heavily on the @c SWALLOW part description.
9890 * The Edje theme also can change the part description, based on signals or
9891 * scripts running inside the theme. This change can also be animated. All of
9892 * this will affect the child object set as content accordingly. The object
9893 * size will be changed if the part size is changed, it will animate move if
9894 * the part is moving, and so on.
9896 * The following picture demonstrates a Layout widget with a child object
9897 * added to its @c SWALLOW:
9899 * @image html layout_swallow.png
9900 * @image latex layout_swallow.eps width=\textwidth
9902 * @section secBox Box (BOX part)
9904 * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9905 * allows one to add objects to the box and have them distributed along its
9906 * area, accordingly to the specified @a layout property (now by @a layout we
9907 * mean the chosen layouting design of the Box, not the Layout widget
9910 * A similar effect for having a box with its position, size and other things
9911 * controled by the Layout theme would be to create an Elementary @ref Box
9912 * widget and add it as a Content in the @c SWALLOW part.
9914 * The main difference of using the Layout Box is that its behavior, the box
9915 * properties like layouting format, padding, align, etc. will be all
9916 * controled by the theme. This means, for example, that a signal could be
9917 * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9918 * handled the signal by changing the box padding, or align, or both. Using
9919 * the Elementary @ref Box widget is not necessarily harder or easier, it
9920 * just depends on the circunstances and requirements.
9922 * The Layout Box can be used through the @c elm_layout_box_* set of
9925 * The following picture demonstrates a Layout widget with many child objects
9926 * added to its @c BOX part:
9928 * @image html layout_box.png
9929 * @image latex layout_box.eps width=\textwidth
9931 * @section secTable Table (TABLE part)
9933 * Just like the @ref secBox, the Layout Table is very similar to the
9934 * Elementary @ref Table widget. It allows one to add objects to the Table
9935 * specifying the row and column where the object should be added, and any
9936 * column or row span if necessary.
9938 * Again, we could have this design by adding a @ref Table widget to the @c
9939 * SWALLOW part using elm_object_part_content_set(). The same difference happens
9940 * here when choosing to use the Layout Table (a @c TABLE part) instead of
9941 * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9943 * The Layout Table can be used through the @c elm_layout_table_* set of
9946 * The following picture demonstrates a Layout widget with many child objects
9947 * added to its @c TABLE part:
9949 * @image html layout_table.png
9950 * @image latex layout_table.eps width=\textwidth
9952 * @section secPredef Predefined Layouts
9954 * Another interesting thing about the Layout widget is that it offers some
9955 * predefined themes that come with the default Elementary theme. These
9956 * themes can be set by the call elm_layout_theme_set(), and provide some
9957 * basic functionality depending on the theme used.
9959 * Most of them already send some signals, some already provide a toolbar or
9960 * back and next buttons.
9962 * These are available predefined theme layouts. All of them have class = @c
9963 * layout, group = @c application, and style = one of the following options:
9965 * @li @c toolbar-content - application with toolbar and main content area
9966 * @li @c toolbar-content-back - application with toolbar and main content
9967 * area with a back button and title area
9968 * @li @c toolbar-content-back-next - application with toolbar and main
9969 * content area with a back and next buttons and title area
9970 * @li @c content-back - application with a main content area with a back
9971 * button and title area
9972 * @li @c content-back-next - application with a main content area with a
9973 * back and next buttons and title area
9974 * @li @c toolbar-vbox - application with toolbar and main content area as a
9976 * @li @c toolbar-table - application with toolbar and main content area as a
9979 * @section secExamples Examples
9981 * Some examples of the Layout widget can be found here:
9982 * @li @ref layout_example_01
9983 * @li @ref layout_example_02
9984 * @li @ref layout_example_03
9985 * @li @ref layout_example_edc
9990 * Add a new layout to the parent
9992 * @param parent The parent object
9993 * @return The new object or NULL if it cannot be created
9995 * @see elm_layout_file_set()
9996 * @see elm_layout_theme_set()
10000 EAPI Evas_Object *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10002 * Set the file that will be used as layout
10004 * @param obj The layout object
10005 * @param file The path to file (edj) that will be used as layout
10006 * @param group The group that the layout belongs in edje file
10008 * @return (1 = success, 0 = error)
10012 EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
10014 * Set the edje group from the elementary theme that will be used as layout
10016 * @param obj The layout object
10017 * @param clas the clas of the group
10018 * @param group the group
10019 * @param style the style to used
10021 * @return (1 = success, 0 = error)
10025 EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
10027 * Set the layout content.
10029 * @param obj The layout object
10030 * @param swallow The swallow part name in the edje file
10031 * @param content The child that will be added in this layout object
10033 * Once the content object is set, a previously set one will be deleted.
10034 * If you want to keep that old content object, use the
10035 * elm_object_part_content_unset() function.
10037 * @note In an Edje theme, the part used as a content container is called @c
10038 * SWALLOW. This is why the parameter name is called @p swallow, but it is
10039 * expected to be a part name just like the second parameter of
10040 * elm_layout_box_append().
10042 * @see elm_layout_box_append()
10043 * @see elm_object_part_content_get()
10044 * @see elm_object_part_content_unset()
10046 * @deprecated use elm_object_part_content_set() instead
10050 EINA_DEPRECATED EAPI void elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10052 * Get the child object in the given content part.
10054 * @param obj The layout object
10055 * @param swallow The SWALLOW part to get its content
10057 * @return The swallowed object or NULL if none or an error occurred
10059 * @deprecated use elm_object_part_content_get() instead
10063 EINA_DEPRECATED EAPI Evas_Object *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10065 * Unset the layout content.
10067 * @param obj The layout object
10068 * @param swallow The swallow part name in the edje file
10069 * @return The content that was being used
10071 * Unparent and return the content object which was set for this part.
10073 * @deprecated use elm_object_part_content_unset() instead
10077 EINA_DEPRECATED EAPI Evas_Object *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10079 * Set the text of the given part
10081 * @param obj The layout object
10082 * @param part The TEXT part where to set the text
10083 * @param text The text to set
10086 * @deprecated use elm_object_part_text_set() instead.
10088 EINA_DEPRECATED EAPI void elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
10090 * Get the text set in the given part
10092 * @param obj The layout object
10093 * @param part The TEXT part to retrieve the text off
10095 * @return The text set in @p part
10098 * @deprecated use elm_object_part_text_get() instead.
10100 EINA_DEPRECATED EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
10102 * Append child to layout box part.
10104 * @param obj the layout object
10105 * @param part the box part to which the object will be appended.
10106 * @param child the child object to append to box.
10108 * Once the object is appended, it will become child of the layout. Its
10109 * lifetime will be bound to the layout, whenever the layout dies the child
10110 * will be deleted automatically. One should use elm_layout_box_remove() to
10111 * make this layout forget about the object.
10113 * @see elm_layout_box_prepend()
10114 * @see elm_layout_box_insert_before()
10115 * @see elm_layout_box_insert_at()
10116 * @see elm_layout_box_remove()
10120 EAPI void elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10122 * Prepend child to layout box part.
10124 * @param obj the layout object
10125 * @param part the box part to prepend.
10126 * @param child the child object to prepend to box.
10128 * Once the object is prepended, it will become child of the layout. Its
10129 * lifetime will be bound to the layout, whenever the layout dies the child
10130 * will be deleted automatically. One should use elm_layout_box_remove() to
10131 * make this layout forget about the object.
10133 * @see elm_layout_box_append()
10134 * @see elm_layout_box_insert_before()
10135 * @see elm_layout_box_insert_at()
10136 * @see elm_layout_box_remove()
10140 EAPI void elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10142 * Insert child to layout box part before a reference object.
10144 * @param obj the layout object
10145 * @param part the box part to insert.
10146 * @param child the child object to insert into box.
10147 * @param reference another reference object to insert before in box.
10149 * Once the object is inserted, it will become child of the layout. Its
10150 * lifetime will be bound to the layout, whenever the layout dies the child
10151 * will be deleted automatically. One should use elm_layout_box_remove() to
10152 * make this layout forget about the object.
10154 * @see elm_layout_box_append()
10155 * @see elm_layout_box_prepend()
10156 * @see elm_layout_box_insert_before()
10157 * @see elm_layout_box_remove()
10161 EAPI void elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
10163 * Insert child to layout box part at a given position.
10165 * @param obj the layout object
10166 * @param part the box part to insert.
10167 * @param child the child object to insert into box.
10168 * @param pos the numeric position >=0 to insert the child.
10170 * Once the object is inserted, it will become child of the layout. Its
10171 * lifetime will be bound to the layout, whenever the layout dies the child
10172 * will be deleted automatically. One should use elm_layout_box_remove() to
10173 * make this layout forget about the object.
10175 * @see elm_layout_box_append()
10176 * @see elm_layout_box_prepend()
10177 * @see elm_layout_box_insert_before()
10178 * @see elm_layout_box_remove()
10182 EAPI void elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
10184 * Remove a child of the given part box.
10186 * @param obj The layout object
10187 * @param part The box part name to remove child.
10188 * @param child The object to remove from box.
10189 * @return The object that was being used, or NULL if not found.
10191 * The object will be removed from the box part and its lifetime will
10192 * not be handled by the layout anymore. This is equivalent to
10193 * elm_object_part_content_unset() for box.
10195 * @see elm_layout_box_append()
10196 * @see elm_layout_box_remove_all()
10200 EAPI Evas_Object *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
10202 * Remove all child of the given part box.
10204 * @param obj The layout object
10205 * @param part The box part name to remove child.
10206 * @param clear If EINA_TRUE, then all objects will be deleted as
10207 * well, otherwise they will just be removed and will be
10208 * dangling on the canvas.
10210 * The objects will be removed from the box part and their lifetime will
10211 * not be handled by the layout anymore. This is equivalent to
10212 * elm_layout_box_remove() for all box children.
10214 * @see elm_layout_box_append()
10215 * @see elm_layout_box_remove()
10219 EAPI void elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10221 * Insert child to layout table part.
10223 * @param obj the layout object
10224 * @param part the box part to pack child.
10225 * @param child_obj the child object to pack into table.
10226 * @param col the column to which the child should be added. (>= 0)
10227 * @param row the row to which the child should be added. (>= 0)
10228 * @param colspan how many columns should be used to store this object. (>=
10230 * @param rowspan how many rows should be used to store this object. (>= 1)
10232 * Once the object is inserted, it will become child of the table. Its
10233 * lifetime will be bound to the layout, and whenever the layout dies the
10234 * child will be deleted automatically. One should use
10235 * elm_layout_table_remove() to make this layout forget about the object.
10237 * If @p colspan or @p rowspan are bigger than 1, that object will occupy
10238 * more space than a single cell. For instance, the following code:
10240 * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
10243 * Would result in an object being added like the following picture:
10245 * @image html layout_colspan.png
10246 * @image latex layout_colspan.eps width=\textwidth
10248 * @see elm_layout_table_unpack()
10249 * @see elm_layout_table_clear()
10253 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);
10255 * Unpack (remove) a child of the given part table.
10257 * @param obj The layout object
10258 * @param part The table part name to remove child.
10259 * @param child_obj The object to remove from table.
10260 * @return The object that was being used, or NULL if not found.
10262 * The object will be unpacked from the table part and its lifetime
10263 * will not be handled by the layout anymore. This is equivalent to
10264 * elm_object_part_content_unset() for table.
10266 * @see elm_layout_table_pack()
10267 * @see elm_layout_table_clear()
10271 EAPI Evas_Object *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
10273 * Remove all child of the given part table.
10275 * @param obj The layout object
10276 * @param part The table part name to remove child.
10277 * @param clear If EINA_TRUE, then all objects will be deleted as
10278 * well, otherwise they will just be removed and will be
10279 * dangling on the canvas.
10281 * The objects will be removed from the table part and their lifetime will
10282 * not be handled by the layout anymore. This is equivalent to
10283 * elm_layout_table_unpack() for all table children.
10285 * @see elm_layout_table_pack()
10286 * @see elm_layout_table_unpack()
10290 EAPI void elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10292 * Get the edje layout
10294 * @param obj The layout object
10296 * @return A Evas_Object with the edje layout settings loaded
10297 * with function elm_layout_file_set
10299 * This returns the edje object. It is not expected to be used to then
10300 * swallow objects via edje_object_part_swallow() for example. Use
10301 * elm_object_part_content_set() instead so child object handling and sizing is
10304 * @note This function should only be used if you really need to call some
10305 * low level Edje function on this edje object. All the common stuff (setting
10306 * text, emitting signals, hooking callbacks to signals, etc.) can be done
10307 * with proper elementary functions.
10309 * @see elm_object_signal_callback_add()
10310 * @see elm_object_signal_emit()
10311 * @see elm_object_part_text_set()
10312 * @see elm_object_part_content_set()
10313 * @see elm_layout_box_append()
10314 * @see elm_layout_table_pack()
10315 * @see elm_layout_data_get()
10319 EAPI Evas_Object *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10321 * Get the edje data from the given layout
10323 * @param obj The layout object
10324 * @param key The data key
10326 * @return The edje data string
10328 * This function fetches data specified inside the edje theme of this layout.
10329 * This function return NULL if data is not found.
10331 * In EDC this comes from a data block within the group block that @p
10332 * obj was loaded from. E.g.
10339 * item: "key1" "value1";
10340 * item: "key2" "value2";
10348 EAPI const char *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
10352 * @param obj The layout object
10354 * Manually forces a sizing re-evaluation. This is useful when the minimum
10355 * size required by the edje theme of this layout has changed. The change on
10356 * the minimum size required by the edje theme is not immediately reported to
10357 * the elementary layout, so one needs to call this function in order to tell
10358 * the widget (layout) that it needs to reevaluate its own size.
10360 * The minimum size of the theme is calculated based on minimum size of
10361 * parts, the size of elements inside containers like box and table, etc. All
10362 * of this can change due to state changes, and that's when this function
10363 * should be called.
10365 * Also note that a standard signal of "size,eval" "elm" emitted from the
10366 * edje object will cause this to happen too.
10370 EAPI void elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
10373 * Sets a specific cursor for an edje part.
10375 * @param obj The layout object.
10376 * @param part_name a part from loaded edje group.
10377 * @param cursor cursor name to use, see Elementary_Cursor.h
10379 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10380 * part not exists or it has "mouse_events: 0".
10384 EAPI Eina_Bool elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
10387 * Get the cursor to be shown when mouse is over an edje part
10389 * @param obj The layout object.
10390 * @param part_name a part from loaded edje group.
10391 * @return the cursor name.
10395 EAPI const char *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10398 * Unsets a cursor previously set with elm_layout_part_cursor_set().
10400 * @param obj The layout object.
10401 * @param part_name a part from loaded edje group, that had a cursor set
10402 * with elm_layout_part_cursor_set().
10406 EAPI void elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10409 * Sets a specific cursor style for an edje part.
10411 * @param obj The layout object.
10412 * @param part_name a part from loaded edje group.
10413 * @param style the theme style to use (default, transparent, ...)
10415 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10416 * part not exists or it did not had a cursor set.
10420 EAPI Eina_Bool elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
10423 * Gets a specific cursor style for an edje part.
10425 * @param obj The layout object.
10426 * @param part_name a part from loaded edje group.
10428 * @return the theme style in use, defaults to "default". If the
10429 * object does not have a cursor set, then NULL is returned.
10433 EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10436 * Sets if the cursor set should be searched on the theme or should use
10437 * the provided by the engine, only.
10439 * @note before you set if should look on theme you should define a
10440 * cursor with elm_layout_part_cursor_set(). By default it will only
10441 * look for cursors provided by the engine.
10443 * @param obj The layout object.
10444 * @param part_name a part from loaded edje group.
10445 * @param engine_only if cursors should be just provided by the engine
10446 * or should also search on widget's theme as well
10448 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10449 * part not exists or it did not had a cursor set.
10453 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);
10456 * Gets a specific cursor engine_only for an edje part.
10458 * @param obj The layout object.
10459 * @param part_name a part from loaded edje group.
10461 * @return whenever the cursor is just provided by engine or also from theme.
10465 EAPI Eina_Bool elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10468 * @def elm_layout_icon_set
10469 * Convienience macro to set the icon object in a layout that follows the
10470 * Elementary naming convention for its parts.
10474 #define elm_layout_icon_set(_ly, _obj) \
10477 elm_object_part_content_set((_ly), "elm.swallow.icon", (_obj)); \
10478 if ((_obj)) sig = "elm,state,icon,visible"; \
10479 else sig = "elm,state,icon,hidden"; \
10480 elm_object_signal_emit((_ly), sig, "elm"); \
10484 * @def elm_layout_icon_get
10485 * Convienience macro to get the icon object from a layout that follows the
10486 * Elementary naming convention for its parts.
10490 #define elm_layout_icon_get(_ly) \
10491 elm_object_part_content_get((_ly), "elm.swallow.icon")
10494 * @def elm_layout_end_set
10495 * Convienience macro to set the end object in a layout that follows the
10496 * Elementary naming convention for its parts.
10500 #define elm_layout_end_set(_ly, _obj) \
10503 elm_object_part_content_set((_ly), "elm.swallow.end", (_obj)); \
10504 if ((_obj)) sig = "elm,state,end,visible"; \
10505 else sig = "elm,state,end,hidden"; \
10506 elm_object_signal_emit((_ly), sig, "elm"); \
10510 * @def elm_layout_end_get
10511 * Convienience macro to get the end object in a layout that follows the
10512 * Elementary naming convention for its parts.
10516 #define elm_layout_end_get(_ly) \
10517 elm_object_part_content_get((_ly), "elm.swallow.end")
10520 * @def elm_layout_label_set
10521 * Convienience macro to set the label in a layout that follows the
10522 * Elementary naming convention for its parts.
10525 * @deprecated use elm_object_text_set() instead.
10527 #define elm_layout_label_set(_ly, _txt) \
10528 elm_layout_text_set((_ly), "elm.text", (_txt))
10531 * @def elm_layout_label_get
10532 * Convenience macro to get the label in a layout that follows the
10533 * Elementary naming convention for its parts.
10536 * @deprecated use elm_object_text_set() instead.
10538 #define elm_layout_label_get(_ly) \
10539 elm_layout_text_get((_ly), "elm.text")
10541 /* smart callbacks called:
10542 * "theme,changed" - when elm theme is changed.
10546 * @defgroup Notify Notify
10548 * @image html img/widget/notify/preview-00.png
10549 * @image latex img/widget/notify/preview-00.eps
10551 * Display a container in a particular region of the parent(top, bottom,
10552 * etc). A timeout can be set to automatically hide the notify. This is so
10553 * that, after an evas_object_show() on a notify object, if a timeout was set
10554 * on it, it will @b automatically get hidden after that time.
10556 * Signals that you can add callbacks for are:
10557 * @li "timeout" - when timeout happens on notify and it's hidden
10558 * @li "block,clicked" - when a click outside of the notify happens
10560 * Default contents parts of the notify widget that you can use for are:
10561 * @li "default" - A content of the notify
10563 * @ref tutorial_notify show usage of the API.
10568 * @brief Possible orient values for notify.
10570 * This values should be used in conjunction to elm_notify_orient_set() to
10571 * set the position in which the notify should appear(relative to its parent)
10572 * and in conjunction with elm_notify_orient_get() to know where the notify
10575 typedef enum _Elm_Notify_Orient
10577 ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10578 ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10579 ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10580 ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10581 ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10582 ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10583 ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10584 ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10585 ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10586 ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10587 } Elm_Notify_Orient;
10589 * @brief Add a new notify to the parent
10591 * @param parent The parent object
10592 * @return The new object or NULL if it cannot be created
10594 EAPI Evas_Object *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10596 * @brief Set the content of the notify widget
10598 * @param obj The notify object
10599 * @param content The content will be filled in this notify object
10601 * Once the content object is set, a previously set one will be deleted. If
10602 * you want to keep that old content object, use the
10603 * elm_notify_content_unset() function.
10605 * @deprecated use elm_object_content_set() instead
10608 EINA_DEPRECATED EAPI void elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10610 * @brief Unset the content of the notify widget
10612 * @param obj The notify object
10613 * @return The content that was being used
10615 * Unparent and return the content object which was set for this widget
10617 * @see elm_notify_content_set()
10618 * @deprecated use elm_object_content_unset() instead
10621 EINA_DEPRECATED EAPI Evas_Object *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10623 * @brief Return the content of the notify widget
10625 * @param obj The notify object
10626 * @return The content that is being used
10628 * @see elm_notify_content_set()
10629 * @deprecated use elm_object_content_get() instead
10632 EINA_DEPRECATED EAPI Evas_Object *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10634 * @brief Set the notify parent
10636 * @param obj The notify object
10637 * @param content The new parent
10639 * Once the parent object is set, a previously set one will be disconnected
10642 EAPI void elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10644 * @brief Get the notify parent
10646 * @param obj The notify object
10647 * @return The parent
10649 * @see elm_notify_parent_set()
10651 EAPI Evas_Object *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10653 * @brief Set the orientation
10655 * @param obj The notify object
10656 * @param orient The new orientation
10658 * Sets the position in which the notify will appear in its parent.
10660 * @see @ref Elm_Notify_Orient for possible values.
10662 EAPI void elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10664 * @brief Return the orientation
10665 * @param obj The notify object
10666 * @return The orientation of the notification
10668 * @see elm_notify_orient_set()
10669 * @see Elm_Notify_Orient
10671 EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10673 * @brief Set the time interval after which the notify window is going to be
10676 * @param obj The notify object
10677 * @param time The timeout in seconds
10679 * This function sets a timeout and starts the timer controlling when the
10680 * notify is hidden. Since calling evas_object_show() on a notify restarts
10681 * the timer controlling when the notify is hidden, setting this before the
10682 * notify is shown will in effect mean starting the timer when the notify is
10685 * @note Set a value <= 0.0 to disable a running timer.
10687 * @note If the value > 0.0 and the notify is previously visible, the
10688 * timer will be started with this value, canceling any running timer.
10690 EAPI void elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10692 * @brief Return the timeout value (in seconds)
10693 * @param obj the notify object
10695 * @see elm_notify_timeout_set()
10697 EAPI double elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10699 * @brief Sets whether events should be passed to by a click outside
10702 * @param obj The notify object
10703 * @param repeats EINA_TRUE Events are repeats, else no
10705 * When true if the user clicks outside the window the events will be caught
10706 * by the others widgets, else the events are blocked.
10708 * @note The default value is EINA_TRUE.
10710 EAPI void elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10712 * @brief Return true if events are repeat below the notify object
10713 * @param obj the notify object
10715 * @see elm_notify_repeat_events_set()
10717 EAPI Eina_Bool elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10723 * @defgroup Hover Hover
10725 * @image html img/widget/hover/preview-00.png
10726 * @image latex img/widget/hover/preview-00.eps
10728 * A Hover object will hover over its @p parent object at the @p target
10729 * location. Anything in the background will be given a darker coloring to
10730 * indicate that the hover object is on top (at the default theme). When the
10731 * hover is clicked it is dismissed(hidden), if the contents of the hover are
10732 * clicked that @b doesn't cause the hover to be dismissed.
10734 * A Hover object has two parents. One parent that owns it during creation
10735 * and the other parent being the one over which the hover object spans.
10738 * @note The hover object will take up the entire space of @p target
10741 * Elementary has the following styles for the hover widget:
10745 * @li hoversel_vertical
10747 * The following are the available position for content:
10759 * Signals that you can add callbacks for are:
10760 * @li "clicked" - the user clicked the empty space in the hover to dismiss
10761 * @li "smart,changed" - a content object placed under the "smart"
10762 * policy was replaced to a new slot direction.
10764 * See @ref tutorial_hover for more information.
10768 typedef enum _Elm_Hover_Axis
10770 ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10771 ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10772 ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10773 ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10776 * @brief Adds a hover object to @p parent
10778 * @param parent The parent object
10779 * @return The hover object or NULL if one could not be created
10781 EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10783 * @brief Sets the target object for the hover.
10785 * @param obj The hover object
10786 * @param target The object to center the hover onto. The hover
10788 * This function will cause the hover to be centered on the target object.
10790 EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10792 * @brief Gets the target object for the hover.
10794 * @param obj The hover object
10795 * @param parent The object to locate the hover over.
10797 * @see elm_hover_target_set()
10799 EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10801 * @brief Sets the parent object for the hover.
10803 * @param obj The hover object
10804 * @param parent The object to locate the hover over.
10806 * This function will cause the hover to take up the entire space that the
10807 * parent object fills.
10809 EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10811 * @brief Gets the parent object for the hover.
10813 * @param obj The hover object
10814 * @return The parent object to locate the hover over.
10816 * @see elm_hover_parent_set()
10818 EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10820 * @brief Sets the content of the hover object and the direction in which it
10823 * @param obj The hover object
10824 * @param swallow The direction that the object will be displayed
10825 * at. Accepted values are "left", "top-left", "top", "top-right",
10826 * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10828 * @param content The content to place at @p swallow
10830 * Once the content object is set for a given direction, a previously
10831 * set one (on the same direction) will be deleted. If you want to
10832 * keep that old content object, use the elm_hover_content_unset()
10835 * All directions may have contents at the same time, except for
10836 * "smart". This is a special placement hint and its use case
10837 * independs of the calculations coming from
10838 * elm_hover_best_content_location_get(). Its use is for cases when
10839 * one desires only one hover content, but with a dinamic special
10840 * placement within the hover area. The content's geometry, whenever
10841 * it changes, will be used to decide on a best location not
10842 * extrapolating the hover's parent object view to show it in (still
10843 * being the hover's target determinant of its medium part -- move and
10844 * resize it to simulate finger sizes, for example). If one of the
10845 * directions other than "smart" are used, a previously content set
10846 * using it will be deleted, and vice-versa.
10848 EAPI void elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10850 * @brief Get the content of the hover object, in a given direction.
10852 * Return the content object which was set for this widget in the
10853 * @p swallow direction.
10855 * @param obj The hover object
10856 * @param swallow The direction that the object was display at.
10857 * @return The content that was being used
10859 * @see elm_hover_content_set()
10861 EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10863 * @brief Unset the content of the hover object, in a given direction.
10865 * Unparent and return the content object set at @p swallow direction.
10867 * @param obj The hover object
10868 * @param swallow The direction that the object was display at.
10869 * @return The content that was being used.
10871 * @see elm_hover_content_set()
10873 EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10875 * @brief Returns the best swallow location for content in the hover.
10877 * @param obj The hover object
10878 * @param pref_axis The preferred orientation axis for the hover object to use
10879 * @return The edje location to place content into the hover or @c
10882 * Best is defined here as the location at which there is the most available
10885 * @p pref_axis may be one of
10886 * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10887 * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10888 * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10889 * - @c ELM_HOVER_AXIS_BOTH -- both
10891 * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10892 * nescessarily be along the horizontal axis("left" or "right"). If
10893 * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10894 * be along the vertical axis("top" or "bottom"). Chossing
10895 * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10896 * returned position may be in either axis.
10898 * @see elm_hover_content_set()
10900 EAPI const char *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10907 * @defgroup Entry Entry
10909 * @image html img/widget/entry/preview-00.png
10910 * @image latex img/widget/entry/preview-00.eps width=\textwidth
10911 * @image html img/widget/entry/preview-01.png
10912 * @image latex img/widget/entry/preview-01.eps width=\textwidth
10913 * @image html img/widget/entry/preview-02.png
10914 * @image latex img/widget/entry/preview-02.eps width=\textwidth
10915 * @image html img/widget/entry/preview-03.png
10916 * @image latex img/widget/entry/preview-03.eps width=\textwidth
10918 * An entry is a convenience widget which shows a box that the user can
10919 * enter text into. Entries by default don't scroll, so they grow to
10920 * accomodate the entire text, resizing the parent window as needed. This
10921 * can be changed with the elm_entry_scrollable_set() function.
10923 * They can also be single line or multi line (the default) and when set
10924 * to multi line mode they support text wrapping in any of the modes
10925 * indicated by #Elm_Wrap_Type.
10927 * Other features include password mode, filtering of inserted text with
10928 * elm_entry_text_filter_append() and related functions, inline "items" and
10929 * formatted markup text.
10931 * @section entry-markup Formatted text
10933 * The markup tags supported by the Entry are defined by the theme, but
10934 * even when writing new themes or extensions it's a good idea to stick to
10935 * a sane default, to maintain coherency and avoid application breakages.
10936 * Currently defined by the default theme are the following tags:
10937 * @li \<br\>: Inserts a line break.
10938 * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10940 * @li \<tab\>: Inserts a tab.
10941 * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10943 * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10944 * @li \<link\>...\</link\>: Underlines the enclosed text.
10945 * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10947 * @section entry-special Special markups
10949 * Besides those used to format text, entries support two special markup
10950 * tags used to insert clickable portions of text or items inlined within
10953 * @subsection entry-anchors Anchors
10955 * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10956 * \</a\> tags and an event will be generated when this text is clicked,
10960 * This text is outside <a href=anc-01>but this one is an anchor</a>
10963 * The @c href attribute in the opening tag gives the name that will be
10964 * used to identify the anchor and it can be any valid utf8 string.
10966 * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10967 * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10968 * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10969 * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10972 * @subsection entry-items Items
10974 * Inlined in the text, any other @c Evas_Object can be inserted by using
10975 * \<item\> tags this way:
10978 * <item size=16x16 vsize=full href=emoticon/haha></item>
10981 * Just like with anchors, the @c href identifies each item, but these need,
10982 * in addition, to indicate their size, which is done using any one of
10983 * @c size, @c absize or @c relsize attributes. These attributes take their
10984 * value in the WxH format, where W is the width and H the height of the
10987 * @li absize: Absolute pixel size for the item. Whatever value is set will
10988 * be the item's size regardless of any scale value the object may have
10989 * been set to. The final line height will be adjusted to fit larger items.
10990 * @li size: Similar to @c absize, but it's adjusted to the scale value set
10992 * @li relsize: Size is adjusted for the item to fit within the current
10995 * Besides their size, items are specificed a @c vsize value that affects
10996 * how their final size and position are calculated. The possible values
10998 * @li ascent: Item will be placed within the line's baseline and its
10999 * ascent. That is, the height between the line where all characters are
11000 * positioned and the highest point in the line. For @c size and @c absize
11001 * items, the descent value will be added to the total line height to make
11002 * them fit. @c relsize items will be adjusted to fit within this space.
11003 * @li full: Items will be placed between the descent and ascent, or the
11004 * lowest point in the line and its highest.
11006 * The next image shows different configurations of items and how they
11007 * are the previously mentioned options affect their sizes. In all cases,
11008 * the green line indicates the ascent, blue for the baseline and red for
11011 * @image html entry_item.png
11012 * @image latex entry_item.eps width=\textwidth
11014 * And another one to show how size differs from absize. In the first one,
11015 * the scale value is set to 1.0, while the second one is using one of 2.0.
11017 * @image html entry_item_scale.png
11018 * @image latex entry_item_scale.eps width=\textwidth
11020 * After the size for an item is calculated, the entry will request an
11021 * object to place in its space. For this, the functions set with
11022 * elm_entry_item_provider_append() and related functions will be called
11023 * in order until one of them returns a @c non-NULL value. If no providers
11024 * are available, or all of them return @c NULL, then the entry falls back
11025 * to one of the internal defaults, provided the name matches with one of
11028 * All of the following are currently supported:
11031 * - emoticon/angry-shout
11032 * - emoticon/crazy-laugh
11033 * - emoticon/evil-laugh
11035 * - emoticon/goggle-smile
11036 * - emoticon/grumpy
11037 * - emoticon/grumpy-smile
11038 * - emoticon/guilty
11039 * - emoticon/guilty-smile
11041 * - emoticon/half-smile
11042 * - emoticon/happy-panting
11044 * - emoticon/indifferent
11046 * - emoticon/knowing-grin
11048 * - emoticon/little-bit-sorry
11049 * - emoticon/love-lots
11051 * - emoticon/minimal-smile
11052 * - emoticon/not-happy
11053 * - emoticon/not-impressed
11055 * - emoticon/opensmile
11058 * - emoticon/squint-laugh
11059 * - emoticon/surprised
11060 * - emoticon/suspicious
11061 * - emoticon/tongue-dangling
11062 * - emoticon/tongue-poke
11064 * - emoticon/unhappy
11065 * - emoticon/very-sorry
11068 * - emoticon/worried
11071 * Alternatively, an item may reference an image by its path, using
11072 * the URI form @c file:///path/to/an/image.png and the entry will then
11073 * use that image for the item.
11075 * @section entry-files Loading and saving files
11077 * Entries have convinience functions to load text from a file and save
11078 * changes back to it after a short delay. The automatic saving is enabled
11079 * by default, but can be disabled with elm_entry_autosave_set() and files
11080 * can be loaded directly as plain text or have any markup in them
11081 * recognized. See elm_entry_file_set() for more details.
11083 * @section entry-signals Emitted signals
11085 * This widget emits the following signals:
11087 * @li "changed": The text within the entry was changed.
11088 * @li "changed,user": The text within the entry was changed because of user interaction.
11089 * @li "activated": The enter key was pressed on a single line entry.
11090 * @li "press": A mouse button has been pressed on the entry.
11091 * @li "longpressed": A mouse button has been pressed and held for a couple
11093 * @li "clicked": The entry has been clicked (mouse press and release).
11094 * @li "clicked,double": The entry has been double clicked.
11095 * @li "clicked,triple": The entry has been triple clicked.
11096 * @li "focused": The entry has received focus.
11097 * @li "unfocused": The entry has lost focus.
11098 * @li "selection,paste": A paste of the clipboard contents was requested.
11099 * @li "selection,copy": A copy of the selected text into the clipboard was
11101 * @li "selection,cut": A cut of the selected text into the clipboard was
11103 * @li "selection,start": A selection has begun and no previous selection
11105 * @li "selection,changed": The current selection has changed.
11106 * @li "selection,cleared": The current selection has been cleared.
11107 * @li "cursor,changed": The cursor has changed position.
11108 * @li "anchor,clicked": An anchor has been clicked. The event_info
11109 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11110 * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
11111 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11112 * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
11113 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11114 * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
11115 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11116 * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
11117 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11118 * @li "preedit,changed": The preedit string has changed.
11119 * @li "language,changed": Program language changed.
11121 * @section entry-examples
11123 * An overview of the Entry API can be seen in @ref entry_example_01
11128 * @typedef Elm_Entry_Anchor_Info
11130 * The info sent in the callback for the "anchor,clicked" signals emitted
11133 typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
11135 * @struct _Elm_Entry_Anchor_Info
11137 * The info sent in the callback for the "anchor,clicked" signals emitted
11140 struct _Elm_Entry_Anchor_Info
11142 const char *name; /**< The name of the anchor, as stated in its href */
11143 int button; /**< The mouse button used to click on it */
11144 Evas_Coord x, /**< Anchor geometry, relative to canvas */
11145 y, /**< Anchor geometry, relative to canvas */
11146 w, /**< Anchor geometry, relative to canvas */
11147 h; /**< Anchor geometry, relative to canvas */
11150 * @typedef Elm_Entry_Filter_Cb
11151 * This callback type is used by entry filters to modify text.
11152 * @param data The data specified as the last param when adding the filter
11153 * @param entry The entry object
11154 * @param text A pointer to the location of the text being filtered. This data can be modified,
11155 * but any additional allocations must be managed by the user.
11156 * @see elm_entry_text_filter_append
11157 * @see elm_entry_text_filter_prepend
11159 typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
11162 * @typedef Elm_Entry_Change_Info
11163 * This corresponds to Edje_Entry_Change_Info. Includes information about
11164 * a change in the entry.
11166 typedef Edje_Entry_Change_Info Elm_Entry_Change_Info;
11170 * This adds an entry to @p parent object.
11172 * By default, entries are:
11176 * @li autosave is enabled
11178 * @param parent The parent object
11179 * @return The new object or NULL if it cannot be created
11181 EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11183 * Sets the entry to single line mode.
11185 * In single line mode, entries don't ever wrap when the text reaches the
11186 * edge, and instead they keep growing horizontally. Pressing the @c Enter
11187 * key will generate an @c "activate" event instead of adding a new line.
11189 * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
11190 * and pressing enter will break the text into a different line
11191 * without generating any events.
11193 * @param obj The entry object
11194 * @param single_line If true, the text in the entry
11195 * will be on a single line.
11197 EAPI void elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
11199 * Gets whether the entry is set to be single line.
11201 * @param obj The entry object
11202 * @return single_line If true, the text in the entry is set to display
11203 * on a single line.
11205 * @see elm_entry_single_line_set()
11207 EAPI Eina_Bool elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11209 * Sets the entry to password mode.
11211 * In password mode, entries are implicitly single line and the display of
11212 * any text in them is replaced with asterisks (*).
11214 * @param obj The entry object
11215 * @param password If true, password mode is enabled.
11217 EAPI void elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
11219 * Gets whether the entry is set to password mode.
11221 * @param obj The entry object
11222 * @return If true, the entry is set to display all characters
11223 * as asterisks (*).
11225 * @see elm_entry_password_set()
11227 EAPI Eina_Bool elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11229 * This sets the text displayed within the entry to @p entry.
11231 * @param obj The entry object
11232 * @param entry The text to be displayed
11234 * @deprecated Use elm_object_text_set() instead.
11235 * @note Using this function bypasses text filters
11237 EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11239 * This returns the text currently shown in object @p entry.
11240 * See also elm_entry_entry_set().
11242 * @param obj The entry object
11243 * @return The currently displayed text or NULL on failure
11245 * @deprecated Use elm_object_text_get() instead.
11247 EAPI const char *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11249 * Appends @p entry to the text of the entry.
11251 * Adds the text in @p entry to the end of any text already present in the
11254 * The appended text is subject to any filters set for the widget.
11256 * @param obj The entry object
11257 * @param entry The text to be displayed
11259 * @see elm_entry_text_filter_append()
11261 EAPI void elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11263 * Gets whether the entry is empty.
11265 * Empty means no text at all. If there are any markup tags, like an item
11266 * tag for which no provider finds anything, and no text is displayed, this
11267 * function still returns EINA_FALSE.
11269 * @param obj The entry object
11270 * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
11272 EAPI Eina_Bool elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11274 * Gets any selected text within the entry.
11276 * If there's any selected text in the entry, this function returns it as
11277 * a string in markup format. NULL is returned if no selection exists or
11278 * if an error occurred.
11280 * The returned value points to an internal string and should not be freed
11281 * or modified in any way. If the @p entry object is deleted or its
11282 * contents are changed, the returned pointer should be considered invalid.
11284 * @param obj The entry object
11285 * @return The selected text within the entry or NULL on failure
11287 EAPI const char *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11289 * Returns the actual textblock object of the entry.
11291 * This function exposes the internal textblock object that actually
11292 * contains and draws the text. This should be used for low-level
11293 * manipulations that are otherwise not possible.
11295 * Changing the textblock directly from here will not notify edje/elm to
11296 * recalculate the textblock size automatically, so any modifications
11297 * done to the textblock returned by this function should be followed by
11298 * a call to elm_entry_calc_force().
11300 * The return value is marked as const as an additional warning.
11301 * One should not use the returned object with any of the generic evas
11302 * functions (geometry_get/resize/move and etc), but only with the textblock
11303 * functions; The former will either not work at all, or break the correct
11306 * IMPORTANT: Many functions may change (i.e delete and create a new one)
11307 * the internal textblock object. Do NOT cache the returned object, and try
11308 * not to mix calls on this object with regular elm_entry calls (which may
11309 * change the internal textblock object). This applies to all cursors
11310 * returned from textblock calls, and all the other derivative values.
11312 * @param obj The entry object
11313 * @return The textblock object.
11315 EAPI const Evas_Object *elm_entry_textblock_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11317 * Forces calculation of the entry size and text layouting.
11319 * This should be used after modifying the textblock object directly. See
11320 * elm_entry_textblock_get() for more information.
11322 * @param obj The entry object
11324 * @see elm_entry_textblock_get()
11326 EAPI void elm_entry_calc_force(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11328 * Inserts the given text into the entry at the current cursor position.
11330 * This inserts text at the cursor position as if it was typed
11331 * by the user (note that this also allows markup which a user
11332 * can't just "type" as it would be converted to escaped text, so this
11333 * call can be used to insert things like emoticon items or bold push/pop
11334 * tags, other font and color change tags etc.)
11336 * If any selection exists, it will be replaced by the inserted text.
11338 * The inserted text is subject to any filters set for the widget.
11340 * @param obj The entry object
11341 * @param entry The text to insert
11343 * @see elm_entry_text_filter_append()
11345 EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11347 * Set the line wrap type to use on multi-line entries.
11349 * Sets the wrap type used by the entry to any of the specified in
11350 * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
11351 * line (without inserting a line break or paragraph separator) when it
11352 * reaches the far edge of the widget.
11354 * Note that this only makes sense for multi-line entries. A widget set
11355 * to be single line will never wrap.
11357 * @param obj The entry object
11358 * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
11360 EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
11362 * Gets the wrap mode the entry was set to use.
11364 * @param obj The entry object
11365 * @return Wrap type
11367 * @see also elm_entry_line_wrap_set()
11369 EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11371 * Sets if the entry is to be editable or not.
11373 * By default, entries are editable and when focused, any text input by the
11374 * user will be inserted at the current cursor position. But calling this
11375 * function with @p editable as EINA_FALSE will prevent the user from
11376 * inputting text into the entry.
11378 * The only way to change the text of a non-editable entry is to use
11379 * elm_object_text_set(), elm_entry_entry_insert() and other related
11382 * @param obj The entry object
11383 * @param editable If EINA_TRUE, user input will be inserted in the entry,
11384 * if not, the entry is read-only and no user input is allowed.
11386 EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
11388 * Gets whether the entry is editable or not.
11390 * @param obj The entry object
11391 * @return If true, the entry is editable by the user.
11392 * If false, it is not editable by the user
11394 * @see elm_entry_editable_set()
11396 EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11398 * This drops any existing text selection within the entry.
11400 * @param obj The entry object
11402 EAPI void elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
11404 * This selects all text within the entry.
11406 * @param obj The entry object
11408 EAPI void elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
11410 * This moves the cursor one place to the right within the entry.
11412 * @param obj The entry object
11413 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11415 EAPI Eina_Bool elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
11417 * This moves the cursor one place to the left within the entry.
11419 * @param obj The entry object
11420 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11422 EAPI Eina_Bool elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
11424 * This moves the cursor one line up within the entry.
11426 * @param obj The entry object
11427 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11429 EAPI Eina_Bool elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
11431 * This moves the cursor one line down within the entry.
11433 * @param obj The entry object
11434 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11436 EAPI Eina_Bool elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
11438 * This moves the cursor to the beginning of the entry.
11440 * @param obj The entry object
11442 EAPI void elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11444 * This moves the cursor to the end of the entry.
11446 * @param obj The entry object
11448 EAPI void elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11450 * This moves the cursor to the beginning of the current line.
11452 * @param obj The entry object
11454 EAPI void elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11456 * This moves the cursor to the end of the current line.
11458 * @param obj The entry object
11460 EAPI void elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11462 * This begins a selection within the entry as though
11463 * the user were holding down the mouse button to make a selection.
11465 * @param obj The entry object
11467 EAPI void elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
11469 * This ends a selection within the entry as though
11470 * the user had just released the mouse button while making a selection.
11472 * @param obj The entry object
11474 EAPI void elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11476 * Gets whether a format node exists at the current cursor position.
11478 * A format node is anything that defines how the text is rendered. It can
11479 * be a visible format node, such as a line break or a paragraph separator,
11480 * or an invisible one, such as bold begin or end tag.
11481 * This function returns whether any format node exists at the current
11484 * @param obj The entry object
11485 * @return EINA_TRUE if the current cursor position contains a format node,
11486 * EINA_FALSE otherwise.
11488 * @see elm_entry_cursor_is_visible_format_get()
11490 EAPI Eina_Bool elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11492 * Gets if the current cursor position holds a visible format node.
11494 * @param obj The entry object
11495 * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
11496 * if it's an invisible one or no format exists.
11498 * @see elm_entry_cursor_is_format_get()
11500 EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11502 * Gets the character pointed by the cursor at its current position.
11504 * This function returns a string with the utf8 character stored at the
11505 * current cursor position.
11506 * Only the text is returned, any format that may exist will not be part
11507 * of the return value.
11509 * @param obj The entry object
11510 * @return The text pointed by the cursors.
11512 EAPI const char *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11514 * This function returns the geometry of the cursor.
11516 * It's useful if you want to draw something on the cursor (or where it is),
11517 * or for example in the case of scrolled entry where you want to show the
11520 * @param obj The entry object
11521 * @param x returned geometry
11522 * @param y returned geometry
11523 * @param w returned geometry
11524 * @param h returned geometry
11525 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11527 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);
11529 * Sets the cursor position in the entry to the given value
11531 * The value in @p pos is the index of the character position within the
11532 * contents of the string as returned by elm_entry_cursor_pos_get().
11534 * @param obj The entry object
11535 * @param pos The position of the cursor
11537 EAPI void elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
11539 * Retrieves the current position of the cursor in the entry
11541 * @param obj The entry object
11542 * @return The cursor position
11544 EAPI int elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11546 * This executes a "cut" action on the selected text in the entry.
11548 * @param obj The entry object
11550 EAPI void elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
11552 * This executes a "copy" action on the selected text in the entry.
11554 * @param obj The entry object
11556 EAPI void elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
11558 * This executes a "paste" action in the entry.
11560 * @param obj The entry object
11562 EAPI void elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
11564 * This clears and frees the items in a entry's contextual (longpress)
11567 * @param obj The entry object
11569 * @see elm_entry_context_menu_item_add()
11571 EAPI void elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
11573 * This adds an item to the entry's contextual menu.
11575 * A longpress on an entry will make the contextual menu show up, if this
11576 * hasn't been disabled with elm_entry_context_menu_disabled_set().
11577 * By default, this menu provides a few options like enabling selection mode,
11578 * which is useful on embedded devices that need to be explicit about it,
11579 * and when a selection exists it also shows the copy and cut actions.
11581 * With this function, developers can add other options to this menu to
11582 * perform any action they deem necessary.
11584 * @param obj The entry object
11585 * @param label The item's text label
11586 * @param icon_file The item's icon file
11587 * @param icon_type The item's icon type
11588 * @param func The callback to execute when the item is clicked
11589 * @param data The data to associate with the item for related functions
11591 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);
11593 * This disables the entry's contextual (longpress) menu.
11595 * @param obj The entry object
11596 * @param disabled If true, the menu is disabled
11598 EAPI void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11600 * This returns whether the entry's contextual (longpress) menu is
11603 * @param obj The entry object
11604 * @return If true, the menu is disabled
11606 EAPI Eina_Bool elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11608 * This appends a custom item provider to the list for that entry
11610 * This appends the given callback. The list is walked from beginning to end
11611 * with each function called given the item href string in the text. If the
11612 * function returns an object handle other than NULL (it should create an
11613 * object to do this), then this object is used to replace that item. If
11614 * not the next provider is called until one provides an item object, or the
11615 * default provider in entry does.
11617 * @param obj The entry object
11618 * @param func The function called to provide the item object
11619 * @param data The data passed to @p func
11621 * @see @ref entry-items
11623 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);
11625 * This prepends a custom item provider to the list for that entry
11627 * This prepends the given callback. See elm_entry_item_provider_append() for
11630 * @param obj The entry object
11631 * @param func The function called to provide the item object
11632 * @param data The data passed to @p func
11634 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);
11636 * This removes a custom item provider to the list for that entry
11638 * This removes the given callback. See elm_entry_item_provider_append() for
11641 * @param obj The entry object
11642 * @param func The function called to provide the item object
11643 * @param data The data passed to @p func
11645 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);
11647 * Append a filter function for text inserted in the entry
11649 * Append the given callback to the list. This functions will be called
11650 * whenever any text is inserted into the entry, with the text to be inserted
11651 * as a parameter. The callback function is free to alter the text in any way
11652 * it wants, but it must remember to free the given pointer and update it.
11653 * If the new text is to be discarded, the function can free it and set its
11654 * text parameter to NULL. This will also prevent any following filters from
11657 * @param obj The entry object
11658 * @param func The function to use as text filter
11659 * @param data User data to pass to @p func
11661 EAPI void elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11663 * Prepend a filter function for text insdrted in the entry
11665 * Prepend the given callback to the list. See elm_entry_text_filter_append()
11666 * for more information
11668 * @param obj The entry object
11669 * @param func The function to use as text filter
11670 * @param data User data to pass to @p func
11672 EAPI void elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11674 * Remove a filter from the list
11676 * Removes the given callback from the filter list. See
11677 * elm_entry_text_filter_append() for more information.
11679 * @param obj The entry object
11680 * @param func The filter function to remove
11681 * @param data The user data passed when adding the function
11683 EAPI void elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11685 * This converts a markup (HTML-like) string into UTF-8.
11687 * The returned string is a malloc'ed buffer and it should be freed when
11688 * not needed anymore.
11690 * @param s The string (in markup) to be converted
11691 * @return The converted string (in UTF-8). It should be freed.
11693 EAPI char *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11695 * This converts a UTF-8 string into markup (HTML-like).
11697 * The returned string is a malloc'ed buffer and it should be freed when
11698 * not needed anymore.
11700 * @param s The string (in UTF-8) to be converted
11701 * @return The converted string (in markup). It should be freed.
11703 EAPI char *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11705 * This sets the file (and implicitly loads it) for the text to display and
11706 * then edit. All changes are written back to the file after a short delay if
11707 * the entry object is set to autosave (which is the default).
11709 * If the entry had any other file set previously, any changes made to it
11710 * will be saved if the autosave feature is enabled, otherwise, the file
11711 * will be silently discarded and any non-saved changes will be lost.
11713 * @param obj The entry object
11714 * @param file The path to the file to load and save
11715 * @param format The file format
11717 EAPI void elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11719 * Gets the file being edited by the entry.
11721 * This function can be used to retrieve any file set on the entry for
11722 * edition, along with the format used to load and save it.
11724 * @param obj The entry object
11725 * @param file The path to the file to load and save
11726 * @param format The file format
11728 EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11730 * This function writes any changes made to the file set with
11731 * elm_entry_file_set()
11733 * @param obj The entry object
11735 EAPI void elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11737 * This sets the entry object to 'autosave' the loaded text file or not.
11739 * @param obj The entry object
11740 * @param autosave Autosave the loaded file or not
11742 * @see elm_entry_file_set()
11744 EAPI void elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11746 * This gets the entry object's 'autosave' status.
11748 * @param obj The entry object
11749 * @return Autosave the loaded file or not
11751 * @see elm_entry_file_set()
11753 EAPI Eina_Bool elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11755 * Control pasting of text and images for the widget.
11757 * Normally the entry allows both text and images to be pasted. By setting
11758 * textonly to be true, this prevents images from being pasted.
11760 * Note this only changes the behaviour of text.
11762 * @param obj The entry object
11763 * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11764 * text+image+other.
11766 EAPI void elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11768 * Getting elm_entry text paste/drop mode.
11770 * In textonly mode, only text may be pasted or dropped into the widget.
11772 * @param obj The entry object
11773 * @return If the widget only accepts text from pastes.
11775 EAPI Eina_Bool elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11777 * Enable or disable scrolling in entry
11779 * Normally the entry is not scrollable unless you enable it with this call.
11781 * @param obj The entry object
11782 * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11784 EAPI void elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11786 * Get the scrollable state of the entry
11788 * Normally the entry is not scrollable. This gets the scrollable state
11789 * of the entry. See elm_entry_scrollable_set() for more information.
11791 * @param obj The entry object
11792 * @return The scrollable state
11794 EAPI Eina_Bool elm_entry_scrollable_get(const Evas_Object *obj);
11796 * This sets a widget to be displayed to the left of a scrolled entry.
11798 * @param obj The scrolled entry object
11799 * @param icon The widget to display on the left side of the scrolled
11802 * @note A previously set widget will be destroyed.
11803 * @note If the object being set does not have minimum size hints set,
11804 * it won't get properly displayed.
11806 * @see elm_entry_end_set()
11808 EAPI void elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11810 * Gets the leftmost widget of the scrolled entry. This object is
11811 * owned by the scrolled entry and should not be modified.
11813 * @param obj The scrolled entry object
11814 * @return the left widget inside the scroller
11816 EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11818 * Unset the leftmost widget of the scrolled entry, unparenting and
11821 * @param obj The scrolled entry object
11822 * @return the previously set icon sub-object of this entry, on
11825 * @see elm_entry_icon_set()
11827 EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11829 * Sets the visibility of the left-side widget of the scrolled entry,
11830 * set by elm_entry_icon_set().
11832 * @param obj The scrolled entry object
11833 * @param setting EINA_TRUE if the object should be displayed,
11834 * EINA_FALSE if not.
11836 EAPI void elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11838 * This sets a widget to be displayed to the end of a scrolled entry.
11840 * @param obj The scrolled entry object
11841 * @param end The widget to display on the right side of the scrolled
11844 * @note A previously set widget will be destroyed.
11845 * @note If the object being set does not have minimum size hints set,
11846 * it won't get properly displayed.
11848 * @see elm_entry_icon_set
11850 EAPI void elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11852 * Gets the endmost widget of the scrolled entry. This object is owned
11853 * by the scrolled entry and should not be modified.
11855 * @param obj The scrolled entry object
11856 * @return the right widget inside the scroller
11858 EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11860 * Unset the endmost widget of the scrolled entry, unparenting and
11863 * @param obj The scrolled entry object
11864 * @return the previously set icon sub-object of this entry, on
11867 * @see elm_entry_icon_set()
11869 EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11871 * Sets the visibility of the end widget of the scrolled entry, set by
11872 * elm_entry_end_set().
11874 * @param obj The scrolled entry object
11875 * @param setting EINA_TRUE if the object should be displayed,
11876 * EINA_FALSE if not.
11878 EAPI void elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11880 * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11883 * Setting an entry to single-line mode with elm_entry_single_line_set()
11884 * will automatically disable the display of scrollbars when the entry
11885 * moves inside its scroller.
11887 * @param obj The scrolled entry object
11888 * @param h The horizontal scrollbar policy to apply
11889 * @param v The vertical scrollbar policy to apply
11891 EAPI void elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11893 * This enables/disables bouncing within the entry.
11895 * This function sets whether the entry will bounce when scrolling reaches
11896 * the end of the contained entry.
11898 * @param obj The scrolled entry object
11899 * @param h The horizontal bounce state
11900 * @param v The vertical bounce state
11902 EAPI void elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11904 * Get the bounce mode
11906 * @param obj The Entry object
11907 * @param h_bounce Allow bounce horizontally
11908 * @param v_bounce Allow bounce vertically
11910 EAPI void elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11912 /* pre-made filters for entries */
11914 * @typedef Elm_Entry_Filter_Limit_Size
11916 * Data for the elm_entry_filter_limit_size() entry filter.
11918 typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11920 * @struct _Elm_Entry_Filter_Limit_Size
11922 * Data for the elm_entry_filter_limit_size() entry filter.
11924 struct _Elm_Entry_Filter_Limit_Size
11926 int max_char_count; /**< The maximum number of characters allowed. */
11927 int max_byte_count; /**< The maximum number of bytes allowed*/
11930 * Filter inserted text based on user defined character and byte limits
11932 * Add this filter to an entry to limit the characters that it will accept
11933 * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11934 * The funtion works on the UTF-8 representation of the string, converting
11935 * it from the set markup, thus not accounting for any format in it.
11937 * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11938 * it as data when setting the filter. In it, it's possible to set limits
11939 * by character count or bytes (any of them is disabled if 0), and both can
11940 * be set at the same time. In that case, it first checks for characters,
11943 * The function will cut the inserted text in order to allow only the first
11944 * number of characters that are still allowed. The cut is made in
11945 * characters, even when limiting by bytes, in order to always contain
11946 * valid ones and avoid half unicode characters making it in.
11948 * This filter, like any others, does not apply when setting the entry text
11949 * directly with elm_object_text_set() (or the deprecated
11950 * elm_entry_entry_set()).
11952 EAPI void elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11954 * @typedef Elm_Entry_Filter_Accept_Set
11956 * Data for the elm_entry_filter_accept_set() entry filter.
11958 typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11960 * @struct _Elm_Entry_Filter_Accept_Set
11962 * Data for the elm_entry_filter_accept_set() entry filter.
11964 struct _Elm_Entry_Filter_Accept_Set
11966 const char *accepted; /**< Set of characters accepted in the entry. */
11967 const char *rejected; /**< Set of characters rejected from the entry. */
11970 * Filter inserted text based on accepted or rejected sets of characters
11972 * Add this filter to an entry to restrict the set of accepted characters
11973 * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11974 * This structure contains both accepted and rejected sets, but they are
11975 * mutually exclusive.
11977 * The @c accepted set takes preference, so if it is set, the filter will
11978 * only work based on the accepted characters, ignoring anything in the
11979 * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11981 * In both cases, the function filters by matching utf8 characters to the
11982 * raw markup text, so it can be used to remove formatting tags.
11984 * This filter, like any others, does not apply when setting the entry text
11985 * directly with elm_object_text_set() (or the deprecated
11986 * elm_entry_entry_set()).
11988 EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11990 * Set the input panel layout of the entry
11992 * @param obj The entry object
11993 * @param layout layout type
11995 EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11997 * Get the input panel layout of the entry
11999 * @param obj The entry object
12000 * @return layout type
12002 * @see elm_entry_input_panel_layout_set
12004 EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12006 * Set the autocapitalization type on the immodule.
12008 * @param obj The entry object
12009 * @param autocapital_type The type of autocapitalization
12011 EAPI void elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
12013 * Retrieve the autocapitalization type on the immodule.
12015 * @param obj The entry object
12016 * @return autocapitalization type
12018 EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12020 * Sets the attribute to show the input panel automatically.
12022 * @param obj The entry object
12023 * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
12025 EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
12027 * Retrieve the attribute to show the input panel automatically.
12029 * @param obj The entry object
12030 * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
12032 EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12038 /* composite widgets - these basically put together basic widgets above
12039 * in convenient packages that do more than basic stuff */
12043 * @defgroup Anchorview Anchorview
12045 * @image html img/widget/anchorview/preview-00.png
12046 * @image latex img/widget/anchorview/preview-00.eps
12048 * Anchorview is for displaying text that contains markup with anchors
12049 * like <c>\<a href=1234\>something\</\></c> in it.
12051 * Besides being styled differently, the anchorview widget provides the
12052 * necessary functionality so that clicking on these anchors brings up a
12053 * popup with user defined content such as "call", "add to contacts" or
12054 * "open web page". This popup is provided using the @ref Hover widget.
12056 * This widget is very similar to @ref Anchorblock, so refer to that
12057 * widget for an example. The only difference Anchorview has is that the
12058 * widget is already provided with scrolling functionality, so if the
12059 * text set to it is too large to fit in the given space, it will scroll,
12060 * whereas the @ref Anchorblock widget will keep growing to ensure all the
12061 * text can be displayed.
12063 * This widget emits the following signals:
12064 * @li "anchor,clicked": will be called when an anchor is clicked. The
12065 * @p event_info parameter on the callback will be a pointer of type
12066 * ::Elm_Entry_Anchorview_Info.
12068 * See @ref Anchorblock for an example on how to use both of them.
12077 * @typedef Elm_Entry_Anchorview_Info
12079 * The info sent in the callback for "anchor,clicked" signals emitted by
12080 * the Anchorview widget.
12082 typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
12084 * @struct _Elm_Entry_Anchorview_Info
12086 * The info sent in the callback for "anchor,clicked" signals emitted by
12087 * the Anchorview widget.
12089 struct _Elm_Entry_Anchorview_Info
12091 const char *name; /**< Name of the anchor, as indicated in its href
12093 int button; /**< The mouse button used to click on it */
12094 Evas_Object *hover; /**< The hover object to use for the popup */
12096 Evas_Coord x, y, w, h;
12097 } anchor, /**< Geometry selection of text used as anchor */
12098 hover_parent; /**< Geometry of the object used as parent by the
12100 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
12101 for content on the left side of
12102 the hover. Before calling the
12103 callback, the widget will make the
12104 necessary calculations to check
12105 which sides are fit to be set with
12106 content, based on the position the
12107 hover is activated and its distance
12108 to the edges of its parent object
12110 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
12111 the right side of the hover.
12112 See @ref hover_left */
12113 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
12114 of the hover. See @ref hover_left */
12115 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
12116 below the hover. See @ref
12120 * Add a new Anchorview object
12122 * @param parent The parent object
12123 * @return The new object or NULL if it cannot be created
12125 EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12127 * Set the text to show in the anchorview
12129 * Sets the text of the anchorview to @p text. This text can include markup
12130 * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
12131 * text that will be specially styled and react to click events, ended with
12132 * either of \</a\> or \</\>. When clicked, the anchor will emit an
12133 * "anchor,clicked" signal that you can attach a callback to with
12134 * evas_object_smart_callback_add(). The name of the anchor given in the
12135 * event info struct will be the one set in the href attribute, in this
12136 * case, anchorname.
12138 * Other markup can be used to style the text in different ways, but it's
12139 * up to the style defined in the theme which tags do what.
12140 * @deprecated use elm_object_text_set() instead.
12142 EINA_DEPRECATED EAPI void elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12144 * Get the markup text set for the anchorview
12146 * Retrieves the text set on the anchorview, with markup tags included.
12148 * @param obj The anchorview object
12149 * @return The markup text set or @c NULL if nothing was set or an error
12151 * @deprecated use elm_object_text_set() instead.
12153 EINA_DEPRECATED EAPI const char *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12155 * Set the parent of the hover popup
12157 * Sets the parent object to use by the hover created by the anchorview
12158 * when an anchor is clicked. See @ref Hover for more details on this.
12159 * If no parent is set, the same anchorview object will be used.
12161 * @param obj The anchorview object
12162 * @param parent The object to use as parent for the hover
12164 EAPI void elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12166 * Get the parent of the hover popup
12168 * Get the object used as parent for the hover created by the anchorview
12169 * widget. See @ref Hover for more details on this.
12171 * @param obj The anchorview object
12172 * @return The object used as parent for the hover, NULL if none is set.
12174 EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12176 * Set the style that the hover should use
12178 * When creating the popup hover, anchorview will request that it's
12179 * themed according to @p style.
12181 * @param obj The anchorview object
12182 * @param style The style to use for the underlying hover
12184 * @see elm_object_style_set()
12186 EAPI void elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12188 * Get the style that the hover should use
12190 * Get the style the hover created by anchorview will use.
12192 * @param obj The anchorview object
12193 * @return The style to use by the hover. NULL means the default is used.
12195 * @see elm_object_style_set()
12197 EAPI const char *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12199 * Ends the hover popup in the anchorview
12201 * When an anchor is clicked, the anchorview widget will create a hover
12202 * object to use as a popup with user provided content. This function
12203 * terminates this popup, returning the anchorview to its normal state.
12205 * @param obj The anchorview object
12207 EAPI void elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12209 * Set bouncing behaviour when the scrolled content reaches an edge
12211 * Tell the internal scroller object whether it should bounce or not
12212 * when it reaches the respective edges for each axis.
12214 * @param obj The anchorview object
12215 * @param h_bounce Whether to bounce or not in the horizontal axis
12216 * @param v_bounce Whether to bounce or not in the vertical axis
12218 * @see elm_scroller_bounce_set()
12220 EAPI void elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
12222 * Get the set bouncing behaviour of the internal scroller
12224 * Get whether the internal scroller should bounce when the edge of each
12225 * axis is reached scrolling.
12227 * @param obj The anchorview object
12228 * @param h_bounce Pointer where to store the bounce state of the horizontal
12230 * @param v_bounce Pointer where to store the bounce state of the vertical
12233 * @see elm_scroller_bounce_get()
12235 EAPI void elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
12237 * Appends a custom item provider to the given anchorview
12239 * Appends the given function to the list of items providers. This list is
12240 * called, one function at a time, with the given @p data pointer, the
12241 * anchorview object and, in the @p item parameter, the item name as
12242 * referenced in its href string. Following functions in the list will be
12243 * called in order until one of them returns something different to NULL,
12244 * which should be an Evas_Object which will be used in place of the item
12247 * Items in the markup text take the form \<item relsize=16x16 vsize=full
12248 * href=item/name\>\</item\>
12250 * @param obj The anchorview object
12251 * @param func The function to add to the list of providers
12252 * @param data User data that will be passed to the callback function
12254 * @see elm_entry_item_provider_append()
12256 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);
12258 * Prepend a custom item provider to the given anchorview
12260 * Like elm_anchorview_item_provider_append(), but it adds the function
12261 * @p func to the beginning of the list, instead of the end.
12263 * @param obj The anchorview object
12264 * @param func The function to add to the list of providers
12265 * @param data User data that will be passed to the callback function
12267 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);
12269 * Remove a custom item provider from the list of the given anchorview
12271 * Removes the function and data pairing that matches @p func and @p data.
12272 * That is, unless the same function and same user data are given, the
12273 * function will not be removed from the list. This allows us to add the
12274 * same callback several times, with different @p data pointers and be
12275 * able to remove them later without conflicts.
12277 * @param obj The anchorview object
12278 * @param func The function to remove from the list
12279 * @param data The data matching the function to remove from the list
12281 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);
12288 * @defgroup Anchorblock Anchorblock
12290 * @image html img/widget/anchorblock/preview-00.png
12291 * @image latex img/widget/anchorblock/preview-00.eps
12293 * Anchorblock is for displaying text that contains markup with anchors
12294 * like <c>\<a href=1234\>something\</\></c> in it.
12296 * Besides being styled differently, the anchorblock widget provides the
12297 * necessary functionality so that clicking on these anchors brings up a
12298 * popup with user defined content such as "call", "add to contacts" or
12299 * "open web page". This popup is provided using the @ref Hover widget.
12301 * This widget emits the following signals:
12302 * @li "anchor,clicked": will be called when an anchor is clicked. The
12303 * @p event_info parameter on the callback will be a pointer of type
12304 * ::Elm_Entry_Anchorblock_Info.
12310 * Since examples are usually better than plain words, we might as well
12311 * try @ref tutorial_anchorblock_example "one".
12314 * @addtogroup Anchorblock
12318 * @typedef Elm_Entry_Anchorblock_Info
12320 * The info sent in the callback for "anchor,clicked" signals emitted by
12321 * the Anchorblock widget.
12323 typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
12325 * @struct _Elm_Entry_Anchorblock_Info
12327 * The info sent in the callback for "anchor,clicked" signals emitted by
12328 * the Anchorblock widget.
12330 struct _Elm_Entry_Anchorblock_Info
12332 const char *name; /**< Name of the anchor, as indicated in its href
12334 int button; /**< The mouse button used to click on it */
12335 Evas_Object *hover; /**< The hover object to use for the popup */
12337 Evas_Coord x, y, w, h;
12338 } anchor, /**< Geometry selection of text used as anchor */
12339 hover_parent; /**< Geometry of the object used as parent by the
12341 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
12342 for content on the left side of
12343 the hover. Before calling the
12344 callback, the widget will make the
12345 necessary calculations to check
12346 which sides are fit to be set with
12347 content, based on the position the
12348 hover is activated and its distance
12349 to the edges of its parent object
12351 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
12352 the right side of the hover.
12353 See @ref hover_left */
12354 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
12355 of the hover. See @ref hover_left */
12356 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
12357 below the hover. See @ref
12361 * Add a new Anchorblock object
12363 * @param parent The parent object
12364 * @return The new object or NULL if it cannot be created
12366 EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12368 * Set the text to show in the anchorblock
12370 * Sets the text of the anchorblock to @p text. This text can include markup
12371 * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
12372 * of text that will be specially styled and react to click events, ended
12373 * with either of \</a\> or \</\>. When clicked, the anchor will emit an
12374 * "anchor,clicked" signal that you can attach a callback to with
12375 * evas_object_smart_callback_add(). The name of the anchor given in the
12376 * event info struct will be the one set in the href attribute, in this
12377 * case, anchorname.
12379 * Other markup can be used to style the text in different ways, but it's
12380 * up to the style defined in the theme which tags do what.
12381 * @deprecated use elm_object_text_set() instead.
12383 EINA_DEPRECATED EAPI void elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12385 * Get the markup text set for the anchorblock
12387 * Retrieves the text set on the anchorblock, with markup tags included.
12389 * @param obj The anchorblock object
12390 * @return The markup text set or @c NULL if nothing was set or an error
12392 * @deprecated use elm_object_text_set() instead.
12394 EINA_DEPRECATED EAPI const char *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12396 * Set the parent of the hover popup
12398 * Sets the parent object to use by the hover created by the anchorblock
12399 * when an anchor is clicked. See @ref Hover for more details on this.
12401 * @param obj The anchorblock object
12402 * @param parent The object to use as parent for the hover
12404 EAPI void elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12406 * Get the parent of the hover popup
12408 * Get the object used as parent for the hover created by the anchorblock
12409 * widget. See @ref Hover for more details on this.
12410 * If no parent is set, the same anchorblock object will be used.
12412 * @param obj The anchorblock object
12413 * @return The object used as parent for the hover, NULL if none is set.
12415 EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12417 * Set the style that the hover should use
12419 * When creating the popup hover, anchorblock will request that it's
12420 * themed according to @p style.
12422 * @param obj The anchorblock object
12423 * @param style The style to use for the underlying hover
12425 * @see elm_object_style_set()
12427 EAPI void elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12429 * Get the style that the hover should use
12431 * Get the style, the hover created by anchorblock will use.
12433 * @param obj The anchorblock object
12434 * @return The style to use by the hover. NULL means the default is used.
12436 * @see elm_object_style_set()
12438 EAPI const char *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12440 * Ends the hover popup in the anchorblock
12442 * When an anchor is clicked, the anchorblock widget will create a hover
12443 * object to use as a popup with user provided content. This function
12444 * terminates this popup, returning the anchorblock to its normal state.
12446 * @param obj The anchorblock object
12448 EAPI void elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12450 * Appends a custom item provider to the given anchorblock
12452 * Appends the given function to the list of items providers. This list is
12453 * called, one function at a time, with the given @p data pointer, the
12454 * anchorblock object and, in the @p item parameter, the item name as
12455 * referenced in its href string. Following functions in the list will be
12456 * called in order until one of them returns something different to NULL,
12457 * which should be an Evas_Object which will be used in place of the item
12460 * Items in the markup text take the form \<item relsize=16x16 vsize=full
12461 * href=item/name\>\</item\>
12463 * @param obj The anchorblock object
12464 * @param func The function to add to the list of providers
12465 * @param data User data that will be passed to the callback function
12467 * @see elm_entry_item_provider_append()
12469 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);
12471 * Prepend a custom item provider to the given anchorblock
12473 * Like elm_anchorblock_item_provider_append(), but it adds the function
12474 * @p func to the beginning of the list, instead of the end.
12476 * @param obj The anchorblock object
12477 * @param func The function to add to the list of providers
12478 * @param data User data that will be passed to the callback function
12480 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);
12482 * Remove a custom item provider from the list of the given anchorblock
12484 * Removes the function and data pairing that matches @p func and @p data.
12485 * That is, unless the same function and same user data are given, the
12486 * function will not be removed from the list. This allows us to add the
12487 * same callback several times, with different @p data pointers and be
12488 * able to remove them later without conflicts.
12490 * @param obj The anchorblock object
12491 * @param func The function to remove from the list
12492 * @param data The data matching the function to remove from the list
12494 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);
12500 * @defgroup Bubble Bubble
12502 * @image html img/widget/bubble/preview-00.png
12503 * @image latex img/widget/bubble/preview-00.eps
12504 * @image html img/widget/bubble/preview-01.png
12505 * @image latex img/widget/bubble/preview-01.eps
12506 * @image html img/widget/bubble/preview-02.png
12507 * @image latex img/widget/bubble/preview-02.eps
12509 * @brief The Bubble is a widget to show text similar to how speech is
12510 * represented in comics.
12512 * The bubble widget contains 5 important visual elements:
12513 * @li The frame is a rectangle with rounded edjes and an "arrow".
12514 * @li The @p icon is an image to which the frame's arrow points to.
12515 * @li The @p label is a text which appears to the right of the icon if the
12516 * corner is "top_left" or "bottom_left" and is right aligned to the frame
12518 * @li The @p info is a text which appears to the right of the label. Info's
12519 * font is of a ligther color than label.
12520 * @li The @p content is an evas object that is shown inside the frame.
12522 * The position of the arrow, icon, label and info depends on which corner is
12523 * selected. The four available corners are:
12524 * @li "top_left" - Default
12526 * @li "bottom_left"
12527 * @li "bottom_right"
12529 * Signals that you can add callbacks for are:
12530 * @li "clicked" - This is called when a user has clicked the bubble.
12532 * Default contents parts of the bubble that you can use for are:
12533 * @li "default" - A content of the bubble
12534 * @li "icon" - An icon of the bubble
12536 * Default text parts of the button widget that you can use for are:
12537 * @li NULL - Label of the bubble
12539 * For an example of using a buble see @ref bubble_01_example_page "this".
12545 * Add a new bubble to the parent
12547 * @param parent The parent object
12548 * @return The new object or NULL if it cannot be created
12550 * This function adds a text bubble to the given parent evas object.
12552 EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12554 * Set the label of the bubble
12556 * @param obj The bubble object
12557 * @param label The string to set in the label
12559 * This function sets the title of the bubble. Where this appears depends on
12560 * the selected corner.
12561 * @deprecated use elm_object_text_set() instead.
12563 EINA_DEPRECATED EAPI void elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12565 * Get the label of the bubble
12567 * @param obj The bubble object
12568 * @return The string of set in the label
12570 * This function gets the title of the bubble.
12571 * @deprecated use elm_object_text_get() instead.
12573 EINA_DEPRECATED EAPI const char *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12575 * Set the info of the bubble
12577 * @param obj The bubble object
12578 * @param info The given info about the bubble
12580 * This function sets the info of the bubble. Where this appears depends on
12581 * the selected corner.
12582 * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
12584 EINA_DEPRECATED EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
12586 * Get the info of the bubble
12588 * @param obj The bubble object
12590 * @return The "info" string of the bubble
12592 * This function gets the info text.
12593 * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
12595 EINA_DEPRECATED EAPI const char *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12597 * Set the content to be shown in the bubble
12599 * Once the content object is set, a previously set one will be deleted.
12600 * If you want to keep the old content object, use the
12601 * elm_bubble_content_unset() function.
12603 * @param obj The bubble object
12604 * @param content The given content of the bubble
12606 * This function sets the content shown on the middle of the bubble.
12608 * @deprecated use elm_object_content_set() instead
12611 EINA_DEPRECATED EAPI void elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
12613 * Get the content shown in the bubble
12615 * Return the content object which is set for this widget.
12617 * @param obj The bubble object
12618 * @return The content that is being used
12620 * @deprecated use elm_object_content_get() instead
12623 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12625 * Unset the content shown in the bubble
12627 * Unparent and return the content object which was set for this widget.
12629 * @param obj The bubble object
12630 * @return The content that was being used
12632 * @deprecated use elm_object_content_unset() instead
12635 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12637 * Set the icon of the bubble
12639 * Once the icon object is set, a previously set one will be deleted.
12640 * If you want to keep the old content object, use the
12641 * elm_icon_content_unset() function.
12643 * @param obj The bubble object
12644 * @param icon The given icon for the bubble
12646 * @deprecated use elm_object_part_content_set() instead
12649 EINA_DEPRECATED EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12651 * Get the icon of the bubble
12653 * @param obj The bubble object
12654 * @return The icon for the bubble
12656 * This function gets the icon shown on the top left of bubble.
12658 * @deprecated use elm_object_part_content_get() instead
12661 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12663 * Unset the icon of the bubble
12665 * Unparent and return the icon object which was set for this widget.
12667 * @param obj The bubble object
12668 * @return The icon that was being used
12670 * @deprecated use elm_object_part_content_unset() instead
12673 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12675 * Set the corner of the bubble
12677 * @param obj The bubble object.
12678 * @param corner The given corner for the bubble.
12680 * This function sets the corner of the bubble. The corner will be used to
12681 * determine where the arrow in the frame points to and where label, icon and
12684 * Possible values for corner are:
12685 * @li "top_left" - Default
12687 * @li "bottom_left"
12688 * @li "bottom_right"
12690 EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12692 * Get the corner of the bubble
12694 * @param obj The bubble object.
12695 * @return The given corner for the bubble.
12697 * This function gets the selected corner of the bubble.
12699 EAPI const char *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12705 * @defgroup Photo Photo
12707 * For displaying the photo of a person (contact). Simple, yet
12708 * with a very specific purpose.
12710 * Signals that you can add callbacks for are:
12712 * "clicked" - This is called when a user has clicked the photo
12713 * "drag,start" - Someone started dragging the image out of the object
12714 * "drag,end" - Dragged item was dropped (somewhere)
12720 * Add a new photo to the parent
12722 * @param parent The parent object
12723 * @return The new object or NULL if it cannot be created
12727 EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12730 * Set the file that will be used as photo
12732 * @param obj The photo object
12733 * @param file The path to file that will be used as photo
12735 * @return (1 = success, 0 = error)
12739 EAPI Eina_Bool elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12742 * Set the file that will be used as thumbnail in the photo.
12744 * @param obj The photo object.
12745 * @param file The path to file that will be used as thumb.
12746 * @param group The key used in case of an EET file.
12750 EAPI void elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
12753 * Set the size that will be used on the photo
12755 * @param obj The photo object
12756 * @param size The size that the photo will be
12760 EAPI void elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12763 * Set if the photo should be completely visible or not.
12765 * @param obj The photo object
12766 * @param fill if true the photo will be completely visible
12770 EAPI void elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12773 * Set editability of the photo.
12775 * An editable photo can be dragged to or from, and can be cut or
12776 * pasted too. Note that pasting an image or dropping an item on
12777 * the image will delete the existing content.
12779 * @param obj The photo object.
12780 * @param set To set of clear editablity.
12782 EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12788 /* gesture layer */
12790 * @defgroup Elm_Gesture_Layer Gesture Layer
12791 * Gesture Layer Usage:
12793 * Use Gesture Layer to detect gestures.
12794 * The advantage is that you don't have to implement
12795 * gesture detection, just set callbacks of gesture state.
12796 * By using gesture layer we make standard interface.
12798 * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12799 * with a parent object parameter.
12800 * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12801 * call. Usually with same object as target (2nd parameter).
12803 * Now you need to tell gesture layer what gestures you follow.
12804 * This is done with @ref elm_gesture_layer_cb_set call.
12805 * By setting the callback you actually saying to gesture layer:
12806 * I would like to know when the gesture @ref Elm_Gesture_Types
12807 * switches to state @ref Elm_Gesture_State.
12809 * Next, you need to implement the actual action that follows the input
12810 * in your callback.
12812 * Note that if you like to stop being reported about a gesture, just set
12813 * all callbacks referring this gesture to NULL.
12814 * (again with @ref elm_gesture_layer_cb_set)
12816 * The information reported by gesture layer to your callback is depending
12817 * on @ref Elm_Gesture_Types:
12818 * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12819 * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12820 * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12822 * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12823 * @ref ELM_GESTURE_MOMENTUM.
12825 * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12826 * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12827 * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12828 * Note that we consider a flick as a line-gesture that should be completed
12829 * in flick-time-limit as defined in @ref Config.
12831 * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12833 * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12836 * Gesture Layer Tweaks:
12838 * Note that line, flick, gestures can start without the need to remove fingers from surface.
12839 * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12841 * Setting glayer_continues_enable to false in @ref Config will change this behavior
12842 * so gesture starts when user touches (a *DOWN event) touch-surface
12843 * and ends when no fingers touches surface (a *UP event).
12847 * @enum _Elm_Gesture_Types
12848 * Enum of supported gesture types.
12849 * @ingroup Elm_Gesture_Layer
12851 enum _Elm_Gesture_Types
12853 ELM_GESTURE_FIRST = 0,
12855 ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12856 ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12857 ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12858 ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12860 ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12862 ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12863 ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12865 ELM_GESTURE_ZOOM, /**< Zoom */
12866 ELM_GESTURE_ROTATE, /**< Rotate */
12872 * @typedef Elm_Gesture_Types
12873 * gesture types enum
12874 * @ingroup Elm_Gesture_Layer
12876 typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12879 * @enum _Elm_Gesture_State
12880 * Enum of gesture states.
12881 * @ingroup Elm_Gesture_Layer
12883 enum _Elm_Gesture_State
12885 ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12886 ELM_GESTURE_STATE_START, /**< Gesture STARTed */
12887 ELM_GESTURE_STATE_MOVE, /**< Gesture is ongoing */
12888 ELM_GESTURE_STATE_END, /**< Gesture completed */
12889 ELM_GESTURE_STATE_ABORT /**< Onging gesture was ABORTed */
12893 * @typedef Elm_Gesture_State
12894 * gesture states enum
12895 * @ingroup Elm_Gesture_Layer
12897 typedef enum _Elm_Gesture_State Elm_Gesture_State;
12900 * @struct _Elm_Gesture_Taps_Info
12901 * Struct holds taps info for user
12902 * @ingroup Elm_Gesture_Layer
12904 struct _Elm_Gesture_Taps_Info
12906 Evas_Coord x, y; /**< Holds center point between fingers */
12907 unsigned int n; /**< Number of fingers tapped */
12908 unsigned int timestamp; /**< event timestamp */
12912 * @typedef Elm_Gesture_Taps_Info
12913 * holds taps info for user
12914 * @ingroup Elm_Gesture_Layer
12916 typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12919 * @struct _Elm_Gesture_Momentum_Info
12920 * Struct holds momentum info for user
12921 * x1 and y1 are not necessarily in sync
12922 * x1 holds x value of x direction starting point
12923 * and same holds for y1.
12924 * This is noticeable when doing V-shape movement
12925 * @ingroup Elm_Gesture_Layer
12927 struct _Elm_Gesture_Momentum_Info
12928 { /* Report line ends, timestamps, and momentum computed */
12929 Evas_Coord x1; /**< Final-swipe direction starting point on X */
12930 Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12931 Evas_Coord x2; /**< Final-swipe direction ending point on X */
12932 Evas_Coord y2; /**< Final-swipe direction ending point on Y */
12934 unsigned int tx; /**< Timestamp of start of final x-swipe */
12935 unsigned int ty; /**< Timestamp of start of final y-swipe */
12937 Evas_Coord mx; /**< Momentum on X */
12938 Evas_Coord my; /**< Momentum on Y */
12940 unsigned int n; /**< Number of fingers */
12944 * @typedef Elm_Gesture_Momentum_Info
12945 * holds momentum info for user
12946 * @ingroup Elm_Gesture_Layer
12948 typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12951 * @struct _Elm_Gesture_Line_Info
12952 * Struct holds line info for user
12953 * @ingroup Elm_Gesture_Layer
12955 struct _Elm_Gesture_Line_Info
12956 { /* Report line ends, timestamps, and momentum computed */
12957 Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12958 double angle; /**< Angle (direction) of lines */
12962 * @typedef Elm_Gesture_Line_Info
12963 * Holds line info for user
12964 * @ingroup Elm_Gesture_Layer
12966 typedef struct _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12969 * @struct _Elm_Gesture_Zoom_Info
12970 * Struct holds zoom info for user
12971 * @ingroup Elm_Gesture_Layer
12973 struct _Elm_Gesture_Zoom_Info
12975 Evas_Coord x, y; /**< Holds zoom center point reported to user */
12976 Evas_Coord radius; /**< Holds radius between fingers reported to user */
12977 double zoom; /**< Zoom value: 1.0 means no zoom */
12978 double momentum; /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12982 * @typedef Elm_Gesture_Zoom_Info
12983 * Holds zoom info for user
12984 * @ingroup Elm_Gesture_Layer
12986 typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12989 * @struct _Elm_Gesture_Rotate_Info
12990 * Struct holds rotation info for user
12991 * @ingroup Elm_Gesture_Layer
12993 struct _Elm_Gesture_Rotate_Info
12995 Evas_Coord x, y; /**< Holds zoom center point reported to user */
12996 Evas_Coord radius; /**< Holds radius between fingers reported to user */
12997 double base_angle; /**< Holds start-angle */
12998 double angle; /**< Rotation value: 0.0 means no rotation */
12999 double momentum; /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
13003 * @typedef Elm_Gesture_Rotate_Info
13004 * Holds rotation info for user
13005 * @ingroup Elm_Gesture_Layer
13007 typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
13010 * @typedef Elm_Gesture_Event_Cb
13011 * User callback used to stream gesture info from gesture layer
13012 * @param data user data
13013 * @param event_info gesture report info
13014 * Returns a flag field to be applied on the causing event.
13015 * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
13016 * upon the event, in an irreversible way.
13018 * @ingroup Elm_Gesture_Layer
13020 typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
13023 * Use function to set callbacks to be notified about
13024 * change of state of gesture.
13025 * When a user registers a callback with this function
13026 * this means this gesture has to be tested.
13028 * When ALL callbacks for a gesture are set to NULL
13029 * it means user isn't interested in gesture-state
13030 * and it will not be tested.
13032 * @param obj Pointer to gesture-layer.
13033 * @param idx The gesture you would like to track its state.
13034 * @param cb callback function pointer.
13035 * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
13036 * @param data user info to be sent to callback (usually, Smart Data)
13038 * @ingroup Elm_Gesture_Layer
13040 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);
13043 * Call this function to get repeat-events settings.
13045 * @param obj Pointer to gesture-layer.
13047 * @return repeat events settings.
13048 * @see elm_gesture_layer_hold_events_set()
13049 * @ingroup Elm_Gesture_Layer
13051 EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13054 * This function called in order to make gesture-layer repeat events.
13055 * Set this of you like to get the raw events only if gestures were not detected.
13056 * Clear this if you like gesture layer to fwd events as testing gestures.
13058 * @param obj Pointer to gesture-layer.
13059 * @param r Repeat: TRUE/FALSE
13061 * @ingroup Elm_Gesture_Layer
13063 EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
13066 * This function sets step-value for zoom action.
13067 * Set step to any positive value.
13068 * Cancel step setting by setting to 0.0
13070 * @param obj Pointer to gesture-layer.
13071 * @param s new zoom step value.
13073 * @ingroup Elm_Gesture_Layer
13075 EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13078 * This function sets step-value for rotate action.
13079 * Set step to any positive value.
13080 * Cancel step setting by setting to 0.0
13082 * @param obj Pointer to gesture-layer.
13083 * @param s new roatate step value.
13085 * @ingroup Elm_Gesture_Layer
13087 EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13090 * This function called to attach gesture-layer to an Evas_Object.
13091 * @param obj Pointer to gesture-layer.
13092 * @param t Pointer to underlying object (AKA Target)
13094 * @return TRUE, FALSE on success, failure.
13096 * @ingroup Elm_Gesture_Layer
13098 EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
13101 * Call this function to construct a new gesture-layer object.
13102 * This does not activate the gesture layer. You have to
13103 * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
13105 * @param parent the parent object.
13107 * @return Pointer to new gesture-layer object.
13109 * @ingroup Elm_Gesture_Layer
13111 EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13114 * @defgroup Thumb Thumb
13116 * @image html img/widget/thumb/preview-00.png
13117 * @image latex img/widget/thumb/preview-00.eps
13119 * A thumb object is used for displaying the thumbnail of an image or video.
13120 * You must have compiled Elementary with Ethumb_Client support and the DBus
13121 * service must be present and auto-activated in order to have thumbnails to
13124 * Once the thumbnail object becomes visible, it will check if there is a
13125 * previously generated thumbnail image for the file set on it. If not, it
13126 * will start generating this thumbnail.
13128 * Different config settings will cause different thumbnails to be generated
13129 * even on the same file.
13131 * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
13132 * Ethumb documentation to change this path, and to see other configuration
13135 * Signals that you can add callbacks for are:
13137 * - "clicked" - This is called when a user has clicked the thumb without dragging
13139 * - "clicked,double" - This is called when a user has double-clicked the thumb.
13140 * - "press" - This is called when a user has pressed down the thumb.
13141 * - "generate,start" - The thumbnail generation started.
13142 * - "generate,stop" - The generation process stopped.
13143 * - "generate,error" - The generation failed.
13144 * - "load,error" - The thumbnail image loading failed.
13146 * available styles:
13150 * An example of use of thumbnail:
13152 * - @ref thumb_example_01
13156 * @addtogroup Thumb
13161 * @enum _Elm_Thumb_Animation_Setting
13162 * @typedef Elm_Thumb_Animation_Setting
13164 * Used to set if a video thumbnail is animating or not.
13168 typedef enum _Elm_Thumb_Animation_Setting
13170 ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
13171 ELM_THUMB_ANIMATION_LOOP, /**< Keep playing animation until stop is requested */
13172 ELM_THUMB_ANIMATION_STOP, /**< Stop playing the animation */
13173 ELM_THUMB_ANIMATION_LAST
13174 } Elm_Thumb_Animation_Setting;
13177 * Add a new thumb object to the parent.
13179 * @param parent The parent object.
13180 * @return The new object or NULL if it cannot be created.
13182 * @see elm_thumb_file_set()
13183 * @see elm_thumb_ethumb_client_get()
13187 EAPI Evas_Object *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13189 * Reload thumbnail if it was generated before.
13191 * @param obj The thumb object to reload
13193 * This is useful if the ethumb client configuration changed, like its
13194 * size, aspect or any other property one set in the handle returned
13195 * by elm_thumb_ethumb_client_get().
13197 * If the options didn't change, the thumbnail won't be generated again, but
13198 * the old one will still be used.
13200 * @see elm_thumb_file_set()
13204 EAPI void elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
13206 * Set the file that will be used as thumbnail.
13208 * @param obj The thumb object.
13209 * @param file The path to file that will be used as thumb.
13210 * @param key The key used in case of an EET file.
13212 * The file can be an image or a video (in that case, acceptable extensions are:
13213 * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
13214 * function elm_thumb_animate().
13216 * @see elm_thumb_file_get()
13217 * @see elm_thumb_reload()
13218 * @see elm_thumb_animate()
13222 EAPI void elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
13224 * Get the image or video path and key used to generate the thumbnail.
13226 * @param obj The thumb object.
13227 * @param file Pointer to filename.
13228 * @param key Pointer to key.
13230 * @see elm_thumb_file_set()
13231 * @see elm_thumb_path_get()
13235 EAPI void elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13237 * Get the path and key to the image or video generated by ethumb.
13239 * One just need to make sure that the thumbnail was generated before getting
13240 * its path; otherwise, the path will be NULL. One way to do that is by asking
13241 * for the path when/after the "generate,stop" smart callback is called.
13243 * @param obj The thumb object.
13244 * @param file Pointer to thumb path.
13245 * @param key Pointer to thumb key.
13247 * @see elm_thumb_file_get()
13251 EAPI void elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13253 * Set the animation state for the thumb object. If its content is an animated
13254 * video, you may start/stop the animation or tell it to play continuously and
13257 * @param obj The thumb object.
13258 * @param setting The animation setting.
13260 * @see elm_thumb_file_set()
13264 EAPI void elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
13266 * Get the animation state for the thumb object.
13268 * @param obj The thumb object.
13269 * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
13272 * @see elm_thumb_animate_set()
13276 EAPI Elm_Thumb_Animation_Setting elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13278 * Get the ethumb_client handle so custom configuration can be made.
13280 * @return Ethumb_Client instance or NULL.
13282 * This must be called before the objects are created to be sure no object is
13283 * visible and no generation started.
13285 * Example of usage:
13288 * #include <Elementary.h>
13289 * #ifndef ELM_LIB_QUICKLAUNCH
13291 * elm_main(int argc, char **argv)
13293 * Ethumb_Client *client;
13295 * elm_need_ethumb();
13299 * client = elm_thumb_ethumb_client_get();
13302 * ERR("could not get ethumb_client");
13305 * ethumb_client_size_set(client, 100, 100);
13306 * ethumb_client_crop_align_set(client, 0.5, 0.5);
13309 * // Create elm_thumb objects here
13319 * @note There's only one client handle for Ethumb, so once a configuration
13320 * change is done to it, any other request for thumbnails (for any thumbnail
13321 * object) will use that configuration. Thus, this configuration is global.
13325 EAPI void *elm_thumb_ethumb_client_get(void);
13327 * Get the ethumb_client connection state.
13329 * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
13332 EAPI Eina_Bool elm_thumb_ethumb_client_connected(void);
13334 * Make the thumbnail 'editable'.
13336 * @param obj Thumb object.
13337 * @param set Turn on or off editability. Default is @c EINA_FALSE.
13339 * This means the thumbnail is a valid drag target for drag and drop, and can be
13340 * cut or pasted too.
13342 * @see elm_thumb_editable_get()
13346 EAPI Eina_Bool elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
13348 * Make the thumbnail 'editable'.
13350 * @param obj Thumb object.
13351 * @return Editability.
13353 * This means the thumbnail is a valid drag target for drag and drop, and can be
13354 * cut or pasted too.
13356 * @see elm_thumb_editable_set()
13360 EAPI Eina_Bool elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13367 * @defgroup Web Web
13369 * @image html img/widget/web/preview-00.png
13370 * @image latex img/widget/web/preview-00.eps
13372 * A web object is used for displaying web pages (HTML/CSS/JS)
13373 * using WebKit-EFL. You must have compiled Elementary with
13376 * Signals that you can add callbacks for are:
13377 * @li "download,request": A file download has been requested. Event info is
13378 * a pointer to a Elm_Web_Download
13379 * @li "editorclient,contents,changed": Editor client's contents changed
13380 * @li "editorclient,selection,changed": Editor client's selection changed
13381 * @li "frame,created": A new frame was created. Event info is an
13382 * Evas_Object which can be handled with WebKit's ewk_frame API
13383 * @li "icon,received": An icon was received by the main frame
13384 * @li "inputmethod,changed": Input method changed. Event info is an
13385 * Eina_Bool indicating whether it's enabled or not
13386 * @li "js,windowobject,clear": JS window object has been cleared
13387 * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
13388 * is a char *link[2], where the first string contains the URL the link
13389 * points to, and the second one the title of the link
13390 * @li "link,hover,out": Mouse cursor left the link
13391 * @li "load,document,finished": Loading of a document finished. Event info
13392 * is the frame that finished loading
13393 * @li "load,error": Load failed. Event info is a pointer to
13394 * Elm_Web_Frame_Load_Error
13395 * @li "load,finished": Load finished. Event info is NULL on success, on
13396 * error it's a pointer to Elm_Web_Frame_Load_Error
13397 * @li "load,newwindow,show": A new window was created and is ready to be
13399 * @li "load,progress": Overall load progress. Event info is a pointer to
13400 * a double containing a value between 0.0 and 1.0
13401 * @li "load,provisional": Started provisional load
13402 * @li "load,started": Loading of a document started
13403 * @li "menubar,visible,get": Queries if the menubar is visible. Event info
13404 * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
13405 * the menubar is visible, or EINA_FALSE in case it's not
13406 * @li "menubar,visible,set": Informs menubar visibility. Event info is
13407 * an Eina_Bool indicating the visibility
13408 * @li "popup,created": A dropdown widget was activated, requesting its
13409 * popup menu to be created. Event info is a pointer to Elm_Web_Menu
13410 * @li "popup,willdelete": The web object is ready to destroy the popup
13411 * object created. Event info is a pointer to Elm_Web_Menu
13412 * @li "ready": Page is fully loaded
13413 * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
13414 * info is a pointer to Eina_Bool where the visibility state should be set
13415 * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
13416 * is an Eina_Bool with the visibility state set
13417 * @li "statusbar,text,set": Text of the statusbar changed. Even info is
13418 * a string with the new text
13419 * @li "statusbar,visible,get": Queries visibility of the status bar.
13420 * Event info is a pointer to Eina_Bool where the visibility state should be
13422 * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
13423 * an Eina_Bool with the visibility value
13424 * @li "title,changed": Title of the main frame changed. Event info is a
13425 * string with the new title
13426 * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
13427 * is a pointer to Eina_Bool where the visibility state should be set
13428 * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
13429 * info is an Eina_Bool with the visibility state
13430 * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
13431 * a string with the text to show
13432 * @li "uri,changed": URI of the main frame changed. Event info is a string
13434 * @li "view,resized": The web object internal's view changed sized
13435 * @li "windows,close,request": A JavaScript request to close the current
13436 * window was requested
13437 * @li "zoom,animated,end": Animated zoom finished
13439 * available styles:
13442 * An example of use of web:
13444 * - @ref web_example_01 TBD
13453 * Structure used to report load errors.
13455 * Load errors are reported as signal by elm_web. All the strings are
13456 * temporary references and should @b not be used after the signal
13457 * callback returns. If it's required, make copies with strdup() or
13458 * eina_stringshare_add() (they are not even guaranteed to be
13459 * stringshared, so must use eina_stringshare_add() and not
13460 * eina_stringshare_ref()).
13462 typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
13464 * Structure used to report load errors.
13466 * Load errors are reported as signal by elm_web. All the strings are
13467 * temporary references and should @b not be used after the signal
13468 * callback returns. If it's required, make copies with strdup() or
13469 * eina_stringshare_add() (they are not even guaranteed to be
13470 * stringshared, so must use eina_stringshare_add() and not
13471 * eina_stringshare_ref()).
13473 struct _Elm_Web_Frame_Load_Error
13475 int code; /**< Numeric error code */
13476 Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
13477 const char *domain; /**< Error domain name */
13478 const char *description; /**< Error description (already localized) */
13479 const char *failing_url; /**< The URL that failed to load */
13480 Evas_Object *frame; /**< Frame object that produced the error */
13484 * The possibles types that the items in a menu can be
13486 typedef enum _Elm_Web_Menu_Item_Type
13488 ELM_WEB_MENU_SEPARATOR,
13489 ELM_WEB_MENU_GROUP,
13490 ELM_WEB_MENU_OPTION
13491 } Elm_Web_Menu_Item_Type;
13494 * Structure describing the items in a menu
13496 typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
13498 * Structure describing the items in a menu
13500 struct _Elm_Web_Menu_Item
13502 const char *text; /**< The text for the item */
13503 Elm_Web_Menu_Item_Type type; /**< The type of the item */
13507 * Structure describing the menu of a popup
13509 * This structure will be passed as the @c event_info for the "popup,create"
13510 * signal, which is emitted when a dropdown menu is opened. Users wanting
13511 * to handle these popups by themselves should listen to this signal and
13512 * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13513 * property as @c EINA_FALSE means that the user will not handle the popup
13514 * and the default implementation will be used.
13516 * When the popup is ready to be dismissed, a "popup,willdelete" signal
13517 * will be emitted to notify the user that it can destroy any objects and
13518 * free all data related to it.
13520 * @see elm_web_popup_selected_set()
13521 * @see elm_web_popup_destroy()
13523 typedef struct _Elm_Web_Menu Elm_Web_Menu;
13525 * Structure describing the menu of a popup
13527 * This structure will be passed as the @c event_info for the "popup,create"
13528 * signal, which is emitted when a dropdown menu is opened. Users wanting
13529 * to handle these popups by themselves should listen to this signal and
13530 * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13531 * property as @c EINA_FALSE means that the user will not handle the popup
13532 * and the default implementation will be used.
13534 * When the popup is ready to be dismissed, a "popup,willdelete" signal
13535 * will be emitted to notify the user that it can destroy any objects and
13536 * free all data related to it.
13538 * @see elm_web_popup_selected_set()
13539 * @see elm_web_popup_destroy()
13541 struct _Elm_Web_Menu
13543 Eina_List *items; /**< List of #Elm_Web_Menu_Item */
13544 int x; /**< The X position of the popup, relative to the elm_web object */
13545 int y; /**< The Y position of the popup, relative to the elm_web object */
13546 int width; /**< Width of the popup menu */
13547 int height; /**< Height of the popup menu */
13549 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. */
13552 typedef struct _Elm_Web_Download Elm_Web_Download;
13553 struct _Elm_Web_Download
13559 * Types of zoom available.
13561 typedef enum _Elm_Web_Zoom_Mode
13563 ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_web_zoom_set */
13564 ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
13565 ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
13566 ELM_WEB_ZOOM_MODE_LAST
13567 } Elm_Web_Zoom_Mode;
13569 * Opaque handler containing the features (such as statusbar, menubar, etc)
13570 * that are to be set on a newly requested window.
13572 typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
13574 * Callback type for the create_window hook.
13576 * The function parameters are:
13577 * @li @p data User data pointer set when setting the hook function
13578 * @li @p obj The elm_web object requesting the new window
13579 * @li @p js Set to @c EINA_TRUE if the request was originated from
13580 * JavaScript. @c EINA_FALSE otherwise.
13581 * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
13582 * the features requested for the new window.
13584 * The returned value of the function should be the @c elm_web widget where
13585 * the request will be loaded. That is, if a new window or tab is created,
13586 * the elm_web widget in it should be returned, and @b NOT the window
13588 * Returning @c NULL should cancel the request.
13590 * @see elm_web_window_create_hook_set()
13592 typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
13594 * Callback type for the JS alert hook.
13596 * The function parameters are:
13597 * @li @p data User data pointer set when setting the hook function
13598 * @li @p obj The elm_web object requesting the new window
13599 * @li @p message The message to show in the alert dialog
13601 * The function should return the object representing the alert dialog.
13602 * Elm_Web will run a second main loop to handle the dialog and normal
13603 * flow of the application will be restored when the object is deleted, so
13604 * the user should handle the popup properly in order to delete the object
13605 * when the action is finished.
13606 * If the function returns @c NULL the popup will be ignored.
13608 * @see elm_web_dialog_alert_hook_set()
13610 typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
13612 * Callback type for the JS confirm hook.
13614 * The function parameters are:
13615 * @li @p data User data pointer set when setting the hook function
13616 * @li @p obj The elm_web object requesting the new window
13617 * @li @p message The message to show in the confirm dialog
13618 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13619 * the user selected @c Ok, @c EINA_FALSE otherwise.
13621 * The function should return the object representing the confirm dialog.
13622 * Elm_Web will run a second main loop to handle the dialog and normal
13623 * flow of the application will be restored when the object is deleted, so
13624 * the user should handle the popup properly in order to delete the object
13625 * when the action is finished.
13626 * If the function returns @c NULL the popup will be ignored.
13628 * @see elm_web_dialog_confirm_hook_set()
13630 typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
13632 * Callback type for the JS prompt hook.
13634 * The function parameters are:
13635 * @li @p data User data pointer set when setting the hook function
13636 * @li @p obj The elm_web object requesting the new window
13637 * @li @p message The message to show in the prompt dialog
13638 * @li @p def_value The default value to present the user in the entry
13639 * @li @p value Pointer where to store the value given by the user. Must
13640 * be a malloc'ed string or @c NULL if the user cancelled the popup.
13641 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13642 * the user selected @c Ok, @c EINA_FALSE otherwise.
13644 * The function should return the object representing the prompt dialog.
13645 * Elm_Web will run a second main loop to handle the dialog and normal
13646 * flow of the application will be restored when the object is deleted, so
13647 * the user should handle the popup properly in order to delete the object
13648 * when the action is finished.
13649 * If the function returns @c NULL the popup will be ignored.
13651 * @see elm_web_dialog_prompt_hook_set()
13653 typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
13655 * Callback type for the JS file selector hook.
13657 * The function parameters are:
13658 * @li @p data User data pointer set when setting the hook function
13659 * @li @p obj The elm_web object requesting the new window
13660 * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
13661 * @li @p accept_types Mime types accepted
13662 * @li @p selected Pointer where to store the list of malloc'ed strings
13663 * containing the path to each file selected. Must be @c NULL if the file
13664 * dialog is cancelled
13665 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13666 * the user selected @c Ok, @c EINA_FALSE otherwise.
13668 * The function should return the object representing the file selector
13670 * Elm_Web will run a second main loop to handle the dialog and normal
13671 * flow of the application will be restored when the object is deleted, so
13672 * the user should handle the popup properly in order to delete the object
13673 * when the action is finished.
13674 * If the function returns @c NULL the popup will be ignored.
13676 * @see elm_web_dialog_file selector_hook_set()
13678 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);
13680 * Callback type for the JS console message hook.
13682 * When a console message is added from JavaScript, any set function to the
13683 * console message hook will be called for the user to handle. There is no
13684 * default implementation of this hook.
13686 * The function parameters are:
13687 * @li @p data User data pointer set when setting the hook function
13688 * @li @p obj The elm_web object that originated the message
13689 * @li @p message The message sent
13690 * @li @p line_number The line number
13691 * @li @p source_id Source id
13693 * @see elm_web_console_message_hook_set()
13695 typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
13697 * Add a new web object to the parent.
13699 * @param parent The parent object.
13700 * @return The new object or NULL if it cannot be created.
13702 * @see elm_web_uri_set()
13703 * @see elm_web_webkit_view_get()
13705 EAPI Evas_Object *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13708 * Get internal ewk_view object from web object.
13710 * Elementary may not provide some low level features of EWebKit,
13711 * instead of cluttering the API with proxy methods we opted to
13712 * return the internal reference. Be careful using it as it may
13713 * interfere with elm_web behavior.
13715 * @param obj The web object.
13716 * @return The internal ewk_view object or NULL if it does not
13717 * exist. (Failure to create or Elementary compiled without
13720 * @see elm_web_add()
13722 EAPI Evas_Object *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13725 * Sets the function to call when a new window is requested
13727 * This hook will be called when a request to create a new window is
13728 * issued from the web page loaded.
13729 * There is no default implementation for this feature, so leaving this
13730 * unset or passing @c NULL in @p func will prevent new windows from
13733 * @param obj The web object where to set the hook function
13734 * @param func The hook function to be called when a window is requested
13735 * @param data User data
13737 EAPI void elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
13739 * Sets the function to call when an alert dialog
13741 * This hook will be called when a JavaScript alert dialog is requested.
13742 * If no function is set or @c NULL is passed in @p func, the default
13743 * implementation will take place.
13745 * @param obj The web object where to set the hook function
13746 * @param func The callback function to be used
13747 * @param data User data
13749 * @see elm_web_inwin_mode_set()
13751 EAPI void elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
13753 * Sets the function to call when an confirm dialog
13755 * This hook will be called when a JavaScript confirm dialog is requested.
13756 * If no function is set or @c NULL is passed in @p func, the default
13757 * implementation will take place.
13759 * @param obj The web object where to set the hook function
13760 * @param func The callback function to be used
13761 * @param data User data
13763 * @see elm_web_inwin_mode_set()
13765 EAPI void elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
13767 * Sets the function to call when an prompt dialog
13769 * This hook will be called when a JavaScript prompt dialog is requested.
13770 * If no function is set or @c NULL is passed in @p func, the default
13771 * implementation will take place.
13773 * @param obj The web object where to set the hook function
13774 * @param func The callback function to be used
13775 * @param data User data
13777 * @see elm_web_inwin_mode_set()
13779 EAPI void elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
13781 * Sets the function to call when an file selector dialog
13783 * This hook will be called when a JavaScript file selector dialog is
13785 * If no function is set or @c NULL is passed in @p func, the default
13786 * implementation will take place.
13788 * @param obj The web object where to set the hook function
13789 * @param func The callback function to be used
13790 * @param data User data
13792 * @see elm_web_inwin_mode_set()
13794 EAPI void elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
13796 * Sets the function to call when a console message is emitted from JS
13798 * This hook will be called when a console message is emitted from
13799 * JavaScript. There is no default implementation for this feature.
13801 * @param obj The web object where to set the hook function
13802 * @param func The callback function to be used
13803 * @param data User data
13805 EAPI void elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
13807 * Gets the status of the tab propagation
13809 * @param obj The web object to query
13810 * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
13812 * @see elm_web_tab_propagate_set()
13814 EAPI Eina_Bool elm_web_tab_propagate_get(const Evas_Object *obj);
13816 * Sets whether to use tab propagation
13818 * If tab propagation is enabled, whenever the user presses the Tab key,
13819 * Elementary will handle it and switch focus to the next widget.
13820 * The default value is disabled, where WebKit will handle the Tab key to
13821 * cycle focus though its internal objects, jumping to the next widget
13822 * only when that cycle ends.
13824 * @param obj The web object
13825 * @param propagate Whether to propagate Tab keys to Elementary or not
13827 EAPI void elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
13829 * Sets the URI for the web object
13831 * It must be a full URI, with resource included, in the form
13832 * http://www.enlightenment.org or file:///tmp/something.html
13834 * @param obj The web object
13835 * @param uri The URI to set
13836 * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
13838 EAPI Eina_Bool elm_web_uri_set(Evas_Object *obj, const char *uri);
13840 * Gets the current URI for the object
13842 * The returned string must not be freed and is guaranteed to be
13845 * @param obj The web object
13846 * @return A stringshared internal string with the current URI, or NULL on
13849 EAPI const char *elm_web_uri_get(const Evas_Object *obj);
13851 * Gets the current title
13853 * The returned string must not be freed and is guaranteed to be
13856 * @param obj The web object
13857 * @return A stringshared internal string with the current title, or NULL on
13860 EAPI const char *elm_web_title_get(const Evas_Object *obj);
13862 * Sets the background color to be used by the web object
13864 * This is the color that will be used by default when the loaded page
13865 * does not set it's own. Color values are pre-multiplied.
13867 * @param obj The web object
13868 * @param r Red component
13869 * @param g Green component
13870 * @param b Blue component
13871 * @param a Alpha component
13873 EAPI void elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
13875 * Gets the background color to be used by the web object
13877 * This is the color that will be used by default when the loaded page
13878 * does not set it's own. Color values are pre-multiplied.
13880 * @param obj The web object
13881 * @param r Red component
13882 * @param g Green component
13883 * @param b Blue component
13884 * @param a Alpha component
13886 EAPI void elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
13888 * Gets a copy of the currently selected text
13890 * The string returned must be freed by the user when it's done with it.
13892 * @param obj The web object
13893 * @return A newly allocated string, or NULL if nothing is selected or an
13896 EAPI char *elm_view_selection_get(const Evas_Object *obj);
13898 * Tells the web object which index in the currently open popup was selected
13900 * When the user handles the popup creation from the "popup,created" signal,
13901 * it needs to tell the web object which item was selected by calling this
13902 * function with the index corresponding to the item.
13904 * @param obj The web object
13905 * @param index The index selected
13907 * @see elm_web_popup_destroy()
13909 EAPI void elm_web_popup_selected_set(Evas_Object *obj, int index);
13911 * Dismisses an open dropdown popup
13913 * When the popup from a dropdown widget is to be dismissed, either after
13914 * selecting an option or to cancel it, this function must be called, which
13915 * will later emit an "popup,willdelete" signal to notify the user that
13916 * any memory and objects related to this popup can be freed.
13918 * @param obj The web object
13919 * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
13920 * if there was no menu to destroy
13922 EAPI Eina_Bool elm_web_popup_destroy(Evas_Object *obj);
13924 * Searches the given string in a document.
13926 * @param obj The web object where to search the text
13927 * @param string String to search
13928 * @param case_sensitive If search should be case sensitive or not
13929 * @param forward If search is from cursor and on or backwards
13930 * @param wrap If search should wrap at the end
13932 * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
13935 EAPI Eina_Bool elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
13937 * Marks matches of the given string in a document.
13939 * @param obj The web object where to search text
13940 * @param string String to match
13941 * @param case_sensitive If match should be case sensitive or not
13942 * @param highlight If matches should be highlighted
13943 * @param limit Maximum amount of matches, or zero to unlimited
13945 * @return number of matched @a string
13947 EAPI unsigned int elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
13949 * Clears all marked matches in the document
13951 * @param obj The web object
13953 * @return EINA_TRUE on success, EINA_FALSE otherwise
13955 EAPI Eina_Bool elm_web_text_matches_unmark_all(Evas_Object *obj);
13957 * Sets whether to highlight the matched marks
13959 * If enabled, marks set with elm_web_text_matches_mark() will be
13962 * @param obj The web object
13963 * @param highlight Whether to highlight the marks or not
13965 * @return EINA_TRUE on success, EINA_FALSE otherwise
13967 EAPI Eina_Bool elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
13969 * Gets whether highlighting marks is enabled
13971 * @param The web object
13973 * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
13976 EAPI Eina_Bool elm_web_text_matches_highlight_get(const Evas_Object *obj);
13978 * Gets the overall loading progress of the page
13980 * Returns the estimated loading progress of the page, with a value between
13981 * 0.0 and 1.0. This is an estimated progress accounting for all the frames
13982 * included in the page.
13984 * @param The web object
13986 * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
13989 EAPI double elm_web_load_progress_get(const Evas_Object *obj);
13991 * Stops loading the current page
13993 * Cancels the loading of the current page in the web object. This will
13994 * cause a "load,error" signal to be emitted, with the is_cancellation
13995 * flag set to EINA_TRUE.
13997 * @param obj The web object
13999 * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
14001 EAPI Eina_Bool elm_web_stop(Evas_Object *obj);
14003 * Requests a reload of the current document in the object
14005 * @param obj The web object
14007 * @return EINA_TRUE on success, EINA_FALSE otherwise
14009 EAPI Eina_Bool elm_web_reload(Evas_Object *obj);
14011 * Requests a reload of the current document, avoiding any existing caches
14013 * @param obj The web object
14015 * @return EINA_TRUE on success, EINA_FALSE otherwise
14017 EAPI Eina_Bool elm_web_reload_full(Evas_Object *obj);
14019 * Goes back one step in the browsing history
14021 * This is equivalent to calling elm_web_object_navigate(obj, -1);
14023 * @param obj The web object
14025 * @return EINA_TRUE on success, EINA_FALSE otherwise
14027 * @see elm_web_history_enable_set()
14028 * @see elm_web_back_possible()
14029 * @see elm_web_forward()
14030 * @see elm_web_navigate()
14032 EAPI Eina_Bool elm_web_back(Evas_Object *obj);
14034 * Goes forward one step in the browsing history
14036 * This is equivalent to calling elm_web_object_navigate(obj, 1);
14038 * @param obj The web object
14040 * @return EINA_TRUE on success, EINA_FALSE otherwise
14042 * @see elm_web_history_enable_set()
14043 * @see elm_web_forward_possible()
14044 * @see elm_web_back()
14045 * @see elm_web_navigate()
14047 EAPI Eina_Bool elm_web_forward(Evas_Object *obj);
14049 * Jumps the given number of steps in the browsing history
14051 * The @p steps value can be a negative integer to back in history, or a
14052 * positive to move forward.
14054 * @param obj The web object
14055 * @param steps The number of steps to jump
14057 * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
14058 * history exists to jump the given number of steps
14060 * @see elm_web_history_enable_set()
14061 * @see elm_web_navigate_possible()
14062 * @see elm_web_back()
14063 * @see elm_web_forward()
14065 EAPI Eina_Bool elm_web_navigate(Evas_Object *obj, int steps);
14067 * Queries whether it's possible to go back in history
14069 * @param obj The web object
14071 * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
14074 EAPI Eina_Bool elm_web_back_possible(Evas_Object *obj);
14076 * Queries whether it's possible to go forward in history
14078 * @param obj The web object
14080 * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
14083 EAPI Eina_Bool elm_web_forward_possible(Evas_Object *obj);
14085 * Queries whether it's possible to jump the given number of steps
14087 * The @p steps value can be a negative integer to back in history, or a
14088 * positive to move forward.
14090 * @param obj The web object
14091 * @param steps The number of steps to check for
14093 * @return EINA_TRUE if enough history exists to perform the given jump,
14094 * EINA_FALSE otherwise
14096 EAPI Eina_Bool elm_web_navigate_possible(Evas_Object *obj, int steps);
14098 * Gets whether browsing history is enabled for the given object
14100 * @param obj The web object
14102 * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
14104 EAPI Eina_Bool elm_web_history_enable_get(const Evas_Object *obj);
14106 * Enables or disables the browsing history
14108 * @param obj The web object
14109 * @param enable Whether to enable or disable the browsing history
14111 EAPI void elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
14113 * Sets the zoom level of the web object
14115 * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
14116 * values meaning zoom in and lower meaning zoom out. This function will
14117 * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
14118 * is ::ELM_WEB_ZOOM_MODE_MANUAL.
14120 * @param obj The web object
14121 * @param zoom The zoom level to set
14123 EAPI void elm_web_zoom_set(Evas_Object *obj, double zoom);
14125 * Gets the current zoom level set on the web object
14127 * Note that this is the zoom level set on the web object and not that
14128 * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
14129 * the two zoom levels should match, but for the other two modes the
14130 * Webkit zoom is calculated internally to match the chosen mode without
14131 * changing the zoom level set for the web object.
14133 * @param obj The web object
14135 * @return The zoom level set on the object
14137 EAPI double elm_web_zoom_get(const Evas_Object *obj);
14139 * Sets the zoom mode to use
14141 * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
14142 * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
14144 * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
14145 * with the elm_web_zoom_set() function.
14146 * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
14147 * make sure the entirety of the web object's contents are shown.
14148 * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
14149 * fit the contents in the web object's size, without leaving any space
14152 * @param obj The web object
14153 * @param mode The mode to set
14155 EAPI void elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
14157 * Gets the currently set zoom mode
14159 * @param obj The web object
14161 * @return The current zoom mode set for the object, or
14162 * ::ELM_WEB_ZOOM_MODE_LAST on error
14164 EAPI Elm_Web_Zoom_Mode elm_web_zoom_mode_get(const Evas_Object *obj);
14166 * Shows the given region in the web object
14168 * @param obj The web object
14169 * @param x The x coordinate of the region to show
14170 * @param y The y coordinate of the region to show
14171 * @param w The width of the region to show
14172 * @param h The height of the region to show
14174 EAPI void elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
14176 * Brings in the region to the visible area
14178 * Like elm_web_region_show(), but it animates the scrolling of the object
14181 * @param obj The web object
14182 * @param x The x coordinate of the region to show
14183 * @param y The y coordinate of the region to show
14184 * @param w The width of the region to show
14185 * @param h The height of the region to show
14187 EAPI void elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
14189 * Sets the default dialogs to use an Inwin instead of a normal window
14191 * If set, then the default implementation for the JavaScript dialogs and
14192 * file selector will be opened in an Inwin. Otherwise they will use a
14193 * normal separated window.
14195 * @param obj The web object
14196 * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
14198 EAPI void elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
14200 * Gets whether Inwin mode is set for the current object
14202 * @param obj The web object
14204 * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
14206 EAPI Eina_Bool elm_web_inwin_mode_get(const Evas_Object *obj);
14208 EAPI void elm_web_window_features_ref(Elm_Web_Window_Features *wf);
14209 EAPI void elm_web_window_features_unref(Elm_Web_Window_Features *wf);
14210 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);
14211 EAPI void elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
14218 * @defgroup Hoversel Hoversel
14220 * @image html img/widget/hoversel/preview-00.png
14221 * @image latex img/widget/hoversel/preview-00.eps
14223 * A hoversel is a button that pops up a list of items (automatically
14224 * choosing the direction to display) that have a label and, optionally, an
14225 * icon to select from. It is a convenience widget to avoid the need to do
14226 * all the piecing together yourself. It is intended for a small number of
14227 * items in the hoversel menu (no more than 8), though is capable of many
14230 * Signals that you can add callbacks for are:
14231 * "clicked" - the user clicked the hoversel button and popped up the sel
14232 * "selected" - an item in the hoversel list is selected. event_info is the item
14233 * "dismissed" - the hover is dismissed
14235 * See @ref tutorial_hoversel for an example.
14238 typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
14240 * @brief Add a new Hoversel object
14242 * @param parent The parent object
14243 * @return The new object or NULL if it cannot be created
14245 EAPI Evas_Object *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14247 * @brief This sets the hoversel to expand horizontally.
14249 * @param obj The hoversel object
14250 * @param horizontal If true, the hover will expand horizontally to the
14253 * @note The initial button will display horizontally regardless of this
14256 EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14258 * @brief This returns whether the hoversel is set to expand horizontally.
14260 * @param obj The hoversel object
14261 * @return If true, the hover will expand horizontally to the right.
14263 * @see elm_hoversel_horizontal_set()
14265 EAPI Eina_Bool elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14267 * @brief Set the Hover parent
14269 * @param obj The hoversel object
14270 * @param parent The parent to use
14272 * Sets the hover parent object, the area that will be darkened when the
14273 * hoversel is clicked. Should probably be the window that the hoversel is
14274 * in. See @ref Hover objects for more information.
14276 EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14278 * @brief Get the Hover parent
14280 * @param obj The hoversel object
14281 * @return The used parent
14283 * Gets the hover parent object.
14285 * @see elm_hoversel_hover_parent_set()
14287 EAPI Evas_Object *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14289 * @brief Set the hoversel button label
14291 * @param obj The hoversel object
14292 * @param label The label text.
14294 * This sets the label of the button that is always visible (before it is
14295 * clicked and expanded).
14297 * @deprecated elm_object_text_set()
14299 EINA_DEPRECATED EAPI void elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14301 * @brief Get the hoversel button label
14303 * @param obj The hoversel object
14304 * @return The label text.
14306 * @deprecated elm_object_text_get()
14308 EINA_DEPRECATED EAPI const char *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14310 * @brief Set the icon of the hoversel button
14312 * @param obj The hoversel object
14313 * @param icon The icon object
14315 * Sets the icon of the button that is always visible (before it is clicked
14316 * and expanded). Once the icon object is set, a previously set one will be
14317 * deleted, if you want to keep that old content object, use the
14318 * elm_hoversel_icon_unset() function.
14320 * @see elm_object_content_set() for the button widget
14322 EAPI void elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
14324 * @brief Get the icon of the hoversel button
14326 * @param obj The hoversel object
14327 * @return The icon object
14329 * Get the icon of the button that is always visible (before it is clicked
14330 * and expanded). Also see elm_object_content_get() for the button widget.
14332 * @see elm_hoversel_icon_set()
14334 EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14336 * @brief Get and unparent the icon of the hoversel button
14338 * @param obj The hoversel object
14339 * @return The icon object that was being used
14341 * Unparent and return the icon of the button that is always visible
14342 * (before it is clicked and expanded).
14344 * @see elm_hoversel_icon_set()
14345 * @see elm_object_content_unset() for the button widget
14347 EAPI Evas_Object *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14349 * @brief This triggers the hoversel popup from code, the same as if the user
14350 * had clicked the button.
14352 * @param obj The hoversel object
14354 EAPI void elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
14356 * @brief This dismisses the hoversel popup as if the user had clicked
14357 * outside the hover.
14359 * @param obj The hoversel object
14361 EAPI void elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
14363 * @brief Returns whether the hoversel is expanded.
14365 * @param obj The hoversel object
14366 * @return This will return EINA_TRUE if the hoversel is expanded or
14367 * EINA_FALSE if it is not expanded.
14369 EAPI Eina_Bool elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14371 * @brief This will remove all the children items from the hoversel.
14373 * @param obj The hoversel object
14375 * @warning Should @b not be called while the hoversel is active; use
14376 * elm_hoversel_expanded_get() to check first.
14378 * @see elm_hoversel_item_del_cb_set()
14379 * @see elm_hoversel_item_del()
14381 EAPI void elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14383 * @brief Get the list of items within the given hoversel.
14385 * @param obj The hoversel object
14386 * @return Returns a list of Elm_Hoversel_Item*
14388 * @see elm_hoversel_item_add()
14390 EAPI const Eina_List *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14392 * @brief Add an item to the hoversel button
14394 * @param obj The hoversel object
14395 * @param label The text label to use for the item (NULL if not desired)
14396 * @param icon_file An image file path on disk to use for the icon or standard
14397 * icon name (NULL if not desired)
14398 * @param icon_type The icon type if relevant
14399 * @param func Convenience function to call when this item is selected
14400 * @param data Data to pass to item-related functions
14401 * @return A handle to the item added.
14403 * This adds an item to the hoversel to show when it is clicked. Note: if you
14404 * need to use an icon from an edje file then use
14405 * elm_hoversel_item_icon_set() right after the this function, and set
14406 * icon_file to NULL here.
14408 * For more information on what @p icon_file and @p icon_type are see the
14409 * @ref Icon "icon documentation".
14411 EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14413 * @brief Delete an item from the hoversel
14415 * @param item The item to delete
14417 * This deletes the item from the hoversel (should not be called while the
14418 * hoversel is active; use elm_hoversel_expanded_get() to check first).
14420 * @see elm_hoversel_item_add()
14421 * @see elm_hoversel_item_del_cb_set()
14423 EAPI void elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
14425 * @brief Set the function to be called when an item from the hoversel is
14428 * @param item The item to set the callback on
14429 * @param func The function called
14431 * That function will receive these parameters:
14432 * @li void *item_data
14433 * @li Evas_Object *the_item_object
14434 * @li Elm_Hoversel_Item *the_object_struct
14436 * @see elm_hoversel_item_add()
14438 EAPI void elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14440 * @brief This returns the data pointer supplied with elm_hoversel_item_add()
14441 * that will be passed to associated function callbacks.
14443 * @param item The item to get the data from
14444 * @return The data pointer set with elm_hoversel_item_add()
14446 * @see elm_hoversel_item_add()
14448 EAPI void *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14450 * @brief This returns the label text of the given hoversel item.
14452 * @param item The item to get the label
14453 * @return The label text of the hoversel item
14455 * @see elm_hoversel_item_add()
14457 EAPI const char *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14459 * @brief This sets the icon for the given hoversel item.
14461 * @param item The item to set the icon
14462 * @param icon_file An image file path on disk to use for the icon or standard
14464 * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
14465 * to NULL if the icon is not an edje file
14466 * @param icon_type The icon type
14468 * The icon can be loaded from the standard set, from an image file, or from
14471 * @see elm_hoversel_item_add()
14473 EAPI void elm_hoversel_item_icon_set(Elm_Hoversel_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type) EINA_ARG_NONNULL(1);
14475 * @brief Get the icon object of the hoversel item
14477 * @param item The item to get the icon from
14478 * @param icon_file The image file path on disk used for the icon or standard
14480 * @param icon_group The edje group used if @p icon_file is an edje file. NULL
14481 * if the icon is not an edje file
14482 * @param icon_type The icon type
14484 * @see elm_hoversel_item_icon_set()
14485 * @see elm_hoversel_item_add()
14487 EAPI void elm_hoversel_item_icon_get(const Elm_Hoversel_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type) EINA_ARG_NONNULL(1);
14493 * @defgroup Toolbar Toolbar
14494 * @ingroup Elementary
14496 * @image html img/widget/toolbar/preview-00.png
14497 * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
14499 * @image html img/toolbar.png
14500 * @image latex img/toolbar.eps width=\textwidth
14502 * A toolbar is a widget that displays a list of items inside
14503 * a box. It can be scrollable, show a menu with items that don't fit
14504 * to toolbar size or even crop them.
14506 * Only one item can be selected at a time.
14508 * Items can have multiple states, or show menus when selected by the user.
14510 * Smart callbacks one can listen to:
14511 * - "clicked" - when the user clicks on a toolbar item and becomes selected.
14512 * - "language,changed" - when the program language changes
14514 * Available styles for it:
14516 * - @c "transparent" - no background or shadow, just show the content
14518 * List of examples:
14519 * @li @ref toolbar_example_01
14520 * @li @ref toolbar_example_02
14521 * @li @ref toolbar_example_03
14525 * @addtogroup Toolbar
14530 * @enum _Elm_Toolbar_Shrink_Mode
14531 * @typedef Elm_Toolbar_Shrink_Mode
14533 * Set toolbar's items display behavior, it can be scrollabel,
14534 * show a menu with exceeding items, or simply hide them.
14536 * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
14539 * Values <b> don't </b> work as bitmask, only one can be choosen.
14541 * @see elm_toolbar_mode_shrink_set()
14542 * @see elm_toolbar_mode_shrink_get()
14546 typedef enum _Elm_Toolbar_Shrink_Mode
14548 ELM_TOOLBAR_SHRINK_NONE, /**< Set toolbar minimun size to fit all the items. */
14549 ELM_TOOLBAR_SHRINK_HIDE, /**< Hide exceeding items. */
14550 ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
14551 ELM_TOOLBAR_SHRINK_MENU, /**< Inserts a button to pop up a menu with exceeding items. */
14552 ELM_TOOLBAR_SHRINK_LAST /**< Indicates error if returned by elm_toolbar_shrink_mode_get() */
14553 } Elm_Toolbar_Shrink_Mode;
14555 typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item; /**< Item of Elm_Toolbar. Sub-type of Elm_Widget_Item. Can be created with elm_toolbar_item_append(), elm_toolbar_item_prepend() and functions to add items in relative positions, like elm_toolbar_item_insert_before(), and deleted with elm_toolbar_item_del(). */
14557 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(). */
14560 * Add a new toolbar widget to the given parent Elementary
14561 * (container) object.
14563 * @param parent The parent object.
14564 * @return a new toolbar widget handle or @c NULL, on errors.
14566 * This function inserts a new toolbar widget on the canvas.
14570 EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14573 * Set the icon size, in pixels, to be used by toolbar items.
14575 * @param obj The toolbar object
14576 * @param icon_size The icon size in pixels
14578 * @note Default value is @c 32. It reads value from elm config.
14580 * @see elm_toolbar_icon_size_get()
14584 EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
14587 * Get the icon size, in pixels, to be used by toolbar items.
14589 * @param obj The toolbar object.
14590 * @return The icon size in pixels.
14592 * @see elm_toolbar_icon_size_set() for details.
14596 EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14599 * Sets icon lookup order, for toolbar items' icons.
14601 * @param obj The toolbar object.
14602 * @param order The icon lookup order.
14604 * Icons added before calling this function will not be affected.
14605 * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
14607 * @see elm_toolbar_icon_order_lookup_get()
14611 EAPI void elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
14614 * Gets the icon lookup order.
14616 * @param obj The toolbar object.
14617 * @return The icon lookup order.
14619 * @see elm_toolbar_icon_order_lookup_set() for details.
14623 EAPI Elm_Icon_Lookup_Order elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14626 * Set whether the toolbar should always have an item selected.
14628 * @param obj The toolbar object.
14629 * @param wrap @c EINA_TRUE to enable always-select mode or @c EINA_FALSE to
14632 * This will cause the toolbar to always have an item selected, and clicking
14633 * the selected item will not cause a selected event to be emitted. Enabling this mode
14634 * will immediately select the first toolbar item.
14636 * Always-selected is disabled by default.
14638 * @see elm_toolbar_always_select_mode_get().
14642 EAPI void elm_toolbar_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14645 * Get whether the toolbar should always have an item selected.
14647 * @param obj The toolbar object.
14648 * @return @c EINA_TRUE means an item will always be selected, @c EINA_FALSE indicates
14649 * that it is possible to have no items selected. If @p obj is @c NULL, @c EINA_FALSE is returned.
14651 * @see elm_toolbar_always_select_mode_set() for details.
14655 EAPI Eina_Bool elm_toolbar_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14658 * Set whether the toolbar items' should be selected by the user or not.
14660 * @param obj The toolbar object.
14661 * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
14664 * This will turn off the ability to select items entirely and they will
14665 * neither appear selected nor emit selected signals. The clicked
14666 * callback function will still be called.
14668 * Selection is enabled by default.
14670 * @see elm_toolbar_no_select_mode_get().
14674 EAPI void elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
14677 * Set whether the toolbar items' should be selected by the user or not.
14679 * @param obj The toolbar object.
14680 * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
14681 * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
14683 * @see elm_toolbar_no_select_mode_set() for details.
14687 EAPI Eina_Bool elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14690 * Append item to the toolbar.
14692 * @param obj The toolbar object.
14693 * @param icon A string with icon name or the absolute path of an image file.
14694 * @param label The label of the item.
14695 * @param func The function to call when the item is clicked.
14696 * @param data The data to associate with the item for related callbacks.
14697 * @return The created item or @c NULL upon failure.
14699 * A new item will be created and appended to the toolbar, i.e., will
14700 * be set as @b last item.
14702 * Items created with this method can be deleted with
14703 * elm_toolbar_item_del().
14705 * Associated @p data can be properly freed when item is deleted if a
14706 * callback function is set with elm_toolbar_item_del_cb_set().
14708 * If a function is passed as argument, it will be called everytime this item
14709 * is selected, i.e., the user clicks over an unselected item.
14710 * If such function isn't needed, just passing
14711 * @c NULL as @p func is enough. The same should be done for @p data.
14713 * Toolbar will load icon image from fdo or current theme.
14714 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14715 * If an absolute path is provided it will load it direct from a file.
14717 * @see elm_toolbar_item_icon_set()
14718 * @see elm_toolbar_item_del()
14719 * @see elm_toolbar_item_del_cb_set()
14723 EAPI Elm_Toolbar_Item *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14726 * Prepend item to the toolbar.
14728 * @param obj The toolbar object.
14729 * @param icon A string with icon name or the absolute path of an image file.
14730 * @param label The label of the item.
14731 * @param func The function to call when the item is clicked.
14732 * @param data The data to associate with the item for related callbacks.
14733 * @return The created item or @c NULL upon failure.
14735 * A new item will be created and prepended to the toolbar, i.e., will
14736 * be set as @b first item.
14738 * Items created with this method can be deleted with
14739 * elm_toolbar_item_del().
14741 * Associated @p data can be properly freed when item is deleted if a
14742 * callback function is set with elm_toolbar_item_del_cb_set().
14744 * If a function is passed as argument, it will be called everytime this item
14745 * is selected, i.e., the user clicks over an unselected item.
14746 * If such function isn't needed, just passing
14747 * @c NULL as @p func is enough. The same should be done for @p data.
14749 * Toolbar will load icon image from fdo or current theme.
14750 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14751 * If an absolute path is provided it will load it direct from a file.
14753 * @see elm_toolbar_item_icon_set()
14754 * @see elm_toolbar_item_del()
14755 * @see elm_toolbar_item_del_cb_set()
14759 EAPI Elm_Toolbar_Item *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14762 * Insert a new item into the toolbar object before item @p before.
14764 * @param obj The toolbar object.
14765 * @param before The toolbar item to insert before.
14766 * @param icon A string with icon name or the absolute path of an image file.
14767 * @param label The label of the item.
14768 * @param func The function to call when the item is clicked.
14769 * @param data The data to associate with the item for related callbacks.
14770 * @return The created item or @c NULL upon failure.
14772 * A new item will be created and added to the toolbar. Its position in
14773 * this toolbar will be just before item @p before.
14775 * Items created with this method can be deleted with
14776 * elm_toolbar_item_del().
14778 * Associated @p data can be properly freed when item is deleted if a
14779 * callback function is set with elm_toolbar_item_del_cb_set().
14781 * If a function is passed as argument, it will be called everytime this item
14782 * is selected, i.e., the user clicks over an unselected item.
14783 * If such function isn't needed, just passing
14784 * @c NULL as @p func is enough. The same should be done for @p data.
14786 * Toolbar will load icon image from fdo or current theme.
14787 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14788 * If an absolute path is provided it will load it direct from a file.
14790 * @see elm_toolbar_item_icon_set()
14791 * @see elm_toolbar_item_del()
14792 * @see elm_toolbar_item_del_cb_set()
14796 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Toolbar_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14799 * Insert a new item into the toolbar object after item @p after.
14801 * @param obj The toolbar object.
14802 * @param after The toolbar item to insert after.
14803 * @param icon A string with icon name or the absolute path of an image file.
14804 * @param label The label of the item.
14805 * @param func The function to call when the item is clicked.
14806 * @param data The data to associate with the item for related callbacks.
14807 * @return The created item or @c NULL upon failure.
14809 * A new item will be created and added to the toolbar. Its position in
14810 * this toolbar will be just after item @p after.
14812 * Items created with this method can be deleted with
14813 * elm_toolbar_item_del().
14815 * Associated @p data can be properly freed when item is deleted if a
14816 * callback function is set with elm_toolbar_item_del_cb_set().
14818 * If a function is passed as argument, it will be called everytime this item
14819 * is selected, i.e., the user clicks over an unselected item.
14820 * If such function isn't needed, just passing
14821 * @c NULL as @p func is enough. The same should be done for @p data.
14823 * Toolbar will load icon image from fdo or current theme.
14824 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14825 * If an absolute path is provided it will load it direct from a file.
14827 * @see elm_toolbar_item_icon_set()
14828 * @see elm_toolbar_item_del()
14829 * @see elm_toolbar_item_del_cb_set()
14833 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Toolbar_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14836 * Get the first item in the given toolbar widget's list of
14839 * @param obj The toolbar object
14840 * @return The first item or @c NULL, if it has no items (and on
14843 * @see elm_toolbar_item_append()
14844 * @see elm_toolbar_last_item_get()
14848 EAPI Elm_Toolbar_Item *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14851 * Get the last item in the given toolbar widget's list of
14854 * @param obj The toolbar object
14855 * @return The last item or @c NULL, if it has no items (and on
14858 * @see elm_toolbar_item_prepend()
14859 * @see elm_toolbar_first_item_get()
14863 EAPI Elm_Toolbar_Item *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14866 * Get the item after @p item in toolbar.
14868 * @param item The toolbar item.
14869 * @return The item after @p item, or @c NULL if none or on failure.
14871 * @note If it is the last item, @c NULL will be returned.
14873 * @see elm_toolbar_item_append()
14877 EAPI Elm_Toolbar_Item *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14880 * Get the item before @p item in toolbar.
14882 * @param item The toolbar item.
14883 * @return The item before @p item, or @c NULL if none or on failure.
14885 * @note If it is the first item, @c NULL will be returned.
14887 * @see elm_toolbar_item_prepend()
14891 EAPI Elm_Toolbar_Item *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14894 * Get the toolbar object from an item.
14896 * @param item The item.
14897 * @return The toolbar object.
14899 * This returns the toolbar object itself that an item belongs to.
14903 EAPI Evas_Object *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14906 * Set the priority of a toolbar item.
14908 * @param item The toolbar item.
14909 * @param priority The item priority. The default is zero.
14911 * This is used only when the toolbar shrink mode is set to
14912 * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
14913 * When space is less than required, items with low priority
14914 * will be removed from the toolbar and added to a dynamically-created menu,
14915 * while items with higher priority will remain on the toolbar,
14916 * with the same order they were added.
14918 * @see elm_toolbar_item_priority_get()
14922 EAPI void elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
14925 * Get the priority of a toolbar item.
14927 * @param item The toolbar item.
14928 * @return The @p item priority, or @c 0 on failure.
14930 * @see elm_toolbar_item_priority_set() for details.
14934 EAPI int elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14937 * Get the label of item.
14939 * @param item The item of toolbar.
14940 * @return The label of item.
14942 * The return value is a pointer to the label associated to @p item when
14943 * it was created, with function elm_toolbar_item_append() or similar,
14945 * with function elm_toolbar_item_label_set. If no label
14946 * was passed as argument, it will return @c NULL.
14948 * @see elm_toolbar_item_label_set() for more details.
14949 * @see elm_toolbar_item_append()
14953 EAPI const char *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14956 * Set the label of item.
14958 * @param item The item of toolbar.
14959 * @param text The label of item.
14961 * The label to be displayed by the item.
14962 * Label will be placed at icons bottom (if set).
14964 * If a label was passed as argument on item creation, with function
14965 * elm_toolbar_item_append() or similar, it will be already
14966 * displayed by the item.
14968 * @see elm_toolbar_item_label_get()
14969 * @see elm_toolbar_item_append()
14973 EAPI void elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
14976 * Return the data associated with a given toolbar widget item.
14978 * @param item The toolbar widget item handle.
14979 * @return The data associated with @p item.
14981 * @see elm_toolbar_item_data_set()
14985 EAPI void *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14988 * Set the data associated with a given toolbar widget item.
14990 * @param item The toolbar widget item handle.
14991 * @param data The new data pointer to set to @p item.
14993 * This sets new item data on @p item.
14995 * @warning The old data pointer won't be touched by this function, so
14996 * the user had better to free that old data himself/herself.
15000 EAPI void elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
15003 * Returns a pointer to a toolbar item by its label.
15005 * @param obj The toolbar object.
15006 * @param label The label of the item to find.
15008 * @return The pointer to the toolbar item matching @p label or @c NULL
15013 EAPI Elm_Toolbar_Item *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15016 * Get whether the @p item is selected or not.
15018 * @param item The toolbar item.
15019 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15020 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15022 * @see elm_toolbar_selected_item_set() for details.
15023 * @see elm_toolbar_item_selected_get()
15027 EAPI Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15030 * Set the selected state of an item.
15032 * @param item The toolbar item
15033 * @param selected The selected state
15035 * This sets the selected state of the given item @p it.
15036 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15038 * If a new item is selected the previosly selected will be unselected.
15039 * Previoulsy selected item can be get with function
15040 * elm_toolbar_selected_item_get().
15042 * Selected items will be highlighted.
15044 * @see elm_toolbar_item_selected_get()
15045 * @see elm_toolbar_selected_item_get()
15049 EAPI void elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15052 * Get the selected item.
15054 * @param obj The toolbar object.
15055 * @return The selected toolbar item.
15057 * The selected item can be unselected with function
15058 * elm_toolbar_item_selected_set().
15060 * The selected item always will be highlighted on toolbar.
15062 * @see elm_toolbar_selected_items_get()
15066 EAPI Elm_Toolbar_Item *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15069 * Set the icon associated with @p item.
15071 * @param obj The parent of this item.
15072 * @param item The toolbar item.
15073 * @param icon A string with icon name or the absolute path of an image file.
15075 * Toolbar will load icon image from fdo or current theme.
15076 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15077 * If an absolute path is provided it will load it direct from a file.
15079 * @see elm_toolbar_icon_order_lookup_set()
15080 * @see elm_toolbar_icon_order_lookup_get()
15084 EAPI void elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
15087 * Get the string used to set the icon of @p item.
15089 * @param item The toolbar item.
15090 * @return The string associated with the icon object.
15092 * @see elm_toolbar_item_icon_set() for details.
15096 EAPI const char *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15099 * Get the object of @p item.
15101 * @param item The toolbar item.
15102 * @return The object
15106 EAPI Evas_Object *elm_toolbar_item_object_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15109 * Get the icon object of @p item.
15111 * @param item The toolbar item.
15112 * @return The icon object
15114 * @see elm_toolbar_item_icon_set() or elm_toolbar_item_icon_memfile_set() for details.
15118 EAPI Evas_Object *elm_toolbar_item_icon_object_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15121 * Set the icon associated with @p item to an image in a binary buffer.
15123 * @param item The toolbar item.
15124 * @param img The binary data that will be used as an image
15125 * @param size The size of binary data @p img
15126 * @param format Optional format of @p img to pass to the image loader
15127 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
15129 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
15131 * @note The icon image set by this function can be changed by
15132 * elm_toolbar_item_icon_set().
15136 EAPI Eina_Bool elm_toolbar_item_icon_memfile_set(Elm_Toolbar_Item *item, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1);
15139 * Delete them item from the toolbar.
15141 * @param item The item of toolbar to be deleted.
15143 * @see elm_toolbar_item_append()
15144 * @see elm_toolbar_item_del_cb_set()
15148 EAPI void elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15151 * Set the function called when a toolbar item is freed.
15153 * @param item The item to set the callback on.
15154 * @param func The function called.
15156 * If there is a @p func, then it will be called prior item's memory release.
15157 * That will be called with the following arguments:
15159 * @li item's Evas object;
15162 * This way, a data associated to a toolbar item could be properly freed.
15166 EAPI void elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15169 * Get a value whether toolbar item is disabled or not.
15171 * @param item The item.
15172 * @return The disabled state.
15174 * @see elm_toolbar_item_disabled_set() for more details.
15178 EAPI Eina_Bool elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15181 * Sets the disabled/enabled state of a toolbar item.
15183 * @param item The item.
15184 * @param disabled The disabled state.
15186 * A disabled item cannot be selected or unselected. It will also
15187 * change its appearance (generally greyed out). This sets the
15188 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15193 EAPI void elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15196 * Set or unset item as a separator.
15198 * @param item The toolbar item.
15199 * @param setting @c EINA_TRUE to set item @p item as separator or
15200 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
15202 * Items aren't set as separator by default.
15204 * If set as separator it will display separator theme, so won't display
15207 * @see elm_toolbar_item_separator_get()
15211 EAPI void elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
15214 * Get a value whether item is a separator or not.
15216 * @param item The toolbar item.
15217 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
15218 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
15220 * @see elm_toolbar_item_separator_set() for details.
15224 EAPI Eina_Bool elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15227 * Set the shrink state of toolbar @p obj.
15229 * @param obj The toolbar object.
15230 * @param shrink_mode Toolbar's items display behavior.
15232 * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
15233 * but will enforce a minimun size so all the items will fit, won't scroll
15234 * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
15235 * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
15236 * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
15240 EAPI void elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
15243 * Get the shrink mode of toolbar @p obj.
15245 * @param obj The toolbar object.
15246 * @return Toolbar's items display behavior.
15248 * @see elm_toolbar_mode_shrink_set() for details.
15252 EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15255 * Enable/disable homogenous mode.
15257 * @param obj The toolbar object
15258 * @param homogeneous Assume the items within the toolbar are of the
15259 * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15261 * This will enable the homogeneous mode where items are of the same size.
15262 * @see elm_toolbar_homogeneous_get()
15266 EAPI void elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
15269 * Get whether the homogenous mode is enabled.
15271 * @param obj The toolbar object.
15272 * @return Assume the items within the toolbar are of the same height
15273 * and width (EINA_TRUE = on, EINA_FALSE = off).
15275 * @see elm_toolbar_homogeneous_set()
15279 EAPI Eina_Bool elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15282 * Enable/disable homogenous mode.
15284 * @param obj The toolbar object
15285 * @param homogeneous Assume the items within the toolbar are of the
15286 * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15288 * This will enable the homogeneous mode where items are of the same size.
15289 * @see elm_toolbar_homogeneous_get()
15291 * @deprecated use elm_toolbar_homogeneous_set() instead.
15295 EINA_DEPRECATED EAPI void elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
15298 * Get whether the homogenous mode is enabled.
15300 * @param obj The toolbar object.
15301 * @return Assume the items within the toolbar are of the same height
15302 * and width (EINA_TRUE = on, EINA_FALSE = off).
15304 * @see elm_toolbar_homogeneous_set()
15305 * @deprecated use elm_toolbar_homogeneous_get() instead.
15309 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15312 * Set the parent object of the toolbar items' menus.
15314 * @param obj The toolbar object.
15315 * @param parent The parent of the menu objects.
15317 * Each item can be set as item menu, with elm_toolbar_item_menu_set().
15319 * For more details about setting the parent for toolbar menus, see
15320 * elm_menu_parent_set().
15322 * @see elm_menu_parent_set() for details.
15323 * @see elm_toolbar_item_menu_set() for details.
15327 EAPI void elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15330 * Get the parent object of the toolbar items' menus.
15332 * @param obj The toolbar object.
15333 * @return The parent of the menu objects.
15335 * @see elm_toolbar_menu_parent_set() for details.
15339 EAPI Evas_Object *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15342 * Set the alignment of the items.
15344 * @param obj The toolbar object.
15345 * @param align The new alignment, a float between <tt> 0.0 </tt>
15346 * and <tt> 1.0 </tt>.
15348 * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
15349 * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
15352 * Centered items by default.
15354 * @see elm_toolbar_align_get()
15358 EAPI void elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
15361 * Get the alignment of the items.
15363 * @param obj The toolbar object.
15364 * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
15367 * @see elm_toolbar_align_set() for details.
15371 EAPI double elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15374 * Set whether the toolbar item opens a menu.
15376 * @param item The toolbar item.
15377 * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
15379 * A toolbar item can be set to be a menu, using this function.
15381 * Once it is set to be a menu, it can be manipulated through the
15382 * menu-like function elm_toolbar_menu_parent_set() and the other
15383 * elm_menu functions, using the Evas_Object @c menu returned by
15384 * elm_toolbar_item_menu_get().
15386 * So, items to be displayed in this item's menu should be added with
15387 * elm_menu_item_add().
15389 * The following code exemplifies the most basic usage:
15391 * tb = elm_toolbar_add(win)
15392 * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
15393 * elm_toolbar_item_menu_set(item, EINA_TRUE);
15394 * elm_toolbar_menu_parent_set(tb, win);
15395 * menu = elm_toolbar_item_menu_get(item);
15396 * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
15397 * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
15401 * @see elm_toolbar_item_menu_get()
15405 EAPI void elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
15408 * Get toolbar item's menu.
15410 * @param item The toolbar item.
15411 * @return Item's menu object or @c NULL on failure.
15413 * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
15414 * this function will set it.
15416 * @see elm_toolbar_item_menu_set() for details.
15420 EAPI Evas_Object *elm_toolbar_item_menu_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15423 * Add a new state to @p item.
15425 * @param item The item.
15426 * @param icon A string with icon name or the absolute path of an image file.
15427 * @param label The label of the new state.
15428 * @param func The function to call when the item is clicked when this
15429 * state is selected.
15430 * @param data The data to associate with the state.
15431 * @return The toolbar item state, or @c NULL upon failure.
15433 * Toolbar will load icon image from fdo or current theme.
15434 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15435 * If an absolute path is provided it will load it direct from a file.
15437 * States created with this function can be removed with
15438 * elm_toolbar_item_state_del().
15440 * @see elm_toolbar_item_state_del()
15441 * @see elm_toolbar_item_state_sel()
15442 * @see elm_toolbar_item_state_get()
15446 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Toolbar_Item *item, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15449 * Delete a previoulsy added state to @p item.
15451 * @param item The toolbar item.
15452 * @param state The state to be deleted.
15453 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15455 * @see elm_toolbar_item_state_add()
15457 EAPI Eina_Bool elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15460 * Set @p state as the current state of @p it.
15462 * @param it The item.
15463 * @param state The state to use.
15464 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15466 * If @p state is @c NULL, it won't select any state and the default item's
15467 * icon and label will be used. It's the same behaviour than
15468 * elm_toolbar_item_state_unser().
15470 * @see elm_toolbar_item_state_unset()
15474 EAPI Eina_Bool elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15477 * Unset the state of @p it.
15479 * @param it The item.
15481 * The default icon and label from this item will be displayed.
15483 * @see elm_toolbar_item_state_set() for more details.
15487 EAPI void elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15490 * Get the current state of @p it.
15492 * @param item The item.
15493 * @return The selected state or @c NULL if none is selected or on failure.
15495 * @see elm_toolbar_item_state_set() for details.
15496 * @see elm_toolbar_item_state_unset()
15497 * @see elm_toolbar_item_state_add()
15501 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15504 * Get the state after selected state in toolbar's @p item.
15506 * @param it The toolbar item to change state.
15507 * @return The state after current state, or @c NULL on failure.
15509 * If last state is selected, this function will return first state.
15511 * @see elm_toolbar_item_state_set()
15512 * @see elm_toolbar_item_state_add()
15516 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15519 * Get the state before selected state in toolbar's @p item.
15521 * @param it The toolbar item to change state.
15522 * @return The state before current state, or @c NULL on failure.
15524 * If first state is selected, this function will return last state.
15526 * @see elm_toolbar_item_state_set()
15527 * @see elm_toolbar_item_state_add()
15531 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15534 * Set the text to be shown in a given toolbar item's tooltips.
15536 * @param item Target item.
15537 * @param text The text to set in the content.
15539 * Setup the text as tooltip to object. The item can have only one tooltip,
15540 * so any previous tooltip data - set with this function or
15541 * elm_toolbar_item_tooltip_content_cb_set() - is removed.
15543 * @see elm_object_tooltip_text_set() for more details.
15547 EAPI void elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
15550 * Set the content to be shown in the tooltip item.
15552 * Setup the tooltip to item. The item can have only one tooltip,
15553 * so any previous tooltip data is removed. @p func(with @p data) will
15554 * be called every time that need show the tooltip and it should
15555 * return a valid Evas_Object. This object is then managed fully by
15556 * tooltip system and is deleted when the tooltip is gone.
15558 * @param item the toolbar item being attached a tooltip.
15559 * @param func the function used to create the tooltip contents.
15560 * @param data what to provide to @a func as callback data/context.
15561 * @param del_cb called when data is not needed anymore, either when
15562 * another callback replaces @a func, the tooltip is unset with
15563 * elm_toolbar_item_tooltip_unset() or the owner @a item
15564 * dies. This callback receives as the first parameter the
15565 * given @a data, and @c event_info is the item.
15567 * @see elm_object_tooltip_content_cb_set() for more details.
15571 EAPI void elm_toolbar_item_tooltip_content_cb_set(Elm_Toolbar_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
15574 * Unset tooltip from item.
15576 * @param item toolbar item to remove previously set tooltip.
15578 * Remove tooltip from item. The callback provided as del_cb to
15579 * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
15580 * it is not used anymore.
15582 * @see elm_object_tooltip_unset() for more details.
15583 * @see elm_toolbar_item_tooltip_content_cb_set()
15587 EAPI void elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15590 * Sets a different style for this item tooltip.
15592 * @note before you set a style you should define a tooltip with
15593 * elm_toolbar_item_tooltip_content_cb_set() or
15594 * elm_toolbar_item_tooltip_text_set()
15596 * @param item toolbar item with tooltip already set.
15597 * @param style the theme style to use (default, transparent, ...)
15599 * @see elm_object_tooltip_style_set() for more details.
15603 EAPI void elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15606 * Get the style for this item tooltip.
15608 * @param item toolbar item with tooltip already set.
15609 * @return style the theme style in use, defaults to "default". If the
15610 * object does not have a tooltip set, then NULL is returned.
15612 * @see elm_object_tooltip_style_get() for more details.
15613 * @see elm_toolbar_item_tooltip_style_set()
15617 EAPI const char *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15620 * Set the type of mouse pointer/cursor decoration to be shown,
15621 * when the mouse pointer is over the given toolbar widget item
15623 * @param item toolbar item to customize cursor on
15624 * @param cursor the cursor type's name
15626 * This function works analogously as elm_object_cursor_set(), but
15627 * here the cursor's changing area is restricted to the item's
15628 * area, and not the whole widget's. Note that that item cursors
15629 * have precedence over widget cursors, so that a mouse over an
15630 * item with custom cursor set will always show @b that cursor.
15632 * If this function is called twice for an object, a previously set
15633 * cursor will be unset on the second call.
15635 * @see elm_object_cursor_set()
15636 * @see elm_toolbar_item_cursor_get()
15637 * @see elm_toolbar_item_cursor_unset()
15641 EAPI void elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15644 * Get the type of mouse pointer/cursor decoration set to be shown,
15645 * when the mouse pointer is over the given toolbar widget item
15647 * @param item toolbar item with custom cursor set
15648 * @return the cursor type's name or @c NULL, if no custom cursors
15649 * were set to @p item (and on errors)
15651 * @see elm_object_cursor_get()
15652 * @see elm_toolbar_item_cursor_set()
15653 * @see elm_toolbar_item_cursor_unset()
15657 EAPI const char *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15660 * Unset any custom mouse pointer/cursor decoration set to be
15661 * shown, when the mouse pointer is over the given toolbar widget
15662 * item, thus making it show the @b default cursor again.
15664 * @param item a toolbar item
15666 * Use this call to undo any custom settings on this item's cursor
15667 * decoration, bringing it back to defaults (no custom style set).
15669 * @see elm_object_cursor_unset()
15670 * @see elm_toolbar_item_cursor_set()
15674 EAPI void elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15677 * Set a different @b style for a given custom cursor set for a
15680 * @param item toolbar item with custom cursor set
15681 * @param style the <b>theme style</b> to use (e.g. @c "default",
15682 * @c "transparent", etc)
15684 * This function only makes sense when one is using custom mouse
15685 * cursor decorations <b>defined in a theme file</b>, which can have,
15686 * given a cursor name/type, <b>alternate styles</b> on it. It
15687 * works analogously as elm_object_cursor_style_set(), but here
15688 * applyed only to toolbar item objects.
15690 * @warning Before you set a cursor style you should have definen a
15691 * custom cursor previously on the item, with
15692 * elm_toolbar_item_cursor_set()
15694 * @see elm_toolbar_item_cursor_engine_only_set()
15695 * @see elm_toolbar_item_cursor_style_get()
15699 EAPI void elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15702 * Get the current @b style set for a given toolbar item's custom
15705 * @param item toolbar item with custom cursor set.
15706 * @return style the cursor style in use. If the object does not
15707 * have a cursor set, then @c NULL is returned.
15709 * @see elm_toolbar_item_cursor_style_set() for more details
15713 EAPI const char *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15716 * Set if the (custom)cursor for a given toolbar item should be
15717 * searched in its theme, also, or should only rely on the
15718 * rendering engine.
15720 * @param item item with custom (custom) cursor already set on
15721 * @param engine_only Use @c EINA_TRUE to have cursors looked for
15722 * only on those provided by the rendering engine, @c EINA_FALSE to
15723 * have them searched on the widget's theme, as well.
15725 * @note This call is of use only if you've set a custom cursor
15726 * for toolbar items, with elm_toolbar_item_cursor_set().
15728 * @note By default, cursors will only be looked for between those
15729 * provided by the rendering engine.
15733 EAPI void elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15736 * Get if the (custom) cursor for a given toolbar item is being
15737 * searched in its theme, also, or is only relying on the rendering
15740 * @param item a toolbar item
15741 * @return @c EINA_TRUE, if cursors are being looked for only on
15742 * those provided by the rendering engine, @c EINA_FALSE if they
15743 * are being searched on the widget's theme, as well.
15745 * @see elm_toolbar_item_cursor_engine_only_set(), for more details
15749 EAPI Eina_Bool elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15752 * Change a toolbar's orientation
15753 * @param obj The toolbar object
15754 * @param vertical If @c EINA_TRUE, the toolbar is vertical
15755 * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15757 * @deprecated use elm_toolbar_horizontal_set() instead.
15759 EINA_DEPRECATED EAPI void elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
15762 * Change a toolbar's orientation
15763 * @param obj The toolbar object
15764 * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
15765 * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15768 EAPI void elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15771 * Get a toolbar's orientation
15772 * @param obj The toolbar object
15773 * @return If @c EINA_TRUE, the toolbar is vertical
15774 * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15776 * @deprecated use elm_toolbar_horizontal_get() instead.
15778 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15781 * Get a toolbar's orientation
15782 * @param obj The toolbar object
15783 * @return If @c EINA_TRUE, the toolbar is horizontal
15784 * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15787 EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
15793 * @defgroup Tooltips Tooltips
15795 * The Tooltip is an (internal, for now) smart object used to show a
15796 * content in a frame on mouse hover of objects(or widgets), with
15797 * tips/information about them.
15802 EAPI double elm_tooltip_delay_get(void);
15803 EAPI Eina_Bool elm_tooltip_delay_set(double delay);
15804 EAPI void elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
15805 EAPI void elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
15806 EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
15807 EAPI void elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text) EINA_ARG_NONNULL(1, 3);
15808 #define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
15809 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);
15810 EAPI void elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15811 EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15812 EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15813 EAPI Eina_Bool elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
15814 EAPI Eina_Bool elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15821 * @defgroup Cursors Cursors
15823 * The Elementary cursor is an internal smart object used to
15824 * customize the mouse cursor displayed over objects (or
15825 * widgets). In the most common scenario, the cursor decoration
15826 * comes from the graphical @b engine Elementary is running
15827 * on. Those engines may provide different decorations for cursors,
15828 * and Elementary provides functions to choose them (think of X11
15829 * cursors, as an example).
15831 * There's also the possibility of, besides using engine provided
15832 * cursors, also use ones coming from Edje theming files. Both
15833 * globally and per widget, Elementary makes it possible for one to
15834 * make the cursors lookup to be held on engines only or on
15835 * Elementary's theme file, too. To set cursor's hot spot,
15836 * two data items should be added to cursor's theme: "hot_x" and
15837 * "hot_y", that are the offset from upper-left corner of the cursor
15838 * (coordinates 0,0).
15844 * Set the cursor to be shown when mouse is over the object
15846 * Set the cursor that will be displayed when mouse is over the
15847 * object. The object can have only one cursor set to it, so if
15848 * this function is called twice for an object, the previous set
15850 * If using X cursors, a definition of all the valid cursor names
15851 * is listed on Elementary_Cursors.h. If an invalid name is set
15852 * the default cursor will be used.
15854 * @param obj the object being set a cursor.
15855 * @param cursor the cursor name to be used.
15859 EAPI void elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
15862 * Get the cursor to be shown when mouse is over the object
15864 * @param obj an object with cursor already set.
15865 * @return the cursor name.
15869 EAPI const char *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15872 * Unset cursor for object
15874 * Unset cursor for object, and set the cursor to default if the mouse
15875 * was over this object.
15877 * @param obj Target object
15878 * @see elm_object_cursor_set()
15882 EAPI void elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15885 * Sets a different style for this object cursor.
15887 * @note before you set a style you should define a cursor with
15888 * elm_object_cursor_set()
15890 * @param obj an object with cursor already set.
15891 * @param style the theme style to use (default, transparent, ...)
15895 EAPI void elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15898 * Get the style for this object cursor.
15900 * @param obj an object with cursor already set.
15901 * @return style the theme style in use, defaults to "default". If the
15902 * object does not have a cursor set, then NULL is returned.
15906 EAPI const char *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15909 * Set if the cursor set should be searched on the theme or should use
15910 * the provided by the engine, only.
15912 * @note before you set if should look on theme you should define a cursor
15913 * with elm_object_cursor_set(). By default it will only look for cursors
15914 * provided by the engine.
15916 * @param obj an object with cursor already set.
15917 * @param engine_only boolean to define it cursors should be looked only
15918 * between the provided by the engine or searched on widget's theme as well.
15922 EAPI void elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15925 * Get the cursor engine only usage for this object cursor.
15927 * @param obj an object with cursor already set.
15928 * @return engine_only boolean to define it cursors should be
15929 * looked only between the provided by the engine or searched on
15930 * widget's theme as well. If the object does not have a cursor
15931 * set, then EINA_FALSE is returned.
15935 EAPI Eina_Bool elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15938 * Get the configured cursor engine only usage
15940 * This gets the globally configured exclusive usage of engine cursors.
15942 * @return 1 if only engine cursors should be used
15945 EAPI int elm_cursor_engine_only_get(void);
15948 * Set the configured cursor engine only usage
15950 * This sets the globally configured exclusive usage of engine cursors.
15951 * It won't affect cursors set before changing this value.
15953 * @param engine_only If 1 only engine cursors will be enabled, if 0 will
15954 * look for them on theme before.
15955 * @return EINA_TRUE if value is valid and setted (0 or 1)
15958 EAPI Eina_Bool elm_cursor_engine_only_set(int engine_only);
15965 * @defgroup Menu Menu
15967 * @image html img/widget/menu/preview-00.png
15968 * @image latex img/widget/menu/preview-00.eps
15970 * A menu is a list of items displayed above its parent. When the menu is
15971 * showing its parent is darkened. Each item can have a sub-menu. The menu
15972 * object can be used to display a menu on a right click event, in a toolbar,
15975 * Signals that you can add callbacks for are:
15976 * @li "clicked" - the user clicked the empty space in the menu to dismiss.
15977 * event_info is NULL.
15979 * @see @ref tutorial_menu
15982 typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
15984 * @brief Add a new menu to the parent
15986 * @param parent The parent object.
15987 * @return The new object or NULL if it cannot be created.
15989 EAPI Evas_Object *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15991 * @brief Set the parent for the given menu widget
15993 * @param obj The menu object.
15994 * @param parent The new parent.
15996 EAPI void elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15998 * @brief Get the parent for the given menu widget
16000 * @param obj The menu object.
16001 * @return The parent.
16003 * @see elm_menu_parent_set()
16005 EAPI Evas_Object *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16007 * @brief Move the menu to a new position
16009 * @param obj The menu object.
16010 * @param x The new position.
16011 * @param y The new position.
16013 * Sets the top-left position of the menu to (@p x,@p y).
16015 * @note @p x and @p y coordinates are relative to parent.
16017 EAPI void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
16019 * @brief Close a opened menu
16021 * @param obj the menu object
16024 * Hides the menu and all it's sub-menus.
16026 EAPI void elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
16028 * @brief Returns a list of @p item's items.
16030 * @param obj The menu object
16031 * @return An Eina_List* of @p item's items
16033 EAPI const Eina_List *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16035 * @brief Get the Evas_Object of an Elm_Menu_Item
16037 * @param item The menu item object.
16038 * @return The edje object containing the swallowed content
16040 * @warning Don't manipulate this object!
16042 EAPI Evas_Object *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16044 * @brief Add an item at the end of the given menu widget
16046 * @param obj The menu object.
16047 * @param parent The parent menu item (optional)
16048 * @param icon A icon display on the item. The icon will be destryed by the menu.
16049 * @param label The label of the item.
16050 * @param func Function called when the user select the item.
16051 * @param data Data sent by the callback.
16052 * @return Returns the new item.
16054 EAPI Elm_Menu_Item *elm_menu_item_add(Evas_Object *obj, Elm_Menu_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16056 * @brief Add an object swallowed in an item at the end of the given menu
16059 * @param obj The menu object.
16060 * @param parent The parent menu item (optional)
16061 * @param subobj The object to swallow
16062 * @param func Function called when the user select the item.
16063 * @param data Data sent by the callback.
16064 * @return Returns the new item.
16066 * Add an evas object as an item to the menu.
16068 EAPI Elm_Menu_Item *elm_menu_item_add_object(Evas_Object *obj, Elm_Menu_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16070 * @brief Set the label of a menu item
16072 * @param item The menu item object.
16073 * @param label The label to set for @p item
16075 * @warning Don't use this funcion on items created with
16076 * elm_menu_item_add_object() or elm_menu_item_separator_add().
16078 EAPI void elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
16080 * @brief Get the label of a menu item
16082 * @param item The menu item object.
16083 * @return The label of @p item
16085 EAPI const char *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16087 * @brief Set the icon of a menu item to the standard icon with name @p icon
16089 * @param item The menu item object.
16090 * @param icon The icon object to set for the content of @p item
16092 * Once this icon is set, any previously set icon will be deleted.
16094 EAPI void elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
16096 * @brief Get the string representation from the icon of a menu item
16098 * @param item The menu item object.
16099 * @return The string representation of @p item's icon or NULL
16101 * @see elm_menu_item_object_icon_name_set()
16103 EAPI const char *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16105 * @brief Set the content object of a menu item
16107 * @param item The menu item object
16108 * @param The content object or NULL
16109 * @return EINA_TRUE on success, else EINA_FALSE
16111 * Use this function to change the object swallowed by a menu item, deleting
16112 * any previously swallowed object.
16114 EAPI Eina_Bool elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
16116 * @brief Get the content object of a menu item
16118 * @param item The menu item object
16119 * @return The content object or NULL
16120 * @note If @p item was added with elm_menu_item_add_object, this
16121 * function will return the object passed, else it will return the
16124 * @see elm_menu_item_object_content_set()
16126 EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16128 * @brief Set the selected state of @p item.
16130 * @param item The menu item object.
16131 * @param selected The selected/unselected state of the item
16133 EAPI void elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16135 * @brief Get the selected state of @p item.
16137 * @param item The menu item object.
16138 * @return The selected/unselected state of the item
16140 * @see elm_menu_item_selected_set()
16142 EAPI Eina_Bool elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16144 * @brief Set the disabled state of @p item.
16146 * @param item The menu item object.
16147 * @param disabled The enabled/disabled state of the item
16149 EAPI void elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16151 * @brief Get the disabled state of @p item.
16153 * @param item The menu item object.
16154 * @return The enabled/disabled state of the item
16156 * @see elm_menu_item_disabled_set()
16158 EAPI Eina_Bool elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16160 * @brief Add a separator item to menu @p obj under @p parent.
16162 * @param obj The menu object
16163 * @param parent The item to add the separator under
16164 * @return The created item or NULL on failure
16166 * This is item is a @ref Separator.
16168 EAPI Elm_Menu_Item *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
16170 * @brief Returns whether @p item is a separator.
16172 * @param item The item to check
16173 * @return If true, @p item is a separator
16175 * @see elm_menu_item_separator_add()
16177 EAPI Eina_Bool elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16179 * @brief Deletes an item from the menu.
16181 * @param item The item to delete.
16183 * @see elm_menu_item_add()
16185 EAPI void elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16187 * @brief Set the function called when a menu item is deleted.
16189 * @param item The item to set the callback on
16190 * @param func The function called
16192 * @see elm_menu_item_add()
16193 * @see elm_menu_item_del()
16195 EAPI void elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16197 * @brief Returns the data associated with menu item @p item.
16199 * @param item The item
16200 * @return The data associated with @p item or NULL if none was set.
16202 * This is the data set with elm_menu_add() or elm_menu_item_data_set().
16204 EAPI void *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16206 * @brief Sets the data to be associated with menu item @p item.
16208 * @param item The item
16209 * @param data The data to be associated with @p item
16211 EAPI void elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
16213 * @brief Returns a list of @p item's subitems.
16215 * @param item The item
16216 * @return An Eina_List* of @p item's subitems
16218 * @see elm_menu_add()
16220 EAPI const Eina_List *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16222 * @brief Get the position of a menu item
16224 * @param item The menu item
16225 * @return The item's index
16227 * This function returns the index position of a menu item in a menu.
16228 * For a sub-menu, this number is relative to the first item in the sub-menu.
16230 * @note Index values begin with 0
16232 EAPI unsigned int elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
16234 * @brief @brief Return a menu item's owner menu
16236 * @param item The menu item
16237 * @return The menu object owning @p item, or NULL on failure
16239 * Use this function to get the menu object owning an item.
16241 EAPI Evas_Object *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
16243 * @brief Get the selected item in the menu
16245 * @param obj The menu object
16246 * @return The selected item, or NULL if none
16248 * @see elm_menu_item_selected_get()
16249 * @see elm_menu_item_selected_set()
16251 EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16253 * @brief Get the last item in the menu
16255 * @param obj The menu object
16256 * @return The last item, or NULL if none
16258 EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16260 * @brief Get the first item in the menu
16262 * @param obj The menu object
16263 * @return The first item, or NULL if none
16265 EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16267 * @brief Get the next item in the menu.
16269 * @param item The menu item object.
16270 * @return The item after it, or NULL if none
16272 EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16274 * @brief Get the previous item in the menu.
16276 * @param item The menu item object.
16277 * @return The item before it, or NULL if none
16279 EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16285 * @defgroup List List
16286 * @ingroup Elementary
16288 * @image html img/widget/list/preview-00.png
16289 * @image latex img/widget/list/preview-00.eps width=\textwidth
16291 * @image html img/list.png
16292 * @image latex img/list.eps width=\textwidth
16294 * A list widget is a container whose children are displayed vertically or
16295 * horizontally, in order, and can be selected.
16296 * The list can accept only one or multiple items selection. Also has many
16297 * modes of items displaying.
16299 * A list is a very simple type of list widget. For more robust
16300 * lists, @ref Genlist should probably be used.
16302 * Smart callbacks one can listen to:
16303 * - @c "activated" - The user has double-clicked or pressed
16304 * (enter|return|spacebar) on an item. The @c event_info parameter
16305 * is the item that was activated.
16306 * - @c "clicked,double" - The user has double-clicked an item.
16307 * The @c event_info parameter is the item that was double-clicked.
16308 * - "selected" - when the user selected an item
16309 * - "unselected" - when the user unselected an item
16310 * - "longpressed" - an item in the list is long-pressed
16311 * - "edge,top" - the list is scrolled until the top edge
16312 * - "edge,bottom" - the list is scrolled until the bottom edge
16313 * - "edge,left" - the list is scrolled until the left edge
16314 * - "edge,right" - the list is scrolled until the right edge
16315 * - "language,changed" - the program's language changed
16317 * Available styles for it:
16320 * List of examples:
16321 * @li @ref list_example_01
16322 * @li @ref list_example_02
16323 * @li @ref list_example_03
16332 * @enum _Elm_List_Mode
16333 * @typedef Elm_List_Mode
16335 * Set list's resize behavior, transverse axis scroll and
16336 * items cropping. See each mode's description for more details.
16338 * @note Default value is #ELM_LIST_SCROLL.
16340 * Values <b> don't </b> work as bitmask, only one can be choosen.
16342 * @see elm_list_mode_set()
16343 * @see elm_list_mode_get()
16347 typedef enum _Elm_List_Mode
16349 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. */
16350 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). */
16351 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. */
16352 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. */
16353 ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
16356 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(). */
16359 * Add a new list widget to the given parent Elementary
16360 * (container) object.
16362 * @param parent The parent object.
16363 * @return a new list widget handle or @c NULL, on errors.
16365 * This function inserts a new list widget on the canvas.
16369 EAPI Evas_Object *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16374 * @param obj The list object
16376 * @note Call before running show() on the list object.
16377 * @warning If not called, it won't display the list properly.
16380 * li = elm_list_add(win);
16381 * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
16382 * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
16384 * evas_object_show(li);
16389 EAPI void elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
16392 * Enable or disable multiple items selection on the list object.
16394 * @param obj The list object
16395 * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
16398 * Disabled by default. If disabled, the user can select a single item of
16399 * the list each time. Selected items are highlighted on list.
16400 * If enabled, many items can be selected.
16402 * If a selected item is selected again, it will be unselected.
16404 * @see elm_list_multi_select_get()
16408 EAPI void elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16411 * Get a value whether multiple items selection is enabled or not.
16413 * @see elm_list_multi_select_set() for details.
16415 * @param obj The list object.
16416 * @return @c EINA_TRUE means multiple items selection is enabled.
16417 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16418 * @c EINA_FALSE is returned.
16422 EAPI Eina_Bool elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16425 * Set which mode to use for the list object.
16427 * @param obj The list object
16428 * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16429 * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
16431 * Set list's resize behavior, transverse axis scroll and
16432 * items cropping. See each mode's description for more details.
16434 * @note Default value is #ELM_LIST_SCROLL.
16436 * Only one can be set, if a previous one was set, it will be changed
16437 * by the new mode set. Bitmask won't work as well.
16439 * @see elm_list_mode_get()
16443 EAPI void elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16446 * Get the mode the list is at.
16448 * @param obj The list object
16449 * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16450 * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
16452 * @note see elm_list_mode_set() for more information.
16456 EAPI Elm_List_Mode elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16459 * Enable or disable horizontal mode on the list object.
16461 * @param obj The list object.
16462 * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
16463 * disable it, i.e., to enable vertical mode.
16465 * @note Vertical mode is set by default.
16467 * On horizontal mode items are displayed on list from left to right,
16468 * instead of from top to bottom. Also, the list will scroll horizontally.
16469 * Each item will presents left icon on top and right icon, or end, at
16472 * @see elm_list_horizontal_get()
16476 EAPI void elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16479 * Get a value whether horizontal mode is enabled or not.
16481 * @param obj The list object.
16482 * @return @c EINA_TRUE means horizontal mode selection is enabled.
16483 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16484 * @c EINA_FALSE is returned.
16486 * @see elm_list_horizontal_set() for details.
16490 EAPI Eina_Bool elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16493 * Enable or disable always select mode on the list object.
16495 * @param obj The list object
16496 * @param always_select @c EINA_TRUE to enable always select mode or
16497 * @c EINA_FALSE to disable it.
16499 * @note Always select mode is disabled by default.
16501 * Default behavior of list items is to only call its callback function
16502 * the first time it's pressed, i.e., when it is selected. If a selected
16503 * item is pressed again, and multi-select is disabled, it won't call
16504 * this function (if multi-select is enabled it will unselect the item).
16506 * If always select is enabled, it will call the callback function
16507 * everytime a item is pressed, so it will call when the item is selected,
16508 * and again when a selected item is pressed.
16510 * @see elm_list_always_select_mode_get()
16511 * @see elm_list_multi_select_set()
16515 EAPI void elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16518 * Get a value whether always select mode is enabled or not, meaning that
16519 * an item will always call its callback function, even if already selected.
16521 * @param obj The list object
16522 * @return @c EINA_TRUE means horizontal mode selection is enabled.
16523 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16524 * @c EINA_FALSE is returned.
16526 * @see elm_list_always_select_mode_set() for details.
16530 EAPI Eina_Bool elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16533 * Set bouncing behaviour when the scrolled content reaches an edge.
16535 * Tell the internal scroller object whether it should bounce or not
16536 * when it reaches the respective edges for each axis.
16538 * @param obj The list object
16539 * @param h_bounce Whether to bounce or not in the horizontal axis.
16540 * @param v_bounce Whether to bounce or not in the vertical axis.
16542 * @see elm_scroller_bounce_set()
16546 EAPI void elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16549 * Get the bouncing behaviour of the internal scroller.
16551 * Get whether the internal scroller should bounce when the edge of each
16552 * axis is reached scrolling.
16554 * @param obj The list object.
16555 * @param h_bounce Pointer where to store the bounce state of the horizontal
16557 * @param v_bounce Pointer where to store the bounce state of the vertical
16560 * @see elm_scroller_bounce_get()
16561 * @see elm_list_bounce_set()
16565 EAPI void elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16568 * Set the scrollbar policy.
16570 * @param obj The list object
16571 * @param policy_h Horizontal scrollbar policy.
16572 * @param policy_v Vertical scrollbar policy.
16574 * This sets the scrollbar visibility policy for the given scroller.
16575 * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
16576 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
16577 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
16578 * This applies respectively for the horizontal and vertical scrollbars.
16580 * The both are disabled by default, i.e., are set to
16581 * #ELM_SCROLLER_POLICY_OFF.
16585 EAPI void elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
16588 * Get the scrollbar policy.
16590 * @see elm_list_scroller_policy_get() for details.
16592 * @param obj The list object.
16593 * @param policy_h Pointer where to store horizontal scrollbar policy.
16594 * @param policy_v Pointer where to store vertical scrollbar policy.
16598 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);
16601 * Append a new item to the list object.
16603 * @param obj The list object.
16604 * @param label The label of the list item.
16605 * @param icon The icon object to use for the left side of the item. An
16606 * icon can be any Evas object, but usually it is an icon created
16607 * with elm_icon_add().
16608 * @param end The icon object to use for the right side of the item. An
16609 * icon can be any Evas object.
16610 * @param func The function to call when the item is clicked.
16611 * @param data The data to associate with the item for related callbacks.
16613 * @return The created item or @c NULL upon failure.
16615 * A new item will be created and appended to the list, i.e., will
16616 * be set as @b last item.
16618 * Items created with this method can be deleted with
16619 * elm_list_item_del().
16621 * Associated @p data can be properly freed when item is deleted if a
16622 * callback function is set with elm_list_item_del_cb_set().
16624 * If a function is passed as argument, it will be called everytime this item
16625 * is selected, i.e., the user clicks over an unselected item.
16626 * If always select is enabled it will call this function every time
16627 * user clicks over an item (already selected or not).
16628 * If such function isn't needed, just passing
16629 * @c NULL as @p func is enough. The same should be done for @p data.
16631 * Simple example (with no function callback or data associated):
16633 * li = elm_list_add(win);
16634 * ic = elm_icon_add(win);
16635 * elm_icon_file_set(ic, "path/to/image", NULL);
16636 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
16637 * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
16639 * evas_object_show(li);
16642 * @see elm_list_always_select_mode_set()
16643 * @see elm_list_item_del()
16644 * @see elm_list_item_del_cb_set()
16645 * @see elm_list_clear()
16646 * @see elm_icon_add()
16650 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);
16653 * Prepend a new item to the list object.
16655 * @param obj The list object.
16656 * @param label The label of the list item.
16657 * @param icon The icon object to use for the left side of the item. An
16658 * icon can be any Evas object, but usually it is an icon created
16659 * with elm_icon_add().
16660 * @param end The icon object to use for the right side of the item. An
16661 * icon can be any Evas object.
16662 * @param func The function to call when the item is clicked.
16663 * @param data The data to associate with the item for related callbacks.
16665 * @return The created item or @c NULL upon failure.
16667 * A new item will be created and prepended to the list, i.e., will
16668 * be set as @b first item.
16670 * Items created with this method can be deleted with
16671 * elm_list_item_del().
16673 * Associated @p data can be properly freed when item is deleted if a
16674 * callback function is set with elm_list_item_del_cb_set().
16676 * If a function is passed as argument, it will be called everytime this item
16677 * is selected, i.e., the user clicks over an unselected item.
16678 * If always select is enabled it will call this function every time
16679 * user clicks over an item (already selected or not).
16680 * If such function isn't needed, just passing
16681 * @c NULL as @p func is enough. The same should be done for @p data.
16683 * @see elm_list_item_append() for a simple code example.
16684 * @see elm_list_always_select_mode_set()
16685 * @see elm_list_item_del()
16686 * @see elm_list_item_del_cb_set()
16687 * @see elm_list_clear()
16688 * @see elm_icon_add()
16692 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);
16695 * Insert a new item into the list object before item @p before.
16697 * @param obj The list object.
16698 * @param before The list item to insert before.
16699 * @param label The label of the list item.
16700 * @param icon The icon object to use for the left side of the item. An
16701 * icon can be any Evas object, but usually it is an icon created
16702 * with elm_icon_add().
16703 * @param end The icon object to use for the right side of the item. An
16704 * icon can be any Evas object.
16705 * @param func The function to call when the item is clicked.
16706 * @param data The data to associate with the item for related callbacks.
16708 * @return The created item or @c NULL upon failure.
16710 * A new item will be created and added to the list. Its position in
16711 * this list will be just before item @p before.
16713 * Items created with this method can be deleted with
16714 * elm_list_item_del().
16716 * Associated @p data can be properly freed when item is deleted if a
16717 * callback function is set with elm_list_item_del_cb_set().
16719 * If a function is passed as argument, it will be called everytime this item
16720 * is selected, i.e., the user clicks over an unselected item.
16721 * If always select is enabled it will call this function every time
16722 * user clicks over an item (already selected or not).
16723 * If such function isn't needed, just passing
16724 * @c NULL as @p func is enough. The same should be done for @p data.
16726 * @see elm_list_item_append() for a simple code example.
16727 * @see elm_list_always_select_mode_set()
16728 * @see elm_list_item_del()
16729 * @see elm_list_item_del_cb_set()
16730 * @see elm_list_clear()
16731 * @see elm_icon_add()
16735 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);
16738 * Insert a new item into the list object after item @p after.
16740 * @param obj The list object.
16741 * @param after The list item to insert after.
16742 * @param label The label of the list item.
16743 * @param icon The icon object to use for the left side of the item. An
16744 * icon can be any Evas object, but usually it is an icon created
16745 * with elm_icon_add().
16746 * @param end The icon object to use for the right side of the item. An
16747 * icon can be any Evas object.
16748 * @param func The function to call when the item is clicked.
16749 * @param data The data to associate with the item for related callbacks.
16751 * @return The created item or @c NULL upon failure.
16753 * A new item will be created and added to the list. Its position in
16754 * this list will be just after item @p after.
16756 * Items created with this method can be deleted with
16757 * elm_list_item_del().
16759 * Associated @p data can be properly freed when item is deleted if a
16760 * callback function is set with elm_list_item_del_cb_set().
16762 * If a function is passed as argument, it will be called everytime this item
16763 * is selected, i.e., the user clicks over an unselected item.
16764 * If always select is enabled it will call this function every time
16765 * user clicks over an item (already selected or not).
16766 * If such function isn't needed, just passing
16767 * @c NULL as @p func is enough. The same should be done for @p data.
16769 * @see elm_list_item_append() for a simple code example.
16770 * @see elm_list_always_select_mode_set()
16771 * @see elm_list_item_del()
16772 * @see elm_list_item_del_cb_set()
16773 * @see elm_list_clear()
16774 * @see elm_icon_add()
16778 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);
16781 * Insert a new item into the sorted list object.
16783 * @param obj The list object.
16784 * @param label The label of the list item.
16785 * @param icon The icon object to use for the left side of the item. An
16786 * icon can be any Evas object, but usually it is an icon created
16787 * with elm_icon_add().
16788 * @param end The icon object to use for the right side of the item. An
16789 * icon can be any Evas object.
16790 * @param func The function to call when the item is clicked.
16791 * @param data The data to associate with the item for related callbacks.
16792 * @param cmp_func The comparing function to be used to sort list
16793 * items <b>by #Elm_List_Item item handles</b>. This function will
16794 * receive two items and compare them, returning a non-negative integer
16795 * if the second item should be place after the first, or negative value
16796 * if should be placed before.
16798 * @return The created item or @c NULL upon failure.
16800 * @note This function inserts values into a list object assuming it was
16801 * sorted and the result will be sorted.
16803 * A new item will be created and added to the list. Its position in
16804 * this list will be found comparing the new item with previously inserted
16805 * items using function @p cmp_func.
16807 * Items created with this method can be deleted with
16808 * elm_list_item_del().
16810 * Associated @p data can be properly freed when item is deleted if a
16811 * callback function is set with elm_list_item_del_cb_set().
16813 * If a function is passed as argument, it will be called everytime this item
16814 * is selected, i.e., the user clicks over an unselected item.
16815 * If always select is enabled it will call this function every time
16816 * user clicks over an item (already selected or not).
16817 * If such function isn't needed, just passing
16818 * @c NULL as @p func is enough. The same should be done for @p data.
16820 * @see elm_list_item_append() for a simple code example.
16821 * @see elm_list_always_select_mode_set()
16822 * @see elm_list_item_del()
16823 * @see elm_list_item_del_cb_set()
16824 * @see elm_list_clear()
16825 * @see elm_icon_add()
16829 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);
16832 * Remove all list's items.
16834 * @param obj The list object
16836 * @see elm_list_item_del()
16837 * @see elm_list_item_append()
16841 EAPI void elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16844 * Get a list of all the list items.
16846 * @param obj The list object
16847 * @return An @c Eina_List of list items, #Elm_List_Item,
16848 * or @c NULL on failure.
16850 * @see elm_list_item_append()
16851 * @see elm_list_item_del()
16852 * @see elm_list_clear()
16856 EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16859 * Get the selected item.
16861 * @param obj The list object.
16862 * @return The selected list item.
16864 * The selected item can be unselected with function
16865 * elm_list_item_selected_set().
16867 * The selected item always will be highlighted on list.
16869 * @see elm_list_selected_items_get()
16873 EAPI Elm_List_Item *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16876 * Return a list of the currently selected list items.
16878 * @param obj The list object.
16879 * @return An @c Eina_List of list items, #Elm_List_Item,
16880 * or @c NULL on failure.
16882 * Multiple items can be selected if multi select is enabled. It can be
16883 * done with elm_list_multi_select_set().
16885 * @see elm_list_selected_item_get()
16886 * @see elm_list_multi_select_set()
16890 EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16893 * Set the selected state of an item.
16895 * @param item The list item
16896 * @param selected The selected state
16898 * This sets the selected state of the given item @p it.
16899 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
16901 * If a new item is selected the previosly selected will be unselected,
16902 * unless multiple selection is enabled with elm_list_multi_select_set().
16903 * Previoulsy selected item can be get with function
16904 * elm_list_selected_item_get().
16906 * Selected items will be highlighted.
16908 * @see elm_list_item_selected_get()
16909 * @see elm_list_selected_item_get()
16910 * @see elm_list_multi_select_set()
16914 EAPI void elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16917 * Get whether the @p item is selected or not.
16919 * @param item The list item.
16920 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
16921 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
16923 * @see elm_list_selected_item_set() for details.
16924 * @see elm_list_item_selected_get()
16928 EAPI Eina_Bool elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16931 * Set or unset item as a separator.
16933 * @param it The list item.
16934 * @param setting @c EINA_TRUE to set item @p it as separator or
16935 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
16937 * Items aren't set as separator by default.
16939 * If set as separator it will display separator theme, so won't display
16942 * @see elm_list_item_separator_get()
16946 EAPI void elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
16949 * Get a value whether item is a separator or not.
16951 * @see elm_list_item_separator_set() for details.
16953 * @param it The list item.
16954 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
16955 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
16959 EAPI Eina_Bool elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16962 * Show @p item in the list view.
16964 * @param item The list item to be shown.
16966 * It won't animate list until item is visible. If such behavior is wanted,
16967 * use elm_list_bring_in() intead.
16971 EAPI void elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16974 * Bring in the given item to list view.
16976 * @param item The item.
16978 * This causes list to jump to the given item @p item and show it
16979 * (by scrolling), if it is not fully visible.
16981 * This may use animation to do so and take a period of time.
16983 * If animation isn't wanted, elm_list_item_show() can be used.
16987 EAPI void elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16990 * Delete them item from the list.
16992 * @param item The item of list to be deleted.
16994 * If deleting all list items is required, elm_list_clear()
16995 * should be used instead of getting items list and deleting each one.
16997 * @see elm_list_clear()
16998 * @see elm_list_item_append()
16999 * @see elm_list_item_del_cb_set()
17003 EAPI void elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17006 * Set the function called when a list item is freed.
17008 * @param item The item to set the callback on
17009 * @param func The function called
17011 * If there is a @p func, then it will be called prior item's memory release.
17012 * That will be called with the following arguments:
17014 * @li item's Evas object;
17017 * This way, a data associated to a list item could be properly freed.
17021 EAPI void elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17024 * Get the data associated to the item.
17026 * @param item The list item
17027 * @return The data associated to @p item
17029 * The return value is a pointer to data associated to @p item when it was
17030 * created, with function elm_list_item_append() or similar. If no data
17031 * was passed as argument, it will return @c NULL.
17033 * @see elm_list_item_append()
17037 EAPI void *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17040 * Get the left side icon associated to the item.
17042 * @param item The list item
17043 * @return The left side icon associated to @p item
17045 * The return value is a pointer to the icon associated to @p item when
17047 * created, with function elm_list_item_append() or similar, or later
17048 * with function elm_list_item_icon_set(). If no icon
17049 * was passed as argument, it will return @c NULL.
17051 * @see elm_list_item_append()
17052 * @see elm_list_item_icon_set()
17056 EAPI Evas_Object *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17059 * Set the left side icon associated to the item.
17061 * @param item The list item
17062 * @param icon The left side icon object to associate with @p item
17064 * The icon object to use at left side of the item. An
17065 * icon can be any Evas object, but usually it is an icon created
17066 * with elm_icon_add().
17068 * Once the icon object is set, a previously set one will be deleted.
17069 * @warning Setting the same icon for two items will cause the icon to
17070 * dissapear from the first item.
17072 * If an icon was passed as argument on item creation, with function
17073 * elm_list_item_append() or similar, it will be already
17074 * associated to the item.
17076 * @see elm_list_item_append()
17077 * @see elm_list_item_icon_get()
17081 EAPI void elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
17084 * Get the right side icon associated to the item.
17086 * @param item The list item
17087 * @return The right side icon associated to @p item
17089 * The return value is a pointer to the icon associated to @p item when
17091 * created, with function elm_list_item_append() or similar, or later
17092 * with function elm_list_item_icon_set(). If no icon
17093 * was passed as argument, it will return @c NULL.
17095 * @see elm_list_item_append()
17096 * @see elm_list_item_icon_set()
17100 EAPI Evas_Object *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17103 * Set the right side icon associated to the item.
17105 * @param item The list item
17106 * @param end The right side icon object to associate with @p item
17108 * The icon object to use at right side of the item. An
17109 * icon can be any Evas object, but usually it is an icon created
17110 * with elm_icon_add().
17112 * Once the icon object is set, a previously set one will be deleted.
17113 * @warning Setting the same icon for two items will cause the icon to
17114 * dissapear from the first item.
17116 * If an icon was passed as argument on item creation, with function
17117 * elm_list_item_append() or similar, it will be already
17118 * associated to the item.
17120 * @see elm_list_item_append()
17121 * @see elm_list_item_end_get()
17125 EAPI void elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
17128 * Gets the base object of the item.
17130 * @param item The list item
17131 * @return The base object associated with @p item
17133 * Base object is the @c Evas_Object that represents that item.
17137 EAPI Evas_Object *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17138 EINA_DEPRECATED EAPI Evas_Object *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17141 * Get the label of item.
17143 * @param item The item of list.
17144 * @return The label of item.
17146 * The return value is a pointer to the label associated to @p item when
17147 * it was created, with function elm_list_item_append(), or later
17148 * with function elm_list_item_label_set. If no label
17149 * was passed as argument, it will return @c NULL.
17151 * @see elm_list_item_label_set() for more details.
17152 * @see elm_list_item_append()
17156 EAPI const char *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17159 * Set the label of item.
17161 * @param item The item of list.
17162 * @param text The label of item.
17164 * The label to be displayed by the item.
17165 * Label will be placed between left and right side icons (if set).
17167 * If a label was passed as argument on item creation, with function
17168 * elm_list_item_append() or similar, it will be already
17169 * displayed by the item.
17171 * @see elm_list_item_label_get()
17172 * @see elm_list_item_append()
17176 EAPI void elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17180 * Get the item before @p it in list.
17182 * @param it The list item.
17183 * @return The item before @p it, or @c NULL if none or on failure.
17185 * @note If it is the first item, @c NULL will be returned.
17187 * @see elm_list_item_append()
17188 * @see elm_list_items_get()
17192 EAPI Elm_List_Item *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17195 * Get the item after @p it in list.
17197 * @param it The list item.
17198 * @return The item after @p it, or @c NULL if none or on failure.
17200 * @note If it is the last item, @c NULL will be returned.
17202 * @see elm_list_item_append()
17203 * @see elm_list_items_get()
17207 EAPI Elm_List_Item *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17210 * Sets the disabled/enabled state of a list item.
17212 * @param it The item.
17213 * @param disabled The disabled state.
17215 * A disabled item cannot be selected or unselected. It will also
17216 * change its appearance (generally greyed out). This sets the
17217 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
17222 EAPI void elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17225 * Get a value whether list item is disabled or not.
17227 * @param it The item.
17228 * @return The disabled state.
17230 * @see elm_list_item_disabled_set() for more details.
17234 EAPI Eina_Bool elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17237 * Set the text to be shown in a given list item's tooltips.
17239 * @param item Target item.
17240 * @param text The text to set in the content.
17242 * Setup the text as tooltip to object. The item can have only one tooltip,
17243 * so any previous tooltip data - set with this function or
17244 * elm_list_item_tooltip_content_cb_set() - is removed.
17246 * @see elm_object_tooltip_text_set() for more details.
17250 EAPI void elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17254 * @brief Disable size restrictions on an object's tooltip
17255 * @param item The tooltip's anchor object
17256 * @param disable If EINA_TRUE, size restrictions are disabled
17257 * @return EINA_FALSE on failure, EINA_TRUE on success
17259 * This function allows a tooltip to expand beyond its parant window's canvas.
17260 * It will instead be limited only by the size of the display.
17262 EAPI Eina_Bool elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
17264 * @brief Retrieve size restriction state of an object's tooltip
17265 * @param obj The tooltip's anchor object
17266 * @return If EINA_TRUE, size restrictions are disabled
17268 * This function returns whether a tooltip is allowed to expand beyond
17269 * its parant window's canvas.
17270 * It will instead be limited only by the size of the display.
17272 EAPI Eina_Bool elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17275 * Set the content to be shown in the tooltip item.
17277 * Setup the tooltip to item. The item can have only one tooltip,
17278 * so any previous tooltip data is removed. @p func(with @p data) will
17279 * be called every time that need show the tooltip and it should
17280 * return a valid Evas_Object. This object is then managed fully by
17281 * tooltip system and is deleted when the tooltip is gone.
17283 * @param item the list item being attached a tooltip.
17284 * @param func the function used to create the tooltip contents.
17285 * @param data what to provide to @a func as callback data/context.
17286 * @param del_cb called when data is not needed anymore, either when
17287 * another callback replaces @a func, the tooltip is unset with
17288 * elm_list_item_tooltip_unset() or the owner @a item
17289 * dies. This callback receives as the first parameter the
17290 * given @a data, and @c event_info is the item.
17292 * @see elm_object_tooltip_content_cb_set() for more details.
17296 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);
17299 * Unset tooltip from item.
17301 * @param item list item to remove previously set tooltip.
17303 * Remove tooltip from item. The callback provided as del_cb to
17304 * elm_list_item_tooltip_content_cb_set() will be called to notify
17305 * it is not used anymore.
17307 * @see elm_object_tooltip_unset() for more details.
17308 * @see elm_list_item_tooltip_content_cb_set()
17312 EAPI void elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17315 * Sets a different style for this item tooltip.
17317 * @note before you set a style you should define a tooltip with
17318 * elm_list_item_tooltip_content_cb_set() or
17319 * elm_list_item_tooltip_text_set()
17321 * @param item list item with tooltip already set.
17322 * @param style the theme style to use (default, transparent, ...)
17324 * @see elm_object_tooltip_style_set() for more details.
17328 EAPI void elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17331 * Get the style for this item tooltip.
17333 * @param item list item with tooltip already set.
17334 * @return style the theme style in use, defaults to "default". If the
17335 * object does not have a tooltip set, then NULL is returned.
17337 * @see elm_object_tooltip_style_get() for more details.
17338 * @see elm_list_item_tooltip_style_set()
17342 EAPI const char *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17345 * Set the type of mouse pointer/cursor decoration to be shown,
17346 * when the mouse pointer is over the given list widget item
17348 * @param item list item to customize cursor on
17349 * @param cursor the cursor type's name
17351 * This function works analogously as elm_object_cursor_set(), but
17352 * here the cursor's changing area is restricted to the item's
17353 * area, and not the whole widget's. Note that that item cursors
17354 * have precedence over widget cursors, so that a mouse over an
17355 * item with custom cursor set will always show @b that cursor.
17357 * If this function is called twice for an object, a previously set
17358 * cursor will be unset on the second call.
17360 * @see elm_object_cursor_set()
17361 * @see elm_list_item_cursor_get()
17362 * @see elm_list_item_cursor_unset()
17366 EAPI void elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17369 * Get the type of mouse pointer/cursor decoration set to be shown,
17370 * when the mouse pointer is over the given list widget item
17372 * @param item list item with custom cursor set
17373 * @return the cursor type's name or @c NULL, if no custom cursors
17374 * were set to @p item (and on errors)
17376 * @see elm_object_cursor_get()
17377 * @see elm_list_item_cursor_set()
17378 * @see elm_list_item_cursor_unset()
17382 EAPI const char *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17385 * Unset any custom mouse pointer/cursor decoration set to be
17386 * shown, when the mouse pointer is over the given list widget
17387 * item, thus making it show the @b default cursor again.
17389 * @param item a list item
17391 * Use this call to undo any custom settings on this item's cursor
17392 * decoration, bringing it back to defaults (no custom style set).
17394 * @see elm_object_cursor_unset()
17395 * @see elm_list_item_cursor_set()
17399 EAPI void elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17402 * Set a different @b style for a given custom cursor set for a
17405 * @param item list item with custom cursor set
17406 * @param style the <b>theme style</b> to use (e.g. @c "default",
17407 * @c "transparent", etc)
17409 * This function only makes sense when one is using custom mouse
17410 * cursor decorations <b>defined in a theme file</b>, which can have,
17411 * given a cursor name/type, <b>alternate styles</b> on it. It
17412 * works analogously as elm_object_cursor_style_set(), but here
17413 * applyed only to list item objects.
17415 * @warning Before you set a cursor style you should have definen a
17416 * custom cursor previously on the item, with
17417 * elm_list_item_cursor_set()
17419 * @see elm_list_item_cursor_engine_only_set()
17420 * @see elm_list_item_cursor_style_get()
17424 EAPI void elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17427 * Get the current @b style set for a given list item's custom
17430 * @param item list item with custom cursor set.
17431 * @return style the cursor style in use. If the object does not
17432 * have a cursor set, then @c NULL is returned.
17434 * @see elm_list_item_cursor_style_set() for more details
17438 EAPI const char *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17441 * Set if the (custom)cursor for a given list item should be
17442 * searched in its theme, also, or should only rely on the
17443 * rendering engine.
17445 * @param item item with custom (custom) cursor already set on
17446 * @param engine_only Use @c EINA_TRUE to have cursors looked for
17447 * only on those provided by the rendering engine, @c EINA_FALSE to
17448 * have them searched on the widget's theme, as well.
17450 * @note This call is of use only if you've set a custom cursor
17451 * for list items, with elm_list_item_cursor_set().
17453 * @note By default, cursors will only be looked for between those
17454 * provided by the rendering engine.
17458 EAPI void elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17461 * Get if the (custom) cursor for a given list item is being
17462 * searched in its theme, also, or is only relying on the rendering
17465 * @param item a list item
17466 * @return @c EINA_TRUE, if cursors are being looked for only on
17467 * those provided by the rendering engine, @c EINA_FALSE if they
17468 * are being searched on the widget's theme, as well.
17470 * @see elm_list_item_cursor_engine_only_set(), for more details
17474 EAPI Eina_Bool elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17481 * @defgroup Slider Slider
17482 * @ingroup Elementary
17484 * @image html img/widget/slider/preview-00.png
17485 * @image latex img/widget/slider/preview-00.eps width=\textwidth
17487 * The slider adds a dragable āsliderā widget for selecting the value of
17488 * something within a range.
17490 * A slider can be horizontal or vertical. It can contain an Icon and has a
17491 * primary label as well as a units label (that is formatted with floating
17492 * point values and thus accepts a printf-style format string, like
17493 * ā%1.2f unitsā. There is also an indicator string that may be somewhere
17494 * else (like on the slider itself) that also accepts a format string like
17495 * units. Label, Icon Unit and Indicator strings/objects are optional.
17497 * A slider may be inverted which means values invert, with high vales being
17498 * on the left or top and low values on the right or bottom (as opposed to
17499 * normally being low on the left or top and high on the bottom and right).
17501 * The slider should have its minimum and maximum values set by the
17502 * application with elm_slider_min_max_set() and value should also be set by
17503 * the application before use with elm_slider_value_set(). The span of the
17504 * slider is its length (horizontally or vertically). This will be scaled by
17505 * the object or applications scaling factor. At any point code can query the
17506 * slider for its value with elm_slider_value_get().
17508 * Smart callbacks one can listen to:
17509 * - "changed" - Whenever the slider value is changed by the user.
17510 * - "slider,drag,start" - dragging the slider indicator around has started.
17511 * - "slider,drag,stop" - dragging the slider indicator around has stopped.
17512 * - "delay,changed" - A short time after the value is changed by the user.
17513 * This will be called only when the user stops dragging for
17514 * a very short period or when they release their
17515 * finger/mouse, so it avoids possibly expensive reactions to
17516 * the value change.
17518 * Available styles for it:
17521 * Default contents parts of the slider widget that you can use for are:
17522 * @li "icon" - A icon of the slider
17523 * @li "end" - A end part content of the slider
17525 * Default text parts of the silder widget that you can use for are:
17526 * @li "default" - Label of the silder
17527 * Here is an example on its usage:
17528 * @li @ref slider_example
17532 * @addtogroup Slider
17537 * Add a new slider widget to the given parent Elementary
17538 * (container) object.
17540 * @param parent The parent object.
17541 * @return a new slider widget handle or @c NULL, on errors.
17543 * This function inserts a new slider widget on the canvas.
17547 EAPI Evas_Object *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17550 * Set the label of a given slider widget
17552 * @param obj The progress bar object
17553 * @param label The text label string, in UTF-8
17556 * @deprecated use elm_object_text_set() instead.
17558 EINA_DEPRECATED EAPI void elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17561 * Get the label of a given slider widget
17563 * @param obj The progressbar object
17564 * @return The text label string, in UTF-8
17567 * @deprecated use elm_object_text_get() instead.
17569 EINA_DEPRECATED EAPI const char *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17572 * Set the icon object of the slider object.
17574 * @param obj The slider object.
17575 * @param icon The icon object.
17577 * On horizontal mode, icon is placed at left, and on vertical mode,
17580 * @note Once the icon object is set, a previously set one will be deleted.
17581 * If you want to keep that old content object, use the
17582 * elm_slider_icon_unset() function.
17584 * @warning If the object being set does not have minimum size hints set,
17585 * it won't get properly displayed.
17588 * @deprecated use elm_object_part_content_set() instead.
17590 EINA_DEPRECATED EAPI void elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17593 * Unset an icon set on a given slider widget.
17595 * @param obj The slider object.
17596 * @return The icon object that was being used, if any was set, or
17597 * @c NULL, otherwise (and on errors).
17599 * On horizontal mode, icon is placed at left, and on vertical mode,
17602 * This call will unparent and return the icon object which was set
17603 * for this widget, previously, on success.
17605 * @see elm_slider_icon_set() for more details
17606 * @see elm_slider_icon_get()
17607 * @deprecated use elm_object_part_content_unset() instead.
17611 EINA_DEPRECATED EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17614 * Retrieve the icon object set for a given slider widget.
17616 * @param obj The slider object.
17617 * @return The icon object's handle, if @p obj had one set, or @c NULL,
17618 * otherwise (and on errors).
17620 * On horizontal mode, icon is placed at left, and on vertical mode,
17623 * @see elm_slider_icon_set() for more details
17624 * @see elm_slider_icon_unset()
17626 * @deprecated use elm_object_part_content_get() instead.
17630 EINA_DEPRECATED EAPI Evas_Object *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17633 * Set the end object of the slider object.
17635 * @param obj The slider object.
17636 * @param end The end object.
17638 * On horizontal mode, end is placed at left, and on vertical mode,
17639 * placed at bottom.
17641 * @note Once the icon object is set, a previously set one will be deleted.
17642 * If you want to keep that old content object, use the
17643 * elm_slider_end_unset() function.
17645 * @warning If the object being set does not have minimum size hints set,
17646 * it won't get properly displayed.
17648 * @deprecated use elm_object_part_content_set() instead.
17652 EINA_DEPRECATED EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
17655 * Unset an end object set on a given slider widget.
17657 * @param obj The slider object.
17658 * @return The end object that was being used, if any was set, or
17659 * @c NULL, otherwise (and on errors).
17661 * On horizontal mode, end is placed at left, and on vertical mode,
17662 * placed at bottom.
17664 * This call will unparent and return the icon object which was set
17665 * for this widget, previously, on success.
17667 * @see elm_slider_end_set() for more details.
17668 * @see elm_slider_end_get()
17670 * @deprecated use elm_object_part_content_unset() instead
17675 EINA_DEPRECATED EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17678 * Retrieve the end object set for a given slider widget.
17680 * @param obj The slider object.
17681 * @return The end object's handle, if @p obj had one set, or @c NULL,
17682 * otherwise (and on errors).
17684 * On horizontal mode, icon is placed at right, and on vertical mode,
17685 * placed at bottom.
17687 * @see elm_slider_end_set() for more details.
17688 * @see elm_slider_end_unset()
17691 * @deprecated use elm_object_part_content_get() instead
17696 EINA_DEPRECATED EAPI Evas_Object *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17699 * Set the (exact) length of the bar region of a given slider widget.
17701 * @param obj The slider object.
17702 * @param size The length of the slider's bar region.
17704 * This sets the minimum width (when in horizontal mode) or height
17705 * (when in vertical mode) of the actual bar area of the slider
17706 * @p obj. This in turn affects the object's minimum size. Use
17707 * this when you're not setting other size hints expanding on the
17708 * given direction (like weight and alignment hints) and you would
17709 * like it to have a specific size.
17711 * @note Icon, end, label, indicator and unit text around @p obj
17712 * will require their
17713 * own space, which will make @p obj to require more the @p size,
17716 * @see elm_slider_span_size_get()
17720 EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
17723 * Get the length set for the bar region of a given slider widget
17725 * @param obj The slider object.
17726 * @return The length of the slider's bar region.
17728 * If that size was not set previously, with
17729 * elm_slider_span_size_set(), this call will return @c 0.
17733 EAPI Evas_Coord elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17736 * Set the format string for the unit label.
17738 * @param obj The slider object.
17739 * @param format The format string for the unit display.
17741 * Unit label is displayed all the time, if set, after slider's bar.
17742 * In horizontal mode, at right and in vertical mode, at bottom.
17744 * If @c NULL, unit label won't be visible. If not it sets the format
17745 * string for the label text. To the label text is provided a floating point
17746 * value, so the label text can display up to 1 floating point value.
17747 * Note that this is optional.
17749 * Use a format string such as "%1.2f meters" for example, and it will
17750 * display values like: "3.14 meters" for a value equal to 3.14159.
17752 * Default is unit label disabled.
17754 * @see elm_slider_indicator_format_get()
17758 EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
17761 * Get the unit label format of the slider.
17763 * @param obj The slider object.
17764 * @return The unit label format string in UTF-8.
17766 * Unit label is displayed all the time, if set, after slider's bar.
17767 * In horizontal mode, at right and in vertical mode, at bottom.
17769 * @see elm_slider_unit_format_set() for more
17770 * information on how this works.
17774 EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17777 * Set the format string for the indicator label.
17779 * @param obj The slider object.
17780 * @param indicator The format string for the indicator display.
17782 * The slider may display its value somewhere else then unit label,
17783 * for example, above the slider knob that is dragged around. This function
17784 * sets the format string used for this.
17786 * If @c NULL, indicator label won't be visible. If not it sets the format
17787 * string for the label text. To the label text is provided a floating point
17788 * value, so the label text can display up to 1 floating point value.
17789 * Note that this is optional.
17791 * Use a format string such as "%1.2f meters" for example, and it will
17792 * display values like: "3.14 meters" for a value equal to 3.14159.
17794 * Default is indicator label disabled.
17796 * @see elm_slider_indicator_format_get()
17800 EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
17803 * Get the indicator label format of the slider.
17805 * @param obj The slider object.
17806 * @return The indicator label format string in UTF-8.
17808 * The slider may display its value somewhere else then unit label,
17809 * for example, above the slider knob that is dragged around. This function
17810 * gets the format string used for this.
17812 * @see elm_slider_indicator_format_set() for more
17813 * information on how this works.
17817 EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17820 * Set the format function pointer for the indicator label
17822 * @param obj The slider object.
17823 * @param func The indicator format function.
17824 * @param free_func The freeing function for the format string.
17826 * Set the callback function to format the indicator string.
17828 * @see elm_slider_indicator_format_set() for more info on how this works.
17832 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);
17835 * Set the format function pointer for the units label
17837 * @param obj The slider object.
17838 * @param func The units format function.
17839 * @param free_func The freeing function for the format string.
17841 * Set the callback function to format the indicator string.
17843 * @see elm_slider_units_format_set() for more info on how this works.
17847 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);
17850 * Set the orientation of a given slider widget.
17852 * @param obj The slider object.
17853 * @param horizontal Use @c EINA_TRUE to make @p obj to be
17854 * @b horizontal, @c EINA_FALSE to make it @b vertical.
17856 * Use this function to change how your slider is to be
17857 * disposed: vertically or horizontally.
17859 * By default it's displayed horizontally.
17861 * @see elm_slider_horizontal_get()
17865 EAPI void elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17868 * Retrieve the orientation of a given slider widget
17870 * @param obj The slider object.
17871 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
17872 * @c EINA_FALSE if it's @b vertical (and on errors).
17874 * @see elm_slider_horizontal_set() for more details.
17878 EAPI Eina_Bool elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17881 * Set the minimum and maximum values for the slider.
17883 * @param obj The slider object.
17884 * @param min The minimum value.
17885 * @param max The maximum value.
17887 * Define the allowed range of values to be selected by the user.
17889 * If actual value is less than @p min, it will be updated to @p min. If it
17890 * is bigger then @p max, will be updated to @p max. Actual value can be
17891 * get with elm_slider_value_get().
17893 * By default, min is equal to 0.0, and max is equal to 1.0.
17895 * @warning Maximum must be greater than minimum, otherwise behavior
17898 * @see elm_slider_min_max_get()
17902 EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
17905 * Get the minimum and maximum values of the slider.
17907 * @param obj The slider object.
17908 * @param min Pointer where to store the minimum value.
17909 * @param max Pointer where to store the maximum value.
17911 * @note If only one value is needed, the other pointer can be passed
17914 * @see elm_slider_min_max_set() for details.
17918 EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
17921 * Set the value the slider displays.
17923 * @param obj The slider object.
17924 * @param val The value to be displayed.
17926 * Value will be presented on the unit label following format specified with
17927 * elm_slider_unit_format_set() and on indicator with
17928 * elm_slider_indicator_format_set().
17930 * @warning The value must to be between min and max values. This values
17931 * are set by elm_slider_min_max_set().
17933 * @see elm_slider_value_get()
17934 * @see elm_slider_unit_format_set()
17935 * @see elm_slider_indicator_format_set()
17936 * @see elm_slider_min_max_set()
17940 EAPI void elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
17943 * Get the value displayed by the spinner.
17945 * @param obj The spinner object.
17946 * @return The value displayed.
17948 * @see elm_spinner_value_set() for details.
17952 EAPI double elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17955 * Invert a given slider widget's displaying values order
17957 * @param obj The slider object.
17958 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
17959 * @c EINA_FALSE to bring it back to default, non-inverted values.
17961 * A slider may be @b inverted, in which state it gets its
17962 * values inverted, with high vales being on the left or top and
17963 * low values on the right or bottom, as opposed to normally have
17964 * the low values on the former and high values on the latter,
17965 * respectively, for horizontal and vertical modes.
17967 * @see elm_slider_inverted_get()
17971 EAPI void elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
17974 * Get whether a given slider widget's displaying values are
17977 * @param obj The slider object.
17978 * @return @c EINA_TRUE, if @p obj has inverted values,
17979 * @c EINA_FALSE otherwise (and on errors).
17981 * @see elm_slider_inverted_set() for more details.
17985 EAPI Eina_Bool elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17988 * Set whether to enlarge slider indicator (augmented knob) or not.
17990 * @param obj The slider object.
17991 * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
17992 * let the knob always at default size.
17994 * By default, indicator will be bigger while dragged by the user.
17996 * @warning It won't display values set with
17997 * elm_slider_indicator_format_set() if you disable indicator.
18001 EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
18004 * Get whether a given slider widget's enlarging indicator or not.
18006 * @param obj The slider object.
18007 * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
18008 * @c EINA_FALSE otherwise (and on errors).
18010 * @see elm_slider_indicator_show_set() for details.
18014 EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18021 * @addtogroup Actionslider Actionslider
18023 * @image html img/widget/actionslider/preview-00.png
18024 * @image latex img/widget/actionslider/preview-00.eps
18026 * An actionslider is a switcher for 2 or 3 labels with customizable magnet
18027 * properties. The user drags and releases the indicator, to choose a label.
18029 * Labels occupy the following positions.
18034 * Positions can be enabled or disabled.
18036 * Magnets can be set on the above positions.
18038 * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
18040 * @note By default all positions are set as enabled.
18042 * Signals that you can add callbacks for are:
18044 * "selected" - when user selects an enabled position (the label is passed
18047 * "pos_changed" - when the indicator reaches any of the positions("left",
18048 * "right" or "center").
18050 * See an example of actionslider usage @ref actionslider_example_page "here"
18053 typedef enum _Elm_Actionslider_Pos
18055 ELM_ACTIONSLIDER_NONE = 0,
18056 ELM_ACTIONSLIDER_LEFT = 1 << 0,
18057 ELM_ACTIONSLIDER_CENTER = 1 << 1,
18058 ELM_ACTIONSLIDER_RIGHT = 1 << 2,
18059 ELM_ACTIONSLIDER_ALL = (1 << 3) -1
18060 } Elm_Actionslider_Pos;
18063 * Add a new actionslider to the parent.
18065 * @param parent The parent object
18066 * @return The new actionslider object or NULL if it cannot be created
18068 EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18070 * Set actionslider labels.
18072 * @param obj The actionslider object
18073 * @param left_label The label to be set on the left.
18074 * @param center_label The label to be set on the center.
18075 * @param right_label The label to be set on the right.
18076 * @deprecated use elm_object_text_set() instead.
18078 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);
18080 * Get actionslider labels.
18082 * @param obj The actionslider object
18083 * @param left_label A char** to place the left_label of @p obj into.
18084 * @param center_label A char** to place the center_label of @p obj into.
18085 * @param right_label A char** to place the right_label of @p obj into.
18086 * @deprecated use elm_object_text_set() instead.
18088 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);
18090 * Get actionslider selected label.
18092 * @param obj The actionslider object
18093 * @return The selected label
18095 EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18097 * Set actionslider indicator position.
18099 * @param obj The actionslider object.
18100 * @param pos The position of the indicator.
18102 EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18104 * Get actionslider indicator position.
18106 * @param obj The actionslider object.
18107 * @return The position of the indicator.
18109 EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18111 * Set actionslider magnet position. To make multiple positions magnets @c or
18112 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
18114 * @param obj The actionslider object.
18115 * @param pos Bit mask indicating the magnet positions.
18117 EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18119 * Get actionslider magnet position.
18121 * @param obj The actionslider object.
18122 * @return The positions with magnet property.
18124 EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18126 * Set actionslider enabled position. To set multiple positions as enabled @c or
18127 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
18129 * @note All the positions are enabled by default.
18131 * @param obj The actionslider object.
18132 * @param pos Bit mask indicating the enabled positions.
18134 EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18136 * Get actionslider enabled position.
18138 * @param obj The actionslider object.
18139 * @return The enabled positions.
18141 EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18143 * Set the label used on the indicator.
18145 * @param obj The actionslider object
18146 * @param label The label to be set on the indicator.
18147 * @deprecated use elm_object_text_set() instead.
18149 EINA_DEPRECATED EAPI void elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18151 * Get the label used on the indicator object.
18153 * @param obj The actionslider object
18154 * @return The indicator label
18155 * @deprecated use elm_object_text_get() instead.
18157 EINA_DEPRECATED EAPI const char *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
18163 * @defgroup Genlist Genlist
18165 * @image html img/widget/genlist/preview-00.png
18166 * @image latex img/widget/genlist/preview-00.eps
18167 * @image html img/genlist.png
18168 * @image latex img/genlist.eps
18170 * This widget aims to have more expansive list than the simple list in
18171 * Elementary that could have more flexible items and allow many more entries
18172 * while still being fast and low on memory usage. At the same time it was
18173 * also made to be able to do tree structures. But the price to pay is more
18174 * complexity when it comes to usage. If all you want is a simple list with
18175 * icons and a single label, use the normal @ref List object.
18177 * Genlist has a fairly large API, mostly because it's relatively complex,
18178 * trying to be both expansive, powerful and efficient. First we will begin
18179 * an overview on the theory behind genlist.
18181 * @section Genlist_Item_Class Genlist item classes - creating items
18183 * In order to have the ability to add and delete items on the fly, genlist
18184 * implements a class (callback) system where the application provides a
18185 * structure with information about that type of item (genlist may contain
18186 * multiple different items with different classes, states and styles).
18187 * Genlist will call the functions in this struct (methods) when an item is
18188 * "realized" (i.e., created dynamically, while the user is scrolling the
18189 * grid). All objects will simply be deleted when no longer needed with
18190 * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
18191 * following members:
18192 * - @c item_style - This is a constant string and simply defines the name
18193 * of the item style. It @b must be specified and the default should be @c
18196 * - @c func - A struct with pointers to functions that will be called when
18197 * an item is going to be actually created. All of them receive a @c data
18198 * parameter that will point to the same data passed to
18199 * elm_genlist_item_append() and related item creation functions, and a @c
18200 * obj parameter that points to the genlist object itself.
18202 * The function pointers inside @c func are @c label_get, @c icon_get, @c
18203 * state_get and @c del. The 3 first functions also receive a @c part
18204 * parameter described below. A brief description of these functions follows:
18206 * - @c label_get - The @c part parameter is the name string of one of the
18207 * existing text parts in the Edje group implementing the item's theme.
18208 * This function @b must return a strdup'()ed string, as the caller will
18209 * free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
18210 * - @c content_get - The @c part parameter is the name string of one of the
18211 * existing (content) swallow parts in the Edje group implementing the item's
18212 * theme. It must return @c NULL, when no content is desired, or a valid
18213 * object handle, otherwise. The object will be deleted by the genlist on
18214 * its deletion or when the item is "unrealized". See
18215 * #Elm_Genlist_Item_Content_Get_Cb.
18216 * - @c func.state_get - The @c part parameter is the name string of one of
18217 * the state parts in the Edje group implementing the item's theme. Return
18218 * @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
18219 * emit a signal to its theming Edje object with @c "elm,state,XXX,active"
18220 * and @c "elm" as "emission" and "source" arguments, respectively, when
18221 * the state is true (the default is false), where @c XXX is the name of
18222 * the (state) part. See #Elm_Genlist_Item_State_Get_Cb.
18223 * - @c func.del - This is intended for use when genlist items are deleted,
18224 * so any data attached to the item (e.g. its data parameter on creation)
18225 * can be deleted. See #Elm_Genlist_Item_Del_Cb.
18227 * available item styles:
18229 * - default_style - The text part is a textblock
18231 * @image html img/widget/genlist/preview-04.png
18232 * @image latex img/widget/genlist/preview-04.eps
18236 * @image html img/widget/genlist/preview-01.png
18237 * @image latex img/widget/genlist/preview-01.eps
18239 * - icon_top_text_bottom
18241 * @image html img/widget/genlist/preview-02.png
18242 * @image latex img/widget/genlist/preview-02.eps
18246 * @image html img/widget/genlist/preview-03.png
18247 * @image latex img/widget/genlist/preview-03.eps
18249 * @section Genlist_Items Structure of items
18251 * An item in a genlist can have 0 or more text labels (they can be regular
18252 * text or textblock Evas objects - that's up to the style to determine), 0
18253 * or more contents (which are simply objects swallowed into the genlist item's
18254 * theming Edje object) and 0 or more <b>boolean states</b>, which have the
18255 * behavior left to the user to define. The Edje part names for each of
18256 * these properties will be looked up, in the theme file for the genlist,
18257 * under the Edje (string) data items named @c "labels", @c "contents" and @c
18258 * "states", respectively. For each of those properties, if more than one
18259 * part is provided, they must have names listed separated by spaces in the
18260 * data fields. For the default genlist item theme, we have @b one label
18261 * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
18262 * "elm.swallow.end") and @b no state parts.
18264 * A genlist item may be at one of several styles. Elementary provides one
18265 * by default - "default", but this can be extended by system or application
18266 * custom themes/overlays/extensions (see @ref Theme "themes" for more
18269 * @section Genlist_Manipulation Editing and Navigating
18271 * Items can be added by several calls. All of them return a @ref
18272 * Elm_Genlist_Item handle that is an internal member inside the genlist.
18273 * They all take a data parameter that is meant to be used for a handle to
18274 * the applications internal data (eg the struct with the original item
18275 * data). The parent parameter is the parent genlist item this belongs to if
18276 * it is a tree or an indexed group, and NULL if there is no parent. The
18277 * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
18278 * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
18279 * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
18280 * that is able to expand and have child items. If ELM_GENLIST_ITEM_GROUP
18281 * is set then this item is group index item that is displayed at the top
18282 * until the next group comes. The func parameter is a convenience callback
18283 * that is called when the item is selected and the data parameter will be
18284 * the func_data parameter, obj be the genlist object and event_info will be
18285 * the genlist item.
18287 * elm_genlist_item_append() adds an item to the end of the list, or if
18288 * there is a parent, to the end of all the child items of the parent.
18289 * elm_genlist_item_prepend() is the same but adds to the beginning of
18290 * the list or children list. elm_genlist_item_insert_before() inserts at
18291 * item before another item and elm_genlist_item_insert_after() inserts after
18292 * the indicated item.
18294 * The application can clear the list with elm_gen_clear() which deletes
18295 * all the items in the list and elm_genlist_item_del() will delete a specific
18296 * item. elm_genlist_item_subitems_clear() will clear all items that are
18297 * children of the indicated parent item.
18299 * To help inspect list items you can jump to the item at the top of the list
18300 * with elm_genlist_first_item_get() which will return the item pointer, and
18301 * similarly elm_genlist_last_item_get() gets the item at the end of the list.
18302 * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
18303 * and previous items respectively relative to the indicated item. Using
18304 * these calls you can walk the entire item list/tree. Note that as a tree
18305 * the items are flattened in the list, so elm_genlist_item_parent_get() will
18306 * let you know which item is the parent (and thus know how to skip them if
18309 * @section Genlist_Muti_Selection Multi-selection
18311 * If the application wants multiple items to be able to be selected,
18312 * elm_genlist_multi_select_set() can enable this. If the list is
18313 * single-selection only (the default), then elm_genlist_selected_item_get()
18314 * will return the selected item, if any, or NULL if none is selected. If the
18315 * list is multi-select then elm_genlist_selected_items_get() will return a
18316 * list (that is only valid as long as no items are modified (added, deleted,
18317 * selected or unselected)).
18319 * @section Genlist_Usage_Hints Usage hints
18321 * There are also convenience functions. elm_gen_item_genlist_get() will
18322 * return the genlist object the item belongs to. elm_genlist_item_show()
18323 * will make the scroller scroll to show that specific item so its visible.
18324 * elm_genlist_item_data_get() returns the data pointer set by the item
18325 * creation functions.
18327 * If an item changes (state of boolean changes, label or contents change),
18328 * then use elm_genlist_item_update() to have genlist update the item with
18329 * the new state. Genlist will re-realize the item thus call the functions
18330 * in the _Elm_Genlist_Item_Class for that item.
18332 * To programmatically (un)select an item use elm_genlist_item_selected_set().
18333 * To get its selected state use elm_genlist_item_selected_get(). Similarly
18334 * to expand/contract an item and get its expanded state, use
18335 * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
18336 * again to make an item disabled (unable to be selected and appear
18337 * differently) use elm_genlist_item_disabled_set() to set this and
18338 * elm_genlist_item_disabled_get() to get the disabled state.
18340 * In general to indicate how the genlist should expand items horizontally to
18341 * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
18342 * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
18343 * mode means that if items are too wide to fit, the scroller will scroll
18344 * horizontally. Otherwise items are expanded to fill the width of the
18345 * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
18346 * to the viewport width and limited to that size. This can be combined with
18347 * a different style that uses edjes' ellipsis feature (cutting text off like
18350 * Items will only call their selection func and callback when first becoming
18351 * selected. Any further clicks will do nothing, unless you enable always
18352 * select with elm_gen_always_select_mode_set(). This means even if
18353 * selected, every click will make the selected callbacks be called.
18354 * elm_genlist_no_select_mode_set() will turn off the ability to select
18355 * items entirely and they will neither appear selected nor call selected
18356 * callback functions.
18358 * Remember that you can create new styles and add your own theme augmentation
18359 * per application with elm_theme_extension_add(). If you absolutely must
18360 * have a specific style that overrides any theme the user or system sets up
18361 * you can use elm_theme_overlay_add() to add such a file.
18363 * @section Genlist_Implementation Implementation
18365 * Evas tracks every object you create. Every time it processes an event
18366 * (mouse move, down, up etc.) it needs to walk through objects and find out
18367 * what event that affects. Even worse every time it renders display updates,
18368 * in order to just calculate what to re-draw, it needs to walk through many
18369 * many many objects. Thus, the more objects you keep active, the more
18370 * overhead Evas has in just doing its work. It is advisable to keep your
18371 * active objects to the minimum working set you need. Also remember that
18372 * object creation and deletion carries an overhead, so there is a
18373 * middle-ground, which is not easily determined. But don't keep massive lists
18374 * of objects you can't see or use. Genlist does this with list objects. It
18375 * creates and destroys them dynamically as you scroll around. It groups them
18376 * into blocks so it can determine the visibility etc. of a whole block at
18377 * once as opposed to having to walk the whole list. This 2-level list allows
18378 * for very large numbers of items to be in the list (tests have used up to
18379 * 2,000,000 items). Also genlist employs a queue for adding items. As items
18380 * may be different sizes, every item added needs to be calculated as to its
18381 * size and thus this presents a lot of overhead on populating the list, this
18382 * genlist employs a queue. Any item added is queued and spooled off over
18383 * time, actually appearing some time later, so if your list has many members
18384 * you may find it takes a while for them to all appear, with your process
18385 * consuming a lot of CPU while it is busy spooling.
18387 * Genlist also implements a tree structure, but it does so with callbacks to
18388 * the application, with the application filling in tree structures when
18389 * requested (allowing for efficient building of a very deep tree that could
18390 * even be used for file-management). See the above smart signal callbacks for
18393 * @section Genlist_Smart_Events Genlist smart events
18395 * Signals that you can add callbacks for are:
18396 * - @c "activated" - The user has double-clicked or pressed
18397 * (enter|return|spacebar) on an item. The @c event_info parameter is the
18398 * item that was activated.
18399 * - @c "clicked,double" - The user has double-clicked an item. The @c
18400 * event_info parameter is the item that was double-clicked.
18401 * - @c "selected" - This is called when a user has made an item selected.
18402 * The event_info parameter is the genlist item that was selected.
18403 * - @c "unselected" - This is called when a user has made an item
18404 * unselected. The event_info parameter is the genlist item that was
18406 * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
18407 * called and the item is now meant to be expanded. The event_info
18408 * parameter is the genlist item that was indicated to expand. It is the
18409 * job of this callback to then fill in the child items.
18410 * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
18411 * called and the item is now meant to be contracted. The event_info
18412 * parameter is the genlist item that was indicated to contract. It is the
18413 * job of this callback to then delete the child items.
18414 * - @c "expand,request" - This is called when a user has indicated they want
18415 * to expand a tree branch item. The callback should decide if the item can
18416 * expand (has any children) and then call elm_genlist_item_expanded_set()
18417 * appropriately to set the state. The event_info parameter is the genlist
18418 * item that was indicated to expand.
18419 * - @c "contract,request" - This is called when a user has indicated they
18420 * want to contract a tree branch item. The callback should decide if the
18421 * item can contract (has any children) and then call
18422 * elm_genlist_item_expanded_set() appropriately to set the state. The
18423 * event_info parameter is the genlist item that was indicated to contract.
18424 * - @c "realized" - This is called when the item in the list is created as a
18425 * real evas object. event_info parameter is the genlist item that was
18426 * created. The object may be deleted at any time, so it is up to the
18427 * caller to not use the object pointer from elm_genlist_item_object_get()
18428 * in a way where it may point to freed objects.
18429 * - @c "unrealized" - This is called just before an item is unrealized.
18430 * After this call content objects provided will be deleted and the item
18431 * object itself delete or be put into a floating cache.
18432 * - @c "drag,start,up" - This is called when the item in the list has been
18433 * dragged (not scrolled) up.
18434 * - @c "drag,start,down" - This is called when the item in the list has been
18435 * dragged (not scrolled) down.
18436 * - @c "drag,start,left" - This is called when the item in the list has been
18437 * dragged (not scrolled) left.
18438 * - @c "drag,start,right" - This is called when the item in the list has
18439 * been dragged (not scrolled) right.
18440 * - @c "drag,stop" - This is called when the item in the list has stopped
18442 * - @c "drag" - This is called when the item in the list is being dragged.
18443 * - @c "longpressed" - This is called when the item is pressed for a certain
18444 * amount of time. By default it's 1 second.
18445 * - @c "scroll,anim,start" - This is called when scrolling animation has
18447 * - @c "scroll,anim,stop" - This is called when scrolling animation has
18449 * - @c "scroll,drag,start" - This is called when dragging the content has
18451 * - @c "scroll,drag,stop" - This is called when dragging the content has
18453 * - @c "edge,top" - This is called when the genlist is scrolled until
18455 * - @c "edge,bottom" - This is called when the genlist is scrolled
18456 * until the bottom edge.
18457 * - @c "edge,left" - This is called when the genlist is scrolled
18458 * until the left edge.
18459 * - @c "edge,right" - This is called when the genlist is scrolled
18460 * until the right edge.
18461 * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
18463 * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
18465 * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
18467 * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
18469 * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
18470 * pinched out. "- @c multi,pinch,in" - This is called when the genlist is
18471 * multi-touch pinched in.
18472 * - @c "swipe" - This is called when the genlist is swiped.
18473 * - @c "moved" - This is called when a genlist item is moved.
18474 * - @c "language,changed" - This is called when the program's language is
18477 * @section Genlist_Examples Examples
18479 * Here is a list of examples that use the genlist, trying to show some of
18480 * its capabilities:
18481 * - @ref genlist_example_01
18482 * - @ref genlist_example_02
18483 * - @ref genlist_example_03
18484 * - @ref genlist_example_04
18485 * - @ref genlist_example_05
18489 * @addtogroup Genlist
18494 * @enum _Elm_Genlist_Item_Flags
18495 * @typedef Elm_Genlist_Item_Flags
18497 * Defines if the item is of any special type (has subitems or it's the
18498 * index of a group), or is just a simple item.
18502 typedef enum _Elm_Genlist_Item_Flags
18504 ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
18505 ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
18506 ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
18507 } Elm_Genlist_Item_Flags;
18508 typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class; /**< Genlist item class definition structs */
18509 #define Elm_Genlist_Item_Class Elm_Gen_Item_Class
18510 typedef struct _Elm_Genlist_Item Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18511 #define Elm_Genlist_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18512 typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
18514 * Label fetching class function for Elm_Gen_Item_Class.
18515 * @param data The data passed in the item creation function
18516 * @param obj The base widget object
18517 * @param part The part name of the swallow
18518 * @return The allocated (NOT stringshared) string to set as the label
18520 typedef char *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18522 * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
18523 * @param data The data passed in the item creation function
18524 * @param obj The base widget object
18525 * @param part The part name of the swallow
18526 * @return The content object to swallow
18528 typedef Evas_Object *(*Elm_Genlist_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18530 * State fetching class function for Elm_Gen_Item_Class.
18531 * @param data The data passed in the item creation function
18532 * @param obj The base widget object
18533 * @param part The part name of the swallow
18534 * @return The hell if I know
18536 typedef Eina_Bool (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18538 * Deletion class function for Elm_Gen_Item_Class.
18539 * @param data The data passed in the item creation function
18540 * @param obj The base widget object
18542 typedef void (*Elm_Genlist_Item_Del_Cb) (void *data, Evas_Object *obj);
18545 * @struct _Elm_Genlist_Item_Class
18547 * Genlist item class definition structs.
18549 * This struct contains the style and fetching functions that will define the
18550 * contents of each item.
18552 * @see @ref Genlist_Item_Class
18554 struct _Elm_Genlist_Item_Class
18556 const char *item_style; /**< style of this class. */
18557 struct Elm_Genlist_Item_Class_Func
18559 Elm_Genlist_Item_Label_Get_Cb label_get; /**< Label fetching class function for genlist item classes.*/
18560 Elm_Genlist_Item_Content_Get_Cb content_get; /**< Content fetching class function for genlist item classes. */
18561 Elm_Genlist_Item_State_Get_Cb state_get; /**< State fetching class function for genlist item classes. */
18562 Elm_Genlist_Item_Del_Cb del; /**< Deletion class function for genlist item classes. */
18565 #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
18567 * Add a new genlist widget to the given parent Elementary
18568 * (container) object
18570 * @param parent The parent object
18571 * @return a new genlist widget handle or @c NULL, on errors
18573 * This function inserts a new genlist widget on the canvas.
18575 * @see elm_genlist_item_append()
18576 * @see elm_genlist_item_del()
18577 * @see elm_gen_clear()
18581 EAPI Evas_Object *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18583 * Remove all items from a given genlist widget.
18585 * @param obj The genlist object
18587 * This removes (and deletes) all items in @p obj, leaving it empty.
18589 * This is deprecated. Please use elm_gen_clear() instead.
18591 * @see elm_genlist_item_del(), to remove just one item.
18595 EINA_DEPRECATED EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18597 * Enable or disable multi-selection in the genlist
18599 * @param obj The genlist object
18600 * @param multi Multi-select enable/disable. Default is disabled.
18602 * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
18603 * the list. This allows more than 1 item to be selected. To retrieve the list
18604 * of selected items, use elm_genlist_selected_items_get().
18606 * @see elm_genlist_selected_items_get()
18607 * @see elm_genlist_multi_select_get()
18611 EAPI void elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
18613 * Gets if multi-selection in genlist is enabled or disabled.
18615 * @param obj The genlist object
18616 * @return Multi-select enabled/disabled
18617 * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
18619 * @see elm_genlist_multi_select_set()
18623 EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18625 * This sets the horizontal stretching mode.
18627 * @param obj The genlist object
18628 * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
18630 * This sets the mode used for sizing items horizontally. Valid modes
18631 * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
18632 * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
18633 * the scroller will scroll horizontally. Otherwise items are expanded
18634 * to fill the width of the viewport of the scroller. If it is
18635 * ELM_LIST_LIMIT, items will be expanded to the viewport width and
18636 * limited to that size.
18638 * @see elm_genlist_horizontal_get()
18642 EAPI void elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18643 EINA_DEPRECATED EAPI void elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18645 * Gets the horizontal stretching mode.
18647 * @param obj The genlist object
18648 * @return The mode to use
18649 * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
18651 * @see elm_genlist_horizontal_set()
18655 EAPI Elm_List_Mode elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18656 EINA_DEPRECATED EAPI Elm_List_Mode elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18658 * Set the always select mode.
18660 * @param obj The genlist object
18661 * @param always_select The always select mode (@c EINA_TRUE = on, @c
18662 * EINA_FALSE = off). Default is @c EINA_FALSE.
18664 * Items will only call their selection func and callback when first
18665 * becoming selected. Any further clicks will do nothing, unless you
18666 * enable always select with elm_gen_always_select_mode_set().
18667 * This means that, even if selected, every click will make the selected
18668 * callbacks be called.
18670 * This function is deprecated. please see elm_gen_always_select_mode_set()
18672 * @see elm_genlist_always_select_mode_get()
18676 EINA_DEPRECATED EAPI void elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
18678 * Get the always select mode.
18680 * @param obj The genlist object
18681 * @return The always select mode
18682 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18684 * @see elm_genlist_always_select_mode_set()
18688 EINA_DEPRECATED EAPI Eina_Bool elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18690 * Enable/disable the no select mode.
18692 * @param obj The genlist object
18693 * @param no_select The no select mode
18694 * (EINA_TRUE = on, EINA_FALSE = off)
18696 * This will turn off the ability to select items entirely and they
18697 * will neither appear selected nor call selected callback functions.
18699 * @see elm_genlist_no_select_mode_get()
18703 EINA_DEPRECATED EAPI void elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
18705 * Gets whether the no select mode is enabled.
18707 * @param obj The genlist object
18708 * @return The no select mode
18709 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18711 * @see elm_genlist_no_select_mode_set()
18715 EINA_DEPRECATED EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18717 * Enable/disable compress mode.
18719 * @param obj The genlist object
18720 * @param compress The compress mode
18721 * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
18723 * This will enable the compress mode where items are "compressed"
18724 * horizontally to fit the genlist scrollable viewport width. This is
18725 * special for genlist. Do not rely on
18726 * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
18727 * work as genlist needs to handle it specially.
18729 * @see elm_genlist_compress_mode_get()
18733 EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
18735 * Get whether the compress mode is enabled.
18737 * @param obj The genlist object
18738 * @return The compress mode
18739 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18741 * @see elm_genlist_compress_mode_set()
18745 EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18747 * Enable/disable height-for-width mode.
18749 * @param obj The genlist object
18750 * @param setting The height-for-width mode (@c EINA_TRUE = on,
18751 * @c EINA_FALSE = off). Default is @c EINA_FALSE.
18753 * With height-for-width mode the item width will be fixed (restricted
18754 * to a minimum of) to the list width when calculating its size in
18755 * order to allow the height to be calculated based on it. This allows,
18756 * for instance, text block to wrap lines if the Edje part is
18757 * configured with "text.min: 0 1".
18759 * @note This mode will make list resize slower as it will have to
18760 * recalculate every item height again whenever the list width
18763 * @note When height-for-width mode is enabled, it also enables
18764 * compress mode (see elm_genlist_compress_mode_set()) and
18765 * disables homogeneous (see elm_genlist_homogeneous_set()).
18769 EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
18771 * Get whether the height-for-width mode is enabled.
18773 * @param obj The genlist object
18774 * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
18779 EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18781 * Enable/disable horizontal and vertical bouncing effect.
18783 * @param obj The genlist object
18784 * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
18785 * EINA_FALSE = off). Default is @c EINA_FALSE.
18786 * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
18787 * EINA_FALSE = off). Default is @c EINA_TRUE.
18789 * This will enable or disable the scroller bouncing effect for the
18790 * genlist. See elm_scroller_bounce_set() for details.
18792 * @see elm_scroller_bounce_set()
18793 * @see elm_genlist_bounce_get()
18797 EINA_DEPRECATED EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
18799 * Get whether the horizontal and vertical bouncing effect is enabled.
18801 * @param obj The genlist object
18802 * @param h_bounce Pointer to a bool to receive if the bounce horizontally
18804 * @param v_bounce Pointer to a bool to receive if the bounce vertically
18807 * @see elm_genlist_bounce_set()
18811 EINA_DEPRECATED EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
18813 * Enable/disable homogenous mode.
18815 * @param obj The genlist object
18816 * @param homogeneous Assume the items within the genlist are of the
18817 * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
18820 * This will enable the homogeneous mode where items are of the same
18821 * height and width so that genlist may do the lazy-loading at its
18822 * maximum (which increases the performance for scrolling the list). This
18823 * implies 'compressed' mode.
18825 * @see elm_genlist_compress_mode_set()
18826 * @see elm_genlist_homogeneous_get()
18830 EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
18832 * Get whether the homogenous mode is enabled.
18834 * @param obj The genlist object
18835 * @return Assume the items within the genlist are of the same height
18836 * and width (EINA_TRUE = on, EINA_FALSE = off)
18838 * @see elm_genlist_homogeneous_set()
18842 EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18844 * Set the maximum number of items within an item block
18846 * @param obj The genlist object
18847 * @param n Maximum number of items within an item block. Default is 32.
18849 * This will configure the block count to tune to the target with
18850 * particular performance matrix.
18852 * A block of objects will be used to reduce the number of operations due to
18853 * many objects in the screen. It can determine the visibility, or if the
18854 * object has changed, it theme needs to be updated, etc. doing this kind of
18855 * calculation to the entire block, instead of per object.
18857 * The default value for the block count is enough for most lists, so unless
18858 * you know you will have a lot of objects visible in the screen at the same
18859 * time, don't try to change this.
18861 * @see elm_genlist_block_count_get()
18862 * @see @ref Genlist_Implementation
18866 EAPI void elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
18868 * Get the maximum number of items within an item block
18870 * @param obj The genlist object
18871 * @return Maximum number of items within an item block
18873 * @see elm_genlist_block_count_set()
18877 EAPI int elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18879 * Set the timeout in seconds for the longpress event.
18881 * @param obj The genlist object
18882 * @param timeout timeout in seconds. Default is 1.
18884 * This option will change how long it takes to send an event "longpressed"
18885 * after the mouse down signal is sent to the list. If this event occurs, no
18886 * "clicked" event will be sent.
18888 * @see elm_genlist_longpress_timeout_set()
18892 EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18894 * Get the timeout in seconds for the longpress event.
18896 * @param obj The genlist object
18897 * @return timeout in seconds
18899 * @see elm_genlist_longpress_timeout_get()
18903 EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18905 * Append a new item in a given genlist widget.
18907 * @param obj The genlist object
18908 * @param itc The item class for the item
18909 * @param data The item data
18910 * @param parent The parent item, or NULL if none
18911 * @param flags Item flags
18912 * @param func Convenience function called when the item is selected
18913 * @param func_data Data passed to @p func above.
18914 * @return A handle to the item added or @c NULL if not possible
18916 * This adds the given item to the end of the list or the end of
18917 * the children list if the @p parent is given.
18919 * @see elm_genlist_item_prepend()
18920 * @see elm_genlist_item_insert_before()
18921 * @see elm_genlist_item_insert_after()
18922 * @see elm_genlist_item_del()
18926 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);
18928 * Prepend a new item in a given genlist widget.
18930 * @param obj The genlist object
18931 * @param itc The item class for the item
18932 * @param data The item data
18933 * @param parent The parent item, or NULL if none
18934 * @param flags Item flags
18935 * @param func Convenience function called when the item is selected
18936 * @param func_data Data passed to @p func above.
18937 * @return A handle to the item added or NULL if not possible
18939 * This adds an item to the beginning of the list or beginning of the
18940 * children of the parent if given.
18942 * @see elm_genlist_item_append()
18943 * @see elm_genlist_item_insert_before()
18944 * @see elm_genlist_item_insert_after()
18945 * @see elm_genlist_item_del()
18949 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);
18951 * Insert an item before another in a genlist widget
18953 * @param obj The genlist object
18954 * @param itc The item class for the item
18955 * @param data The item data
18956 * @param before The item to place this new one before.
18957 * @param flags Item flags
18958 * @param func Convenience function called when the item is selected
18959 * @param func_data Data passed to @p func above.
18960 * @return A handle to the item added or @c NULL if not possible
18962 * This inserts an item before another in the list. It will be in the
18963 * same tree level or group as the item it is inserted before.
18965 * @see elm_genlist_item_append()
18966 * @see elm_genlist_item_prepend()
18967 * @see elm_genlist_item_insert_after()
18968 * @see elm_genlist_item_del()
18972 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);
18974 * Insert an item after another in a genlist widget
18976 * @param obj The genlist object
18977 * @param itc The item class for the item
18978 * @param data The item data
18979 * @param after The item to place this new one after.
18980 * @param flags Item flags
18981 * @param func Convenience function called when the item is selected
18982 * @param func_data Data passed to @p func above.
18983 * @return A handle to the item added or @c NULL if not possible
18985 * This inserts an item after another in the list. It will be in the
18986 * same tree level or group as the item it is inserted after.
18988 * @see elm_genlist_item_append()
18989 * @see elm_genlist_item_prepend()
18990 * @see elm_genlist_item_insert_before()
18991 * @see elm_genlist_item_del()
18995 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);
18997 * Insert a new item into the sorted genlist object
18999 * @param obj The genlist object
19000 * @param itc The item class for the item
19001 * @param data The item data
19002 * @param parent The parent item, or NULL if none
19003 * @param flags Item flags
19004 * @param comp The function called for the sort
19005 * @param func Convenience function called when item selected
19006 * @param func_data Data passed to @p func above.
19007 * @return A handle to the item added or NULL if not possible
19011 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);
19012 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);
19013 /* operations to retrieve existing items */
19015 * Get the selectd item in the genlist.
19017 * @param obj The genlist object
19018 * @return The selected item, or NULL if none is selected.
19020 * This gets the selected item in the list (if multi-selection is enabled, only
19021 * the item that was first selected in the list is returned - which is not very
19022 * useful, so see elm_genlist_selected_items_get() for when multi-selection is
19025 * If no item is selected, NULL is returned.
19027 * @see elm_genlist_selected_items_get()
19031 EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19033 * Get a list of selected items in the genlist.
19035 * @param obj The genlist object
19036 * @return The list of selected items, or NULL if none are selected.
19038 * It returns a list of the selected items. This list pointer is only valid so
19039 * long as the selection doesn't change (no items are selected or unselected, or
19040 * unselected implicitly by deletion). The list contains Elm_Genlist_Item
19041 * pointers. The order of the items in this list is the order which they were
19042 * selected, i.e. the first item in this list is the first item that was
19043 * selected, and so on.
19045 * @note If not in multi-select mode, consider using function
19046 * elm_genlist_selected_item_get() instead.
19048 * @see elm_genlist_multi_select_set()
19049 * @see elm_genlist_selected_item_get()
19053 EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19055 * Get the mode item style of items in the genlist
19056 * @param obj The genlist object
19057 * @return The mode item style string, or NULL if none is specified
19059 * This is a constant string and simply defines the name of the
19060 * style that will be used for mode animations. It can be
19061 * @c NULL if you don't plan to use Genlist mode. See
19062 * elm_genlist_item_mode_set() for more info.
19066 EAPI const char *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19068 * Set the mode item style of items in the genlist
19069 * @param obj The genlist object
19070 * @param style The mode item style string, or NULL if none is desired
19072 * This is a constant string and simply defines the name of the
19073 * style that will be used for mode animations. It can be
19074 * @c NULL if you don't plan to use Genlist mode. See
19075 * elm_genlist_item_mode_set() for more info.
19079 EAPI void elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
19081 * Get a list of realized items in genlist
19083 * @param obj The genlist object
19084 * @return The list of realized items, nor NULL if none are realized.
19086 * This returns a list of the realized items in the genlist. The list
19087 * contains Elm_Genlist_Item pointers. The list must be freed by the
19088 * caller when done with eina_list_free(). The item pointers in the
19089 * list are only valid so long as those items are not deleted or the
19090 * genlist is not deleted.
19092 * @see elm_genlist_realized_items_update()
19096 EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19098 * Get the item that is at the x, y canvas coords.
19100 * @param obj The gelinst object.
19101 * @param x The input x coordinate
19102 * @param y The input y coordinate
19103 * @param posret The position relative to the item returned here
19104 * @return The item at the coordinates or NULL if none
19106 * This returns the item at the given coordinates (which are canvas
19107 * relative, not object-relative). If an item is at that coordinate,
19108 * that item handle is returned, and if @p posret is not NULL, the
19109 * integer pointed to is set to a value of -1, 0 or 1, depending if
19110 * the coordinate is on the upper portion of that item (-1), on the
19111 * middle section (0) or on the lower part (1). If NULL is returned as
19112 * an item (no item found there), then posret may indicate -1 or 1
19113 * based if the coordinate is above or below all items respectively in
19118 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);
19120 * Get the first item in the genlist
19122 * This returns the first item in the list.
19124 * @param obj The genlist object
19125 * @return The first item, or NULL if none
19129 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19131 * Get the last item in the genlist
19133 * This returns the last item in the list.
19135 * @return The last item, or NULL if none
19139 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19141 * Set the scrollbar policy
19143 * @param obj The genlist object
19144 * @param policy_h Horizontal scrollbar policy.
19145 * @param policy_v Vertical scrollbar policy.
19147 * This sets the scrollbar visibility policy for the given genlist
19148 * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
19149 * made visible if it is needed, and otherwise kept hidden.
19150 * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
19151 * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
19152 * respectively for the horizontal and vertical scrollbars. Default is
19153 * #ELM_SMART_SCROLLER_POLICY_AUTO
19155 * @see elm_genlist_scroller_policy_get()
19159 EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
19161 * Get the scrollbar policy
19163 * @param obj The genlist object
19164 * @param policy_h Pointer to store the horizontal scrollbar policy.
19165 * @param policy_v Pointer to store the vertical scrollbar policy.
19167 * @see elm_genlist_scroller_policy_set()
19171 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);
19173 * Get the @b next item in a genlist widget's internal list of items,
19174 * given a handle to one of those items.
19176 * @param item The genlist item to fetch next from
19177 * @return The item after @p item, or @c NULL if there's none (and
19180 * This returns the item placed after the @p item, on the container
19183 * @see elm_genlist_item_prev_get()
19187 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19189 * Get the @b previous item in a genlist widget's internal list of items,
19190 * given a handle to one of those items.
19192 * @param item The genlist item to fetch previous from
19193 * @return The item before @p item, or @c NULL if there's none (and
19196 * This returns the item placed before the @p item, on the container
19199 * @see elm_genlist_item_next_get()
19203 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19205 * Get the genlist object's handle which contains a given genlist
19208 * @param item The item to fetch the container from
19209 * @return The genlist (parent) object
19211 * This returns the genlist object itself that an item belongs to.
19213 * This function is deprecated. Please use elm_gen_item_widget_get()
19217 EINA_DEPRECATED EAPI Evas_Object *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19219 * Get the parent item of the given item
19221 * @param it The item
19222 * @return The parent of the item or @c NULL if it has no parent.
19224 * This returns the item that was specified as parent of the item @p it on
19225 * elm_genlist_item_append() and insertion related functions.
19229 EAPI Elm_Genlist_Item *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19231 * Remove all sub-items (children) of the given item
19233 * @param it The item
19235 * This removes all items that are children (and their descendants) of the
19236 * given item @p it.
19238 * @see elm_genlist_clear()
19239 * @see elm_genlist_item_del()
19243 EAPI void elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19245 * Set whether a given genlist item is selected or not
19247 * @param it The item
19248 * @param selected Use @c EINA_TRUE, to make it selected, @c
19249 * EINA_FALSE to make it unselected
19251 * This sets the selected state of an item. If multi selection is
19252 * not enabled on the containing genlist and @p selected is @c
19253 * EINA_TRUE, any other previously selected items will get
19254 * unselected in favor of this new one.
19256 * @see elm_genlist_item_selected_get()
19260 EINA_DEPRECATED EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
19262 * Get whether a given genlist item is selected or not
19264 * @param it The item
19265 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
19267 * @see elm_genlist_item_selected_set() for more details
19271 EINA_DEPRECATED EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19273 * Sets the expanded state of an item.
19275 * @param it The item
19276 * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
19278 * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
19281 * The theme will respond to this change visually, and a signal "expanded" or
19282 * "contracted" will be sent from the genlist with a pointer to the item that
19283 * has been expanded/contracted.
19285 * Calling this function won't show or hide any child of this item (if it is
19286 * a parent). You must manually delete and create them on the callbacks fo
19287 * the "expanded" or "contracted" signals.
19289 * @see elm_genlist_item_expanded_get()
19293 EAPI void elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
19295 * Get the expanded state of an item
19297 * @param it The item
19298 * @return The expanded state
19300 * This gets the expanded state of an item.
19302 * @see elm_genlist_item_expanded_set()
19306 EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19308 * Get the depth of expanded item
19310 * @param it The genlist item object
19311 * @return The depth of expanded item
19315 EAPI int elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19317 * Set whether a given genlist item is disabled or not.
19319 * @param it The item
19320 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
19321 * to enable it back.
19323 * A disabled item cannot be selected or unselected. It will also
19324 * change its appearance, to signal the user it's disabled.
19326 * @see elm_genlist_item_disabled_get()
19330 EAPI void elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
19332 * Get whether a given genlist item is disabled or not.
19334 * @param it The item
19335 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
19338 * @see elm_genlist_item_disabled_set() for more details
19342 EAPI Eina_Bool elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19344 * Sets the display only state of an item.
19346 * @param it The item
19347 * @param display_only @c EINA_TRUE if the item is display only, @c
19348 * EINA_FALSE otherwise.
19350 * A display only item cannot be selected or unselected. It is for
19351 * display only and not selecting or otherwise clicking, dragging
19352 * etc. by the user, thus finger size rules will not be applied to
19355 * It's good to set group index items to display only state.
19357 * @see elm_genlist_item_display_only_get()
19361 EAPI void elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
19363 * Get the display only state of an item
19365 * @param it The item
19366 * @return @c EINA_TRUE if the item is display only, @c
19367 * EINA_FALSE otherwise.
19369 * @see elm_genlist_item_display_only_set()
19373 EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19375 * Show the portion of a genlist's internal list containing a given
19376 * item, immediately.
19378 * @param it The item to display
19380 * This causes genlist to jump to the given item @p it and show it (by
19381 * immediately scrolling to that position), if it is not fully visible.
19383 * @see elm_genlist_item_bring_in()
19384 * @see elm_genlist_item_top_show()
19385 * @see elm_genlist_item_middle_show()
19389 EAPI void elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19391 * Animatedly bring in, to the visible are of a genlist, a given
19394 * @param it The item to display
19396 * This causes genlist to jump to the given item @p it and show it (by
19397 * animatedly scrolling), if it is not fully visible. This may use animation
19398 * to do so and take a period of time
19400 * @see elm_genlist_item_show()
19401 * @see elm_genlist_item_top_bring_in()
19402 * @see elm_genlist_item_middle_bring_in()
19406 EAPI void elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19408 * Show the portion of a genlist's internal list containing a given
19409 * item, immediately.
19411 * @param it The item to display
19413 * This causes genlist to jump to the given item @p it and show it (by
19414 * immediately scrolling to that position), if it is not fully visible.
19416 * The item will be positioned at the top of the genlist viewport.
19418 * @see elm_genlist_item_show()
19419 * @see elm_genlist_item_top_bring_in()
19423 EAPI void elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19425 * Animatedly bring in, to the visible are of a genlist, a given
19428 * @param it The item
19430 * This causes genlist to jump to the given item @p it and show it (by
19431 * animatedly scrolling), if it is not fully visible. This may use animation
19432 * to do so and take a period of time
19434 * The item will be positioned at the top of the genlist viewport.
19436 * @see elm_genlist_item_bring_in()
19437 * @see elm_genlist_item_top_show()
19441 EAPI void elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19443 * Show the portion of a genlist's internal list containing a given
19444 * item, immediately.
19446 * @param it The item to display
19448 * This causes genlist to jump to the given item @p it and show it (by
19449 * immediately scrolling to that position), if it is not fully visible.
19451 * The item will be positioned at the middle of the genlist viewport.
19453 * @see elm_genlist_item_show()
19454 * @see elm_genlist_item_middle_bring_in()
19458 EAPI void elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19460 * Animatedly bring in, to the visible are of a genlist, a given
19463 * @param it The item
19465 * This causes genlist to jump to the given item @p it and show it (by
19466 * animatedly scrolling), if it is not fully visible. This may use animation
19467 * to do so and take a period of time
19469 * The item will be positioned at the middle of the genlist viewport.
19471 * @see elm_genlist_item_bring_in()
19472 * @see elm_genlist_item_middle_show()
19476 EAPI void elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19478 * Remove a genlist item from the its parent, deleting it.
19480 * @param item The item to be removed.
19481 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
19483 * @see elm_genlist_clear(), to remove all items in a genlist at
19488 EAPI void elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19490 * Return the data associated to a given genlist item
19492 * @param item The genlist item.
19493 * @return the data associated to this item.
19495 * This returns the @c data value passed on the
19496 * elm_genlist_item_append() and related item addition calls.
19498 * @see elm_genlist_item_append()
19499 * @see elm_genlist_item_data_set()
19503 EAPI void *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19505 * Set the data associated to a given genlist item
19507 * @param item The genlist item
19508 * @param data The new data pointer to set on it
19510 * This @b overrides the @c data value passed on the
19511 * elm_genlist_item_append() and related item addition calls. This
19512 * function @b won't call elm_genlist_item_update() automatically,
19513 * so you'd issue it afterwards if you want to hove the item
19514 * updated to reflect the that new data.
19516 * @see elm_genlist_item_data_get()
19520 EAPI void elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
19522 * Tells genlist to "orphan" icons fetchs by the item class
19524 * @param it The item
19526 * This instructs genlist to release references to icons in the item,
19527 * meaning that they will no longer be managed by genlist and are
19528 * floating "orphans" that can be re-used elsewhere if the user wants
19533 EAPI void elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19534 EINA_DEPRECATED EAPI void elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19536 * Get the real Evas object created to implement the view of a
19537 * given genlist item
19539 * @param item The genlist item.
19540 * @return the Evas object implementing this item's view.
19542 * This returns the actual Evas object used to implement the
19543 * specified genlist item's view. This may be @c NULL, as it may
19544 * not have been created or may have been deleted, at any time, by
19545 * the genlist. <b>Do not modify this object</b> (move, resize,
19546 * show, hide, etc.), as the genlist is controlling it. This
19547 * function is for querying, emitting custom signals or hooking
19548 * lower level callbacks for events on that object. Do not delete
19549 * this object under any circumstances.
19551 * @see elm_genlist_item_data_get()
19555 EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19557 * Update the contents of an item
19559 * @param it The item
19561 * This updates an item by calling all the item class functions again
19562 * to get the icons, labels and states. Use this when the original
19563 * item data has changed and the changes are desired to be reflected.
19565 * Use elm_genlist_realized_items_update() to update all already realized
19568 * @see elm_genlist_realized_items_update()
19572 EAPI void elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19574 * Update the item class of an item
19576 * @param it The item
19577 * @param itc The item class for the item
19579 * This sets another class fo the item, changing the way that it is
19580 * displayed. After changing the item class, elm_genlist_item_update() is
19581 * called on the item @p it.
19585 EAPI void elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
19586 EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19588 * Set the text to be shown in a given genlist item's tooltips.
19590 * @param item The genlist item
19591 * @param text The text to set in the content
19593 * This call will setup the text to be used as tooltip to that item
19594 * (analogous to elm_object_tooltip_text_set(), but being item
19595 * tooltips with higher precedence than object tooltips). It can
19596 * have only one tooltip at a time, so any previous tooltip data
19597 * will get removed.
19599 * In order to set an icon or something else as a tooltip, look at
19600 * elm_genlist_item_tooltip_content_cb_set().
19604 EAPI void elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
19606 * Set the content to be shown in a given genlist item's tooltips
19608 * @param item The genlist item.
19609 * @param func The function returning the tooltip contents.
19610 * @param data What to provide to @a func as callback data/context.
19611 * @param del_cb Called when data is not needed anymore, either when
19612 * another callback replaces @p func, the tooltip is unset with
19613 * elm_genlist_item_tooltip_unset() or the owner @p item
19614 * dies. This callback receives as its first parameter the
19615 * given @p data, being @c event_info the item handle.
19617 * This call will setup the tooltip's contents to @p item
19618 * (analogous to elm_object_tooltip_content_cb_set(), but being
19619 * item tooltips with higher precedence than object tooltips). It
19620 * can have only one tooltip at a time, so any previous tooltip
19621 * content will get removed. @p func (with @p data) will be called
19622 * every time Elementary needs to show the tooltip and it should
19623 * return a valid Evas object, which will be fully managed by the
19624 * tooltip system, getting deleted when the tooltip is gone.
19626 * In order to set just a text as a tooltip, look at
19627 * elm_genlist_item_tooltip_text_set().
19631 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);
19633 * Unset a tooltip from a given genlist item
19635 * @param item genlist item to remove a previously set tooltip from.
19637 * This call removes any tooltip set on @p item. The callback
19638 * provided as @c del_cb to
19639 * elm_genlist_item_tooltip_content_cb_set() will be called to
19640 * notify it is not used anymore (and have resources cleaned, if
19643 * @see elm_genlist_item_tooltip_content_cb_set()
19647 EAPI void elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19649 * Set a different @b style for a given genlist item's tooltip.
19651 * @param item genlist item with tooltip set
19652 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
19653 * "default", @c "transparent", etc)
19655 * Tooltips can have <b>alternate styles</b> to be displayed on,
19656 * which are defined by the theme set on Elementary. This function
19657 * works analogously as elm_object_tooltip_style_set(), but here
19658 * applied only to genlist item objects. The default style for
19659 * tooltips is @c "default".
19661 * @note before you set a style you should define a tooltip with
19662 * elm_genlist_item_tooltip_content_cb_set() or
19663 * elm_genlist_item_tooltip_text_set()
19665 * @see elm_genlist_item_tooltip_style_get()
19669 EAPI void elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19671 * Get the style set a given genlist item's tooltip.
19673 * @param item genlist item with tooltip already set on.
19674 * @return style the theme style in use, which defaults to
19675 * "default". If the object does not have a tooltip set,
19676 * then @c NULL is returned.
19678 * @see elm_genlist_item_tooltip_style_set() for more details
19682 EAPI const char *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19684 * @brief Disable size restrictions on an object's tooltip
19685 * @param item The tooltip's anchor object
19686 * @param disable If EINA_TRUE, size restrictions are disabled
19687 * @return EINA_FALSE on failure, EINA_TRUE on success
19689 * This function allows a tooltip to expand beyond its parant window's canvas.
19690 * It will instead be limited only by the size of the display.
19692 EAPI Eina_Bool elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
19694 * @brief Retrieve size restriction state of an object's tooltip
19695 * @param item The tooltip's anchor object
19696 * @return If EINA_TRUE, size restrictions are disabled
19698 * This function returns whether a tooltip is allowed to expand beyond
19699 * its parant window's canvas.
19700 * It will instead be limited only by the size of the display.
19702 EAPI Eina_Bool elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
19704 * Set the type of mouse pointer/cursor decoration to be shown,
19705 * when the mouse pointer is over the given genlist widget item
19707 * @param item genlist item to customize cursor on
19708 * @param cursor the cursor type's name
19710 * This function works analogously as elm_object_cursor_set(), but
19711 * here the cursor's changing area is restricted to the item's
19712 * area, and not the whole widget's. Note that that item cursors
19713 * have precedence over widget cursors, so that a mouse over @p
19714 * item will always show cursor @p type.
19716 * If this function is called twice for an object, a previously set
19717 * cursor will be unset on the second call.
19719 * @see elm_object_cursor_set()
19720 * @see elm_genlist_item_cursor_get()
19721 * @see elm_genlist_item_cursor_unset()
19725 EAPI void elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
19727 * Get the type of mouse pointer/cursor decoration set to be shown,
19728 * when the mouse pointer is over the given genlist widget item
19730 * @param item genlist item with custom cursor set
19731 * @return the cursor type's name or @c NULL, if no custom cursors
19732 * were set to @p item (and on errors)
19734 * @see elm_object_cursor_get()
19735 * @see elm_genlist_item_cursor_set() for more details
19736 * @see elm_genlist_item_cursor_unset()
19740 EAPI const char *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19742 * Unset any custom mouse pointer/cursor decoration set to be
19743 * shown, when the mouse pointer is over the given genlist widget
19744 * item, thus making it show the @b default cursor again.
19746 * @param item a genlist item
19748 * Use this call to undo any custom settings on this item's cursor
19749 * decoration, bringing it back to defaults (no custom style set).
19751 * @see elm_object_cursor_unset()
19752 * @see elm_genlist_item_cursor_set() for more details
19756 EAPI void elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19758 * Set a different @b style for a given custom cursor set for a
19761 * @param item genlist item with custom cursor set
19762 * @param style the <b>theme style</b> to use (e.g. @c "default",
19763 * @c "transparent", etc)
19765 * This function only makes sense when one is using custom mouse
19766 * cursor decorations <b>defined in a theme file</b> , which can
19767 * have, given a cursor name/type, <b>alternate styles</b> on
19768 * it. It works analogously as elm_object_cursor_style_set(), but
19769 * here applied only to genlist item objects.
19771 * @warning Before you set a cursor style you should have defined a
19772 * custom cursor previously on the item, with
19773 * elm_genlist_item_cursor_set()
19775 * @see elm_genlist_item_cursor_engine_only_set()
19776 * @see elm_genlist_item_cursor_style_get()
19780 EAPI void elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19782 * Get the current @b style set for a given genlist item's custom
19785 * @param item genlist item with custom cursor set.
19786 * @return style the cursor style in use. If the object does not
19787 * have a cursor set, then @c NULL is returned.
19789 * @see elm_genlist_item_cursor_style_set() for more details
19793 EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19795 * Set if the (custom) cursor for a given genlist item should be
19796 * searched in its theme, also, or should only rely on the
19797 * rendering engine.
19799 * @param item item with custom (custom) cursor already set on
19800 * @param engine_only Use @c EINA_TRUE to have cursors looked for
19801 * only on those provided by the rendering engine, @c EINA_FALSE to
19802 * have them searched on the widget's theme, as well.
19804 * @note This call is of use only if you've set a custom cursor
19805 * for genlist items, with elm_genlist_item_cursor_set().
19807 * @note By default, cursors will only be looked for between those
19808 * provided by the rendering engine.
19812 EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
19814 * Get if the (custom) cursor for a given genlist item is being
19815 * searched in its theme, also, or is only relying on the rendering
19818 * @param item a genlist item
19819 * @return @c EINA_TRUE, if cursors are being looked for only on
19820 * those provided by the rendering engine, @c EINA_FALSE if they
19821 * are being searched on the widget's theme, as well.
19823 * @see elm_genlist_item_cursor_engine_only_set(), for more details
19827 EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19829 * Update the contents of all realized items.
19831 * @param obj The genlist object.
19833 * This updates all realized items by calling all the item class functions again
19834 * to get the icons, labels and states. Use this when the original
19835 * item data has changed and the changes are desired to be reflected.
19837 * To update just one item, use elm_genlist_item_update().
19839 * @see elm_genlist_realized_items_get()
19840 * @see elm_genlist_item_update()
19844 EAPI void elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
19846 * Activate a genlist mode on an item
19848 * @param item The genlist item
19849 * @param mode Mode name
19850 * @param mode_set Boolean to define set or unset mode.
19852 * A genlist mode is a different way of selecting an item. Once a mode is
19853 * activated on an item, any other selected item is immediately unselected.
19854 * This feature provides an easy way of implementing a new kind of animation
19855 * for selecting an item, without having to entirely rewrite the item style
19856 * theme. However, the elm_genlist_selected_* API can't be used to get what
19857 * item is activate for a mode.
19859 * The current item style will still be used, but applying a genlist mode to
19860 * an item will select it using a different kind of animation.
19862 * The current active item for a mode can be found by
19863 * elm_genlist_mode_item_get().
19865 * The characteristics of genlist mode are:
19866 * - Only one mode can be active at any time, and for only one item.
19867 * - Genlist handles deactivating other items when one item is activated.
19868 * - A mode is defined in the genlist theme (edc), and more modes can easily
19870 * - A mode style and the genlist item style are different things. They
19871 * can be combined to provide a default style to the item, with some kind
19872 * of animation for that item when the mode is activated.
19874 * When a mode is activated on an item, a new view for that item is created.
19875 * The theme of this mode defines the animation that will be used to transit
19876 * the item from the old view to the new view. This second (new) view will be
19877 * active for that item while the mode is active on the item, and will be
19878 * destroyed after the mode is totally deactivated from that item.
19880 * @see elm_genlist_mode_get()
19881 * @see elm_genlist_mode_item_get()
19885 EAPI void elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
19887 * Get the last (or current) genlist mode used.
19889 * @param obj The genlist object
19891 * This function just returns the name of the last used genlist mode. It will
19892 * be the current mode if it's still active.
19894 * @see elm_genlist_item_mode_set()
19895 * @see elm_genlist_mode_item_get()
19899 EAPI const char *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19901 * Get active genlist mode item
19903 * @param obj The genlist object
19904 * @return The active item for that current mode. Or @c NULL if no item is
19905 * activated with any mode.
19907 * This function returns the item that was activated with a mode, by the
19908 * function elm_genlist_item_mode_set().
19910 * @see elm_genlist_item_mode_set()
19911 * @see elm_genlist_mode_get()
19915 EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19920 * @param obj The genlist object
19921 * @param reorder_mode The reorder mode
19922 * (EINA_TRUE = on, EINA_FALSE = off)
19926 EAPI void elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
19929 * Get the reorder mode
19931 * @param obj The genlist object
19932 * @return The reorder mode
19933 * (EINA_TRUE = on, EINA_FALSE = off)
19937 EAPI Eina_Bool elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19944 * @defgroup Check Check
19946 * @image html img/widget/check/preview-00.png
19947 * @image latex img/widget/check/preview-00.eps
19948 * @image html img/widget/check/preview-01.png
19949 * @image latex img/widget/check/preview-01.eps
19950 * @image html img/widget/check/preview-02.png
19951 * @image latex img/widget/check/preview-02.eps
19953 * @brief The check widget allows for toggling a value between true and
19956 * Check objects are a lot like radio objects in layout and functionality
19957 * except they do not work as a group, but independently and only toggle the
19958 * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
19959 * the boolean state (1 for true, 0 for false), and elm_check_state_get()
19960 * returns the current state. For convenience, like the radio objects, you
19961 * can set a pointer to a boolean directly with elm_check_state_pointer_set()
19962 * for it to modify.
19964 * Signals that you can add callbacks for are:
19965 * "changed" - This is called whenever the user changes the state of one of
19966 * the check object(event_info is NULL).
19968 * Default contents parts of the check widget that you can use for are:
19969 * @li "icon" - A icon of the check
19971 * Default text parts of the check widget that you can use for are:
19972 * @li "elm.text" - Label of the check
19974 * @ref tutorial_check should give you a firm grasp of how to use this widget
19979 * @brief Add a new Check object
19981 * @param parent The parent object
19982 * @return The new object or NULL if it cannot be created
19984 EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19986 * @brief Set the text label of the check object
19988 * @param obj The check object
19989 * @param label The text label string in UTF-8
19991 * @deprecated use elm_object_text_set() instead.
19993 EINA_DEPRECATED EAPI void elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19995 * @brief Get the text label of the check object
19997 * @param obj The check object
19998 * @return The text label string in UTF-8
20000 * @deprecated use elm_object_text_get() instead.
20002 EINA_DEPRECATED EAPI const char *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20004 * @brief Set the icon object of the check object
20006 * @param obj The check object
20007 * @param icon The icon object
20009 * Once the icon object is set, a previously set one will be deleted.
20010 * If you want to keep that old content object, use the
20011 * elm_object_content_unset() function.
20013 * @deprecated use elm_object_part_content_set() instead.
20016 EINA_DEPRECATED EAPI void elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20018 * @brief Get the icon object of the check object
20020 * @param obj The check object
20021 * @return The icon object
20023 * @deprecated use elm_object_part_content_get() instead.
20026 EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20028 * @brief Unset the icon used for the check object
20030 * @param obj The check object
20031 * @return The icon object that was being used
20033 * Unparent and return the icon object which was set for this widget.
20035 * @deprecated use elm_object_part_content_unset() instead.
20038 EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20040 * @brief Set the on/off state of the check object
20042 * @param obj The check object
20043 * @param state The state to use (1 == on, 0 == off)
20045 * This sets the state of the check. If set
20046 * with elm_check_state_pointer_set() the state of that variable is also
20047 * changed. Calling this @b doesn't cause the "changed" signal to be emited.
20049 EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
20051 * @brief Get the state of the check object
20053 * @param obj The check object
20054 * @return The boolean state
20056 EAPI Eina_Bool elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20058 * @brief Set a convenience pointer to a boolean to change
20060 * @param obj The check object
20061 * @param statep Pointer to the boolean to modify
20063 * This sets a pointer to a boolean, that, in addition to the check objects
20064 * state will also be modified directly. To stop setting the object pointed
20065 * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
20066 * then when this is called, the check objects state will also be modified to
20067 * reflect the value of the boolean @p statep points to, just like calling
20068 * elm_check_state_set().
20070 EAPI void elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
20071 EINA_DEPRECATED EAPI void elm_check_states_labels_set(Evas_Object *obj, const char *ontext, const char *offtext) EINA_ARG_NONNULL(1,2,3);
20072 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);
20079 * @defgroup Radio Radio
20081 * @image html img/widget/radio/preview-00.png
20082 * @image latex img/widget/radio/preview-00.eps
20084 * @brief Radio is a widget that allows for 1 or more options to be displayed
20085 * and have the user choose only 1 of them.
20087 * A radio object contains an indicator, an optional Label and an optional
20088 * icon object. While it's possible to have a group of only one radio they,
20089 * are normally used in groups of 2 or more. To add a radio to a group use
20090 * elm_radio_group_add(). The radio object(s) will select from one of a set
20091 * of integer values, so any value they are configuring needs to be mapped to
20092 * a set of integers. To configure what value that radio object represents,
20093 * use elm_radio_state_value_set() to set the integer it represents. To set
20094 * the value the whole group(which one is currently selected) is to indicate
20095 * use elm_radio_value_set() on any group member, and to get the groups value
20096 * use elm_radio_value_get(). For convenience the radio objects are also able
20097 * to directly set an integer(int) to the value that is selected. To specify
20098 * the pointer to this integer to modify, use elm_radio_value_pointer_set().
20099 * The radio objects will modify this directly. That implies the pointer must
20100 * point to valid memory for as long as the radio objects exist.
20102 * Signals that you can add callbacks for are:
20103 * @li changed - This is called whenever the user changes the state of one of
20104 * the radio objects within the group of radio objects that work together.
20106 * Default contents parts of the radio widget that you can use for are:
20107 * @li "icon" - A icon of the radio
20109 * @ref tutorial_radio show most of this API in action.
20113 * @brief Add a new radio to the parent
20115 * @param parent The parent object
20116 * @return The new object or NULL if it cannot be created
20118 EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20120 * @brief Set the text label of the radio object
20122 * @param obj The radio object
20123 * @param label The text label string in UTF-8
20125 * @deprecated use elm_object_text_set() instead.
20127 EINA_DEPRECATED EAPI void elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
20129 * @brief Get the text label of the radio object
20131 * @param obj The radio object
20132 * @return The text label string in UTF-8
20134 * @deprecated use elm_object_text_set() instead.
20136 EINA_DEPRECATED EAPI const char *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20138 * @brief Set the icon object of the radio object
20140 * @param obj The radio object
20141 * @param icon The icon object
20143 * Once the icon object is set, a previously set one will be deleted. If you
20144 * want to keep that old content object, use the elm_radio_icon_unset()
20147 * @deprecated use elm_object_part_content_set() instead.
20150 EINA_DEPRECATED EAPI void elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20152 * @brief Get the icon object of the radio object
20154 * @param obj The radio object
20155 * @return The icon object
20157 * @see elm_radio_icon_set()
20159 * @deprecated use elm_object_part_content_get() instead.
20162 EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20164 * @brief Unset the icon used for the radio object
20166 * @param obj The radio object
20167 * @return The icon object that was being used
20169 * Unparent and return the icon object which was set for this widget.
20171 * @see elm_radio_icon_set()
20172 * @deprecated use elm_object_part_content_unset() instead.
20175 EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20177 * @brief Add this radio to a group of other radio objects
20179 * @param obj The radio object
20180 * @param group Any object whose group the @p obj is to join.
20182 * Radio objects work in groups. Each member should have a different integer
20183 * value assigned. In order to have them work as a group, they need to know
20184 * about each other. This adds the given radio object to the group of which
20185 * the group object indicated is a member.
20187 EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
20189 * @brief Set the integer value that this radio object represents
20191 * @param obj The radio object
20192 * @param value The value to use if this radio object is selected
20194 * This sets the value of the radio.
20196 EAPI void elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20198 * @brief Get the integer value that this radio object represents
20200 * @param obj The radio object
20201 * @return The value used if this radio object is selected
20203 * This gets the value of the radio.
20205 * @see elm_radio_value_set()
20207 EAPI int elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20209 * @brief Set the value of the radio.
20211 * @param obj The radio object
20212 * @param value The value to use for the group
20214 * This sets the value of the radio group and will also set the value if
20215 * pointed to, to the value supplied, but will not call any callbacks.
20217 EAPI void elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20219 * @brief Get the state of the radio object
20221 * @param obj The radio object
20222 * @return The integer state
20224 EAPI int elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20226 * @brief Set a convenience pointer to a integer to change
20228 * @param obj The radio object
20229 * @param valuep Pointer to the integer to modify
20231 * This sets a pointer to a integer, that, in addition to the radio objects
20232 * state will also be modified directly. To stop setting the object pointed
20233 * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
20234 * when this is called, the radio objects state will also be modified to
20235 * reflect the value of the integer valuep points to, just like calling
20236 * elm_radio_value_set().
20238 EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
20244 * @defgroup Pager Pager
20246 * @image html img/widget/pager/preview-00.png
20247 * @image latex img/widget/pager/preview-00.eps
20249 * @brief Widget that allows flipping between one or more āpagesā
20252 * The flipping between pages of objects is animated. All content
20253 * in the pager is kept in a stack, being the last content added
20254 * (visible one) on the top of that stack.
20256 * Objects can be pushed or popped from the stack or deleted as
20257 * well. Pushes and pops will animate the widget accordingly to its
20258 * style (a pop will also delete the child object once the
20259 * animation is finished). Any object already in the pager can be
20260 * promoted to the top (from its current stacking position) through
20261 * the use of elm_pager_content_promote(). New objects are pushed
20262 * to the top with elm_pager_content_push(). When the top item is
20263 * no longer wanted, simply pop it with elm_pager_content_pop() and
20264 * it will also be deleted. If an object is no longer needed and is
20265 * not the top item, just delete it as normal. You can query which
20266 * objects are the top and bottom with
20267 * elm_pager_content_bottom_get() and elm_pager_content_top_get().
20269 * Signals that you can add callbacks for are:
20270 * - @c "show,finished" - when a new page is actually shown on the top
20271 * - @c "hide,finished" - when a previous page is hidden
20273 * Only after the first of that signals the child object is
20274 * guaranteed to be visible, as in @c evas_object_visible_get().
20276 * This widget has the following styles available:
20279 * - @c "fade_translucide"
20280 * - @c "fade_invisible"
20282 * @note These styles affect only the flipping animations on the
20283 * default theme; the appearance when not animating is unaffected
20286 * @ref tutorial_pager gives a good overview of the usage of the API.
20291 * Add a new pager to the parent
20293 * @param parent The parent object
20294 * @return The new object or NULL if it cannot be created
20298 EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20301 * @brief Push an object to the top of the pager stack (and show it).
20303 * @param obj The pager object
20304 * @param content The object to push
20306 * The object pushed becomes a child of the pager, it will be controlled and
20307 * deleted when the pager is deleted.
20309 * @note If the content is already in the stack use
20310 * elm_pager_content_promote().
20311 * @warning Using this function on @p content already in the stack results in
20312 * undefined behavior.
20314 EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20317 * @brief Pop the object that is on top of the stack
20319 * @param obj The pager object
20321 * This pops the object that is on the top(visible) of the pager, makes it
20322 * disappear, then deletes the object. The object that was underneath it on
20323 * the stack will become visible.
20325 EAPI void elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
20328 * @brief Moves an object already in the pager stack to the top of the stack.
20330 * @param obj The pager object
20331 * @param content The object to promote
20333 * This will take the @p content and move it to the top of the stack as
20334 * if it had been pushed there.
20336 * @note If the content isn't already in the stack use
20337 * elm_pager_content_push().
20338 * @warning Using this function on @p content not already in the stack
20339 * results in undefined behavior.
20341 EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20344 * @brief Return the object at the bottom of the pager stack
20346 * @param obj The pager object
20347 * @return The bottom object or NULL if none
20349 EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20352 * @brief Return the object at the top of the pager stack
20354 * @param obj The pager object
20355 * @return The top object or NULL if none
20357 EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20364 * @defgroup Slideshow Slideshow
20366 * @image html img/widget/slideshow/preview-00.png
20367 * @image latex img/widget/slideshow/preview-00.eps
20369 * This widget, as the name indicates, is a pre-made image
20370 * slideshow panel, with API functions acting on (child) image
20371 * items presentation. Between those actions, are:
20372 * - advance to next/previous image
20373 * - select the style of image transition animation
20374 * - set the exhibition time for each image
20375 * - start/stop the slideshow
20377 * The transition animations are defined in the widget's theme,
20378 * consequently new animations can be added without having to
20379 * update the widget's code.
20381 * @section Slideshow_Items Slideshow items
20383 * For slideshow items, just like for @ref Genlist "genlist" ones,
20384 * the user defines a @b classes, specifying functions that will be
20385 * called on the item's creation and deletion times.
20387 * The #Elm_Slideshow_Item_Class structure contains the following
20390 * - @c func.get - When an item is displayed, this function is
20391 * called, and it's where one should create the item object, de
20392 * facto. For example, the object can be a pure Evas image object
20393 * or an Elementary @ref Photocam "photocam" widget. See
20394 * #SlideshowItemGetFunc.
20395 * - @c func.del - When an item is no more displayed, this function
20396 * is called, where the user must delete any data associated to
20397 * the item. See #SlideshowItemDelFunc.
20399 * @section Slideshow_Caching Slideshow caching
20401 * The slideshow provides facilities to have items adjacent to the
20402 * one being displayed <b>already "realized"</b> (i.e. loaded) for
20403 * you, so that the system does not have to decode image data
20404 * anymore at the time it has to actually switch images on its
20405 * viewport. The user is able to set the numbers of items to be
20406 * cached @b before and @b after the current item, in the widget's
20409 * Smart events one can add callbacks for are:
20411 * - @c "changed" - when the slideshow switches its view to a new
20414 * List of examples for the slideshow widget:
20415 * @li @ref slideshow_example
20419 * @addtogroup Slideshow
20423 typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
20424 typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
20425 typedef struct _Elm_Slideshow_Item Elm_Slideshow_Item; /**< Slideshow item handle */
20426 typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
20427 typedef void (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
20430 * @struct _Elm_Slideshow_Item_Class
20432 * Slideshow item class definition. See @ref Slideshow_Items for
20435 struct _Elm_Slideshow_Item_Class
20437 struct _Elm_Slideshow_Item_Class_Func
20439 SlideshowItemGetFunc get;
20440 SlideshowItemDelFunc del;
20442 }; /**< #Elm_Slideshow_Item_Class member definitions */
20445 * Add a new slideshow widget to the given parent Elementary
20446 * (container) object
20448 * @param parent The parent object
20449 * @return A new slideshow widget handle or @c NULL, on errors
20451 * This function inserts a new slideshow widget on the canvas.
20453 * @ingroup Slideshow
20455 EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20458 * Add (append) a new item in a given slideshow widget.
20460 * @param obj The slideshow object
20461 * @param itc The item class for the item
20462 * @param data The item's data
20463 * @return A handle to the item added or @c NULL, on errors
20465 * Add a new item to @p obj's internal list of items, appending it.
20466 * The item's class must contain the function really fetching the
20467 * image object to show for this item, which could be an Evas image
20468 * object or an Elementary photo, for example. The @p data
20469 * parameter is going to be passed to both class functions of the
20472 * @see #Elm_Slideshow_Item_Class
20473 * @see elm_slideshow_item_sorted_insert()
20475 * @ingroup Slideshow
20477 EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
20480 * Insert a new item into the given slideshow widget, using the @p func
20481 * function to sort items (by item handles).
20483 * @param obj The slideshow object
20484 * @param itc The item class for the item
20485 * @param data The item's data
20486 * @param func The comparing function to be used to sort slideshow
20487 * items <b>by #Elm_Slideshow_Item item handles</b>
20488 * @return Returns The slideshow item handle, on success, or
20489 * @c NULL, on errors
20491 * Add a new item to @p obj's internal list of items, in a position
20492 * determined by the @p func comparing function. The item's class
20493 * must contain the function really fetching the image object to
20494 * show for this item, which could be an Evas image object or an
20495 * Elementary photo, for example. The @p data parameter is going to
20496 * be passed to both class functions of the item.
20498 * @see #Elm_Slideshow_Item_Class
20499 * @see elm_slideshow_item_add()
20501 * @ingroup Slideshow
20503 EAPI Elm_Slideshow_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func) EINA_ARG_NONNULL(1);
20506 * Display a given slideshow widget's item, programmatically.
20508 * @param obj The slideshow object
20509 * @param item The item to display on @p obj's viewport
20511 * The change between the current item and @p item will use the
20512 * transition @p obj is set to use (@see
20513 * elm_slideshow_transition_set()).
20515 * @ingroup Slideshow
20517 EAPI void elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20520 * Slide to the @b next item, in a given slideshow widget
20522 * @param obj The slideshow object
20524 * The sliding animation @p obj is set to use will be the
20525 * transition effect used, after this call is issued.
20527 * @note If the end of the slideshow's internal list of items is
20528 * reached, it'll wrap around to the list's beginning, again.
20530 * @ingroup Slideshow
20532 EAPI void elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
20535 * Slide to the @b previous item, in a given slideshow widget
20537 * @param obj The slideshow object
20539 * The sliding animation @p obj is set to use will be the
20540 * transition effect used, after this call is issued.
20542 * @note If the beginning of the slideshow's internal list of items
20543 * is reached, it'll wrap around to the list's end, again.
20545 * @ingroup Slideshow
20547 EAPI void elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
20550 * Returns the list of sliding transition/effect names available, for a
20551 * given slideshow widget.
20553 * @param obj The slideshow object
20554 * @return The list of transitions (list of @b stringshared strings
20557 * The transitions, which come from @p obj's theme, must be an EDC
20558 * data item named @c "transitions" on the theme file, with (prefix)
20559 * names of EDC programs actually implementing them.
20561 * The available transitions for slideshows on the default theme are:
20562 * - @c "fade" - the current item fades out, while the new one
20563 * fades in to the slideshow's viewport.
20564 * - @c "black_fade" - the current item fades to black, and just
20565 * then, the new item will fade in.
20566 * - @c "horizontal" - the current item slides horizontally, until
20567 * it gets out of the slideshow's viewport, while the new item
20568 * comes from the left to take its place.
20569 * - @c "vertical" - the current item slides vertically, until it
20570 * gets out of the slideshow's viewport, while the new item comes
20571 * from the bottom to take its place.
20572 * - @c "square" - the new item starts to appear from the middle of
20573 * the current one, but with a tiny size, growing until its
20574 * target (full) size and covering the old one.
20576 * @warning The stringshared strings get no new references
20577 * exclusive to the user grabbing the list, here, so if you'd like
20578 * to use them out of this call's context, you'd better @c
20579 * eina_stringshare_ref() them.
20581 * @see elm_slideshow_transition_set()
20583 * @ingroup Slideshow
20585 EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20588 * Set the current slide transition/effect in use for a given
20591 * @param obj The slideshow object
20592 * @param transition The new transition's name string
20594 * If @p transition is implemented in @p obj's theme (i.e., is
20595 * contained in the list returned by
20596 * elm_slideshow_transitions_get()), this new sliding effect will
20597 * be used on the widget.
20599 * @see elm_slideshow_transitions_get() for more details
20601 * @ingroup Slideshow
20603 EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
20606 * Get the current slide transition/effect in use for a given
20609 * @param obj The slideshow object
20610 * @return The current transition's name
20612 * @see elm_slideshow_transition_set() for more details
20614 * @ingroup Slideshow
20616 EAPI const char *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20619 * Set the interval between each image transition on a given
20620 * slideshow widget, <b>and start the slideshow, itself</b>
20622 * @param obj The slideshow object
20623 * @param timeout The new displaying timeout for images
20625 * After this call, the slideshow widget will start cycling its
20626 * view, sequentially and automatically, with the images of the
20627 * items it has. The time between each new image displayed is going
20628 * to be @p timeout, in @b seconds. If a different timeout was set
20629 * previously and an slideshow was in progress, it will continue
20630 * with the new time between transitions, after this call.
20632 * @note A value less than or equal to 0 on @p timeout will disable
20633 * the widget's internal timer, thus halting any slideshow which
20634 * could be happening on @p obj.
20636 * @see elm_slideshow_timeout_get()
20638 * @ingroup Slideshow
20640 EAPI void elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
20643 * Get the interval set for image transitions on a given slideshow
20646 * @param obj The slideshow object
20647 * @return Returns the timeout set on it
20649 * @see elm_slideshow_timeout_set() for more details
20651 * @ingroup Slideshow
20653 EAPI double elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20656 * Set if, after a slideshow is started, for a given slideshow
20657 * widget, its items should be displayed cyclically or not.
20659 * @param obj The slideshow object
20660 * @param loop Use @c EINA_TRUE to make it cycle through items or
20661 * @c EINA_FALSE for it to stop at the end of @p obj's internal
20664 * @note elm_slideshow_next() and elm_slideshow_previous() will @b
20665 * ignore what is set by this functions, i.e., they'll @b always
20666 * cycle through items. This affects only the "automatic"
20667 * slideshow, as set by elm_slideshow_timeout_set().
20669 * @see elm_slideshow_loop_get()
20671 * @ingroup Slideshow
20673 EAPI void elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
20676 * Get if, after a slideshow is started, for a given slideshow
20677 * widget, its items are to be displayed cyclically or not.
20679 * @param obj The slideshow object
20680 * @return @c EINA_TRUE, if the items in @p obj will be cycled
20681 * through or @c EINA_FALSE, otherwise
20683 * @see elm_slideshow_loop_set() for more details
20685 * @ingroup Slideshow
20687 EAPI Eina_Bool elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20690 * Remove all items from a given slideshow widget
20692 * @param obj The slideshow object
20694 * This removes (and deletes) all items in @p obj, leaving it
20697 * @see elm_slideshow_item_del(), to remove just one item.
20699 * @ingroup Slideshow
20701 EAPI void elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20704 * Get the internal list of items in a given slideshow widget.
20706 * @param obj The slideshow object
20707 * @return The list of items (#Elm_Slideshow_Item as data) or
20708 * @c NULL on errors.
20710 * This list is @b not to be modified in any way and must not be
20711 * freed. Use the list members with functions like
20712 * elm_slideshow_item_del(), elm_slideshow_item_data_get().
20714 * @warning This list is only valid until @p obj object's internal
20715 * items list is changed. It should be fetched again with another
20716 * call to this function when changes happen.
20718 * @ingroup Slideshow
20720 EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20723 * Delete a given item from a slideshow widget.
20725 * @param item The slideshow item
20727 * @ingroup Slideshow
20729 EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20732 * Return the data associated with a given slideshow item
20734 * @param item The slideshow item
20735 * @return Returns the data associated to this item
20737 * @ingroup Slideshow
20739 EAPI void *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20742 * Returns the currently displayed item, in a given slideshow widget
20744 * @param obj The slideshow object
20745 * @return A handle to the item being displayed in @p obj or
20746 * @c NULL, if none is (and on errors)
20748 * @ingroup Slideshow
20750 EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20753 * Get the real Evas object created to implement the view of a
20754 * given slideshow item
20756 * @param item The slideshow item.
20757 * @return the Evas object implementing this item's view.
20759 * This returns the actual Evas object used to implement the
20760 * specified slideshow item's view. This may be @c NULL, as it may
20761 * not have been created or may have been deleted, at any time, by
20762 * the slideshow. <b>Do not modify this object</b> (move, resize,
20763 * show, hide, etc.), as the slideshow is controlling it. This
20764 * function is for querying, emitting custom signals or hooking
20765 * lower level callbacks for events on that object. Do not delete
20766 * this object under any circumstances.
20768 * @see elm_slideshow_item_data_get()
20770 * @ingroup Slideshow
20772 EAPI Evas_Object* elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
20775 * Get the the item, in a given slideshow widget, placed at
20776 * position @p nth, in its internal items list
20778 * @param obj The slideshow object
20779 * @param nth The number of the item to grab a handle to (0 being
20781 * @return The item stored in @p obj at position @p nth or @c NULL,
20782 * if there's no item with that index (and on errors)
20784 * @ingroup Slideshow
20786 EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
20789 * Set the current slide layout in use for a given slideshow widget
20791 * @param obj The slideshow object
20792 * @param layout The new layout's name string
20794 * If @p layout is implemented in @p obj's theme (i.e., is contained
20795 * in the list returned by elm_slideshow_layouts_get()), this new
20796 * images layout will be used on the widget.
20798 * @see elm_slideshow_layouts_get() for more details
20800 * @ingroup Slideshow
20802 EAPI void elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
20805 * Get the current slide layout in use for a given slideshow widget
20807 * @param obj The slideshow object
20808 * @return The current layout's name
20810 * @see elm_slideshow_layout_set() for more details
20812 * @ingroup Slideshow
20814 EAPI const char *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20817 * Returns the list of @b layout names available, for a given
20818 * slideshow widget.
20820 * @param obj The slideshow object
20821 * @return The list of layouts (list of @b stringshared strings
20824 * Slideshow layouts will change how the widget is to dispose each
20825 * image item in its viewport, with regard to cropping, scaling,
20828 * The layouts, which come from @p obj's theme, must be an EDC
20829 * data item name @c "layouts" on the theme file, with (prefix)
20830 * names of EDC programs actually implementing them.
20832 * The available layouts for slideshows on the default theme are:
20833 * - @c "fullscreen" - item images with original aspect, scaled to
20834 * touch top and down slideshow borders or, if the image's heigh
20835 * is not enough, left and right slideshow borders.
20836 * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
20837 * one, but always leaving 10% of the slideshow's dimensions of
20838 * distance between the item image's borders and the slideshow
20839 * borders, for each axis.
20841 * @warning The stringshared strings get no new references
20842 * exclusive to the user grabbing the list, here, so if you'd like
20843 * to use them out of this call's context, you'd better @c
20844 * eina_stringshare_ref() them.
20846 * @see elm_slideshow_layout_set()
20848 * @ingroup Slideshow
20850 EAPI const Eina_List *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20853 * Set the number of items to cache, on a given slideshow widget,
20854 * <b>before the current item</b>
20856 * @param obj The slideshow object
20857 * @param count Number of items to cache before the current one
20859 * The default value for this property is @c 2. See
20860 * @ref Slideshow_Caching "slideshow caching" for more details.
20862 * @see elm_slideshow_cache_before_get()
20864 * @ingroup Slideshow
20866 EAPI void elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20869 * Retrieve the number of items to cache, on a given slideshow widget,
20870 * <b>before the current item</b>
20872 * @param obj The slideshow object
20873 * @return The number of items set to be cached before the current one
20875 * @see elm_slideshow_cache_before_set() for more details
20877 * @ingroup Slideshow
20879 EAPI int elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20882 * Set the number of items to cache, on a given slideshow widget,
20883 * <b>after the current item</b>
20885 * @param obj The slideshow object
20886 * @param count Number of items to cache after the current one
20888 * The default value for this property is @c 2. See
20889 * @ref Slideshow_Caching "slideshow caching" for more details.
20891 * @see elm_slideshow_cache_after_get()
20893 * @ingroup Slideshow
20895 EAPI void elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20898 * Retrieve the number of items to cache, on a given slideshow widget,
20899 * <b>after the current item</b>
20901 * @param obj The slideshow object
20902 * @return The number of items set to be cached after the current one
20904 * @see elm_slideshow_cache_after_set() for more details
20906 * @ingroup Slideshow
20908 EAPI int elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20911 * Get the number of items stored in a given slideshow widget
20913 * @param obj The slideshow object
20914 * @return The number of items on @p obj, at the moment of this call
20916 * @ingroup Slideshow
20918 EAPI unsigned int elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20925 * @defgroup Fileselector File Selector
20927 * @image html img/widget/fileselector/preview-00.png
20928 * @image latex img/widget/fileselector/preview-00.eps
20930 * A file selector is a widget that allows a user to navigate
20931 * through a file system, reporting file selections back via its
20934 * It contains shortcut buttons for home directory (@c ~) and to
20935 * jump one directory upwards (..), as well as cancel/ok buttons to
20936 * confirm/cancel a given selection. After either one of those two
20937 * former actions, the file selector will issue its @c "done" smart
20940 * There's a text entry on it, too, showing the name of the current
20941 * selection. There's the possibility of making it editable, so it
20942 * is useful on file saving dialogs on applications, where one
20943 * gives a file name to save contents to, in a given directory in
20944 * the system. This custom file name will be reported on the @c
20945 * "done" smart callback (explained in sequence).
20947 * Finally, it has a view to display file system items into in two
20952 * If Elementary is built with support of the Ethumb thumbnailing
20953 * library, the second form of view will display preview thumbnails
20954 * of files which it supports.
20956 * Smart callbacks one can register to:
20958 * - @c "selected" - the user has clicked on a file (when not in
20959 * folders-only mode) or directory (when in folders-only mode)
20960 * - @c "directory,open" - the list has been populated with new
20961 * content (@c event_info is a pointer to the directory's
20962 * path, a @b stringshared string)
20963 * - @c "done" - the user has clicked on the "ok" or "cancel"
20964 * buttons (@c event_info is a pointer to the selection's
20965 * path, a @b stringshared string)
20967 * Here is an example on its usage:
20968 * @li @ref fileselector_example
20972 * @addtogroup Fileselector
20977 * Defines how a file selector widget is to layout its contents
20978 * (file system entries).
20980 typedef enum _Elm_Fileselector_Mode
20982 ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
20983 ELM_FILESELECTOR_GRID, /**< layout as a grid */
20984 ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
20985 } Elm_Fileselector_Mode;
20988 * Add a new file selector widget to the given parent Elementary
20989 * (container) object
20991 * @param parent The parent object
20992 * @return a new file selector widget handle or @c NULL, on errors
20994 * This function inserts a new file selector widget on the canvas.
20996 * @ingroup Fileselector
20998 EAPI Evas_Object *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21001 * Enable/disable the file name entry box where the user can type
21002 * in a name for a file, in a given file selector widget
21004 * @param obj The file selector object
21005 * @param is_save @c EINA_TRUE to make the file selector a "saving
21006 * dialog", @c EINA_FALSE otherwise
21008 * Having the entry editable is useful on file saving dialogs on
21009 * applications, where one gives a file name to save contents to,
21010 * in a given directory in the system. This custom file name will
21011 * be reported on the @c "done" smart callback.
21013 * @see elm_fileselector_is_save_get()
21015 * @ingroup Fileselector
21017 EAPI void elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
21020 * Get whether the given file selector is in "saving dialog" mode
21022 * @param obj The file selector object
21023 * @return @c EINA_TRUE, if the file selector is in "saving dialog"
21024 * mode, @c EINA_FALSE otherwise (and on errors)
21026 * @see elm_fileselector_is_save_set() for more details
21028 * @ingroup Fileselector
21030 EAPI Eina_Bool elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21033 * Enable/disable folder-only view for a given file selector widget
21035 * @param obj The file selector object
21036 * @param only @c EINA_TRUE to make @p obj only display
21037 * directories, @c EINA_FALSE to make files to be displayed in it
21040 * If enabled, the widget's view will only display folder items,
21043 * @see elm_fileselector_folder_only_get()
21045 * @ingroup Fileselector
21047 EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
21050 * Get whether folder-only view is set for a given file selector
21053 * @param obj The file selector object
21054 * @return only @c EINA_TRUE if @p obj is only displaying
21055 * directories, @c EINA_FALSE if files are being displayed in it
21056 * too (and on errors)
21058 * @see elm_fileselector_folder_only_get()
21060 * @ingroup Fileselector
21062 EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21065 * Enable/disable the "ok" and "cancel" buttons on a given file
21068 * @param obj The file selector object
21069 * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
21071 * @note A file selector without those buttons will never emit the
21072 * @c "done" smart event, and is only usable if one is just hooking
21073 * to the other two events.
21075 * @see elm_fileselector_buttons_ok_cancel_get()
21077 * @ingroup Fileselector
21079 EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
21082 * Get whether the "ok" and "cancel" buttons on a given file
21083 * selector widget are being shown.
21085 * @param obj The file selector object
21086 * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
21087 * otherwise (and on errors)
21089 * @see elm_fileselector_buttons_ok_cancel_set() for more details
21091 * @ingroup Fileselector
21093 EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21096 * Enable/disable a tree view in the given file selector widget,
21097 * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
21099 * @param obj The file selector object
21100 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
21103 * In a tree view, arrows are created on the sides of directories,
21104 * allowing them to expand in place.
21106 * @note If it's in other mode, the changes made by this function
21107 * will only be visible when one switches back to "list" mode.
21109 * @see elm_fileselector_expandable_get()
21111 * @ingroup Fileselector
21113 EAPI void elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
21116 * Get whether tree view is enabled for the given file selector
21119 * @param obj The file selector object
21120 * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
21121 * otherwise (and or errors)
21123 * @see elm_fileselector_expandable_set() for more details
21125 * @ingroup Fileselector
21127 EAPI Eina_Bool elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21130 * Set, programmatically, the @b directory that a given file
21131 * selector widget will display contents from
21133 * @param obj The file selector object
21134 * @param path The path to display in @p obj
21136 * This will change the @b directory that @p obj is displaying. It
21137 * will also clear the text entry area on the @p obj object, which
21138 * displays select files' names.
21140 * @see elm_fileselector_path_get()
21142 * @ingroup Fileselector
21144 EAPI void elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21147 * Get the parent directory's path that a given file selector
21148 * widget is displaying
21150 * @param obj The file selector object
21151 * @return The (full) path of the directory the file selector is
21152 * displaying, a @b stringshared string
21154 * @see elm_fileselector_path_set()
21156 * @ingroup Fileselector
21158 EAPI const char *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21161 * Set, programmatically, the currently selected file/directory in
21162 * the given file selector widget
21164 * @param obj The file selector object
21165 * @param path The (full) path to a file or directory
21166 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
21167 * latter case occurs if the directory or file pointed to do not
21170 * @see elm_fileselector_selected_get()
21172 * @ingroup Fileselector
21174 EAPI Eina_Bool elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21177 * Get the currently selected item's (full) path, in the given file
21180 * @param obj The file selector object
21181 * @return The absolute path of the selected item, a @b
21182 * stringshared string
21184 * @note Custom editions on @p obj object's text entry, if made,
21185 * will appear on the return string of this function, naturally.
21187 * @see elm_fileselector_selected_set() for more details
21189 * @ingroup Fileselector
21191 EAPI const char *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21194 * Set the mode in which a given file selector widget will display
21195 * (layout) file system entries in its view
21197 * @param obj The file selector object
21198 * @param mode The mode of the fileselector, being it one of
21199 * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
21200 * first one, naturally, will display the files in a list. The
21201 * latter will make the widget to display its entries in a grid
21204 * @note By using elm_fileselector_expandable_set(), the user may
21205 * trigger a tree view for that list.
21207 * @note If Elementary is built with support of the Ethumb
21208 * thumbnailing library, the second form of view will display
21209 * preview thumbnails of files which it supports. You must have
21210 * elm_need_ethumb() called in your Elementary for thumbnailing to
21213 * @see elm_fileselector_expandable_set().
21214 * @see elm_fileselector_mode_get().
21216 * @ingroup Fileselector
21218 EAPI void elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
21221 * Get the mode in which a given file selector widget is displaying
21222 * (layouting) file system entries in its view
21224 * @param obj The fileselector object
21225 * @return The mode in which the fileselector is at
21227 * @see elm_fileselector_mode_set() for more details
21229 * @ingroup Fileselector
21231 EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21238 * @defgroup Progressbar Progress bar
21240 * The progress bar is a widget for visually representing the
21241 * progress status of a given job/task.
21243 * A progress bar may be horizontal or vertical. It may display an
21244 * icon besides it, as well as primary and @b units labels. The
21245 * former is meant to label the widget as a whole, while the
21246 * latter, which is formatted with floating point values (and thus
21247 * accepts a <c>printf</c>-style format string, like <c>"%1.2f
21248 * units"</c>), is meant to label the widget's <b>progress
21249 * value</b>. Label, icon and unit strings/objects are @b optional
21250 * for progress bars.
21252 * A progress bar may be @b inverted, in which state it gets its
21253 * values inverted, with high values being on the left or top and
21254 * low values on the right or bottom, as opposed to normally have
21255 * the low values on the former and high values on the latter,
21256 * respectively, for horizontal and vertical modes.
21258 * The @b span of the progress, as set by
21259 * elm_progressbar_span_size_set(), is its length (horizontally or
21260 * vertically), unless one puts size hints on the widget to expand
21261 * on desired directions, by any container. That length will be
21262 * scaled by the object or applications scaling factor. At any
21263 * point code can query the progress bar for its value with
21264 * elm_progressbar_value_get().
21266 * Available widget styles for progress bars:
21268 * - @c "wheel" (simple style, no text, no progression, only
21269 * "pulse" effect is available)
21271 * Default contents parts of the progressbar widget that you can use for are:
21272 * @li "icon" - A icon of the progressbar
21274 * Here is an example on its usage:
21275 * @li @ref progressbar_example
21279 * Add a new progress bar widget to the given parent Elementary
21280 * (container) object
21282 * @param parent The parent object
21283 * @return a new progress bar widget handle or @c NULL, on errors
21285 * This function inserts a new progress bar widget on the canvas.
21287 * @ingroup Progressbar
21289 EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21292 * Set whether a given progress bar widget is at "pulsing mode" or
21295 * @param obj The progress bar object
21296 * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
21297 * @c EINA_FALSE to put it back to its default one
21299 * By default, progress bars will display values from the low to
21300 * high value boundaries. There are, though, contexts in which the
21301 * state of progression of a given task is @b unknown. For those,
21302 * one can set a progress bar widget to a "pulsing state", to give
21303 * the user an idea that some computation is being held, but
21304 * without exact progress values. In the default theme it will
21305 * animate its bar with the contents filling in constantly and back
21306 * to non-filled, in a loop. To start and stop this pulsing
21307 * animation, one has to explicitly call elm_progressbar_pulse().
21309 * @see elm_progressbar_pulse_get()
21310 * @see elm_progressbar_pulse()
21312 * @ingroup Progressbar
21314 EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
21317 * Get whether a given progress bar widget is at "pulsing mode" or
21320 * @param obj The progress bar object
21321 * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
21322 * if it's in the default one (and on errors)
21324 * @ingroup Progressbar
21326 EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21329 * Start/stop a given progress bar "pulsing" animation, if its
21332 * @param obj The progress bar object
21333 * @param state @c EINA_TRUE, to @b start the pulsing animation,
21334 * @c EINA_FALSE to @b stop it
21336 * @note This call won't do anything if @p obj is not under "pulsing mode".
21338 * @see elm_progressbar_pulse_set() for more details.
21340 * @ingroup Progressbar
21342 EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
21345 * Set the progress value (in percentage) on a given progress bar
21348 * @param obj The progress bar object
21349 * @param val The progress value (@b must be between @c 0.0 and @c
21352 * Use this call to set progress bar levels.
21354 * @note If you passes a value out of the specified range for @p
21355 * val, it will be interpreted as the @b closest of the @b boundary
21356 * values in the range.
21358 * @ingroup Progressbar
21360 EAPI void elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21363 * Get the progress value (in percentage) on a given progress bar
21366 * @param obj The progress bar object
21367 * @return The value of the progressbar
21369 * @see elm_progressbar_value_set() for more details
21371 * @ingroup Progressbar
21373 EAPI double elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21376 * Set the label of a given progress bar widget
21378 * @param obj The progress bar object
21379 * @param label The text label string, in UTF-8
21381 * @ingroup Progressbar
21382 * @deprecated use elm_object_text_set() instead.
21384 EINA_DEPRECATED EAPI void elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21387 * Get the label of a given progress bar widget
21389 * @param obj The progressbar object
21390 * @return The text label string, in UTF-8
21392 * @ingroup Progressbar
21393 * @deprecated use elm_object_text_set() instead.
21395 EINA_DEPRECATED EAPI const char *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21398 * Set the icon object of a given progress bar widget
21400 * @param obj The progress bar object
21401 * @param icon The icon object
21403 * Use this call to decorate @p obj with an icon next to it.
21405 * @note Once the icon object is set, a previously set one will be
21406 * deleted. If you want to keep that old content object, use the
21407 * elm_progressbar_icon_unset() function.
21409 * @see elm_progressbar_icon_get()
21410 * @deprecated use elm_object_part_content_set() instead.
21412 * @ingroup Progressbar
21414 EINA_DEPRECATED EAPI void elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21417 * Retrieve the icon object set for a given progress bar widget
21419 * @param obj The progress bar object
21420 * @return The icon object's handle, if @p obj had one set, or @c NULL,
21421 * otherwise (and on errors)
21423 * @see elm_progressbar_icon_set() for more details
21424 * @deprecated use elm_object_part_content_get() instead.
21426 * @ingroup Progressbar
21428 EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21431 * Unset an icon set on a given progress bar widget
21433 * @param obj The progress bar object
21434 * @return The icon object that was being used, if any was set, or
21435 * @c NULL, otherwise (and on errors)
21437 * This call will unparent and return the icon object which was set
21438 * for this widget, previously, on success.
21440 * @see elm_progressbar_icon_set() for more details
21441 * @deprecated use elm_object_part_content_unset() instead.
21443 * @ingroup Progressbar
21445 EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21448 * Set the (exact) length of the bar region of a given progress bar
21451 * @param obj The progress bar object
21452 * @param size The length of the progress bar's bar region
21454 * This sets the minimum width (when in horizontal mode) or height
21455 * (when in vertical mode) of the actual bar area of the progress
21456 * bar @p obj. This in turn affects the object's minimum size. Use
21457 * this when you're not setting other size hints expanding on the
21458 * given direction (like weight and alignment hints) and you would
21459 * like it to have a specific size.
21461 * @note Icon, label and unit text around @p obj will require their
21462 * own space, which will make @p obj to require more the @p size,
21465 * @see elm_progressbar_span_size_get()
21467 * @ingroup Progressbar
21469 EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
21472 * Get the length set for the bar region of a given progress bar
21475 * @param obj The progress bar object
21476 * @return The length of the progress bar's bar region
21478 * If that size was not set previously, with
21479 * elm_progressbar_span_size_set(), this call will return @c 0.
21481 * @ingroup Progressbar
21483 EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21486 * Set the format string for a given progress bar widget's units
21489 * @param obj The progress bar object
21490 * @param format The format string for @p obj's units label
21492 * If @c NULL is passed on @p format, it will make @p obj's units
21493 * area to be hidden completely. If not, it'll set the <b>format
21494 * string</b> for the units label's @b text. The units label is
21495 * provided a floating point value, so the units text is up display
21496 * at most one floating point falue. Note that the units label is
21497 * optional. Use a format string such as "%1.2f meters" for
21500 * @note The default format string for a progress bar is an integer
21501 * percentage, as in @c "%.0f %%".
21503 * @see elm_progressbar_unit_format_get()
21505 * @ingroup Progressbar
21507 EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
21510 * Retrieve the format string set for a given progress bar widget's
21513 * @param obj The progress bar object
21514 * @return The format set string for @p obj's units label or
21515 * @c NULL, if none was set (and on errors)
21517 * @see elm_progressbar_unit_format_set() for more details
21519 * @ingroup Progressbar
21521 EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21524 * Set the orientation of a given progress bar widget
21526 * @param obj The progress bar object
21527 * @param horizontal Use @c EINA_TRUE to make @p obj to be
21528 * @b horizontal, @c EINA_FALSE to make it @b vertical
21530 * Use this function to change how your progress bar is to be
21531 * disposed: vertically or horizontally.
21533 * @see elm_progressbar_horizontal_get()
21535 * @ingroup Progressbar
21537 EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21540 * Retrieve the orientation of a given progress bar widget
21542 * @param obj The progress bar object
21543 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
21544 * @c EINA_FALSE if it's @b vertical (and on errors)
21546 * @see elm_progressbar_horizontal_set() for more details
21548 * @ingroup Progressbar
21550 EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21553 * Invert a given progress bar widget's displaying values order
21555 * @param obj The progress bar object
21556 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
21557 * @c EINA_FALSE to bring it back to default, non-inverted values.
21559 * A progress bar may be @b inverted, in which state it gets its
21560 * values inverted, with high values being on the left or top and
21561 * low values on the right or bottom, as opposed to normally have
21562 * the low values on the former and high values on the latter,
21563 * respectively, for horizontal and vertical modes.
21565 * @see elm_progressbar_inverted_get()
21567 * @ingroup Progressbar
21569 EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
21572 * Get whether a given progress bar widget's displaying values are
21575 * @param obj The progress bar object
21576 * @return @c EINA_TRUE, if @p obj has inverted values,
21577 * @c EINA_FALSE otherwise (and on errors)
21579 * @see elm_progressbar_inverted_set() for more details
21581 * @ingroup Progressbar
21583 EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21586 * @defgroup Separator Separator
21588 * @brief Separator is a very thin object used to separate other objects.
21590 * A separator can be vertical or horizontal.
21592 * @ref tutorial_separator is a good example of how to use a separator.
21596 * @brief Add a separator object to @p parent
21598 * @param parent The parent object
21600 * @return The separator object, or NULL upon failure
21602 EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21604 * @brief Set the horizontal mode of a separator object
21606 * @param obj The separator object
21607 * @param horizontal If true, the separator is horizontal
21609 EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21611 * @brief Get the horizontal mode of a separator object
21613 * @param obj The separator object
21614 * @return If true, the separator is horizontal
21616 * @see elm_separator_horizontal_set()
21618 EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21624 * @defgroup Spinner Spinner
21625 * @ingroup Elementary
21627 * @image html img/widget/spinner/preview-00.png
21628 * @image latex img/widget/spinner/preview-00.eps
21630 * A spinner is a widget which allows the user to increase or decrease
21631 * numeric values using arrow buttons, or edit values directly, clicking
21632 * over it and typing the new value.
21634 * By default the spinner will not wrap and has a label
21635 * of "%.0f" (just showing the integer value of the double).
21637 * A spinner has a label that is formatted with floating
21638 * point values and thus accepts a printf-style format string, like
21639 * ā%1.2f unitsā.
21641 * It also allows specific values to be replaced by pre-defined labels.
21643 * Smart callbacks one can register to:
21645 * - "changed" - Whenever the spinner value is changed.
21646 * - "delay,changed" - A short time after the value is changed by the user.
21647 * This will be called only when the user stops dragging for a very short
21648 * period or when they release their finger/mouse, so it avoids possibly
21649 * expensive reactions to the value change.
21651 * Available styles for it:
21653 * - @c "vertical": up/down buttons at the right side and text left aligned.
21655 * Here is an example on its usage:
21656 * @ref spinner_example
21660 * @addtogroup Spinner
21665 * Add a new spinner widget to the given parent Elementary
21666 * (container) object.
21668 * @param parent The parent object.
21669 * @return a new spinner widget handle or @c NULL, on errors.
21671 * This function inserts a new spinner widget on the canvas.
21676 EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21679 * Set the format string of the displayed label.
21681 * @param obj The spinner object.
21682 * @param fmt The format string for the label display.
21684 * If @c NULL, this sets the format to "%.0f". If not it sets the format
21685 * string for the label text. The label text is provided a floating point
21686 * value, so the label text can display up to 1 floating point value.
21687 * Note that this is optional.
21689 * Use a format string such as "%1.2f meters" for example, and it will
21690 * display values like: "3.14 meters" for a value equal to 3.14159.
21692 * Default is "%0.f".
21694 * @see elm_spinner_label_format_get()
21698 EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
21701 * Get the label format of the spinner.
21703 * @param obj The spinner object.
21704 * @return The text label format string in UTF-8.
21706 * @see elm_spinner_label_format_set() for details.
21710 EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21713 * Set the minimum and maximum values for the spinner.
21715 * @param obj The spinner object.
21716 * @param min The minimum value.
21717 * @param max The maximum value.
21719 * Define the allowed range of values to be selected by the user.
21721 * If actual value is less than @p min, it will be updated to @p min. If it
21722 * is bigger then @p max, will be updated to @p max. Actual value can be
21723 * get with elm_spinner_value_get().
21725 * By default, min is equal to 0, and max is equal to 100.
21727 * @warning Maximum must be greater than minimum.
21729 * @see elm_spinner_min_max_get()
21733 EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
21736 * Get the minimum and maximum values of the spinner.
21738 * @param obj The spinner object.
21739 * @param min Pointer where to store the minimum value.
21740 * @param max Pointer where to store the maximum value.
21742 * @note If only one value is needed, the other pointer can be passed
21745 * @see elm_spinner_min_max_set() for details.
21749 EAPI void elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
21752 * Set the step used to increment or decrement the spinner value.
21754 * @param obj The spinner object.
21755 * @param step The step value.
21757 * This value will be incremented or decremented to the displayed value.
21758 * It will be incremented while the user keep right or top arrow pressed,
21759 * and will be decremented while the user keep left or bottom arrow pressed.
21761 * The interval to increment / decrement can be set with
21762 * elm_spinner_interval_set().
21764 * By default step value is equal to 1.
21766 * @see elm_spinner_step_get()
21770 EAPI void elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
21773 * Get the step used to increment or decrement the spinner value.
21775 * @param obj The spinner object.
21776 * @return The step value.
21778 * @see elm_spinner_step_get() for more details.
21782 EAPI double elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21785 * Set the value the spinner displays.
21787 * @param obj The spinner object.
21788 * @param val The value to be displayed.
21790 * Value will be presented on the label following format specified with
21791 * elm_spinner_format_set().
21793 * @warning The value must to be between min and max values. This values
21794 * are set by elm_spinner_min_max_set().
21796 * @see elm_spinner_value_get().
21797 * @see elm_spinner_format_set().
21798 * @see elm_spinner_min_max_set().
21802 EAPI void elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21805 * Get the value displayed by the spinner.
21807 * @param obj The spinner object.
21808 * @return The value displayed.
21810 * @see elm_spinner_value_set() for details.
21814 EAPI double elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21817 * Set whether the spinner should wrap when it reaches its
21818 * minimum or maximum value.
21820 * @param obj The spinner object.
21821 * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
21824 * Disabled by default. If disabled, when the user tries to increment the
21826 * but displayed value plus step value is bigger than maximum value,
21828 * won't allow it. The same happens when the user tries to decrement it,
21829 * but the value less step is less than minimum value.
21831 * When wrap is enabled, in such situations it will allow these changes,
21832 * but will get the value that would be less than minimum and subtracts
21833 * from maximum. Or add the value that would be more than maximum to
21837 * @li min value = 10
21838 * @li max value = 50
21839 * @li step value = 20
21840 * @li displayed value = 20
21842 * When the user decrement value (using left or bottom arrow), it will
21843 * displays @c 40, because max - (min - (displayed - step)) is
21844 * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
21846 * @see elm_spinner_wrap_get().
21850 EAPI void elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
21853 * Get whether the spinner should wrap when it reaches its
21854 * minimum or maximum value.
21856 * @param obj The spinner object
21857 * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
21858 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21860 * @see elm_spinner_wrap_set() for details.
21864 EAPI Eina_Bool elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21867 * Set whether the spinner can be directly edited by the user or not.
21869 * @param obj The spinner object.
21870 * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
21871 * don't allow users to edit it directly.
21873 * Spinner objects can have edition @b disabled, in which state they will
21874 * be changed only by arrows.
21875 * Useful for contexts
21876 * where you don't want your users to interact with it writting the value.
21878 * when using special values, the user can see real value instead
21879 * of special label on edition.
21881 * It's enabled by default.
21883 * @see elm_spinner_editable_get()
21887 EAPI void elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
21890 * Get whether the spinner can be directly edited by the user or not.
21892 * @param obj The spinner object.
21893 * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
21894 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21896 * @see elm_spinner_editable_set() for details.
21900 EAPI Eina_Bool elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21903 * Set a special string to display in the place of the numerical value.
21905 * @param obj The spinner object.
21906 * @param value The value to be replaced.
21907 * @param label The label to be used.
21909 * It's useful for cases when a user should select an item that is
21910 * better indicated by a label than a value. For example, weekdays or months.
21914 * sp = elm_spinner_add(win);
21915 * elm_spinner_min_max_set(sp, 1, 3);
21916 * elm_spinner_special_value_add(sp, 1, "January");
21917 * elm_spinner_special_value_add(sp, 2, "February");
21918 * elm_spinner_special_value_add(sp, 3, "March");
21919 * evas_object_show(sp);
21924 EAPI void elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
21927 * Set the interval on time updates for an user mouse button hold
21928 * on spinner widgets' arrows.
21930 * @param obj The spinner object.
21931 * @param interval The (first) interval value in seconds.
21933 * This interval value is @b decreased while the user holds the
21934 * mouse pointer either incrementing or decrementing spinner's value.
21936 * This helps the user to get to a given value distant from the
21937 * current one easier/faster, as it will start to change quicker and
21938 * quicker on mouse button holds.
21940 * The calculation for the next change interval value, starting from
21941 * the one set with this call, is the previous interval divided by
21942 * @c 1.05, so it decreases a little bit.
21944 * The default starting interval value for automatic changes is
21947 * @see elm_spinner_interval_get()
21951 EAPI void elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
21954 * Get the interval on time updates for an user mouse button hold
21955 * on spinner widgets' arrows.
21957 * @param obj The spinner object.
21958 * @return The (first) interval value, in seconds, set on it.
21960 * @see elm_spinner_interval_set() for more details.
21964 EAPI double elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21971 * @defgroup Index Index
21973 * @image html img/widget/index/preview-00.png
21974 * @image latex img/widget/index/preview-00.eps
21976 * An index widget gives you an index for fast access to whichever
21977 * group of other UI items one might have. It's a list of text
21978 * items (usually letters, for alphabetically ordered access).
21980 * Index widgets are by default hidden and just appear when the
21981 * user clicks over it's reserved area in the canvas. In its
21982 * default theme, it's an area one @ref Fingers "finger" wide on
21983 * the right side of the index widget's container.
21985 * When items on the index are selected, smart callbacks get
21986 * called, so that its user can make other container objects to
21987 * show a given area or child object depending on the index item
21988 * selected. You'd probably be using an index together with @ref
21989 * List "lists", @ref Genlist "generic lists" or @ref Gengrid
21992 * Smart events one can add callbacks for are:
21993 * - @c "changed" - When the selected index item changes. @c
21994 * event_info is the selected item's data pointer.
21995 * - @c "delay,changed" - When the selected index item changes, but
21996 * after a small idling period. @c event_info is the selected
21997 * item's data pointer.
21998 * - @c "selected" - When the user releases a mouse button and
21999 * selects an item. @c event_info is the selected item's data
22001 * - @c "level,up" - when the user moves a finger from the first
22002 * level to the second level
22003 * - @c "level,down" - when the user moves a finger from the second
22004 * level to the first level
22006 * The @c "delay,changed" event is so that it'll wait a small time
22007 * before actually reporting those events and, moreover, just the
22008 * last event happening on those time frames will actually be
22011 * Here are some examples on its usage:
22012 * @li @ref index_example_01
22013 * @li @ref index_example_02
22017 * @addtogroup Index
22021 typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
22024 * Add a new index widget to the given parent Elementary
22025 * (container) object
22027 * @param parent The parent object
22028 * @return a new index widget handle or @c NULL, on errors
22030 * This function inserts a new index widget on the canvas.
22034 EAPI Evas_Object *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22037 * Set whether a given index widget is or not visible,
22040 * @param obj The index object
22041 * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
22043 * Not to be confused with visible as in @c evas_object_show() --
22044 * visible with regard to the widget's auto hiding feature.
22046 * @see elm_index_active_get()
22050 EAPI void elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
22053 * Get whether a given index widget is currently visible or not.
22055 * @param obj The index object
22056 * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
22058 * @see elm_index_active_set() for more details
22062 EAPI Eina_Bool elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22065 * Set the items level for a given index widget.
22067 * @param obj The index object.
22068 * @param level @c 0 or @c 1, the currently implemented levels.
22070 * @see elm_index_item_level_get()
22074 EAPI void elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22077 * Get the items level set for a given index widget.
22079 * @param obj The index object.
22080 * @return @c 0 or @c 1, which are the levels @p obj might be at.
22082 * @see elm_index_item_level_set() for more information
22086 EAPI int elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22089 * Returns the last selected item's data, for a given index widget.
22091 * @param obj The index object.
22092 * @return The item @b data associated to the last selected item on
22093 * @p obj (or @c NULL, on errors).
22095 * @warning The returned value is @b not an #Elm_Index_Item item
22096 * handle, but the data associated to it (see the @c item parameter
22097 * in elm_index_item_append(), as an example).
22101 EAPI void *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22104 * Append a new item on a given index widget.
22106 * @param obj The index object.
22107 * @param letter Letter under which the item should be indexed
22108 * @param item The item data to set for the index's item
22110 * Despite the most common usage of the @p letter argument is for
22111 * single char strings, one could use arbitrary strings as index
22114 * @c item will be the pointer returned back on @c "changed", @c
22115 * "delay,changed" and @c "selected" smart events.
22119 EAPI void elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22122 * Prepend a new item on a given index widget.
22124 * @param obj The index object.
22125 * @param letter Letter under which the item should be indexed
22126 * @param item The item data to set for the index's item
22128 * Despite the most common usage of the @p letter argument is for
22129 * single char strings, one could use arbitrary strings as index
22132 * @c item will be the pointer returned back on @c "changed", @c
22133 * "delay,changed" and @c "selected" smart events.
22137 EAPI void elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22140 * Append a new item, on a given index widget, <b>after the item
22141 * having @p relative as data</b>.
22143 * @param obj The index object.
22144 * @param letter Letter under which the item should be indexed
22145 * @param item The item data to set for the index's item
22146 * @param relative The item data of the index item to be the
22147 * predecessor of this new one
22149 * Despite the most common usage of the @p letter argument is for
22150 * single char strings, one could use arbitrary strings as index
22153 * @c item will be the pointer returned back on @c "changed", @c
22154 * "delay,changed" and @c "selected" smart events.
22156 * @note If @p relative is @c NULL or if it's not found to be data
22157 * set on any previous item on @p obj, this function will behave as
22158 * elm_index_item_append().
22162 EAPI void elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
22165 * Prepend a new item, on a given index widget, <b>after the item
22166 * having @p relative as data</b>.
22168 * @param obj The index object.
22169 * @param letter Letter under which the item should be indexed
22170 * @param item The item data to set for the index's item
22171 * @param relative The item data of the index item to be the
22172 * successor of this new one
22174 * Despite the most common usage of the @p letter argument is for
22175 * single char strings, one could use arbitrary strings as index
22178 * @c item will be the pointer returned back on @c "changed", @c
22179 * "delay,changed" and @c "selected" smart events.
22181 * @note If @p relative is @c NULL or if it's not found to be data
22182 * set on any previous item on @p obj, this function will behave as
22183 * elm_index_item_prepend().
22187 EAPI void elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
22190 * Insert a new item into the given index widget, using @p cmp_func
22191 * function to sort items (by item handles).
22193 * @param obj The index object.
22194 * @param letter Letter under which the item should be indexed
22195 * @param item The item data to set for the index's item
22196 * @param cmp_func The comparing function to be used to sort index
22197 * items <b>by #Elm_Index_Item item handles</b>
22198 * @param cmp_data_func A @b fallback function to be called for the
22199 * sorting of index items <b>by item data</b>). It will be used
22200 * when @p cmp_func returns @c 0 (equality), which means an index
22201 * item with provided item data already exists. To decide which
22202 * data item should be pointed to by the index item in question, @p
22203 * cmp_data_func will be used. If @p cmp_data_func returns a
22204 * non-negative value, the previous index item data will be
22205 * replaced by the given @p item pointer. If the previous data need
22206 * to be freed, it should be done by the @p cmp_data_func function,
22207 * because all references to it will be lost. If this function is
22208 * not provided (@c NULL is given), index items will be @b
22209 * duplicated, if @p cmp_func returns @c 0.
22211 * Despite the most common usage of the @p letter argument is for
22212 * single char strings, one could use arbitrary strings as index
22215 * @c item will be the pointer returned back on @c "changed", @c
22216 * "delay,changed" and @c "selected" smart events.
22220 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);
22223 * Remove an item from a given index widget, <b>to be referenced by
22224 * it's data value</b>.
22226 * @param obj The index object
22227 * @param item The item's data pointer for the item to be removed
22230 * If a deletion callback is set, via elm_index_item_del_cb_set(),
22231 * that callback function will be called by this one.
22233 * @warning The item to be removed from @p obj will be found via
22234 * its item data pointer, and not by an #Elm_Index_Item handle.
22238 EAPI void elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22241 * Find a given index widget's item, <b>using item data</b>.
22243 * @param obj The index object
22244 * @param item The item data pointed to by the desired index item
22245 * @return The index item handle, if found, or @c NULL otherwise
22249 EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22252 * Removes @b all items from a given index widget.
22254 * @param obj The index object.
22256 * If deletion callbacks are set, via elm_index_item_del_cb_set(),
22257 * that callback function will be called for each item in @p obj.
22261 EAPI void elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22264 * Go to a given items level on a index widget
22266 * @param obj The index object
22267 * @param level The index level (one of @c 0 or @c 1)
22271 EAPI void elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22274 * Return the data associated with a given index widget item
22276 * @param it The index widget item handle
22277 * @return The data associated with @p it
22279 * @see elm_index_item_data_set()
22283 EAPI void *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22286 * Set the data associated with a given index widget item
22288 * @param it The index widget item handle
22289 * @param data The new data pointer to set to @p it
22291 * This sets new item data on @p it.
22293 * @warning The old data pointer won't be touched by this function, so
22294 * the user had better to free that old data himself/herself.
22298 EAPI void elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
22301 * Set the function to be called when a given index widget item is freed.
22303 * @param it The item to set the callback on
22304 * @param func The function to call on the item's deletion
22306 * When called, @p func will have both @c data and @c event_info
22307 * arguments with the @p it item's data value and, naturally, the
22308 * @c obj argument with a handle to the parent index widget.
22312 EAPI void elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
22315 * Get the letter (string) set on a given index widget item.
22317 * @param it The index item handle
22318 * @return The letter string set on @p it
22322 EAPI const char *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22329 * @defgroup Photocam Photocam
22331 * @image html img/widget/photocam/preview-00.png
22332 * @image latex img/widget/photocam/preview-00.eps
22334 * This is a widget specifically for displaying high-resolution digital
22335 * camera photos giving speedy feedback (fast load), low memory footprint
22336 * and zooming and panning as well as fitting logic. It is entirely focused
22337 * on jpeg images, and takes advantage of properties of the jpeg format (via
22338 * evas loader features in the jpeg loader).
22340 * Signals that you can add callbacks for are:
22341 * @li "clicked" - This is called when a user has clicked the photo without
22343 * @li "press" - This is called when a user has pressed down on the photo.
22344 * @li "longpressed" - This is called when a user has pressed down on the
22345 * photo for a long time without dragging around.
22346 * @li "clicked,double" - This is called when a user has double-clicked the
22348 * @li "load" - Photo load begins.
22349 * @li "loaded" - This is called when the image file load is complete for the
22350 * first view (low resolution blurry version).
22351 * @li "load,detail" - Photo detailed data load begins.
22352 * @li "loaded,detail" - This is called when the image file load is complete
22353 * for the detailed image data (full resolution needed).
22354 * @li "zoom,start" - Zoom animation started.
22355 * @li "zoom,stop" - Zoom animation stopped.
22356 * @li "zoom,change" - Zoom changed when using an auto zoom mode.
22357 * @li "scroll" - the content has been scrolled (moved)
22358 * @li "scroll,anim,start" - scrolling animation has started
22359 * @li "scroll,anim,stop" - scrolling animation has stopped
22360 * @li "scroll,drag,start" - dragging the contents around has started
22361 * @li "scroll,drag,stop" - dragging the contents around has stopped
22363 * @ref tutorial_photocam shows the API in action.
22367 * @brief Types of zoom available.
22369 typedef enum _Elm_Photocam_Zoom_Mode
22371 ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
22372 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
22373 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
22374 ELM_PHOTOCAM_ZOOM_MODE_LAST
22375 } Elm_Photocam_Zoom_Mode;
22377 * @brief Add a new Photocam object
22379 * @param parent The parent object
22380 * @return The new object or NULL if it cannot be created
22382 EAPI Evas_Object *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22384 * @brief Set the photo file to be shown
22386 * @param obj The photocam object
22387 * @param file The photo file
22388 * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
22390 * This sets (and shows) the specified file (with a relative or absolute
22391 * path) and will return a load error (same error that
22392 * evas_object_image_load_error_get() will return). The image will change and
22393 * adjust its size at this point and begin a background load process for this
22394 * photo that at some time in the future will be displayed at the full
22397 EAPI Evas_Load_Error elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
22399 * @brief Returns the path of the current image file
22401 * @param obj The photocam object
22402 * @return Returns the path
22404 * @see elm_photocam_file_set()
22406 EAPI const char *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22408 * @brief Set the zoom level of the photo
22410 * @param obj The photocam object
22411 * @param zoom The zoom level to set
22413 * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
22414 * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
22415 * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
22416 * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
22419 EAPI void elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
22421 * @brief Get the zoom level of the photo
22423 * @param obj The photocam object
22424 * @return The current zoom level
22426 * This returns the current zoom level of the photocam object. Note that if
22427 * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
22428 * (which is the default), the zoom level may be changed at any time by the
22429 * photocam object itself to account for photo size and photocam viewpoer
22432 * @see elm_photocam_zoom_set()
22433 * @see elm_photocam_zoom_mode_set()
22435 EAPI double elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22437 * @brief Set the zoom mode
22439 * @param obj The photocam object
22440 * @param mode The desired mode
22442 * This sets the zoom mode to manual or one of several automatic levels.
22443 * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
22444 * elm_photocam_zoom_set() and will stay at that level until changed by code
22445 * or until zoom mode is changed. This is the default mode. The Automatic
22446 * modes will allow the photocam object to automatically adjust zoom mode
22447 * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
22448 * the photo fits EXACTLY inside the scroll frame with no pixels outside this
22449 * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
22450 * pixels within the frame are left unfilled.
22452 EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22454 * @brief Get the zoom mode
22456 * @param obj The photocam object
22457 * @return The current zoom mode
22459 * This gets the current zoom mode of the photocam object.
22461 * @see elm_photocam_zoom_mode_set()
22463 EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22465 * @brief Get the current image pixel width and height
22467 * @param obj The photocam object
22468 * @param w A pointer to the width return
22469 * @param h A pointer to the height return
22471 * This gets the current photo pixel width and height (for the original).
22472 * The size will be returned in the integers @p w and @p h that are pointed
22475 EAPI void elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
22477 * @brief Get the area of the image that is currently shown
22480 * @param x A pointer to the X-coordinate of region
22481 * @param y A pointer to the Y-coordinate of region
22482 * @param w A pointer to the width
22483 * @param h A pointer to the height
22485 * @see elm_photocam_image_region_show()
22486 * @see elm_photocam_image_region_bring_in()
22488 EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
22490 * @brief Set the viewed portion of the image
22492 * @param obj The photocam object
22493 * @param x X-coordinate of region in image original pixels
22494 * @param y Y-coordinate of region in image original pixels
22495 * @param w Width of region in image original pixels
22496 * @param h Height of region in image original pixels
22498 * This shows the region of the image without using animation.
22500 EAPI void elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22502 * @brief Bring in the viewed portion of the image
22504 * @param obj The photocam object
22505 * @param x X-coordinate of region in image original pixels
22506 * @param y Y-coordinate of region in image original pixels
22507 * @param w Width of region in image original pixels
22508 * @param h Height of region in image original pixels
22510 * This shows the region of the image using animation.
22512 EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22514 * @brief Set the paused state for photocam
22516 * @param obj The photocam object
22517 * @param paused The pause state to set
22519 * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
22520 * photocam. The default is off. This will stop zooming using animation on
22521 * zoom levels changes and change instantly. This will stop any existing
22522 * animations that are running.
22524 EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22526 * @brief Get the paused state for photocam
22528 * @param obj The photocam object
22529 * @return The current paused state
22531 * This gets the current paused state for the photocam object.
22533 * @see elm_photocam_paused_set()
22535 EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22537 * @brief Get the internal low-res image used for photocam
22539 * @param obj The photocam object
22540 * @return The internal image object handle, or NULL if none exists
22542 * This gets the internal image object inside photocam. Do not modify it. It
22543 * is for inspection only, and hooking callbacks to. Nothing else. It may be
22544 * deleted at any time as well.
22546 EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22548 * @brief Set the photocam scrolling bouncing.
22550 * @param obj The photocam object
22551 * @param h_bounce bouncing for horizontal
22552 * @param v_bounce bouncing for vertical
22554 EAPI void elm_photocam_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22556 * @brief Get the photocam scrolling bouncing.
22558 * @param obj The photocam object
22559 * @param h_bounce bouncing for horizontal
22560 * @param v_bounce bouncing for vertical
22562 * @see elm_photocam_bounce_set()
22564 EAPI void elm_photocam_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
22570 * @defgroup Map Map
22571 * @ingroup Elementary
22573 * @image html img/widget/map/preview-00.png
22574 * @image latex img/widget/map/preview-00.eps
22576 * This is a widget specifically for displaying a map. It uses basically
22577 * OpenStreetMap provider http://www.openstreetmap.org/,
22578 * but custom providers can be added.
22580 * It supports some basic but yet nice features:
22581 * @li zoom and scroll
22582 * @li markers with content to be displayed when user clicks over it
22583 * @li group of markers
22586 * Smart callbacks one can listen to:
22588 * - "clicked" - This is called when a user has clicked the map without
22590 * - "press" - This is called when a user has pressed down on the map.
22591 * - "longpressed" - This is called when a user has pressed down on the map
22592 * for a long time without dragging around.
22593 * - "clicked,double" - This is called when a user has double-clicked
22595 * - "load,detail" - Map detailed data load begins.
22596 * - "loaded,detail" - This is called when all currently visible parts of
22597 * the map are loaded.
22598 * - "zoom,start" - Zoom animation started.
22599 * - "zoom,stop" - Zoom animation stopped.
22600 * - "zoom,change" - Zoom changed when using an auto zoom mode.
22601 * - "scroll" - the content has been scrolled (moved).
22602 * - "scroll,anim,start" - scrolling animation has started.
22603 * - "scroll,anim,stop" - scrolling animation has stopped.
22604 * - "scroll,drag,start" - dragging the contents around has started.
22605 * - "scroll,drag,stop" - dragging the contents around has stopped.
22606 * - "downloaded" - This is called when all currently required map images
22608 * - "route,load" - This is called when route request begins.
22609 * - "route,loaded" - This is called when route request ends.
22610 * - "name,load" - This is called when name request begins.
22611 * - "name,loaded- This is called when name request ends.
22613 * Available style for map widget:
22616 * Available style for markers:
22621 * Available style for marker bubble:
22624 * List of examples:
22625 * @li @ref map_example_01
22626 * @li @ref map_example_02
22627 * @li @ref map_example_03
22636 * @enum _Elm_Map_Zoom_Mode
22637 * @typedef Elm_Map_Zoom_Mode
22639 * Set map's zoom behavior. It can be set to manual or automatic.
22641 * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
22643 * Values <b> don't </b> work as bitmask, only one can be choosen.
22645 * @note Valid sizes are 2^zoom, consequently the map may be smaller
22646 * than the scroller view.
22648 * @see elm_map_zoom_mode_set()
22649 * @see elm_map_zoom_mode_get()
22653 typedef enum _Elm_Map_Zoom_Mode
22655 ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
22656 ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
22657 ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
22658 ELM_MAP_ZOOM_MODE_LAST
22659 } Elm_Map_Zoom_Mode;
22662 * @enum _Elm_Map_Route_Sources
22663 * @typedef Elm_Map_Route_Sources
22665 * Set route service to be used. By default used source is
22666 * #ELM_MAP_ROUTE_SOURCE_YOURS.
22668 * @see elm_map_route_source_set()
22669 * @see elm_map_route_source_get()
22673 typedef enum _Elm_Map_Route_Sources
22675 ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
22676 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. */
22677 ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
22678 ELM_MAP_ROUTE_SOURCE_LAST
22679 } Elm_Map_Route_Sources;
22681 typedef enum _Elm_Map_Name_Sources
22683 ELM_MAP_NAME_SOURCE_NOMINATIM,
22684 ELM_MAP_NAME_SOURCE_LAST
22685 } Elm_Map_Name_Sources;
22688 * @enum _Elm_Map_Route_Type
22689 * @typedef Elm_Map_Route_Type
22691 * Set type of transport used on route.
22693 * @see elm_map_route_add()
22697 typedef enum _Elm_Map_Route_Type
22699 ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
22700 ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
22701 ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
22702 ELM_MAP_ROUTE_TYPE_LAST
22703 } Elm_Map_Route_Type;
22706 * @enum _Elm_Map_Route_Method
22707 * @typedef Elm_Map_Route_Method
22709 * Set the routing method, what should be priorized, time or distance.
22711 * @see elm_map_route_add()
22715 typedef enum _Elm_Map_Route_Method
22717 ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
22718 ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
22719 ELM_MAP_ROUTE_METHOD_LAST
22720 } Elm_Map_Route_Method;
22722 typedef enum _Elm_Map_Name_Method
22724 ELM_MAP_NAME_METHOD_SEARCH,
22725 ELM_MAP_NAME_METHOD_REVERSE,
22726 ELM_MAP_NAME_METHOD_LAST
22727 } Elm_Map_Name_Method;
22729 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(). */
22730 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(). */
22731 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(). */
22732 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(). */
22733 typedef struct _Elm_Map_Name Elm_Map_Name; /**< A handle for specific coordinates. */
22734 typedef struct _Elm_Map_Track Elm_Map_Track;
22736 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. */
22737 typedef void (*ElmMapMarkerDelFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
22738 typedef Evas_Object *(*ElmMapMarkerIconGetFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
22739 typedef Evas_Object *(*ElmMapGroupIconGetFunc) (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
22741 typedef char *(*ElmMapModuleSourceFunc) (void);
22742 typedef int (*ElmMapModuleZoomMinFunc) (void);
22743 typedef int (*ElmMapModuleZoomMaxFunc) (void);
22744 typedef char *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
22745 typedef int (*ElmMapModuleRouteSourceFunc) (void);
22746 typedef char *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
22747 typedef char *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
22748 typedef Eina_Bool (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
22749 typedef Eina_Bool (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
22752 * Add a new map widget to the given parent Elementary (container) object.
22754 * @param parent The parent object.
22755 * @return a new map widget handle or @c NULL, on errors.
22757 * This function inserts a new map widget on the canvas.
22761 EAPI Evas_Object *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22764 * Set the zoom level of the map.
22766 * @param obj The map object.
22767 * @param zoom The zoom level to set.
22769 * This sets the zoom level.
22771 * It will respect limits defined by elm_map_source_zoom_min_set() and
22772 * elm_map_source_zoom_max_set().
22774 * By default these values are 0 (world map) and 18 (maximum zoom).
22776 * This function should be used when zoom mode is set to
22777 * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
22778 * with elm_map_zoom_mode_set().
22780 * @see elm_map_zoom_mode_set().
22781 * @see elm_map_zoom_get().
22785 EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
22788 * Get the zoom level of the map.
22790 * @param obj The map object.
22791 * @return The current zoom level.
22793 * This returns the current zoom level of the map object.
22795 * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
22796 * (which is the default), the zoom level may be changed at any time by the
22797 * map object itself to account for map size and map viewport size.
22799 * @see elm_map_zoom_set() for details.
22803 EAPI int elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22806 * Set the zoom mode used by the map object.
22808 * @param obj The map object.
22809 * @param mode The zoom mode of the map, being it one of
22810 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22811 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22813 * This sets the zoom mode to manual or one of the automatic levels.
22814 * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
22815 * elm_map_zoom_set() and will stay at that level until changed by code
22816 * or until zoom mode is changed. This is the default mode.
22818 * The Automatic modes will allow the map object to automatically
22819 * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
22820 * adjust zoom so the map fits inside the scroll frame with no pixels
22821 * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
22822 * ensure no pixels within the frame are left unfilled. Do not forget that
22823 * the valid sizes are 2^zoom, consequently the map may be smaller than
22824 * the scroller view.
22826 * @see elm_map_zoom_set()
22830 EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22833 * Get the zoom mode used by the map object.
22835 * @param obj The map object.
22836 * @return The zoom mode of the map, being it one of
22837 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22838 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22840 * This function returns the current zoom mode used by the map object.
22842 * @see elm_map_zoom_mode_set() for more details.
22846 EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22849 * Get the current coordinates of the map.
22851 * @param obj The map object.
22852 * @param lon Pointer where to store longitude.
22853 * @param lat Pointer where to store latitude.
22855 * This gets the current center coordinates of the map object. It can be
22856 * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
22858 * @see elm_map_geo_region_bring_in()
22859 * @see elm_map_geo_region_show()
22863 EAPI void elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
22866 * Animatedly bring in given coordinates to the center of the map.
22868 * @param obj The map object.
22869 * @param lon Longitude to center at.
22870 * @param lat Latitude to center at.
22872 * This causes map to jump to the given @p lat and @p lon coordinates
22873 * and show it (by scrolling) in the center of the viewport, if it is not
22874 * already centered. This will use animation to do so and take a period
22875 * of time to complete.
22877 * @see elm_map_geo_region_show() for a function to avoid animation.
22878 * @see elm_map_geo_region_get()
22882 EAPI void elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22885 * Show the given coordinates at the center of the map, @b immediately.
22887 * @param obj The map object.
22888 * @param lon Longitude to center at.
22889 * @param lat Latitude to center at.
22891 * This causes map to @b redraw its viewport's contents to the
22892 * region contining the given @p lat and @p lon, that will be moved to the
22893 * center of the map.
22895 * @see elm_map_geo_region_bring_in() for a function to move with animation.
22896 * @see elm_map_geo_region_get()
22900 EAPI void elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22903 * Pause or unpause the map.
22905 * @param obj The map object.
22906 * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
22909 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22912 * The default is off.
22914 * This will stop zooming using animation, changing zoom levels will
22915 * change instantly. This will stop any existing animations that are running.
22917 * @see elm_map_paused_get()
22921 EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22924 * Get a value whether map is paused or not.
22926 * @param obj The map object.
22927 * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
22928 * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
22930 * This gets the current paused state for the map object.
22932 * @see elm_map_paused_set() for details.
22936 EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22939 * Set to show markers during zoom level changes or not.
22941 * @param obj The map object.
22942 * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
22945 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22948 * The default is off.
22950 * This will stop zooming using animation, changing zoom levels will
22951 * change instantly. This will stop any existing animations that are running.
22953 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22956 * The default is off.
22958 * Enabling it will force the map to stop displaying the markers during
22959 * zoom level changes. Set to on if you have a large number of markers.
22961 * @see elm_map_paused_markers_get()
22965 EAPI void elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22968 * Get a value whether markers will be displayed on zoom level changes or not
22970 * @param obj The map object.
22971 * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
22972 * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
22974 * This gets the current markers paused state for the map object.
22976 * @see elm_map_paused_markers_set() for details.
22980 EAPI Eina_Bool elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22983 * Get the information of downloading status.
22985 * @param obj The map object.
22986 * @param try_num Pointer where to store number of tiles being downloaded.
22987 * @param finish_num Pointer where to store number of tiles successfully
22990 * This gets the current downloading status for the map object, the number
22991 * of tiles being downloaded and the number of tiles already downloaded.
22995 EAPI void elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
22998 * Convert a pixel coordinate (x,y) into a geographic coordinate
22999 * (longitude, latitude).
23001 * @param obj The map object.
23002 * @param x the coordinate.
23003 * @param y the coordinate.
23004 * @param size the size in pixels of the map.
23005 * The map is a square and generally his size is : pow(2.0, zoom)*256.
23006 * @param lon Pointer where to store the longitude that correspond to x.
23007 * @param lat Pointer where to store the latitude that correspond to y.
23009 * @note Origin pixel point is the top left corner of the viewport.
23010 * Map zoom and size are taken on account.
23012 * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
23016 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);
23019 * Convert a geographic coordinate (longitude, latitude) into a pixel
23020 * coordinate (x, y).
23022 * @param obj The map object.
23023 * @param lon the longitude.
23024 * @param lat the latitude.
23025 * @param size the size in pixels of the map. The map is a square
23026 * and generally his size is : pow(2.0, zoom)*256.
23027 * @param x Pointer where to store the horizontal pixel coordinate that
23028 * correspond to the longitude.
23029 * @param y Pointer where to store the vertical pixel coordinate that
23030 * correspond to the latitude.
23032 * @note Origin pixel point is the top left corner of the viewport.
23033 * Map zoom and size are taken on account.
23035 * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
23039 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);
23042 * Convert a geographic coordinate (longitude, latitude) into a name
23045 * @param obj The map object.
23046 * @param lon the longitude.
23047 * @param lat the latitude.
23048 * @return name A #Elm_Map_Name handle for this coordinate.
23050 * To get the string for this address, elm_map_name_address_get()
23053 * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
23057 EAPI Elm_Map_Name *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23060 * Convert a name (address) into a geographic coordinate
23061 * (longitude, latitude).
23063 * @param obj The map object.
23064 * @param name The address.
23065 * @return name A #Elm_Map_Name handle for this address.
23067 * To get the longitude and latitude, elm_map_name_region_get()
23070 * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
23074 EAPI Elm_Map_Name *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
23077 * Convert a pixel coordinate into a rotated pixel coordinate.
23079 * @param obj The map object.
23080 * @param x horizontal coordinate of the point to rotate.
23081 * @param y vertical coordinate of the point to rotate.
23082 * @param cx rotation's center horizontal position.
23083 * @param cy rotation's center vertical position.
23084 * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
23085 * @param xx Pointer where to store rotated x.
23086 * @param yy Pointer where to store rotated y.
23090 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);
23093 * Add a new marker to the map object.
23095 * @param obj The map object.
23096 * @param lon The longitude of the marker.
23097 * @param lat The latitude of the marker.
23098 * @param clas The class, to use when marker @b isn't grouped to others.
23099 * @param clas_group The class group, to use when marker is grouped to others
23100 * @param data The data passed to the callbacks.
23102 * @return The created marker or @c NULL upon failure.
23104 * A marker will be created and shown in a specific point of the map, defined
23105 * by @p lon and @p lat.
23107 * It will be displayed using style defined by @p class when this marker
23108 * is displayed alone (not grouped). A new class can be created with
23109 * elm_map_marker_class_new().
23111 * If the marker is grouped to other markers, it will be displayed with
23112 * style defined by @p class_group. Markers with the same group are grouped
23113 * if they are close. A new group class can be created with
23114 * elm_map_marker_group_class_new().
23116 * Markers created with this method can be deleted with
23117 * elm_map_marker_remove().
23119 * A marker can have associated content to be displayed by a bubble,
23120 * when a user click over it, as well as an icon. These objects will
23121 * be fetch using class' callback functions.
23123 * @see elm_map_marker_class_new()
23124 * @see elm_map_marker_group_class_new()
23125 * @see elm_map_marker_remove()
23129 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);
23132 * Set the maximum numbers of markers' content to be displayed in a group.
23134 * @param obj The map object.
23135 * @param max The maximum numbers of items displayed in a bubble.
23137 * A bubble will be displayed when the user clicks over the group,
23138 * and will place the content of markers that belong to this group
23141 * A group can have a long list of markers, consequently the creation
23142 * of the content of the bubble can be very slow.
23144 * In order to avoid this, a maximum number of items is displayed
23147 * By default this number is 30.
23149 * Marker with the same group class are grouped if they are close.
23151 * @see elm_map_marker_add()
23155 EAPI void elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
23158 * Remove a marker from the map.
23160 * @param marker The marker to remove.
23162 * @see elm_map_marker_add()
23166 EAPI void elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23169 * Get the current coordinates of the marker.
23171 * @param marker marker.
23172 * @param lat Pointer where to store the marker's latitude.
23173 * @param lon Pointer where to store the marker's longitude.
23175 * These values are set when adding markers, with function
23176 * elm_map_marker_add().
23178 * @see elm_map_marker_add()
23182 EAPI void elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
23185 * Animatedly bring in given marker to the center of the map.
23187 * @param marker The marker to center at.
23189 * This causes map to jump to the given @p marker's coordinates
23190 * and show it (by scrolling) in the center of the viewport, if it is not
23191 * already centered. This will use animation to do so and take a period
23192 * of time to complete.
23194 * @see elm_map_marker_show() for a function to avoid animation.
23195 * @see elm_map_marker_region_get()
23199 EAPI void elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23202 * Show the given marker at the center of the map, @b immediately.
23204 * @param marker The marker to center at.
23206 * This causes map to @b redraw its viewport's contents to the
23207 * region contining the given @p marker's coordinates, that will be
23208 * moved to the center of the map.
23210 * @see elm_map_marker_bring_in() for a function to move with animation.
23211 * @see elm_map_markers_list_show() if more than one marker need to be
23213 * @see elm_map_marker_region_get()
23217 EAPI void elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23220 * Move and zoom the map to display a list of markers.
23222 * @param markers A list of #Elm_Map_Marker handles.
23224 * The map will be centered on the center point of the markers in the list.
23225 * Then the map will be zoomed in order to fit the markers using the maximum
23226 * zoom which allows display of all the markers.
23228 * @warning All the markers should belong to the same map object.
23230 * @see elm_map_marker_show() to show a single marker.
23231 * @see elm_map_marker_bring_in()
23235 EAPI void elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
23238 * Get the Evas object returned by the ElmMapMarkerGetFunc callback
23240 * @param marker The marker wich content should be returned.
23241 * @return Return the evas object if it exists, else @c NULL.
23243 * To set callback function #ElmMapMarkerGetFunc for the marker class,
23244 * elm_map_marker_class_get_cb_set() should be used.
23246 * This content is what will be inside the bubble that will be displayed
23247 * when an user clicks over the marker.
23249 * This returns the actual Evas object used to be placed inside
23250 * the bubble. This may be @c NULL, as it may
23251 * not have been created or may have been deleted, at any time, by
23252 * the map. <b>Do not modify this object</b> (move, resize,
23253 * show, hide, etc.), as the map is controlling it. This
23254 * function is for querying, emitting custom signals or hooking
23255 * lower level callbacks for events on that object. Do not delete
23256 * this object under any circumstances.
23260 EAPI Evas_Object *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23263 * Update the marker
23265 * @param marker The marker to be updated.
23267 * If a content is set to this marker, it will call function to delete it,
23268 * #ElmMapMarkerDelFunc, and then will fetch the content again with
23269 * #ElmMapMarkerGetFunc.
23271 * These functions are set for the marker class with
23272 * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
23276 EAPI void elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23279 * Close all the bubbles opened by the user.
23281 * @param obj The map object.
23283 * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
23284 * when the user clicks on a marker.
23286 * This functions is set for the marker class with
23287 * elm_map_marker_class_get_cb_set().
23291 EAPI void elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
23294 * Create a new group class.
23296 * @param obj The map object.
23297 * @return Returns the new group class.
23299 * Each marker must be associated to a group class. Markers in the same
23300 * group are grouped if they are close.
23302 * The group class defines the style of the marker when a marker is grouped
23303 * to others markers. When it is alone, another class will be used.
23305 * A group class will need to be provided when creating a marker with
23306 * elm_map_marker_add().
23308 * Some properties and functions can be set by class, as:
23309 * - style, with elm_map_group_class_style_set()
23310 * - data - to be associated to the group class. It can be set using
23311 * elm_map_group_class_data_set().
23312 * - min zoom to display markers, set with
23313 * elm_map_group_class_zoom_displayed_set().
23314 * - max zoom to group markers, set using
23315 * elm_map_group_class_zoom_grouped_set().
23316 * - visibility - set if markers will be visible or not, set with
23317 * elm_map_group_class_hide_set().
23318 * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
23319 * It can be set using elm_map_group_class_icon_cb_set().
23321 * @see elm_map_marker_add()
23322 * @see elm_map_group_class_style_set()
23323 * @see elm_map_group_class_data_set()
23324 * @see elm_map_group_class_zoom_displayed_set()
23325 * @see elm_map_group_class_zoom_grouped_set()
23326 * @see elm_map_group_class_hide_set()
23327 * @see elm_map_group_class_icon_cb_set()
23331 EAPI Elm_Map_Group_Class *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23334 * Set the marker's style of a group class.
23336 * @param clas The group class.
23337 * @param style The style to be used by markers.
23339 * Each marker must be associated to a group class, and will use the style
23340 * defined by such class when grouped to other markers.
23342 * The following styles are provided by default theme:
23343 * @li @c radio - blue circle
23344 * @li @c radio2 - green circle
23347 * @see elm_map_group_class_new() for more details.
23348 * @see elm_map_marker_add()
23352 EAPI void elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23355 * Set the icon callback function of a group class.
23357 * @param clas The group class.
23358 * @param icon_get The callback function that will return the icon.
23360 * Each marker must be associated to a group class, and it can display a
23361 * custom icon. The function @p icon_get must return this icon.
23363 * @see elm_map_group_class_new() for more details.
23364 * @see elm_map_marker_add()
23368 EAPI void elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23371 * Set the data associated to the group class.
23373 * @param clas The group class.
23374 * @param data The new user data.
23376 * This data will be passed for callback functions, like icon get callback,
23377 * that can be set with elm_map_group_class_icon_cb_set().
23379 * If a data was previously set, the object will lose the pointer for it,
23380 * so if needs to be freed, you must do it yourself.
23382 * @see elm_map_group_class_new() for more details.
23383 * @see elm_map_group_class_icon_cb_set()
23384 * @see elm_map_marker_add()
23388 EAPI void elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
23391 * Set the minimum zoom from where the markers are displayed.
23393 * @param clas The group class.
23394 * @param zoom The minimum zoom.
23396 * Markers only will be displayed when the map is displayed at @p zoom
23399 * @see elm_map_group_class_new() for more details.
23400 * @see elm_map_marker_add()
23404 EAPI void elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23407 * Set the zoom from where the markers are no more grouped.
23409 * @param clas The group class.
23410 * @param zoom The maximum zoom.
23412 * Markers only will be grouped when the map is displayed at
23413 * less than @p zoom.
23415 * @see elm_map_group_class_new() for more details.
23416 * @see elm_map_marker_add()
23420 EAPI void elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23423 * Set if the markers associated to the group class @clas are hidden or not.
23425 * @param clas The group class.
23426 * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
23429 * If @p hide is @c EINA_TRUE the markers will be hidden, but default
23434 EAPI void elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
23437 * Create a new marker class.
23439 * @param obj The map object.
23440 * @return Returns the new group class.
23442 * Each marker must be associated to a class.
23444 * The marker class defines the style of the marker when a marker is
23445 * displayed alone, i.e., not grouped to to others markers. When grouped
23446 * it will use group class style.
23448 * A marker class will need to be provided when creating a marker with
23449 * elm_map_marker_add().
23451 * Some properties and functions can be set by class, as:
23452 * - style, with elm_map_marker_class_style_set()
23453 * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
23454 * It can be set using elm_map_marker_class_icon_cb_set().
23455 * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
23456 * Set using elm_map_marker_class_get_cb_set().
23457 * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
23458 * Set using elm_map_marker_class_del_cb_set().
23460 * @see elm_map_marker_add()
23461 * @see elm_map_marker_class_style_set()
23462 * @see elm_map_marker_class_icon_cb_set()
23463 * @see elm_map_marker_class_get_cb_set()
23464 * @see elm_map_marker_class_del_cb_set()
23468 EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23471 * Set the marker's style of a marker class.
23473 * @param clas The marker class.
23474 * @param style The style to be used by markers.
23476 * Each marker must be associated to a marker class, and will use the style
23477 * defined by such class when alone, i.e., @b not grouped to other markers.
23479 * The following styles are provided by default theme:
23484 * @see elm_map_marker_class_new() for more details.
23485 * @see elm_map_marker_add()
23489 EAPI void elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23492 * Set the icon callback function of a marker class.
23494 * @param clas The marker class.
23495 * @param icon_get The callback function that will return the icon.
23497 * Each marker must be associated to a marker class, and it can display a
23498 * custom icon. The function @p icon_get must return this icon.
23500 * @see elm_map_marker_class_new() for more details.
23501 * @see elm_map_marker_add()
23505 EAPI void elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23508 * Set the bubble content callback function of a marker class.
23510 * @param clas The marker class.
23511 * @param get The callback function that will return the content.
23513 * Each marker must be associated to a marker class, and it can display a
23514 * a content on a bubble that opens when the user click over the marker.
23515 * The function @p get must return this content object.
23517 * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
23520 * @see elm_map_marker_class_new() for more details.
23521 * @see elm_map_marker_class_del_cb_set()
23522 * @see elm_map_marker_add()
23526 EAPI void elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
23529 * Set the callback function used to delete bubble content of a marker class.
23531 * @param clas The marker class.
23532 * @param del The callback function that will delete the content.
23534 * Each marker must be associated to a marker class, and it can display a
23535 * a content on a bubble that opens when the user click over the marker.
23536 * The function to return such content can be set with
23537 * elm_map_marker_class_get_cb_set().
23539 * If this content must be freed, a callback function need to be
23540 * set for that task with this function.
23542 * If this callback is defined it will have to delete (or not) the
23543 * object inside, but if the callback is not defined the object will be
23544 * destroyed with evas_object_del().
23546 * @see elm_map_marker_class_new() for more details.
23547 * @see elm_map_marker_class_get_cb_set()
23548 * @see elm_map_marker_add()
23552 EAPI void elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
23555 * Get the list of available sources.
23557 * @param obj The map object.
23558 * @return The source names list.
23560 * It will provide a list with all available sources, that can be set as
23561 * current source with elm_map_source_name_set(), or get with
23562 * elm_map_source_name_get().
23564 * Available sources:
23570 * @see elm_map_source_name_set() for more details.
23571 * @see elm_map_source_name_get()
23575 EAPI const char **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23578 * Set the source of the map.
23580 * @param obj The map object.
23581 * @param source The source to be used.
23583 * Map widget retrieves images that composes the map from a web service.
23584 * This web service can be set with this method.
23586 * A different service can return a different maps with different
23587 * information and it can use different zoom values.
23589 * The @p source_name need to match one of the names provided by
23590 * elm_map_source_names_get().
23592 * The current source can be get using elm_map_source_name_get().
23594 * @see elm_map_source_names_get()
23595 * @see elm_map_source_name_get()
23600 EAPI void elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
23603 * Get the name of currently used source.
23605 * @param obj The map object.
23606 * @return Returns the name of the source in use.
23608 * @see elm_map_source_name_set() for more details.
23612 EAPI const char *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23615 * Set the source of the route service to be used by the map.
23617 * @param obj The map object.
23618 * @param source The route service to be used, being it one of
23619 * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
23620 * and #ELM_MAP_ROUTE_SOURCE_ORS.
23622 * Each one has its own algorithm, so the route retrieved may
23623 * differ depending on the source route. Now, only the default is working.
23625 * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
23626 * http://www.yournavigation.org/.
23628 * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
23629 * assumptions. Its routing core is based on Contraction Hierarchies.
23631 * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
23633 * @see elm_map_route_source_get().
23637 EAPI void elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
23640 * Get the current route source.
23642 * @param obj The map object.
23643 * @return The source of the route service used by the map.
23645 * @see elm_map_route_source_set() for details.
23649 EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23652 * Set the minimum zoom of the source.
23654 * @param obj The map object.
23655 * @param zoom New minimum zoom value to be used.
23657 * By default, it's 0.
23661 EAPI void elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23664 * Get the minimum zoom of the source.
23666 * @param obj The map object.
23667 * @return Returns the minimum zoom of the source.
23669 * @see elm_map_source_zoom_min_set() for details.
23673 EAPI int elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23676 * Set the maximum zoom of the source.
23678 * @param obj The map object.
23679 * @param zoom New maximum zoom value to be used.
23681 * By default, it's 18.
23685 EAPI void elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23688 * Get the maximum zoom of the source.
23690 * @param obj The map object.
23691 * @return Returns the maximum zoom of the source.
23693 * @see elm_map_source_zoom_min_set() for details.
23697 EAPI int elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23700 * Set the user agent used by the map object to access routing services.
23702 * @param obj The map object.
23703 * @param user_agent The user agent to be used by the map.
23705 * User agent is a client application implementing a network protocol used
23706 * in communications within a clientāserver distributed computing system
23708 * The @p user_agent identification string will transmitted in a header
23709 * field @c User-Agent.
23711 * @see elm_map_user_agent_get()
23715 EAPI void elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
23718 * Get the user agent used by the map object.
23720 * @param obj The map object.
23721 * @return The user agent identification string used by the map.
23723 * @see elm_map_user_agent_set() for details.
23727 EAPI const char *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23730 * Add a new route to the map object.
23732 * @param obj The map object.
23733 * @param type The type of transport to be considered when tracing a route.
23734 * @param method The routing method, what should be priorized.
23735 * @param flon The start longitude.
23736 * @param flat The start latitude.
23737 * @param tlon The destination longitude.
23738 * @param tlat The destination latitude.
23740 * @return The created route or @c NULL upon failure.
23742 * A route will be traced by point on coordinates (@p flat, @p flon)
23743 * to point on coordinates (@p tlat, @p tlon), using the route service
23744 * set with elm_map_route_source_set().
23746 * It will take @p type on consideration to define the route,
23747 * depending if the user will be walking or driving, the route may vary.
23748 * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
23749 * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
23751 * Another parameter is what the route should priorize, the minor distance
23752 * or the less time to be spend on the route. So @p method should be one
23753 * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
23755 * Routes created with this method can be deleted with
23756 * elm_map_route_remove(), colored with elm_map_route_color_set(),
23757 * and distance can be get with elm_map_route_distance_get().
23759 * @see elm_map_route_remove()
23760 * @see elm_map_route_color_set()
23761 * @see elm_map_route_distance_get()
23762 * @see elm_map_route_source_set()
23766 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);
23769 * Remove a route from the map.
23771 * @param route The route to remove.
23773 * @see elm_map_route_add()
23777 EAPI void elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23780 * Set the route color.
23782 * @param route The route object.
23783 * @param r Red channel value, from 0 to 255.
23784 * @param g Green channel value, from 0 to 255.
23785 * @param b Blue channel value, from 0 to 255.
23786 * @param a Alpha channel value, from 0 to 255.
23788 * It uses an additive color model, so each color channel represents
23789 * how much of each primary colors must to be used. 0 represents
23790 * ausence of this color, so if all of the three are set to 0,
23791 * the color will be black.
23793 * These component values should be integers in the range 0 to 255,
23794 * (single 8-bit byte).
23796 * This sets the color used for the route. By default, it is set to
23797 * solid red (r = 255, g = 0, b = 0, a = 255).
23799 * For alpha channel, 0 represents completely transparent, and 255, opaque.
23801 * @see elm_map_route_color_get()
23805 EAPI void elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
23808 * Get the route color.
23810 * @param route The route object.
23811 * @param r Pointer where to store the red channel value.
23812 * @param g Pointer where to store the green channel value.
23813 * @param b Pointer where to store the blue channel value.
23814 * @param a Pointer where to store the alpha channel value.
23816 * @see elm_map_route_color_set() for details.
23820 EAPI void elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
23823 * Get the route distance in kilometers.
23825 * @param route The route object.
23826 * @return The distance of route (unit : km).
23830 EAPI double elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23833 * Get the information of route nodes.
23835 * @param route The route object.
23836 * @return Returns a string with the nodes of route.
23840 EAPI const char *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23843 * Get the information of route waypoint.
23845 * @param route the route object.
23846 * @return Returns a string with information about waypoint of route.
23850 EAPI const char *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23853 * Get the address of the name.
23855 * @param name The name handle.
23856 * @return Returns the address string of @p name.
23858 * This gets the coordinates of the @p name, created with one of the
23859 * conversion functions.
23861 * @see elm_map_utils_convert_name_into_coord()
23862 * @see elm_map_utils_convert_coord_into_name()
23866 EAPI const char *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23869 * Get the current coordinates of the name.
23871 * @param name The name handle.
23872 * @param lat Pointer where to store the latitude.
23873 * @param lon Pointer where to store The longitude.
23875 * This gets the coordinates of the @p name, created with one of the
23876 * conversion functions.
23878 * @see elm_map_utils_convert_name_into_coord()
23879 * @see elm_map_utils_convert_coord_into_name()
23883 EAPI void elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
23886 * Remove a name from the map.
23888 * @param name The name to remove.
23890 * Basically the struct handled by @p name will be freed, so convertions
23891 * between address and coordinates will be lost.
23893 * @see elm_map_utils_convert_name_into_coord()
23894 * @see elm_map_utils_convert_coord_into_name()
23898 EAPI void elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23903 * @param obj The map object.
23904 * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
23905 * @param cx Rotation's center horizontal position.
23906 * @param cy Rotation's center vertical position.
23908 * @see elm_map_rotate_get()
23912 EAPI void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
23915 * Get the rotate degree of the map
23917 * @param obj The map object
23918 * @param degree Pointer where to store degrees from 0.0 to 360.0
23919 * to rotate arount Z axis.
23920 * @param cx Pointer where to store rotation's center horizontal position.
23921 * @param cy Pointer where to store rotation's center vertical position.
23923 * @see elm_map_rotate_set() to set map rotation.
23927 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);
23930 * Enable or disable mouse wheel to be used to zoom in / out the map.
23932 * @param obj The map object.
23933 * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
23936 * Mouse wheel can be used for the user to zoom in or zoom out the map.
23938 * It's disabled by default.
23940 * @see elm_map_wheel_disabled_get()
23944 EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
23947 * Get a value whether mouse wheel is enabled or not.
23949 * @param obj The map object.
23950 * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
23951 * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23953 * Mouse wheel can be used for the user to zoom in or zoom out the map.
23955 * @see elm_map_wheel_disabled_set() for details.
23959 EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23963 * Add a track on the map
23965 * @param obj The map object.
23966 * @param emap The emap route object.
23967 * @return The route object. This is an elm object of type Route.
23969 * @see elm_route_add() for details.
23973 EAPI Evas_Object *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
23977 * Remove a track from the map
23979 * @param obj The map object.
23980 * @param route The track to remove.
23984 EAPI void elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
23991 EAPI Evas_Object *elm_route_add(Evas_Object *parent);
23993 EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
23995 EAPI double elm_route_lon_min_get(Evas_Object *obj);
23996 EAPI double elm_route_lat_min_get(Evas_Object *obj);
23997 EAPI double elm_route_lon_max_get(Evas_Object *obj);
23998 EAPI double elm_route_lat_max_get(Evas_Object *obj);
24002 * @defgroup Panel Panel
24004 * @image html img/widget/panel/preview-00.png
24005 * @image latex img/widget/panel/preview-00.eps
24007 * @brief A panel is a type of animated container that contains subobjects.
24008 * It can be expanded or contracted by clicking the button on it's edge.
24010 * Orientations are as follows:
24011 * @li ELM_PANEL_ORIENT_TOP
24012 * @li ELM_PANEL_ORIENT_LEFT
24013 * @li ELM_PANEL_ORIENT_RIGHT
24015 * Default contents parts of the panel widget that you can use for are:
24016 * @li "default" - A content of the panel
24018 * @ref tutorial_panel shows one way to use this widget.
24021 typedef enum _Elm_Panel_Orient
24023 ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
24024 ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
24025 ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
24026 ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
24027 } Elm_Panel_Orient;
24029 * @brief Adds a panel object
24031 * @param parent The parent object
24033 * @return The panel object, or NULL on failure
24035 EAPI Evas_Object *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24037 * @brief Sets the orientation of the panel
24039 * @param parent The parent object
24040 * @param orient The panel orientation. Can be one of the following:
24041 * @li ELM_PANEL_ORIENT_TOP
24042 * @li ELM_PANEL_ORIENT_LEFT
24043 * @li ELM_PANEL_ORIENT_RIGHT
24045 * Sets from where the panel will (dis)appear.
24047 EAPI void elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
24049 * @brief Get the orientation of the panel.
24051 * @param obj The panel object
24052 * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
24054 EAPI Elm_Panel_Orient elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24056 * @brief Set the content of the panel.
24058 * @param obj The panel object
24059 * @param content The panel content
24061 * Once the content object is set, a previously set one will be deleted.
24062 * If you want to keep that old content object, use the
24063 * elm_panel_content_unset() function.
24065 * @deprecated use elm_object_content_set() instead
24068 EINA_DEPRECATED EAPI void elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24070 * @brief Get the content of the panel.
24072 * @param obj The panel object
24073 * @return The content that is being used
24075 * Return the content object which is set for this widget.
24077 * @see elm_panel_content_set()
24079 * @deprecated use elm_object_content_get() instead
24082 EINA_DEPRECATED EAPI Evas_Object *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24084 * @brief Unset the content of the panel.
24086 * @param obj The panel object
24087 * @return The content that was being used
24089 * Unparent and return the content object which was set for this widget.
24091 * @see elm_panel_content_set()
24093 * @deprecated use elm_object_content_unset() instead
24096 EINA_DEPRECATED EAPI Evas_Object *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24098 * @brief Set the state of the panel.
24100 * @param obj The panel object
24101 * @param hidden If true, the panel will run the animation to contract
24103 EAPI void elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
24105 * @brief Get the state of the panel.
24107 * @param obj The panel object
24108 * @param hidden If true, the panel is in the "hide" state
24110 EAPI Eina_Bool elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24112 * @brief Toggle the hidden state of the panel from code
24114 * @param obj The panel object
24116 EAPI void elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
24122 * @defgroup Panes Panes
24123 * @ingroup Elementary
24125 * @image html img/widget/panes/preview-00.png
24126 * @image latex img/widget/panes/preview-00.eps width=\textwidth
24128 * @image html img/panes.png
24129 * @image latex img/panes.eps width=\textwidth
24131 * The panes adds a dragable bar between two contents. When dragged
24132 * this bar will resize contents size.
24134 * Panes can be displayed vertically or horizontally, and contents
24135 * size proportion can be customized (homogeneous by default).
24137 * Smart callbacks one can listen to:
24138 * - "press" - The panes has been pressed (button wasn't released yet).
24139 * - "unpressed" - The panes was released after being pressed.
24140 * - "clicked" - The panes has been clicked>
24141 * - "clicked,double" - The panes has been double clicked
24143 * Available styles for it:
24146 * Default contents parts of the panes widget that you can use for are:
24147 * @li "left" - A leftside content of the panes
24148 * @li "right" - A rightside content of the panes
24150 * If panes is displayed vertically, left content will be displayed at
24153 * Here is an example on its usage:
24154 * @li @ref panes_example
24158 * @addtogroup Panes
24163 * Add a new panes widget to the given parent Elementary
24164 * (container) object.
24166 * @param parent The parent object.
24167 * @return a new panes widget handle or @c NULL, on errors.
24169 * This function inserts a new panes widget on the canvas.
24173 EAPI Evas_Object *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24176 * Set the left content of the panes widget.
24178 * @param obj The panes object.
24179 * @param content The new left content object.
24181 * Once the content object is set, a previously set one will be deleted.
24182 * If you want to keep that old content object, use the
24183 * elm_panes_content_left_unset() function.
24185 * If panes is displayed vertically, left content will be displayed at
24188 * @see elm_panes_content_left_get()
24189 * @see elm_panes_content_right_set() to set content on the other side.
24191 * @deprecated use elm_object_part_content_set() instead
24195 EINA_DEPRECATED EAPI void elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24198 * Set the right content of the panes widget.
24200 * @param obj The panes object.
24201 * @param content The new right content object.
24203 * Once the content object is set, a previously set one will be deleted.
24204 * If you want to keep that old content object, use the
24205 * elm_panes_content_right_unset() function.
24207 * If panes is displayed vertically, left content will be displayed at
24210 * @see elm_panes_content_right_get()
24211 * @see elm_panes_content_left_set() to set content on the other side.
24213 * @deprecated use elm_object_part_content_set() instead
24217 EINA_DEPRECATED EAPI void elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24220 * Get the left content of the panes.
24222 * @param obj The panes object.
24223 * @return The left content object that is being used.
24225 * Return the left content object which is set for this widget.
24227 * @see elm_panes_content_left_set() for details.
24229 * @deprecated use elm_object_part_content_get() instead
24233 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24236 * Get the right content of the panes.
24238 * @param obj The panes object
24239 * @return The right content object that is being used
24241 * Return the right content object which is set for this widget.
24243 * @see elm_panes_content_right_set() for details.
24245 * @deprecated use elm_object_part_content_get() instead
24249 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24252 * Unset the left content used for the panes.
24254 * @param obj The panes object.
24255 * @return The left content object that was being used.
24257 * Unparent and return the left content object which was set for this widget.
24259 * @see elm_panes_content_left_set() for details.
24260 * @see elm_panes_content_left_get().
24262 * @deprecated use elm_object_part_content_unset() instead
24266 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24269 * Unset the right content used for the panes.
24271 * @param obj The panes object.
24272 * @return The right content object that was being used.
24274 * Unparent and return the right content object which was set for this
24277 * @see elm_panes_content_right_set() for details.
24278 * @see elm_panes_content_right_get().
24280 * @deprecated use elm_object_part_content_unset() instead
24284 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24287 * Get the size proportion of panes widget's left side.
24289 * @param obj The panes object.
24290 * @return float value between 0.0 and 1.0 representing size proportion
24293 * @see elm_panes_content_left_size_set() for more details.
24297 EAPI double elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24300 * Set the size proportion of panes widget's left side.
24302 * @param obj The panes object.
24303 * @param size Value between 0.0 and 1.0 representing size proportion
24306 * By default it's homogeneous, i.e., both sides have the same size.
24308 * If something different is required, it can be set with this function.
24309 * For example, if the left content should be displayed over
24310 * 75% of the panes size, @p size should be passed as @c 0.75.
24311 * This way, right content will be resized to 25% of panes size.
24313 * If displayed vertically, left content is displayed at top, and
24314 * right content at bottom.
24316 * @note This proportion will change when user drags the panes bar.
24318 * @see elm_panes_content_left_size_get()
24322 EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
24325 * Set the orientation of a given panes widget.
24327 * @param obj The panes object.
24328 * @param horizontal Use @c EINA_TRUE to make @p obj to be
24329 * @b horizontal, @c EINA_FALSE to make it @b vertical.
24331 * Use this function to change how your panes is to be
24332 * disposed: vertically or horizontally.
24334 * By default it's displayed horizontally.
24336 * @see elm_panes_horizontal_get()
24340 EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24343 * Retrieve the orientation of a given panes widget.
24345 * @param obj The panes object.
24346 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
24347 * @c EINA_FALSE if it's @b vertical (and on errors).
24349 * @see elm_panes_horizontal_set() for more details.
24353 EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24354 EAPI void elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
24355 EAPI Eina_Bool elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24362 * @defgroup Flip Flip
24364 * @image html img/widget/flip/preview-00.png
24365 * @image latex img/widget/flip/preview-00.eps
24367 * This widget holds 2 content objects(Evas_Object): one on the front and one
24368 * on the back. It allows you to flip from front to back and vice-versa using
24369 * various animations.
24371 * If either the front or back contents are not set the flip will treat that
24372 * as transparent. So if you wore to set the front content but not the back,
24373 * and then call elm_flip_go() you would see whatever is below the flip.
24375 * For a list of supported animations see elm_flip_go().
24377 * Signals that you can add callbacks for are:
24378 * "animate,begin" - when a flip animation was started
24379 * "animate,done" - when a flip animation is finished
24381 * @ref tutorial_flip show how to use most of the API.
24385 typedef enum _Elm_Flip_Mode
24387 ELM_FLIP_ROTATE_Y_CENTER_AXIS,
24388 ELM_FLIP_ROTATE_X_CENTER_AXIS,
24389 ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
24390 ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
24391 ELM_FLIP_CUBE_LEFT,
24392 ELM_FLIP_CUBE_RIGHT,
24394 ELM_FLIP_CUBE_DOWN,
24395 ELM_FLIP_PAGE_LEFT,
24396 ELM_FLIP_PAGE_RIGHT,
24400 typedef enum _Elm_Flip_Interaction
24402 ELM_FLIP_INTERACTION_NONE,
24403 ELM_FLIP_INTERACTION_ROTATE,
24404 ELM_FLIP_INTERACTION_CUBE,
24405 ELM_FLIP_INTERACTION_PAGE
24406 } Elm_Flip_Interaction;
24407 typedef enum _Elm_Flip_Direction
24409 ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
24410 ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
24411 ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
24412 ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
24413 } Elm_Flip_Direction;
24415 * @brief Add a new flip to the parent
24417 * @param parent The parent object
24418 * @return The new object or NULL if it cannot be created
24420 EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24422 * @brief Set the front content of the flip widget.
24424 * @param obj The flip object
24425 * @param content The new front content object
24427 * Once the content object is set, a previously set one will be deleted.
24428 * If you want to keep that old content object, use the
24429 * elm_flip_content_front_unset() function.
24431 EAPI void elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24433 * @brief Set the back content of the flip widget.
24435 * @param obj The flip object
24436 * @param content The new back content object
24438 * Once the content object is set, a previously set one will be deleted.
24439 * If you want to keep that old content object, use the
24440 * elm_flip_content_back_unset() function.
24442 EAPI void elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24444 * @brief Get the front content used for the flip
24446 * @param obj The flip object
24447 * @return The front content object that is being used
24449 * Return the front content object which is set for this widget.
24451 EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24453 * @brief Get the back content used for the flip
24455 * @param obj The flip object
24456 * @return The back content object that is being used
24458 * Return the back content object which is set for this widget.
24460 EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24462 * @brief Unset the front content used for the flip
24464 * @param obj The flip object
24465 * @return The front content object that was being used
24467 * Unparent and return the front content object which was set for this widget.
24469 EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24471 * @brief Unset the back content used for the flip
24473 * @param obj The flip object
24474 * @return The back content object that was being used
24476 * Unparent and return the back content object which was set for this widget.
24478 EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24480 * @brief Get flip front visibility state
24482 * @param obj The flip objct
24483 * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
24486 EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24488 * @brief Set flip perspective
24490 * @param obj The flip object
24491 * @param foc The coordinate to set the focus on
24492 * @param x The X coordinate
24493 * @param y The Y coordinate
24495 * @warning This function currently does nothing.
24497 EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
24499 * @brief Runs the flip animation
24501 * @param obj The flip object
24502 * @param mode The mode type
24504 * Flips the front and back contents using the @p mode animation. This
24505 * efectively hides the currently visible content and shows the hidden one.
24507 * There a number of possible animations to use for the flipping:
24508 * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
24509 * around a horizontal axis in the middle of its height, the other content
24510 * is shown as the other side of the flip.
24511 * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
24512 * around a vertical axis in the middle of its width, the other content is
24513 * shown as the other side of the flip.
24514 * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
24515 * around a diagonal axis in the middle of its width, the other content is
24516 * shown as the other side of the flip.
24517 * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
24518 * around a diagonal axis in the middle of its height, the other content is
24519 * shown as the other side of the flip.
24520 * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
24521 * as if the flip was a cube, the other content is show as the right face of
24523 * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
24524 * right as if the flip was a cube, the other content is show as the left
24525 * face of the cube.
24526 * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
24527 * flip was a cube, the other content is show as the bottom face of the cube.
24528 * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
24529 * the flip was a cube, the other content is show as the upper face of the
24531 * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
24532 * if the flip was a book, the other content is shown as the page below that.
24533 * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
24534 * as if the flip was a book, the other content is shown as the page below
24536 * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
24537 * flip was a book, the other content is shown as the page below that.
24538 * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
24539 * flip was a book, the other content is shown as the page below that.
24541 * @image html elm_flip.png
24542 * @image latex elm_flip.eps width=\textwidth
24544 EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
24546 * @brief Set the interactive flip mode
24548 * @param obj The flip object
24549 * @param mode The interactive flip mode to use
24551 * This sets if the flip should be interactive (allow user to click and
24552 * drag a side of the flip to reveal the back page and cause it to flip).
24553 * By default a flip is not interactive. You may also need to set which
24554 * sides of the flip are "active" for flipping and how much space they use
24555 * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
24556 * and elm_flip_interacton_direction_hitsize_set()
24558 * The four avilable mode of interaction are:
24559 * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
24560 * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
24561 * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
24562 * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
24564 * @note ELM_FLIP_INTERACTION_ROTATE won't cause
24565 * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
24566 * happen, those can only be acheived with elm_flip_go();
24568 EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
24570 * @brief Get the interactive flip mode
24572 * @param obj The flip object
24573 * @return The interactive flip mode
24575 * Returns the interactive flip mode set by elm_flip_interaction_set()
24577 EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
24579 * @brief Set which directions of the flip respond to interactive flip
24581 * @param obj The flip object
24582 * @param dir The direction to change
24583 * @param enabled If that direction is enabled or not
24585 * By default all directions are disabled, so you may want to enable the
24586 * desired directions for flipping if you need interactive flipping. You must
24587 * call this function once for each direction that should be enabled.
24589 * @see elm_flip_interaction_set()
24591 EAPI void elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
24593 * @brief Get the enabled state of that flip direction
24595 * @param obj The flip object
24596 * @param dir The direction to check
24597 * @return If that direction is enabled or not
24599 * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
24601 * @see elm_flip_interaction_set()
24603 EAPI Eina_Bool elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
24605 * @brief Set the amount of the flip that is sensitive to interactive flip
24607 * @param obj The flip object
24608 * @param dir The direction to modify
24609 * @param hitsize The amount of that dimension (0.0 to 1.0) to use
24611 * Set the amount of the flip that is sensitive to interactive flip, with 0
24612 * representing no area in the flip and 1 representing the entire flip. There
24613 * is however a consideration to be made in that the area will never be
24614 * smaller than the finger size set(as set in your Elementary configuration).
24616 * @see elm_flip_interaction_set()
24618 EAPI void elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
24620 * @brief Get the amount of the flip that is sensitive to interactive flip
24622 * @param obj The flip object
24623 * @param dir The direction to check
24624 * @return The size set for that direction
24626 * Returns the amount os sensitive area set by
24627 * elm_flip_interacton_direction_hitsize_set().
24629 EAPI double elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
24634 /* scrolledentry */
24635 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24636 EINA_DEPRECATED EAPI void elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
24637 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24638 EINA_DEPRECATED EAPI void elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
24639 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24640 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24641 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24642 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24643 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24644 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24645 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24646 EINA_DEPRECATED EAPI void elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
24647 EINA_DEPRECATED EAPI void elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
24648 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24649 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
24650 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
24651 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
24652 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
24653 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
24654 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
24655 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24656 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24657 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24658 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24659 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
24660 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
24661 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24662 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24663 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24664 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24665 EINA_DEPRECATED EAPI int elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24666 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
24667 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
24668 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
24669 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24670 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);
24671 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24672 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24673 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);
24674 EINA_DEPRECATED EAPI void elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24675 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);
24676 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
24677 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24678 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24679 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24680 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
24681 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24682 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24683 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24684 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);
24685 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);
24686 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);
24687 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);
24688 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);
24689 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);
24690 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
24691 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
24692 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
24693 EINA_DEPRECATED EAPI void elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
24694 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24695 EINA_DEPRECATED EAPI void elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
24696 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
24699 * @defgroup Conformant Conformant
24700 * @ingroup Elementary
24702 * @image html img/widget/conformant/preview-00.png
24703 * @image latex img/widget/conformant/preview-00.eps width=\textwidth
24705 * @image html img/conformant.png
24706 * @image latex img/conformant.eps width=\textwidth
24708 * The aim is to provide a widget that can be used in elementary apps to
24709 * account for space taken up by the indicator, virtual keypad & softkey
24710 * windows when running the illume2 module of E17.
24712 * So conformant content will be sized and positioned considering the
24713 * space required for such stuff, and when they popup, as a keyboard
24714 * shows when an entry is selected, conformant content won't change.
24716 * Available styles for it:
24719 * Default contents parts of the conformant widget that you can use for are:
24720 * @li "default" - A content of the conformant
24722 * See how to use this widget in this example:
24723 * @ref conformant_example
24727 * @addtogroup Conformant
24732 * Add a new conformant widget to the given parent Elementary
24733 * (container) object.
24735 * @param parent The parent object.
24736 * @return A new conformant widget handle or @c NULL, on errors.
24738 * This function inserts a new conformant widget on the canvas.
24740 * @ingroup Conformant
24742 EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24745 * Set the content of the conformant widget.
24747 * @param obj The conformant object.
24748 * @param content The content to be displayed by the conformant.
24750 * Content will be sized and positioned considering the space required
24751 * to display a virtual keyboard. So it won't fill all the conformant
24752 * size. This way is possible to be sure that content won't resize
24753 * or be re-positioned after the keyboard is displayed.
24755 * Once the content object is set, a previously set one will be deleted.
24756 * If you want to keep that old content object, use the
24757 * elm_object_content_unset() function.
24759 * @see elm_object_content_unset()
24760 * @see elm_object_content_get()
24762 * @deprecated use elm_object_content_set() instead
24764 * @ingroup Conformant
24766 EINA_DEPRECATED EAPI void elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24769 * Get the content of the conformant widget.
24771 * @param obj The conformant object.
24772 * @return The content that is being used.
24774 * Return the content object which is set for this widget.
24775 * It won't be unparent from conformant. For that, use
24776 * elm_object_content_unset().
24778 * @see elm_object_content_set().
24779 * @see elm_object_content_unset()
24781 * @deprecated use elm_object_content_get() instead
24783 * @ingroup Conformant
24785 EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24788 * Unset the content of the conformant widget.
24790 * @param obj The conformant object.
24791 * @return The content that was being used.
24793 * Unparent and return the content object which was set for this widget.
24795 * @see elm_object_content_set().
24797 * @deprecated use elm_object_content_unset() instead
24799 * @ingroup Conformant
24801 EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24804 * Returns the Evas_Object that represents the content area.
24806 * @param obj The conformant object.
24807 * @return The content area of the widget.
24809 * @ingroup Conformant
24811 EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24818 * @defgroup Mapbuf Mapbuf
24819 * @ingroup Elementary
24821 * @image html img/widget/mapbuf/preview-00.png
24822 * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
24824 * This holds one content object and uses an Evas Map of transformation
24825 * points to be later used with this content. So the content will be
24826 * moved, resized, etc as a single image. So it will improve performance
24827 * when you have a complex interafce, with a lot of elements, and will
24828 * need to resize or move it frequently (the content object and its
24831 * Default contents parts of the mapbuf widget that you can use for are:
24832 * @li "default" - A content of the mapbuf
24834 * To enable map, elm_mapbuf_enabled_set() should be used.
24836 * See how to use this widget in this example:
24837 * @ref mapbuf_example
24841 * @addtogroup Mapbuf
24846 * Add a new mapbuf widget to the given parent Elementary
24847 * (container) object.
24849 * @param parent The parent object.
24850 * @return A new mapbuf widget handle or @c NULL, on errors.
24852 * This function inserts a new mapbuf widget on the canvas.
24856 EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24859 * Set the content of the mapbuf.
24861 * @param obj The mapbuf object.
24862 * @param content The content that will be filled in this mapbuf object.
24864 * Once the content object is set, a previously set one will be deleted.
24865 * If you want to keep that old content object, use the
24866 * elm_mapbuf_content_unset() function.
24868 * To enable map, elm_mapbuf_enabled_set() should be used.
24870 * @deprecated use elm_object_content_set() instead
24874 EINA_DEPRECATED EAPI void elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24877 * Get the content of the mapbuf.
24879 * @param obj The mapbuf object.
24880 * @return The content that is being used.
24882 * Return the content object which is set for this widget.
24884 * @see elm_mapbuf_content_set() for details.
24886 * @deprecated use elm_object_content_get() instead
24890 EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24893 * Unset the content of the mapbuf.
24895 * @param obj The mapbuf object.
24896 * @return The content that was being used.
24898 * Unparent and return the content object which was set for this widget.
24900 * @see elm_mapbuf_content_set() for details.
24902 * @deprecated use elm_object_content_unset() instead
24906 EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24909 * Enable or disable the map.
24911 * @param obj The mapbuf object.
24912 * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
24914 * This enables the map that is set or disables it. On enable, the object
24915 * geometry will be saved, and the new geometry will change (position and
24916 * size) to reflect the map geometry set.
24918 * Also, when enabled, alpha and smooth states will be used, so if the
24919 * content isn't solid, alpha should be enabled, for example, otherwise
24920 * a black retangle will fill the content.
24922 * When disabled, the stored map will be freed and geometry prior to
24923 * enabling the map will be restored.
24925 * It's disabled by default.
24927 * @see elm_mapbuf_alpha_set()
24928 * @see elm_mapbuf_smooth_set()
24932 EAPI void elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
24935 * Get a value whether map is enabled or not.
24937 * @param obj The mapbuf object.
24938 * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
24939 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24941 * @see elm_mapbuf_enabled_set() for details.
24945 EAPI Eina_Bool elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24948 * Enable or disable smooth map rendering.
24950 * @param obj The mapbuf object.
24951 * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
24954 * This sets smoothing for map rendering. If the object is a type that has
24955 * its own smoothing settings, then both the smooth settings for this object
24956 * and the map must be turned off.
24958 * By default smooth maps are enabled.
24962 EAPI void elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
24965 * Get a value whether smooth map rendering is enabled or not.
24967 * @param obj The mapbuf object.
24968 * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
24969 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24971 * @see elm_mapbuf_smooth_set() for details.
24975 EAPI Eina_Bool elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24978 * Set or unset alpha flag for map rendering.
24980 * @param obj The mapbuf object.
24981 * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
24984 * This sets alpha flag for map rendering. If the object is a type that has
24985 * its own alpha settings, then this will take precedence. Only image objects
24986 * have this currently. It stops alpha blending of the map area, and is
24987 * useful if you know the object and/or all sub-objects is 100% solid.
24989 * Alpha is enabled by default.
24993 EAPI void elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
24996 * Get a value whether alpha blending is enabled or not.
24998 * @param obj The mapbuf object.
24999 * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
25000 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25002 * @see elm_mapbuf_alpha_set() for details.
25006 EAPI Eina_Bool elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25013 * @defgroup Flipselector Flip Selector
25015 * @image html img/widget/flipselector/preview-00.png
25016 * @image latex img/widget/flipselector/preview-00.eps
25018 * A flip selector is a widget to show a set of @b text items, one
25019 * at a time, with the same sheet switching style as the @ref Clock
25020 * "clock" widget, when one changes the current displaying sheet
25021 * (thus, the "flip" in the name).
25023 * User clicks to flip sheets which are @b held for some time will
25024 * make the flip selector to flip continuosly and automatically for
25025 * the user. The interval between flips will keep growing in time,
25026 * so that it helps the user to reach an item which is distant from
25027 * the current selection.
25029 * Smart callbacks one can register to:
25030 * - @c "selected" - when the widget's selected text item is changed
25031 * - @c "overflowed" - when the widget's current selection is changed
25032 * from the first item in its list to the last
25033 * - @c "underflowed" - when the widget's current selection is changed
25034 * from the last item in its list to the first
25036 * Available styles for it:
25039 * To set/get the label of the flipselector item, you can use
25040 * elm_object_item_text_set/get APIs.
25041 * Once the text is set, a previously set one will be deleted.
25043 * Here is an example on its usage:
25044 * @li @ref flipselector_example
25048 * @addtogroup Flipselector
25053 * Add a new flip selector widget to the given parent Elementary
25054 * (container) widget
25056 * @param parent The parent object
25057 * @return a new flip selector widget handle or @c NULL, on errors
25059 * This function inserts a new flip selector widget on the canvas.
25061 * @ingroup Flipselector
25063 EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25066 * Programmatically select the next item of a flip selector widget
25068 * @param obj The flipselector object
25070 * @note The selection will be animated. Also, if it reaches the
25071 * end of its list of member items, it will continue with the first
25074 * @ingroup Flipselector
25076 EAPI void elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
25079 * Programmatically select the previous item of a flip selector
25082 * @param obj The flipselector object
25084 * @note The selection will be animated. Also, if it reaches the
25085 * beginning of its list of member items, it will continue with the
25086 * last one backwards.
25088 * @ingroup Flipselector
25090 EAPI void elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
25093 * Append a (text) item to a flip selector widget
25095 * @param obj The flipselector object
25096 * @param label The (text) label of the new item
25097 * @param func Convenience callback function to take place when
25099 * @param data Data passed to @p func, above
25100 * @return A handle to the item added or @c NULL, on errors
25102 * The widget's list of labels to show will be appended with the
25103 * given value. If the user wishes so, a callback function pointer
25104 * can be passed, which will get called when this same item is
25107 * @note The current selection @b won't be modified by appending an
25108 * element to the list.
25110 * @note The maximum length of the text label is going to be
25111 * determined <b>by the widget's theme</b>. Strings larger than
25112 * that value are going to be @b truncated.
25114 * @ingroup Flipselector
25116 EAPI Elm_Object_Item *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25119 * Prepend a (text) item to a flip selector widget
25121 * @param obj The flipselector object
25122 * @param label The (text) label of the new item
25123 * @param func Convenience callback function to take place when
25125 * @param data Data passed to @p func, above
25126 * @return A handle to the item added or @c NULL, on errors
25128 * The widget's list of labels to show will be prepended with the
25129 * given value. If the user wishes so, a callback function pointer
25130 * can be passed, which will get called when this same item is
25133 * @note The current selection @b won't be modified by prepending
25134 * an element to the list.
25136 * @note The maximum length of the text label is going to be
25137 * determined <b>by the widget's theme</b>. Strings larger than
25138 * that value are going to be @b truncated.
25140 * @ingroup Flipselector
25142 EAPI Elm_Object_Item *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25145 * Get the internal list of items in a given flip selector widget.
25147 * @param obj The flipselector object
25148 * @return The list of items (#Elm_Object_Item as data) or
25149 * @c NULL on errors.
25151 * This list is @b not to be modified in any way and must not be
25152 * freed. Use the list members with functions like
25153 * elm_object_item_text_set(),
25154 * elm_object_item_text_get(),
25155 * elm_flipselector_item_del(),
25156 * elm_flipselector_item_selected_get(),
25157 * elm_flipselector_item_selected_set().
25159 * @warning This list is only valid until @p obj object's internal
25160 * items list is changed. It should be fetched again with another
25161 * call to this function when changes happen.
25163 * @ingroup Flipselector
25165 EAPI const Eina_List *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25168 * Get the first item in the given flip selector widget's list of
25171 * @param obj The flipselector object
25172 * @return The first item or @c NULL, if it has no items (and on
25175 * @see elm_flipselector_item_append()
25176 * @see elm_flipselector_last_item_get()
25178 * @ingroup Flipselector
25180 EAPI Elm_Object_Item *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25183 * Get the last item in the given flip selector widget's list of
25186 * @param obj The flipselector object
25187 * @return The last item or @c NULL, if it has no items (and on
25190 * @see elm_flipselector_item_prepend()
25191 * @see elm_flipselector_first_item_get()
25193 * @ingroup Flipselector
25195 EAPI Elm_Object_Item *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25198 * Get the currently selected item in a flip selector widget.
25200 * @param obj The flipselector object
25201 * @return The selected item or @c NULL, if the widget has no items
25204 * @ingroup Flipselector
25206 EAPI Elm_Object_Item *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25209 * Set whether a given flip selector widget's item should be the
25210 * currently selected one.
25212 * @param it The flip selector item
25213 * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
25215 * This sets whether @p item is or not the selected (thus, under
25216 * display) one. If @p item is different than one under display,
25217 * the latter will be unselected. If the @p item is set to be
25218 * unselected, on the other hand, the @b first item in the widget's
25219 * internal members list will be the new selected one.
25221 * @see elm_flipselector_item_selected_get()
25223 * @ingroup Flipselector
25225 EAPI void elm_flipselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
25228 * Get whether a given flip selector widget's item is the currently
25231 * @param it The flip selector item
25232 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
25235 * @see elm_flipselector_item_selected_set()
25237 * @ingroup Flipselector
25239 EAPI Eina_Bool elm_flipselector_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25242 * Delete a given item from a flip selector widget.
25244 * @param it The item to delete
25246 * @ingroup Flipselector
25248 EAPI void elm_flipselector_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25251 * Get the label of a given flip selector widget's item.
25253 * @param it The item to get label from
25254 * @return The text label of @p item or @c NULL, on errors
25256 * @see elm_object_item_text_set()
25258 * @deprecated see elm_object_item_text_get() instead
25259 * @ingroup Flipselector
25261 EINA_DEPRECATED EAPI const char *elm_flipselector_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25264 * Set the label of a given flip selector widget's item.
25266 * @param it The item to set label on
25267 * @param label The text label string, in UTF-8 encoding
25269 * @see elm_object_item_text_get()
25271 * @deprecated see elm_object_item_text_set() instead
25272 * @ingroup Flipselector
25274 EINA_DEPRECATED EAPI void elm_flipselector_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
25277 * Gets the item before @p item in a flip selector widget's
25278 * internal list of items.
25280 * @param it The item to fetch previous from
25281 * @return The item before the @p item, in its parent's list. If
25282 * there is no previous item for @p item or there's an
25283 * error, @c NULL is returned.
25285 * @see elm_flipselector_item_next_get()
25287 * @ingroup Flipselector
25289 EAPI Elm_Object_Item *elm_flipselector_item_prev_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25292 * Gets the item after @p item in a flip selector widget's
25293 * internal list of items.
25295 * @param it The item to fetch next from
25296 * @return The item after the @p item, in its parent's list. If
25297 * there is no next item for @p item or there's an
25298 * error, @c NULL is returned.
25300 * @see elm_flipselector_item_next_get()
25302 * @ingroup Flipselector
25304 EAPI Elm_Object_Item *elm_flipselector_item_next_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25307 * Set the interval on time updates for an user mouse button hold
25308 * on a flip selector widget.
25310 * @param obj The flip selector object
25311 * @param interval The (first) interval value in seconds
25313 * This interval value is @b decreased while the user holds the
25314 * mouse pointer either flipping up or flipping doww a given flip
25317 * This helps the user to get to a given item distant from the
25318 * current one easier/faster, as it will start to flip quicker and
25319 * quicker on mouse button holds.
25321 * The calculation for the next flip interval value, starting from
25322 * the one set with this call, is the previous interval divided by
25323 * 1.05, so it decreases a little bit.
25325 * The default starting interval value for automatic flips is
25328 * @see elm_flipselector_interval_get()
25330 * @ingroup Flipselector
25332 EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25335 * Get the interval on time updates for an user mouse button hold
25336 * on a flip selector widget.
25338 * @param obj The flip selector object
25339 * @return The (first) interval value, in seconds, set on it
25341 * @see elm_flipselector_interval_set() for more details
25343 * @ingroup Flipselector
25345 EAPI double elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25351 * @addtogroup Calendar
25356 * @enum _Elm_Calendar_Mark_Repeat
25357 * @typedef Elm_Calendar_Mark_Repeat
25359 * Event periodicity, used to define if a mark should be repeated
25360 * @b beyond event's day. It's set when a mark is added.
25362 * So, for a mark added to 13th May with periodicity set to WEEKLY,
25363 * there will be marks every week after this date. Marks will be displayed
25364 * at 13th, 20th, 27th, 3rd June ...
25366 * Values don't work as bitmask, only one can be choosen.
25368 * @see elm_calendar_mark_add()
25370 * @ingroup Calendar
25372 typedef enum _Elm_Calendar_Mark_Repeat
25374 ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
25375 ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
25376 ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
25377 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*/
25378 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. */
25379 } Elm_Calendar_Mark_Repeat;
25381 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(). */
25384 * Add a new calendar widget to the given parent Elementary
25385 * (container) object.
25387 * @param parent The parent object.
25388 * @return a new calendar widget handle or @c NULL, on errors.
25390 * This function inserts a new calendar widget on the canvas.
25392 * @ref calendar_example_01
25394 * @ingroup Calendar
25396 EAPI Evas_Object *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25399 * Get weekdays names displayed by the calendar.
25401 * @param obj The calendar object.
25402 * @return Array of seven strings to be used as weekday names.
25404 * By default, weekdays abbreviations get from system are displayed:
25405 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25406 * The first string is related to Sunday, the second to Monday...
25408 * @see elm_calendar_weekdays_name_set()
25410 * @ref calendar_example_05
25412 * @ingroup Calendar
25414 EAPI const char **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25417 * Set weekdays names to be displayed by the calendar.
25419 * @param obj The calendar object.
25420 * @param weekdays Array of seven strings to be used as weekday names.
25421 * @warning It must have 7 elements, or it will access invalid memory.
25422 * @warning The strings must be NULL terminated ('@\0').
25424 * By default, weekdays abbreviations get from system are displayed:
25425 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25427 * The first string should be related to Sunday, the second to Monday...
25429 * The usage should be like this:
25431 * const char *weekdays[] =
25433 * "Sunday", "Monday", "Tuesday", "Wednesday",
25434 * "Thursday", "Friday", "Saturday"
25436 * elm_calendar_weekdays_names_set(calendar, weekdays);
25439 * @see elm_calendar_weekdays_name_get()
25441 * @ref calendar_example_02
25443 * @ingroup Calendar
25445 EAPI void elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
25448 * Set the minimum and maximum values for the year
25450 * @param obj The calendar object
25451 * @param min The minimum year, greater than 1901;
25452 * @param max The maximum year;
25454 * Maximum must be greater than minimum, except if you don't wan't to set
25456 * Default values are 1902 and -1.
25458 * If the maximum year is a negative value, it will be limited depending
25459 * on the platform architecture (year 2037 for 32 bits);
25461 * @see elm_calendar_min_max_year_get()
25463 * @ref calendar_example_03
25465 * @ingroup Calendar
25467 EAPI void elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
25470 * Get the minimum and maximum values for the year
25472 * @param obj The calendar object.
25473 * @param min The minimum year.
25474 * @param max The maximum year.
25476 * Default values are 1902 and -1.
25478 * @see elm_calendar_min_max_year_get() for more details.
25480 * @ref calendar_example_05
25482 * @ingroup Calendar
25484 EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
25487 * Enable or disable day selection
25489 * @param obj The calendar object.
25490 * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
25493 * Enabled by default. If disabled, the user still can select months,
25494 * but not days. Selected days are highlighted on calendar.
25495 * It should be used if you won't need such selection for the widget usage.
25497 * When a day is selected, or month is changed, smart callbacks for
25498 * signal "changed" will be called.
25500 * @see elm_calendar_day_selection_enable_get()
25502 * @ref calendar_example_04
25504 * @ingroup Calendar
25506 EAPI void elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25509 * Get a value whether day selection is enabled or not.
25511 * @see elm_calendar_day_selection_enable_set() for details.
25513 * @param obj The calendar object.
25514 * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
25515 * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
25517 * @ref calendar_example_05
25519 * @ingroup Calendar
25521 EAPI Eina_Bool elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25525 * Set selected date to be highlighted on calendar.
25527 * @param obj The calendar object.
25528 * @param selected_time A @b tm struct to represent the selected date.
25530 * Set the selected date, changing the displayed month if needed.
25531 * Selected date changes when the user goes to next/previous month or
25532 * select a day pressing over it on calendar.
25534 * @see elm_calendar_selected_time_get()
25536 * @ref calendar_example_04
25538 * @ingroup Calendar
25540 EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
25543 * Get selected date.
25545 * @param obj The calendar object
25546 * @param selected_time A @b tm struct to point to selected date
25547 * @return EINA_FALSE means an error ocurred and returned time shouldn't
25550 * Get date selected by the user or set by function
25551 * elm_calendar_selected_time_set().
25552 * Selected date changes when the user goes to next/previous month or
25553 * select a day pressing over it on calendar.
25555 * @see elm_calendar_selected_time_get()
25557 * @ref calendar_example_05
25559 * @ingroup Calendar
25561 EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
25564 * Set a function to format the string that will be used to display
25567 * @param obj The calendar object
25568 * @param format_function Function to set the month-year string given
25569 * the selected date
25571 * By default it uses strftime with "%B %Y" format string.
25572 * It should allocate the memory that will be used by the string,
25573 * that will be freed by the widget after usage.
25574 * A pointer to the string and a pointer to the time struct will be provided.
25579 * _format_month_year(struct tm *selected_time)
25582 * if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
25583 * return strdup(buf);
25586 * elm_calendar_format_function_set(calendar, _format_month_year);
25589 * @ref calendar_example_02
25591 * @ingroup Calendar
25593 EAPI void elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
25596 * Add a new mark to the calendar
25598 * @param obj The calendar object
25599 * @param mark_type A string used to define the type of mark. It will be
25600 * emitted to the theme, that should display a related modification on these
25601 * days representation.
25602 * @param mark_time A time struct to represent the date of inclusion of the
25603 * mark. For marks that repeats it will just be displayed after the inclusion
25604 * date in the calendar.
25605 * @param repeat Repeat the event following this periodicity. Can be a unique
25606 * mark (that don't repeat), daily, weekly, monthly or annually.
25607 * @return The created mark or @p NULL upon failure.
25609 * Add a mark that will be drawn in the calendar respecting the insertion
25610 * time and periodicity. It will emit the type as signal to the widget theme.
25611 * Default theme supports "holiday" and "checked", but it can be extended.
25613 * It won't immediately update the calendar, drawing the marks.
25614 * For this, call elm_calendar_marks_draw(). However, when user selects
25615 * next or previous month calendar forces marks drawn.
25617 * Marks created with this method can be deleted with
25618 * elm_calendar_mark_del().
25622 * struct tm selected_time;
25623 * time_t current_time;
25625 * current_time = time(NULL) + 5 * 84600;
25626 * localtime_r(¤t_time, &selected_time);
25627 * elm_calendar_mark_add(cal, "holiday", selected_time,
25628 * ELM_CALENDAR_ANNUALLY);
25630 * current_time = time(NULL) + 1 * 84600;
25631 * localtime_r(¤t_time, &selected_time);
25632 * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
25634 * elm_calendar_marks_draw(cal);
25637 * @see elm_calendar_marks_draw()
25638 * @see elm_calendar_mark_del()
25640 * @ref calendar_example_06
25642 * @ingroup Calendar
25644 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);
25647 * Delete mark from the calendar.
25649 * @param mark The mark to be deleted.
25651 * If deleting all calendar marks is required, elm_calendar_marks_clear()
25652 * should be used instead of getting marks list and deleting each one.
25654 * @see elm_calendar_mark_add()
25656 * @ref calendar_example_06
25658 * @ingroup Calendar
25660 EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
25663 * Remove all calendar's marks
25665 * @param obj The calendar object.
25667 * @see elm_calendar_mark_add()
25668 * @see elm_calendar_mark_del()
25670 * @ingroup Calendar
25672 EAPI void elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25676 * Get a list of all the calendar marks.
25678 * @param obj The calendar object.
25679 * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
25681 * @see elm_calendar_mark_add()
25682 * @see elm_calendar_mark_del()
25683 * @see elm_calendar_marks_clear()
25685 * @ingroup Calendar
25687 EAPI const Eina_List *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25690 * Draw calendar marks.
25692 * @param obj The calendar object.
25694 * Should be used after adding, removing or clearing marks.
25695 * It will go through the entire marks list updating the calendar.
25696 * If lots of marks will be added, add all the marks and then call
25699 * When the month is changed, i.e. user selects next or previous month,
25700 * marks will be drawed.
25702 * @see elm_calendar_mark_add()
25703 * @see elm_calendar_mark_del()
25704 * @see elm_calendar_marks_clear()
25706 * @ref calendar_example_06
25708 * @ingroup Calendar
25710 EAPI void elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
25713 * Set a day text color to the same that represents Saturdays.
25715 * @param obj The calendar object.
25716 * @param pos The text position. Position is the cell counter, from left
25717 * to right, up to down. It starts on 0 and ends on 41.
25719 * @deprecated use elm_calendar_mark_add() instead like:
25722 * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
25723 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25726 * @see elm_calendar_mark_add()
25728 * @ingroup Calendar
25730 EINA_DEPRECATED EAPI void elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25733 * Set a day text color to the same that represents Sundays.
25735 * @param obj The calendar object.
25736 * @param pos The text position. Position is the cell counter, from left
25737 * to right, up to down. It starts on 0 and ends on 41.
25739 * @deprecated use elm_calendar_mark_add() instead like:
25742 * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
25743 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25746 * @see elm_calendar_mark_add()
25748 * @ingroup Calendar
25750 EINA_DEPRECATED EAPI void elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25753 * Set a day text color to the same that represents Weekdays.
25755 * @param obj The calendar object
25756 * @param pos The text position. Position is the cell counter, from left
25757 * to right, up to down. It starts on 0 and ends on 41.
25759 * @deprecated use elm_calendar_mark_add() instead like:
25762 * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
25764 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
25765 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25766 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
25767 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25768 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
25769 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25770 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
25771 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25772 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
25775 * @see elm_calendar_mark_add()
25777 * @ingroup Calendar
25779 EINA_DEPRECATED EAPI void elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25782 * Set the interval on time updates for an user mouse button hold
25783 * on calendar widgets' month selection.
25785 * @param obj The calendar object
25786 * @param interval The (first) interval value in seconds
25788 * This interval value is @b decreased while the user holds the
25789 * mouse pointer either selecting next or previous month.
25791 * This helps the user to get to a given month distant from the
25792 * current one easier/faster, as it will start to change quicker and
25793 * quicker on mouse button holds.
25795 * The calculation for the next change interval value, starting from
25796 * the one set with this call, is the previous interval divided by
25797 * 1.05, so it decreases a little bit.
25799 * The default starting interval value for automatic changes is
25802 * @see elm_calendar_interval_get()
25804 * @ingroup Calendar
25806 EAPI void elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25809 * Get the interval on time updates for an user mouse button hold
25810 * on calendar widgets' month selection.
25812 * @param obj The calendar object
25813 * @return The (first) interval value, in seconds, set on it
25815 * @see elm_calendar_interval_set() for more details
25817 * @ingroup Calendar
25819 EAPI double elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25826 * @defgroup Diskselector Diskselector
25827 * @ingroup Elementary
25829 * @image html img/widget/diskselector/preview-00.png
25830 * @image latex img/widget/diskselector/preview-00.eps
25832 * A diskselector is a kind of list widget. It scrolls horizontally,
25833 * and can contain label and icon objects. Three items are displayed
25834 * with the selected one in the middle.
25836 * It can act like a circular list with round mode and labels can be
25837 * reduced for a defined length for side items.
25839 * Smart callbacks one can listen to:
25840 * - "selected" - when item is selected, i.e. scroller stops.
25842 * Available styles for it:
25845 * List of examples:
25846 * @li @ref diskselector_example_01
25847 * @li @ref diskselector_example_02
25851 * @addtogroup Diskselector
25855 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(). */
25858 * Add a new diskselector widget to the given parent Elementary
25859 * (container) object.
25861 * @param parent The parent object.
25862 * @return a new diskselector widget handle or @c NULL, on errors.
25864 * This function inserts a new diskselector widget on the canvas.
25866 * @ingroup Diskselector
25868 EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25871 * Enable or disable round mode.
25873 * @param obj The diskselector object.
25874 * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
25877 * Disabled by default. If round mode is enabled the items list will
25878 * work like a circle list, so when the user reaches the last item,
25879 * the first one will popup.
25881 * @see elm_diskselector_round_get()
25883 * @ingroup Diskselector
25885 EAPI void elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
25888 * Get a value whether round mode is enabled or not.
25890 * @see elm_diskselector_round_set() for details.
25892 * @param obj The diskselector object.
25893 * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
25894 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25896 * @ingroup Diskselector
25898 EAPI Eina_Bool elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25901 * Get the side labels max length.
25903 * @deprecated use elm_diskselector_side_label_length_get() instead:
25905 * @param obj The diskselector object.
25906 * @return The max length defined for side labels, or 0 if not a valid
25909 * @ingroup Diskselector
25911 EINA_DEPRECATED EAPI int elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25914 * Set the side labels max length.
25916 * @deprecated use elm_diskselector_side_label_length_set() instead:
25918 * @param obj The diskselector object.
25919 * @param len The max length defined for side labels.
25921 * @ingroup Diskselector
25923 EINA_DEPRECATED EAPI void elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25926 * Get the side labels max length.
25928 * @see elm_diskselector_side_label_length_set() for details.
25930 * @param obj The diskselector object.
25931 * @return The max length defined for side labels, or 0 if not a valid
25934 * @ingroup Diskselector
25936 EAPI int elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25939 * Set the side labels max length.
25941 * @param obj The diskselector object.
25942 * @param len The max length defined for side labels.
25944 * Length is the number of characters of items' label that will be
25945 * visible when it's set on side positions. It will just crop
25946 * the string after defined size. E.g.:
25948 * An item with label "January" would be displayed on side position as
25949 * "Jan" if max length is set to 3, or "Janu", if this property
25952 * When it's selected, the entire label will be displayed, except for
25953 * width restrictions. In this case label will be cropped and "..."
25954 * will be concatenated.
25956 * Default side label max length is 3.
25958 * This property will be applyed over all items, included before or
25959 * later this function call.
25961 * @ingroup Diskselector
25963 EAPI void elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25966 * Set the number of items to be displayed.
25968 * @param obj The diskselector object.
25969 * @param num The number of items the diskselector will display.
25971 * Default value is 3, and also it's the minimun. If @p num is less
25972 * than 3, it will be set to 3.
25974 * Also, it can be set on theme, using data item @c display_item_num
25975 * on group "elm/diskselector/item/X", where X is style set.
25978 * group { name: "elm/diskselector/item/X";
25980 * item: "display_item_num" "5";
25983 * @ingroup Diskselector
25985 EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
25988 * Get the number of items in the diskselector object.
25990 * @param obj The diskselector object.
25992 * @ingroup Diskselector
25994 EAPI int elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25997 * Set bouncing behaviour when the scrolled content reaches an edge.
25999 * Tell the internal scroller object whether it should bounce or not
26000 * when it reaches the respective edges for each axis.
26002 * @param obj The diskselector object.
26003 * @param h_bounce Whether to bounce or not in the horizontal axis.
26004 * @param v_bounce Whether to bounce or not in the vertical axis.
26006 * @see elm_scroller_bounce_set()
26008 * @ingroup Diskselector
26010 EAPI void elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
26013 * Get the bouncing behaviour of the internal scroller.
26015 * Get whether the internal scroller should bounce when the edge of each
26016 * axis is reached scrolling.
26018 * @param obj The diskselector object.
26019 * @param h_bounce Pointer where to store the bounce state of the horizontal
26021 * @param v_bounce Pointer where to store the bounce state of the vertical
26024 * @see elm_scroller_bounce_get()
26025 * @see elm_diskselector_bounce_set()
26027 * @ingroup Diskselector
26029 EAPI void elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
26032 * Get the scrollbar policy.
26034 * @see elm_diskselector_scroller_policy_get() for details.
26036 * @param obj The diskselector object.
26037 * @param policy_h Pointer where to store horizontal scrollbar policy.
26038 * @param policy_v Pointer where to store vertical scrollbar policy.
26040 * @ingroup Diskselector
26042 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);
26045 * Set the scrollbar policy.
26047 * @param obj The diskselector object.
26048 * @param policy_h Horizontal scrollbar policy.
26049 * @param policy_v Vertical scrollbar policy.
26051 * This sets the scrollbar visibility policy for the given scroller.
26052 * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
26053 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
26054 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
26055 * This applies respectively for the horizontal and vertical scrollbars.
26057 * The both are disabled by default, i.e., are set to
26058 * #ELM_SCROLLER_POLICY_OFF.
26060 * @ingroup Diskselector
26062 EAPI void elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
26065 * Remove all diskselector's items.
26067 * @param obj The diskselector object.
26069 * @see elm_diskselector_item_del()
26070 * @see elm_diskselector_item_append()
26072 * @ingroup Diskselector
26074 EAPI void elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26077 * Get a list of all the diskselector items.
26079 * @param obj The diskselector object.
26080 * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
26081 * or @c NULL on failure.
26083 * @see elm_diskselector_item_append()
26084 * @see elm_diskselector_item_del()
26085 * @see elm_diskselector_clear()
26087 * @ingroup Diskselector
26089 EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26092 * Appends a new item to the diskselector object.
26094 * @param obj The diskselector object.
26095 * @param label The label of the diskselector item.
26096 * @param icon The icon object to use at left side of the item. An
26097 * icon can be any Evas object, but usually it is an icon created
26098 * with elm_icon_add().
26099 * @param func The function to call when the item is selected.
26100 * @param data The data to associate with the item for related callbacks.
26102 * @return The created item or @c NULL upon failure.
26104 * A new item will be created and appended to the diskselector, i.e., will
26105 * be set as last item. Also, if there is no selected item, it will
26106 * be selected. This will always happens for the first appended item.
26108 * If no icon is set, label will be centered on item position, otherwise
26109 * the icon will be placed at left of the label, that will be shifted
26112 * Items created with this method can be deleted with
26113 * elm_diskselector_item_del().
26115 * Associated @p data can be properly freed when item is deleted if a
26116 * callback function is set with elm_diskselector_item_del_cb_set().
26118 * If a function is passed as argument, it will be called everytime this item
26119 * is selected, i.e., the user stops the diskselector with this
26120 * item on center position. If such function isn't needed, just passing
26121 * @c NULL as @p func is enough. The same should be done for @p data.
26123 * Simple example (with no function callback or data associated):
26125 * disk = elm_diskselector_add(win);
26126 * ic = elm_icon_add(win);
26127 * elm_icon_file_set(ic, "path/to/image", NULL);
26128 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
26129 * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
26132 * @see elm_diskselector_item_del()
26133 * @see elm_diskselector_item_del_cb_set()
26134 * @see elm_diskselector_clear()
26135 * @see elm_icon_add()
26137 * @ingroup Diskselector
26139 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);
26143 * Delete them item from the diskselector.
26145 * @param it The item of diskselector to be deleted.
26147 * If deleting all diskselector items is required, elm_diskselector_clear()
26148 * should be used instead of getting items list and deleting each one.
26150 * @see elm_diskselector_clear()
26151 * @see elm_diskselector_item_append()
26152 * @see elm_diskselector_item_del_cb_set()
26154 * @ingroup Diskselector
26156 EAPI void elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26159 * Set the function called when a diskselector item is freed.
26161 * @param it The item to set the callback on
26162 * @param func The function called
26164 * If there is a @p func, then it will be called prior item's memory release.
26165 * That will be called with the following arguments:
26167 * @li item's Evas object;
26170 * This way, a data associated to a diskselector item could be properly
26173 * @ingroup Diskselector
26175 EAPI void elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
26178 * Get the data associated to the item.
26180 * @param it The diskselector item
26181 * @return The data associated to @p it
26183 * The return value is a pointer to data associated to @p item when it was
26184 * created, with function elm_diskselector_item_append(). If no data
26185 * was passed as argument, it will return @c NULL.
26187 * @see elm_diskselector_item_append()
26189 * @ingroup Diskselector
26191 EAPI void *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26194 * Set the icon associated to the item.
26196 * @param it The diskselector item
26197 * @param icon The icon object to associate with @p it
26199 * The icon object to use at left side of the item. An
26200 * icon can be any Evas object, but usually it is an icon created
26201 * with elm_icon_add().
26203 * Once the icon object is set, a previously set one will be deleted.
26204 * @warning Setting the same icon for two items will cause the icon to
26205 * dissapear from the first item.
26207 * If an icon was passed as argument on item creation, with function
26208 * elm_diskselector_item_append(), it will be already
26209 * associated to the item.
26211 * @see elm_diskselector_item_append()
26212 * @see elm_diskselector_item_icon_get()
26214 * @ingroup Diskselector
26216 EAPI void elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
26219 * Get the icon associated to the item.
26221 * @param it The diskselector item
26222 * @return The icon associated to @p it
26224 * The return value is a pointer to the icon associated to @p item when it was
26225 * created, with function elm_diskselector_item_append(), or later
26226 * with function elm_diskselector_item_icon_set. If no icon
26227 * was passed as argument, it will return @c NULL.
26229 * @see elm_diskselector_item_append()
26230 * @see elm_diskselector_item_icon_set()
26232 * @ingroup Diskselector
26234 EAPI Evas_Object *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26237 * Set the label of item.
26239 * @param it The item of diskselector.
26240 * @param label The label of item.
26242 * The label to be displayed by the item.
26244 * If no icon is set, label will be centered on item position, otherwise
26245 * the icon will be placed at left of the label, that will be shifted
26248 * An item with label "January" would be displayed on side position as
26249 * "Jan" if max length is set to 3 with function
26250 * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
26253 * When this @p item is selected, the entire label will be displayed,
26254 * except for width restrictions.
26255 * In this case label will be cropped and "..." will be concatenated,
26256 * but only for display purposes. It will keep the entire string, so
26257 * if diskselector is resized the remaining characters will be displayed.
26259 * If a label was passed as argument on item creation, with function
26260 * elm_diskselector_item_append(), it will be already
26261 * displayed by the item.
26263 * @see elm_diskselector_side_label_lenght_set()
26264 * @see elm_diskselector_item_label_get()
26265 * @see elm_diskselector_item_append()
26267 * @ingroup Diskselector
26269 EAPI void elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
26272 * Get the label of item.
26274 * @param it The item of diskselector.
26275 * @return The label of item.
26277 * The return value is a pointer to the label associated to @p item when it was
26278 * created, with function elm_diskselector_item_append(), or later
26279 * with function elm_diskselector_item_label_set. If no label
26280 * was passed as argument, it will return @c NULL.
26282 * @see elm_diskselector_item_label_set() for more details.
26283 * @see elm_diskselector_item_append()
26285 * @ingroup Diskselector
26287 EAPI const char *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26290 * Get the selected item.
26292 * @param obj The diskselector object.
26293 * @return The selected diskselector item.
26295 * The selected item can be unselected with function
26296 * elm_diskselector_item_selected_set(), and the first item of
26297 * diskselector will be selected.
26299 * The selected item always will be centered on diskselector, with
26300 * full label displayed, i.e., max lenght set to side labels won't
26301 * apply on the selected item. More details on
26302 * elm_diskselector_side_label_length_set().
26304 * @ingroup Diskselector
26306 EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26309 * Set the selected state of an item.
26311 * @param it The diskselector item
26312 * @param selected The selected state
26314 * This sets the selected state of the given item @p it.
26315 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26317 * If a new item is selected the previosly selected will be unselected.
26318 * Previoulsy selected item can be get with function
26319 * elm_diskselector_selected_item_get().
26321 * If the item @p it is unselected, the first item of diskselector will
26324 * Selected items will be visible on center position of diskselector.
26325 * So if it was on another position before selected, or was invisible,
26326 * diskselector will animate items until the selected item reaches center
26329 * @see elm_diskselector_item_selected_get()
26330 * @see elm_diskselector_selected_item_get()
26332 * @ingroup Diskselector
26334 EAPI void elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
26337 * Get whether the @p item is selected or not.
26339 * @param it The diskselector item.
26340 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
26341 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
26343 * @see elm_diskselector_selected_item_set() for details.
26344 * @see elm_diskselector_item_selected_get()
26346 * @ingroup Diskselector
26348 EAPI Eina_Bool elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26351 * Get the first item of the diskselector.
26353 * @param obj The diskselector object.
26354 * @return The first item, or @c NULL if none.
26356 * The list of items follows append order. So it will return the first
26357 * item appended to the widget that wasn't deleted.
26359 * @see elm_diskselector_item_append()
26360 * @see elm_diskselector_items_get()
26362 * @ingroup Diskselector
26364 EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26367 * Get the last item of the diskselector.
26369 * @param obj The diskselector object.
26370 * @return The last item, or @c NULL if none.
26372 * The list of items follows append order. So it will return last first
26373 * item appended to the widget that wasn't deleted.
26375 * @see elm_diskselector_item_append()
26376 * @see elm_diskselector_items_get()
26378 * @ingroup Diskselector
26380 EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26383 * Get the item before @p item in diskselector.
26385 * @param it The diskselector item.
26386 * @return The item before @p item, or @c NULL if none or on failure.
26388 * The list of items follows append order. So it will return item appended
26389 * just before @p item and that wasn't deleted.
26391 * If it is the first item, @c NULL will be returned.
26392 * First item can be get by elm_diskselector_first_item_get().
26394 * @see elm_diskselector_item_append()
26395 * @see elm_diskselector_items_get()
26397 * @ingroup Diskselector
26399 EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26402 * Get the item after @p item in diskselector.
26404 * @param it The diskselector item.
26405 * @return The item after @p item, or @c NULL if none or on failure.
26407 * The list of items follows append order. So it will return item appended
26408 * just after @p item and that wasn't deleted.
26410 * If it is the last item, @c NULL will be returned.
26411 * Last item can be get by elm_diskselector_last_item_get().
26413 * @see elm_diskselector_item_append()
26414 * @see elm_diskselector_items_get()
26416 * @ingroup Diskselector
26418 EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26421 * Set the text to be shown in the diskselector item.
26423 * @param item Target item
26424 * @param text The text to set in the content
26426 * Setup the text as tooltip to object. The item can have only one tooltip,
26427 * so any previous tooltip data is removed.
26429 * @see elm_object_tooltip_text_set() for more details.
26431 * @ingroup Diskselector
26433 EAPI void elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
26436 * Set the content to be shown in the tooltip item.
26438 * Setup the tooltip to item. The item can have only one tooltip,
26439 * so any previous tooltip data is removed. @p func(with @p data) will
26440 * be called every time that need show the tooltip and it should
26441 * return a valid Evas_Object. This object is then managed fully by
26442 * tooltip system and is deleted when the tooltip is gone.
26444 * @param item the diskselector item being attached a tooltip.
26445 * @param func the function used to create the tooltip contents.
26446 * @param data what to provide to @a func as callback data/context.
26447 * @param del_cb called when data is not needed anymore, either when
26448 * another callback replaces @p func, the tooltip is unset with
26449 * elm_diskselector_item_tooltip_unset() or the owner @a item
26450 * dies. This callback receives as the first parameter the
26451 * given @a data, and @c event_info is the item.
26453 * @see elm_object_tooltip_content_cb_set() for more details.
26455 * @ingroup Diskselector
26457 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);
26460 * Unset tooltip from item.
26462 * @param item diskselector item to remove previously set tooltip.
26464 * Remove tooltip from item. The callback provided as del_cb to
26465 * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
26466 * it is not used anymore.
26468 * @see elm_object_tooltip_unset() for more details.
26469 * @see elm_diskselector_item_tooltip_content_cb_set()
26471 * @ingroup Diskselector
26473 EAPI void elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26477 * Sets a different style for this item tooltip.
26479 * @note before you set a style you should define a tooltip with
26480 * elm_diskselector_item_tooltip_content_cb_set() or
26481 * elm_diskselector_item_tooltip_text_set()
26483 * @param item diskselector item with tooltip already set.
26484 * @param style the theme style to use (default, transparent, ...)
26486 * @see elm_object_tooltip_style_set() for more details.
26488 * @ingroup Diskselector
26490 EAPI void elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26493 * Get the style for this item tooltip.
26495 * @param item diskselector item with tooltip already set.
26496 * @return style the theme style in use, defaults to "default". If the
26497 * object does not have a tooltip set, then NULL is returned.
26499 * @see elm_object_tooltip_style_get() for more details.
26500 * @see elm_diskselector_item_tooltip_style_set()
26502 * @ingroup Diskselector
26504 EAPI const char *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26507 * Set the cursor to be shown when mouse is over the diskselector item
26509 * @param item Target item
26510 * @param cursor the cursor name to be used.
26512 * @see elm_object_cursor_set() for more details.
26514 * @ingroup Diskselector
26516 EAPI void elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
26519 * Get the cursor to be shown when mouse is over the diskselector item
26521 * @param item diskselector item with cursor already set.
26522 * @return the cursor name.
26524 * @see elm_object_cursor_get() for more details.
26525 * @see elm_diskselector_cursor_set()
26527 * @ingroup Diskselector
26529 EAPI const char *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26533 * Unset the cursor to be shown when mouse is over the diskselector item
26535 * @param item Target item
26537 * @see elm_object_cursor_unset() for more details.
26538 * @see elm_diskselector_cursor_set()
26540 * @ingroup Diskselector
26542 EAPI void elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26545 * Sets a different style for this item cursor.
26547 * @note before you set a style you should define a cursor with
26548 * elm_diskselector_item_cursor_set()
26550 * @param item diskselector item with cursor already set.
26551 * @param style the theme style to use (default, transparent, ...)
26553 * @see elm_object_cursor_style_set() for more details.
26555 * @ingroup Diskselector
26557 EAPI void elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26561 * Get the style for this item cursor.
26563 * @param item diskselector item with cursor already set.
26564 * @return style the theme style in use, defaults to "default". If the
26565 * object does not have a cursor set, then @c NULL is returned.
26567 * @see elm_object_cursor_style_get() for more details.
26568 * @see elm_diskselector_item_cursor_style_set()
26570 * @ingroup Diskselector
26572 EAPI const char *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26576 * Set if the cursor set should be searched on the theme or should use
26577 * the provided by the engine, only.
26579 * @note before you set if should look on theme you should define a cursor
26580 * with elm_diskselector_item_cursor_set().
26581 * By default it will only look for cursors provided by the engine.
26583 * @param item widget item with cursor already set.
26584 * @param engine_only boolean to define if cursors set with
26585 * elm_diskselector_item_cursor_set() should be searched only
26586 * between cursors provided by the engine or searched on widget's
26589 * @see elm_object_cursor_engine_only_set() for more details.
26591 * @ingroup Diskselector
26593 EAPI void elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
26596 * Get the cursor engine only usage for this item cursor.
26598 * @param item widget item with cursor already set.
26599 * @return engine_only boolean to define it cursors should be looked only
26600 * between the provided by the engine or searched on widget's theme as well.
26601 * If the item does not have a cursor set, then @c EINA_FALSE is returned.
26603 * @see elm_object_cursor_engine_only_get() for more details.
26604 * @see elm_diskselector_item_cursor_engine_only_set()
26606 * @ingroup Diskselector
26608 EAPI Eina_Bool elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26615 * @defgroup Colorselector Colorselector
26619 * @image html img/widget/colorselector/preview-00.png
26620 * @image latex img/widget/colorselector/preview-00.eps
26622 * @brief Widget for user to select a color.
26624 * Signals that you can add callbacks for are:
26625 * "changed" - When the color value changes(event_info is NULL).
26627 * See @ref tutorial_colorselector.
26630 * @brief Add a new colorselector to the parent
26632 * @param parent The parent object
26633 * @return The new object or NULL if it cannot be created
26635 * @ingroup Colorselector
26637 EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26639 * Set a color for the colorselector
26641 * @param obj Colorselector object
26642 * @param r r-value of color
26643 * @param g g-value of color
26644 * @param b b-value of color
26645 * @param a a-value of color
26647 * @ingroup Colorselector
26649 EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
26651 * Get a color from the colorselector
26653 * @param obj Colorselector object
26654 * @param r integer pointer for r-value of color
26655 * @param g integer pointer for g-value of color
26656 * @param b integer pointer for b-value of color
26657 * @param a integer pointer for a-value of color
26659 * @ingroup Colorselector
26661 EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
26667 * @defgroup Ctxpopup Ctxpopup
26669 * @image html img/widget/ctxpopup/preview-00.png
26670 * @image latex img/widget/ctxpopup/preview-00.eps
26672 * @brief Context popup widet.
26674 * A ctxpopup is a widget that, when shown, pops up a list of items.
26675 * It automatically chooses an area inside its parent object's view
26676 * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
26677 * optimally fit into it. In the default theme, it will also point an
26678 * arrow to it's top left position at the time one shows it. Ctxpopup
26679 * items have a label and/or an icon. It is intended for a small
26680 * number of items (hence the use of list, not genlist).
26682 * @note Ctxpopup is a especialization of @ref Hover.
26684 * Signals that you can add callbacks for are:
26685 * "dismissed" - the ctxpopup was dismissed
26687 * Default contents parts of the ctxpopup widget that you can use for are:
26688 * @li "default" - A content of the ctxpopup
26690 * Default contents parts of the naviframe items that you can use for are:
26691 * @li "icon" - A icon in the title area
26693 * Default text parts of the naviframe items that you can use for are:
26694 * @li "default" - Title label in the title area
26696 * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
26699 typedef enum _Elm_Ctxpopup_Direction
26701 ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
26703 ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
26704 the clicked area */
26705 ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
26706 the clicked area */
26707 ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
26709 ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
26710 } Elm_Ctxpopup_Direction;
26713 * @brief Add a new Ctxpopup object to the parent.
26715 * @param parent Parent object
26716 * @return New object or @c NULL, if it cannot be created
26718 EAPI Evas_Object *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26720 * @brief Set the Ctxpopup's parent
26722 * @param obj The ctxpopup object
26723 * @param area The parent to use
26725 * Set the parent object.
26727 * @note elm_ctxpopup_add() will automatically call this function
26728 * with its @c parent argument.
26730 * @see elm_ctxpopup_add()
26731 * @see elm_hover_parent_set()
26733 EAPI void elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
26735 * @brief Get the Ctxpopup's parent
26737 * @param obj The ctxpopup object
26739 * @see elm_ctxpopup_hover_parent_set() for more information
26741 EAPI Evas_Object *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26743 * @brief Clear all items in the given ctxpopup object.
26745 * @param obj Ctxpopup object
26747 EAPI void elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26749 * @brief Change the ctxpopup's orientation to horizontal or vertical.
26751 * @param obj Ctxpopup object
26752 * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
26754 EAPI void elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
26756 * @brief Get the value of current ctxpopup object's orientation.
26758 * @param obj Ctxpopup object
26759 * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
26761 * @see elm_ctxpopup_horizontal_set()
26763 EAPI Eina_Bool elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26765 * @brief Add a new item to a ctxpopup object.
26767 * @param obj Ctxpopup object
26768 * @param icon Icon to be set on new item
26769 * @param label The Label of the new item
26770 * @param func Convenience function called when item selected
26771 * @param data Data passed to @p func
26772 * @return A handle to the item added or @c NULL, on errors
26774 * @warning Ctxpopup can't hold both an item list and a content at the same
26775 * time. When an item is added, any previous content will be removed.
26777 * @see elm_ctxpopup_content_set()
26779 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);
26781 * @brief Delete the given item in a ctxpopup object.
26783 * @param it Ctxpopup item to be deleted
26785 * @see elm_ctxpopup_item_append()
26787 EAPI void elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26789 * @brief Set the ctxpopup item's state as disabled or enabled.
26791 * @param it Ctxpopup item to be enabled/disabled
26792 * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
26794 * When disabled the item is greyed out to indicate it's state.
26795 * @deprecated use elm_object_item_disabled_set() instead
26797 EINA_DEPRECATED EAPI void elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
26799 * @brief Get the ctxpopup item's disabled/enabled state.
26801 * @param it Ctxpopup item to be enabled/disabled
26802 * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
26804 * @see elm_ctxpopup_item_disabled_set()
26805 * @deprecated use elm_object_item_disabled_get() instead
26807 EAPI Eina_Bool elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26809 * @brief Get the icon object for the given ctxpopup item.
26811 * @param it Ctxpopup item
26812 * @return icon object or @c NULL, if the item does not have icon or an error
26815 * @see elm_ctxpopup_item_append()
26816 * @see elm_ctxpopup_item_icon_set()
26818 * @deprecated use elm_object_item_part_content_get() instead
26820 EINA_DEPRECATED EAPI Evas_Object *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26822 * @brief Sets the side icon associated with the ctxpopup item
26824 * @param it Ctxpopup item
26825 * @param icon Icon object to be set
26827 * Once the icon object is set, a previously set one will be deleted.
26828 * @warning Setting the same icon for two items will cause the icon to
26829 * dissapear from the first item.
26831 * @see elm_ctxpopup_item_append()
26833 * @deprecated use elm_object_item_part_content_set() instead
26836 EINA_DEPRECATED EAPI void elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26838 * @brief Get the label for the given ctxpopup item.
26840 * @param it Ctxpopup item
26841 * @return label string or @c NULL, if the item does not have label or an
26844 * @see elm_ctxpopup_item_append()
26845 * @see elm_ctxpopup_item_label_set()
26847 * @deprecated use elm_object_item_text_get() instead
26849 EINA_DEPRECATED EAPI const char *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26851 * @brief (Re)set the label on the given ctxpopup item.
26853 * @param it Ctxpopup item
26854 * @param label String to set as label
26856 * @deprecated use elm_object_item_text_set() instead
26858 EINA_DEPRECATED EAPI void elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26860 * @brief Set an elm widget as the content of the ctxpopup.
26862 * @param obj Ctxpopup object
26863 * @param content Content to be swallowed
26865 * If the content object is already set, a previous one will bedeleted. If
26866 * you want to keep that old content object, use the
26867 * elm_ctxpopup_content_unset() function.
26869 * @warning Ctxpopup can't hold both a item list and a content at the same
26870 * time. When a content is set, any previous items will be removed.
26872 * @deprecated use elm_object_content_set() instead
26875 EINA_DEPRECATED EAPI void elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
26877 * @brief Unset the ctxpopup content
26879 * @param obj Ctxpopup object
26880 * @return The content that was being used
26882 * Unparent and return the content object which was set for this widget.
26884 * @deprecated use elm_object_content_unset()
26886 * @see elm_ctxpopup_content_set()
26888 * @deprecated use elm_object_content_unset() instead
26891 EINA_DEPRECATED EAPI Evas_Object *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
26893 * @brief Set the direction priority of a ctxpopup.
26895 * @param obj Ctxpopup object
26896 * @param first 1st priority of direction
26897 * @param second 2nd priority of direction
26898 * @param third 3th priority of direction
26899 * @param fourth 4th priority of direction
26901 * This functions gives a chance to user to set the priority of ctxpopup
26902 * showing direction. This doesn't guarantee the ctxpopup will appear in the
26903 * requested direction.
26905 * @see Elm_Ctxpopup_Direction
26907 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);
26909 * @brief Get the direction priority of a ctxpopup.
26911 * @param obj Ctxpopup object
26912 * @param first 1st priority of direction to be returned
26913 * @param second 2nd priority of direction to be returned
26914 * @param third 3th priority of direction to be returned
26915 * @param fourth 4th priority of direction to be returned
26917 * @see elm_ctxpopup_direction_priority_set() for more information.
26919 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);
26922 * @brief Get the current direction of a ctxpopup.
26924 * @param obj Ctxpopup object
26925 * @return current direction of a ctxpopup
26927 * @warning Once the ctxpopup showed up, the direction would be determined
26929 EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26938 * @defgroup Transit Transit
26939 * @ingroup Elementary
26941 * Transit is designed to apply various animated transition effects to @c
26942 * Evas_Object, such like translation, rotation, etc. For using these
26943 * effects, create an @ref Elm_Transit and add the desired transition effects.
26945 * Once the effects are added into transit, they will be automatically
26946 * managed (their callback will be called until the duration is ended, and
26947 * they will be deleted on completion).
26951 * Elm_Transit *trans = elm_transit_add();
26952 * elm_transit_object_add(trans, obj);
26953 * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
26954 * elm_transit_duration_set(transit, 1);
26955 * elm_transit_auto_reverse_set(transit, EINA_TRUE);
26956 * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
26957 * elm_transit_repeat_times_set(transit, 3);
26960 * Some transition effects are used to change the properties of objects. They
26962 * @li @ref elm_transit_effect_translation_add
26963 * @li @ref elm_transit_effect_color_add
26964 * @li @ref elm_transit_effect_rotation_add
26965 * @li @ref elm_transit_effect_wipe_add
26966 * @li @ref elm_transit_effect_zoom_add
26967 * @li @ref elm_transit_effect_resizing_add
26969 * Other transition effects are used to make one object disappear and another
26970 * object appear on its old place. These effects are:
26972 * @li @ref elm_transit_effect_flip_add
26973 * @li @ref elm_transit_effect_resizable_flip_add
26974 * @li @ref elm_transit_effect_fade_add
26975 * @li @ref elm_transit_effect_blend_add
26977 * It's also possible to make a transition chain with @ref
26978 * elm_transit_chain_transit_add.
26980 * @warning We strongly recommend to use elm_transit just when edje can not do
26981 * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
26982 * animations can be manipulated inside the theme.
26984 * List of examples:
26985 * @li @ref transit_example_01_explained
26986 * @li @ref transit_example_02_explained
26987 * @li @ref transit_example_03_c
26988 * @li @ref transit_example_04_c
26994 * @enum Elm_Transit_Tween_Mode
26996 * The type of acceleration used in the transition.
27000 ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
27001 ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
27002 over time, then decrease again
27004 ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
27006 ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
27008 } Elm_Transit_Tween_Mode;
27011 * @enum Elm_Transit_Effect_Flip_Axis
27013 * The axis where flip effect should be applied.
27017 ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
27018 ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
27019 } Elm_Transit_Effect_Flip_Axis;
27021 * @enum Elm_Transit_Effect_Wipe_Dir
27023 * The direction where the wipe effect should occur.
27027 ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
27028 ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
27029 ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
27030 ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
27031 } Elm_Transit_Effect_Wipe_Dir;
27032 /** @enum Elm_Transit_Effect_Wipe_Type
27034 * Whether the wipe effect should show or hide the object.
27038 ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
27040 ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
27042 } Elm_Transit_Effect_Wipe_Type;
27045 * @typedef Elm_Transit
27047 * The Transit created with elm_transit_add(). This type has the information
27048 * about the objects which the transition will be applied, and the
27049 * transition effects that will be used. It also contains info about
27050 * duration, number of repetitions, auto-reverse, etc.
27052 typedef struct _Elm_Transit Elm_Transit;
27053 typedef void Elm_Transit_Effect;
27055 * @typedef Elm_Transit_Effect_Transition_Cb
27057 * Transition callback called for this effect on each transition iteration.
27059 typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
27061 * Elm_Transit_Effect_End_Cb
27063 * Transition callback called for this effect when the transition is over.
27065 typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
27068 * Elm_Transit_Del_Cb
27070 * A callback called when the transit is deleted.
27072 typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
27077 * @note Is not necessary to delete the transit object, it will be deleted at
27078 * the end of its operation.
27079 * @note The transit will start playing when the program enter in the main loop, is not
27080 * necessary to give a start to the transit.
27082 * @return The transit object.
27086 EAPI Elm_Transit *elm_transit_add(void);
27089 * Stops the animation and delete the @p transit object.
27091 * Call this function if you wants to stop the animation before the duration
27092 * time. Make sure the @p transit object is still alive with
27093 * elm_transit_del_cb_set() function.
27094 * All added effects will be deleted, calling its repective data_free_cb
27095 * functions. The function setted by elm_transit_del_cb_set() will be called.
27097 * @see elm_transit_del_cb_set()
27099 * @param transit The transit object to be deleted.
27102 * @warning Just call this function if you are sure the transit is alive.
27104 EAPI void elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27107 * Add a new effect to the transit.
27109 * @note The cb function and the data are the key to the effect. If you try to
27110 * add an already added effect, nothing is done.
27111 * @note After the first addition of an effect in @p transit, if its
27112 * effect list become empty again, the @p transit will be killed by
27113 * elm_transit_del(transit) function.
27117 * Elm_Transit *transit = elm_transit_add();
27118 * elm_transit_effect_add(transit,
27119 * elm_transit_effect_blend_op,
27120 * elm_transit_effect_blend_context_new(),
27121 * elm_transit_effect_blend_context_free);
27124 * @param transit The transit object.
27125 * @param transition_cb The operation function. It is called when the
27126 * animation begins, it is the function that actually performs the animation.
27127 * It is called with the @p data, @p transit and the time progression of the
27128 * animation (a double value between 0.0 and 1.0).
27129 * @param effect The context data of the effect.
27130 * @param end_cb The function to free the context data, it will be called
27131 * at the end of the effect, it must finalize the animation and free the
27135 * @warning The transit free the context data at the and of the transition with
27136 * the data_free_cb function, do not use the context data in another transit.
27138 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);
27141 * Delete an added effect.
27143 * This function will remove the effect from the @p transit, calling the
27144 * data_free_cb to free the @p data.
27146 * @see elm_transit_effect_add()
27148 * @note If the effect is not found, nothing is done.
27149 * @note If the effect list become empty, this function will call
27150 * elm_transit_del(transit), that is, it will kill the @p transit.
27152 * @param transit The transit object.
27153 * @param transition_cb The operation function.
27154 * @param effect The context data of the effect.
27158 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);
27161 * Add new object to apply the effects.
27163 * @note After the first addition of an object in @p transit, if its
27164 * object list become empty again, the @p transit will be killed by
27165 * elm_transit_del(transit) function.
27166 * @note If the @p obj belongs to another transit, the @p obj will be
27167 * removed from it and it will only belong to the @p transit. If the old
27168 * transit stays without objects, it will die.
27169 * @note When you add an object into the @p transit, its state from
27170 * evas_object_pass_events_get(obj) is saved, and it is applied when the
27171 * transit ends, if you change this state whith evas_object_pass_events_set()
27172 * after add the object, this state will change again when @p transit stops to
27175 * @param transit The transit object.
27176 * @param obj Object to be animated.
27179 * @warning It is not allowed to add a new object after transit begins to go.
27181 EAPI void elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27184 * Removes an added object from the transit.
27186 * @note If the @p obj is not in the @p transit, nothing is done.
27187 * @note If the list become empty, this function will call
27188 * elm_transit_del(transit), that is, it will kill the @p transit.
27190 * @param transit The transit object.
27191 * @param obj Object to be removed from @p transit.
27194 * @warning It is not allowed to remove objects after transit begins to go.
27196 EAPI void elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27199 * Get the objects of the transit.
27201 * @param transit The transit object.
27202 * @return a Eina_List with the objects from the transit.
27206 EAPI const Eina_List *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27209 * Enable/disable keeping up the objects states.
27210 * If it is not kept, the objects states will be reset when transition ends.
27212 * @note @p transit can not be NULL.
27213 * @note One state includes geometry, color, map data.
27215 * @param transit The transit object.
27216 * @param state_keep Keeping or Non Keeping.
27220 EAPI void elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
27223 * Get a value whether the objects states will be reset or not.
27225 * @note @p transit can not be NULL
27227 * @see elm_transit_objects_final_state_keep_set()
27229 * @param transit The transit object.
27230 * @return EINA_TRUE means the states of the objects will be reset.
27231 * If @p transit is NULL, EINA_FALSE is returned
27235 EAPI Eina_Bool elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27238 * Set the event enabled when transit is operating.
27240 * If @p enabled is EINA_TRUE, the objects of the transit will receives
27241 * events from mouse and keyboard during the animation.
27242 * @note When you add an object with elm_transit_object_add(), its state from
27243 * evas_object_pass_events_get(obj) is saved, and it is applied when the
27244 * transit ends, if you change this state with evas_object_pass_events_set()
27245 * after adding the object, this state will change again when @p transit stops
27248 * @param transit The transit object.
27249 * @param enabled Events are received when enabled is @c EINA_TRUE, and
27250 * ignored otherwise.
27254 EAPI void elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
27257 * Get the value of event enabled status.
27259 * @see elm_transit_event_enabled_set()
27261 * @param transit The Transit object
27262 * @return EINA_TRUE, when event is enabled. If @p transit is NULL
27263 * EINA_FALSE is returned
27267 EAPI Eina_Bool elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27270 * Set the user-callback function when the transit is deleted.
27272 * @note Using this function twice will overwrite the first function setted.
27273 * @note the @p transit object will be deleted after call @p cb function.
27275 * @param transit The transit object.
27276 * @param cb Callback function pointer. This function will be called before
27277 * the deletion of the transit.
27278 * @param data Callback funtion user data. It is the @p op parameter.
27282 EAPI void elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
27285 * Set reverse effect automatically.
27287 * If auto reverse is setted, after running the effects with the progress
27288 * parameter from 0 to 1, it will call the effecs again with the progress
27289 * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
27290 * where the duration was setted with the function elm_transit_add and
27291 * the repeat with the function elm_transit_repeat_times_set().
27293 * @param transit The transit object.
27294 * @param reverse EINA_TRUE means the auto_reverse is on.
27298 EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
27301 * Get if the auto reverse is on.
27303 * @see elm_transit_auto_reverse_set()
27305 * @param transit The transit object.
27306 * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
27307 * EINA_FALSE is returned
27311 EAPI Eina_Bool elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27314 * Set the transit repeat count. Effect will be repeated by repeat count.
27316 * This function sets the number of repetition the transit will run after
27317 * the first one, that is, if @p repeat is 1, the transit will run 2 times.
27318 * If the @p repeat is a negative number, it will repeat infinite times.
27320 * @note If this function is called during the transit execution, the transit
27321 * will run @p repeat times, ignoring the times it already performed.
27323 * @param transit The transit object
27324 * @param repeat Repeat count
27328 EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
27331 * Get the transit repeat count.
27333 * @see elm_transit_repeat_times_set()
27335 * @param transit The Transit object.
27336 * @return The repeat count. If @p transit is NULL
27341 EAPI int elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27344 * Set the transit animation acceleration type.
27346 * This function sets the tween mode of the transit that can be:
27347 * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
27348 * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
27349 * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
27350 * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
27352 * @param transit The transit object.
27353 * @param tween_mode The tween type.
27357 EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
27360 * Get the transit animation acceleration type.
27362 * @note @p transit can not be NULL
27364 * @param transit The transit object.
27365 * @return The tween type. If @p transit is NULL
27366 * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
27370 EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27373 * Set the transit animation time
27375 * @note @p transit can not be NULL
27377 * @param transit The transit object.
27378 * @param duration The animation time.
27382 EAPI void elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
27385 * Get the transit animation time
27387 * @note @p transit can not be NULL
27389 * @param transit The transit object.
27391 * @return The transit animation time.
27395 EAPI double elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27398 * Starts the transition.
27399 * Once this API is called, the transit begins to measure the time.
27401 * @note @p transit can not be NULL
27403 * @param transit The transit object.
27407 EAPI void elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27410 * Pause/Resume the transition.
27412 * If you call elm_transit_go again, the transit will be started from the
27413 * beginning, and will be unpaused.
27415 * @note @p transit can not be NULL
27417 * @param transit The transit object.
27418 * @param paused Whether the transition should be paused or not.
27422 EAPI void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
27425 * Get the value of paused status.
27427 * @see elm_transit_paused_set()
27429 * @note @p transit can not be NULL
27431 * @param transit The transit object.
27432 * @return EINA_TRUE means transition is paused. If @p transit is NULL
27433 * EINA_FALSE is returned
27437 EAPI Eina_Bool elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27440 * Get the time progression of the animation (a double value between 0.0 and 1.0).
27442 * The value returned is a fraction (current time / total time). It
27443 * represents the progression position relative to the total.
27445 * @note @p transit can not be NULL
27447 * @param transit The transit object.
27449 * @return The time progression value. If @p transit is NULL
27454 EAPI double elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27457 * Makes the chain relationship between two transits.
27459 * @note @p transit can not be NULL. Transit would have multiple chain transits.
27460 * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
27462 * @param transit The transit object.
27463 * @param chain_transit The chain transit object. This transit will be operated
27464 * after transit is done.
27466 * This function adds @p chain_transit transition to a chain after the @p
27467 * transit, and will be started as soon as @p transit ends. See @ref
27468 * transit_example_02_explained for a full example.
27472 EAPI void elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
27475 * Cut off the chain relationship between two transits.
27477 * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
27478 * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
27480 * @param transit The transit object.
27481 * @param chain_transit The chain transit object.
27483 * This function remove the @p chain_transit transition from the @p transit.
27487 EAPI void elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
27490 * Get the current chain transit list.
27492 * @note @p transit can not be NULL.
27494 * @param transit The transit object.
27495 * @return chain transit list.
27499 EAPI Eina_List *elm_transit_chain_transits_get(const Elm_Transit *transit);
27502 * Add the Resizing Effect to Elm_Transit.
27504 * @note This API is one of the facades. It creates resizing effect context
27505 * and add it's required APIs to elm_transit_effect_add.
27507 * @see elm_transit_effect_add()
27509 * @param transit Transit object.
27510 * @param from_w Object width size when effect begins.
27511 * @param from_h Object height size when effect begins.
27512 * @param to_w Object width size when effect ends.
27513 * @param to_h Object height size when effect ends.
27514 * @return Resizing effect context data.
27518 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);
27521 * Add the Translation Effect to Elm_Transit.
27523 * @note This API is one of the facades. It creates translation effect context
27524 * and add it's required APIs to elm_transit_effect_add.
27526 * @see elm_transit_effect_add()
27528 * @param transit Transit object.
27529 * @param from_dx X Position variation when effect begins.
27530 * @param from_dy Y Position variation when effect begins.
27531 * @param to_dx X Position variation when effect ends.
27532 * @param to_dy Y Position variation when effect ends.
27533 * @return Translation effect context data.
27536 * @warning It is highly recommended just create a transit with this effect when
27537 * the window that the objects of the transit belongs has already been created.
27538 * This is because this effect needs the geometry information about the objects,
27539 * and if the window was not created yet, it can get a wrong information.
27541 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);
27544 * Add the Zoom Effect to Elm_Transit.
27546 * @note This API is one of the facades. It creates zoom effect context
27547 * and add it's required APIs to elm_transit_effect_add.
27549 * @see elm_transit_effect_add()
27551 * @param transit Transit object.
27552 * @param from_rate Scale rate when effect begins (1 is current rate).
27553 * @param to_rate Scale rate when effect ends.
27554 * @return Zoom effect context data.
27557 * @warning It is highly recommended just create a transit with this effect when
27558 * the window that the objects of the transit belongs has already been created.
27559 * This is because this effect needs the geometry information about the objects,
27560 * and if the window was not created yet, it can get a wrong information.
27562 EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
27565 * Add the Flip Effect to Elm_Transit.
27567 * @note This API is one of the facades. It creates flip effect context
27568 * and add it's required APIs to elm_transit_effect_add.
27569 * @note This effect is applied to each pair of objects in the order they are listed
27570 * in the transit list of objects. The first object in the pair will be the
27571 * "front" object and the second will be the "back" object.
27573 * @see elm_transit_effect_add()
27575 * @param transit Transit object.
27576 * @param axis Flipping Axis(X or Y).
27577 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27578 * @return Flip effect context data.
27581 * @warning It is highly recommended just create a transit with this effect when
27582 * the window that the objects of the transit belongs has already been created.
27583 * This is because this effect needs the geometry information about the objects,
27584 * and if the window was not created yet, it can get a wrong information.
27586 EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27589 * Add the Resizable Flip Effect to Elm_Transit.
27591 * @note This API is one of the facades. It creates resizable flip effect context
27592 * and add it's required APIs to elm_transit_effect_add.
27593 * @note This effect is applied to each pair of objects in the order they are listed
27594 * in the transit list of objects. The first object in the pair will be the
27595 * "front" object and the second will be the "back" object.
27597 * @see elm_transit_effect_add()
27599 * @param transit Transit object.
27600 * @param axis Flipping Axis(X or Y).
27601 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27602 * @return Resizable flip effect context data.
27605 * @warning It is highly recommended just create a transit with this effect when
27606 * the window that the objects of the transit belongs has already been created.
27607 * This is because this effect needs the geometry information about the objects,
27608 * and if the window was not created yet, it can get a wrong information.
27610 EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27613 * Add the Wipe Effect to Elm_Transit.
27615 * @note This API is one of the facades. It creates wipe effect context
27616 * and add it's required APIs to elm_transit_effect_add.
27618 * @see elm_transit_effect_add()
27620 * @param transit Transit object.
27621 * @param type Wipe type. Hide or show.
27622 * @param dir Wipe Direction.
27623 * @return Wipe effect context data.
27626 * @warning It is highly recommended just create a transit with this effect when
27627 * the window that the objects of the transit belongs has already been created.
27628 * This is because this effect needs the geometry information about the objects,
27629 * and if the window was not created yet, it can get a wrong information.
27631 EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
27634 * Add the Color Effect to Elm_Transit.
27636 * @note This API is one of the facades. It creates color effect context
27637 * and add it's required APIs to elm_transit_effect_add.
27639 * @see elm_transit_effect_add()
27641 * @param transit Transit object.
27642 * @param from_r RGB R when effect begins.
27643 * @param from_g RGB G when effect begins.
27644 * @param from_b RGB B when effect begins.
27645 * @param from_a RGB A when effect begins.
27646 * @param to_r RGB R when effect ends.
27647 * @param to_g RGB G when effect ends.
27648 * @param to_b RGB B when effect ends.
27649 * @param to_a RGB A when effect ends.
27650 * @return Color effect context data.
27654 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);
27657 * Add the Fade Effect to Elm_Transit.
27659 * @note This API is one of the facades. It creates fade effect context
27660 * and add it's required APIs to elm_transit_effect_add.
27661 * @note This effect is applied to each pair of objects in the order they are listed
27662 * in the transit list of objects. The first object in the pair will be the
27663 * "before" object and the second will be the "after" object.
27665 * @see elm_transit_effect_add()
27667 * @param transit Transit object.
27668 * @return Fade effect context data.
27671 * @warning It is highly recommended just create a transit with this effect when
27672 * the window that the objects of the transit belongs has already been created.
27673 * This is because this effect needs the color information about the objects,
27674 * and if the window was not created yet, it can get a wrong information.
27676 EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
27679 * Add the Blend Effect to Elm_Transit.
27681 * @note This API is one of the facades. It creates blend effect context
27682 * and add it's required APIs to elm_transit_effect_add.
27683 * @note This effect is applied to each pair of objects in the order they are listed
27684 * in the transit list of objects. The first object in the pair will be the
27685 * "before" object and the second will be the "after" object.
27687 * @see elm_transit_effect_add()
27689 * @param transit Transit object.
27690 * @return Blend effect context data.
27693 * @warning It is highly recommended just create a transit with this effect when
27694 * the window that the objects of the transit belongs has already been created.
27695 * This is because this effect needs the color information about the objects,
27696 * and if the window was not created yet, it can get a wrong information.
27698 EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
27701 * Add the Rotation Effect to Elm_Transit.
27703 * @note This API is one of the facades. It creates rotation effect context
27704 * and add it's required APIs to elm_transit_effect_add.
27706 * @see elm_transit_effect_add()
27708 * @param transit Transit object.
27709 * @param from_degree Degree when effect begins.
27710 * @param to_degree Degree when effect is ends.
27711 * @return Rotation effect context data.
27714 * @warning It is highly recommended just create a transit with this effect when
27715 * the window that the objects of the transit belongs has already been created.
27716 * This is because this effect needs the geometry information about the objects,
27717 * and if the window was not created yet, it can get a wrong information.
27719 EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
27722 * Add the ImageAnimation Effect to Elm_Transit.
27724 * @note This API is one of the facades. It creates image animation effect context
27725 * and add it's required APIs to elm_transit_effect_add.
27726 * The @p images parameter is a list images paths. This list and
27727 * its contents will be deleted at the end of the effect by
27728 * elm_transit_effect_image_animation_context_free() function.
27732 * char buf[PATH_MAX];
27733 * Eina_List *images = NULL;
27734 * Elm_Transit *transi = elm_transit_add();
27736 * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
27737 * images = eina_list_append(images, eina_stringshare_add(buf));
27739 * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
27740 * images = eina_list_append(images, eina_stringshare_add(buf));
27741 * elm_transit_effect_image_animation_add(transi, images);
27745 * @see elm_transit_effect_add()
27747 * @param transit Transit object.
27748 * @param images Eina_List of images file paths. This list and
27749 * its contents will be deleted at the end of the effect by
27750 * elm_transit_effect_image_animation_context_free() function.
27751 * @return Image Animation effect context data.
27755 EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
27760 typedef struct _Elm_Store Elm_Store;
27761 typedef struct _Elm_Store_Filesystem Elm_Store_Filesystem;
27762 typedef struct _Elm_Store_Item Elm_Store_Item;
27763 typedef struct _Elm_Store_Item_Filesystem Elm_Store_Item_Filesystem;
27764 typedef struct _Elm_Store_Item_Info Elm_Store_Item_Info;
27765 typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
27766 typedef struct _Elm_Store_Item_Mapping Elm_Store_Item_Mapping;
27767 typedef struct _Elm_Store_Item_Mapping_Empty Elm_Store_Item_Mapping_Empty;
27768 typedef struct _Elm_Store_Item_Mapping_Icon Elm_Store_Item_Mapping_Icon;
27769 typedef struct _Elm_Store_Item_Mapping_Photo Elm_Store_Item_Mapping_Photo;
27770 typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom;
27772 typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
27773 typedef void (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
27774 typedef void (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
27775 typedef void *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
27779 ELM_STORE_ITEM_MAPPING_NONE = 0,
27780 ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
27781 ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
27782 ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
27783 ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
27784 ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
27785 // can add more here as needed by common apps
27786 ELM_STORE_ITEM_MAPPING_LAST
27787 } Elm_Store_Item_Mapping_Type;
27789 struct _Elm_Store_Item_Mapping_Icon
27791 // FIXME: allow edje file icons
27793 Elm_Icon_Lookup_Order lookup_order;
27794 Eina_Bool standard_name : 1;
27795 Eina_Bool no_scale : 1;
27796 Eina_Bool smooth : 1;
27797 Eina_Bool scale_up : 1;
27798 Eina_Bool scale_down : 1;
27801 struct _Elm_Store_Item_Mapping_Empty
27806 struct _Elm_Store_Item_Mapping_Photo
27811 struct _Elm_Store_Item_Mapping_Custom
27813 Elm_Store_Item_Mapping_Cb func;
27816 struct _Elm_Store_Item_Mapping
27818 Elm_Store_Item_Mapping_Type type;
27823 Elm_Store_Item_Mapping_Empty empty;
27824 Elm_Store_Item_Mapping_Icon icon;
27825 Elm_Store_Item_Mapping_Photo photo;
27826 Elm_Store_Item_Mapping_Custom custom;
27827 // add more types here
27831 struct _Elm_Store_Item_Info
27833 Elm_Genlist_Item_Class *item_class;
27834 const Elm_Store_Item_Mapping *mapping;
27839 struct _Elm_Store_Item_Info_Filesystem
27841 Elm_Store_Item_Info base;
27845 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
27846 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
27848 EAPI void elm_store_free(Elm_Store *st);
27850 EAPI Elm_Store *elm_store_filesystem_new(void);
27851 EAPI void elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
27852 EAPI const char *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27853 EAPI const char *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27855 EAPI void elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
27857 EAPI void elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
27858 EAPI int elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27859 EAPI void elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27860 EAPI void elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27861 EAPI void elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
27862 EAPI Eina_Bool elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27864 EAPI void elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27865 EAPI void elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
27866 EAPI Eina_Bool elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27867 EAPI void elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
27868 EAPI void *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27869 EAPI const Elm_Store *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27870 EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27873 * @defgroup SegmentControl SegmentControl
27874 * @ingroup Elementary
27876 * @image html img/widget/segment_control/preview-00.png
27877 * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
27879 * @image html img/segment_control.png
27880 * @image latex img/segment_control.eps width=\textwidth
27882 * Segment control widget is a horizontal control made of multiple segment
27883 * items, each segment item functioning similar to discrete two state button.
27884 * A segment control groups the items together and provides compact
27885 * single button with multiple equal size segments.
27887 * Segment item size is determined by base widget
27888 * size and the number of items added.
27889 * Only one segment item can be at selected state. A segment item can display
27890 * combination of Text and any Evas_Object like Images or other widget.
27892 * Smart callbacks one can listen to:
27893 * - "changed" - When the user clicks on a segment item which is not
27894 * previously selected and get selected. The event_info parameter is the
27895 * segment item pointer.
27897 * Available styles for it:
27900 * Here is an example on its usage:
27901 * @li @ref segment_control_example
27905 * @addtogroup SegmentControl
27909 typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
27912 * Add a new segment control widget to the given parent Elementary
27913 * (container) object.
27915 * @param parent The parent object.
27916 * @return a new segment control widget handle or @c NULL, on errors.
27918 * This function inserts a new segment control widget on the canvas.
27920 * @ingroup SegmentControl
27922 EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27925 * Append a new item to the segment control object.
27927 * @param obj The segment control object.
27928 * @param icon The icon object to use for the left side of the item. An
27929 * icon can be any Evas object, but usually it is an icon created
27930 * with elm_icon_add().
27931 * @param label The label of the item.
27932 * Note that, NULL is different from empty string "".
27933 * @return The created item or @c NULL upon failure.
27935 * A new item will be created and appended to the segment control, i.e., will
27936 * be set as @b last item.
27938 * If it should be inserted at another position,
27939 * elm_segment_control_item_insert_at() should be used instead.
27941 * Items created with this function can be deleted with function
27942 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27944 * @note @p label set to @c NULL is different from empty string "".
27946 * only has icon, it will be displayed bigger and centered. If it has
27947 * icon and label, even that an empty string, icon will be smaller and
27948 * positioned at left.
27952 * sc = elm_segment_control_add(win);
27953 * ic = elm_icon_add(win);
27954 * elm_icon_file_set(ic, "path/to/image", NULL);
27955 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
27956 * elm_segment_control_item_add(sc, ic, "label");
27957 * evas_object_show(sc);
27960 * @see elm_segment_control_item_insert_at()
27961 * @see elm_segment_control_item_del()
27963 * @ingroup SegmentControl
27965 EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
27968 * Insert a new item to the segment control object at specified position.
27970 * @param obj The segment control object.
27971 * @param icon The icon object to use for the left side of the item. An
27972 * icon can be any Evas object, but usually it is an icon created
27973 * with elm_icon_add().
27974 * @param label The label of the item.
27975 * @param index Item position. Value should be between 0 and items count.
27976 * @return The created item or @c NULL upon failure.
27978 * Index values must be between @c 0, when item will be prepended to
27979 * segment control, and items count, that can be get with
27980 * elm_segment_control_item_count_get(), case when item will be appended
27981 * to segment control, just like elm_segment_control_item_add().
27983 * Items created with this function can be deleted with function
27984 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27986 * @note @p label set to @c NULL is different from empty string "".
27988 * only has icon, it will be displayed bigger and centered. If it has
27989 * icon and label, even that an empty string, icon will be smaller and
27990 * positioned at left.
27992 * @see elm_segment_control_item_add()
27993 * @see elm_segment_control_item_count_get()
27994 * @see elm_segment_control_item_del()
27996 * @ingroup SegmentControl
27998 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);
28001 * Remove a segment control item from its parent, deleting it.
28003 * @param it The item to be removed.
28005 * Items can be added with elm_segment_control_item_add() or
28006 * elm_segment_control_item_insert_at().
28008 * @ingroup SegmentControl
28010 EAPI void elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28013 * Remove a segment control item at given index from its parent,
28016 * @param obj The segment control object.
28017 * @param index The position of the segment control item to be deleted.
28019 * Items can be added with elm_segment_control_item_add() or
28020 * elm_segment_control_item_insert_at().
28022 * @ingroup SegmentControl
28024 EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28027 * Get the Segment items count from segment control.
28029 * @param obj The segment control object.
28030 * @return Segment items count.
28032 * It will just return the number of items added to segment control @p obj.
28034 * @ingroup SegmentControl
28036 EAPI int elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28039 * Get the item placed at specified index.
28041 * @param obj The segment control object.
28042 * @param index The index of the segment item.
28043 * @return The segment control item or @c NULL on failure.
28045 * Index is the position of an item in segment control widget. Its
28046 * range is from @c 0 to <tt> count - 1 </tt>.
28047 * Count is the number of items, that can be get with
28048 * elm_segment_control_item_count_get().
28050 * @ingroup SegmentControl
28052 EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28055 * Get the label of item.
28057 * @param obj The segment control object.
28058 * @param index The index of the segment item.
28059 * @return The label of the item at @p index.
28061 * The return value is a pointer to the label associated to the item when
28062 * it was created, with function elm_segment_control_item_add(), or later
28063 * with function elm_segment_control_item_label_set. If no label
28064 * was passed as argument, it will return @c NULL.
28066 * @see elm_segment_control_item_label_set() for more details.
28067 * @see elm_segment_control_item_add()
28069 * @ingroup SegmentControl
28071 EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28074 * Set the label of item.
28076 * @param it The item of segment control.
28077 * @param text The label of item.
28079 * The label to be displayed by the item.
28080 * Label will be at right of the icon (if set).
28082 * If a label was passed as argument on item creation, with function
28083 * elm_control_segment_item_add(), it will be already
28084 * displayed by the item.
28086 * @see elm_segment_control_item_label_get()
28087 * @see elm_segment_control_item_add()
28089 * @ingroup SegmentControl
28091 EAPI void elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
28094 * Get the icon associated to the item.
28096 * @param obj The segment control object.
28097 * @param index The index of the segment item.
28098 * @return The left side icon associated to the item at @p index.
28100 * The return value is a pointer to the icon associated to the item when
28101 * it was created, with function elm_segment_control_item_add(), or later
28102 * with function elm_segment_control_item_icon_set(). If no icon
28103 * was passed as argument, it will return @c NULL.
28105 * @see elm_segment_control_item_add()
28106 * @see elm_segment_control_item_icon_set()
28108 * @ingroup SegmentControl
28110 EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28113 * Set the icon associated to the item.
28115 * @param it The segment control item.
28116 * @param icon The icon object to associate with @p it.
28118 * The icon object to use at left side of the item. An
28119 * icon can be any Evas object, but usually it is an icon created
28120 * with elm_icon_add().
28122 * Once the icon object is set, a previously set one will be deleted.
28123 * @warning Setting the same icon for two items will cause the icon to
28124 * dissapear from the first item.
28126 * If an icon was passed as argument on item creation, with function
28127 * elm_segment_control_item_add(), it will be already
28128 * associated to the item.
28130 * @see elm_segment_control_item_add()
28131 * @see elm_segment_control_item_icon_get()
28133 * @ingroup SegmentControl
28135 EAPI void elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
28138 * Get the index of an item.
28140 * @param it The segment control item.
28141 * @return The position of item in segment control widget.
28143 * Index is the position of an item in segment control widget. Its
28144 * range is from @c 0 to <tt> count - 1 </tt>.
28145 * Count is the number of items, that can be get with
28146 * elm_segment_control_item_count_get().
28148 * @ingroup SegmentControl
28150 EAPI int elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28153 * Get the base object of the item.
28155 * @param it The segment control item.
28156 * @return The base object associated with @p it.
28158 * Base object is the @c Evas_Object that represents that item.
28160 * @ingroup SegmentControl
28162 EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28165 * Get the selected item.
28167 * @param obj The segment control object.
28168 * @return The selected item or @c NULL if none of segment items is
28171 * The selected item can be unselected with function
28172 * elm_segment_control_item_selected_set().
28174 * The selected item always will be highlighted on segment control.
28176 * @ingroup SegmentControl
28178 EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28181 * Set the selected state of an item.
28183 * @param it The segment control item
28184 * @param select The selected state
28186 * This sets the selected state of the given item @p it.
28187 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
28189 * If a new item is selected the previosly selected will be unselected.
28190 * Previoulsy selected item can be get with function
28191 * elm_segment_control_item_selected_get().
28193 * The selected item always will be highlighted on segment control.
28195 * @see elm_segment_control_item_selected_get()
28197 * @ingroup SegmentControl
28199 EAPI void elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
28206 * @defgroup Grid Grid
28208 * The grid is a grid layout widget that lays out a series of children as a
28209 * fixed "grid" of widgets using a given percentage of the grid width and
28210 * height each using the child object.
28212 * The Grid uses a "Virtual resolution" that is stretched to fill the grid
28213 * widgets size itself. The default is 100 x 100, so that means the
28214 * position and sizes of children will effectively be percentages (0 to 100)
28215 * of the width or height of the grid widget
28221 * Add a new grid to the parent
28223 * @param parent The parent object
28224 * @return The new object or NULL if it cannot be created
28228 EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
28231 * Set the virtual size of the grid
28233 * @param obj The grid object
28234 * @param w The virtual width of the grid
28235 * @param h The virtual height of the grid
28239 EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h);
28242 * Get the virtual size of the grid
28244 * @param obj The grid object
28245 * @param w Pointer to integer to store the virtual width of the grid
28246 * @param h Pointer to integer to store the virtual height of the grid
28250 EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h);
28253 * Pack child at given position and size
28255 * @param obj The grid object
28256 * @param subobj The child to pack
28257 * @param x The virtual x coord at which to pack it
28258 * @param y The virtual y coord at which to pack it
28259 * @param w The virtual width at which to pack it
28260 * @param h The virtual height at which to pack it
28264 EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
28267 * Unpack a child from a grid object
28269 * @param obj The grid object
28270 * @param subobj The child to unpack
28274 EAPI void elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
28277 * Faster way to remove all child objects from a grid object.
28279 * @param obj The grid object
28280 * @param clear If true, it will delete just removed children
28284 EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
28287 * Set packing of an existing child at to position and size
28289 * @param subobj The child to set packing of
28290 * @param x The virtual x coord at which to pack it
28291 * @param y The virtual y coord at which to pack it
28292 * @param w The virtual width at which to pack it
28293 * @param h The virtual height at which to pack it
28297 EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
28300 * get packing of a child
28302 * @param subobj The child to query
28303 * @param x Pointer to integer to store the virtual x coord
28304 * @param y Pointer to integer to store the virtual y coord
28305 * @param w Pointer to integer to store the virtual width
28306 * @param h Pointer to integer to store the virtual height
28310 EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
28316 EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
28317 EINA_DEPRECATED EAPI void elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
28318 EINA_DEPRECATED EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
28319 EAPI void elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
28320 EAPI Eina_Bool elm_factory_maxmin_mode_get(const Evas_Object *obj);
28321 EAPI void elm_factory_maxmin_reset_set(Evas_Object *obj);
28324 * @defgroup Video Video
28326 * @addtogroup Video
28329 * Elementary comes with two object that help design application that need
28330 * to display video. The main one, Elm_Video, display a video by using Emotion.
28331 * It does embedded the video inside an Edje object, so you can do some
28332 * animation depending on the video state change. It does also implement a
28333 * ressource management policy to remove this burden from the application writer.
28335 * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
28336 * It take care of updating its content according to Emotion event and provide a
28337 * way to theme itself. It also does automatically raise the priority of the
28338 * linked Elm_Video so it will use the video decoder if available. It also does
28339 * activate the remember function on the linked Elm_Video object.
28341 * Signals that you can add callback for are :
28343 * "forward,clicked" - the user clicked the forward button.
28344 * "info,clicked" - the user clicked the info button.
28345 * "next,clicked" - the user clicked the next button.
28346 * "pause,clicked" - the user clicked the pause button.
28347 * "play,clicked" - the user clicked the play button.
28348 * "prev,clicked" - the user clicked the prev button.
28349 * "rewind,clicked" - the user clicked the rewind button.
28350 * "stop,clicked" - the user clicked the stop button.
28352 * Default contents parts of the player widget that you can use for are:
28353 * @li "video" - A video of the player
28358 * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
28360 * @param parent The parent object
28361 * @return a new player widget handle or @c NULL, on errors.
28363 * This function inserts a new player widget on the canvas.
28365 * @see elm_object_part_content_set()
28369 EAPI Evas_Object *elm_player_add(Evas_Object *parent);
28372 * @brief Link a Elm_Payer with an Elm_Video object.
28374 * @param player the Elm_Player object.
28375 * @param video The Elm_Video object.
28377 * This mean that action on the player widget will affect the
28378 * video object and the state of the video will be reflected in
28379 * the player itself.
28381 * @see elm_player_add()
28382 * @see elm_video_add()
28383 * @deprecated use elm_object_part_content_set() instead
28387 EINA_DEPRECATED EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
28390 * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
28392 * @param parent The parent object
28393 * @return a new video widget handle or @c NULL, on errors.
28395 * This function inserts a new video widget on the canvas.
28397 * @seeelm_video_file_set()
28398 * @see elm_video_uri_set()
28402 EAPI Evas_Object *elm_video_add(Evas_Object *parent);
28405 * @brief Define the file that will be the video source.
28407 * @param video The video object to define the file for.
28408 * @param filename The file to target.
28410 * This function will explicitly define a filename as a source
28411 * for the video of the Elm_Video object.
28413 * @see elm_video_uri_set()
28414 * @see elm_video_add()
28415 * @see elm_player_add()
28419 EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
28422 * @brief Define the uri that will be the video source.
28424 * @param video The video object to define the file for.
28425 * @param uri The uri to target.
28427 * This function will define an uri as a source for the video of the
28428 * Elm_Video object. URI could be remote source of video, like http:// or local source
28429 * like for example WebCam who are most of the time v4l2:// (but that depend and
28430 * you should use Emotion API to request and list the available Webcam on your system).
28432 * @see elm_video_file_set()
28433 * @see elm_video_add()
28434 * @see elm_player_add()
28438 EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
28441 * @brief Get the underlying Emotion object.
28443 * @param video The video object to proceed the request on.
28444 * @return the underlying Emotion object.
28448 EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
28451 * @brief Start to play the video
28453 * @param video The video object to proceed the request on.
28455 * Start to play the video and cancel all suspend state.
28459 EAPI void elm_video_play(Evas_Object *video);
28462 * @brief Pause the video
28464 * @param video The video object to proceed the request on.
28466 * Pause the video and start a timer to trigger suspend mode.
28470 EAPI void elm_video_pause(Evas_Object *video);
28473 * @brief Stop the video
28475 * @param video The video object to proceed the request on.
28477 * Stop the video and put the emotion in deep sleep mode.
28481 EAPI void elm_video_stop(Evas_Object *video);
28484 * @brief Is the video actually playing.
28486 * @param video The video object to proceed the request on.
28487 * @return EINA_TRUE if the video is actually playing.
28489 * You should consider watching event on the object instead of polling
28490 * the object state.
28494 EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
28497 * @brief Is it possible to seek inside the video.
28499 * @param video The video object to proceed the request on.
28500 * @return EINA_TRUE if is possible to seek inside the video.
28504 EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
28507 * @brief Is the audio muted.
28509 * @param video The video object to proceed the request on.
28510 * @return EINA_TRUE if the audio is muted.
28514 EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
28517 * @brief Change the mute state of the Elm_Video object.
28519 * @param video The video object to proceed the request on.
28520 * @param mute The new mute state.
28524 EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
28527 * @brief Get the audio level of the current video.
28529 * @param video The video object to proceed the request on.
28530 * @return the current audio level.
28534 EAPI double elm_video_audio_level_get(const Evas_Object *video);
28537 * @brief Set the audio level of anElm_Video object.
28539 * @param video The video object to proceed the request on.
28540 * @param volume The new audio volume.
28544 EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
28546 EAPI double elm_video_play_position_get(const Evas_Object *video);
28547 EAPI void elm_video_play_position_set(Evas_Object *video, double position);
28548 EAPI double elm_video_play_length_get(const Evas_Object *video);
28549 EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
28550 EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
28551 EAPI const char *elm_video_title_get(const Evas_Object *video);
28557 * @defgroup Naviframe Naviframe
28558 * @ingroup Elementary
28560 * @brief Naviframe is a kind of view manager for the applications.
28562 * Naviframe provides functions to switch different pages with stack
28563 * mechanism. It means if one page(item) needs to be changed to the new one,
28564 * then naviframe would push the new page to it's internal stack. Of course,
28565 * it can be back to the previous page by popping the top page. Naviframe
28566 * provides some transition effect while the pages are switching (same as
28569 * Since each item could keep the different styles, users could keep the
28570 * same look & feel for the pages or different styles for the items in it's
28573 * Signals that you can add callback for are:
28574 * @li "transition,finished" - When the transition is finished in changing
28576 * @li "title,clicked" - User clicked title area
28578 * Default contents parts of the naviframe items that you can use for are:
28579 * @li "default" - A main content of the page
28580 * @li "icon" - A icon in the title area
28581 * @li "prev_btn" - A button to go to the previous page
28582 * @li "next_btn" - A button to go to the next page
28584 * Default text parts of the naviframe items that you can use for are:
28585 * @li "default" - Title label in the title area
28586 * @li "subtitle" - Sub-title label in the title area
28588 * @ref tutorial_naviframe gives a good overview of the usage of the API.
28592 * @addtogroup Naviframe
28597 * @brief Add a new Naviframe object to the parent.
28599 * @param parent Parent object
28600 * @return New object or @c NULL, if it cannot be created
28602 * @ingroup Naviframe
28604 EAPI Evas_Object *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28606 * @brief Push a new item to the top of the naviframe stack (and show it).
28608 * @param obj The naviframe object
28609 * @param title_label The label in the title area. The name of the title
28610 * label part is "elm.text.title"
28611 * @param prev_btn The button to go to the previous item. If it is NULL,
28612 * then naviframe will create a back button automatically. The name of
28613 * the prev_btn part is "elm.swallow.prev_btn"
28614 * @param next_btn The button to go to the next item. Or It could be just an
28615 * extra function button. The name of the next_btn part is
28616 * "elm.swallow.next_btn"
28617 * @param content The main content object. The name of content part is
28618 * "elm.swallow.content"
28619 * @param item_style The current item style name. @c NULL would be default.
28620 * @return The created item or @c NULL upon failure.
28622 * The item pushed becomes one page of the naviframe, this item will be
28623 * deleted when it is popped.
28625 * @see also elm_naviframe_item_style_set()
28626 * @see also elm_naviframe_item_insert_before()
28627 * @see also elm_naviframe_item_insert_after()
28629 * The following styles are available for this item:
28632 * @ingroup Naviframe
28634 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);
28636 * @brief Insert a new item into the naviframe before item @p before.
28638 * @param before The naviframe item to insert before.
28639 * @param title_label The label in the title area. The name of the title
28640 * label part is "elm.text.title"
28641 * @param prev_btn The button to go to the previous item. If it is NULL,
28642 * then naviframe will create a back button automatically. The name of
28643 * the prev_btn part is "elm.swallow.prev_btn"
28644 * @param next_btn The button to go to the next item. Or It could be just an
28645 * extra function button. The name of the next_btn part is
28646 * "elm.swallow.next_btn"
28647 * @param content The main content object. The name of content part is
28648 * "elm.swallow.content"
28649 * @param item_style The current item style name. @c NULL would be default.
28650 * @return The created item or @c NULL upon failure.
28652 * The item is inserted into the naviframe straight away without any
28653 * transition operations. This item will be deleted when it is popped.
28655 * @see also elm_naviframe_item_style_set()
28656 * @see also elm_naviframe_item_push()
28657 * @see also elm_naviframe_item_insert_after()
28659 * The following styles are available for this item:
28662 * @ingroup Naviframe
28664 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);
28666 * @brief Insert a new item into the naviframe after item @p after.
28668 * @param after The naviframe item to insert after.
28669 * @param title_label The label in the title area. The name of the title
28670 * label part is "elm.text.title"
28671 * @param prev_btn The button to go to the previous item. If it is NULL,
28672 * then naviframe will create a back button automatically. The name of
28673 * the prev_btn part is "elm.swallow.prev_btn"
28674 * @param next_btn The button to go to the next item. Or It could be just an
28675 * extra function button. The name of the next_btn part is
28676 * "elm.swallow.next_btn"
28677 * @param content The main content object. The name of content part is
28678 * "elm.swallow.content"
28679 * @param item_style The current item style name. @c NULL would be default.
28680 * @return The created item or @c NULL upon failure.
28682 * The item is inserted into the naviframe straight away without any
28683 * transition operations. This item will be deleted when it is popped.
28685 * @see also elm_naviframe_item_style_set()
28686 * @see also elm_naviframe_item_push()
28687 * @see also elm_naviframe_item_insert_before()
28689 * The following styles are available for this item:
28692 * @ingroup Naviframe
28694 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);
28696 * @brief Pop an item that is on top of the stack
28698 * @param obj The naviframe object
28699 * @return @c NULL or the content object(if the
28700 * elm_naviframe_content_preserve_on_pop_get is true).
28702 * This pops an item that is on the top(visible) of the naviframe, makes it
28703 * disappear, then deletes the item. The item that was underneath it on the
28704 * stack will become visible.
28706 * @see also elm_naviframe_content_preserve_on_pop_get()
28708 * @ingroup Naviframe
28710 EAPI Evas_Object *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
28712 * @brief Pop the items between the top and the above one on the given item.
28714 * @param it The naviframe item
28716 * @ingroup Naviframe
28718 EAPI void elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28720 * Promote an item already in the naviframe stack to the top of the stack
28722 * @param it The naviframe item
28724 * This will take the indicated item and promote it to the top of the stack
28725 * as if it had been pushed there. The item must already be inside the
28726 * naviframe stack to work.
28729 EAPI void elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28731 * @brief Delete the given item instantly.
28733 * @param it The naviframe item
28735 * This just deletes the given item from the naviframe item list instantly.
28736 * So this would not emit any signals for view transitions but just change
28737 * the current view if the given item is a top one.
28739 * @ingroup Naviframe
28741 EAPI void elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28743 * @brief preserve the content objects when items are popped.
28745 * @param obj The naviframe object
28746 * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
28748 * @see also elm_naviframe_content_preserve_on_pop_get()
28750 * @ingroup Naviframe
28752 EAPI void elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
28754 * @brief Get a value whether preserve mode is enabled or not.
28756 * @param obj The naviframe object
28757 * @return If @c EINA_TRUE, preserve mode is enabled
28759 * @see also elm_naviframe_content_preserve_on_pop_set()
28761 * @ingroup Naviframe
28763 EAPI Eina_Bool elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28765 * @brief Get a top item on the naviframe stack
28767 * @param obj The naviframe object
28768 * @return The top item on the naviframe stack or @c NULL, if the stack is
28771 * @ingroup Naviframe
28773 EAPI Elm_Object_Item *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28775 * @brief Get a bottom item on the naviframe stack
28777 * @param obj The naviframe object
28778 * @return The bottom item on the naviframe stack or @c NULL, if the stack is
28781 * @ingroup Naviframe
28783 EAPI Elm_Object_Item *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28785 * @brief Set an item style
28787 * @param obj The naviframe item
28788 * @param item_style The current item style name. @c NULL would be default
28790 * The following styles are available for this item:
28793 * @see also elm_naviframe_item_style_get()
28795 * @ingroup Naviframe
28797 EAPI void elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
28799 * @brief Get an item style
28801 * @param obj The naviframe item
28802 * @return The current item style name
28804 * @see also elm_naviframe_item_style_set()
28806 * @ingroup Naviframe
28808 EAPI const char *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28810 * @brief Show/Hide the title area
28812 * @param it The naviframe item
28813 * @param visible If @c EINA_TRUE, title area will be visible, hidden
28816 * When the title area is invisible, then the controls would be hidden so as * to expand the content area to full-size.
28818 * @see also elm_naviframe_item_title_visible_get()
28820 * @ingroup Naviframe
28822 EAPI void elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
28824 * @brief Get a value whether title area is visible or not.
28826 * @param it The naviframe item
28827 * @return If @c EINA_TRUE, title area is visible
28829 * @see also elm_naviframe_item_title_visible_set()
28831 * @ingroup Naviframe
28833 EAPI Eina_Bool elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28836 * @brief Set creating prev button automatically or not
28838 * @param obj The naviframe object
28839 * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
28840 * be created internally when you pass the @c NULL to the prev_btn
28841 * parameter in elm_naviframe_item_push
28843 * @see also elm_naviframe_item_push()
28845 EAPI void elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
28847 * @brief Get a value whether prev button(back button) will be auto pushed or
28850 * @param obj The naviframe object
28851 * @return If @c EINA_TRUE, prev button will be auto pushed.
28853 * @see also elm_naviframe_item_push()
28854 * elm_naviframe_prev_btn_auto_pushed_set()
28856 EAPI Eina_Bool elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28858 * @brief Get a list of all the naviframe items.
28860 * @param obj The naviframe object
28861 * @return An Eina_Inlist* of naviframe items, #Elm_Object_Item,
28862 * or @c NULL on failure.
28864 EAPI Eina_Inlist *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);