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);
4461 * Set the enabled status for the focus highlight in a window
4463 * This function will enable or disable the focus highlight only for the
4464 * given window, regardless of the global setting for it
4466 * @param obj The window where to enable the highlight
4467 * @param enabled The enabled value for the highlight
4469 EAPI void elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4471 * Get the enabled value of the focus highlight for this window
4473 * @param obj The window in which to check if the focus highlight is enabled
4475 * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4477 EAPI Eina_Bool elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4479 * Set the style for the focus highlight on this window
4481 * Sets the style to use for theming the highlight of focused objects on
4482 * the given window. If @p style is NULL, the default will be used.
4484 * @param obj The window where to set the style
4485 * @param style The style to set
4487 EAPI void elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4489 * Get the style set for the focus highlight object
4491 * Gets the style set for this windows highilght object, or NULL if none
4494 * @param obj The window to retrieve the highlights style from
4496 * @return The style set or NULL if none was. Default is used in that case.
4498 EAPI const char *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4500 * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4501 * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4502 * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4503 * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4504 * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4505 * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4506 * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4508 * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4509 * (blank mouse, private mouse obj, defaultmouse)
4513 * Sets the keyboard mode of the window.
4515 * @param obj The window object
4516 * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4518 EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4520 * Gets the keyboard mode of the window.
4522 * @param obj The window object
4523 * @return The mode, one of #Elm_Win_Keyboard_Mode
4525 EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4527 * Sets whether the window is a keyboard.
4529 * @param obj The window object
4530 * @param is_keyboard If true, the window is a virtual keyboard
4532 EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4534 * Gets whether the window is a keyboard.
4536 * @param obj The window object
4537 * @return If the window is a virtual keyboard
4539 EAPI Eina_Bool elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4542 * Get the screen position of a window.
4544 * @param obj The window object
4545 * @param x The int to store the x coordinate to
4546 * @param y The int to store the y coordinate to
4548 EAPI void elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4554 * @defgroup Inwin Inwin
4556 * @image html img/widget/inwin/preview-00.png
4557 * @image latex img/widget/inwin/preview-00.eps
4558 * @image html img/widget/inwin/preview-01.png
4559 * @image latex img/widget/inwin/preview-01.eps
4560 * @image html img/widget/inwin/preview-02.png
4561 * @image latex img/widget/inwin/preview-02.eps
4563 * An inwin is a window inside a window that is useful for a quick popup.
4564 * It does not hover.
4566 * It works by creating an object that will occupy the entire window, so it
4567 * must be created using an @ref Win "elm_win" as parent only. The inwin
4568 * object can be hidden or restacked below every other object if it's
4569 * needed to show what's behind it without destroying it. If this is done,
4570 * the elm_win_inwin_activate() function can be used to bring it back to
4571 * full visibility again.
4573 * There are three styles available in the default theme. These are:
4574 * @li default: The inwin is sized to take over most of the window it's
4576 * @li minimal: The size of the inwin will be the minimum necessary to show
4578 * @li minimal_vertical: Horizontally, the inwin takes as much space as
4579 * possible, but it's sized vertically the most it needs to fit its\
4582 * Some examples of Inwin can be found in the following:
4583 * @li @ref inwin_example_01
4588 * Adds an inwin to the current window
4590 * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4591 * Never call this function with anything other than the top-most window
4592 * as its parameter, unless you are fond of undefined behavior.
4594 * After creating the object, the widget will set itself as resize object
4595 * for the window with elm_win_resize_object_add(), so when shown it will
4596 * appear to cover almost the entire window (how much of it depends on its
4597 * content and the style used). It must not be added into other container
4598 * objects and it needs not be moved or resized manually.
4600 * @param parent The parent object
4601 * @return The new object or NULL if it cannot be created
4603 EAPI Evas_Object *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4605 * Activates an inwin object, ensuring its visibility
4607 * This function will make sure that the inwin @p obj is completely visible
4608 * by calling evas_object_show() and evas_object_raise() on it, to bring it
4609 * to the front. It also sets the keyboard focus to it, which will be passed
4612 * The object's theme will also receive the signal "elm,action,show" with
4615 * @param obj The inwin to activate
4617 EAPI void elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4619 * Set the content of an inwin object.
4621 * Once the content object is set, a previously set one will be deleted.
4622 * If you want to keep that old content object, use the
4623 * elm_win_inwin_content_unset() function.
4625 * @param obj The inwin object
4626 * @param content The object to set as content
4628 EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4630 * Get the content of an inwin object.
4632 * Return the content object which is set for this widget.
4634 * The returned object is valid as long as the inwin is still alive and no
4635 * other content is set on it. Deleting the object will notify the inwin
4636 * about it and this one will be left empty.
4638 * If you need to remove an inwin's content to be reused somewhere else,
4639 * see elm_win_inwin_content_unset().
4641 * @param obj The inwin object
4642 * @return The content that is being used
4644 EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4646 * Unset the content of an inwin object.
4648 * Unparent and return the content object which was set for this widget.
4650 * @param obj The inwin object
4651 * @return The content that was being used
4653 EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4657 /* X specific calls - won't work on non-x engines (return 0) */
4660 * Get the Ecore_X_Window of an Evas_Object
4662 * @param obj The object
4664 * @return The Ecore_X_Window of @p obj
4668 EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4670 /* smart callbacks called:
4671 * "delete,request" - the user requested to delete the window
4672 * "focus,in" - window got focus
4673 * "focus,out" - window lost focus
4674 * "moved" - window that holds the canvas was moved
4680 * @image html img/widget/bg/preview-00.png
4681 * @image latex img/widget/bg/preview-00.eps
4683 * @brief Background object, used for setting a solid color, image or Edje
4684 * group as background to a window or any container object.
4686 * The bg object is used for setting a solid background to a window or
4687 * packing into any container object. It works just like an image, but has
4688 * some properties useful to a background, like setting it to tiled,
4689 * centered, scaled or stretched.
4691 * Default contents parts of the bg widget that you can use for are:
4692 * @li "overlay" - overlay of the bg
4694 * Here is some sample code using it:
4695 * @li @ref bg_01_example_page
4696 * @li @ref bg_02_example_page
4697 * @li @ref bg_03_example_page
4701 typedef enum _Elm_Bg_Option
4703 ELM_BG_OPTION_CENTER, /**< center the background */
4704 ELM_BG_OPTION_SCALE, /**< scale the background retaining aspect ratio */
4705 ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4706 ELM_BG_OPTION_TILE /**< tile background at its original size */
4710 * Add a new background to the parent
4712 * @param parent The parent object
4713 * @return The new object or NULL if it cannot be created
4717 EAPI Evas_Object *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4720 * Set the file (image or edje) used for the background
4722 * @param obj The bg object
4723 * @param file The file path
4724 * @param group Optional key (group in Edje) within the file
4726 * This sets the image file used in the background object. The image (or edje)
4727 * will be stretched (retaining aspect if its an image file) to completely fill
4728 * the bg object. This may mean some parts are not visible.
4730 * @note Once the image of @p obj is set, a previously set one will be deleted,
4731 * even if @p file is NULL.
4735 EAPI void elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4738 * Get the file (image or edje) used for the background
4740 * @param obj The bg object
4741 * @param file The file path
4742 * @param group Optional key (group in Edje) within the file
4746 EAPI void elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4749 * Set the option used for the background image
4751 * @param obj The bg object
4752 * @param option The desired background option (TILE, SCALE)
4754 * This sets the option used for manipulating the display of the background
4755 * image. The image can be tiled or scaled.
4759 EAPI void elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4762 * Get the option used for the background image
4764 * @param obj The bg object
4765 * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4769 EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4771 * Set the option used for the background color
4773 * @param obj The bg object
4778 * This sets the color used for the background rectangle. Its range goes
4783 EAPI void elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4785 * Get the option used for the background color
4787 * @param obj The bg object
4794 EAPI void elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4797 * Set the overlay object used for the background object.
4799 * @param obj The bg object
4800 * @param overlay The overlay object
4802 * This provides a way for elm_bg to have an 'overlay' that will be on top
4803 * of the bg. Once the over object is set, a previously set one will be
4804 * deleted, even if you set the new one to NULL. If you want to keep that
4805 * old content object, use the elm_bg_overlay_unset() function.
4807 * @deprecated use elm_object_part_content_set() instead
4812 EINA_DEPRECATED EAPI void elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4815 * Get the overlay object used for the background object.
4817 * @param obj The bg object
4818 * @return The content that is being used
4820 * Return the content object which is set for this widget
4822 * @deprecated use elm_object_part_content_get() instead
4826 EINA_DEPRECATED EAPI Evas_Object *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4829 * Get the overlay object used for the background object.
4831 * @param obj The bg object
4832 * @return The content that was being used
4834 * Unparent and return the overlay object which was set for this widget
4836 * @deprecated use elm_object_part_content_unset() instead
4840 EINA_DEPRECATED EAPI Evas_Object *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4843 * Set the size of the pixmap representation of the image.
4845 * This option just makes sense if an image is going to be set in the bg.
4847 * @param obj The bg object
4848 * @param w The new width of the image pixmap representation.
4849 * @param h The new height of the image pixmap representation.
4851 * This function sets a new size for pixmap representation of the given bg
4852 * image. It allows the image to be loaded already in the specified size,
4853 * reducing the memory usage and load time when loading a big image with load
4854 * size set to a smaller size.
4856 * NOTE: this is just a hint, the real size of the pixmap may differ
4857 * depending on the type of image being loaded, being bigger than requested.
4861 EAPI void elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4862 /* smart callbacks called:
4866 * @defgroup Icon Icon
4868 * @image html img/widget/icon/preview-00.png
4869 * @image latex img/widget/icon/preview-00.eps
4871 * An object that provides standard icon images (delete, edit, arrows, etc.)
4872 * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4874 * The icon image requested can be in the elementary theme, or in the
4875 * freedesktop.org paths. It's possible to set the order of preference from
4876 * where the image will be used.
4878 * This API is very similar to @ref Image, but with ready to use images.
4880 * Default images provided by the theme are described below.
4882 * The first list contains icons that were first intended to be used in
4883 * toolbars, but can be used in many other places too:
4899 * Now some icons that were designed to be used in menus (but again, you can
4900 * use them anywhere else):
4905 * @li menu/arrow_down
4906 * @li menu/arrow_left
4907 * @li menu/arrow_right
4916 * And here we have some media player specific icons:
4917 * @li media_player/forward
4918 * @li media_player/info
4919 * @li media_player/next
4920 * @li media_player/pause
4921 * @li media_player/play
4922 * @li media_player/prev
4923 * @li media_player/rewind
4924 * @li media_player/stop
4926 * Signals that you can add callbacks for are:
4928 * "clicked" - This is called when a user has clicked the icon
4930 * An example of usage for this API follows:
4931 * @li @ref tutorial_icon
4939 typedef enum _Elm_Icon_Type
4946 * @enum _Elm_Icon_Lookup_Order
4947 * @typedef Elm_Icon_Lookup_Order
4949 * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4950 * theme, FDO paths, or both?
4954 typedef enum _Elm_Icon_Lookup_Order
4956 ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4957 ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4958 ELM_ICON_LOOKUP_FDO, /**< icon look up order: freedesktop */
4959 ELM_ICON_LOOKUP_THEME /**< icon look up order: theme */
4960 } Elm_Icon_Lookup_Order;
4963 * Add a new icon object to the parent.
4965 * @param parent The parent object
4966 * @return The new object or NULL if it cannot be created
4968 * @see elm_icon_file_set()
4972 EAPI Evas_Object *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4974 * Set the file that will be used as icon.
4976 * @param obj The icon object
4977 * @param file The path to file that will be used as icon image
4978 * @param group The group that the icon belongs to an edje file
4980 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4982 * @note The icon image set by this function can be changed by
4983 * elm_icon_standard_set().
4985 * @see elm_icon_file_get()
4989 EAPI Eina_Bool elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4991 * Set a location in memory to be used as an icon
4993 * @param obj The icon object
4994 * @param img The binary data that will be used as an image
4995 * @param size The size of binary data @p img
4996 * @param format Optional format of @p img to pass to the image loader
4997 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4999 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5001 * @note The icon image set by this function can be changed by
5002 * elm_icon_standard_set().
5006 EAPI Eina_Bool elm_icon_memfile_set(Evas_Object *obj, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1, 2);
5008 * Get the file that will be used as icon.
5010 * @param obj The icon object
5011 * @param file The path to file that will be used as the icon image
5012 * @param group The group that the icon belongs to, in edje file
5014 * @see elm_icon_file_set()
5018 EAPI void elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5019 EAPI void elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5021 * Set the icon by icon standards names.
5023 * @param obj The icon object
5024 * @param name The icon name
5026 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5028 * For example, freedesktop.org defines standard icon names such as "home",
5029 * "network", etc. There can be different icon sets to match those icon
5030 * keys. The @p name given as parameter is one of these "keys", and will be
5031 * used to look in the freedesktop.org paths and elementary theme. One can
5032 * change the lookup order with elm_icon_order_lookup_set().
5034 * If name is not found in any of the expected locations and it is the
5035 * absolute path of an image file, this image will be used.
5037 * @note The icon image set by this function can be changed by
5038 * elm_icon_file_set().
5040 * @see elm_icon_standard_get()
5041 * @see elm_icon_file_set()
5045 EAPI Eina_Bool elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
5047 * Get the icon name set by icon standard names.
5049 * @param obj The icon object
5050 * @return The icon name
5052 * If the icon image was set using elm_icon_file_set() instead of
5053 * elm_icon_standard_set(), then this function will return @c NULL.
5055 * @see elm_icon_standard_set()
5059 EAPI const char *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5061 * Set the smooth scaling for an icon object.
5063 * @param obj The icon object
5064 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5065 * otherwise. Default is @c EINA_TRUE.
5067 * Set the scaling algorithm to be used when scaling the icon image. Smooth
5068 * scaling provides a better resulting image, but is slower.
5070 * The smooth scaling should be disabled when making animations that change
5071 * the icon size, since they will be faster. Animations that don't require
5072 * resizing of the icon can keep the smooth scaling enabled (even if the icon
5073 * is already scaled, since the scaled icon image will be cached).
5075 * @see elm_icon_smooth_get()
5079 EAPI void elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5081 * Get whether smooth scaling is enabled for an icon object.
5083 * @param obj The icon object
5084 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5086 * @see elm_icon_smooth_set()
5090 EAPI Eina_Bool elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5092 * Disable scaling of this object.
5094 * @param obj The icon object.
5095 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5096 * otherwise. Default is @c EINA_FALSE.
5098 * This function disables scaling of the icon object through the function
5099 * elm_object_scale_set(). However, this does not affect the object
5100 * size/resize in any way. For that effect, take a look at
5101 * elm_icon_scale_set().
5103 * @see elm_icon_no_scale_get()
5104 * @see elm_icon_scale_set()
5105 * @see elm_object_scale_set()
5109 EAPI void elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5111 * Get whether scaling is disabled on the object.
5113 * @param obj The icon object
5114 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5116 * @see elm_icon_no_scale_set()
5120 EAPI Eina_Bool elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5122 * Set if the object is (up/down) resizable.
5124 * @param obj The icon object
5125 * @param scale_up A bool to set if the object is resizable up. Default is
5127 * @param scale_down A bool to set if the object is resizable down. Default
5130 * This function limits the icon object resize ability. If @p scale_up is set to
5131 * @c EINA_FALSE, the object can't have its height or width resized to a value
5132 * higher than the original icon size. Same is valid for @p scale_down.
5134 * @see elm_icon_scale_get()
5138 EAPI void elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5140 * Get if the object is (up/down) resizable.
5142 * @param obj The icon object
5143 * @param scale_up A bool to set if the object is resizable up
5144 * @param scale_down A bool to set if the object is resizable down
5146 * @see elm_icon_scale_set()
5150 EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5152 * Get the object's image size
5154 * @param obj The icon object
5155 * @param w A pointer to store the width in
5156 * @param h A pointer to store the height in
5160 EAPI void elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5162 * Set if the icon fill the entire object area.
5164 * @param obj The icon object
5165 * @param fill_outside @c EINA_TRUE if the object is filled outside,
5166 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5168 * When the icon object is resized to a different aspect ratio from the
5169 * original icon image, the icon image will still keep its aspect. This flag
5170 * tells how the image should fill the object's area. They are: keep the
5171 * entire icon inside the limits of height and width of the object (@p
5172 * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
5173 * of the object, and the icon will fill the entire object (@p fill_outside
5176 * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
5177 * retain property to false. Thus, the icon image will always keep its
5178 * original aspect ratio.
5180 * @see elm_icon_fill_outside_get()
5181 * @see elm_image_fill_outside_set()
5185 EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5187 * Get if the object is filled outside.
5189 * @param obj The icon object
5190 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5192 * @see elm_icon_fill_outside_set()
5196 EAPI Eina_Bool elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5198 * Set the prescale size for the icon.
5200 * @param obj The icon object
5201 * @param size The prescale size. This value is used for both width and
5204 * This function sets a new size for pixmap representation of the given
5205 * icon. It allows the icon to be loaded already in the specified size,
5206 * reducing the memory usage and load time when loading a big icon with load
5207 * size set to a smaller size.
5209 * It's equivalent to the elm_bg_load_size_set() function for bg.
5211 * @note this is just a hint, the real size of the pixmap may differ
5212 * depending on the type of icon being loaded, being bigger than requested.
5214 * @see elm_icon_prescale_get()
5215 * @see elm_bg_load_size_set()
5219 EAPI void elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5221 * Get the prescale size for the icon.
5223 * @param obj The icon object
5224 * @return The prescale size
5226 * @see elm_icon_prescale_set()
5230 EAPI int elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5232 * Gets the image object of the icon. DO NOT MODIFY THIS.
5234 * @param obj The icon object
5235 * @return The internal icon object
5239 EAPI Evas_Object *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5241 * Sets the icon lookup order used by elm_icon_standard_set().
5243 * @param obj The icon object
5244 * @param order The icon lookup order (can be one of
5245 * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
5246 * or ELM_ICON_LOOKUP_THEME)
5248 * @see elm_icon_order_lookup_get()
5249 * @see Elm_Icon_Lookup_Order
5253 EAPI void elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5255 * Gets the icon lookup order.
5257 * @param obj The icon object
5258 * @return The icon lookup order
5260 * @see elm_icon_order_lookup_set()
5261 * @see Elm_Icon_Lookup_Order
5265 EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5267 * Enable or disable preloading of the icon
5269 * @param obj The icon object
5270 * @param disable If EINA_TRUE, preloading will be disabled
5273 EAPI void elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
5275 * Get if the icon supports animation or not.
5277 * @param obj The icon object
5278 * @return @c EINA_TRUE if the icon supports animation,
5279 * @c EINA_FALSE otherwise.
5281 * Return if this elm icon's image can be animated. Currently Evas only
5282 * supports gif animation. If the return value is EINA_FALSE, other
5283 * elm_icon_animated_XXX APIs won't work.
5286 EAPI Eina_Bool elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5288 * Set animation mode of the icon.
5290 * @param obj The icon object
5291 * @param anim @c EINA_TRUE if the object do animation job,
5292 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5294 * Since the default animation mode is set to EINA_FALSE,
5295 * the icon is shown without animation.
5296 * This might be desirable when the application developer wants to show
5297 * a snapshot of the animated icon.
5298 * Set it to EINA_TRUE when the icon needs to be animated.
5301 EAPI void elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
5303 * Get animation mode of the icon.
5305 * @param obj The icon object
5306 * @return The animation mode of the icon object
5307 * @see elm_icon_animated_set
5310 EAPI Eina_Bool elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5312 * Set animation play mode of the icon.
5314 * @param obj The icon object
5315 * @param play @c EINA_TRUE the object play animation images,
5316 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5318 * To play elm icon's animation, set play to EINA_TURE.
5319 * For example, you make gif player using this set/get API and click event.
5321 * 1. Click event occurs
5322 * 2. Check play flag using elm_icon_animaged_play_get
5323 * 3. If elm icon was playing, set play to EINA_FALSE.
5324 * Then animation will be stopped and vice versa
5327 EAPI void elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
5329 * Get animation play mode of the icon.
5331 * @param obj The icon object
5332 * @return The play mode of the icon object
5334 * @see elm_icon_animated_play_get
5337 EAPI Eina_Bool elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5344 * @defgroup Image Image
5346 * @image html img/widget/image/preview-00.png
5347 * @image latex img/widget/image/preview-00.eps
5350 * An object that allows one to load an image file to it. It can be used
5351 * anywhere like any other elementary widget.
5353 * This widget provides most of the functionality provided from @ref Bg or @ref
5354 * Icon, but with a slightly different API (use the one that fits better your
5357 * The features not provided by those two other image widgets are:
5358 * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
5359 * @li change the object orientation with elm_image_orient_set();
5360 * @li and turning the image editable with elm_image_editable_set().
5362 * Signals that you can add callbacks for are:
5364 * @li @c "clicked" - This is called when a user has clicked the image
5366 * An example of usage for this API follows:
5367 * @li @ref tutorial_image
5376 * @enum _Elm_Image_Orient
5377 * @typedef Elm_Image_Orient
5379 * Possible orientation options for elm_image_orient_set().
5381 * @image html elm_image_orient_set.png
5382 * @image latex elm_image_orient_set.eps width=\textwidth
5386 typedef enum _Elm_Image_Orient
5388 ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
5389 ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
5390 ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
5391 ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
5392 ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
5393 ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
5394 ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
5395 ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
5399 * Add a new image to the parent.
5401 * @param parent The parent object
5402 * @return The new object or NULL if it cannot be created
5404 * @see elm_image_file_set()
5408 EAPI Evas_Object *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5410 * Set the file that will be used as image.
5412 * @param obj The image object
5413 * @param file The path to file that will be used as image
5414 * @param group The group that the image belongs in edje file (if it's an
5417 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5419 * @see elm_image_file_get()
5423 EAPI Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5425 * Get the file that will be used as image.
5427 * @param obj The image object
5428 * @param file The path to file
5429 * @param group The group that the image belongs in edje file
5431 * @see elm_image_file_set()
5435 EAPI void elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5437 * Set the smooth effect for an image.
5439 * @param obj The image object
5440 * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5441 * otherwise. Default is @c EINA_TRUE.
5443 * Set the scaling algorithm to be used when scaling the image. Smooth
5444 * scaling provides a better resulting image, but is slower.
5446 * The smooth scaling should be disabled when making animations that change
5447 * the image size, since it will be faster. Animations that don't require
5448 * resizing of the image can keep the smooth scaling enabled (even if the
5449 * image is already scaled, since the scaled image will be cached).
5451 * @see elm_image_smooth_get()
5455 EAPI void elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5457 * Get the smooth effect for an image.
5459 * @param obj The image object
5460 * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5462 * @see elm_image_smooth_get()
5466 EAPI Eina_Bool elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5469 * Gets the current size of the image.
5471 * @param obj The image object.
5472 * @param w Pointer to store width, or NULL.
5473 * @param h Pointer to store height, or NULL.
5475 * This is the real size of the image, not the size of the object.
5477 * On error, neither w or h will be written.
5481 EAPI void elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5483 * Disable scaling of this object.
5485 * @param obj The image object.
5486 * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5487 * otherwise. Default is @c EINA_FALSE.
5489 * This function disables scaling of the elm_image widget through the
5490 * function elm_object_scale_set(). However, this does not affect the widget
5491 * size/resize in any way. For that effect, take a look at
5492 * elm_image_scale_set().
5494 * @see elm_image_no_scale_get()
5495 * @see elm_image_scale_set()
5496 * @see elm_object_scale_set()
5500 EAPI void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5502 * Get whether scaling is disabled on the object.
5504 * @param obj The image object
5505 * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5507 * @see elm_image_no_scale_set()
5511 EAPI Eina_Bool elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5513 * Set if the object is (up/down) resizable.
5515 * @param obj The image object
5516 * @param scale_up A bool to set if the object is resizable up. Default is
5518 * @param scale_down A bool to set if the object is resizable down. Default
5521 * This function limits the image resize ability. If @p scale_up is set to
5522 * @c EINA_FALSE, the object can't have its height or width resized to a value
5523 * higher than the original image size. Same is valid for @p scale_down.
5525 * @see elm_image_scale_get()
5529 EAPI void elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5531 * Get if the object is (up/down) resizable.
5533 * @param obj The image object
5534 * @param scale_up A bool to set if the object is resizable up
5535 * @param scale_down A bool to set if the object is resizable down
5537 * @see elm_image_scale_set()
5541 EAPI void elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5543 * Set if the image fills the entire object area, when keeping the aspect ratio.
5545 * @param obj The image object
5546 * @param fill_outside @c EINA_TRUE if the object is filled outside,
5547 * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5549 * When the image should keep its aspect ratio even if resized to another
5550 * aspect ratio, there are two possibilities to resize it: keep the entire
5551 * image inside the limits of height and width of the object (@p fill_outside
5552 * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5553 * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5555 * @note This option will have no effect if
5556 * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5558 * @see elm_image_fill_outside_get()
5559 * @see elm_image_aspect_ratio_retained_set()
5563 EAPI void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5565 * Get if the object is filled outside
5567 * @param obj The image object
5568 * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5570 * @see elm_image_fill_outside_set()
5574 EAPI Eina_Bool elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5576 * Set the prescale size for the image
5578 * @param obj The image object
5579 * @param size The prescale size. This value is used for both width and
5582 * This function sets a new size for pixmap representation of the given
5583 * image. It allows the image to be loaded already in the specified size,
5584 * reducing the memory usage and load time when loading a big image with load
5585 * size set to a smaller size.
5587 * It's equivalent to the elm_bg_load_size_set() function for bg.
5589 * @note this is just a hint, the real size of the pixmap may differ
5590 * depending on the type of image being loaded, being bigger than requested.
5592 * @see elm_image_prescale_get()
5593 * @see elm_bg_load_size_set()
5597 EAPI void elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5599 * Get the prescale size for the image
5601 * @param obj The image object
5602 * @return The prescale size
5604 * @see elm_image_prescale_set()
5608 EAPI int elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5610 * Set the image orientation.
5612 * @param obj The image object
5613 * @param orient The image orientation @ref Elm_Image_Orient
5614 * Default is #ELM_IMAGE_ORIENT_NONE.
5616 * This function allows to rotate or flip the given image.
5618 * @see elm_image_orient_get()
5619 * @see @ref Elm_Image_Orient
5623 EAPI void elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5625 * Get the image orientation.
5627 * @param obj The image object
5628 * @return The image orientation @ref Elm_Image_Orient
5630 * @see elm_image_orient_set()
5631 * @see @ref Elm_Image_Orient
5635 EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5637 * Make the image 'editable'.
5639 * @param obj Image object.
5640 * @param set Turn on or off editability. Default is @c EINA_FALSE.
5642 * This means the image is a valid drag target for drag and drop, and can be
5643 * cut or pasted too.
5647 EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5649 * Check if the image 'editable'.
5651 * @param obj Image object.
5652 * @return Editability.
5654 * A return value of EINA_TRUE means the image is a valid drag target
5655 * for drag and drop, and can be cut or pasted too.
5659 EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5661 * Get the basic Evas_Image object from this object (widget).
5663 * @param obj The image object to get the inlined image from
5664 * @return The inlined image object, or NULL if none exists
5666 * This function allows one to get the underlying @c Evas_Object of type
5667 * Image from this elementary widget. It can be useful to do things like get
5668 * the pixel data, save the image to a file, etc.
5670 * @note Be careful to not manipulate it, as it is under control of
5675 EAPI Evas_Object *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5677 * Set whether the original aspect ratio of the image should be kept on resize.
5679 * @param obj The image object.
5680 * @param retained @c EINA_TRUE if the image should retain the aspect,
5681 * @c EINA_FALSE otherwise.
5683 * The original aspect ratio (width / height) of the image is usually
5684 * distorted to match the object's size. Enabling this option will retain
5685 * this original aspect, and the way that the image is fit into the object's
5686 * area depends on the option set by elm_image_fill_outside_set().
5688 * @see elm_image_aspect_ratio_retained_get()
5689 * @see elm_image_fill_outside_set()
5693 EAPI void elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5695 * Get if the object retains the original aspect ratio.
5697 * @param obj The image object.
5698 * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5703 EAPI Eina_Bool elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5713 * @image html img/widget/box/preview-00.png
5714 * @image latex img/widget/box/preview-00.eps width=\textwidth
5716 * @image html img/box.png
5717 * @image latex img/box.eps width=\textwidth
5719 * A box arranges objects in a linear fashion, governed by a layout function
5720 * that defines the details of this arrangement.
5722 * By default, the box will use an internal function to set the layout to
5723 * a single row, either vertical or horizontal. This layout is affected
5724 * by a number of parameters, such as the homogeneous flag set by
5725 * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5726 * elm_box_align_set() and the hints set to each object in the box.
5728 * For this default layout, it's possible to change the orientation with
5729 * elm_box_horizontal_set(). The box will start in the vertical orientation,
5730 * placing its elements ordered from top to bottom. When horizontal is set,
5731 * the order will go from left to right. If the box is set to be
5732 * homogeneous, every object in it will be assigned the same space, that
5733 * of the largest object. Padding can be used to set some spacing between
5734 * the cell given to each object. The alignment of the box, set with
5735 * elm_box_align_set(), determines how the bounding box of all the elements
5736 * will be placed within the space given to the box widget itself.
5738 * The size hints of each object also affect how they are placed and sized
5739 * within the box. evas_object_size_hint_min_set() will give the minimum
5740 * size the object can have, and the box will use it as the basis for all
5741 * latter calculations. Elementary widgets set their own minimum size as
5742 * needed, so there's rarely any need to use it manually.
5744 * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5745 * used to tell whether the object will be allocated the minimum size it
5746 * needs or if the space given to it should be expanded. It's important
5747 * to realize that expanding the size given to the object is not the same
5748 * thing as resizing the object. It could very well end being a small
5749 * widget floating in a much larger empty space. If not set, the weight
5750 * for objects will normally be 0.0 for both axis, meaning the widget will
5751 * not be expanded. To take as much space possible, set the weight to
5752 * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5754 * Besides how much space each object is allocated, it's possible to control
5755 * how the widget will be placed within that space using
5756 * evas_object_size_hint_align_set(). By default, this value will be 0.5
5757 * for both axis, meaning the object will be centered, but any value from
5758 * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5759 * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5760 * is -1.0, means the object will be resized to fill the entire space it
5763 * In addition, customized functions to define the layout can be set, which
5764 * allow the application developer to organize the objects within the box
5765 * in any number of ways.
5767 * The special elm_box_layout_transition() function can be used
5768 * to switch from one layout to another, animating the motion of the
5769 * children of the box.
5771 * @note Objects should not be added to box objects using _add() calls.
5773 * Some examples on how to use boxes follow:
5774 * @li @ref box_example_01
5775 * @li @ref box_example_02
5780 * @typedef Elm_Box_Transition
5782 * Opaque handler containing the parameters to perform an animated
5783 * transition of the layout the box uses.
5785 * @see elm_box_transition_new()
5786 * @see elm_box_layout_set()
5787 * @see elm_box_layout_transition()
5789 typedef struct _Elm_Box_Transition Elm_Box_Transition;
5792 * Add a new box to the parent
5794 * By default, the box will be in vertical mode and non-homogeneous.
5796 * @param parent The parent object
5797 * @return The new object or NULL if it cannot be created
5799 EAPI Evas_Object *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5801 * Set the horizontal orientation
5803 * By default, box object arranges their contents vertically from top to
5805 * By calling this function with @p horizontal as EINA_TRUE, the box will
5806 * become horizontal, arranging contents from left to right.
5808 * @note This flag is ignored if a custom layout function is set.
5810 * @param obj The box object
5811 * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5812 * EINA_FALSE = vertical)
5814 EAPI void elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5816 * Get the horizontal orientation
5818 * @param obj The box object
5819 * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5821 EAPI Eina_Bool elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5823 * Set the box to arrange its children homogeneously
5825 * If enabled, homogeneous layout makes all items the same size, according
5826 * to the size of the largest of its children.
5828 * @note This flag is ignored if a custom layout function is set.
5830 * @param obj The box object
5831 * @param homogeneous The homogeneous flag
5833 EAPI void elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5835 * Get whether the box is using homogeneous mode or not
5837 * @param obj The box object
5838 * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5840 EAPI Eina_Bool elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5841 EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5842 EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5844 * Add an object to the beginning of the pack list
5846 * Pack @p subobj into the box @p obj, placing it first in the list of
5847 * children objects. The actual position the object will get on screen
5848 * depends on the layout used. If no custom layout is set, it will be at
5849 * the top or left, depending if the box is vertical or horizontal,
5852 * @param obj The box object
5853 * @param subobj The object to add to the box
5855 * @see elm_box_pack_end()
5856 * @see elm_box_pack_before()
5857 * @see elm_box_pack_after()
5858 * @see elm_box_unpack()
5859 * @see elm_box_unpack_all()
5860 * @see elm_box_clear()
5862 EAPI void elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5864 * Add an object at the end of the pack list
5866 * Pack @p subobj into the box @p obj, placing it last in the list of
5867 * children objects. The actual position the object will get on screen
5868 * depends on the layout used. If no custom layout is set, it will be at
5869 * the bottom or right, depending if the box is vertical or horizontal,
5872 * @param obj The box object
5873 * @param subobj The object to add to the box
5875 * @see elm_box_pack_start()
5876 * @see elm_box_pack_before()
5877 * @see elm_box_pack_after()
5878 * @see elm_box_unpack()
5879 * @see elm_box_unpack_all()
5880 * @see elm_box_clear()
5882 EAPI void elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5884 * Adds an object to the box before the indicated object
5886 * This will add the @p subobj to the box indicated before the object
5887 * indicated with @p before. If @p before is not already in the box, results
5888 * are undefined. Before means either to the left of the indicated object or
5889 * above it depending on orientation.
5891 * @param obj The box object
5892 * @param subobj The object to add to the box
5893 * @param before The object before which to add it
5895 * @see elm_box_pack_start()
5896 * @see elm_box_pack_end()
5897 * @see elm_box_pack_after()
5898 * @see elm_box_unpack()
5899 * @see elm_box_unpack_all()
5900 * @see elm_box_clear()
5902 EAPI void elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5904 * Adds an object to the box after the indicated object
5906 * This will add the @p subobj to the box indicated after the object
5907 * indicated with @p after. If @p after is not already in the box, results
5908 * are undefined. After means either to the right of the indicated object or
5909 * below it depending on orientation.
5911 * @param obj The box object
5912 * @param subobj The object to add to the box
5913 * @param after The object after which to add it
5915 * @see elm_box_pack_start()
5916 * @see elm_box_pack_end()
5917 * @see elm_box_pack_before()
5918 * @see elm_box_unpack()
5919 * @see elm_box_unpack_all()
5920 * @see elm_box_clear()
5922 EAPI void elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5924 * Clear the box of all children
5926 * Remove all the elements contained by the box, deleting the respective
5929 * @param obj The box object
5931 * @see elm_box_unpack()
5932 * @see elm_box_unpack_all()
5934 EAPI void elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5938 * Remove the object given by @p subobj from the box @p obj without
5941 * @param obj The box object
5943 * @see elm_box_unpack_all()
5944 * @see elm_box_clear()
5946 EAPI void elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5948 * Remove all items from the box, without deleting them
5950 * Clear the box from all children, but don't delete the respective objects.
5951 * If no other references of the box children exist, the objects will never
5952 * be deleted, and thus the application will leak the memory. Make sure
5953 * when using this function that you hold a reference to all the objects
5954 * in the box @p obj.
5956 * @param obj The box object
5958 * @see elm_box_clear()
5959 * @see elm_box_unpack()
5961 EAPI void elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5963 * Retrieve a list of the objects packed into the box
5965 * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5966 * The order of the list corresponds to the packing order the box uses.
5968 * You must free this list with eina_list_free() once you are done with it.
5970 * @param obj The box object
5972 EAPI const Eina_List *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5974 * Set the space (padding) between the box's elements.
5976 * Extra space in pixels that will be added between a box child and its
5977 * neighbors after its containing cell has been calculated. This padding
5978 * is set for all elements in the box, besides any possible padding that
5979 * individual elements may have through their size hints.
5981 * @param obj The box object
5982 * @param horizontal The horizontal space between elements
5983 * @param vertical The vertical space between elements
5985 EAPI void elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5987 * Get the space (padding) between the box's elements.
5989 * @param obj The box object
5990 * @param horizontal The horizontal space between elements
5991 * @param vertical The vertical space between elements
5993 * @see elm_box_padding_set()
5995 EAPI void elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5997 * Set the alignment of the whole bouding box of contents.
5999 * Sets how the bounding box containing all the elements of the box, after
6000 * their sizes and position has been calculated, will be aligned within
6001 * the space given for the whole box widget.
6003 * @param obj The box object
6004 * @param horizontal The horizontal alignment of elements
6005 * @param vertical The vertical alignment of elements
6007 EAPI void elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
6009 * Get the alignment of the whole bouding box of contents.
6011 * @param obj The box object
6012 * @param horizontal The horizontal alignment of elements
6013 * @param vertical The vertical alignment of elements
6015 * @see elm_box_align_set()
6017 EAPI void elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
6020 * Force the box to recalculate its children packing.
6022 * If any children was added or removed, box will not calculate the
6023 * values immediately rather leaving it to the next main loop
6024 * iteration. While this is great as it would save lots of
6025 * recalculation, whenever you need to get the position of a just
6026 * added item you must force recalculate before doing so.
6028 * @param obj The box object.
6030 EAPI void elm_box_recalculate(Evas_Object *obj);
6033 * Set the layout defining function to be used by the box
6035 * Whenever anything changes that requires the box in @p obj to recalculate
6036 * the size and position of its elements, the function @p cb will be called
6037 * to determine what the layout of the children will be.
6039 * Once a custom function is set, everything about the children layout
6040 * is defined by it. The flags set by elm_box_horizontal_set() and
6041 * elm_box_homogeneous_set() no longer have any meaning, and the values
6042 * given by elm_box_padding_set() and elm_box_align_set() are up to this
6043 * layout function to decide if they are used and how. These last two
6044 * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
6045 * passed to @p cb. The @c Evas_Object the function receives is not the
6046 * Elementary widget, but the internal Evas Box it uses, so none of the
6047 * functions described here can be used on it.
6049 * Any of the layout functions in @c Evas can be used here, as well as the
6050 * special elm_box_layout_transition().
6052 * The final @p data argument received by @p cb is the same @p data passed
6053 * here, and the @p free_data function will be called to free it
6054 * whenever the box is destroyed or another layout function is set.
6056 * Setting @p cb to NULL will revert back to the default layout function.
6058 * @param obj The box object
6059 * @param cb The callback function used for layout
6060 * @param data Data that will be passed to layout function
6061 * @param free_data Function called to free @p data
6063 * @see elm_box_layout_transition()
6065 EAPI void elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data, void (*free_data)(void *data)) EINA_ARG_NONNULL(1);
6067 * Special layout function that animates the transition from one layout to another
6069 * Normally, when switching the layout function for a box, this will be
6070 * reflected immediately on screen on the next render, but it's also
6071 * possible to do this through an animated transition.
6073 * This is done by creating an ::Elm_Box_Transition and setting the box
6074 * layout to this function.
6078 * Elm_Box_Transition *t = elm_box_transition_new(1.0,
6079 * evas_object_box_layout_vertical, // start
6080 * NULL, // data for initial layout
6081 * NULL, // free function for initial data
6082 * evas_object_box_layout_horizontal, // end
6083 * NULL, // data for final layout
6084 * NULL, // free function for final data
6085 * anim_end, // will be called when animation ends
6086 * NULL); // data for anim_end function\
6087 * elm_box_layout_set(box, elm_box_layout_transition, t,
6088 * elm_box_transition_free);
6091 * @note This function can only be used with elm_box_layout_set(). Calling
6092 * it directly will not have the expected results.
6094 * @see elm_box_transition_new
6095 * @see elm_box_transition_free
6096 * @see elm_box_layout_set
6098 EAPI void elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
6100 * Create a new ::Elm_Box_Transition to animate the switch of layouts
6102 * If you want to animate the change from one layout to another, you need
6103 * to set the layout function of the box to elm_box_layout_transition(),
6104 * passing as user data to it an instance of ::Elm_Box_Transition with the
6105 * necessary information to perform this animation. The free function to
6106 * set for the layout is elm_box_transition_free().
6108 * The parameters to create an ::Elm_Box_Transition sum up to how long
6109 * will it be, in seconds, a layout function to describe the initial point,
6110 * another for the final position of the children and one function to be
6111 * called when the whole animation ends. This last function is useful to
6112 * set the definitive layout for the box, usually the same as the end
6113 * layout for the animation, but could be used to start another transition.
6115 * @param start_layout The layout function that will be used to start the animation
6116 * @param start_layout_data The data to be passed the @p start_layout function
6117 * @param start_layout_free_data Function to free @p start_layout_data
6118 * @param end_layout The layout function that will be used to end the animation
6119 * @param end_layout_free_data The data to be passed the @p end_layout function
6120 * @param end_layout_free_data Function to free @p end_layout_data
6121 * @param transition_end_cb Callback function called when animation ends
6122 * @param transition_end_data Data to be passed to @p transition_end_cb
6123 * @return An instance of ::Elm_Box_Transition
6125 * @see elm_box_transition_new
6126 * @see elm_box_layout_transition
6128 EAPI Elm_Box_Transition *elm_box_transition_new(const double duration, Evas_Object_Box_Layout start_layout, void *start_layout_data, void(*start_layout_free_data)(void *data), Evas_Object_Box_Layout end_layout, void *end_layout_data, void(*end_layout_free_data)(void *data), void(*transition_end_cb)(void *data), void *transition_end_data) EINA_ARG_NONNULL(2, 5);
6130 * Free a Elm_Box_Transition instance created with elm_box_transition_new().
6132 * This function is mostly useful as the @c free_data parameter in
6133 * elm_box_layout_set() when elm_box_layout_transition().
6135 * @param data The Elm_Box_Transition instance to be freed.
6137 * @see elm_box_transition_new
6138 * @see elm_box_layout_transition
6140 EAPI void elm_box_transition_free(void *data);
6147 * @defgroup Button Button
6149 * @image html img/widget/button/preview-00.png
6150 * @image latex img/widget/button/preview-00.eps
6151 * @image html img/widget/button/preview-01.png
6152 * @image latex img/widget/button/preview-01.eps
6153 * @image html img/widget/button/preview-02.png
6154 * @image latex img/widget/button/preview-02.eps
6156 * This is a push-button. Press it and run some function. It can contain
6157 * a simple label and icon object and it also has an autorepeat feature.
6159 * This widgets emits the following signals:
6160 * @li "clicked": the user clicked the button (press/release).
6161 * @li "repeated": the user pressed the button without releasing it.
6162 * @li "pressed": button was pressed.
6163 * @li "unpressed": button was released after being pressed.
6164 * In all three cases, the @c event parameter of the callback will be
6167 * Also, defined in the default theme, the button has the following styles
6169 * @li default: a normal button.
6170 * @li anchor: Like default, but the button fades away when the mouse is not
6171 * over it, leaving only the text or icon.
6172 * @li hoversel_vertical: Internally used by @ref Hoversel to give a
6173 * continuous look across its options.
6174 * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
6176 * Default contents parts of the button widget that you can use for are:
6177 * @li "icon" - A icon of the button
6179 * Default text parts of the button widget that you can use for are:
6180 * @li "default" - Label of the button
6182 * Follow through a complete example @ref button_example_01 "here".
6186 * Add a new button to the parent's canvas
6188 * @param parent The parent object
6189 * @return The new object or NULL if it cannot be created
6191 EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6193 * Set the label used in the button
6195 * The passed @p label can be NULL to clean any existing text in it and
6196 * leave the button as an icon only object.
6198 * @param obj The button object
6199 * @param label The text will be written on the button
6200 * @deprecated use elm_object_text_set() instead.
6202 EINA_DEPRECATED EAPI void elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6204 * Get the label set for the button
6206 * The string returned is an internal pointer and should not be freed or
6207 * altered. It will also become invalid when the button is destroyed.
6208 * The string returned, if not NULL, is a stringshare, so if you need to
6209 * keep it around even after the button is destroyed, you can use
6210 * eina_stringshare_ref().
6212 * @param obj The button object
6213 * @return The text set to the label, or NULL if nothing is set
6214 * @deprecated use elm_object_text_set() instead.
6216 EINA_DEPRECATED EAPI const char *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6218 * Set the icon used for the button
6220 * Setting a new icon will delete any other that was previously set, making
6221 * any reference to them invalid. If you need to maintain the previous
6222 * object alive, unset it first with elm_button_icon_unset().
6224 * @param obj The button object
6225 * @param icon The icon object for the button
6226 * @deprecated use elm_object_part_content_set() instead.
6228 EINA_DEPRECATED EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6230 * Get the icon used for the button
6232 * Return the icon object which is set for this widget. If the button is
6233 * destroyed or another icon is set, the returned object will be deleted
6234 * and any reference to it will be invalid.
6236 * @param obj The button object
6237 * @return The icon object that is being used
6239 * @deprecated use elm_object_part_content_get() instead
6241 EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6243 * Remove the icon set without deleting it and return the object
6245 * This function drops the reference the button holds of the icon object
6246 * and returns this last object. It is used in case you want to remove any
6247 * icon, or set another one, without deleting the actual object. The button
6248 * will be left without an icon set.
6250 * @param obj The button object
6251 * @return The icon object that was being used
6252 * @deprecated use elm_object_part_content_unset() instead.
6254 EINA_DEPRECATED EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6256 * Turn on/off the autorepeat event generated when the button is kept pressed
6258 * When off, no autorepeat is performed and buttons emit a normal @c clicked
6259 * signal when they are clicked.
6261 * When on, keeping a button pressed will continuously emit a @c repeated
6262 * signal until the button is released. The time it takes until it starts
6263 * emitting the signal is given by
6264 * elm_button_autorepeat_initial_timeout_set(), and the time between each
6265 * new emission by elm_button_autorepeat_gap_timeout_set().
6267 * @param obj The button object
6268 * @param on A bool to turn on/off the event
6270 EAPI void elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6272 * Get whether the autorepeat feature is enabled
6274 * @param obj The button object
6275 * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6277 * @see elm_button_autorepeat_set()
6279 EAPI Eina_Bool elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6281 * Set the initial timeout before the autorepeat event is generated
6283 * Sets the timeout, in seconds, since the button is pressed until the
6284 * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6285 * won't be any delay and the even will be fired the moment the button is
6288 * @param obj The button object
6289 * @param t Timeout in seconds
6291 * @see elm_button_autorepeat_set()
6292 * @see elm_button_autorepeat_gap_timeout_set()
6294 EAPI void elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6296 * Get the initial timeout before the autorepeat event is generated
6298 * @param obj The button object
6299 * @return Timeout in seconds
6301 * @see elm_button_autorepeat_initial_timeout_set()
6303 EAPI double elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6305 * Set the interval between each generated autorepeat event
6307 * After the first @c repeated event is fired, all subsequent ones will
6308 * follow after a delay of @p t seconds for each.
6310 * @param obj The button object
6311 * @param t Interval in seconds
6313 * @see elm_button_autorepeat_initial_timeout_set()
6315 EAPI void elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6317 * Get the interval between each generated autorepeat event
6319 * @param obj The button object
6320 * @return Interval in seconds
6322 EAPI double elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6328 * @defgroup File_Selector_Button File Selector Button
6330 * @image html img/widget/fileselector_button/preview-00.png
6331 * @image latex img/widget/fileselector_button/preview-00.eps
6332 * @image html img/widget/fileselector_button/preview-01.png
6333 * @image latex img/widget/fileselector_button/preview-01.eps
6334 * @image html img/widget/fileselector_button/preview-02.png
6335 * @image latex img/widget/fileselector_button/preview-02.eps
6337 * This is a button that, when clicked, creates an Elementary
6338 * window (or inner window) <b> with a @ref Fileselector "file
6339 * selector widget" within</b>. When a file is chosen, the (inner)
6340 * window is closed and the button emits a signal having the
6341 * selected file as it's @c event_info.
6343 * This widget encapsulates operations on its internal file
6344 * selector on its own API. There is less control over its file
6345 * selector than that one would have instatiating one directly.
6347 * The following styles are available for this button:
6350 * @li @c "hoversel_vertical"
6351 * @li @c "hoversel_vertical_entry"
6353 * Smart callbacks one can register to:
6354 * - @c "file,chosen" - the user has selected a path, whose string
6355 * pointer comes as the @c event_info data (a stringshared
6358 * Here is an example on its usage:
6359 * @li @ref fileselector_button_example
6361 * @see @ref File_Selector_Entry for a similar widget.
6366 * Add a new file selector button widget to the given parent
6367 * Elementary (container) object
6369 * @param parent The parent object
6370 * @return a new file selector button widget handle or @c NULL, on
6373 EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6376 * Set the label for a given file selector button widget
6378 * @param obj The file selector button widget
6379 * @param label The text label to be displayed on @p obj
6381 * @deprecated use elm_object_text_set() instead.
6383 EINA_DEPRECATED EAPI void elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6386 * Get the label set for a given file selector button widget
6388 * @param obj The file selector button widget
6389 * @return The button label
6391 * @deprecated use elm_object_text_set() instead.
6393 EINA_DEPRECATED EAPI const char *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6396 * Set the icon on a given file selector button widget
6398 * @param obj The file selector button widget
6399 * @param icon The icon object for the button
6401 * Once the icon object is set, a previously set one will be
6402 * deleted. If you want to keep the latter, use the
6403 * elm_fileselector_button_icon_unset() function.
6405 * @see elm_fileselector_button_icon_get()
6407 EAPI void elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6410 * Get the icon set for a given file selector button widget
6412 * @param obj The file selector button widget
6413 * @return The icon object currently set on @p obj or @c NULL, if
6416 * @see elm_fileselector_button_icon_set()
6418 EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6421 * Unset the icon used in a given file selector button widget
6423 * @param obj The file selector button widget
6424 * @return The icon object that was being used on @p obj or @c
6427 * Unparent and return the icon object which was set for this
6430 * @see elm_fileselector_button_icon_set()
6432 EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6435 * Set the title for a given file selector button widget's window
6437 * @param obj The file selector button widget
6438 * @param title The title string
6440 * This will change the window's title, when the file selector pops
6441 * out after a click on the button. Those windows have the default
6442 * (unlocalized) value of @c "Select a file" as titles.
6444 * @note It will only take any effect if the file selector
6445 * button widget is @b not under "inwin mode".
6447 * @see elm_fileselector_button_window_title_get()
6449 EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6452 * Get the title set for a given file selector button widget's
6455 * @param obj The file selector button widget
6456 * @return Title of the file selector button's window
6458 * @see elm_fileselector_button_window_title_get() for more details
6460 EAPI const char *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6463 * Set the size of a given file selector button widget's window,
6464 * holding the file selector itself.
6466 * @param obj The file selector button widget
6467 * @param width The window's width
6468 * @param height The window's height
6470 * @note it will only take any effect if the file selector button
6471 * widget is @b not under "inwin mode". The default size for the
6472 * window (when applicable) is 400x400 pixels.
6474 * @see elm_fileselector_button_window_size_get()
6476 EAPI void elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6479 * Get the size of a given file selector button widget's window,
6480 * holding the file selector itself.
6482 * @param obj The file selector button widget
6483 * @param width Pointer into which to store the width value
6484 * @param height Pointer into which to store the height value
6486 * @note Use @c NULL pointers on the size values you're not
6487 * interested in: they'll be ignored by the function.
6489 * @see elm_fileselector_button_window_size_set(), for more details
6491 EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6494 * Set the initial file system path for a given file selector
6497 * @param obj The file selector button widget
6498 * @param path The path string
6500 * It must be a <b>directory</b> path, which will have the contents
6501 * displayed initially in the file selector's view, when invoked
6502 * from @p obj. The default initial path is the @c "HOME"
6503 * environment variable's value.
6505 * @see elm_fileselector_button_path_get()
6507 EAPI void elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6510 * Get the initial file system path set for a given file selector
6513 * @param obj The file selector button widget
6514 * @return path The path string
6516 * @see elm_fileselector_button_path_set() for more details
6518 EAPI const char *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6521 * Enable/disable a tree view in the given file selector button
6522 * widget's internal file selector
6524 * @param obj The file selector button widget
6525 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6528 * This has the same effect as elm_fileselector_expandable_set(),
6529 * but now applied to a file selector button's internal file
6532 * @note There's no way to put a file selector button's internal
6533 * file selector in "grid mode", as one may do with "pure" file
6536 * @see elm_fileselector_expandable_get()
6538 EAPI void elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6541 * Get whether tree view is enabled for the given file selector
6542 * button widget's internal file selector
6544 * @param obj The file selector button widget
6545 * @return @c EINA_TRUE if @p obj widget's internal file selector
6546 * is in tree view, @c EINA_FALSE otherwise (and or errors)
6548 * @see elm_fileselector_expandable_set() for more details
6550 EAPI Eina_Bool elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6553 * Set whether a given file selector button widget's internal file
6554 * selector is to display folders only or the directory contents,
6557 * @param obj The file selector button widget
6558 * @param only @c EINA_TRUE to make @p obj widget's internal file
6559 * selector only display directories, @c EINA_FALSE to make files
6560 * to be displayed in it too
6562 * This has the same effect as elm_fileselector_folder_only_set(),
6563 * but now applied to a file selector button's internal file
6566 * @see elm_fileselector_folder_only_get()
6568 EAPI void elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6571 * Get whether a given file selector button widget's internal file
6572 * selector is displaying folders only or the directory contents,
6575 * @param obj The file selector button widget
6576 * @return @c EINA_TRUE if @p obj widget's internal file
6577 * selector is only displaying directories, @c EINA_FALSE if files
6578 * are being displayed in it too (and on errors)
6580 * @see elm_fileselector_button_folder_only_set() for more details
6582 EAPI Eina_Bool elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6585 * Enable/disable the file name entry box where the user can type
6586 * in a name for a file, in a given file selector button widget's
6587 * internal file selector.
6589 * @param obj The file selector button widget
6590 * @param is_save @c EINA_TRUE to make @p obj widget's internal
6591 * file selector a "saving dialog", @c EINA_FALSE otherwise
6593 * This has the same effect as elm_fileselector_is_save_set(),
6594 * but now applied to a file selector button's internal file
6597 * @see elm_fileselector_is_save_get()
6599 EAPI void elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6602 * Get whether the given file selector button widget's internal
6603 * file selector is in "saving dialog" mode
6605 * @param obj The file selector button widget
6606 * @return @c EINA_TRUE, if @p obj widget's internal file selector
6607 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6610 * @see elm_fileselector_button_is_save_set() for more details
6612 EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6615 * Set whether a given file selector button widget's internal file
6616 * selector will raise an Elementary "inner window", instead of a
6617 * dedicated Elementary window. By default, it won't.
6619 * @param obj The file selector button widget
6620 * @param value @c EINA_TRUE to make it use an inner window, @c
6621 * EINA_TRUE to make it use a dedicated window
6623 * @see elm_win_inwin_add() for more information on inner windows
6624 * @see elm_fileselector_button_inwin_mode_get()
6626 EAPI void elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6629 * Get whether a given file selector button widget's internal file
6630 * selector will raise an Elementary "inner window", instead of a
6631 * dedicated Elementary window.
6633 * @param obj The file selector button widget
6634 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6635 * if it will use a dedicated window
6637 * @see elm_fileselector_button_inwin_mode_set() for more details
6639 EAPI Eina_Bool elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6646 * @defgroup File_Selector_Entry File Selector Entry
6648 * @image html img/widget/fileselector_entry/preview-00.png
6649 * @image latex img/widget/fileselector_entry/preview-00.eps
6651 * This is an entry made to be filled with or display a <b>file
6652 * system path string</b>. Besides the entry itself, the widget has
6653 * a @ref File_Selector_Button "file selector button" on its side,
6654 * which will raise an internal @ref Fileselector "file selector widget",
6655 * when clicked, for path selection aided by file system
6658 * This file selector may appear in an Elementary window or in an
6659 * inner window. When a file is chosen from it, the (inner) window
6660 * is closed and the selected file's path string is exposed both as
6661 * an smart event and as the new text on the entry.
6663 * This widget encapsulates operations on its internal file
6664 * selector on its own API. There is less control over its file
6665 * selector than that one would have instatiating one directly.
6667 * Smart callbacks one can register to:
6668 * - @c "changed" - The text within the entry was changed
6669 * - @c "activated" - The entry has had editing finished and
6670 * changes are to be "committed"
6671 * - @c "press" - The entry has been clicked
6672 * - @c "longpressed" - The entry has been clicked (and held) for a
6674 * - @c "clicked" - The entry has been clicked
6675 * - @c "clicked,double" - The entry has been double clicked
6676 * - @c "focused" - The entry has received focus
6677 * - @c "unfocused" - The entry has lost focus
6678 * - @c "selection,paste" - A paste action has occurred on the
6680 * - @c "selection,copy" - A copy action has occurred on the entry
6681 * - @c "selection,cut" - A cut action has occurred on the entry
6682 * - @c "unpressed" - The file selector entry's button was released
6683 * after being pressed.
6684 * - @c "file,chosen" - The user has selected a path via the file
6685 * selector entry's internal file selector, whose string pointer
6686 * comes as the @c event_info data (a stringshared string)
6688 * Here is an example on its usage:
6689 * @li @ref fileselector_entry_example
6691 * @see @ref File_Selector_Button for a similar widget.
6696 * Add a new file selector entry widget to the given parent
6697 * Elementary (container) object
6699 * @param parent The parent object
6700 * @return a new file selector entry widget handle or @c NULL, on
6703 EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6706 * Set the label for a given file selector entry widget's button
6708 * @param obj The file selector entry widget
6709 * @param label The text label to be displayed on @p obj widget's
6712 * @deprecated use elm_object_text_set() instead.
6714 EINA_DEPRECATED EAPI void elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6717 * Get the label set for a given file selector entry widget's button
6719 * @param obj The file selector entry widget
6720 * @return The widget button's label
6722 * @deprecated use elm_object_text_set() instead.
6724 EINA_DEPRECATED EAPI const char *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6727 * Set the icon on a given file selector entry widget's button
6729 * @param obj The file selector entry widget
6730 * @param icon The icon object for the entry's button
6732 * Once the icon object is set, a previously set one will be
6733 * deleted. If you want to keep the latter, use the
6734 * elm_fileselector_entry_button_icon_unset() function.
6736 * @see elm_fileselector_entry_button_icon_get()
6738 EAPI void elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6741 * Get the icon set for a given file selector entry widget's button
6743 * @param obj The file selector entry widget
6744 * @return The icon object currently set on @p obj widget's button
6745 * or @c NULL, if none is
6747 * @see elm_fileselector_entry_button_icon_set()
6749 EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6752 * Unset the icon used in a given file selector entry widget's
6755 * @param obj The file selector entry widget
6756 * @return The icon object that was being used on @p obj widget's
6757 * button or @c NULL, on errors
6759 * Unparent and return the icon object which was set for this
6762 * @see elm_fileselector_entry_button_icon_set()
6764 EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6767 * Set the title for a given file selector entry widget's window
6769 * @param obj The file selector entry widget
6770 * @param title The title string
6772 * This will change the window's title, when the file selector pops
6773 * out after a click on the entry's button. Those windows have the
6774 * default (unlocalized) value of @c "Select a file" as titles.
6776 * @note It will only take any effect if the file selector
6777 * entry widget is @b not under "inwin mode".
6779 * @see elm_fileselector_entry_window_title_get()
6781 EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6784 * Get the title set for a given file selector entry widget's
6787 * @param obj The file selector entry widget
6788 * @return Title of the file selector entry's window
6790 * @see elm_fileselector_entry_window_title_get() for more details
6792 EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6795 * Set the size of a given file selector entry widget's window,
6796 * holding the file selector itself.
6798 * @param obj The file selector entry widget
6799 * @param width The window's width
6800 * @param height The window's height
6802 * @note it will only take any effect if the file selector entry
6803 * widget is @b not under "inwin mode". The default size for the
6804 * window (when applicable) is 400x400 pixels.
6806 * @see elm_fileselector_entry_window_size_get()
6808 EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6811 * Get the size of a given file selector entry widget's window,
6812 * holding the file selector itself.
6814 * @param obj The file selector entry widget
6815 * @param width Pointer into which to store the width value
6816 * @param height Pointer into which to store the height value
6818 * @note Use @c NULL pointers on the size values you're not
6819 * interested in: they'll be ignored by the function.
6821 * @see elm_fileselector_entry_window_size_set(), for more details
6823 EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6826 * Set the initial file system path and the entry's path string for
6827 * a given file selector entry widget
6829 * @param obj The file selector entry widget
6830 * @param path The path string
6832 * It must be a <b>directory</b> path, which will have the contents
6833 * displayed initially in the file selector's view, when invoked
6834 * from @p obj. The default initial path is the @c "HOME"
6835 * environment variable's value.
6837 * @see elm_fileselector_entry_path_get()
6839 EAPI void elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6842 * Get the entry's path string for a given file selector entry
6845 * @param obj The file selector entry widget
6846 * @return path The path string
6848 * @see elm_fileselector_entry_path_set() for more details
6850 EAPI const char *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6853 * Enable/disable a tree view in the given file selector entry
6854 * widget's internal file selector
6856 * @param obj The file selector entry widget
6857 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6860 * This has the same effect as elm_fileselector_expandable_set(),
6861 * but now applied to a file selector entry's internal file
6864 * @note There's no way to put a file selector entry's internal
6865 * file selector in "grid mode", as one may do with "pure" file
6868 * @see elm_fileselector_expandable_get()
6870 EAPI void elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6873 * Get whether tree view is enabled for the given file selector
6874 * entry widget's internal file selector
6876 * @param obj The file selector entry widget
6877 * @return @c EINA_TRUE if @p obj widget's internal file selector
6878 * is in tree view, @c EINA_FALSE otherwise (and or errors)
6880 * @see elm_fileselector_expandable_set() for more details
6882 EAPI Eina_Bool elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6885 * Set whether a given file selector entry widget's internal file
6886 * selector is to display folders only or the directory contents,
6889 * @param obj The file selector entry widget
6890 * @param only @c EINA_TRUE to make @p obj widget's internal file
6891 * selector only display directories, @c EINA_FALSE to make files
6892 * to be displayed in it too
6894 * This has the same effect as elm_fileselector_folder_only_set(),
6895 * but now applied to a file selector entry's internal file
6898 * @see elm_fileselector_folder_only_get()
6900 EAPI void elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6903 * Get whether a given file selector entry widget's internal file
6904 * selector is displaying folders only or the directory contents,
6907 * @param obj The file selector entry widget
6908 * @return @c EINA_TRUE if @p obj widget's internal file
6909 * selector is only displaying directories, @c EINA_FALSE if files
6910 * are being displayed in it too (and on errors)
6912 * @see elm_fileselector_entry_folder_only_set() for more details
6914 EAPI Eina_Bool elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6917 * Enable/disable the file name entry box where the user can type
6918 * in a name for a file, in a given file selector entry widget's
6919 * internal file selector.
6921 * @param obj The file selector entry widget
6922 * @param is_save @c EINA_TRUE to make @p obj widget's internal
6923 * file selector a "saving dialog", @c EINA_FALSE otherwise
6925 * This has the same effect as elm_fileselector_is_save_set(),
6926 * but now applied to a file selector entry's internal file
6929 * @see elm_fileselector_is_save_get()
6931 EAPI void elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6934 * Get whether the given file selector entry widget's internal
6935 * file selector is in "saving dialog" mode
6937 * @param obj The file selector entry widget
6938 * @return @c EINA_TRUE, if @p obj widget's internal file selector
6939 * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6942 * @see elm_fileselector_entry_is_save_set() for more details
6944 EAPI Eina_Bool elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6947 * Set whether a given file selector entry widget's internal file
6948 * selector will raise an Elementary "inner window", instead of a
6949 * dedicated Elementary window. By default, it won't.
6951 * @param obj The file selector entry widget
6952 * @param value @c EINA_TRUE to make it use an inner window, @c
6953 * EINA_TRUE to make it use a dedicated window
6955 * @see elm_win_inwin_add() for more information on inner windows
6956 * @see elm_fileselector_entry_inwin_mode_get()
6958 EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6961 * Get whether a given file selector entry widget's internal file
6962 * selector will raise an Elementary "inner window", instead of a
6963 * dedicated Elementary window.
6965 * @param obj The file selector entry widget
6966 * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6967 * if it will use a dedicated window
6969 * @see elm_fileselector_entry_inwin_mode_set() for more details
6971 EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6974 * Set the initial file system path for a given file selector entry
6977 * @param obj The file selector entry widget
6978 * @param path The path string
6980 * It must be a <b>directory</b> path, which will have the contents
6981 * displayed initially in the file selector's view, when invoked
6982 * from @p obj. The default initial path is the @c "HOME"
6983 * environment variable's value.
6985 * @see elm_fileselector_entry_path_get()
6987 EAPI void elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6990 * Get the parent directory's path to the latest file selection on
6991 * a given filer selector entry widget
6993 * @param obj The file selector object
6994 * @return The (full) path of the directory of the last selection
6995 * on @p obj widget, a @b stringshared string
6997 * @see elm_fileselector_entry_path_set()
6999 EAPI const char *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7006 * @defgroup Scroller Scroller
7008 * A scroller holds a single object and "scrolls it around". This means that
7009 * it allows the user to use a scrollbar (or a finger) to drag the viewable
7010 * region around, allowing to move through a much larger object that is
7011 * contained in the scroller. The scroller will always have a small minimum
7012 * size by default as it won't be limited by the contents of the scroller.
7014 * Signals that you can add callbacks for are:
7015 * @li "edge,left" - the left edge of the content has been reached
7016 * @li "edge,right" - the right edge of the content has been reached
7017 * @li "edge,top" - the top edge of the content has been reached
7018 * @li "edge,bottom" - the bottom edge of the content has been reached
7019 * @li "scroll" - the content has been scrolled (moved)
7020 * @li "scroll,anim,start" - scrolling animation has started
7021 * @li "scroll,anim,stop" - scrolling animation has stopped
7022 * @li "scroll,drag,start" - dragging the contents around has started
7023 * @li "scroll,drag,stop" - dragging the contents around has stopped
7024 * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
7027 * @note When Elemementary is in embedded mode the scrollbars will not be
7028 * dragable, they appear merely as indicators of how much has been scrolled.
7029 * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
7030 * fingerscroll) won't work.
7032 * Default contents parts of the scroller widget that you can use for are:
7033 * @li "default" - A content of the scroller
7035 * In @ref tutorial_scroller you'll find an example of how to use most of
7040 * @brief Type that controls when scrollbars should appear.
7042 * @see elm_scroller_policy_set()
7044 typedef enum _Elm_Scroller_Policy
7046 ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
7047 ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
7048 ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
7049 ELM_SCROLLER_POLICY_LAST
7050 } Elm_Scroller_Policy;
7052 * @brief Add a new scroller to the parent
7054 * @param parent The parent object
7055 * @return The new object or NULL if it cannot be created
7057 EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7059 * @brief Set the content of the scroller widget (the object to be scrolled around).
7061 * @param obj The scroller object
7062 * @param content The new content object
7064 * Once the content object is set, a previously set one will be deleted.
7065 * If you want to keep that old content object, use the
7066 * elm_scroller_content_unset() function.
7067 * @deprecated use elm_object_content_set() instead
7069 EINA_DEPRECATED EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
7071 * @brief Get the content of the scroller widget
7073 * @param obj The slider object
7074 * @return The content that is being used
7076 * Return the content object which is set for this widget
7078 * @see elm_scroller_content_set()
7079 * @deprecated use elm_object_content_get() instead.
7081 EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7083 * @brief Unset the content of the scroller widget
7085 * @param obj The slider object
7086 * @return The content that was being used
7088 * Unparent and return the content object which was set for this widget
7090 * @see elm_scroller_content_set()
7091 * @deprecated use elm_object_content_unset() instead.
7093 EINA_DEPRECATED EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7095 * @brief Set custom theme elements for the scroller
7097 * @param obj The scroller object
7098 * @param widget The widget name to use (default is "scroller")
7099 * @param base The base name to use (default is "base")
7101 EAPI void elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
7103 * @brief Make the scroller minimum size limited to the minimum size of the content
7105 * @param obj The scroller object
7106 * @param w Enable limiting minimum size horizontally
7107 * @param h Enable limiting minimum size vertically
7109 * By default the scroller will be as small as its design allows,
7110 * irrespective of its content. This will make the scroller minimum size the
7111 * right size horizontally and/or vertically to perfectly fit its content in
7114 EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
7116 * @brief Show a specific virtual region within the scroller content object
7118 * @param obj The scroller object
7119 * @param x X coordinate of the region
7120 * @param y Y coordinate of the region
7121 * @param w Width of the region
7122 * @param h Height of the region
7124 * This will ensure all (or part if it does not fit) of the designated
7125 * region in the virtual content object (0, 0 starting at the top-left of the
7126 * virtual content object) is shown within the scroller.
7128 EAPI void elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7130 * @brief Set the scrollbar visibility policy
7132 * @param obj The scroller object
7133 * @param policy_h Horizontal scrollbar policy
7134 * @param policy_v Vertical scrollbar policy
7136 * This sets the scrollbar visibility policy for the given scroller.
7137 * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
7138 * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
7139 * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
7140 * respectively for the horizontal and vertical scrollbars.
7142 EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
7144 * @brief Gets scrollbar visibility policy
7146 * @param obj The scroller object
7147 * @param policy_h Horizontal scrollbar policy
7148 * @param policy_v Vertical scrollbar policy
7150 * @see elm_scroller_policy_set()
7152 EAPI void elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
7154 * @brief Get the currently visible content region
7156 * @param obj The scroller object
7157 * @param x X coordinate of the region
7158 * @param y Y coordinate of the region
7159 * @param w Width of the region
7160 * @param h Height of the region
7162 * This gets the current region in the content object that is visible through
7163 * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
7164 * w, @p h values pointed to.
7166 * @note All coordinates are relative to the content.
7168 * @see elm_scroller_region_show()
7170 EAPI void elm_scroller_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7172 * @brief Get the size of the content object
7174 * @param obj The scroller object
7175 * @param w Width of the content object.
7176 * @param h Height of the content object.
7178 * This gets the size of the content object of the scroller.
7180 EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7182 * @brief Set bouncing behavior
7184 * @param obj The scroller object
7185 * @param h_bounce Allow bounce horizontally
7186 * @param v_bounce Allow bounce vertically
7188 * When scrolling, the scroller may "bounce" when reaching an edge of the
7189 * content object. This is a visual way to indicate the end has been reached.
7190 * This is enabled by default for both axis. This API will set if it is enabled
7191 * for the given axis with the boolean parameters for each axis.
7193 EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7195 * @brief Get the bounce behaviour
7197 * @param obj The Scroller object
7198 * @param h_bounce Will the scroller bounce horizontally or not
7199 * @param v_bounce Will the scroller bounce vertically or not
7201 * @see elm_scroller_bounce_set()
7203 EAPI void elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7205 * @brief Set scroll page size relative to viewport size.
7207 * @param obj The scroller object
7208 * @param h_pagerel The horizontal page relative size
7209 * @param v_pagerel The vertical page relative size
7211 * The scroller is capable of limiting scrolling by the user to "pages". That
7212 * is to jump by and only show a "whole page" at a time as if the continuous
7213 * area of the scroller content is split into page sized pieces. This sets
7214 * the size of a page relative to the viewport of the scroller. 1.0 is "1
7215 * viewport" is size (horizontally or vertically). 0.0 turns it off in that
7216 * axis. This is mutually exclusive with page size
7217 * (see elm_scroller_page_size_set() for more information). Likewise 0.5
7218 * is "half a viewport". Sane usable values are normally between 0.0 and 1.0
7219 * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
7222 EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
7224 * @brief Set scroll page size.
7226 * @param obj The scroller object
7227 * @param h_pagesize The horizontal page size
7228 * @param v_pagesize The vertical page size
7230 * This sets the page size to an absolute fixed value, with 0 turning it off
7233 * @see elm_scroller_page_relative_set()
7235 EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7237 * @brief Get scroll current page number.
7239 * @param obj The scroller object
7240 * @param h_pagenumber The horizontal page number
7241 * @param v_pagenumber The vertical page number
7243 * The page number starts from 0. 0 is the first page.
7244 * Current page means the page which meets the top-left of the viewport.
7245 * If there are two or more pages in the viewport, it returns the number of the page
7246 * which meets the top-left of the viewport.
7248 * @see elm_scroller_last_page_get()
7249 * @see elm_scroller_page_show()
7250 * @see elm_scroller_page_brint_in()
7252 EAPI void elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7254 * @brief Get scroll last page number.
7256 * @param obj The scroller object
7257 * @param h_pagenumber The horizontal page number
7258 * @param v_pagenumber The vertical page number
7260 * The page number starts from 0. 0 is the first page.
7261 * This returns the last page number among the pages.
7263 * @see elm_scroller_current_page_get()
7264 * @see elm_scroller_page_show()
7265 * @see elm_scroller_page_brint_in()
7267 EAPI void elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7269 * Show a specific virtual region within the scroller content object by page number.
7271 * @param obj The scroller object
7272 * @param h_pagenumber The horizontal page number
7273 * @param v_pagenumber The vertical page number
7275 * 0, 0 of the indicated page is located at the top-left of the viewport.
7276 * This will jump to the page directly without animation.
7281 * sc = elm_scroller_add(win);
7282 * elm_scroller_content_set(sc, content);
7283 * elm_scroller_page_relative_set(sc, 1, 0);
7284 * elm_scroller_current_page_get(sc, &h_page, &v_page);
7285 * elm_scroller_page_show(sc, h_page + 1, v_page);
7288 * @see elm_scroller_page_bring_in()
7290 EAPI void elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7292 * Show a specific virtual region within the scroller content object by page number.
7294 * @param obj The scroller object
7295 * @param h_pagenumber The horizontal page number
7296 * @param v_pagenumber The vertical page number
7298 * 0, 0 of the indicated page is located at the top-left of the viewport.
7299 * This will slide to the page with animation.
7304 * sc = elm_scroller_add(win);
7305 * elm_scroller_content_set(sc, content);
7306 * elm_scroller_page_relative_set(sc, 1, 0);
7307 * elm_scroller_last_page_get(sc, &h_page, &v_page);
7308 * elm_scroller_page_bring_in(sc, h_page, v_page);
7311 * @see elm_scroller_page_show()
7313 EAPI void elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7315 * @brief Show a specific virtual region within the scroller content object.
7317 * @param obj The scroller object
7318 * @param x X coordinate of the region
7319 * @param y Y coordinate of the region
7320 * @param w Width of the region
7321 * @param h Height of the region
7323 * This will ensure all (or part if it does not fit) of the designated
7324 * region in the virtual content object (0, 0 starting at the top-left of the
7325 * virtual content object) is shown within the scroller. Unlike
7326 * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7327 * to this location (if configuration in general calls for transitions). It
7328 * may not jump immediately to the new location and make take a while and
7329 * show other content along the way.
7331 * @see elm_scroller_region_show()
7333 EAPI void elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7335 * @brief Set event propagation on a scroller
7337 * @param obj The scroller object
7338 * @param propagation If propagation is enabled or not
7340 * This enables or disabled event propagation from the scroller content to
7341 * the scroller and its parent. By default event propagation is disabled.
7343 EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation) EINA_ARG_NONNULL(1);
7345 * @brief Get event propagation for a scroller
7347 * @param obj The scroller object
7348 * @return The propagation state
7350 * This gets the event propagation for a scroller.
7352 * @see elm_scroller_propagate_events_set()
7354 EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7356 * @brief Set scrolling gravity on a scroller
7358 * @param obj The scroller object
7359 * @param x The scrolling horizontal gravity
7360 * @param y The scrolling vertical gravity
7362 * The gravity, defines how the scroller will adjust its view
7363 * when the size of the scroller contents increase.
7365 * The scroller will adjust the view to glue itself as follows.
7367 * x=0.0, for showing the left most region of the content.
7368 * x=1.0, for showing the right most region of the content.
7369 * y=0.0, for showing the bottom most region of the content.
7370 * y=1.0, for showing the top most region of the content.
7372 * Default values for x and y are 0.0
7374 EAPI void elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
7376 * @brief Get scrolling gravity values for a scroller
7378 * @param obj The scroller object
7379 * @param x The scrolling horizontal gravity
7380 * @param y The scrolling vertical gravity
7382 * This gets gravity values for a scroller.
7384 * @see elm_scroller_gravity_set()
7387 EAPI void elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
7393 * @defgroup Label Label
7395 * @image html img/widget/label/preview-00.png
7396 * @image latex img/widget/label/preview-00.eps
7398 * @brief Widget to display text, with simple html-like markup.
7400 * The Label widget @b doesn't allow text to overflow its boundaries, if the
7401 * text doesn't fit the geometry of the label it will be ellipsized or be
7402 * cut. Elementary provides several themes for this widget:
7403 * @li default - No animation
7404 * @li marker - Centers the text in the label and make it bold by default
7405 * @li slide_long - The entire text appears from the right of the screen and
7406 * slides until it disappears in the left of the screen(reappering on the
7408 * @li slide_short - The text appears in the left of the label and slides to
7409 * the right to show the overflow. When all of the text has been shown the
7410 * position is reset.
7411 * @li slide_bounce - The text appears in the left of the label and slides to
7412 * the right to show the overflow. When all of the text has been shown the
7413 * animation reverses, moving the text to the left.
7415 * Custom themes can of course invent new markup tags and style them any way
7418 * The following signals may be emitted by the label widget:
7419 * @li "language,changed": The program's language changed.
7421 * See @ref tutorial_label for a demonstration of how to use a label widget.
7425 * @brief Add a new label to the parent
7427 * @param parent The parent object
7428 * @return The new object or NULL if it cannot be created
7430 EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7432 * @brief Set the label on the label object
7434 * @param obj The label object
7435 * @param label The label will be used on the label object
7436 * @deprecated See elm_object_text_set()
7438 EINA_DEPRECATED EAPI void elm_label_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_set instead */
7440 * @brief Get the label used on the label object
7442 * @param obj The label object
7443 * @return The string inside the label
7444 * @deprecated See elm_object_text_get()
7446 EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7448 * @brief Set the wrapping behavior of the label
7450 * @param obj The label object
7451 * @param wrap To wrap text or not
7453 * By default no wrapping is done. Possible values for @p wrap are:
7454 * @li ELM_WRAP_NONE - No wrapping
7455 * @li ELM_WRAP_CHAR - wrap between characters
7456 * @li ELM_WRAP_WORD - wrap between words
7457 * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7459 EAPI void elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7461 * @brief Get the wrapping behavior of the label
7463 * @param obj The label object
7466 * @see elm_label_line_wrap_set()
7468 EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7470 * @brief Set wrap width of the label
7472 * @param obj The label object
7473 * @param w The wrap width in pixels at a minimum where words need to wrap
7475 * This function sets the maximum width size hint of the label.
7477 * @warning This is only relevant if the label is inside a container.
7479 EAPI void elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7481 * @brief Get wrap width of the label
7483 * @param obj The label object
7484 * @return The wrap width in pixels at a minimum where words need to wrap
7486 * @see elm_label_wrap_width_set()
7488 EAPI Evas_Coord elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7490 * @brief Set wrap height of the label
7492 * @param obj The label object
7493 * @param h The wrap height in pixels at a minimum where words need to wrap
7495 * This function sets the maximum height size hint of the label.
7497 * @warning This is only relevant if the label is inside a container.
7499 EAPI void elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7501 * @brief get wrap width of the label
7503 * @param obj The label object
7504 * @return The wrap height in pixels at a minimum where words need to wrap
7506 EAPI Evas_Coord elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7508 * @brief Set the font size on the label object.
7510 * @param obj The label object
7511 * @param size font size
7513 * @warning NEVER use this. It is for hyper-special cases only. use styles
7514 * instead. e.g. "big", "medium", "small" - or better name them by use:
7515 * "title", "footnote", "quote" etc.
7517 EAPI void elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7519 * @brief Set the text color on the label object
7521 * @param obj The label object
7522 * @param r Red property background color of The label object
7523 * @param g Green property background color of The label object
7524 * @param b Blue property background color of The label object
7525 * @param a Alpha property background color of The label object
7527 * @warning NEVER use this. It is for hyper-special cases only. use styles
7528 * instead. e.g. "big", "medium", "small" - or better name them by use:
7529 * "title", "footnote", "quote" etc.
7531 EAPI void elm_label_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a) EINA_ARG_NONNULL(1);
7533 * @brief Set the text align on the label object
7535 * @param obj The label object
7536 * @param align align mode ("left", "center", "right")
7538 * @warning NEVER use this. It is for hyper-special cases only. use styles
7539 * instead. e.g. "big", "medium", "small" - or better name them by use:
7540 * "title", "footnote", "quote" etc.
7542 EAPI void elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7544 * @brief Set background color of the label
7546 * @param obj The label object
7547 * @param r Red property background color of The label object
7548 * @param g Green property background color of The label object
7549 * @param b Blue property background color of The label object
7550 * @param a Alpha property background alpha of The label object
7552 * @warning NEVER use this. It is for hyper-special cases only. use styles
7553 * instead. e.g. "big", "medium", "small" - or better name them by use:
7554 * "title", "footnote", "quote" etc.
7556 EAPI void elm_label_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a) EINA_ARG_NONNULL(1);
7558 * @brief Set the ellipsis behavior of the label
7560 * @param obj The label object
7561 * @param ellipsis To ellipsis text or not
7563 * If set to true and the text doesn't fit in the label an ellipsis("...")
7564 * will be shown at the end of the widget.
7566 * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7567 * choosen wrap method was ELM_WRAP_WORD.
7569 EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7571 * @brief Set the text slide of the label
7573 * @param obj The label object
7574 * @param slide To start slide or stop
7576 * If set to true, the text of the label will slide/scroll through the length of
7579 * @warning This only works with the themes "slide_short", "slide_long" and
7582 EAPI void elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7584 * @brief Get the text slide mode of the label
7586 * @param obj The label object
7587 * @return slide slide mode value
7589 * @see elm_label_slide_set()
7591 EAPI Eina_Bool elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7593 * @brief Set the slide duration(speed) of the label
7595 * @param obj The label object
7596 * @return The duration in seconds in moving text from slide begin position
7597 * to slide end position
7599 EAPI void elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7601 * @brief Get the slide duration(speed) of the label
7603 * @param obj The label object
7604 * @return The duration time in moving text from slide begin position to slide end position
7606 * @see elm_label_slide_duration_set()
7608 EAPI double elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7614 * @defgroup Toggle Toggle
7616 * @image html img/widget/toggle/preview-00.png
7617 * @image latex img/widget/toggle/preview-00.eps
7619 * @brief A toggle is a slider which can be used to toggle between
7620 * two values. It has two states: on and off.
7622 * This widget is deprecated. Please use elm_check_add() instead using the
7623 * toggle style like:
7626 * obj = elm_check_add(parent);
7627 * elm_object_style_set(obj, "toggle");
7628 * elm_object_part_text_set(obj, "on", "ON");
7629 * elm_object_part_text_set(obj, "off", "OFF");
7632 * Signals that you can add callbacks for are:
7633 * @li "changed" - Whenever the toggle value has been changed. Is not called
7634 * until the toggle is released by the cursor (assuming it
7635 * has been triggered by the cursor in the first place).
7637 * Default contents parts of the toggle widget that you can use for are:
7638 * @li "icon" - A icon of the toggle
7640 * Default text parts of the toggle widget that you can use for are:
7641 * @li "elm.text" - Label of the toggle
7643 * @ref tutorial_toggle show how to use a toggle.
7647 * @brief Add a toggle to @p parent.
7649 * @param parent The parent object
7651 * @return The toggle object
7653 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7655 * @brief Sets the label to be displayed with the toggle.
7657 * @param obj The toggle object
7658 * @param label The label to be displayed
7660 * @deprecated use elm_object_text_set() instead.
7662 EINA_DEPRECATED EAPI void elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7664 * @brief Gets the label of the toggle
7666 * @param obj toggle object
7667 * @return The label of the toggle
7669 * @deprecated use elm_object_text_get() instead.
7671 EINA_DEPRECATED EAPI const char *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7673 * @brief Set the icon used for the toggle
7675 * @param obj The toggle object
7676 * @param icon The icon object for the button
7678 * Once the icon object is set, a previously set one will be deleted
7679 * If you want to keep that old content object, use the
7680 * elm_toggle_icon_unset() function.
7682 * @deprecated use elm_object_part_content_set() instead.
7684 EINA_DEPRECATED EAPI void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7686 * @brief Get the icon used for the toggle
7688 * @param obj The toggle object
7689 * @return The icon object that is being used
7691 * Return the icon object which is set for this widget.
7693 * @see elm_toggle_icon_set()
7695 * @deprecated use elm_object_part_content_get() instead.
7697 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7699 * @brief Unset the icon used for the toggle
7701 * @param obj The toggle object
7702 * @return The icon object that was being used
7704 * Unparent and return the icon object which was set for this widget.
7706 * @see elm_toggle_icon_set()
7708 * @deprecated use elm_object_part_content_unset() instead.
7710 EINA_DEPRECATED EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7712 * @brief Sets the labels to be associated with the on and off states of the toggle.
7714 * @param obj The toggle object
7715 * @param onlabel The label displayed when the toggle is in the "on" state
7716 * @param offlabel The label displayed when the toggle is in the "off" state
7718 * @deprecated use elm_object_part_text_set() for "on" and "off" parts
7721 EINA_DEPRECATED EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7723 * @brief Gets the labels associated with the on and off states of the
7726 * @param obj The toggle object
7727 * @param onlabel A char** to place the onlabel of @p obj into
7728 * @param offlabel A char** to place the offlabel of @p obj into
7730 * @deprecated use elm_object_part_text_get() for "on" and "off" parts
7733 EINA_DEPRECATED EAPI void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7735 * @brief Sets the state of the toggle to @p state.
7737 * @param obj The toggle object
7738 * @param state The state of @p obj
7740 * @deprecated use elm_check_state_set() instead.
7742 EINA_DEPRECATED EAPI void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7744 * @brief Gets the state of the toggle to @p state.
7746 * @param obj The toggle object
7747 * @return The state of @p obj
7749 * @deprecated use elm_check_state_get() instead.
7751 EINA_DEPRECATED EAPI Eina_Bool elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7753 * @brief Sets the state pointer of the toggle to @p statep.
7755 * @param obj The toggle object
7756 * @param statep The state pointer of @p obj
7758 * @deprecated use elm_check_state_pointer_set() instead.
7760 EINA_DEPRECATED EAPI void elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7766 * @defgroup Frame Frame
7768 * @image html img/widget/frame/preview-00.png
7769 * @image latex img/widget/frame/preview-00.eps
7771 * @brief Frame is a widget that holds some content and has a title.
7773 * The default look is a frame with a title, but Frame supports multple
7781 * @li outdent_bottom
7783 * Of all this styles only default shows the title. Frame emits no signals.
7785 * Default contents parts of the frame widget that you can use for are:
7786 * @li "default" - A content of the frame
7788 * Default text parts of the frame widget that you can use for are:
7789 * @li "elm.text" - Label of the frame
7791 * For a detailed example see the @ref tutorial_frame.
7796 * @brief Add a new frame to the parent
7798 * @param parent The parent object
7799 * @return The new object or NULL if it cannot be created
7801 EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7803 * @brief Set the frame label
7805 * @param obj The frame object
7806 * @param label The label of this frame object
7808 * @deprecated use elm_object_text_set() instead.
7810 EINA_DEPRECATED EAPI void elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7812 * @brief Get the frame label
7814 * @param obj The frame object
7816 * @return The label of this frame objet or NULL if unable to get frame
7818 * @deprecated use elm_object_text_get() instead.
7820 EINA_DEPRECATED EAPI const char *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7822 * @brief Set the content of the frame widget
7824 * Once the content object is set, a previously set one will be deleted.
7825 * If you want to keep that old content object, use the
7826 * elm_frame_content_unset() function.
7828 * @param obj The frame object
7829 * @param content The content will be filled in this frame object
7831 * @deprecated use elm_object_content_set() instead.
7833 EINA_DEPRECATED EAPI void elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7835 * @brief Get the content of the frame widget
7837 * Return the content object which is set for this widget
7839 * @param obj The frame object
7840 * @return The content that is being used
7842 * @deprecated use elm_object_content_get() instead.
7844 EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7846 * @brief Unset the content of the frame widget
7848 * Unparent and return the content object which was set for this widget
7850 * @param obj The frame object
7851 * @return The content that was being used
7853 * @deprecated use elm_object_content_unset() instead.
7855 EINA_DEPRECATED EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7861 * @defgroup Table Table
7863 * A container widget to arrange other widgets in a table where items can
7864 * also span multiple columns or rows - even overlap (and then be raised or
7865 * lowered accordingly to adjust stacking if they do overlap).
7867 * For a Table widget the row/column count is not fixed.
7868 * The table widget adjusts itself when subobjects are added to it dynamically.
7870 * The followin are examples of how to use a table:
7871 * @li @ref tutorial_table_01
7872 * @li @ref tutorial_table_02
7877 * @brief Add a new table to the parent
7879 * @param parent The parent object
7880 * @return The new object or NULL if it cannot be created
7882 EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7884 * @brief Set the homogeneous layout in the table
7886 * @param obj The layout object
7887 * @param homogeneous A boolean to set if the layout is homogeneous in the
7888 * table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
7890 EAPI void elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7892 * @brief Get the current table homogeneous mode.
7894 * @param obj The table object
7895 * @return A boolean to indicating if the layout is homogeneous in the table
7896 * (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
7898 EAPI Eina_Bool elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7900 * @warning <b>Use elm_table_homogeneous_set() instead</b>
7902 EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7904 * @warning <b>Use elm_table_homogeneous_get() instead</b>
7906 EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7908 * @brief Set padding between cells.
7910 * @param obj The layout object.
7911 * @param horizontal set the horizontal padding.
7912 * @param vertical set the vertical padding.
7914 * Default value is 0.
7916 EAPI void elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7918 * @brief Get padding between cells.
7920 * @param obj The layout object.
7921 * @param horizontal set the horizontal padding.
7922 * @param vertical set the vertical padding.
7924 EAPI void elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7926 * @brief Add a subobject on the table with the coordinates passed
7928 * @param obj The table object
7929 * @param subobj The subobject to be added to the table
7930 * @param x Row number
7931 * @param y Column number
7935 * @note All positioning inside the table is relative to rows and columns, so
7936 * a value of 0 for x and y, means the top left cell of the table, and a
7937 * value of 1 for w and h means @p subobj only takes that 1 cell.
7939 EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7941 * @brief Remove child from table.
7943 * @param obj The table object
7944 * @param subobj The subobject
7946 EAPI void elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7948 * @brief Faster way to remove all child objects from a table object.
7950 * @param obj The table object
7951 * @param clear If true, will delete children, else just remove from table.
7953 EAPI void elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7955 * @brief Set the packing location of an existing child of the table
7957 * @param subobj The subobject to be modified in the table
7958 * @param x Row number
7959 * @param y Column number
7963 * Modifies the position of an object already in the table.
7965 * @note All positioning inside the table is relative to rows and columns, so
7966 * a value of 0 for x and y, means the top left cell of the table, and a
7967 * value of 1 for w and h means @p subobj only takes that 1 cell.
7969 EAPI void elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7971 * @brief Get the packing location of an existing child of the table
7973 * @param subobj The subobject to be modified in the table
7974 * @param x Row number
7975 * @param y Column number
7979 * @see elm_table_pack_set()
7981 EAPI void elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7986 /* TEMPORARY: DOCS WILL BE FILLED IN WITH CNP/SED */
7987 typedef struct Elm_Gen_Item Elm_Gen_Item;
7988 typedef struct _Elm_Gen_Item_Class Elm_Gen_Item_Class;
7989 typedef struct _Elm_Gen_Item_Class_Func Elm_Gen_Item_Class_Func; /**< Class functions for gen item classes. */
7990 typedef char *(*Elm_Gen_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gen item classes. */
7991 typedef Evas_Object *(*Elm_Gen_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Content(swallowed object) fetching class function for gen item classes. */
7992 typedef Eina_Bool (*Elm_Gen_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for gen item classes. */
7993 typedef void (*Elm_Gen_Item_Del_Cb) (void *data, Evas_Object *obj); /**< Deletion class function for gen item classes. */
7994 struct _Elm_Gen_Item_Class
7996 const char *item_style;
7997 struct _Elm_Gen_Item_Class_Func
7999 Elm_Gen_Item_Label_Get_Cb label_get;
8000 Elm_Gen_Item_Content_Get_Cb content_get;
8001 Elm_Gen_Item_State_Get_Cb state_get;
8002 Elm_Gen_Item_Del_Cb del;
8005 EAPI void elm_gen_clear(Evas_Object *obj);
8006 EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
8007 EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
8008 EAPI void elm_gen_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
8009 EAPI Eina_Bool elm_gen_always_select_mode_get(const Evas_Object *obj);
8010 EAPI void elm_gen_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
8011 EAPI Eina_Bool elm_gen_no_select_mode_get(const Evas_Object *obj);
8012 EAPI void elm_gen_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
8013 EAPI void elm_gen_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
8014 EAPI void elm_gen_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
8015 EAPI void elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
8016 EAPI void elm_gen_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
8017 EAPI void elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8018 EAPI void elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
8019 EAPI void elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8020 EAPI void elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
8021 EAPI Elm_Gen_Item *elm_gen_first_item_get(const Evas_Object *obj);
8022 EAPI Elm_Gen_Item *elm_gen_last_item_get(const Evas_Object *obj);
8023 EAPI Elm_Gen_Item *elm_gen_item_next_get(const Elm_Gen_Item *it);
8024 EAPI Elm_Gen_Item *elm_gen_item_prev_get(const Elm_Gen_Item *it);
8025 EAPI Evas_Object *elm_gen_item_widget_get(const Elm_Gen_Item *it);
8028 * @defgroup Gengrid Gengrid (Generic grid)
8030 * This widget aims to position objects in a grid layout while
8031 * actually creating and rendering only the visible ones, using the
8032 * same idea as the @ref Genlist "genlist": the user defines a @b
8033 * class for each item, specifying functions that will be called at
8034 * object creation, deletion, etc. When those items are selected by
8035 * the user, a callback function is issued. Users may interact with
8036 * a gengrid via the mouse (by clicking on items to select them and
8037 * clicking on the grid's viewport and swiping to pan the whole
8038 * view) or via the keyboard, navigating through item with the
8041 * @section Gengrid_Layouts Gengrid layouts
8043 * Gengrid may layout its items in one of two possible layouts:
8047 * When in "horizontal mode", items will be placed in @b columns,
8048 * from top to bottom and, when the space for a column is filled,
8049 * another one is started on the right, thus expanding the grid
8050 * horizontally, making for horizontal scrolling. When in "vertical
8051 * mode" , though, items will be placed in @b rows, from left to
8052 * right and, when the space for a row is filled, another one is
8053 * started below, thus expanding the grid vertically (and making
8054 * for vertical scrolling).
8056 * @section Gengrid_Items Gengrid items
8058 * An item in a gengrid can have 0 or more text labels (they can be
8059 * regular text or textblock Evas objects - that's up to the style
8060 * to determine), 0 or more icons (which are simply objects
8061 * swallowed into the gengrid item's theming Edje object) and 0 or
8062 * more <b>boolean states</b>, which have the behavior left to the
8063 * user to define. The Edje part names for each of these properties
8064 * will be looked up, in the theme file for the gengrid, under the
8065 * Edje (string) data items named @c "labels", @c "icons" and @c
8066 * "states", respectively. For each of those properties, if more
8067 * than one part is provided, they must have names listed separated
8068 * by spaces in the data fields. For the default gengrid item
8069 * theme, we have @b one label part (@c "elm.text"), @b two icon
8070 * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
8073 * A gengrid item may be at one of several styles. Elementary
8074 * provides one by default - "default", but this can be extended by
8075 * system or application custom themes/overlays/extensions (see
8076 * @ref Theme "themes" for more details).
8078 * @section Gengrid_Item_Class Gengrid item classes
8080 * In order to have the ability to add and delete items on the fly,
8081 * gengrid implements a class (callback) system where the
8082 * application provides a structure with information about that
8083 * type of item (gengrid may contain multiple different items with
8084 * different classes, states and styles). Gengrid will call the
8085 * functions in this struct (methods) when an item is "realized"
8086 * (i.e., created dynamically, while the user is scrolling the
8087 * grid). All objects will simply be deleted when no longer needed
8088 * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
8089 * contains the following members:
8090 * - @c item_style - This is a constant string and simply defines
8091 * the name of the item style. It @b must be specified and the
8092 * default should be @c "default".
8093 * - @c func.label_get - This function is called when an item
8094 * object is actually created. The @c data parameter will point to
8095 * the same data passed to elm_gengrid_item_append() and related
8096 * item creation functions. The @c obj parameter is the gengrid
8097 * object itself, while the @c part one is the name string of one
8098 * of the existing text parts in the Edje group implementing the
8099 * item's theme. This function @b must return a strdup'()ed string,
8100 * as the caller will free() it when done. See
8101 * #Elm_Gengrid_Item_Label_Get_Cb.
8102 * - @c func.content_get - This function is called when an item object
8103 * is actually created. The @c data parameter will point to the
8104 * same data passed to elm_gengrid_item_append() and related item
8105 * creation functions. The @c obj parameter is the gengrid object
8106 * itself, while the @c part one is the name string of one of the
8107 * existing (content) swallow parts in the Edje group implementing the
8108 * item's theme. It must return @c NULL, when no content is desired,
8109 * or a valid object handle, otherwise. The object will be deleted
8110 * by the gengrid on its deletion or when the item is "unrealized".
8111 * See #Elm_Gengrid_Item_Content_Get_Cb.
8112 * - @c func.state_get - This function is called when an item
8113 * object is actually created. The @c data parameter will point to
8114 * the same data passed to elm_gengrid_item_append() and related
8115 * item creation functions. The @c obj parameter is the gengrid
8116 * object itself, while the @c part one is the name string of one
8117 * of the state parts in the Edje group implementing the item's
8118 * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
8119 * true/on. Gengrids will emit a signal to its theming Edje object
8120 * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
8121 * "source" arguments, respectively, when the state is true (the
8122 * default is false), where @c XXX is the name of the (state) part.
8123 * See #Elm_Gengrid_Item_State_Get_Cb.
8124 * - @c func.del - This is called when elm_gengrid_item_del() is
8125 * called on an item or elm_gengrid_clear() is called on the
8126 * gengrid. This is intended for use when gengrid items are
8127 * deleted, so any data attached to the item (e.g. its data
8128 * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
8130 * @section Gengrid_Usage_Hints Usage hints
8132 * If the user wants to have multiple items selected at the same
8133 * time, elm_gengrid_multi_select_set() will permit it. If the
8134 * gengrid is single-selection only (the default), then
8135 * elm_gengrid_select_item_get() will return the selected item or
8136 * @c NULL, if none is selected. If the gengrid is under
8137 * multi-selection, then elm_gengrid_selected_items_get() will
8138 * return a list (that is only valid as long as no items are
8139 * modified (added, deleted, selected or unselected) of child items
8142 * If an item changes (internal (boolean) state, label or content
8143 * changes), then use elm_gengrid_item_update() to have gengrid
8144 * update the item with the new state. A gengrid will re-"realize"
8145 * the item, thus calling the functions in the
8146 * #Elm_Gengrid_Item_Class set for that item.
8148 * To programmatically (un)select an item, use
8149 * elm_gengrid_item_selected_set(). To get its selected state use
8150 * elm_gengrid_item_selected_get(). To make an item disabled
8151 * (unable to be selected and appear differently) use
8152 * elm_gengrid_item_disabled_set() to set this and
8153 * elm_gengrid_item_disabled_get() to get the disabled state.
8155 * Grid cells will only have their selection smart callbacks called
8156 * when firstly getting selected. Any further clicks will do
8157 * nothing, unless you enable the "always select mode", with
8158 * elm_gengrid_always_select_mode_set(), thus making every click to
8159 * issue selection callbacks. elm_gengrid_no_select_mode_set() will
8160 * turn off the ability to select items entirely in the widget and
8161 * they will neither appear selected nor call the selection smart
8164 * Remember that you can create new styles and add your own theme
8165 * augmentation per application with elm_theme_extension_add(). If
8166 * you absolutely must have a specific style that overrides any
8167 * theme the user or system sets up you can use
8168 * elm_theme_overlay_add() to add such a file.
8170 * @section Gengrid_Smart_Events Gengrid smart events
8172 * Smart events that you can add callbacks for are:
8173 * - @c "activated" - The user has double-clicked or pressed
8174 * (enter|return|spacebar) on an item. The @c event_info parameter
8175 * is the gengrid item that was activated.
8176 * - @c "clicked,double" - The user has double-clicked an item.
8177 * The @c event_info parameter is the gengrid item that was double-clicked.
8178 * - @c "longpressed" - This is called when the item is pressed for a certain
8179 * amount of time. By default it's 1 second.
8180 * - @c "selected" - The user has made an item selected. The
8181 * @c event_info parameter is the gengrid item that was selected.
8182 * - @c "unselected" - The user has made an item unselected. The
8183 * @c event_info parameter is the gengrid item that was unselected.
8184 * - @c "realized" - This is called when the item in the gengrid
8185 * has its implementing Evas object instantiated, de facto. @c
8186 * event_info is the gengrid item that was created. The object
8187 * may be deleted at any time, so it is highly advised to the
8188 * caller @b not to use the object pointer returned from
8189 * elm_gengrid_item_object_get(), because it may point to freed
8191 * - @c "unrealized" - This is called when the implementing Evas
8192 * object for this item is deleted. @c event_info is the gengrid
8193 * item that was deleted.
8194 * - @c "changed" - Called when an item is added, removed, resized
8195 * or moved and when the gengrid is resized or gets "horizontal"
8197 * - @c "scroll,anim,start" - This is called when scrolling animation has
8199 * - @c "scroll,anim,stop" - This is called when scrolling animation has
8201 * - @c "drag,start,up" - Called when the item in the gengrid has
8202 * been dragged (not scrolled) up.
8203 * - @c "drag,start,down" - Called when the item in the gengrid has
8204 * been dragged (not scrolled) down.
8205 * - @c "drag,start,left" - Called when the item in the gengrid has
8206 * been dragged (not scrolled) left.
8207 * - @c "drag,start,right" - Called when the item in the gengrid has
8208 * been dragged (not scrolled) right.
8209 * - @c "drag,stop" - Called when the item in the gengrid has
8210 * stopped being dragged.
8211 * - @c "drag" - Called when the item in the gengrid is being
8213 * - @c "scroll" - called when the content has been scrolled
8215 * - @c "scroll,drag,start" - called when dragging the content has
8217 * - @c "scroll,drag,stop" - called when dragging the content has
8219 * - @c "edge,top" - This is called when the gengrid is scrolled until
8221 * - @c "edge,bottom" - This is called when the gengrid is scrolled
8222 * until the bottom edge.
8223 * - @c "edge,left" - This is called when the gengrid is scrolled
8224 * until the left edge.
8225 * - @c "edge,right" - This is called when the gengrid is scrolled
8226 * until the right edge.
8228 * List of gengrid examples:
8229 * @li @ref gengrid_example
8233 * @addtogroup Gengrid
8237 typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
8238 #define Elm_Gengrid_Item_Class Elm_Gen_Item_Class
8239 typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
8240 #define Elm_Gengrid_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
8241 typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
8243 * Label fetching class function for Elm_Gen_Item_Class.
8244 * @param data The data passed in the item creation function
8245 * @param obj The base widget object
8246 * @param part The part name of the swallow
8247 * @return The allocated (NOT stringshared) string to set as the label
8249 typedef char *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8251 * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
8252 * @param data The data passed in the item creation function
8253 * @param obj The base widget object
8254 * @param part The part name of the swallow
8255 * @return The content object to swallow
8257 typedef Evas_Object *(*Elm_Gengrid_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8259 * State fetching class function for Elm_Gen_Item_Class.
8260 * @param data The data passed in the item creation function
8261 * @param obj The base widget object
8262 * @param part The part name of the swallow
8263 * @return The hell if I know
8265 typedef Eina_Bool (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
8267 * Deletion class function for Elm_Gen_Item_Class.
8268 * @param data The data passed in the item creation function
8269 * @param obj The base widget object
8271 typedef void (*Elm_Gengrid_Item_Del_Cb) (void *data, Evas_Object *obj);
8274 * @struct _Elm_Gengrid_Item_Class
8276 * Gengrid item class definition. See @ref Gengrid_Item_Class for
8279 struct _Elm_Gengrid_Item_Class
8281 const char *item_style;
8282 struct _Elm_Gengrid_Item_Class_Func
8284 Elm_Gengrid_Item_Label_Get_Cb label_get;
8285 Elm_Gengrid_Item_Content_Get_Cb content_get;
8286 Elm_Gengrid_Item_State_Get_Cb state_get;
8287 Elm_Gengrid_Item_Del_Cb del;
8289 }; /**< #Elm_Gengrid_Item_Class member definitions */
8290 #define Elm_Gengrid_Item_Class_Func Elm_Gen_Item_Class_Func
8292 * Add a new gengrid widget to the given parent Elementary
8293 * (container) object
8295 * @param parent The parent object
8296 * @return a new gengrid widget handle or @c NULL, on errors
8298 * This function inserts a new gengrid widget on the canvas.
8300 * @see elm_gengrid_item_size_set()
8301 * @see elm_gengrid_group_item_size_set()
8302 * @see elm_gengrid_horizontal_set()
8303 * @see elm_gengrid_item_append()
8304 * @see elm_gengrid_item_del()
8305 * @see elm_gengrid_clear()
8309 EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8312 * Set the size for the items of a given gengrid widget
8314 * @param obj The gengrid object.
8315 * @param w The items' width.
8316 * @param h The items' height;
8318 * A gengrid, after creation, has still no information on the size
8319 * to give to each of its cells. So, you most probably will end up
8320 * with squares one @ref Fingers "finger" wide, the default
8321 * size. Use this function to force a custom size for you items,
8322 * making them as big as you wish.
8324 * @see elm_gengrid_item_size_get()
8328 EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8331 * Get the size set for the items of a given gengrid widget
8333 * @param obj The gengrid object.
8334 * @param w Pointer to a variable where to store the items' width.
8335 * @param h Pointer to a variable where to store the items' height.
8337 * @note Use @c NULL pointers on the size values you're not
8338 * interested in: they'll be ignored by the function.
8340 * @see elm_gengrid_item_size_get() for more details
8344 EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8347 * Set the size for the group items of a given gengrid widget
8349 * @param obj The gengrid object.
8350 * @param w The group items' width.
8351 * @param h The group items' height;
8353 * A gengrid, after creation, has still no information on the size
8354 * to give to each of its cells. So, you most probably will end up
8355 * with squares one @ref Fingers "finger" wide, the default
8356 * size. Use this function to force a custom size for you group items,
8357 * making them as big as you wish.
8359 * @see elm_gengrid_group_item_size_get()
8363 EAPI void elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
8366 * Get the size set for the group items of a given gengrid widget
8368 * @param obj The gengrid object.
8369 * @param w Pointer to a variable where to store the group items' width.
8370 * @param h Pointer to a variable where to store the group items' height.
8372 * @note Use @c NULL pointers on the size values you're not
8373 * interested in: they'll be ignored by the function.
8375 * @see elm_gengrid_group_item_size_get() for more details
8379 EAPI void elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
8382 * Set the items grid's alignment within a given gengrid widget
8384 * @param obj The gengrid object.
8385 * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
8386 * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
8388 * This sets the alignment of the whole grid of items of a gengrid
8389 * within its given viewport. By default, those values are both
8390 * 0.5, meaning that the gengrid will have its items grid placed
8391 * exactly in the middle of its viewport.
8393 * @note If given alignment values are out of the cited ranges,
8394 * they'll be changed to the nearest boundary values on the valid
8397 * @see elm_gengrid_align_get()
8401 EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8404 * Get the items grid's alignment values within a given gengrid
8407 * @param obj The gengrid object.
8408 * @param align_x Pointer to a variable where to store the
8409 * horizontal alignment.
8410 * @param align_y Pointer to a variable where to store the vertical
8413 * @note Use @c NULL pointers on the alignment values you're not
8414 * interested in: they'll be ignored by the function.
8416 * @see elm_gengrid_align_set() for more details
8420 EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8423 * Set whether a given gengrid widget is or not able have items
8426 * @param obj The gengrid object
8427 * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8428 * @c EINA_FALSE to turn it off
8430 * If a gengrid is set to allow reordering, a click held for more
8431 * than 0.5 over a given item will highlight it specially,
8432 * signalling the gengrid has entered the reordering state. From
8433 * that time on, the user will be able to, while still holding the
8434 * mouse button down, move the item freely in the gengrid's
8435 * viewport, replacing to said item to the locations it goes to.
8436 * The replacements will be animated and, whenever the user
8437 * releases the mouse button, the item being replaced gets a new
8438 * definitive place in the grid.
8440 * @see elm_gengrid_reorder_mode_get()
8444 EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8447 * Get whether a given gengrid widget is or not able have items
8450 * @param obj The gengrid object
8451 * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8454 * @see elm_gengrid_reorder_mode_set() for more details
8458 EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8461 * Append a new item in a given gengrid widget.
8463 * @param obj The gengrid object.
8464 * @param gic The item class for the item.
8465 * @param data The item data.
8466 * @param func Convenience function called when the item is
8468 * @param func_data Data to be passed to @p func.
8469 * @return A handle to the item added or @c NULL, on errors.
8471 * This adds an item to the beginning of the gengrid.
8473 * @see elm_gengrid_item_prepend()
8474 * @see elm_gengrid_item_insert_before()
8475 * @see elm_gengrid_item_insert_after()
8476 * @see elm_gengrid_item_del()
8480 EAPI Elm_Gengrid_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
8483 * Prepend a new item in a given gengrid widget.
8485 * @param obj The gengrid object.
8486 * @param gic The item class for the item.
8487 * @param data The item data.
8488 * @param func Convenience function called when the item is
8490 * @param func_data Data to be passed to @p func.
8491 * @return A handle to the item added or @c NULL, on errors.
8493 * This adds an item to the end of the gengrid.
8495 * @see elm_gengrid_item_append()
8496 * @see elm_gengrid_item_insert_before()
8497 * @see elm_gengrid_item_insert_after()
8498 * @see elm_gengrid_item_del()
8502 EAPI Elm_Gengrid_Item *elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
8505 * Insert an item before another in a gengrid widget
8507 * @param obj The gengrid object.
8508 * @param gic The item class for the item.
8509 * @param data The item data.
8510 * @param relative The item to place this new one before.
8511 * @param func Convenience function called when the item is
8513 * @param func_data Data to be passed to @p func.
8514 * @return A handle to the item added or @c NULL, on errors.
8516 * This inserts an item before another in the gengrid.
8518 * @see elm_gengrid_item_append()
8519 * @see elm_gengrid_item_prepend()
8520 * @see elm_gengrid_item_insert_after()
8521 * @see elm_gengrid_item_del()
8525 EAPI Elm_Gengrid_Item *elm_gengrid_item_insert_before(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Gengrid_Item *relative, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
8528 * Insert an item after another in a gengrid widget
8530 * @param obj The gengrid object.
8531 * @param gic The item class for the item.
8532 * @param data The item data.
8533 * @param relative The item to place this new one after.
8534 * @param func Convenience function called when the item is
8536 * @param func_data Data to be passed to @p func.
8537 * @return A handle to the item added or @c NULL, on errors.
8539 * This inserts an item after another in the gengrid.
8541 * @see elm_gengrid_item_append()
8542 * @see elm_gengrid_item_prepend()
8543 * @see elm_gengrid_item_insert_after()
8544 * @see elm_gengrid_item_del()
8548 EAPI Elm_Gengrid_Item *elm_gengrid_item_insert_after(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Gengrid_Item *relative, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
8551 * Insert an item in a gengrid widget using a user-defined sort function.
8553 * @param obj The gengrid object.
8554 * @param gic The item class for the item.
8555 * @param data The item data.
8556 * @param comp User defined comparison function that defines the sort order based on
8557 * Elm_Gen_Item and its data param.
8558 * @param func Convenience function called when the item is selected.
8559 * @param func_data Data to be passed to @p func.
8560 * @return A handle to the item added or @c NULL, on errors.
8562 * This inserts an item in the gengrid based on user defined comparison function.
8564 * @see elm_gengrid_item_append()
8565 * @see elm_gengrid_item_prepend()
8566 * @see elm_gengrid_item_insert_after()
8567 * @see elm_gengrid_item_del()
8568 * @see elm_gengrid_item_direct_sorted_insert()
8572 EAPI Elm_Gengrid_Item *elm_gengrid_item_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
8575 * Insert an item in a gengrid widget using a user-defined sort function.
8577 * @param obj The gengrid object.
8578 * @param gic The item class for the item.
8579 * @param data The item data.
8580 * @param comp User defined comparison function that defines the sort order based on
8582 * @param func Convenience function called when the item is selected.
8583 * @param func_data Data to be passed to @p func.
8584 * @return A handle to the item added or @c NULL, on errors.
8586 * This inserts an item in the gengrid based on user defined comparison function.
8588 * @see elm_gengrid_item_append()
8589 * @see elm_gengrid_item_prepend()
8590 * @see elm_gengrid_item_insert_after()
8591 * @see elm_gengrid_item_del()
8592 * @see elm_gengrid_item_sorted_insert()
8596 EAPI Elm_Gengrid_Item *elm_gengrid_item_direct_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
8599 * Set whether items on a given gengrid widget are to get their
8600 * selection callbacks issued for @b every subsequent selection
8601 * click on them or just for the first click.
8603 * @param obj The gengrid object
8604 * @param always_select @c EINA_TRUE to make items "always
8605 * selected", @c EINA_FALSE, otherwise
8607 * By default, grid items will only call their selection callback
8608 * function when firstly getting selected, any subsequent further
8609 * clicks will do nothing. With this call, you make those
8610 * subsequent clicks also to issue the selection callbacks.
8612 * @note <b>Double clicks</b> will @b always be reported on items.
8614 * @see elm_gengrid_always_select_mode_get()
8618 EINA_DEPRECATED EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8621 * Get whether items on a given gengrid widget have their selection
8622 * callbacks issued for @b every subsequent selection click on them
8623 * or just for the first click.
8625 * @param obj The gengrid object.
8626 * @return @c EINA_TRUE if the gengrid items are "always selected",
8627 * @c EINA_FALSE, otherwise
8629 * @see elm_gengrid_always_select_mode_set() for more details
8633 EINA_DEPRECATED EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8636 * Set whether items on a given gengrid widget can be selected or not.
8638 * @param obj The gengrid object
8639 * @param no_select @c EINA_TRUE to make items selectable,
8640 * @c EINA_FALSE otherwise
8642 * This will make items in @p obj selectable or not. In the latter
8643 * case, any user interaction on the gengrid items will neither make
8644 * them appear selected nor them call their selection callback
8647 * @see elm_gengrid_no_select_mode_get()
8651 EINA_DEPRECATED EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8654 * Get whether items on a given gengrid widget can be selected or
8657 * @param obj The gengrid object
8658 * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8661 * @see elm_gengrid_no_select_mode_set() for more details
8665 EINA_DEPRECATED EAPI Eina_Bool elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8668 * Enable or disable multi-selection in a given gengrid widget
8670 * @param obj The gengrid object.
8671 * @param multi @c EINA_TRUE, to enable multi-selection,
8672 * @c EINA_FALSE to disable it.
8674 * Multi-selection is the ability to have @b more than one
8675 * item selected, on a given gengrid, simultaneously. When it is
8676 * enabled, a sequence of clicks on different items will make them
8677 * all selected, progressively. A click on an already selected item
8678 * will unselect it. If interacting via the keyboard,
8679 * multi-selection is enabled while holding the "Shift" key.
8681 * @note By default, multi-selection is @b disabled on gengrids
8683 * @see elm_gengrid_multi_select_get()
8687 EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8690 * Get whether multi-selection is enabled or disabled for a given
8693 * @param obj The gengrid object.
8694 * @return @c EINA_TRUE, if multi-selection is enabled, @c
8695 * EINA_FALSE otherwise
8697 * @see elm_gengrid_multi_select_set() for more details
8701 EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8704 * Enable or disable bouncing effect for a given gengrid widget
8706 * @param obj The gengrid object
8707 * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8708 * @c EINA_FALSE to disable it
8709 * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8710 * @c EINA_FALSE to disable it
8712 * The bouncing effect occurs whenever one reaches the gengrid's
8713 * edge's while panning it -- it will scroll past its limits a
8714 * little bit and return to the edge again, in a animated for,
8717 * @note By default, gengrids have bouncing enabled on both axis
8719 * @see elm_gengrid_bounce_get()
8723 EINA_DEPRECATED EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8726 * Get whether bouncing effects are enabled or disabled, for a
8727 * given gengrid widget, on each axis
8729 * @param obj The gengrid object
8730 * @param h_bounce Pointer to a variable where to store the
8731 * horizontal bouncing flag.
8732 * @param v_bounce Pointer to a variable where to store the
8733 * vertical bouncing flag.
8735 * @see elm_gengrid_bounce_set() for more details
8739 EINA_DEPRECATED EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8742 * Set a given gengrid widget's scrolling page size, relative to
8743 * its viewport size.
8745 * @param obj The gengrid object
8746 * @param h_pagerel The horizontal page (relative) size
8747 * @param v_pagerel The vertical page (relative) size
8749 * The gengrid's scroller is capable of binding scrolling by the
8750 * user to "pages". It means that, while scrolling and, specially
8751 * after releasing the mouse button, the grid will @b snap to the
8752 * nearest displaying page's area. When page sizes are set, the
8753 * grid's continuous content area is split into (equal) page sized
8756 * This function sets the size of a page <b>relatively to the
8757 * viewport dimensions</b> of the gengrid, for each axis. A value
8758 * @c 1.0 means "the exact viewport's size", in that axis, while @c
8759 * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8760 * a viewport". Sane usable values are, than, between @c 0.0 and @c
8761 * 1.0. Values beyond those will make it behave behave
8762 * inconsistently. If you only want one axis to snap to pages, use
8763 * the value @c 0.0 for the other one.
8765 * There is a function setting page size values in @b absolute
8766 * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8767 * is mutually exclusive to this one.
8769 * @see elm_gengrid_page_relative_get()
8773 EINA_DEPRECATED EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8776 * Get a given gengrid widget's scrolling page size, relative to
8777 * its viewport size.
8779 * @param obj The gengrid object
8780 * @param h_pagerel Pointer to a variable where to store the
8781 * horizontal page (relative) size
8782 * @param v_pagerel Pointer to a variable where to store the
8783 * vertical page (relative) size
8785 * @see elm_gengrid_page_relative_set() for more details
8789 EINA_DEPRECATED EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8792 * Set a given gengrid widget's scrolling page size
8794 * @param obj The gengrid object
8795 * @param h_pagerel The horizontal page size, in pixels
8796 * @param v_pagerel The vertical page size, in pixels
8798 * The gengrid's scroller is capable of binding scrolling by the
8799 * user to "pages". It means that, while scrolling and, specially
8800 * after releasing the mouse button, the grid will @b snap to the
8801 * nearest displaying page's area. When page sizes are set, the
8802 * grid's continuous content area is split into (equal) page sized
8805 * This function sets the size of a page of the gengrid, in pixels,
8806 * for each axis. Sane usable values are, between @c 0 and the
8807 * dimensions of @p obj, for each axis. Values beyond those will
8808 * make it behave behave inconsistently. If you only want one axis
8809 * to snap to pages, use the value @c 0 for the other one.
8811 * There is a function setting page size values in @b relative
8812 * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8813 * use is mutually exclusive to this one.
8817 EINA_DEPRECATED EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8820 * @brief Get gengrid current page number.
8822 * @param obj The gengrid object
8823 * @param h_pagenumber The horizontal page number
8824 * @param v_pagenumber The vertical page number
8826 * The page number starts from 0. 0 is the first page.
8827 * Current page means the page which meet the top-left of the viewport.
8828 * If there are two or more pages in the viewport, it returns the number of page
8829 * which meet the top-left of the viewport.
8831 * @see elm_gengrid_last_page_get()
8832 * @see elm_gengrid_page_show()
8833 * @see elm_gengrid_page_brint_in()
8835 EINA_DEPRECATED EAPI void elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8838 * @brief Get scroll last page number.
8840 * @param obj The gengrid object
8841 * @param h_pagenumber The horizontal page number
8842 * @param v_pagenumber The vertical page number
8844 * The page number starts from 0. 0 is the first page.
8845 * This returns the last page number among the pages.
8847 * @see elm_gengrid_current_page_get()
8848 * @see elm_gengrid_page_show()
8849 * @see elm_gengrid_page_brint_in()
8851 EINA_DEPRECATED EAPI void elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
8854 * Show a specific virtual region within the gengrid content object by page number.
8856 * @param obj The gengrid object
8857 * @param h_pagenumber The horizontal page number
8858 * @param v_pagenumber The vertical page number
8860 * 0, 0 of the indicated page is located at the top-left of the viewport.
8861 * This will jump to the page directly without animation.
8866 * sc = elm_gengrid_add(win);
8867 * elm_gengrid_content_set(sc, content);
8868 * elm_gengrid_page_relative_set(sc, 1, 0);
8869 * elm_gengrid_current_page_get(sc, &h_page, &v_page);
8870 * elm_gengrid_page_show(sc, h_page + 1, v_page);
8873 * @see elm_gengrid_page_bring_in()
8875 EINA_DEPRECATED EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8878 * Show a specific virtual region within the gengrid content object by page number.
8880 * @param obj The gengrid object
8881 * @param h_pagenumber The horizontal page number
8882 * @param v_pagenumber The vertical page number
8884 * 0, 0 of the indicated page is located at the top-left of the viewport.
8885 * This will slide to the page with animation.
8890 * sc = elm_gengrid_add(win);
8891 * elm_gengrid_content_set(sc, content);
8892 * elm_gengrid_page_relative_set(sc, 1, 0);
8893 * elm_gengrid_last_page_get(sc, &h_page, &v_page);
8894 * elm_gengrid_page_bring_in(sc, h_page, v_page);
8897 * @see elm_gengrid_page_show()
8899 EINA_DEPRECATED EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
8902 * Set the direction in which a given gengrid widget will expand while
8903 * placing its items.
8905 * @param obj The gengrid object.
8906 * @param setting @c EINA_TRUE to make the gengrid expand
8907 * horizontally, @c EINA_FALSE to expand vertically.
8909 * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8910 * in @b columns, from top to bottom and, when the space for a
8911 * column is filled, another one is started on the right, thus
8912 * expanding the grid horizontally. When in "vertical mode"
8913 * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8914 * to right and, when the space for a row is filled, another one is
8915 * started below, thus expanding the grid vertically.
8917 * @see elm_gengrid_horizontal_get()
8921 EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8924 * Get for what direction a given gengrid widget will expand while
8925 * placing its items.
8927 * @param obj The gengrid object.
8928 * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8929 * @c EINA_FALSE if it's set to expand vertically.
8931 * @see elm_gengrid_horizontal_set() for more detais
8935 EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8938 * Get the first item in a given gengrid widget
8940 * @param obj The gengrid object
8941 * @return The first item's handle or @c NULL, if there are no
8942 * items in @p obj (and on errors)
8944 * This returns the first item in the @p obj's internal list of
8947 * @see elm_gengrid_last_item_get()
8951 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8954 * Get the last item in a given gengrid widget
8956 * @param obj The gengrid object
8957 * @return The last item's handle or @c NULL, if there are no
8958 * items in @p obj (and on errors)
8960 * This returns the last item in the @p obj's internal list of
8963 * @see elm_gengrid_first_item_get()
8967 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8970 * Get the @b next item in a gengrid widget's internal list of items,
8971 * given a handle to one of those items.
8973 * @param item The gengrid item to fetch next from
8974 * @return The item after @p item, or @c NULL if there's none (and
8977 * This returns the item placed after the @p item, on the container
8980 * @see elm_gengrid_item_prev_get()
8984 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8987 * Get the @b previous item in a gengrid widget's internal list of items,
8988 * given a handle to one of those items.
8990 * @param item The gengrid item to fetch previous from
8991 * @return The item before @p item, or @c NULL if there's none (and
8994 * This returns the item placed before the @p item, on the container
8997 * @see elm_gengrid_item_next_get()
9001 EINA_DEPRECATED EAPI Elm_Gengrid_Item *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9004 * Get the gengrid object's handle which contains a given gengrid
9007 * @param item The item to fetch the container from
9008 * @return The gengrid (parent) object
9010 * This returns the gengrid object itself that an item belongs to.
9014 EINA_DEPRECATED EAPI Evas_Object *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9017 * Remove a gengrid item from its parent, deleting it.
9019 * @param item The item to be removed.
9020 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
9022 * @see elm_gengrid_clear(), to remove all items in a gengrid at
9027 EAPI void elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9030 * Update the contents of a given gengrid item
9032 * @param item The gengrid item
9034 * This updates an item by calling all the item class functions
9035 * again to get the contents, labels and states. Use this when the
9036 * original item data has changed and you want the changes to be
9041 EAPI void elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9044 * Get the Gengrid Item class for the given Gengrid Item.
9046 * @param item The gengrid item
9048 * This returns the Gengrid_Item_Class for the given item. It can be used to examine
9049 * the function pointers and item_style.
9053 EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9056 * Get the Gengrid Item class for the given Gengrid Item.
9058 * This sets the Gengrid_Item_Class for the given item. It can be used to examine
9059 * the function pointers and item_style.
9061 * @param item The gengrid item
9062 * @param gic The gengrid item class describing the function pointers and the item style.
9066 EAPI void elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
9069 * Return the data associated to a given gengrid item
9071 * @param item The gengrid item.
9072 * @return the data associated with this item.
9074 * This returns the @c data value passed on the
9075 * elm_gengrid_item_append() and related item addition calls.
9077 * @see elm_gengrid_item_append()
9078 * @see elm_gengrid_item_data_set()
9082 EAPI void *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9085 * Set the data associated with a given gengrid item
9087 * @param item The gengrid item
9088 * @param data The data pointer to set on it
9090 * This @b overrides the @c data value passed on the
9091 * elm_gengrid_item_append() and related item addition calls. This
9092 * function @b won't call elm_gengrid_item_update() automatically,
9093 * so you'd issue it afterwards if you want to have the item
9094 * updated to reflect the new data.
9096 * @see elm_gengrid_item_data_get()
9097 * @see elm_gengrid_item_update()
9101 EAPI void elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
9104 * Get a given gengrid item's position, relative to the whole
9105 * gengrid's grid area.
9107 * @param item The Gengrid item.
9108 * @param x Pointer to variable to store the item's <b>row number</b>.
9109 * @param y Pointer to variable to store the item's <b>column number</b>.
9111 * This returns the "logical" position of the item within the
9112 * gengrid. For example, @c (0, 1) would stand for first row,
9117 EAPI void elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
9120 * Set whether a given gengrid item is selected or not
9122 * @param item The gengrid item
9123 * @param selected Use @c EINA_TRUE, to make it selected, @c
9124 * EINA_FALSE to make it unselected
9126 * This sets the selected state of an item. If multi-selection is
9127 * not enabled on the containing gengrid and @p selected is @c
9128 * EINA_TRUE, any other previously selected items will get
9129 * unselected in favor of this new one.
9131 * @see elm_gengrid_item_selected_get()
9135 EINA_DEPRECATED EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
9138 * Get whether a given gengrid item is selected or not
9140 * @param item The gengrid item
9141 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
9143 * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
9145 * @see elm_gengrid_item_selected_set() for more details
9149 EINA_DEPRECATED EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9152 * Get the real Evas object created to implement the view of a
9153 * given gengrid item
9155 * @param item The gengrid item.
9156 * @return the Evas object implementing this item's view.
9158 * This returns the actual Evas object used to implement the
9159 * specified gengrid item's view. This may be @c NULL, as it may
9160 * not have been created or may have been deleted, at any time, by
9161 * the gengrid. <b>Do not modify this object</b> (move, resize,
9162 * show, hide, etc.), as the gengrid is controlling it. This
9163 * function is for querying, emitting custom signals or hooking
9164 * lower level callbacks for events on that object. Do not delete
9165 * this object under any circumstances.
9167 * @see elm_gengrid_item_data_get()
9171 EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9174 * Show the portion of a gengrid's internal grid containing a given
9175 * item, @b immediately.
9177 * @param item The item to display
9179 * This causes gengrid to @b redraw its viewport's contents to the
9180 * region contining the given @p item item, if it is not fully
9183 * @see elm_gengrid_item_bring_in()
9187 EAPI void elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9190 * Animatedly bring in, to the visible area of a gengrid, a given
9193 * @param item The gengrid item to display
9195 * This causes gengrid to jump to the given @p item and show
9196 * it (by scrolling), if it is not fully visible. This will use
9197 * animation to do so and take a period of time to complete.
9199 * @see elm_gengrid_item_show()
9203 EAPI void elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9206 * Set whether a given gengrid item is disabled or not.
9208 * @param item The gengrid item
9209 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
9210 * to enable it back.
9212 * A disabled item cannot be selected or unselected. It will also
9213 * change its appearance, to signal the user it's disabled.
9215 * @see elm_gengrid_item_disabled_get()
9219 EAPI void elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
9222 * Get whether a given gengrid item is disabled or not.
9224 * @param item The gengrid item
9225 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
9228 * @see elm_gengrid_item_disabled_set() for more details
9232 EAPI Eina_Bool elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9235 * Set the text to be shown in a given gengrid item's tooltips.
9237 * @param item The gengrid item
9238 * @param text The text to set in the content
9240 * This call will setup the text to be used as tooltip to that item
9241 * (analogous to elm_object_tooltip_text_set(), but being item
9242 * tooltips with higher precedence than object tooltips). It can
9243 * have only one tooltip at a time, so any previous tooltip data
9248 EAPI void elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
9251 * Set the content to be shown in a given gengrid item's tooltip
9253 * @param item The gengrid item.
9254 * @param func The function returning the tooltip contents.
9255 * @param data What to provide to @a func as callback data/context.
9256 * @param del_cb Called when data is not needed anymore, either when
9257 * another callback replaces @p func, the tooltip is unset with
9258 * elm_gengrid_item_tooltip_unset() or the owner @p item
9259 * dies. This callback receives as its first parameter the
9260 * given @p data, being @c event_info the item handle.
9262 * This call will setup the tooltip's contents to @p item
9263 * (analogous to elm_object_tooltip_content_cb_set(), but being
9264 * item tooltips with higher precedence than object tooltips). It
9265 * can have only one tooltip at a time, so any previous tooltip
9266 * content will get removed. @p func (with @p data) will be called
9267 * every time Elementary needs to show the tooltip and it should
9268 * return a valid Evas object, which will be fully managed by the
9269 * tooltip system, getting deleted when the tooltip is gone.
9273 EAPI void elm_gengrid_item_tooltip_content_cb_set(Elm_Gengrid_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
9276 * Unset a tooltip from a given gengrid item
9278 * @param item gengrid item to remove a previously set tooltip from.
9280 * This call removes any tooltip set on @p item. The callback
9281 * provided as @c del_cb to
9282 * elm_gengrid_item_tooltip_content_cb_set() will be called to
9283 * notify it is not used anymore (and have resources cleaned, if
9286 * @see elm_gengrid_item_tooltip_content_cb_set()
9290 EAPI void elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9293 * Set a different @b style for a given gengrid item's tooltip.
9295 * @param item gengrid item with tooltip set
9296 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
9297 * "default", @c "transparent", etc)
9299 * Tooltips can have <b>alternate styles</b> to be displayed on,
9300 * which are defined by the theme set on Elementary. This function
9301 * works analogously as elm_object_tooltip_style_set(), but here
9302 * applied only to gengrid item objects. The default style for
9303 * tooltips is @c "default".
9305 * @note before you set a style you should define a tooltip with
9306 * elm_gengrid_item_tooltip_content_cb_set() or
9307 * elm_gengrid_item_tooltip_text_set()
9309 * @see elm_gengrid_item_tooltip_style_get()
9313 EAPI void elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9316 * Get the style set a given gengrid item's tooltip.
9318 * @param item gengrid item with tooltip already set on.
9319 * @return style the theme style in use, which defaults to
9320 * "default". If the object does not have a tooltip set,
9321 * then @c NULL is returned.
9323 * @see elm_gengrid_item_tooltip_style_set() for more details
9327 EAPI const char *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9329 * @brief Disable size restrictions on an object's tooltip
9330 * @param item The tooltip's anchor object
9331 * @param disable If EINA_TRUE, size restrictions are disabled
9332 * @return EINA_FALSE on failure, EINA_TRUE on success
9334 * This function allows a tooltip to expand beyond its parant window's canvas.
9335 * It will instead be limited only by the size of the display.
9337 EAPI Eina_Bool elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
9339 * @brief Retrieve size restriction state of an object's tooltip
9340 * @param item The tooltip's anchor object
9341 * @return If EINA_TRUE, size restrictions are disabled
9343 * This function returns whether a tooltip is allowed to expand beyond
9344 * its parant window's canvas.
9345 * It will instead be limited only by the size of the display.
9347 EAPI Eina_Bool elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
9349 * Set the type of mouse pointer/cursor decoration to be shown,
9350 * when the mouse pointer is over the given gengrid widget item
9352 * @param item gengrid item to customize cursor on
9353 * @param cursor the cursor type's name
9355 * This function works analogously as elm_object_cursor_set(), but
9356 * here the cursor's changing area is restricted to the item's
9357 * area, and not the whole widget's. Note that that item cursors
9358 * have precedence over widget cursors, so that a mouse over @p
9359 * item will always show cursor @p type.
9361 * If this function is called twice for an object, a previously set
9362 * cursor will be unset on the second call.
9364 * @see elm_object_cursor_set()
9365 * @see elm_gengrid_item_cursor_get()
9366 * @see elm_gengrid_item_cursor_unset()
9370 EAPI void elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
9373 * Get the type of mouse pointer/cursor decoration set to be shown,
9374 * when the mouse pointer is over the given gengrid widget item
9376 * @param item gengrid item with custom cursor set
9377 * @return the cursor type's name or @c NULL, if no custom cursors
9378 * were set to @p item (and on errors)
9380 * @see elm_object_cursor_get()
9381 * @see elm_gengrid_item_cursor_set() for more details
9382 * @see elm_gengrid_item_cursor_unset()
9386 EAPI const char *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9389 * Unset any custom mouse pointer/cursor decoration set to be
9390 * shown, when the mouse pointer is over the given gengrid widget
9391 * item, thus making it show the @b default cursor again.
9393 * @param item a gengrid item
9395 * Use this call to undo any custom settings on this item's cursor
9396 * decoration, bringing it back to defaults (no custom style set).
9398 * @see elm_object_cursor_unset()
9399 * @see elm_gengrid_item_cursor_set() for more details
9403 EAPI void elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9406 * Set a different @b style for a given custom cursor set for a
9409 * @param item gengrid item with custom cursor set
9410 * @param style the <b>theme style</b> to use (e.g. @c "default",
9411 * @c "transparent", etc)
9413 * This function only makes sense when one is using custom mouse
9414 * cursor decorations <b>defined in a theme file</b> , which can
9415 * have, given a cursor name/type, <b>alternate styles</b> on
9416 * it. It works analogously as elm_object_cursor_style_set(), but
9417 * here applied only to gengrid item objects.
9419 * @warning Before you set a cursor style you should have defined a
9420 * custom cursor previously on the item, with
9421 * elm_gengrid_item_cursor_set()
9423 * @see elm_gengrid_item_cursor_engine_only_set()
9424 * @see elm_gengrid_item_cursor_style_get()
9428 EAPI void elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
9431 * Get the current @b style set for a given gengrid item's custom
9434 * @param item gengrid item with custom cursor set.
9435 * @return style the cursor style in use. If the object does not
9436 * have a cursor set, then @c NULL is returned.
9438 * @see elm_gengrid_item_cursor_style_set() for more details
9442 EAPI const char *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9445 * Set if the (custom) cursor for a given gengrid item should be
9446 * searched in its theme, also, or should only rely on the
9449 * @param item item with custom (custom) cursor already set on
9450 * @param engine_only Use @c EINA_TRUE to have cursors looked for
9451 * only on those provided by the rendering engine, @c EINA_FALSE to
9452 * have them searched on the widget's theme, as well.
9454 * @note This call is of use only if you've set a custom cursor
9455 * for gengrid items, with elm_gengrid_item_cursor_set().
9457 * @note By default, cursors will only be looked for between those
9458 * provided by the rendering engine.
9462 EAPI void elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
9465 * Get if the (custom) cursor for a given gengrid item is being
9466 * searched in its theme, also, or is only relying on the rendering
9469 * @param item a gengrid item
9470 * @return @c EINA_TRUE, if cursors are being looked for only on
9471 * those provided by the rendering engine, @c EINA_FALSE if they
9472 * are being searched on the widget's theme, as well.
9474 * @see elm_gengrid_item_cursor_engine_only_set(), for more details
9478 EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
9481 * Remove all items from a given gengrid widget
9483 * @param obj The gengrid object.
9485 * This removes (and deletes) all items in @p obj, leaving it
9488 * @see elm_gengrid_item_del(), to remove just one item.
9492 EINA_DEPRECATED EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9495 * Get the selected item in a given gengrid widget
9497 * @param obj The gengrid object.
9498 * @return The selected item's handleor @c NULL, if none is
9499 * selected at the moment (and on errors)
9501 * This returns the selected item in @p obj. If multi selection is
9502 * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
9503 * the first item in the list is selected, which might not be very
9504 * useful. For that case, see elm_gengrid_selected_items_get().
9508 EAPI Elm_Gengrid_Item *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9511 * Get <b>a list</b> of selected items in a given gengrid
9513 * @param obj The gengrid object.
9514 * @return The list of selected items or @c NULL, if none is
9515 * selected at the moment (and on errors)
9517 * This returns a list of the selected items, in the order that
9518 * they appear in the grid. This list is only valid as long as no
9519 * more items are selected or unselected (or unselected implictly
9520 * by deletion). The list contains #Elm_Gengrid_Item pointers as
9523 * @see elm_gengrid_selected_item_get()
9527 EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9534 * @defgroup Clock Clock
9536 * @image html img/widget/clock/preview-00.png
9537 * @image latex img/widget/clock/preview-00.eps
9539 * This is a @b digital clock widget. In its default theme, it has a
9540 * vintage "flipping numbers clock" appearance, which will animate
9541 * sheets of individual algarisms individually as time goes by.
9543 * A newly created clock will fetch system's time (already
9544 * considering local time adjustments) to start with, and will tick
9545 * accondingly. It may or may not show seconds.
9547 * Clocks have an @b edition mode. When in it, the sheets will
9548 * display extra arrow indications on the top and bottom and the
9549 * user may click on them to raise or lower the time values. After
9550 * it's told to exit edition mode, it will keep ticking with that
9551 * new time set (it keeps the difference from local time).
9553 * Also, when under edition mode, user clicks on the cited arrows
9554 * which are @b held for some time will make the clock to flip the
9555 * sheet, thus editing the time, continuosly and automatically for
9556 * the user. The interval between sheet flips will keep growing in
9557 * time, so that it helps the user to reach a time which is distant
9560 * The time display is, by default, in military mode (24h), but an
9561 * am/pm indicator may be optionally shown, too, when it will
9564 * Smart callbacks one can register to:
9565 * - "changed" - the clock's user changed the time
9567 * Here is an example on its usage:
9568 * @li @ref clock_example
9577 * Identifiers for which clock digits should be editable, when a
9578 * clock widget is in edition mode. Values may be ORed together to
9579 * make a mask, naturally.
9581 * @see elm_clock_edit_set()
9582 * @see elm_clock_digit_edit_set()
9584 typedef enum _Elm_Clock_Digedit
9586 ELM_CLOCK_NONE = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9587 ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9588 ELM_CLOCK_HOUR_UNIT = 1 << 1, /**< Unit algarism of hours value should be editable */
9589 ELM_CLOCK_MIN_DECIMAL = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9590 ELM_CLOCK_MIN_UNIT = 1 << 3, /**< Unit algarism of minutes value should be editable */
9591 ELM_CLOCK_SEC_DECIMAL = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9592 ELM_CLOCK_SEC_UNIT = 1 << 5, /**< Unit algarism of seconds value should be editable */
9593 ELM_CLOCK_ALL = (1 << 6) - 1 /**< All digits should be editable */
9594 } Elm_Clock_Digedit;
9597 * Add a new clock widget to the given parent Elementary
9598 * (container) object
9600 * @param parent The parent object
9601 * @return a new clock widget handle or @c NULL, on errors
9603 * This function inserts a new clock widget on the canvas.
9607 EAPI Evas_Object *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9610 * Set a clock widget's time, programmatically
9612 * @param obj The clock widget object
9613 * @param hrs The hours to set
9614 * @param min The minutes to set
9615 * @param sec The secondes to set
9617 * This function updates the time that is showed by the clock
9620 * Values @b must be set within the following ranges:
9621 * - 0 - 23, for hours
9622 * - 0 - 59, for minutes
9623 * - 0 - 59, for seconds,
9625 * even if the clock is not in "military" mode.
9627 * @warning The behavior for values set out of those ranges is @b
9632 EAPI void elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9635 * Get a clock widget's time values
9637 * @param obj The clock object
9638 * @param[out] hrs Pointer to the variable to get the hours value
9639 * @param[out] min Pointer to the variable to get the minutes value
9640 * @param[out] sec Pointer to the variable to get the seconds value
9642 * This function gets the time set for @p obj, returning
9643 * it on the variables passed as the arguments to function
9645 * @note Use @c NULL pointers on the time values you're not
9646 * interested in: they'll be ignored by the function.
9650 EAPI void elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9653 * Set whether a given clock widget is under <b>edition mode</b> or
9654 * under (default) displaying-only mode.
9656 * @param obj The clock object
9657 * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9658 * put it back to "displaying only" mode
9660 * This function makes a clock's time to be editable or not <b>by
9661 * user interaction</b>. When in edition mode, clocks @b stop
9662 * ticking, until one brings them back to canonical mode. The
9663 * elm_clock_digit_edit_set() function will influence which digits
9664 * of the clock will be editable. By default, all of them will be
9665 * (#ELM_CLOCK_NONE).
9667 * @note am/pm sheets, if being shown, will @b always be editable
9668 * under edition mode.
9670 * @see elm_clock_edit_get()
9674 EAPI void elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9677 * Retrieve whether a given clock widget is under <b>edition
9678 * mode</b> or under (default) displaying-only mode.
9680 * @param obj The clock object
9681 * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9684 * This function retrieves whether the clock's time can be edited
9685 * or not by user interaction.
9687 * @see elm_clock_edit_set() for more details
9691 EAPI Eina_Bool elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9694 * Set what digits of the given clock widget should be editable
9695 * when in edition mode.
9697 * @param obj The clock object
9698 * @param digedit Bit mask indicating the digits to be editable
9699 * (values in #Elm_Clock_Digedit).
9701 * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9702 * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9705 * @see elm_clock_digit_edit_get()
9709 EAPI void elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9712 * Retrieve what digits of the given clock widget should be
9713 * editable when in edition mode.
9715 * @param obj The clock object
9716 * @return Bit mask indicating the digits to be editable
9717 * (values in #Elm_Clock_Digedit).
9719 * @see elm_clock_digit_edit_set() for more details
9723 EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9726 * Set if the given clock widget must show hours in military or
9729 * @param obj The clock object
9730 * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9733 * This function sets if the clock must show hours in military or
9734 * am/pm mode. In some countries like Brazil the military mode
9735 * (00-24h-format) is used, in opposition to the USA, where the
9736 * am/pm mode is more commonly used.
9738 * @see elm_clock_show_am_pm_get()
9742 EAPI void elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9745 * Get if the given clock widget shows hours in military or am/pm
9748 * @param obj The clock object
9749 * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9752 * This function gets if the clock shows hours in military or am/pm
9755 * @see elm_clock_show_am_pm_set() for more details
9759 EAPI Eina_Bool elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9762 * Set if the given clock widget must show time with seconds or not
9764 * @param obj The clock object
9765 * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9767 * This function sets if the given clock must show or not elapsed
9768 * seconds. By default, they are @b not shown.
9770 * @see elm_clock_show_seconds_get()
9774 EAPI void elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9777 * Get whether the given clock widget is showing time with seconds
9780 * @param obj The clock object
9781 * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9783 * This function gets whether @p obj is showing or not the elapsed
9786 * @see elm_clock_show_seconds_set()
9790 EAPI Eina_Bool elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9793 * Set the interval on time updates for an user mouse button hold
9794 * on clock widgets' time edition.
9796 * @param obj The clock object
9797 * @param interval The (first) interval value in seconds
9799 * This interval value is @b decreased while the user holds the
9800 * mouse pointer either incrementing or decrementing a given the
9801 * clock digit's value.
9803 * This helps the user to get to a given time distant from the
9804 * current one easier/faster, as it will start to flip quicker and
9805 * quicker on mouse button holds.
9807 * The calculation for the next flip interval value, starting from
9808 * the one set with this call, is the previous interval divided by
9809 * 1.05, so it decreases a little bit.
9811 * The default starting interval value for automatic flips is
9814 * @see elm_clock_interval_get()
9818 EAPI void elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9821 * Get the interval on time updates for an user mouse button hold
9822 * on clock widgets' time edition.
9824 * @param obj The clock object
9825 * @return The (first) interval value, in seconds, set on it
9827 * @see elm_clock_interval_set() for more details
9831 EAPI double elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9838 * @defgroup Layout Layout
9840 * @image html img/widget/layout/preview-00.png
9841 * @image latex img/widget/layout/preview-00.eps width=\textwidth
9843 * @image html img/layout-predefined.png
9844 * @image latex img/layout-predefined.eps width=\textwidth
9846 * This is a container widget that takes a standard Edje design file and
9847 * wraps it very thinly in a widget.
9849 * An Edje design (theme) file has a very wide range of possibilities to
9850 * describe the behavior of elements added to the Layout. Check out the Edje
9851 * documentation and the EDC reference to get more information about what can
9852 * be done with Edje.
9854 * Just like @ref List, @ref Box, and other container widgets, any
9855 * object added to the Layout will become its child, meaning that it will be
9856 * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9858 * The Layout widget can contain as many Contents, Boxes or Tables as
9859 * described in its theme file. For instance, objects can be added to
9860 * different Tables by specifying the respective Table part names. The same
9861 * is valid for Content and Box.
9863 * The objects added as child of the Layout will behave as described in the
9864 * part description where they were added. There are 3 possible types of
9865 * parts where a child can be added:
9867 * @section secContent Content (SWALLOW part)
9869 * Only one object can be added to the @c SWALLOW part (but you still can
9870 * have many @c SWALLOW parts and one object on each of them). Use the @c
9871 * elm_object_content_set/get/unset functions to set, retrieve and unset
9872 * objects as content of the @c SWALLOW. After being set to this part, the
9873 * object size, position, visibility, clipping and other description
9874 * properties will be totally controled by the description of the given part
9875 * (inside the Edje theme file).
9877 * One can use @c evas_object_size_hint_* functions on the child to have some
9878 * kind of control over its behavior, but the resulting behavior will still
9879 * depend heavily on the @c SWALLOW part description.
9881 * The Edje theme also can change the part description, based on signals or
9882 * scripts running inside the theme. This change can also be animated. All of
9883 * this will affect the child object set as content accordingly. The object
9884 * size will be changed if the part size is changed, it will animate move if
9885 * the part is moving, and so on.
9887 * The following picture demonstrates a Layout widget with a child object
9888 * added to its @c SWALLOW:
9890 * @image html layout_swallow.png
9891 * @image latex layout_swallow.eps width=\textwidth
9893 * @section secBox Box (BOX part)
9895 * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9896 * allows one to add objects to the box and have them distributed along its
9897 * area, accordingly to the specified @a layout property (now by @a layout we
9898 * mean the chosen layouting design of the Box, not the Layout widget
9901 * A similar effect for having a box with its position, size and other things
9902 * controled by the Layout theme would be to create an Elementary @ref Box
9903 * widget and add it as a Content in the @c SWALLOW part.
9905 * The main difference of using the Layout Box is that its behavior, the box
9906 * properties like layouting format, padding, align, etc. will be all
9907 * controled by the theme. This means, for example, that a signal could be
9908 * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9909 * handled the signal by changing the box padding, or align, or both. Using
9910 * the Elementary @ref Box widget is not necessarily harder or easier, it
9911 * just depends on the circunstances and requirements.
9913 * The Layout Box can be used through the @c elm_layout_box_* set of
9916 * The following picture demonstrates a Layout widget with many child objects
9917 * added to its @c BOX part:
9919 * @image html layout_box.png
9920 * @image latex layout_box.eps width=\textwidth
9922 * @section secTable Table (TABLE part)
9924 * Just like the @ref secBox, the Layout Table is very similar to the
9925 * Elementary @ref Table widget. It allows one to add objects to the Table
9926 * specifying the row and column where the object should be added, and any
9927 * column or row span if necessary.
9929 * Again, we could have this design by adding a @ref Table widget to the @c
9930 * SWALLOW part using elm_object_part_content_set(). The same difference happens
9931 * here when choosing to use the Layout Table (a @c TABLE part) instead of
9932 * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9934 * The Layout Table can be used through the @c elm_layout_table_* set of
9937 * The following picture demonstrates a Layout widget with many child objects
9938 * added to its @c TABLE part:
9940 * @image html layout_table.png
9941 * @image latex layout_table.eps width=\textwidth
9943 * @section secPredef Predefined Layouts
9945 * Another interesting thing about the Layout widget is that it offers some
9946 * predefined themes that come with the default Elementary theme. These
9947 * themes can be set by the call elm_layout_theme_set(), and provide some
9948 * basic functionality depending on the theme used.
9950 * Most of them already send some signals, some already provide a toolbar or
9951 * back and next buttons.
9953 * These are available predefined theme layouts. All of them have class = @c
9954 * layout, group = @c application, and style = one of the following options:
9956 * @li @c toolbar-content - application with toolbar and main content area
9957 * @li @c toolbar-content-back - application with toolbar and main content
9958 * area with a back button and title area
9959 * @li @c toolbar-content-back-next - application with toolbar and main
9960 * content area with a back and next buttons and title area
9961 * @li @c content-back - application with a main content area with a back
9962 * button and title area
9963 * @li @c content-back-next - application with a main content area with a
9964 * back and next buttons and title area
9965 * @li @c toolbar-vbox - application with toolbar and main content area as a
9967 * @li @c toolbar-table - application with toolbar and main content area as a
9970 * @section secExamples Examples
9972 * Some examples of the Layout widget can be found here:
9973 * @li @ref layout_example_01
9974 * @li @ref layout_example_02
9975 * @li @ref layout_example_03
9976 * @li @ref layout_example_edc
9981 * Add a new layout to the parent
9983 * @param parent The parent object
9984 * @return The new object or NULL if it cannot be created
9986 * @see elm_layout_file_set()
9987 * @see elm_layout_theme_set()
9991 EAPI Evas_Object *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9993 * Set the file that will be used as layout
9995 * @param obj The layout object
9996 * @param file The path to file (edj) that will be used as layout
9997 * @param group The group that the layout belongs in edje file
9999 * @return (1 = success, 0 = error)
10003 EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
10005 * Set the edje group from the elementary theme that will be used as layout
10007 * @param obj The layout object
10008 * @param clas the clas of the group
10009 * @param group the group
10010 * @param style the style to used
10012 * @return (1 = success, 0 = error)
10016 EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
10018 * Set the layout content.
10020 * @param obj The layout object
10021 * @param swallow The swallow part name in the edje file
10022 * @param content The child that will be added in this layout object
10024 * Once the content object is set, a previously set one will be deleted.
10025 * If you want to keep that old content object, use the
10026 * elm_object_part_content_unset() function.
10028 * @note In an Edje theme, the part used as a content container is called @c
10029 * SWALLOW. This is why the parameter name is called @p swallow, but it is
10030 * expected to be a part name just like the second parameter of
10031 * elm_layout_box_append().
10033 * @see elm_layout_box_append()
10034 * @see elm_object_part_content_get()
10035 * @see elm_object_part_content_unset()
10037 * @deprecated use elm_object_part_content_set() instead
10041 EINA_DEPRECATED EAPI void elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10043 * Get the child object in the given content part.
10045 * @param obj The layout object
10046 * @param swallow The SWALLOW part to get its content
10048 * @return The swallowed object or NULL if none or an error occurred
10050 * @deprecated use elm_object_part_content_get() instead
10054 EINA_DEPRECATED EAPI Evas_Object *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10056 * Unset the layout content.
10058 * @param obj The layout object
10059 * @param swallow The swallow part name in the edje file
10060 * @return The content that was being used
10062 * Unparent and return the content object which was set for this part.
10064 * @deprecated use elm_object_part_content_unset() instead
10068 EINA_DEPRECATED EAPI Evas_Object *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10070 * Set the text of the given part
10072 * @param obj The layout object
10073 * @param part The TEXT part where to set the text
10074 * @param text The text to set
10077 * @deprecated use elm_object_part_text_set() instead.
10079 EINA_DEPRECATED EAPI void elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
10081 * Get the text set in the given part
10083 * @param obj The layout object
10084 * @param part The TEXT part to retrieve the text off
10086 * @return The text set in @p part
10089 * @deprecated use elm_object_part_text_get() instead.
10091 EINA_DEPRECATED EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
10093 * Append child to layout box part.
10095 * @param obj the layout object
10096 * @param part the box part to which the object will be appended.
10097 * @param child the child object to append to box.
10099 * Once the object is appended, it will become child of the layout. Its
10100 * lifetime will be bound to the layout, whenever the layout dies the child
10101 * will be deleted automatically. One should use elm_layout_box_remove() to
10102 * make this layout forget about the object.
10104 * @see elm_layout_box_prepend()
10105 * @see elm_layout_box_insert_before()
10106 * @see elm_layout_box_insert_at()
10107 * @see elm_layout_box_remove()
10111 EAPI void elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10113 * Prepend child to layout box part.
10115 * @param obj the layout object
10116 * @param part the box part to prepend.
10117 * @param child the child object to prepend to box.
10119 * Once the object is prepended, it will become child of the layout. Its
10120 * lifetime will be bound to the layout, whenever the layout dies the child
10121 * will be deleted automatically. One should use elm_layout_box_remove() to
10122 * make this layout forget about the object.
10124 * @see elm_layout_box_append()
10125 * @see elm_layout_box_insert_before()
10126 * @see elm_layout_box_insert_at()
10127 * @see elm_layout_box_remove()
10131 EAPI void elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
10133 * Insert child to layout box part before a reference object.
10135 * @param obj the layout object
10136 * @param part the box part to insert.
10137 * @param child the child object to insert into box.
10138 * @param reference another reference object to insert before in box.
10140 * Once the object is inserted, it will become child of the layout. Its
10141 * lifetime will be bound to the layout, whenever the layout dies the child
10142 * will be deleted automatically. One should use elm_layout_box_remove() to
10143 * make this layout forget about the object.
10145 * @see elm_layout_box_append()
10146 * @see elm_layout_box_prepend()
10147 * @see elm_layout_box_insert_before()
10148 * @see elm_layout_box_remove()
10152 EAPI void elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
10154 * Insert child to layout box part at a given position.
10156 * @param obj the layout object
10157 * @param part the box part to insert.
10158 * @param child the child object to insert into box.
10159 * @param pos the numeric position >=0 to insert the child.
10161 * Once the object is inserted, it will become child of the layout. Its
10162 * lifetime will be bound to the layout, whenever the layout dies the child
10163 * will be deleted automatically. One should use elm_layout_box_remove() to
10164 * make this layout forget about the object.
10166 * @see elm_layout_box_append()
10167 * @see elm_layout_box_prepend()
10168 * @see elm_layout_box_insert_before()
10169 * @see elm_layout_box_remove()
10173 EAPI void elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
10175 * Remove a child of the given part box.
10177 * @param obj The layout object
10178 * @param part The box part name to remove child.
10179 * @param child The object to remove from box.
10180 * @return The object that was being used, or NULL if not found.
10182 * The object will be removed from the box part and its lifetime will
10183 * not be handled by the layout anymore. This is equivalent to
10184 * elm_object_part_content_unset() for box.
10186 * @see elm_layout_box_append()
10187 * @see elm_layout_box_remove_all()
10191 EAPI Evas_Object *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
10193 * Remove all child of the given part box.
10195 * @param obj The layout object
10196 * @param part The box part name to remove child.
10197 * @param clear If EINA_TRUE, then all objects will be deleted as
10198 * well, otherwise they will just be removed and will be
10199 * dangling on the canvas.
10201 * The objects will be removed from the box part and their lifetime will
10202 * not be handled by the layout anymore. This is equivalent to
10203 * elm_layout_box_remove() for all box children.
10205 * @see elm_layout_box_append()
10206 * @see elm_layout_box_remove()
10210 EAPI void elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10212 * Insert child to layout table part.
10214 * @param obj the layout object
10215 * @param part the box part to pack child.
10216 * @param child_obj the child object to pack into table.
10217 * @param col the column to which the child should be added. (>= 0)
10218 * @param row the row to which the child should be added. (>= 0)
10219 * @param colspan how many columns should be used to store this object. (>=
10221 * @param rowspan how many rows should be used to store this object. (>= 1)
10223 * Once the object is inserted, it will become child of the table. Its
10224 * lifetime will be bound to the layout, and whenever the layout dies the
10225 * child will be deleted automatically. One should use
10226 * elm_layout_table_remove() to make this layout forget about the object.
10228 * If @p colspan or @p rowspan are bigger than 1, that object will occupy
10229 * more space than a single cell. For instance, the following code:
10231 * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
10234 * Would result in an object being added like the following picture:
10236 * @image html layout_colspan.png
10237 * @image latex layout_colspan.eps width=\textwidth
10239 * @see elm_layout_table_unpack()
10240 * @see elm_layout_table_clear()
10244 EAPI void elm_layout_table_pack(Evas_Object *obj, const char *part, Evas_Object *child_obj, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan) EINA_ARG_NONNULL(1);
10246 * Unpack (remove) a child of the given part table.
10248 * @param obj The layout object
10249 * @param part The table part name to remove child.
10250 * @param child_obj The object to remove from table.
10251 * @return The object that was being used, or NULL if not found.
10253 * The object will be unpacked from the table part and its lifetime
10254 * will not be handled by the layout anymore. This is equivalent to
10255 * elm_object_part_content_unset() for table.
10257 * @see elm_layout_table_pack()
10258 * @see elm_layout_table_clear()
10262 EAPI Evas_Object *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
10264 * Remove all child of the given part table.
10266 * @param obj The layout object
10267 * @param part The table part name to remove child.
10268 * @param clear If EINA_TRUE, then all objects will be deleted as
10269 * well, otherwise they will just be removed and will be
10270 * dangling on the canvas.
10272 * The objects will be removed from the table part and their lifetime will
10273 * not be handled by the layout anymore. This is equivalent to
10274 * elm_layout_table_unpack() for all table children.
10276 * @see elm_layout_table_pack()
10277 * @see elm_layout_table_unpack()
10281 EAPI void elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
10283 * Get the edje layout
10285 * @param obj The layout object
10287 * @return A Evas_Object with the edje layout settings loaded
10288 * with function elm_layout_file_set
10290 * This returns the edje object. It is not expected to be used to then
10291 * swallow objects via edje_object_part_swallow() for example. Use
10292 * elm_object_part_content_set() instead so child object handling and sizing is
10295 * @note This function should only be used if you really need to call some
10296 * low level Edje function on this edje object. All the common stuff (setting
10297 * text, emitting signals, hooking callbacks to signals, etc.) can be done
10298 * with proper elementary functions.
10300 * @see elm_object_signal_callback_add()
10301 * @see elm_object_signal_emit()
10302 * @see elm_object_part_text_set()
10303 * @see elm_object_part_content_set()
10304 * @see elm_layout_box_append()
10305 * @see elm_layout_table_pack()
10306 * @see elm_layout_data_get()
10310 EAPI Evas_Object *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10312 * Get the edje data from the given layout
10314 * @param obj The layout object
10315 * @param key The data key
10317 * @return The edje data string
10319 * This function fetches data specified inside the edje theme of this layout.
10320 * This function return NULL if data is not found.
10322 * In EDC this comes from a data block within the group block that @p
10323 * obj was loaded from. E.g.
10330 * item: "key1" "value1";
10331 * item: "key2" "value2";
10339 EAPI const char *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
10343 * @param obj The layout object
10345 * Manually forces a sizing re-evaluation. This is useful when the minimum
10346 * size required by the edje theme of this layout has changed. The change on
10347 * the minimum size required by the edje theme is not immediately reported to
10348 * the elementary layout, so one needs to call this function in order to tell
10349 * the widget (layout) that it needs to reevaluate its own size.
10351 * The minimum size of the theme is calculated based on minimum size of
10352 * parts, the size of elements inside containers like box and table, etc. All
10353 * of this can change due to state changes, and that's when this function
10354 * should be called.
10356 * Also note that a standard signal of "size,eval" "elm" emitted from the
10357 * edje object will cause this to happen too.
10361 EAPI void elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
10364 * Sets a specific cursor for an edje part.
10366 * @param obj The layout object.
10367 * @param part_name a part from loaded edje group.
10368 * @param cursor cursor name to use, see Elementary_Cursor.h
10370 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10371 * part not exists or it has "mouse_events: 0".
10375 EAPI Eina_Bool elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
10378 * Get the cursor to be shown when mouse is over an edje part
10380 * @param obj The layout object.
10381 * @param part_name a part from loaded edje group.
10382 * @return the cursor name.
10386 EAPI const char *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10389 * Unsets a cursor previously set with elm_layout_part_cursor_set().
10391 * @param obj The layout object.
10392 * @param part_name a part from loaded edje group, that had a cursor set
10393 * with elm_layout_part_cursor_set().
10397 EAPI void elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10400 * Sets a specific cursor style for an edje part.
10402 * @param obj The layout object.
10403 * @param part_name a part from loaded edje group.
10404 * @param style the theme style to use (default, transparent, ...)
10406 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10407 * part not exists or it did not had a cursor set.
10411 EAPI Eina_Bool elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
10414 * Gets a specific cursor style for an edje part.
10416 * @param obj The layout object.
10417 * @param part_name a part from loaded edje group.
10419 * @return the theme style in use, defaults to "default". If the
10420 * object does not have a cursor set, then NULL is returned.
10424 EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10427 * Sets if the cursor set should be searched on the theme or should use
10428 * the provided by the engine, only.
10430 * @note before you set if should look on theme you should define a
10431 * cursor with elm_layout_part_cursor_set(). By default it will only
10432 * look for cursors provided by the engine.
10434 * @param obj The layout object.
10435 * @param part_name a part from loaded edje group.
10436 * @param engine_only if cursors should be just provided by the engine
10437 * or should also search on widget's theme as well
10439 * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
10440 * part not exists or it did not had a cursor set.
10444 EAPI Eina_Bool elm_layout_part_cursor_engine_only_set(Evas_Object *obj, const char *part_name, Eina_Bool engine_only) EINA_ARG_NONNULL(1, 2);
10447 * Gets a specific cursor engine_only for an edje part.
10449 * @param obj The layout object.
10450 * @param part_name a part from loaded edje group.
10452 * @return whenever the cursor is just provided by engine or also from theme.
10456 EAPI Eina_Bool elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
10459 * @def elm_layout_icon_set
10460 * Convienience macro to set the icon object in a layout that follows the
10461 * Elementary naming convention for its parts.
10465 #define elm_layout_icon_set(_ly, _obj) \
10468 elm_object_part_content_set((_ly), "elm.swallow.icon", (_obj)); \
10469 if ((_obj)) sig = "elm,state,icon,visible"; \
10470 else sig = "elm,state,icon,hidden"; \
10471 elm_object_signal_emit((_ly), sig, "elm"); \
10475 * @def elm_layout_icon_get
10476 * Convienience macro to get the icon object from a layout that follows the
10477 * Elementary naming convention for its parts.
10481 #define elm_layout_icon_get(_ly) \
10482 elm_object_part_content_get((_ly), "elm.swallow.icon")
10485 * @def elm_layout_end_set
10486 * Convienience macro to set the end object in a layout that follows the
10487 * Elementary naming convention for its parts.
10491 #define elm_layout_end_set(_ly, _obj) \
10494 elm_object_part_content_set((_ly), "elm.swallow.end", (_obj)); \
10495 if ((_obj)) sig = "elm,state,end,visible"; \
10496 else sig = "elm,state,end,hidden"; \
10497 elm_object_signal_emit((_ly), sig, "elm"); \
10501 * @def elm_layout_end_get
10502 * Convienience macro to get the end object in a layout that follows the
10503 * Elementary naming convention for its parts.
10507 #define elm_layout_end_get(_ly) \
10508 elm_object_part_content_get((_ly), "elm.swallow.end")
10511 * @def elm_layout_label_set
10512 * Convienience macro to set the label in a layout that follows the
10513 * Elementary naming convention for its parts.
10516 * @deprecated use elm_object_text_set() instead.
10518 #define elm_layout_label_set(_ly, _txt) \
10519 elm_layout_text_set((_ly), "elm.text", (_txt))
10522 * @def elm_layout_label_get
10523 * Convenience macro to get the label in a layout that follows the
10524 * Elementary naming convention for its parts.
10527 * @deprecated use elm_object_text_set() instead.
10529 #define elm_layout_label_get(_ly) \
10530 elm_layout_text_get((_ly), "elm.text")
10532 /* smart callbacks called:
10533 * "theme,changed" - when elm theme is changed.
10537 * @defgroup Notify Notify
10539 * @image html img/widget/notify/preview-00.png
10540 * @image latex img/widget/notify/preview-00.eps
10542 * Display a container in a particular region of the parent(top, bottom,
10543 * etc). A timeout can be set to automatically hide the notify. This is so
10544 * that, after an evas_object_show() on a notify object, if a timeout was set
10545 * on it, it will @b automatically get hidden after that time.
10547 * Signals that you can add callbacks for are:
10548 * @li "timeout" - when timeout happens on notify and it's hidden
10549 * @li "block,clicked" - when a click outside of the notify happens
10551 * Default contents parts of the notify widget that you can use for are:
10552 * @li "default" - A content of the notify
10554 * @ref tutorial_notify show usage of the API.
10559 * @brief Possible orient values for notify.
10561 * This values should be used in conjunction to elm_notify_orient_set() to
10562 * set the position in which the notify should appear(relative to its parent)
10563 * and in conjunction with elm_notify_orient_get() to know where the notify
10566 typedef enum _Elm_Notify_Orient
10568 ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10569 ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10570 ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10571 ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10572 ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10573 ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10574 ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10575 ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10576 ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10577 ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10578 } Elm_Notify_Orient;
10580 * @brief Add a new notify to the parent
10582 * @param parent The parent object
10583 * @return The new object or NULL if it cannot be created
10585 EAPI Evas_Object *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10587 * @brief Set the content of the notify widget
10589 * @param obj The notify object
10590 * @param content The content will be filled in this notify object
10592 * Once the content object is set, a previously set one will be deleted. If
10593 * you want to keep that old content object, use the
10594 * elm_notify_content_unset() function.
10596 * @deprecated use elm_object_content_set() instead
10599 EINA_DEPRECATED EAPI void elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10601 * @brief Unset the content of the notify widget
10603 * @param obj The notify object
10604 * @return The content that was being used
10606 * Unparent and return the content object which was set for this widget
10608 * @see elm_notify_content_set()
10609 * @deprecated use elm_object_content_unset() instead
10612 EINA_DEPRECATED EAPI Evas_Object *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10614 * @brief Return the content of the notify widget
10616 * @param obj The notify object
10617 * @return The content that is being used
10619 * @see elm_notify_content_set()
10620 * @deprecated use elm_object_content_get() instead
10623 EINA_DEPRECATED EAPI Evas_Object *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10625 * @brief Set the notify parent
10627 * @param obj The notify object
10628 * @param content The new parent
10630 * Once the parent object is set, a previously set one will be disconnected
10633 EAPI void elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10635 * @brief Get the notify parent
10637 * @param obj The notify object
10638 * @return The parent
10640 * @see elm_notify_parent_set()
10642 EAPI Evas_Object *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10644 * @brief Set the orientation
10646 * @param obj The notify object
10647 * @param orient The new orientation
10649 * Sets the position in which the notify will appear in its parent.
10651 * @see @ref Elm_Notify_Orient for possible values.
10653 EAPI void elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10655 * @brief Return the orientation
10656 * @param obj The notify object
10657 * @return The orientation of the notification
10659 * @see elm_notify_orient_set()
10660 * @see Elm_Notify_Orient
10662 EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10664 * @brief Set the time interval after which the notify window is going to be
10667 * @param obj The notify object
10668 * @param time The timeout in seconds
10670 * This function sets a timeout and starts the timer controlling when the
10671 * notify is hidden. Since calling evas_object_show() on a notify restarts
10672 * the timer controlling when the notify is hidden, setting this before the
10673 * notify is shown will in effect mean starting the timer when the notify is
10676 * @note Set a value <= 0.0 to disable a running timer.
10678 * @note If the value > 0.0 and the notify is previously visible, the
10679 * timer will be started with this value, canceling any running timer.
10681 EAPI void elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10683 * @brief Return the timeout value (in seconds)
10684 * @param obj the notify object
10686 * @see elm_notify_timeout_set()
10688 EAPI double elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10690 * @brief Sets whether events should be passed to by a click outside
10693 * @param obj The notify object
10694 * @param repeats EINA_TRUE Events are repeats, else no
10696 * When true if the user clicks outside the window the events will be caught
10697 * by the others widgets, else the events are blocked.
10699 * @note The default value is EINA_TRUE.
10701 EAPI void elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10703 * @brief Return true if events are repeat below the notify object
10704 * @param obj the notify object
10706 * @see elm_notify_repeat_events_set()
10708 EAPI Eina_Bool elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10714 * @defgroup Hover Hover
10716 * @image html img/widget/hover/preview-00.png
10717 * @image latex img/widget/hover/preview-00.eps
10719 * A Hover object will hover over its @p parent object at the @p target
10720 * location. Anything in the background will be given a darker coloring to
10721 * indicate that the hover object is on top (at the default theme). When the
10722 * hover is clicked it is dismissed(hidden), if the contents of the hover are
10723 * clicked that @b doesn't cause the hover to be dismissed.
10725 * A Hover object has two parents. One parent that owns it during creation
10726 * and the other parent being the one over which the hover object spans.
10729 * @note The hover object will take up the entire space of @p target
10732 * Elementary has the following styles for the hover widget:
10736 * @li hoversel_vertical
10738 * The following are the available position for content:
10750 * Signals that you can add callbacks for are:
10751 * @li "clicked" - the user clicked the empty space in the hover to dismiss
10752 * @li "smart,changed" - a content object placed under the "smart"
10753 * policy was replaced to a new slot direction.
10755 * See @ref tutorial_hover for more information.
10759 typedef enum _Elm_Hover_Axis
10761 ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10762 ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10763 ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10764 ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10767 * @brief Adds a hover object to @p parent
10769 * @param parent The parent object
10770 * @return The hover object or NULL if one could not be created
10772 EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10774 * @brief Sets the target object for the hover.
10776 * @param obj The hover object
10777 * @param target The object to center the hover onto. The hover
10779 * This function will cause the hover to be centered on the target object.
10781 EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10783 * @brief Gets the target object for the hover.
10785 * @param obj The hover object
10786 * @param parent The object to locate the hover over.
10788 * @see elm_hover_target_set()
10790 EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10792 * @brief Sets the parent object for the hover.
10794 * @param obj The hover object
10795 * @param parent The object to locate the hover over.
10797 * This function will cause the hover to take up the entire space that the
10798 * parent object fills.
10800 EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10802 * @brief Gets the parent object for the hover.
10804 * @param obj The hover object
10805 * @return The parent object to locate the hover over.
10807 * @see elm_hover_parent_set()
10809 EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10811 * @brief Sets the content of the hover object and the direction in which it
10814 * @param obj The hover object
10815 * @param swallow The direction that the object will be displayed
10816 * at. Accepted values are "left", "top-left", "top", "top-right",
10817 * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10819 * @param content The content to place at @p swallow
10821 * Once the content object is set for a given direction, a previously
10822 * set one (on the same direction) will be deleted. If you want to
10823 * keep that old content object, use the elm_hover_content_unset()
10826 * All directions may have contents at the same time, except for
10827 * "smart". This is a special placement hint and its use case
10828 * independs of the calculations coming from
10829 * elm_hover_best_content_location_get(). Its use is for cases when
10830 * one desires only one hover content, but with a dinamic special
10831 * placement within the hover area. The content's geometry, whenever
10832 * it changes, will be used to decide on a best location not
10833 * extrapolating the hover's parent object view to show it in (still
10834 * being the hover's target determinant of its medium part -- move and
10835 * resize it to simulate finger sizes, for example). If one of the
10836 * directions other than "smart" are used, a previously content set
10837 * using it will be deleted, and vice-versa.
10839 EAPI void elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10841 * @brief Get the content of the hover object, in a given direction.
10843 * Return the content object which was set for this widget in the
10844 * @p swallow direction.
10846 * @param obj The hover object
10847 * @param swallow The direction that the object was display at.
10848 * @return The content that was being used
10850 * @see elm_hover_content_set()
10852 EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10854 * @brief Unset the content of the hover object, in a given direction.
10856 * Unparent and return the content object set at @p swallow direction.
10858 * @param obj The hover object
10859 * @param swallow The direction that the object was display at.
10860 * @return The content that was being used.
10862 * @see elm_hover_content_set()
10864 EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10866 * @brief Returns the best swallow location for content in the hover.
10868 * @param obj The hover object
10869 * @param pref_axis The preferred orientation axis for the hover object to use
10870 * @return The edje location to place content into the hover or @c
10873 * Best is defined here as the location at which there is the most available
10876 * @p pref_axis may be one of
10877 * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10878 * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10879 * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10880 * - @c ELM_HOVER_AXIS_BOTH -- both
10882 * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10883 * nescessarily be along the horizontal axis("left" or "right"). If
10884 * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10885 * be along the vertical axis("top" or "bottom"). Chossing
10886 * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10887 * returned position may be in either axis.
10889 * @see elm_hover_content_set()
10891 EAPI const char *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10898 * @defgroup Entry Entry
10900 * @image html img/widget/entry/preview-00.png
10901 * @image latex img/widget/entry/preview-00.eps width=\textwidth
10902 * @image html img/widget/entry/preview-01.png
10903 * @image latex img/widget/entry/preview-01.eps width=\textwidth
10904 * @image html img/widget/entry/preview-02.png
10905 * @image latex img/widget/entry/preview-02.eps width=\textwidth
10906 * @image html img/widget/entry/preview-03.png
10907 * @image latex img/widget/entry/preview-03.eps width=\textwidth
10909 * An entry is a convenience widget which shows a box that the user can
10910 * enter text into. Entries by default don't scroll, so they grow to
10911 * accomodate the entire text, resizing the parent window as needed. This
10912 * can be changed with the elm_entry_scrollable_set() function.
10914 * They can also be single line or multi line (the default) and when set
10915 * to multi line mode they support text wrapping in any of the modes
10916 * indicated by #Elm_Wrap_Type.
10918 * Other features include password mode, filtering of inserted text with
10919 * elm_entry_text_filter_append() and related functions, inline "items" and
10920 * formatted markup text.
10922 * @section entry-markup Formatted text
10924 * The markup tags supported by the Entry are defined by the theme, but
10925 * even when writing new themes or extensions it's a good idea to stick to
10926 * a sane default, to maintain coherency and avoid application breakages.
10927 * Currently defined by the default theme are the following tags:
10928 * @li \<br\>: Inserts a line break.
10929 * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10931 * @li \<tab\>: Inserts a tab.
10932 * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10934 * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10935 * @li \<link\>...\</link\>: Underlines the enclosed text.
10936 * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10938 * @section entry-special Special markups
10940 * Besides those used to format text, entries support two special markup
10941 * tags used to insert clickable portions of text or items inlined within
10944 * @subsection entry-anchors Anchors
10946 * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10947 * \</a\> tags and an event will be generated when this text is clicked,
10951 * This text is outside <a href=anc-01>but this one is an anchor</a>
10954 * The @c href attribute in the opening tag gives the name that will be
10955 * used to identify the anchor and it can be any valid utf8 string.
10957 * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10958 * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10959 * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10960 * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10963 * @subsection entry-items Items
10965 * Inlined in the text, any other @c Evas_Object can be inserted by using
10966 * \<item\> tags this way:
10969 * <item size=16x16 vsize=full href=emoticon/haha></item>
10972 * Just like with anchors, the @c href identifies each item, but these need,
10973 * in addition, to indicate their size, which is done using any one of
10974 * @c size, @c absize or @c relsize attributes. These attributes take their
10975 * value in the WxH format, where W is the width and H the height of the
10978 * @li absize: Absolute pixel size for the item. Whatever value is set will
10979 * be the item's size regardless of any scale value the object may have
10980 * been set to. The final line height will be adjusted to fit larger items.
10981 * @li size: Similar to @c absize, but it's adjusted to the scale value set
10983 * @li relsize: Size is adjusted for the item to fit within the current
10986 * Besides their size, items are specificed a @c vsize value that affects
10987 * how their final size and position are calculated. The possible values
10989 * @li ascent: Item will be placed within the line's baseline and its
10990 * ascent. That is, the height between the line where all characters are
10991 * positioned and the highest point in the line. For @c size and @c absize
10992 * items, the descent value will be added to the total line height to make
10993 * them fit. @c relsize items will be adjusted to fit within this space.
10994 * @li full: Items will be placed between the descent and ascent, or the
10995 * lowest point in the line and its highest.
10997 * The next image shows different configurations of items and how they
10998 * are the previously mentioned options affect their sizes. In all cases,
10999 * the green line indicates the ascent, blue for the baseline and red for
11002 * @image html entry_item.png
11003 * @image latex entry_item.eps width=\textwidth
11005 * And another one to show how size differs from absize. In the first one,
11006 * the scale value is set to 1.0, while the second one is using one of 2.0.
11008 * @image html entry_item_scale.png
11009 * @image latex entry_item_scale.eps width=\textwidth
11011 * After the size for an item is calculated, the entry will request an
11012 * object to place in its space. For this, the functions set with
11013 * elm_entry_item_provider_append() and related functions will be called
11014 * in order until one of them returns a @c non-NULL value. If no providers
11015 * are available, or all of them return @c NULL, then the entry falls back
11016 * to one of the internal defaults, provided the name matches with one of
11019 * All of the following are currently supported:
11022 * - emoticon/angry-shout
11023 * - emoticon/crazy-laugh
11024 * - emoticon/evil-laugh
11026 * - emoticon/goggle-smile
11027 * - emoticon/grumpy
11028 * - emoticon/grumpy-smile
11029 * - emoticon/guilty
11030 * - emoticon/guilty-smile
11032 * - emoticon/half-smile
11033 * - emoticon/happy-panting
11035 * - emoticon/indifferent
11037 * - emoticon/knowing-grin
11039 * - emoticon/little-bit-sorry
11040 * - emoticon/love-lots
11042 * - emoticon/minimal-smile
11043 * - emoticon/not-happy
11044 * - emoticon/not-impressed
11046 * - emoticon/opensmile
11049 * - emoticon/squint-laugh
11050 * - emoticon/surprised
11051 * - emoticon/suspicious
11052 * - emoticon/tongue-dangling
11053 * - emoticon/tongue-poke
11055 * - emoticon/unhappy
11056 * - emoticon/very-sorry
11059 * - emoticon/worried
11062 * Alternatively, an item may reference an image by its path, using
11063 * the URI form @c file:///path/to/an/image.png and the entry will then
11064 * use that image for the item.
11066 * @section entry-files Loading and saving files
11068 * Entries have convinience functions to load text from a file and save
11069 * changes back to it after a short delay. The automatic saving is enabled
11070 * by default, but can be disabled with elm_entry_autosave_set() and files
11071 * can be loaded directly as plain text or have any markup in them
11072 * recognized. See elm_entry_file_set() for more details.
11074 * @section entry-signals Emitted signals
11076 * This widget emits the following signals:
11078 * @li "changed": The text within the entry was changed.
11079 * @li "changed,user": The text within the entry was changed because of user interaction.
11080 * @li "activated": The enter key was pressed on a single line entry.
11081 * @li "press": A mouse button has been pressed on the entry.
11082 * @li "longpressed": A mouse button has been pressed and held for a couple
11084 * @li "clicked": The entry has been clicked (mouse press and release).
11085 * @li "clicked,double": The entry has been double clicked.
11086 * @li "clicked,triple": The entry has been triple clicked.
11087 * @li "focused": The entry has received focus.
11088 * @li "unfocused": The entry has lost focus.
11089 * @li "selection,paste": A paste of the clipboard contents was requested.
11090 * @li "selection,copy": A copy of the selected text into the clipboard was
11092 * @li "selection,cut": A cut of the selected text into the clipboard was
11094 * @li "selection,start": A selection has begun and no previous selection
11096 * @li "selection,changed": The current selection has changed.
11097 * @li "selection,cleared": The current selection has been cleared.
11098 * @li "cursor,changed": The cursor has changed position.
11099 * @li "anchor,clicked": An anchor has been clicked. The event_info
11100 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11101 * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
11102 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11103 * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
11104 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11105 * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
11106 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11107 * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
11108 * parameter for the callback will be an #Elm_Entry_Anchor_Info.
11109 * @li "preedit,changed": The preedit string has changed.
11110 * @li "language,changed": Program language changed.
11112 * @section entry-examples
11114 * An overview of the Entry API can be seen in @ref entry_example_01
11119 * @typedef Elm_Entry_Anchor_Info
11121 * The info sent in the callback for the "anchor,clicked" signals emitted
11124 typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
11126 * @struct _Elm_Entry_Anchor_Info
11128 * The info sent in the callback for the "anchor,clicked" signals emitted
11131 struct _Elm_Entry_Anchor_Info
11133 const char *name; /**< The name of the anchor, as stated in its href */
11134 int button; /**< The mouse button used to click on it */
11135 Evas_Coord x, /**< Anchor geometry, relative to canvas */
11136 y, /**< Anchor geometry, relative to canvas */
11137 w, /**< Anchor geometry, relative to canvas */
11138 h; /**< Anchor geometry, relative to canvas */
11141 * @typedef Elm_Entry_Filter_Cb
11142 * This callback type is used by entry filters to modify text.
11143 * @param data The data specified as the last param when adding the filter
11144 * @param entry The entry object
11145 * @param text A pointer to the location of the text being filtered. This data can be modified,
11146 * but any additional allocations must be managed by the user.
11147 * @see elm_entry_text_filter_append
11148 * @see elm_entry_text_filter_prepend
11150 typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
11153 * @typedef Elm_Entry_Change_Info
11154 * This corresponds to Edje_Entry_Change_Info. Includes information about
11155 * a change in the entry.
11157 typedef Edje_Entry_Change_Info Elm_Entry_Change_Info;
11161 * This adds an entry to @p parent object.
11163 * By default, entries are:
11167 * @li autosave is enabled
11169 * @param parent The parent object
11170 * @return The new object or NULL if it cannot be created
11172 EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11174 * Sets the entry to single line mode.
11176 * In single line mode, entries don't ever wrap when the text reaches the
11177 * edge, and instead they keep growing horizontally. Pressing the @c Enter
11178 * key will generate an @c "activate" event instead of adding a new line.
11180 * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
11181 * and pressing enter will break the text into a different line
11182 * without generating any events.
11184 * @param obj The entry object
11185 * @param single_line If true, the text in the entry
11186 * will be on a single line.
11188 EAPI void elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
11190 * Gets whether the entry is set to be single line.
11192 * @param obj The entry object
11193 * @return single_line If true, the text in the entry is set to display
11194 * on a single line.
11196 * @see elm_entry_single_line_set()
11198 EAPI Eina_Bool elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11200 * Sets the entry to password mode.
11202 * In password mode, entries are implicitly single line and the display of
11203 * any text in them is replaced with asterisks (*).
11205 * @param obj The entry object
11206 * @param password If true, password mode is enabled.
11208 EAPI void elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
11210 * Gets whether the entry is set to password mode.
11212 * @param obj The entry object
11213 * @return If true, the entry is set to display all characters
11214 * as asterisks (*).
11216 * @see elm_entry_password_set()
11218 EAPI Eina_Bool elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11220 * This sets the text displayed within the entry to @p entry.
11222 * @param obj The entry object
11223 * @param entry The text to be displayed
11225 * @deprecated Use elm_object_text_set() instead.
11226 * @note Using this function bypasses text filters
11228 EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11230 * This returns the text currently shown in object @p entry.
11231 * See also elm_entry_entry_set().
11233 * @param obj The entry object
11234 * @return The currently displayed text or NULL on failure
11236 * @deprecated Use elm_object_text_get() instead.
11238 EAPI const char *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11240 * Appends @p entry to the text of the entry.
11242 * Adds the text in @p entry to the end of any text already present in the
11245 * The appended text is subject to any filters set for the widget.
11247 * @param obj The entry object
11248 * @param entry The text to be displayed
11250 * @see elm_entry_text_filter_append()
11252 EAPI void elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11254 * Gets whether the entry is empty.
11256 * Empty means no text at all. If there are any markup tags, like an item
11257 * tag for which no provider finds anything, and no text is displayed, this
11258 * function still returns EINA_FALSE.
11260 * @param obj The entry object
11261 * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
11263 EAPI Eina_Bool elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11265 * Gets any selected text within the entry.
11267 * If there's any selected text in the entry, this function returns it as
11268 * a string in markup format. NULL is returned if no selection exists or
11269 * if an error occurred.
11271 * The returned value points to an internal string and should not be freed
11272 * or modified in any way. If the @p entry object is deleted or its
11273 * contents are changed, the returned pointer should be considered invalid.
11275 * @param obj The entry object
11276 * @return The selected text within the entry or NULL on failure
11278 EAPI const char *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11280 * Returns the actual textblock object of the entry.
11282 * This function exposes the internal textblock object that actually
11283 * contains and draws the text. This should be used for low-level
11284 * manipulations that are otherwise not possible.
11286 * Changing the textblock directly from here will not notify edje/elm to
11287 * recalculate the textblock size automatically, so any modifications
11288 * done to the textblock returned by this function should be followed by
11289 * a call to elm_entry_calc_force().
11291 * The return value is marked as const as an additional warning.
11292 * One should not use the returned object with any of the generic evas
11293 * functions (geometry_get/resize/move and etc), but only with the textblock
11294 * functions; The former will either not work at all, or break the correct
11297 * IMPORTANT: Many functions may change (i.e delete and create a new one)
11298 * the internal textblock object. Do NOT cache the returned object, and try
11299 * not to mix calls on this object with regular elm_entry calls (which may
11300 * change the internal textblock object). This applies to all cursors
11301 * returned from textblock calls, and all the other derivative values.
11303 * @param obj The entry object
11304 * @return The textblock object.
11306 EAPI const Evas_Object *elm_entry_textblock_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11308 * Forces calculation of the entry size and text layouting.
11310 * This should be used after modifying the textblock object directly. See
11311 * elm_entry_textblock_get() for more information.
11313 * @param obj The entry object
11315 * @see elm_entry_textblock_get()
11317 EAPI void elm_entry_calc_force(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11319 * Inserts the given text into the entry at the current cursor position.
11321 * This inserts text at the cursor position as if it was typed
11322 * by the user (note that this also allows markup which a user
11323 * can't just "type" as it would be converted to escaped text, so this
11324 * call can be used to insert things like emoticon items or bold push/pop
11325 * tags, other font and color change tags etc.)
11327 * If any selection exists, it will be replaced by the inserted text.
11329 * The inserted text is subject to any filters set for the widget.
11331 * @param obj The entry object
11332 * @param entry The text to insert
11334 * @see elm_entry_text_filter_append()
11336 EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
11338 * Set the line wrap type to use on multi-line entries.
11340 * Sets the wrap type used by the entry to any of the specified in
11341 * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
11342 * line (without inserting a line break or paragraph separator) when it
11343 * reaches the far edge of the widget.
11345 * Note that this only makes sense for multi-line entries. A widget set
11346 * to be single line will never wrap.
11348 * @param obj The entry object
11349 * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
11351 EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
11353 * Gets the wrap mode the entry was set to use.
11355 * @param obj The entry object
11356 * @return Wrap type
11358 * @see also elm_entry_line_wrap_set()
11360 EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11362 * Sets if the entry is to be editable or not.
11364 * By default, entries are editable and when focused, any text input by the
11365 * user will be inserted at the current cursor position. But calling this
11366 * function with @p editable as EINA_FALSE will prevent the user from
11367 * inputting text into the entry.
11369 * The only way to change the text of a non-editable entry is to use
11370 * elm_object_text_set(), elm_entry_entry_insert() and other related
11373 * @param obj The entry object
11374 * @param editable If EINA_TRUE, user input will be inserted in the entry,
11375 * if not, the entry is read-only and no user input is allowed.
11377 EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
11379 * Gets whether the entry is editable or not.
11381 * @param obj The entry object
11382 * @return If true, the entry is editable by the user.
11383 * If false, it is not editable by the user
11385 * @see elm_entry_editable_set()
11387 EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11389 * This drops any existing text selection within the entry.
11391 * @param obj The entry object
11393 EAPI void elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
11395 * This selects all text within the entry.
11397 * @param obj The entry object
11399 EAPI void elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
11401 * This moves the cursor one place to the right within the entry.
11403 * @param obj The entry object
11404 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11406 EAPI Eina_Bool elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
11408 * This moves the cursor one place to the left within the entry.
11410 * @param obj The entry object
11411 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11413 EAPI Eina_Bool elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
11415 * This moves the cursor one line up within the entry.
11417 * @param obj The entry object
11418 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11420 EAPI Eina_Bool elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
11422 * This moves the cursor one line down within the entry.
11424 * @param obj The entry object
11425 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11427 EAPI Eina_Bool elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
11429 * This moves the cursor to the beginning of the entry.
11431 * @param obj The entry object
11433 EAPI void elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11435 * This moves the cursor to the end of the entry.
11437 * @param obj The entry object
11439 EAPI void elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11441 * This moves the cursor to the beginning of the current line.
11443 * @param obj The entry object
11445 EAPI void elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11447 * This moves the cursor to the end of the current line.
11449 * @param obj The entry object
11451 EAPI void elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
11453 * This begins a selection within the entry as though
11454 * the user were holding down the mouse button to make a selection.
11456 * @param obj The entry object
11458 EAPI void elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
11460 * This ends a selection within the entry as though
11461 * the user had just released the mouse button while making a selection.
11463 * @param obj The entry object
11465 EAPI void elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11467 * Gets whether a format node exists at the current cursor position.
11469 * A format node is anything that defines how the text is rendered. It can
11470 * be a visible format node, such as a line break or a paragraph separator,
11471 * or an invisible one, such as bold begin or end tag.
11472 * This function returns whether any format node exists at the current
11475 * @param obj The entry object
11476 * @return EINA_TRUE if the current cursor position contains a format node,
11477 * EINA_FALSE otherwise.
11479 * @see elm_entry_cursor_is_visible_format_get()
11481 EAPI Eina_Bool elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11483 * Gets if the current cursor position holds a visible format node.
11485 * @param obj The entry object
11486 * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
11487 * if it's an invisible one or no format exists.
11489 * @see elm_entry_cursor_is_format_get()
11491 EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11493 * Gets the character pointed by the cursor at its current position.
11495 * This function returns a string with the utf8 character stored at the
11496 * current cursor position.
11497 * Only the text is returned, any format that may exist will not be part
11498 * of the return value.
11500 * @param obj The entry object
11501 * @return The text pointed by the cursors.
11503 EAPI const char *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11505 * This function returns the geometry of the cursor.
11507 * It's useful if you want to draw something on the cursor (or where it is),
11508 * or for example in the case of scrolled entry where you want to show the
11511 * @param obj The entry object
11512 * @param x returned geometry
11513 * @param y returned geometry
11514 * @param w returned geometry
11515 * @param h returned geometry
11516 * @return EINA_TRUE upon success, EINA_FALSE upon failure
11518 EAPI Eina_Bool elm_entry_cursor_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
11520 * Sets the cursor position in the entry to the given value
11522 * The value in @p pos is the index of the character position within the
11523 * contents of the string as returned by elm_entry_cursor_pos_get().
11525 * @param obj The entry object
11526 * @param pos The position of the cursor
11528 EAPI void elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
11530 * Retrieves the current position of the cursor in the entry
11532 * @param obj The entry object
11533 * @return The cursor position
11535 EAPI int elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11537 * This executes a "cut" action on the selected text in the entry.
11539 * @param obj The entry object
11541 EAPI void elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
11543 * This executes a "copy" action on the selected text in the entry.
11545 * @param obj The entry object
11547 EAPI void elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
11549 * This executes a "paste" action in the entry.
11551 * @param obj The entry object
11553 EAPI void elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
11555 * This clears and frees the items in a entry's contextual (longpress)
11558 * @param obj The entry object
11560 * @see elm_entry_context_menu_item_add()
11562 EAPI void elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
11564 * This adds an item to the entry's contextual menu.
11566 * A longpress on an entry will make the contextual menu show up, if this
11567 * hasn't been disabled with elm_entry_context_menu_disabled_set().
11568 * By default, this menu provides a few options like enabling selection mode,
11569 * which is useful on embedded devices that need to be explicit about it,
11570 * and when a selection exists it also shows the copy and cut actions.
11572 * With this function, developers can add other options to this menu to
11573 * perform any action they deem necessary.
11575 * @param obj The entry object
11576 * @param label The item's text label
11577 * @param icon_file The item's icon file
11578 * @param icon_type The item's icon type
11579 * @param func The callback to execute when the item is clicked
11580 * @param data The data to associate with the item for related functions
11582 EAPI void elm_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
11584 * This disables the entry's contextual (longpress) menu.
11586 * @param obj The entry object
11587 * @param disabled If true, the menu is disabled
11589 EAPI void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11591 * This returns whether the entry's contextual (longpress) menu is
11594 * @param obj The entry object
11595 * @return If true, the menu is disabled
11597 EAPI Eina_Bool elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11599 * This appends a custom item provider to the list for that entry
11601 * This appends the given callback. The list is walked from beginning to end
11602 * with each function called given the item href string in the text. If the
11603 * function returns an object handle other than NULL (it should create an
11604 * object to do this), then this object is used to replace that item. If
11605 * not the next provider is called until one provides an item object, or the
11606 * default provider in entry does.
11608 * @param obj The entry object
11609 * @param func The function called to provide the item object
11610 * @param data The data passed to @p func
11612 * @see @ref entry-items
11614 EAPI void elm_entry_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
11616 * This prepends a custom item provider to the list for that entry
11618 * This prepends the given callback. See elm_entry_item_provider_append() for
11621 * @param obj The entry object
11622 * @param func The function called to provide the item object
11623 * @param data The data passed to @p func
11625 EAPI void elm_entry_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
11627 * This removes a custom item provider to the list for that entry
11629 * This removes the given callback. See elm_entry_item_provider_append() for
11632 * @param obj The entry object
11633 * @param func The function called to provide the item object
11634 * @param data The data passed to @p func
11636 EAPI void elm_entry_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
11638 * Append a filter function for text inserted in the entry
11640 * Append the given callback to the list. This functions will be called
11641 * whenever any text is inserted into the entry, with the text to be inserted
11642 * as a parameter. The callback function is free to alter the text in any way
11643 * it wants, but it must remember to free the given pointer and update it.
11644 * If the new text is to be discarded, the function can free it and set its
11645 * text parameter to NULL. This will also prevent any following filters from
11648 * @param obj The entry object
11649 * @param func The function to use as text filter
11650 * @param data User data to pass to @p func
11652 EAPI void elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11654 * Prepend a filter function for text insdrted in the entry
11656 * Prepend the given callback to the list. See elm_entry_text_filter_append()
11657 * for more information
11659 * @param obj The entry object
11660 * @param func The function to use as text filter
11661 * @param data User data to pass to @p func
11663 EAPI void elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11665 * Remove a filter from the list
11667 * Removes the given callback from the filter list. See
11668 * elm_entry_text_filter_append() for more information.
11670 * @param obj The entry object
11671 * @param func The filter function to remove
11672 * @param data The user data passed when adding the function
11674 EAPI void elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11676 * This converts a markup (HTML-like) string into UTF-8.
11678 * The returned string is a malloc'ed buffer and it should be freed when
11679 * not needed anymore.
11681 * @param s The string (in markup) to be converted
11682 * @return The converted string (in UTF-8). It should be freed.
11684 EAPI char *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11686 * This converts a UTF-8 string into markup (HTML-like).
11688 * The returned string is a malloc'ed buffer and it should be freed when
11689 * not needed anymore.
11691 * @param s The string (in UTF-8) to be converted
11692 * @return The converted string (in markup). It should be freed.
11694 EAPI char *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11696 * This sets the file (and implicitly loads it) for the text to display and
11697 * then edit. All changes are written back to the file after a short delay if
11698 * the entry object is set to autosave (which is the default).
11700 * If the entry had any other file set previously, any changes made to it
11701 * will be saved if the autosave feature is enabled, otherwise, the file
11702 * will be silently discarded and any non-saved changes will be lost.
11704 * @param obj The entry object
11705 * @param file The path to the file to load and save
11706 * @param format The file format
11708 EAPI void elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11710 * Gets the file being edited by the entry.
11712 * This function can be used to retrieve any file set on the entry for
11713 * edition, along with the format used to load and save it.
11715 * @param obj The entry object
11716 * @param file The path to the file to load and save
11717 * @param format The file format
11719 EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11721 * This function writes any changes made to the file set with
11722 * elm_entry_file_set()
11724 * @param obj The entry object
11726 EAPI void elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11728 * This sets the entry object to 'autosave' the loaded text file or not.
11730 * @param obj The entry object
11731 * @param autosave Autosave the loaded file or not
11733 * @see elm_entry_file_set()
11735 EAPI void elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11737 * This gets the entry object's 'autosave' status.
11739 * @param obj The entry object
11740 * @return Autosave the loaded file or not
11742 * @see elm_entry_file_set()
11744 EAPI Eina_Bool elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11746 * Control pasting of text and images for the widget.
11748 * Normally the entry allows both text and images to be pasted. By setting
11749 * textonly to be true, this prevents images from being pasted.
11751 * Note this only changes the behaviour of text.
11753 * @param obj The entry object
11754 * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11755 * text+image+other.
11757 EAPI void elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11759 * Getting elm_entry text paste/drop mode.
11761 * In textonly mode, only text may be pasted or dropped into the widget.
11763 * @param obj The entry object
11764 * @return If the widget only accepts text from pastes.
11766 EAPI Eina_Bool elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11768 * Enable or disable scrolling in entry
11770 * Normally the entry is not scrollable unless you enable it with this call.
11772 * @param obj The entry object
11773 * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11775 EAPI void elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11777 * Get the scrollable state of the entry
11779 * Normally the entry is not scrollable. This gets the scrollable state
11780 * of the entry. See elm_entry_scrollable_set() for more information.
11782 * @param obj The entry object
11783 * @return The scrollable state
11785 EAPI Eina_Bool elm_entry_scrollable_get(const Evas_Object *obj);
11787 * This sets a widget to be displayed to the left of a scrolled entry.
11789 * @param obj The scrolled entry object
11790 * @param icon The widget to display on the left side of the scrolled
11793 * @note A previously set widget will be destroyed.
11794 * @note If the object being set does not have minimum size hints set,
11795 * it won't get properly displayed.
11797 * @see elm_entry_end_set()
11799 EAPI void elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11801 * Gets the leftmost widget of the scrolled entry. This object is
11802 * owned by the scrolled entry and should not be modified.
11804 * @param obj The scrolled entry object
11805 * @return the left widget inside the scroller
11807 EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11809 * Unset the leftmost widget of the scrolled entry, unparenting and
11812 * @param obj The scrolled entry object
11813 * @return the previously set icon sub-object of this entry, on
11816 * @see elm_entry_icon_set()
11818 EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11820 * Sets the visibility of the left-side widget of the scrolled entry,
11821 * set by elm_entry_icon_set().
11823 * @param obj The scrolled entry object
11824 * @param setting EINA_TRUE if the object should be displayed,
11825 * EINA_FALSE if not.
11827 EAPI void elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11829 * This sets a widget to be displayed to the end of a scrolled entry.
11831 * @param obj The scrolled entry object
11832 * @param end The widget to display on the right side of the scrolled
11835 * @note A previously set widget will be destroyed.
11836 * @note If the object being set does not have minimum size hints set,
11837 * it won't get properly displayed.
11839 * @see elm_entry_icon_set
11841 EAPI void elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11843 * Gets the endmost widget of the scrolled entry. This object is owned
11844 * by the scrolled entry and should not be modified.
11846 * @param obj The scrolled entry object
11847 * @return the right widget inside the scroller
11849 EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11851 * Unset the endmost widget of the scrolled entry, unparenting and
11854 * @param obj The scrolled entry object
11855 * @return the previously set icon sub-object of this entry, on
11858 * @see elm_entry_icon_set()
11860 EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11862 * Sets the visibility of the end widget of the scrolled entry, set by
11863 * elm_entry_end_set().
11865 * @param obj The scrolled entry object
11866 * @param setting EINA_TRUE if the object should be displayed,
11867 * EINA_FALSE if not.
11869 EAPI void elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11871 * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11874 * Setting an entry to single-line mode with elm_entry_single_line_set()
11875 * will automatically disable the display of scrollbars when the entry
11876 * moves inside its scroller.
11878 * @param obj The scrolled entry object
11879 * @param h The horizontal scrollbar policy to apply
11880 * @param v The vertical scrollbar policy to apply
11882 EAPI void elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11884 * This enables/disables bouncing within the entry.
11886 * This function sets whether the entry will bounce when scrolling reaches
11887 * the end of the contained entry.
11889 * @param obj The scrolled entry object
11890 * @param h The horizontal bounce state
11891 * @param v The vertical bounce state
11893 EAPI void elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11895 * Get the bounce mode
11897 * @param obj The Entry object
11898 * @param h_bounce Allow bounce horizontally
11899 * @param v_bounce Allow bounce vertically
11901 EAPI void elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11903 /* pre-made filters for entries */
11905 * @typedef Elm_Entry_Filter_Limit_Size
11907 * Data for the elm_entry_filter_limit_size() entry filter.
11909 typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11911 * @struct _Elm_Entry_Filter_Limit_Size
11913 * Data for the elm_entry_filter_limit_size() entry filter.
11915 struct _Elm_Entry_Filter_Limit_Size
11917 int max_char_count; /**< The maximum number of characters allowed. */
11918 int max_byte_count; /**< The maximum number of bytes allowed*/
11921 * Filter inserted text based on user defined character and byte limits
11923 * Add this filter to an entry to limit the characters that it will accept
11924 * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11925 * The funtion works on the UTF-8 representation of the string, converting
11926 * it from the set markup, thus not accounting for any format in it.
11928 * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11929 * it as data when setting the filter. In it, it's possible to set limits
11930 * by character count or bytes (any of them is disabled if 0), and both can
11931 * be set at the same time. In that case, it first checks for characters,
11934 * The function will cut the inserted text in order to allow only the first
11935 * number of characters that are still allowed. The cut is made in
11936 * characters, even when limiting by bytes, in order to always contain
11937 * valid ones and avoid half unicode characters making it in.
11939 * This filter, like any others, does not apply when setting the entry text
11940 * directly with elm_object_text_set() (or the deprecated
11941 * elm_entry_entry_set()).
11943 EAPI void elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11945 * @typedef Elm_Entry_Filter_Accept_Set
11947 * Data for the elm_entry_filter_accept_set() entry filter.
11949 typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11951 * @struct _Elm_Entry_Filter_Accept_Set
11953 * Data for the elm_entry_filter_accept_set() entry filter.
11955 struct _Elm_Entry_Filter_Accept_Set
11957 const char *accepted; /**< Set of characters accepted in the entry. */
11958 const char *rejected; /**< Set of characters rejected from the entry. */
11961 * Filter inserted text based on accepted or rejected sets of characters
11963 * Add this filter to an entry to restrict the set of accepted characters
11964 * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11965 * This structure contains both accepted and rejected sets, but they are
11966 * mutually exclusive.
11968 * The @c accepted set takes preference, so if it is set, the filter will
11969 * only work based on the accepted characters, ignoring anything in the
11970 * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11972 * In both cases, the function filters by matching utf8 characters to the
11973 * raw markup text, so it can be used to remove formatting tags.
11975 * This filter, like any others, does not apply when setting the entry text
11976 * directly with elm_object_text_set() (or the deprecated
11977 * elm_entry_entry_set()).
11979 EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11981 * Set the input panel layout of the entry
11983 * @param obj The entry object
11984 * @param layout layout type
11986 EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11988 * Get the input panel layout of the entry
11990 * @param obj The entry object
11991 * @return layout type
11993 * @see elm_entry_input_panel_layout_set
11995 EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11997 * Set the autocapitalization type on the immodule.
11999 * @param obj The entry object
12000 * @param autocapital_type The type of autocapitalization
12002 EAPI void elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type) EINA_ARG_NONNULL(1);
12004 * Retrieve the autocapitalization type on the immodule.
12006 * @param obj The entry object
12007 * @return autocapitalization type
12009 EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12011 * Sets the attribute to show the input panel automatically.
12013 * @param obj The entry object
12014 * @param enabled If true, the input panel is appeared when entry is clicked or has a focus
12016 EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
12018 * Retrieve the attribute to show the input panel automatically.
12020 * @param obj The entry object
12021 * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise
12023 EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12029 /* composite widgets - these basically put together basic widgets above
12030 * in convenient packages that do more than basic stuff */
12034 * @defgroup Anchorview Anchorview
12036 * @image html img/widget/anchorview/preview-00.png
12037 * @image latex img/widget/anchorview/preview-00.eps
12039 * Anchorview is for displaying text that contains markup with anchors
12040 * like <c>\<a href=1234\>something\</\></c> in it.
12042 * Besides being styled differently, the anchorview widget provides the
12043 * necessary functionality so that clicking on these anchors brings up a
12044 * popup with user defined content such as "call", "add to contacts" or
12045 * "open web page". This popup is provided using the @ref Hover widget.
12047 * This widget is very similar to @ref Anchorblock, so refer to that
12048 * widget for an example. The only difference Anchorview has is that the
12049 * widget is already provided with scrolling functionality, so if the
12050 * text set to it is too large to fit in the given space, it will scroll,
12051 * whereas the @ref Anchorblock widget will keep growing to ensure all the
12052 * text can be displayed.
12054 * This widget emits the following signals:
12055 * @li "anchor,clicked": will be called when an anchor is clicked. The
12056 * @p event_info parameter on the callback will be a pointer of type
12057 * ::Elm_Entry_Anchorview_Info.
12059 * See @ref Anchorblock for an example on how to use both of them.
12068 * @typedef Elm_Entry_Anchorview_Info
12070 * The info sent in the callback for "anchor,clicked" signals emitted by
12071 * the Anchorview widget.
12073 typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
12075 * @struct _Elm_Entry_Anchorview_Info
12077 * The info sent in the callback for "anchor,clicked" signals emitted by
12078 * the Anchorview widget.
12080 struct _Elm_Entry_Anchorview_Info
12082 const char *name; /**< Name of the anchor, as indicated in its href
12084 int button; /**< The mouse button used to click on it */
12085 Evas_Object *hover; /**< The hover object to use for the popup */
12087 Evas_Coord x, y, w, h;
12088 } anchor, /**< Geometry selection of text used as anchor */
12089 hover_parent; /**< Geometry of the object used as parent by the
12091 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
12092 for content on the left side of
12093 the hover. Before calling the
12094 callback, the widget will make the
12095 necessary calculations to check
12096 which sides are fit to be set with
12097 content, based on the position the
12098 hover is activated and its distance
12099 to the edges of its parent object
12101 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
12102 the right side of the hover.
12103 See @ref hover_left */
12104 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
12105 of the hover. See @ref hover_left */
12106 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
12107 below the hover. See @ref
12111 * Add a new Anchorview object
12113 * @param parent The parent object
12114 * @return The new object or NULL if it cannot be created
12116 EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12118 * Set the text to show in the anchorview
12120 * Sets the text of the anchorview to @p text. This text can include markup
12121 * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
12122 * text that will be specially styled and react to click events, ended with
12123 * either of \</a\> or \</\>. When clicked, the anchor will emit an
12124 * "anchor,clicked" signal that you can attach a callback to with
12125 * evas_object_smart_callback_add(). The name of the anchor given in the
12126 * event info struct will be the one set in the href attribute, in this
12127 * case, anchorname.
12129 * Other markup can be used to style the text in different ways, but it's
12130 * up to the style defined in the theme which tags do what.
12131 * @deprecated use elm_object_text_set() instead.
12133 EINA_DEPRECATED EAPI void elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12135 * Get the markup text set for the anchorview
12137 * Retrieves the text set on the anchorview, with markup tags included.
12139 * @param obj The anchorview object
12140 * @return The markup text set or @c NULL if nothing was set or an error
12142 * @deprecated use elm_object_text_set() instead.
12144 EINA_DEPRECATED EAPI const char *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12146 * Set the parent of the hover popup
12148 * Sets the parent object to use by the hover created by the anchorview
12149 * when an anchor is clicked. See @ref Hover for more details on this.
12150 * If no parent is set, the same anchorview object will be used.
12152 * @param obj The anchorview object
12153 * @param parent The object to use as parent for the hover
12155 EAPI void elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12157 * Get the parent of the hover popup
12159 * Get the object used as parent for the hover created by the anchorview
12160 * widget. See @ref Hover for more details on this.
12162 * @param obj The anchorview object
12163 * @return The object used as parent for the hover, NULL if none is set.
12165 EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12167 * Set the style that the hover should use
12169 * When creating the popup hover, anchorview will request that it's
12170 * themed according to @p style.
12172 * @param obj The anchorview object
12173 * @param style The style to use for the underlying hover
12175 * @see elm_object_style_set()
12177 EAPI void elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12179 * Get the style that the hover should use
12181 * Get the style the hover created by anchorview will use.
12183 * @param obj The anchorview object
12184 * @return The style to use by the hover. NULL means the default is used.
12186 * @see elm_object_style_set()
12188 EAPI const char *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12190 * Ends the hover popup in the anchorview
12192 * When an anchor is clicked, the anchorview widget will create a hover
12193 * object to use as a popup with user provided content. This function
12194 * terminates this popup, returning the anchorview to its normal state.
12196 * @param obj The anchorview object
12198 EAPI void elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12200 * Set bouncing behaviour when the scrolled content reaches an edge
12202 * Tell the internal scroller object whether it should bounce or not
12203 * when it reaches the respective edges for each axis.
12205 * @param obj The anchorview object
12206 * @param h_bounce Whether to bounce or not in the horizontal axis
12207 * @param v_bounce Whether to bounce or not in the vertical axis
12209 * @see elm_scroller_bounce_set()
12211 EAPI void elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
12213 * Get the set bouncing behaviour of the internal scroller
12215 * Get whether the internal scroller should bounce when the edge of each
12216 * axis is reached scrolling.
12218 * @param obj The anchorview object
12219 * @param h_bounce Pointer where to store the bounce state of the horizontal
12221 * @param v_bounce Pointer where to store the bounce state of the vertical
12224 * @see elm_scroller_bounce_get()
12226 EAPI void elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
12228 * Appends a custom item provider to the given anchorview
12230 * Appends the given function to the list of items providers. This list is
12231 * called, one function at a time, with the given @p data pointer, the
12232 * anchorview object and, in the @p item parameter, the item name as
12233 * referenced in its href string. Following functions in the list will be
12234 * called in order until one of them returns something different to NULL,
12235 * which should be an Evas_Object which will be used in place of the item
12238 * Items in the markup text take the form \<item relsize=16x16 vsize=full
12239 * href=item/name\>\</item\>
12241 * @param obj The anchorview object
12242 * @param func The function to add to the list of providers
12243 * @param data User data that will be passed to the callback function
12245 * @see elm_entry_item_provider_append()
12247 EAPI void elm_anchorview_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12249 * Prepend a custom item provider to the given anchorview
12251 * Like elm_anchorview_item_provider_append(), but it adds the function
12252 * @p func to the beginning of the list, instead of the end.
12254 * @param obj The anchorview object
12255 * @param func The function to add to the list of providers
12256 * @param data User data that will be passed to the callback function
12258 EAPI void elm_anchorview_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12260 * Remove a custom item provider from the list of the given anchorview
12262 * Removes the function and data pairing that matches @p func and @p data.
12263 * That is, unless the same function and same user data are given, the
12264 * function will not be removed from the list. This allows us to add the
12265 * same callback several times, with different @p data pointers and be
12266 * able to remove them later without conflicts.
12268 * @param obj The anchorview object
12269 * @param func The function to remove from the list
12270 * @param data The data matching the function to remove from the list
12272 EAPI void elm_anchorview_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12279 * @defgroup Anchorblock Anchorblock
12281 * @image html img/widget/anchorblock/preview-00.png
12282 * @image latex img/widget/anchorblock/preview-00.eps
12284 * Anchorblock is for displaying text that contains markup with anchors
12285 * like <c>\<a href=1234\>something\</\></c> in it.
12287 * Besides being styled differently, the anchorblock widget provides the
12288 * necessary functionality so that clicking on these anchors brings up a
12289 * popup with user defined content such as "call", "add to contacts" or
12290 * "open web page". This popup is provided using the @ref Hover widget.
12292 * This widget emits the following signals:
12293 * @li "anchor,clicked": will be called when an anchor is clicked. The
12294 * @p event_info parameter on the callback will be a pointer of type
12295 * ::Elm_Entry_Anchorblock_Info.
12301 * Since examples are usually better than plain words, we might as well
12302 * try @ref tutorial_anchorblock_example "one".
12305 * @addtogroup Anchorblock
12309 * @typedef Elm_Entry_Anchorblock_Info
12311 * The info sent in the callback for "anchor,clicked" signals emitted by
12312 * the Anchorblock widget.
12314 typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
12316 * @struct _Elm_Entry_Anchorblock_Info
12318 * The info sent in the callback for "anchor,clicked" signals emitted by
12319 * the Anchorblock widget.
12321 struct _Elm_Entry_Anchorblock_Info
12323 const char *name; /**< Name of the anchor, as indicated in its href
12325 int button; /**< The mouse button used to click on it */
12326 Evas_Object *hover; /**< The hover object to use for the popup */
12328 Evas_Coord x, y, w, h;
12329 } anchor, /**< Geometry selection of text used as anchor */
12330 hover_parent; /**< Geometry of the object used as parent by the
12332 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
12333 for content on the left side of
12334 the hover. Before calling the
12335 callback, the widget will make the
12336 necessary calculations to check
12337 which sides are fit to be set with
12338 content, based on the position the
12339 hover is activated and its distance
12340 to the edges of its parent object
12342 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
12343 the right side of the hover.
12344 See @ref hover_left */
12345 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
12346 of the hover. See @ref hover_left */
12347 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
12348 below the hover. See @ref
12352 * Add a new Anchorblock object
12354 * @param parent The parent object
12355 * @return The new object or NULL if it cannot be created
12357 EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12359 * Set the text to show in the anchorblock
12361 * Sets the text of the anchorblock to @p text. This text can include markup
12362 * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
12363 * of text that will be specially styled and react to click events, ended
12364 * with either of \</a\> or \</\>. When clicked, the anchor will emit an
12365 * "anchor,clicked" signal that you can attach a callback to with
12366 * evas_object_smart_callback_add(). The name of the anchor given in the
12367 * event info struct will be the one set in the href attribute, in this
12368 * case, anchorname.
12370 * Other markup can be used to style the text in different ways, but it's
12371 * up to the style defined in the theme which tags do what.
12372 * @deprecated use elm_object_text_set() instead.
12374 EINA_DEPRECATED EAPI void elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
12376 * Get the markup text set for the anchorblock
12378 * Retrieves the text set on the anchorblock, with markup tags included.
12380 * @param obj The anchorblock object
12381 * @return The markup text set or @c NULL if nothing was set or an error
12383 * @deprecated use elm_object_text_set() instead.
12385 EINA_DEPRECATED EAPI const char *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12387 * Set the parent of the hover popup
12389 * Sets the parent object to use by the hover created by the anchorblock
12390 * when an anchor is clicked. See @ref Hover for more details on this.
12392 * @param obj The anchorblock object
12393 * @param parent The object to use as parent for the hover
12395 EAPI void elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12397 * Get the parent of the hover popup
12399 * Get the object used as parent for the hover created by the anchorblock
12400 * widget. See @ref Hover for more details on this.
12401 * If no parent is set, the same anchorblock object will be used.
12403 * @param obj The anchorblock object
12404 * @return The object used as parent for the hover, NULL if none is set.
12406 EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12408 * Set the style that the hover should use
12410 * When creating the popup hover, anchorblock will request that it's
12411 * themed according to @p style.
12413 * @param obj The anchorblock object
12414 * @param style The style to use for the underlying hover
12416 * @see elm_object_style_set()
12418 EAPI void elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
12420 * Get the style that the hover should use
12422 * Get the style, the hover created by anchorblock will use.
12424 * @param obj The anchorblock object
12425 * @return The style to use by the hover. NULL means the default is used.
12427 * @see elm_object_style_set()
12429 EAPI const char *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12431 * Ends the hover popup in the anchorblock
12433 * When an anchor is clicked, the anchorblock widget will create a hover
12434 * object to use as a popup with user provided content. This function
12435 * terminates this popup, returning the anchorblock to its normal state.
12437 * @param obj The anchorblock object
12439 EAPI void elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12441 * Appends a custom item provider to the given anchorblock
12443 * Appends the given function to the list of items providers. This list is
12444 * called, one function at a time, with the given @p data pointer, the
12445 * anchorblock object and, in the @p item parameter, the item name as
12446 * referenced in its href string. Following functions in the list will be
12447 * called in order until one of them returns something different to NULL,
12448 * which should be an Evas_Object which will be used in place of the item
12451 * Items in the markup text take the form \<item relsize=16x16 vsize=full
12452 * href=item/name\>\</item\>
12454 * @param obj The anchorblock object
12455 * @param func The function to add to the list of providers
12456 * @param data User data that will be passed to the callback function
12458 * @see elm_entry_item_provider_append()
12460 EAPI void elm_anchorblock_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12462 * Prepend a custom item provider to the given anchorblock
12464 * Like elm_anchorblock_item_provider_append(), but it adds the function
12465 * @p func to the beginning of the list, instead of the end.
12467 * @param obj The anchorblock object
12468 * @param func The function to add to the list of providers
12469 * @param data User data that will be passed to the callback function
12471 EAPI void elm_anchorblock_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12473 * Remove a custom item provider from the list of the given anchorblock
12475 * Removes the function and data pairing that matches @p func and @p data.
12476 * That is, unless the same function and same user data are given, the
12477 * function will not be removed from the list. This allows us to add the
12478 * same callback several times, with different @p data pointers and be
12479 * able to remove them later without conflicts.
12481 * @param obj The anchorblock object
12482 * @param func The function to remove from the list
12483 * @param data The data matching the function to remove from the list
12485 EAPI void elm_anchorblock_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
12491 * @defgroup Bubble Bubble
12493 * @image html img/widget/bubble/preview-00.png
12494 * @image latex img/widget/bubble/preview-00.eps
12495 * @image html img/widget/bubble/preview-01.png
12496 * @image latex img/widget/bubble/preview-01.eps
12497 * @image html img/widget/bubble/preview-02.png
12498 * @image latex img/widget/bubble/preview-02.eps
12500 * @brief The Bubble is a widget to show text similar to how speech is
12501 * represented in comics.
12503 * The bubble widget contains 5 important visual elements:
12504 * @li The frame is a rectangle with rounded edjes and an "arrow".
12505 * @li The @p icon is an image to which the frame's arrow points to.
12506 * @li The @p label is a text which appears to the right of the icon if the
12507 * corner is "top_left" or "bottom_left" and is right aligned to the frame
12509 * @li The @p info is a text which appears to the right of the label. Info's
12510 * font is of a ligther color than label.
12511 * @li The @p content is an evas object that is shown inside the frame.
12513 * The position of the arrow, icon, label and info depends on which corner is
12514 * selected. The four available corners are:
12515 * @li "top_left" - Default
12517 * @li "bottom_left"
12518 * @li "bottom_right"
12520 * Signals that you can add callbacks for are:
12521 * @li "clicked" - This is called when a user has clicked the bubble.
12523 * Default contents parts of the bubble that you can use for are:
12524 * @li "default" - A content of the bubble
12525 * @li "icon" - An icon of the bubble
12527 * Default text parts of the button widget that you can use for are:
12528 * @li NULL - Label of the bubble
12530 * For an example of using a buble see @ref bubble_01_example_page "this".
12536 * Add a new bubble to the parent
12538 * @param parent The parent object
12539 * @return The new object or NULL if it cannot be created
12541 * This function adds a text bubble to the given parent evas object.
12543 EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12545 * Set the label of the bubble
12547 * @param obj The bubble object
12548 * @param label The string to set in the label
12550 * This function sets the title of the bubble. Where this appears depends on
12551 * the selected corner.
12552 * @deprecated use elm_object_text_set() instead.
12554 EINA_DEPRECATED EAPI void elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12556 * Get the label of the bubble
12558 * @param obj The bubble object
12559 * @return The string of set in the label
12561 * This function gets the title of the bubble.
12562 * @deprecated use elm_object_text_get() instead.
12564 EINA_DEPRECATED EAPI const char *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12566 * Set the info of the bubble
12568 * @param obj The bubble object
12569 * @param info The given info about the bubble
12571 * This function sets the info of the bubble. Where this appears depends on
12572 * the selected corner.
12573 * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
12575 EINA_DEPRECATED EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
12577 * Get the info of the bubble
12579 * @param obj The bubble object
12581 * @return The "info" string of the bubble
12583 * This function gets the info text.
12584 * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
12586 EINA_DEPRECATED EAPI const char *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12588 * Set the content to be shown in the bubble
12590 * Once the content object is set, a previously set one will be deleted.
12591 * If you want to keep the old content object, use the
12592 * elm_bubble_content_unset() function.
12594 * @param obj The bubble object
12595 * @param content The given content of the bubble
12597 * This function sets the content shown on the middle of the bubble.
12599 * @deprecated use elm_object_content_set() instead
12602 EINA_DEPRECATED EAPI void elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
12604 * Get the content shown in the bubble
12606 * Return the content object which is set for this widget.
12608 * @param obj The bubble object
12609 * @return The content that is being used
12611 * @deprecated use elm_object_content_get() instead
12614 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12616 * Unset the content shown in the bubble
12618 * Unparent and return the content object which was set for this widget.
12620 * @param obj The bubble object
12621 * @return The content that was being used
12623 * @deprecated use elm_object_content_unset() instead
12626 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12628 * Set the icon of the bubble
12630 * Once the icon object is set, a previously set one will be deleted.
12631 * If you want to keep the old content object, use the
12632 * elm_icon_content_unset() function.
12634 * @param obj The bubble object
12635 * @param icon The given icon for the bubble
12637 * @deprecated use elm_object_part_content_set() instead
12640 EINA_DEPRECATED EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12642 * Get the icon of the bubble
12644 * @param obj The bubble object
12645 * @return The icon for the bubble
12647 * This function gets the icon shown on the top left of bubble.
12649 * @deprecated use elm_object_part_content_get() instead
12652 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12654 * Unset the icon of the bubble
12656 * Unparent and return the icon object which was set for this widget.
12658 * @param obj The bubble object
12659 * @return The icon that was being used
12661 * @deprecated use elm_object_part_content_unset() instead
12664 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12666 * Set the corner of the bubble
12668 * @param obj The bubble object.
12669 * @param corner The given corner for the bubble.
12671 * This function sets the corner of the bubble. The corner will be used to
12672 * determine where the arrow in the frame points to and where label, icon and
12675 * Possible values for corner are:
12676 * @li "top_left" - Default
12678 * @li "bottom_left"
12679 * @li "bottom_right"
12681 EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12683 * Get the corner of the bubble
12685 * @param obj The bubble object.
12686 * @return The given corner for the bubble.
12688 * This function gets the selected corner of the bubble.
12690 EAPI const char *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12696 * @defgroup Photo Photo
12698 * For displaying the photo of a person (contact). Simple, yet
12699 * with a very specific purpose.
12701 * Signals that you can add callbacks for are:
12703 * "clicked" - This is called when a user has clicked the photo
12704 * "drag,start" - Someone started dragging the image out of the object
12705 * "drag,end" - Dragged item was dropped (somewhere)
12711 * Add a new photo to the parent
12713 * @param parent The parent object
12714 * @return The new object or NULL if it cannot be created
12718 EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12721 * Set the file that will be used as photo
12723 * @param obj The photo object
12724 * @param file The path to file that will be used as photo
12726 * @return (1 = success, 0 = error)
12730 EAPI Eina_Bool elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12733 * Set the file that will be used as thumbnail in the photo.
12735 * @param obj The photo object.
12736 * @param file The path to file that will be used as thumb.
12737 * @param group The key used in case of an EET file.
12741 EAPI void elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
12744 * Set the size that will be used on the photo
12746 * @param obj The photo object
12747 * @param size The size that the photo will be
12751 EAPI void elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12754 * Set if the photo should be completely visible or not.
12756 * @param obj The photo object
12757 * @param fill if true the photo will be completely visible
12761 EAPI void elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12764 * Set editability of the photo.
12766 * An editable photo can be dragged to or from, and can be cut or
12767 * pasted too. Note that pasting an image or dropping an item on
12768 * the image will delete the existing content.
12770 * @param obj The photo object.
12771 * @param set To set of clear editablity.
12773 EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12779 /* gesture layer */
12781 * @defgroup Elm_Gesture_Layer Gesture Layer
12782 * Gesture Layer Usage:
12784 * Use Gesture Layer to detect gestures.
12785 * The advantage is that you don't have to implement
12786 * gesture detection, just set callbacks of gesture state.
12787 * By using gesture layer we make standard interface.
12789 * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12790 * with a parent object parameter.
12791 * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12792 * call. Usually with same object as target (2nd parameter).
12794 * Now you need to tell gesture layer what gestures you follow.
12795 * This is done with @ref elm_gesture_layer_cb_set call.
12796 * By setting the callback you actually saying to gesture layer:
12797 * I would like to know when the gesture @ref Elm_Gesture_Types
12798 * switches to state @ref Elm_Gesture_State.
12800 * Next, you need to implement the actual action that follows the input
12801 * in your callback.
12803 * Note that if you like to stop being reported about a gesture, just set
12804 * all callbacks referring this gesture to NULL.
12805 * (again with @ref elm_gesture_layer_cb_set)
12807 * The information reported by gesture layer to your callback is depending
12808 * on @ref Elm_Gesture_Types:
12809 * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12810 * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12811 * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12813 * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12814 * @ref ELM_GESTURE_MOMENTUM.
12816 * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12817 * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12818 * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12819 * Note that we consider a flick as a line-gesture that should be completed
12820 * in flick-time-limit as defined in @ref Config.
12822 * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12824 * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12827 * Gesture Layer Tweaks:
12829 * Note that line, flick, gestures can start without the need to remove fingers from surface.
12830 * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12832 * Setting glayer_continues_enable to false in @ref Config will change this behavior
12833 * so gesture starts when user touches (a *DOWN event) touch-surface
12834 * and ends when no fingers touches surface (a *UP event).
12838 * @enum _Elm_Gesture_Types
12839 * Enum of supported gesture types.
12840 * @ingroup Elm_Gesture_Layer
12842 enum _Elm_Gesture_Types
12844 ELM_GESTURE_FIRST = 0,
12846 ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12847 ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12848 ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12849 ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12851 ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12853 ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12854 ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12856 ELM_GESTURE_ZOOM, /**< Zoom */
12857 ELM_GESTURE_ROTATE, /**< Rotate */
12863 * @typedef Elm_Gesture_Types
12864 * gesture types enum
12865 * @ingroup Elm_Gesture_Layer
12867 typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12870 * @enum _Elm_Gesture_State
12871 * Enum of gesture states.
12872 * @ingroup Elm_Gesture_Layer
12874 enum _Elm_Gesture_State
12876 ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12877 ELM_GESTURE_STATE_START, /**< Gesture STARTed */
12878 ELM_GESTURE_STATE_MOVE, /**< Gesture is ongoing */
12879 ELM_GESTURE_STATE_END, /**< Gesture completed */
12880 ELM_GESTURE_STATE_ABORT /**< Onging gesture was ABORTed */
12884 * @typedef Elm_Gesture_State
12885 * gesture states enum
12886 * @ingroup Elm_Gesture_Layer
12888 typedef enum _Elm_Gesture_State Elm_Gesture_State;
12891 * @struct _Elm_Gesture_Taps_Info
12892 * Struct holds taps info for user
12893 * @ingroup Elm_Gesture_Layer
12895 struct _Elm_Gesture_Taps_Info
12897 Evas_Coord x, y; /**< Holds center point between fingers */
12898 unsigned int n; /**< Number of fingers tapped */
12899 unsigned int timestamp; /**< event timestamp */
12903 * @typedef Elm_Gesture_Taps_Info
12904 * holds taps info for user
12905 * @ingroup Elm_Gesture_Layer
12907 typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12910 * @struct _Elm_Gesture_Momentum_Info
12911 * Struct holds momentum info for user
12912 * x1 and y1 are not necessarily in sync
12913 * x1 holds x value of x direction starting point
12914 * and same holds for y1.
12915 * This is noticeable when doing V-shape movement
12916 * @ingroup Elm_Gesture_Layer
12918 struct _Elm_Gesture_Momentum_Info
12919 { /* Report line ends, timestamps, and momentum computed */
12920 Evas_Coord x1; /**< Final-swipe direction starting point on X */
12921 Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12922 Evas_Coord x2; /**< Final-swipe direction ending point on X */
12923 Evas_Coord y2; /**< Final-swipe direction ending point on Y */
12925 unsigned int tx; /**< Timestamp of start of final x-swipe */
12926 unsigned int ty; /**< Timestamp of start of final y-swipe */
12928 Evas_Coord mx; /**< Momentum on X */
12929 Evas_Coord my; /**< Momentum on Y */
12931 unsigned int n; /**< Number of fingers */
12935 * @typedef Elm_Gesture_Momentum_Info
12936 * holds momentum info for user
12937 * @ingroup Elm_Gesture_Layer
12939 typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12942 * @struct _Elm_Gesture_Line_Info
12943 * Struct holds line info for user
12944 * @ingroup Elm_Gesture_Layer
12946 struct _Elm_Gesture_Line_Info
12947 { /* Report line ends, timestamps, and momentum computed */
12948 Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12949 double angle; /**< Angle (direction) of lines */
12953 * @typedef Elm_Gesture_Line_Info
12954 * Holds line info for user
12955 * @ingroup Elm_Gesture_Layer
12957 typedef struct _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12960 * @struct _Elm_Gesture_Zoom_Info
12961 * Struct holds zoom info for user
12962 * @ingroup Elm_Gesture_Layer
12964 struct _Elm_Gesture_Zoom_Info
12966 Evas_Coord x, y; /**< Holds zoom center point reported to user */
12967 Evas_Coord radius; /**< Holds radius between fingers reported to user */
12968 double zoom; /**< Zoom value: 1.0 means no zoom */
12969 double momentum; /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12973 * @typedef Elm_Gesture_Zoom_Info
12974 * Holds zoom info for user
12975 * @ingroup Elm_Gesture_Layer
12977 typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12980 * @struct _Elm_Gesture_Rotate_Info
12981 * Struct holds rotation info for user
12982 * @ingroup Elm_Gesture_Layer
12984 struct _Elm_Gesture_Rotate_Info
12986 Evas_Coord x, y; /**< Holds zoom center point reported to user */
12987 Evas_Coord radius; /**< Holds radius between fingers reported to user */
12988 double base_angle; /**< Holds start-angle */
12989 double angle; /**< Rotation value: 0.0 means no rotation */
12990 double momentum; /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
12994 * @typedef Elm_Gesture_Rotate_Info
12995 * Holds rotation info for user
12996 * @ingroup Elm_Gesture_Layer
12998 typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
13001 * @typedef Elm_Gesture_Event_Cb
13002 * User callback used to stream gesture info from gesture layer
13003 * @param data user data
13004 * @param event_info gesture report info
13005 * Returns a flag field to be applied on the causing event.
13006 * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
13007 * upon the event, in an irreversible way.
13009 * @ingroup Elm_Gesture_Layer
13011 typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
13014 * Use function to set callbacks to be notified about
13015 * change of state of gesture.
13016 * When a user registers a callback with this function
13017 * this means this gesture has to be tested.
13019 * When ALL callbacks for a gesture are set to NULL
13020 * it means user isn't interested in gesture-state
13021 * and it will not be tested.
13023 * @param obj Pointer to gesture-layer.
13024 * @param idx The gesture you would like to track its state.
13025 * @param cb callback function pointer.
13026 * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
13027 * @param data user info to be sent to callback (usually, Smart Data)
13029 * @ingroup Elm_Gesture_Layer
13031 EAPI void elm_gesture_layer_cb_set(Evas_Object *obj, Elm_Gesture_Types idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) EINA_ARG_NONNULL(1);
13034 * Call this function to get repeat-events settings.
13036 * @param obj Pointer to gesture-layer.
13038 * @return repeat events settings.
13039 * @see elm_gesture_layer_hold_events_set()
13040 * @ingroup Elm_Gesture_Layer
13042 EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13045 * This function called in order to make gesture-layer repeat events.
13046 * Set this of you like to get the raw events only if gestures were not detected.
13047 * Clear this if you like gesture layer to fwd events as testing gestures.
13049 * @param obj Pointer to gesture-layer.
13050 * @param r Repeat: TRUE/FALSE
13052 * @ingroup Elm_Gesture_Layer
13054 EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
13057 * This function sets step-value for zoom action.
13058 * Set step to any positive value.
13059 * Cancel step setting by setting to 0.0
13061 * @param obj Pointer to gesture-layer.
13062 * @param s new zoom step value.
13064 * @ingroup Elm_Gesture_Layer
13066 EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13069 * This function sets step-value for rotate action.
13070 * Set step to any positive value.
13071 * Cancel step setting by setting to 0.0
13073 * @param obj Pointer to gesture-layer.
13074 * @param s new roatate step value.
13076 * @ingroup Elm_Gesture_Layer
13078 EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
13081 * This function called to attach gesture-layer to an Evas_Object.
13082 * @param obj Pointer to gesture-layer.
13083 * @param t Pointer to underlying object (AKA Target)
13085 * @return TRUE, FALSE on success, failure.
13087 * @ingroup Elm_Gesture_Layer
13089 EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
13092 * Call this function to construct a new gesture-layer object.
13093 * This does not activate the gesture layer. You have to
13094 * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
13096 * @param parent the parent object.
13098 * @return Pointer to new gesture-layer object.
13100 * @ingroup Elm_Gesture_Layer
13102 EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13105 * @defgroup Thumb Thumb
13107 * @image html img/widget/thumb/preview-00.png
13108 * @image latex img/widget/thumb/preview-00.eps
13110 * A thumb object is used for displaying the thumbnail of an image or video.
13111 * You must have compiled Elementary with Ethumb_Client support and the DBus
13112 * service must be present and auto-activated in order to have thumbnails to
13115 * Once the thumbnail object becomes visible, it will check if there is a
13116 * previously generated thumbnail image for the file set on it. If not, it
13117 * will start generating this thumbnail.
13119 * Different config settings will cause different thumbnails to be generated
13120 * even on the same file.
13122 * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
13123 * Ethumb documentation to change this path, and to see other configuration
13126 * Signals that you can add callbacks for are:
13128 * - "clicked" - This is called when a user has clicked the thumb without dragging
13130 * - "clicked,double" - This is called when a user has double-clicked the thumb.
13131 * - "press" - This is called when a user has pressed down the thumb.
13132 * - "generate,start" - The thumbnail generation started.
13133 * - "generate,stop" - The generation process stopped.
13134 * - "generate,error" - The generation failed.
13135 * - "load,error" - The thumbnail image loading failed.
13137 * available styles:
13141 * An example of use of thumbnail:
13143 * - @ref thumb_example_01
13147 * @addtogroup Thumb
13152 * @enum _Elm_Thumb_Animation_Setting
13153 * @typedef Elm_Thumb_Animation_Setting
13155 * Used to set if a video thumbnail is animating or not.
13159 typedef enum _Elm_Thumb_Animation_Setting
13161 ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
13162 ELM_THUMB_ANIMATION_LOOP, /**< Keep playing animation until stop is requested */
13163 ELM_THUMB_ANIMATION_STOP, /**< Stop playing the animation */
13164 ELM_THUMB_ANIMATION_LAST
13165 } Elm_Thumb_Animation_Setting;
13168 * Add a new thumb object to the parent.
13170 * @param parent The parent object.
13171 * @return The new object or NULL if it cannot be created.
13173 * @see elm_thumb_file_set()
13174 * @see elm_thumb_ethumb_client_get()
13178 EAPI Evas_Object *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13180 * Reload thumbnail if it was generated before.
13182 * @param obj The thumb object to reload
13184 * This is useful if the ethumb client configuration changed, like its
13185 * size, aspect or any other property one set in the handle returned
13186 * by elm_thumb_ethumb_client_get().
13188 * If the options didn't change, the thumbnail won't be generated again, but
13189 * the old one will still be used.
13191 * @see elm_thumb_file_set()
13195 EAPI void elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
13197 * Set the file that will be used as thumbnail.
13199 * @param obj The thumb object.
13200 * @param file The path to file that will be used as thumb.
13201 * @param key The key used in case of an EET file.
13203 * The file can be an image or a video (in that case, acceptable extensions are:
13204 * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
13205 * function elm_thumb_animate().
13207 * @see elm_thumb_file_get()
13208 * @see elm_thumb_reload()
13209 * @see elm_thumb_animate()
13213 EAPI void elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
13215 * Get the image or video path and key used to generate the thumbnail.
13217 * @param obj The thumb object.
13218 * @param file Pointer to filename.
13219 * @param key Pointer to key.
13221 * @see elm_thumb_file_set()
13222 * @see elm_thumb_path_get()
13226 EAPI void elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13228 * Get the path and key to the image or video generated by ethumb.
13230 * One just need to make sure that the thumbnail was generated before getting
13231 * its path; otherwise, the path will be NULL. One way to do that is by asking
13232 * for the path when/after the "generate,stop" smart callback is called.
13234 * @param obj The thumb object.
13235 * @param file Pointer to thumb path.
13236 * @param key Pointer to thumb key.
13238 * @see elm_thumb_file_get()
13242 EAPI void elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
13244 * Set the animation state for the thumb object. If its content is an animated
13245 * video, you may start/stop the animation or tell it to play continuously and
13248 * @param obj The thumb object.
13249 * @param setting The animation setting.
13251 * @see elm_thumb_file_set()
13255 EAPI void elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
13257 * Get the animation state for the thumb object.
13259 * @param obj The thumb object.
13260 * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
13263 * @see elm_thumb_animate_set()
13267 EAPI Elm_Thumb_Animation_Setting elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13269 * Get the ethumb_client handle so custom configuration can be made.
13271 * @return Ethumb_Client instance or NULL.
13273 * This must be called before the objects are created to be sure no object is
13274 * visible and no generation started.
13276 * Example of usage:
13279 * #include <Elementary.h>
13280 * #ifndef ELM_LIB_QUICKLAUNCH
13282 * elm_main(int argc, char **argv)
13284 * Ethumb_Client *client;
13286 * elm_need_ethumb();
13290 * client = elm_thumb_ethumb_client_get();
13293 * ERR("could not get ethumb_client");
13296 * ethumb_client_size_set(client, 100, 100);
13297 * ethumb_client_crop_align_set(client, 0.5, 0.5);
13300 * // Create elm_thumb objects here
13310 * @note There's only one client handle for Ethumb, so once a configuration
13311 * change is done to it, any other request for thumbnails (for any thumbnail
13312 * object) will use that configuration. Thus, this configuration is global.
13316 EAPI void *elm_thumb_ethumb_client_get(void);
13318 * Get the ethumb_client connection state.
13320 * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
13323 EAPI Eina_Bool elm_thumb_ethumb_client_connected(void);
13325 * Make the thumbnail 'editable'.
13327 * @param obj Thumb object.
13328 * @param set Turn on or off editability. Default is @c EINA_FALSE.
13330 * This means the thumbnail is a valid drag target for drag and drop, and can be
13331 * cut or pasted too.
13333 * @see elm_thumb_editable_get()
13337 EAPI Eina_Bool elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
13339 * Make the thumbnail 'editable'.
13341 * @param obj Thumb object.
13342 * @return Editability.
13344 * This means the thumbnail is a valid drag target for drag and drop, and can be
13345 * cut or pasted too.
13347 * @see elm_thumb_editable_set()
13351 EAPI Eina_Bool elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13358 * @defgroup Web Web
13360 * @image html img/widget/web/preview-00.png
13361 * @image latex img/widget/web/preview-00.eps
13363 * A web object is used for displaying web pages (HTML/CSS/JS)
13364 * using WebKit-EFL. You must have compiled Elementary with
13367 * Signals that you can add callbacks for are:
13368 * @li "download,request": A file download has been requested. Event info is
13369 * a pointer to a Elm_Web_Download
13370 * @li "editorclient,contents,changed": Editor client's contents changed
13371 * @li "editorclient,selection,changed": Editor client's selection changed
13372 * @li "frame,created": A new frame was created. Event info is an
13373 * Evas_Object which can be handled with WebKit's ewk_frame API
13374 * @li "icon,received": An icon was received by the main frame
13375 * @li "inputmethod,changed": Input method changed. Event info is an
13376 * Eina_Bool indicating whether it's enabled or not
13377 * @li "js,windowobject,clear": JS window object has been cleared
13378 * @li "link,hover,in": Mouse cursor is hovering over a link. Event info
13379 * is a char *link[2], where the first string contains the URL the link
13380 * points to, and the second one the title of the link
13381 * @li "link,hover,out": Mouse cursor left the link
13382 * @li "load,document,finished": Loading of a document finished. Event info
13383 * is the frame that finished loading
13384 * @li "load,error": Load failed. Event info is a pointer to
13385 * Elm_Web_Frame_Load_Error
13386 * @li "load,finished": Load finished. Event info is NULL on success, on
13387 * error it's a pointer to Elm_Web_Frame_Load_Error
13388 * @li "load,newwindow,show": A new window was created and is ready to be
13390 * @li "load,progress": Overall load progress. Event info is a pointer to
13391 * a double containing a value between 0.0 and 1.0
13392 * @li "load,provisional": Started provisional load
13393 * @li "load,started": Loading of a document started
13394 * @li "menubar,visible,get": Queries if the menubar is visible. Event info
13395 * is a pointer to Eina_Bool where the callback should set EINA_TRUE if
13396 * the menubar is visible, or EINA_FALSE in case it's not
13397 * @li "menubar,visible,set": Informs menubar visibility. Event info is
13398 * an Eina_Bool indicating the visibility
13399 * @li "popup,created": A dropdown widget was activated, requesting its
13400 * popup menu to be created. Event info is a pointer to Elm_Web_Menu
13401 * @li "popup,willdelete": The web object is ready to destroy the popup
13402 * object created. Event info is a pointer to Elm_Web_Menu
13403 * @li "ready": Page is fully loaded
13404 * @li "scrollbars,visible,get": Queries visibility of scrollbars. Event
13405 * info is a pointer to Eina_Bool where the visibility state should be set
13406 * @li "scrollbars,visible,set": Informs scrollbars visibility. Event info
13407 * is an Eina_Bool with the visibility state set
13408 * @li "statusbar,text,set": Text of the statusbar changed. Even info is
13409 * a string with the new text
13410 * @li "statusbar,visible,get": Queries visibility of the status bar.
13411 * Event info is a pointer to Eina_Bool where the visibility state should be
13413 * @li "statusbar,visible,set": Informs statusbar visibility. Event info is
13414 * an Eina_Bool with the visibility value
13415 * @li "title,changed": Title of the main frame changed. Event info is a
13416 * string with the new title
13417 * @li "toolbars,visible,get": Queries visibility of toolbars. Event info
13418 * is a pointer to Eina_Bool where the visibility state should be set
13419 * @li "toolbars,visible,set": Informs the visibility of toolbars. Event
13420 * info is an Eina_Bool with the visibility state
13421 * @li "tooltip,text,set": Show and set text of a tooltip. Event info is
13422 * a string with the text to show
13423 * @li "uri,changed": URI of the main frame changed. Event info is a string
13425 * @li "view,resized": The web object internal's view changed sized
13426 * @li "windows,close,request": A JavaScript request to close the current
13427 * window was requested
13428 * @li "zoom,animated,end": Animated zoom finished
13430 * available styles:
13433 * An example of use of web:
13435 * - @ref web_example_01 TBD
13444 * Structure used to report load errors.
13446 * Load errors are reported as signal by elm_web. All the strings are
13447 * temporary references and should @b not be used after the signal
13448 * callback returns. If it's required, make copies with strdup() or
13449 * eina_stringshare_add() (they are not even guaranteed to be
13450 * stringshared, so must use eina_stringshare_add() and not
13451 * eina_stringshare_ref()).
13453 typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
13455 * Structure used to report load errors.
13457 * Load errors are reported as signal by elm_web. All the strings are
13458 * temporary references and should @b not be used after the signal
13459 * callback returns. If it's required, make copies with strdup() or
13460 * eina_stringshare_add() (they are not even guaranteed to be
13461 * stringshared, so must use eina_stringshare_add() and not
13462 * eina_stringshare_ref()).
13464 struct _Elm_Web_Frame_Load_Error
13466 int code; /**< Numeric error code */
13467 Eina_Bool is_cancellation; /**< Error produced by cancelling a request */
13468 const char *domain; /**< Error domain name */
13469 const char *description; /**< Error description (already localized) */
13470 const char *failing_url; /**< The URL that failed to load */
13471 Evas_Object *frame; /**< Frame object that produced the error */
13475 * The possibles types that the items in a menu can be
13477 typedef enum _Elm_Web_Menu_Item_Type
13479 ELM_WEB_MENU_SEPARATOR,
13480 ELM_WEB_MENU_GROUP,
13481 ELM_WEB_MENU_OPTION
13482 } Elm_Web_Menu_Item_Type;
13485 * Structure describing the items in a menu
13487 typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
13489 * Structure describing the items in a menu
13491 struct _Elm_Web_Menu_Item
13493 const char *text; /**< The text for the item */
13494 Elm_Web_Menu_Item_Type type; /**< The type of the item */
13498 * Structure describing the menu of a popup
13500 * This structure will be passed as the @c event_info for the "popup,create"
13501 * signal, which is emitted when a dropdown menu is opened. Users wanting
13502 * to handle these popups by themselves should listen to this signal and
13503 * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13504 * property as @c EINA_FALSE means that the user will not handle the popup
13505 * and the default implementation will be used.
13507 * When the popup is ready to be dismissed, a "popup,willdelete" signal
13508 * will be emitted to notify the user that it can destroy any objects and
13509 * free all data related to it.
13511 * @see elm_web_popup_selected_set()
13512 * @see elm_web_popup_destroy()
13514 typedef struct _Elm_Web_Menu Elm_Web_Menu;
13516 * Structure describing the menu of a popup
13518 * This structure will be passed as the @c event_info for the "popup,create"
13519 * signal, which is emitted when a dropdown menu is opened. Users wanting
13520 * to handle these popups by themselves should listen to this signal and
13521 * set the @c handled property of the struct to @c EINA_TRUE. Leaving this
13522 * property as @c EINA_FALSE means that the user will not handle the popup
13523 * and the default implementation will be used.
13525 * When the popup is ready to be dismissed, a "popup,willdelete" signal
13526 * will be emitted to notify the user that it can destroy any objects and
13527 * free all data related to it.
13529 * @see elm_web_popup_selected_set()
13530 * @see elm_web_popup_destroy()
13532 struct _Elm_Web_Menu
13534 Eina_List *items; /**< List of #Elm_Web_Menu_Item */
13535 int x; /**< The X position of the popup, relative to the elm_web object */
13536 int y; /**< The Y position of the popup, relative to the elm_web object */
13537 int width; /**< Width of the popup menu */
13538 int height; /**< Height of the popup menu */
13540 Eina_Bool handled : 1; /**< Set to @c EINA_TRUE by the user to indicate that the popup has been handled and the default implementation should be ignored. Leave as @c EINA_FALSE otherwise. */
13543 typedef struct _Elm_Web_Download Elm_Web_Download;
13544 struct _Elm_Web_Download
13550 * Types of zoom available.
13552 typedef enum _Elm_Web_Zoom_Mode
13554 ELM_WEB_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_web_zoom_set */
13555 ELM_WEB_ZOOM_MODE_AUTO_FIT, /**< Zoom until content fits in web object */
13556 ELM_WEB_ZOOM_MODE_AUTO_FILL, /**< Zoom until content fills web object */
13557 ELM_WEB_ZOOM_MODE_LAST
13558 } Elm_Web_Zoom_Mode;
13560 * Opaque handler containing the features (such as statusbar, menubar, etc)
13561 * that are to be set on a newly requested window.
13563 typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
13565 * Callback type for the create_window hook.
13567 * The function parameters are:
13568 * @li @p data User data pointer set when setting the hook function
13569 * @li @p obj The elm_web object requesting the new window
13570 * @li @p js Set to @c EINA_TRUE if the request was originated from
13571 * JavaScript. @c EINA_FALSE otherwise.
13572 * @li @p window_features A pointer of #Elm_Web_Window_Features indicating
13573 * the features requested for the new window.
13575 * The returned value of the function should be the @c elm_web widget where
13576 * the request will be loaded. That is, if a new window or tab is created,
13577 * the elm_web widget in it should be returned, and @b NOT the window
13579 * Returning @c NULL should cancel the request.
13581 * @see elm_web_window_create_hook_set()
13583 typedef Evas_Object *(*Elm_Web_Window_Open)(void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
13585 * Callback type for the JS alert hook.
13587 * The function parameters are:
13588 * @li @p data User data pointer set when setting the hook function
13589 * @li @p obj The elm_web object requesting the new window
13590 * @li @p message The message to show in the alert dialog
13592 * The function should return the object representing the alert dialog.
13593 * Elm_Web will run a second main loop to handle the dialog and normal
13594 * flow of the application will be restored when the object is deleted, so
13595 * the user should handle the popup properly in order to delete the object
13596 * when the action is finished.
13597 * If the function returns @c NULL the popup will be ignored.
13599 * @see elm_web_dialog_alert_hook_set()
13601 typedef Evas_Object *(*Elm_Web_Dialog_Alert)(void *data, Evas_Object *obj, const char *message);
13603 * Callback type for the JS confirm hook.
13605 * The function parameters are:
13606 * @li @p data User data pointer set when setting the hook function
13607 * @li @p obj The elm_web object requesting the new window
13608 * @li @p message The message to show in the confirm dialog
13609 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13610 * the user selected @c Ok, @c EINA_FALSE otherwise.
13612 * The function should return the object representing the confirm dialog.
13613 * Elm_Web will run a second main loop to handle the dialog and normal
13614 * flow of the application will be restored when the object is deleted, so
13615 * the user should handle the popup properly in order to delete the object
13616 * when the action is finished.
13617 * If the function returns @c NULL the popup will be ignored.
13619 * @see elm_web_dialog_confirm_hook_set()
13621 typedef Evas_Object *(*Elm_Web_Dialog_Confirm)(void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
13623 * Callback type for the JS prompt hook.
13625 * The function parameters are:
13626 * @li @p data User data pointer set when setting the hook function
13627 * @li @p obj The elm_web object requesting the new window
13628 * @li @p message The message to show in the prompt dialog
13629 * @li @p def_value The default value to present the user in the entry
13630 * @li @p value Pointer where to store the value given by the user. Must
13631 * be a malloc'ed string or @c NULL if the user cancelled the popup.
13632 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13633 * the user selected @c Ok, @c EINA_FALSE otherwise.
13635 * The function should return the object representing the prompt dialog.
13636 * Elm_Web will run a second main loop to handle the dialog and normal
13637 * flow of the application will be restored when the object is deleted, so
13638 * the user should handle the popup properly in order to delete the object
13639 * when the action is finished.
13640 * If the function returns @c NULL the popup will be ignored.
13642 * @see elm_web_dialog_prompt_hook_set()
13644 typedef Evas_Object *(*Elm_Web_Dialog_Prompt)(void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
13646 * Callback type for the JS file selector hook.
13648 * The function parameters are:
13649 * @li @p data User data pointer set when setting the hook function
13650 * @li @p obj The elm_web object requesting the new window
13651 * @li @p allows_multiple @c EINA_TRUE if multiple files can be selected.
13652 * @li @p accept_types Mime types accepted
13653 * @li @p selected Pointer where to store the list of malloc'ed strings
13654 * containing the path to each file selected. Must be @c NULL if the file
13655 * dialog is cancelled
13656 * @li @p ret Pointer where to store the user selection. @c EINA_TRUE if
13657 * the user selected @c Ok, @c EINA_FALSE otherwise.
13659 * The function should return the object representing the file selector
13661 * Elm_Web will run a second main loop to handle the dialog and normal
13662 * flow of the application will be restored when the object is deleted, so
13663 * the user should handle the popup properly in order to delete the object
13664 * when the action is finished.
13665 * If the function returns @c NULL the popup will be ignored.
13667 * @see elm_web_dialog_file selector_hook_set()
13669 typedef Evas_Object *(*Elm_Web_Dialog_File_Selector)(void *data, Evas_Object *obj, Eina_Bool allows_multiple, Eina_List *accept_types, Eina_List **selected, Eina_Bool *ret);
13671 * Callback type for the JS console message hook.
13673 * When a console message is added from JavaScript, any set function to the
13674 * console message hook will be called for the user to handle. There is no
13675 * default implementation of this hook.
13677 * The function parameters are:
13678 * @li @p data User data pointer set when setting the hook function
13679 * @li @p obj The elm_web object that originated the message
13680 * @li @p message The message sent
13681 * @li @p line_number The line number
13682 * @li @p source_id Source id
13684 * @see elm_web_console_message_hook_set()
13686 typedef void (*Elm_Web_Console_Message)(void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
13688 * Add a new web object to the parent.
13690 * @param parent The parent object.
13691 * @return The new object or NULL if it cannot be created.
13693 * @see elm_web_uri_set()
13694 * @see elm_web_webkit_view_get()
13696 EAPI Evas_Object *elm_web_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13699 * Get internal ewk_view object from web object.
13701 * Elementary may not provide some low level features of EWebKit,
13702 * instead of cluttering the API with proxy methods we opted to
13703 * return the internal reference. Be careful using it as it may
13704 * interfere with elm_web behavior.
13706 * @param obj The web object.
13707 * @return The internal ewk_view object or NULL if it does not
13708 * exist. (Failure to create or Elementary compiled without
13711 * @see elm_web_add()
13713 EAPI Evas_Object *elm_web_webkit_view_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13716 * Sets the function to call when a new window is requested
13718 * This hook will be called when a request to create a new window is
13719 * issued from the web page loaded.
13720 * There is no default implementation for this feature, so leaving this
13721 * unset or passing @c NULL in @p func will prevent new windows from
13724 * @param obj The web object where to set the hook function
13725 * @param func The hook function to be called when a window is requested
13726 * @param data User data
13728 EAPI void elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
13730 * Sets the function to call when an alert dialog
13732 * This hook will be called when a JavaScript alert dialog is requested.
13733 * If no function is set or @c NULL is passed in @p func, the default
13734 * implementation will take place.
13736 * @param obj The web object where to set the hook function
13737 * @param func The callback function to be used
13738 * @param data User data
13740 * @see elm_web_inwin_mode_set()
13742 EAPI void elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
13744 * Sets the function to call when an confirm dialog
13746 * This hook will be called when a JavaScript confirm dialog is requested.
13747 * If no function is set or @c NULL is passed in @p func, the default
13748 * implementation will take place.
13750 * @param obj The web object where to set the hook function
13751 * @param func The callback function to be used
13752 * @param data User data
13754 * @see elm_web_inwin_mode_set()
13756 EAPI void elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
13758 * Sets the function to call when an prompt dialog
13760 * This hook will be called when a JavaScript prompt dialog is requested.
13761 * If no function is set or @c NULL is passed in @p func, the default
13762 * implementation will take place.
13764 * @param obj The web object where to set the hook function
13765 * @param func The callback function to be used
13766 * @param data User data
13768 * @see elm_web_inwin_mode_set()
13770 EAPI void elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
13772 * Sets the function to call when an file selector dialog
13774 * This hook will be called when a JavaScript file selector dialog is
13776 * If no function is set or @c NULL is passed in @p func, the default
13777 * implementation will take place.
13779 * @param obj The web object where to set the hook function
13780 * @param func The callback function to be used
13781 * @param data User data
13783 * @see elm_web_inwin_mode_set()
13785 EAPI void elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
13787 * Sets the function to call when a console message is emitted from JS
13789 * This hook will be called when a console message is emitted from
13790 * JavaScript. There is no default implementation for this feature.
13792 * @param obj The web object where to set the hook function
13793 * @param func The callback function to be used
13794 * @param data User data
13796 EAPI void elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
13798 * Gets the status of the tab propagation
13800 * @param obj The web object to query
13801 * @return EINA_TRUE if tab propagation is enabled, EINA_FALSE otherwise
13803 * @see elm_web_tab_propagate_set()
13805 EAPI Eina_Bool elm_web_tab_propagate_get(const Evas_Object *obj);
13807 * Sets whether to use tab propagation
13809 * If tab propagation is enabled, whenever the user presses the Tab key,
13810 * Elementary will handle it and switch focus to the next widget.
13811 * The default value is disabled, where WebKit will handle the Tab key to
13812 * cycle focus though its internal objects, jumping to the next widget
13813 * only when that cycle ends.
13815 * @param obj The web object
13816 * @param propagate Whether to propagate Tab keys to Elementary or not
13818 EAPI void elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
13820 * Sets the URI for the web object
13822 * It must be a full URI, with resource included, in the form
13823 * http://www.enlightenment.org or file:///tmp/something.html
13825 * @param obj The web object
13826 * @param uri The URI to set
13827 * @return EINA_TRUE if the URI could be, EINA_FALSE if an error occurred
13829 EAPI Eina_Bool elm_web_uri_set(Evas_Object *obj, const char *uri);
13831 * Gets the current URI for the object
13833 * The returned string must not be freed and is guaranteed to be
13836 * @param obj The web object
13837 * @return A stringshared internal string with the current URI, or NULL on
13840 EAPI const char *elm_web_uri_get(const Evas_Object *obj);
13842 * Gets the current title
13844 * The returned string must not be freed and is guaranteed to be
13847 * @param obj The web object
13848 * @return A stringshared internal string with the current title, or NULL on
13851 EAPI const char *elm_web_title_get(const Evas_Object *obj);
13853 * Sets the background color to be used by the web object
13855 * This is the color that will be used by default when the loaded page
13856 * does not set it's own. Color values are pre-multiplied.
13858 * @param obj The web object
13859 * @param r Red component
13860 * @param g Green component
13861 * @param b Blue component
13862 * @param a Alpha component
13864 EAPI void elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
13866 * Gets the background color to be used by the web object
13868 * This is the color that will be used by default when the loaded page
13869 * does not set it's own. Color values are pre-multiplied.
13871 * @param obj The web object
13872 * @param r Red component
13873 * @param g Green component
13874 * @param b Blue component
13875 * @param a Alpha component
13877 EAPI void elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
13879 * Gets a copy of the currently selected text
13881 * The string returned must be freed by the user when it's done with it.
13883 * @param obj The web object
13884 * @return A newly allocated string, or NULL if nothing is selected or an
13887 EAPI char *elm_view_selection_get(const Evas_Object *obj);
13889 * Tells the web object which index in the currently open popup was selected
13891 * When the user handles the popup creation from the "popup,created" signal,
13892 * it needs to tell the web object which item was selected by calling this
13893 * function with the index corresponding to the item.
13895 * @param obj The web object
13896 * @param index The index selected
13898 * @see elm_web_popup_destroy()
13900 EAPI void elm_web_popup_selected_set(Evas_Object *obj, int index);
13902 * Dismisses an open dropdown popup
13904 * When the popup from a dropdown widget is to be dismissed, either after
13905 * selecting an option or to cancel it, this function must be called, which
13906 * will later emit an "popup,willdelete" signal to notify the user that
13907 * any memory and objects related to this popup can be freed.
13909 * @param obj The web object
13910 * @return EINA_TRUE if the menu was successfully destroyed, or EINA_FALSE
13911 * if there was no menu to destroy
13913 EAPI Eina_Bool elm_web_popup_destroy(Evas_Object *obj);
13915 * Searches the given string in a document.
13917 * @param obj The web object where to search the text
13918 * @param string String to search
13919 * @param case_sensitive If search should be case sensitive or not
13920 * @param forward If search is from cursor and on or backwards
13921 * @param wrap If search should wrap at the end
13923 * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
13926 EAPI Eina_Bool elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
13928 * Marks matches of the given string in a document.
13930 * @param obj The web object where to search text
13931 * @param string String to match
13932 * @param case_sensitive If match should be case sensitive or not
13933 * @param highlight If matches should be highlighted
13934 * @param limit Maximum amount of matches, or zero to unlimited
13936 * @return number of matched @a string
13938 EAPI unsigned int elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
13940 * Clears all marked matches in the document
13942 * @param obj The web object
13944 * @return EINA_TRUE on success, EINA_FALSE otherwise
13946 EAPI Eina_Bool elm_web_text_matches_unmark_all(Evas_Object *obj);
13948 * Sets whether to highlight the matched marks
13950 * If enabled, marks set with elm_web_text_matches_mark() will be
13953 * @param obj The web object
13954 * @param highlight Whether to highlight the marks or not
13956 * @return EINA_TRUE on success, EINA_FALSE otherwise
13958 EAPI Eina_Bool elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
13960 * Gets whether highlighting marks is enabled
13962 * @param The web object
13964 * @return EINA_TRUE is marks are set to be highlighted, EINA_FALSE
13967 EAPI Eina_Bool elm_web_text_matches_highlight_get(const Evas_Object *obj);
13969 * Gets the overall loading progress of the page
13971 * Returns the estimated loading progress of the page, with a value between
13972 * 0.0 and 1.0. This is an estimated progress accounting for all the frames
13973 * included in the page.
13975 * @param The web object
13977 * @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
13980 EAPI double elm_web_load_progress_get(const Evas_Object *obj);
13982 * Stops loading the current page
13984 * Cancels the loading of the current page in the web object. This will
13985 * cause a "load,error" signal to be emitted, with the is_cancellation
13986 * flag set to EINA_TRUE.
13988 * @param obj The web object
13990 * @return EINA_TRUE if the cancel was successful, EINA_FALSE otherwise
13992 EAPI Eina_Bool elm_web_stop(Evas_Object *obj);
13994 * Requests a reload of the current document in the object
13996 * @param obj The web object
13998 * @return EINA_TRUE on success, EINA_FALSE otherwise
14000 EAPI Eina_Bool elm_web_reload(Evas_Object *obj);
14002 * Requests a reload of the current document, avoiding any existing caches
14004 * @param obj The web object
14006 * @return EINA_TRUE on success, EINA_FALSE otherwise
14008 EAPI Eina_Bool elm_web_reload_full(Evas_Object *obj);
14010 * Goes back one step in the browsing history
14012 * This is equivalent to calling elm_web_object_navigate(obj, -1);
14014 * @param obj The web object
14016 * @return EINA_TRUE on success, EINA_FALSE otherwise
14018 * @see elm_web_history_enable_set()
14019 * @see elm_web_back_possible()
14020 * @see elm_web_forward()
14021 * @see elm_web_navigate()
14023 EAPI Eina_Bool elm_web_back(Evas_Object *obj);
14025 * Goes forward one step in the browsing history
14027 * This is equivalent to calling elm_web_object_navigate(obj, 1);
14029 * @param obj The web object
14031 * @return EINA_TRUE on success, EINA_FALSE otherwise
14033 * @see elm_web_history_enable_set()
14034 * @see elm_web_forward_possible()
14035 * @see elm_web_back()
14036 * @see elm_web_navigate()
14038 EAPI Eina_Bool elm_web_forward(Evas_Object *obj);
14040 * Jumps the given number of steps in the browsing history
14042 * The @p steps value can be a negative integer to back in history, or a
14043 * positive to move forward.
14045 * @param obj The web object
14046 * @param steps The number of steps to jump
14048 * @return EINA_TRUE on success, EINA_FALSE on error or if not enough
14049 * history exists to jump the given number of steps
14051 * @see elm_web_history_enable_set()
14052 * @see elm_web_navigate_possible()
14053 * @see elm_web_back()
14054 * @see elm_web_forward()
14056 EAPI Eina_Bool elm_web_navigate(Evas_Object *obj, int steps);
14058 * Queries whether it's possible to go back in history
14060 * @param obj The web object
14062 * @return EINA_TRUE if it's possible to back in history, EINA_FALSE
14065 EAPI Eina_Bool elm_web_back_possible(Evas_Object *obj);
14067 * Queries whether it's possible to go forward in history
14069 * @param obj The web object
14071 * @return EINA_TRUE if it's possible to forward in history, EINA_FALSE
14074 EAPI Eina_Bool elm_web_forward_possible(Evas_Object *obj);
14076 * Queries whether it's possible to jump the given number of steps
14078 * The @p steps value can be a negative integer to back in history, or a
14079 * positive to move forward.
14081 * @param obj The web object
14082 * @param steps The number of steps to check for
14084 * @return EINA_TRUE if enough history exists to perform the given jump,
14085 * EINA_FALSE otherwise
14087 EAPI Eina_Bool elm_web_navigate_possible(Evas_Object *obj, int steps);
14089 * Gets whether browsing history is enabled for the given object
14091 * @param obj The web object
14093 * @return EINA_TRUE if history is enabled, EINA_FALSE otherwise
14095 EAPI Eina_Bool elm_web_history_enable_get(const Evas_Object *obj);
14097 * Enables or disables the browsing history
14099 * @param obj The web object
14100 * @param enable Whether to enable or disable the browsing history
14102 EAPI void elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
14104 * Sets the zoom level of the web object
14106 * Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
14107 * values meaning zoom in and lower meaning zoom out. This function will
14108 * only affect the zoom level if the mode set with elm_web_zoom_mode_set()
14109 * is ::ELM_WEB_ZOOM_MODE_MANUAL.
14111 * @param obj The web object
14112 * @param zoom The zoom level to set
14114 EAPI void elm_web_zoom_set(Evas_Object *obj, double zoom);
14116 * Gets the current zoom level set on the web object
14118 * Note that this is the zoom level set on the web object and not that
14119 * of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
14120 * the two zoom levels should match, but for the other two modes the
14121 * Webkit zoom is calculated internally to match the chosen mode without
14122 * changing the zoom level set for the web object.
14124 * @param obj The web object
14126 * @return The zoom level set on the object
14128 EAPI double elm_web_zoom_get(const Evas_Object *obj);
14130 * Sets the zoom mode to use
14132 * The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
14133 * ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
14135 * ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
14136 * with the elm_web_zoom_set() function.
14137 * ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
14138 * make sure the entirety of the web object's contents are shown.
14139 * ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
14140 * fit the contents in the web object's size, without leaving any space
14143 * @param obj The web object
14144 * @param mode The mode to set
14146 EAPI void elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
14148 * Gets the currently set zoom mode
14150 * @param obj The web object
14152 * @return The current zoom mode set for the object, or
14153 * ::ELM_WEB_ZOOM_MODE_LAST on error
14155 EAPI Elm_Web_Zoom_Mode elm_web_zoom_mode_get(const Evas_Object *obj);
14157 * Shows the given region in the web object
14159 * @param obj The web object
14160 * @param x The x coordinate of the region to show
14161 * @param y The y coordinate of the region to show
14162 * @param w The width of the region to show
14163 * @param h The height of the region to show
14165 EAPI void elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
14167 * Brings in the region to the visible area
14169 * Like elm_web_region_show(), but it animates the scrolling of the object
14172 * @param obj The web object
14173 * @param x The x coordinate of the region to show
14174 * @param y The y coordinate of the region to show
14175 * @param w The width of the region to show
14176 * @param h The height of the region to show
14178 EAPI void elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
14180 * Sets the default dialogs to use an Inwin instead of a normal window
14182 * If set, then the default implementation for the JavaScript dialogs and
14183 * file selector will be opened in an Inwin. Otherwise they will use a
14184 * normal separated window.
14186 * @param obj The web object
14187 * @param value EINA_TRUE to use Inwin, EINA_FALSE to use a normal window
14189 EAPI void elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
14191 * Gets whether Inwin mode is set for the current object
14193 * @param obj The web object
14195 * @return EINA_TRUE if Inwin mode is set, EINA_FALSE otherwise
14197 EAPI Eina_Bool elm_web_inwin_mode_get(const Evas_Object *obj);
14199 EAPI void elm_web_window_features_ref(Elm_Web_Window_Features *wf);
14200 EAPI void elm_web_window_features_unref(Elm_Web_Window_Features *wf);
14201 EAPI void elm_web_window_features_bool_property_get(const Elm_Web_Window_Features *wf, Eina_Bool *toolbar_visible, Eina_Bool *statusbar_visible, Eina_Bool *scrollbars_visible, Eina_Bool *menubar_visible, Eina_Bool *locationbar_visble, Eina_Bool *fullscreen);
14202 EAPI void elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
14209 * @defgroup Hoversel Hoversel
14211 * @image html img/widget/hoversel/preview-00.png
14212 * @image latex img/widget/hoversel/preview-00.eps
14214 * A hoversel is a button that pops up a list of items (automatically
14215 * choosing the direction to display) that have a label and, optionally, an
14216 * icon to select from. It is a convenience widget to avoid the need to do
14217 * all the piecing together yourself. It is intended for a small number of
14218 * items in the hoversel menu (no more than 8), though is capable of many
14221 * Signals that you can add callbacks for are:
14222 * "clicked" - the user clicked the hoversel button and popped up the sel
14223 * "selected" - an item in the hoversel list is selected. event_info is the item
14224 * "dismissed" - the hover is dismissed
14226 * See @ref tutorial_hoversel for an example.
14229 typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
14231 * @brief Add a new Hoversel object
14233 * @param parent The parent object
14234 * @return The new object or NULL if it cannot be created
14236 EAPI Evas_Object *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14238 * @brief This sets the hoversel to expand horizontally.
14240 * @param obj The hoversel object
14241 * @param horizontal If true, the hover will expand horizontally to the
14244 * @note The initial button will display horizontally regardless of this
14247 EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14249 * @brief This returns whether the hoversel is set to expand horizontally.
14251 * @param obj The hoversel object
14252 * @return If true, the hover will expand horizontally to the right.
14254 * @see elm_hoversel_horizontal_set()
14256 EAPI Eina_Bool elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14258 * @brief Set the Hover parent
14260 * @param obj The hoversel object
14261 * @param parent The parent to use
14263 * Sets the hover parent object, the area that will be darkened when the
14264 * hoversel is clicked. Should probably be the window that the hoversel is
14265 * in. See @ref Hover objects for more information.
14267 EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14269 * @brief Get the Hover parent
14271 * @param obj The hoversel object
14272 * @return The used parent
14274 * Gets the hover parent object.
14276 * @see elm_hoversel_hover_parent_set()
14278 EAPI Evas_Object *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14280 * @brief Set the hoversel button label
14282 * @param obj The hoversel object
14283 * @param label The label text.
14285 * This sets the label of the button that is always visible (before it is
14286 * clicked and expanded).
14288 * @deprecated elm_object_text_set()
14290 EINA_DEPRECATED EAPI void elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14292 * @brief Get the hoversel button label
14294 * @param obj The hoversel object
14295 * @return The label text.
14297 * @deprecated elm_object_text_get()
14299 EINA_DEPRECATED EAPI const char *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14301 * @brief Set the icon of the hoversel button
14303 * @param obj The hoversel object
14304 * @param icon The icon object
14306 * Sets the icon of the button that is always visible (before it is clicked
14307 * and expanded). Once the icon object is set, a previously set one will be
14308 * deleted, if you want to keep that old content object, use the
14309 * elm_hoversel_icon_unset() function.
14311 * @see elm_object_content_set() for the button widget
14313 EAPI void elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
14315 * @brief Get the icon of the hoversel button
14317 * @param obj The hoversel object
14318 * @return The icon object
14320 * Get the icon of the button that is always visible (before it is clicked
14321 * and expanded). Also see elm_object_content_get() for the button widget.
14323 * @see elm_hoversel_icon_set()
14325 EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14327 * @brief Get and unparent the icon of the hoversel button
14329 * @param obj The hoversel object
14330 * @return The icon object that was being used
14332 * Unparent and return the icon of the button that is always visible
14333 * (before it is clicked and expanded).
14335 * @see elm_hoversel_icon_set()
14336 * @see elm_object_content_unset() for the button widget
14338 EAPI Evas_Object *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14340 * @brief This triggers the hoversel popup from code, the same as if the user
14341 * had clicked the button.
14343 * @param obj The hoversel object
14345 EAPI void elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
14347 * @brief This dismisses the hoversel popup as if the user had clicked
14348 * outside the hover.
14350 * @param obj The hoversel object
14352 EAPI void elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
14354 * @brief Returns whether the hoversel is expanded.
14356 * @param obj The hoversel object
14357 * @return This will return EINA_TRUE if the hoversel is expanded or
14358 * EINA_FALSE if it is not expanded.
14360 EAPI Eina_Bool elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14362 * @brief This will remove all the children items from the hoversel.
14364 * @param obj The hoversel object
14366 * @warning Should @b not be called while the hoversel is active; use
14367 * elm_hoversel_expanded_get() to check first.
14369 * @see elm_hoversel_item_del_cb_set()
14370 * @see elm_hoversel_item_del()
14372 EAPI void elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14374 * @brief Get the list of items within the given hoversel.
14376 * @param obj The hoversel object
14377 * @return Returns a list of Elm_Hoversel_Item*
14379 * @see elm_hoversel_item_add()
14381 EAPI const Eina_List *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14383 * @brief Add an item to the hoversel button
14385 * @param obj The hoversel object
14386 * @param label The text label to use for the item (NULL if not desired)
14387 * @param icon_file An image file path on disk to use for the icon or standard
14388 * icon name (NULL if not desired)
14389 * @param icon_type The icon type if relevant
14390 * @param func Convenience function to call when this item is selected
14391 * @param data Data to pass to item-related functions
14392 * @return A handle to the item added.
14394 * This adds an item to the hoversel to show when it is clicked. Note: if you
14395 * need to use an icon from an edje file then use
14396 * elm_hoversel_item_icon_set() right after the this function, and set
14397 * icon_file to NULL here.
14399 * For more information on what @p icon_file and @p icon_type are see the
14400 * @ref Icon "icon documentation".
14402 EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14404 * @brief Delete an item from the hoversel
14406 * @param item The item to delete
14408 * This deletes the item from the hoversel (should not be called while the
14409 * hoversel is active; use elm_hoversel_expanded_get() to check first).
14411 * @see elm_hoversel_item_add()
14412 * @see elm_hoversel_item_del_cb_set()
14414 EAPI void elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
14416 * @brief Set the function to be called when an item from the hoversel is
14419 * @param item The item to set the callback on
14420 * @param func The function called
14422 * That function will receive these parameters:
14423 * @li void *item_data
14424 * @li Evas_Object *the_item_object
14425 * @li Elm_Hoversel_Item *the_object_struct
14427 * @see elm_hoversel_item_add()
14429 EAPI void elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14431 * @brief This returns the data pointer supplied with elm_hoversel_item_add()
14432 * that will be passed to associated function callbacks.
14434 * @param item The item to get the data from
14435 * @return The data pointer set with elm_hoversel_item_add()
14437 * @see elm_hoversel_item_add()
14439 EAPI void *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14441 * @brief This returns the label text of the given hoversel item.
14443 * @param item The item to get the label
14444 * @return The label text of the hoversel item
14446 * @see elm_hoversel_item_add()
14448 EAPI const char *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
14450 * @brief This sets the icon for the given hoversel item.
14452 * @param item The item to set the icon
14453 * @param icon_file An image file path on disk to use for the icon or standard
14455 * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
14456 * to NULL if the icon is not an edje file
14457 * @param icon_type The icon type
14459 * The icon can be loaded from the standard set, from an image file, or from
14462 * @see elm_hoversel_item_add()
14464 EAPI void elm_hoversel_item_icon_set(Elm_Hoversel_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type) EINA_ARG_NONNULL(1);
14466 * @brief Get the icon object of the hoversel item
14468 * @param item The item to get the icon from
14469 * @param icon_file The image file path on disk used for the icon or standard
14471 * @param icon_group The edje group used if @p icon_file is an edje file. NULL
14472 * if the icon is not an edje file
14473 * @param icon_type The icon type
14475 * @see elm_hoversel_item_icon_set()
14476 * @see elm_hoversel_item_add()
14478 EAPI void elm_hoversel_item_icon_get(const Elm_Hoversel_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type) EINA_ARG_NONNULL(1);
14484 * @defgroup Toolbar Toolbar
14485 * @ingroup Elementary
14487 * @image html img/widget/toolbar/preview-00.png
14488 * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
14490 * @image html img/toolbar.png
14491 * @image latex img/toolbar.eps width=\textwidth
14493 * A toolbar is a widget that displays a list of items inside
14494 * a box. It can be scrollable, show a menu with items that don't fit
14495 * to toolbar size or even crop them.
14497 * Only one item can be selected at a time.
14499 * Items can have multiple states, or show menus when selected by the user.
14501 * Smart callbacks one can listen to:
14502 * - "clicked" - when the user clicks on a toolbar item and becomes selected.
14503 * - "language,changed" - when the program language changes
14505 * Available styles for it:
14507 * - @c "transparent" - no background or shadow, just show the content
14509 * List of examples:
14510 * @li @ref toolbar_example_01
14511 * @li @ref toolbar_example_02
14512 * @li @ref toolbar_example_03
14516 * @addtogroup Toolbar
14521 * @enum _Elm_Toolbar_Shrink_Mode
14522 * @typedef Elm_Toolbar_Shrink_Mode
14524 * Set toolbar's items display behavior, it can be scrollabel,
14525 * show a menu with exceeding items, or simply hide them.
14527 * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
14530 * Values <b> don't </b> work as bitmask, only one can be choosen.
14532 * @see elm_toolbar_mode_shrink_set()
14533 * @see elm_toolbar_mode_shrink_get()
14537 typedef enum _Elm_Toolbar_Shrink_Mode
14539 ELM_TOOLBAR_SHRINK_NONE, /**< Set toolbar minimun size to fit all the items. */
14540 ELM_TOOLBAR_SHRINK_HIDE, /**< Hide exceeding items. */
14541 ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
14542 ELM_TOOLBAR_SHRINK_MENU, /**< Inserts a button to pop up a menu with exceeding items. */
14543 ELM_TOOLBAR_SHRINK_LAST /**< Indicates error if returned by elm_toolbar_shrink_mode_get() */
14544 } Elm_Toolbar_Shrink_Mode;
14546 typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item; /**< Item of Elm_Toolbar. Sub-type of Elm_Widget_Item. Can be created with elm_toolbar_item_append(), elm_toolbar_item_prepend() and functions to add items in relative positions, like elm_toolbar_item_insert_before(), and deleted with elm_toolbar_item_del(). */
14548 typedef struct _Elm_Toolbar_Item_State Elm_Toolbar_Item_State; /**< State of a Elm_Toolbar_Item. Can be created with elm_toolbar_item_state_add() and removed with elm_toolbar_item_state_del(). */
14551 * Add a new toolbar widget to the given parent Elementary
14552 * (container) object.
14554 * @param parent The parent object.
14555 * @return a new toolbar widget handle or @c NULL, on errors.
14557 * This function inserts a new toolbar widget on the canvas.
14561 EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14564 * Set the icon size, in pixels, to be used by toolbar items.
14566 * @param obj The toolbar object
14567 * @param icon_size The icon size in pixels
14569 * @note Default value is @c 32. It reads value from elm config.
14571 * @see elm_toolbar_icon_size_get()
14575 EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
14578 * Get the icon size, in pixels, to be used by toolbar items.
14580 * @param obj The toolbar object.
14581 * @return The icon size in pixels.
14583 * @see elm_toolbar_icon_size_set() for details.
14587 EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14590 * Sets icon lookup order, for toolbar items' icons.
14592 * @param obj The toolbar object.
14593 * @param order The icon lookup order.
14595 * Icons added before calling this function will not be affected.
14596 * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
14598 * @see elm_toolbar_icon_order_lookup_get()
14602 EAPI void elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
14605 * Gets the icon lookup order.
14607 * @param obj The toolbar object.
14608 * @return The icon lookup order.
14610 * @see elm_toolbar_icon_order_lookup_set() for details.
14614 EAPI Elm_Icon_Lookup_Order elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14617 * Set whether the toolbar should always have an item selected.
14619 * @param obj The toolbar object.
14620 * @param wrap @c EINA_TRUE to enable always-select mode or @c EINA_FALSE to
14623 * This will cause the toolbar to always have an item selected, and clicking
14624 * the selected item will not cause a selected event to be emitted. Enabling this mode
14625 * will immediately select the first toolbar item.
14627 * Always-selected is disabled by default.
14629 * @see elm_toolbar_always_select_mode_get().
14633 EAPI void elm_toolbar_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14636 * Get whether the toolbar should always have an item selected.
14638 * @param obj The toolbar object.
14639 * @return @c EINA_TRUE means an item will always be selected, @c EINA_FALSE indicates
14640 * that it is possible to have no items selected. If @p obj is @c NULL, @c EINA_FALSE is returned.
14642 * @see elm_toolbar_always_select_mode_set() for details.
14646 EAPI Eina_Bool elm_toolbar_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14649 * Set whether the toolbar items' should be selected by the user or not.
14651 * @param obj The toolbar object.
14652 * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
14655 * This will turn off the ability to select items entirely and they will
14656 * neither appear selected nor emit selected signals. The clicked
14657 * callback function will still be called.
14659 * Selection is enabled by default.
14661 * @see elm_toolbar_no_select_mode_get().
14665 EAPI void elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
14668 * Set whether the toolbar items' should be selected by the user or not.
14670 * @param obj The toolbar object.
14671 * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
14672 * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
14674 * @see elm_toolbar_no_select_mode_set() for details.
14678 EAPI Eina_Bool elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14681 * Append item to the toolbar.
14683 * @param obj The toolbar object.
14684 * @param icon A string with icon name or the absolute path of an image file.
14685 * @param label The label of the item.
14686 * @param func The function to call when the item is clicked.
14687 * @param data The data to associate with the item for related callbacks.
14688 * @return The created item or @c NULL upon failure.
14690 * A new item will be created and appended to the toolbar, i.e., will
14691 * be set as @b last item.
14693 * Items created with this method can be deleted with
14694 * elm_toolbar_item_del().
14696 * Associated @p data can be properly freed when item is deleted if a
14697 * callback function is set with elm_toolbar_item_del_cb_set().
14699 * If a function is passed as argument, it will be called everytime this item
14700 * is selected, i.e., the user clicks over an unselected item.
14701 * If such function isn't needed, just passing
14702 * @c NULL as @p func is enough. The same should be done for @p data.
14704 * Toolbar will load icon image from fdo or current theme.
14705 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14706 * If an absolute path is provided it will load it direct from a file.
14708 * @see elm_toolbar_item_icon_set()
14709 * @see elm_toolbar_item_del()
14710 * @see elm_toolbar_item_del_cb_set()
14714 EAPI Elm_Toolbar_Item *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14717 * Prepend item to the toolbar.
14719 * @param obj The toolbar object.
14720 * @param icon A string with icon name or the absolute path of an image file.
14721 * @param label The label of the item.
14722 * @param func The function to call when the item is clicked.
14723 * @param data The data to associate with the item for related callbacks.
14724 * @return The created item or @c NULL upon failure.
14726 * A new item will be created and prepended to the toolbar, i.e., will
14727 * be set as @b first item.
14729 * Items created with this method can be deleted with
14730 * elm_toolbar_item_del().
14732 * Associated @p data can be properly freed when item is deleted if a
14733 * callback function is set with elm_toolbar_item_del_cb_set().
14735 * If a function is passed as argument, it will be called everytime this item
14736 * is selected, i.e., the user clicks over an unselected item.
14737 * If such function isn't needed, just passing
14738 * @c NULL as @p func is enough. The same should be done for @p data.
14740 * Toolbar will load icon image from fdo or current theme.
14741 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14742 * If an absolute path is provided it will load it direct from a file.
14744 * @see elm_toolbar_item_icon_set()
14745 * @see elm_toolbar_item_del()
14746 * @see elm_toolbar_item_del_cb_set()
14750 EAPI Elm_Toolbar_Item *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14753 * Insert a new item into the toolbar object before item @p before.
14755 * @param obj The toolbar object.
14756 * @param before The toolbar item to insert before.
14757 * @param icon A string with icon name or the absolute path of an image file.
14758 * @param label The label of the item.
14759 * @param func The function to call when the item is clicked.
14760 * @param data The data to associate with the item for related callbacks.
14761 * @return The created item or @c NULL upon failure.
14763 * A new item will be created and added to the toolbar. Its position in
14764 * this toolbar will be just before item @p before.
14766 * Items created with this method can be deleted with
14767 * elm_toolbar_item_del().
14769 * Associated @p data can be properly freed when item is deleted if a
14770 * callback function is set with elm_toolbar_item_del_cb_set().
14772 * If a function is passed as argument, it will be called everytime this item
14773 * is selected, i.e., the user clicks over an unselected item.
14774 * If such function isn't needed, just passing
14775 * @c NULL as @p func is enough. The same should be done for @p data.
14777 * Toolbar will load icon image from fdo or current theme.
14778 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14779 * If an absolute path is provided it will load it direct from a file.
14781 * @see elm_toolbar_item_icon_set()
14782 * @see elm_toolbar_item_del()
14783 * @see elm_toolbar_item_del_cb_set()
14787 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Toolbar_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14790 * Insert a new item into the toolbar object after item @p after.
14792 * @param obj The toolbar object.
14793 * @param after The toolbar item to insert after.
14794 * @param icon A string with icon name or the absolute path of an image file.
14795 * @param label The label of the item.
14796 * @param func The function to call when the item is clicked.
14797 * @param data The data to associate with the item for related callbacks.
14798 * @return The created item or @c NULL upon failure.
14800 * A new item will be created and added to the toolbar. Its position in
14801 * this toolbar will be just after item @p after.
14803 * Items created with this method can be deleted with
14804 * elm_toolbar_item_del().
14806 * Associated @p data can be properly freed when item is deleted if a
14807 * callback function is set with elm_toolbar_item_del_cb_set().
14809 * If a function is passed as argument, it will be called everytime this item
14810 * is selected, i.e., the user clicks over an unselected item.
14811 * If such function isn't needed, just passing
14812 * @c NULL as @p func is enough. The same should be done for @p data.
14814 * Toolbar will load icon image from fdo or current theme.
14815 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
14816 * If an absolute path is provided it will load it direct from a file.
14818 * @see elm_toolbar_item_icon_set()
14819 * @see elm_toolbar_item_del()
14820 * @see elm_toolbar_item_del_cb_set()
14824 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Toolbar_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
14827 * Get the first item in the given toolbar widget's list of
14830 * @param obj The toolbar object
14831 * @return The first item or @c NULL, if it has no items (and on
14834 * @see elm_toolbar_item_append()
14835 * @see elm_toolbar_last_item_get()
14839 EAPI Elm_Toolbar_Item *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14842 * Get the last item in the given toolbar widget's list of
14845 * @param obj The toolbar object
14846 * @return The last item or @c NULL, if it has no items (and on
14849 * @see elm_toolbar_item_prepend()
14850 * @see elm_toolbar_first_item_get()
14854 EAPI Elm_Toolbar_Item *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14857 * Get the item after @p item in toolbar.
14859 * @param item The toolbar item.
14860 * @return The item after @p item, or @c NULL if none or on failure.
14862 * @note If it is the last item, @c NULL will be returned.
14864 * @see elm_toolbar_item_append()
14868 EAPI Elm_Toolbar_Item *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14871 * Get the item before @p item in toolbar.
14873 * @param item The toolbar item.
14874 * @return The item before @p item, or @c NULL if none or on failure.
14876 * @note If it is the first item, @c NULL will be returned.
14878 * @see elm_toolbar_item_prepend()
14882 EAPI Elm_Toolbar_Item *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14885 * Get the toolbar object from an item.
14887 * @param item The item.
14888 * @return The toolbar object.
14890 * This returns the toolbar object itself that an item belongs to.
14894 EAPI Evas_Object *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14897 * Set the priority of a toolbar item.
14899 * @param item The toolbar item.
14900 * @param priority The item priority. The default is zero.
14902 * This is used only when the toolbar shrink mode is set to
14903 * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
14904 * When space is less than required, items with low priority
14905 * will be removed from the toolbar and added to a dynamically-created menu,
14906 * while items with higher priority will remain on the toolbar,
14907 * with the same order they were added.
14909 * @see elm_toolbar_item_priority_get()
14913 EAPI void elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
14916 * Get the priority of a toolbar item.
14918 * @param item The toolbar item.
14919 * @return The @p item priority, or @c 0 on failure.
14921 * @see elm_toolbar_item_priority_set() for details.
14925 EAPI int elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14928 * Get the label of item.
14930 * @param item The item of toolbar.
14931 * @return The label of item.
14933 * The return value is a pointer to the label associated to @p item when
14934 * it was created, with function elm_toolbar_item_append() or similar,
14936 * with function elm_toolbar_item_label_set. If no label
14937 * was passed as argument, it will return @c NULL.
14939 * @see elm_toolbar_item_label_set() for more details.
14940 * @see elm_toolbar_item_append()
14944 EAPI const char *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14947 * Set the label of item.
14949 * @param item The item of toolbar.
14950 * @param text The label of item.
14952 * The label to be displayed by the item.
14953 * Label will be placed at icons bottom (if set).
14955 * If a label was passed as argument on item creation, with function
14956 * elm_toolbar_item_append() or similar, it will be already
14957 * displayed by the item.
14959 * @see elm_toolbar_item_label_get()
14960 * @see elm_toolbar_item_append()
14964 EAPI void elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
14967 * Return the data associated with a given toolbar widget item.
14969 * @param item The toolbar widget item handle.
14970 * @return The data associated with @p item.
14972 * @see elm_toolbar_item_data_set()
14976 EAPI void *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14979 * Set the data associated with a given toolbar widget item.
14981 * @param item The toolbar widget item handle.
14982 * @param data The new data pointer to set to @p item.
14984 * This sets new item data on @p item.
14986 * @warning The old data pointer won't be touched by this function, so
14987 * the user had better to free that old data himself/herself.
14991 EAPI void elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
14994 * Returns a pointer to a toolbar item by its label.
14996 * @param obj The toolbar object.
14997 * @param label The label of the item to find.
14999 * @return The pointer to the toolbar item matching @p label or @c NULL
15004 EAPI Elm_Toolbar_Item *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15007 * Get whether the @p item is selected or not.
15009 * @param item The toolbar item.
15010 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15011 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15013 * @see elm_toolbar_selected_item_set() for details.
15014 * @see elm_toolbar_item_selected_get()
15018 EAPI Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15021 * Set the selected state of an item.
15023 * @param item The toolbar item
15024 * @param selected The selected state
15026 * This sets the selected state of the given item @p it.
15027 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15029 * If a new item is selected the previosly selected will be unselected.
15030 * Previoulsy selected item can be get with function
15031 * elm_toolbar_selected_item_get().
15033 * Selected items will be highlighted.
15035 * @see elm_toolbar_item_selected_get()
15036 * @see elm_toolbar_selected_item_get()
15040 EAPI void elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15043 * Get the selected item.
15045 * @param obj The toolbar object.
15046 * @return The selected toolbar item.
15048 * The selected item can be unselected with function
15049 * elm_toolbar_item_selected_set().
15051 * The selected item always will be highlighted on toolbar.
15053 * @see elm_toolbar_selected_items_get()
15057 EAPI Elm_Toolbar_Item *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15060 * Set the icon associated with @p item.
15062 * @param obj The parent of this item.
15063 * @param item The toolbar item.
15064 * @param icon A string with icon name or the absolute path of an image file.
15066 * Toolbar will load icon image from fdo or current theme.
15067 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15068 * If an absolute path is provided it will load it direct from a file.
15070 * @see elm_toolbar_icon_order_lookup_set()
15071 * @see elm_toolbar_icon_order_lookup_get()
15075 EAPI void elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
15078 * Get the string used to set the icon of @p item.
15080 * @param item The toolbar item.
15081 * @return The string associated with the icon object.
15083 * @see elm_toolbar_item_icon_set() for details.
15087 EAPI const char *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15090 * Get the object of @p item.
15092 * @param item The toolbar item.
15093 * @return The object
15097 EAPI Evas_Object *elm_toolbar_item_object_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15100 * Get the icon object of @p item.
15102 * @param item The toolbar item.
15103 * @return The icon object
15105 * @see elm_toolbar_item_icon_set() or elm_toolbar_item_icon_memfile_set() for details.
15109 EAPI Evas_Object *elm_toolbar_item_icon_object_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15112 * Set the icon associated with @p item to an image in a binary buffer.
15114 * @param item The toolbar item.
15115 * @param img The binary data that will be used as an image
15116 * @param size The size of binary data @p img
15117 * @param format Optional format of @p img to pass to the image loader
15118 * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
15120 * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
15122 * @note The icon image set by this function can be changed by
15123 * elm_toolbar_item_icon_set().
15127 EAPI Eina_Bool elm_toolbar_item_icon_memfile_set(Elm_Toolbar_Item *item, const void *img, size_t size, const char *format, const char *key) EINA_ARG_NONNULL(1);
15130 * Delete them item from the toolbar.
15132 * @param item The item of toolbar to be deleted.
15134 * @see elm_toolbar_item_append()
15135 * @see elm_toolbar_item_del_cb_set()
15139 EAPI void elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15142 * Set the function called when a toolbar item is freed.
15144 * @param item The item to set the callback on.
15145 * @param func The function called.
15147 * If there is a @p func, then it will be called prior item's memory release.
15148 * That will be called with the following arguments:
15150 * @li item's Evas object;
15153 * This way, a data associated to a toolbar item could be properly freed.
15157 EAPI void elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15160 * Get a value whether toolbar item is disabled or not.
15162 * @param item The item.
15163 * @return The disabled state.
15165 * @see elm_toolbar_item_disabled_set() for more details.
15169 EAPI Eina_Bool elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15172 * Sets the disabled/enabled state of a toolbar item.
15174 * @param item The item.
15175 * @param disabled The disabled state.
15177 * A disabled item cannot be selected or unselected. It will also
15178 * change its appearance (generally greyed out). This sets the
15179 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15184 EAPI void elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15187 * Set or unset item as a separator.
15189 * @param item The toolbar item.
15190 * @param setting @c EINA_TRUE to set item @p item as separator or
15191 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
15193 * Items aren't set as separator by default.
15195 * If set as separator it will display separator theme, so won't display
15198 * @see elm_toolbar_item_separator_get()
15202 EAPI void elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
15205 * Get a value whether item is a separator or not.
15207 * @param item The toolbar item.
15208 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
15209 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
15211 * @see elm_toolbar_item_separator_set() for details.
15215 EAPI Eina_Bool elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15218 * Set the shrink state of toolbar @p obj.
15220 * @param obj The toolbar object.
15221 * @param shrink_mode Toolbar's items display behavior.
15223 * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
15224 * but will enforce a minimun size so all the items will fit, won't scroll
15225 * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
15226 * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
15227 * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
15231 EAPI void elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
15234 * Get the shrink mode of toolbar @p obj.
15236 * @param obj The toolbar object.
15237 * @return Toolbar's items display behavior.
15239 * @see elm_toolbar_mode_shrink_set() for details.
15243 EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15246 * Enable/disable homogenous mode.
15248 * @param obj The toolbar object
15249 * @param homogeneous Assume the items within the toolbar are of the
15250 * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15252 * This will enable the homogeneous mode where items are of the same size.
15253 * @see elm_toolbar_homogeneous_get()
15257 EAPI void elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
15260 * Get whether the homogenous mode is enabled.
15262 * @param obj The toolbar object.
15263 * @return Assume the items within the toolbar are of the same height
15264 * and width (EINA_TRUE = on, EINA_FALSE = off).
15266 * @see elm_toolbar_homogeneous_set()
15270 EAPI Eina_Bool elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15273 * Enable/disable homogenous mode.
15275 * @param obj The toolbar object
15276 * @param homogeneous Assume the items within the toolbar are of the
15277 * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
15279 * This will enable the homogeneous mode where items are of the same size.
15280 * @see elm_toolbar_homogeneous_get()
15282 * @deprecated use elm_toolbar_homogeneous_set() instead.
15286 EINA_DEPRECATED EAPI void elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
15289 * Get whether the homogenous mode is enabled.
15291 * @param obj The toolbar object.
15292 * @return Assume the items within the toolbar are of the same height
15293 * and width (EINA_TRUE = on, EINA_FALSE = off).
15295 * @see elm_toolbar_homogeneous_set()
15296 * @deprecated use elm_toolbar_homogeneous_get() instead.
15300 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15303 * Set the parent object of the toolbar items' menus.
15305 * @param obj The toolbar object.
15306 * @param parent The parent of the menu objects.
15308 * Each item can be set as item menu, with elm_toolbar_item_menu_set().
15310 * For more details about setting the parent for toolbar menus, see
15311 * elm_menu_parent_set().
15313 * @see elm_menu_parent_set() for details.
15314 * @see elm_toolbar_item_menu_set() for details.
15318 EAPI void elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15321 * Get the parent object of the toolbar items' menus.
15323 * @param obj The toolbar object.
15324 * @return The parent of the menu objects.
15326 * @see elm_toolbar_menu_parent_set() for details.
15330 EAPI Evas_Object *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15333 * Set the alignment of the items.
15335 * @param obj The toolbar object.
15336 * @param align The new alignment, a float between <tt> 0.0 </tt>
15337 * and <tt> 1.0 </tt>.
15339 * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
15340 * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
15343 * Centered items by default.
15345 * @see elm_toolbar_align_get()
15349 EAPI void elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
15352 * Get the alignment of the items.
15354 * @param obj The toolbar object.
15355 * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
15358 * @see elm_toolbar_align_set() for details.
15362 EAPI double elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15365 * Set whether the toolbar item opens a menu.
15367 * @param item The toolbar item.
15368 * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
15370 * A toolbar item can be set to be a menu, using this function.
15372 * Once it is set to be a menu, it can be manipulated through the
15373 * menu-like function elm_toolbar_menu_parent_set() and the other
15374 * elm_menu functions, using the Evas_Object @c menu returned by
15375 * elm_toolbar_item_menu_get().
15377 * So, items to be displayed in this item's menu should be added with
15378 * elm_menu_item_add().
15380 * The following code exemplifies the most basic usage:
15382 * tb = elm_toolbar_add(win)
15383 * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
15384 * elm_toolbar_item_menu_set(item, EINA_TRUE);
15385 * elm_toolbar_menu_parent_set(tb, win);
15386 * menu = elm_toolbar_item_menu_get(item);
15387 * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
15388 * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
15392 * @see elm_toolbar_item_menu_get()
15396 EAPI void elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
15399 * Get toolbar item's menu.
15401 * @param item The toolbar item.
15402 * @return Item's menu object or @c NULL on failure.
15404 * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
15405 * this function will set it.
15407 * @see elm_toolbar_item_menu_set() for details.
15411 EAPI Evas_Object *elm_toolbar_item_menu_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15414 * Add a new state to @p item.
15416 * @param item The item.
15417 * @param icon A string with icon name or the absolute path of an image file.
15418 * @param label The label of the new state.
15419 * @param func The function to call when the item is clicked when this
15420 * state is selected.
15421 * @param data The data to associate with the state.
15422 * @return The toolbar item state, or @c NULL upon failure.
15424 * Toolbar will load icon image from fdo or current theme.
15425 * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
15426 * If an absolute path is provided it will load it direct from a file.
15428 * States created with this function can be removed with
15429 * elm_toolbar_item_state_del().
15431 * @see elm_toolbar_item_state_del()
15432 * @see elm_toolbar_item_state_sel()
15433 * @see elm_toolbar_item_state_get()
15437 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Toolbar_Item *item, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
15440 * Delete a previoulsy added state to @p item.
15442 * @param item The toolbar item.
15443 * @param state The state to be deleted.
15444 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15446 * @see elm_toolbar_item_state_add()
15448 EAPI Eina_Bool elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15451 * Set @p state as the current state of @p it.
15453 * @param it The item.
15454 * @param state The state to use.
15455 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
15457 * If @p state is @c NULL, it won't select any state and the default item's
15458 * icon and label will be used. It's the same behaviour than
15459 * elm_toolbar_item_state_unser().
15461 * @see elm_toolbar_item_state_unset()
15465 EAPI Eina_Bool elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
15468 * Unset the state of @p it.
15470 * @param it The item.
15472 * The default icon and label from this item will be displayed.
15474 * @see elm_toolbar_item_state_set() for more details.
15478 EAPI void elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15481 * Get the current state of @p it.
15483 * @param item The item.
15484 * @return The selected state or @c NULL if none is selected or on failure.
15486 * @see elm_toolbar_item_state_set() for details.
15487 * @see elm_toolbar_item_state_unset()
15488 * @see elm_toolbar_item_state_add()
15492 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15495 * Get the state after selected state in toolbar's @p item.
15497 * @param it The toolbar item to change state.
15498 * @return The state after current state, or @c NULL on failure.
15500 * If last state is selected, this function will return first state.
15502 * @see elm_toolbar_item_state_set()
15503 * @see elm_toolbar_item_state_add()
15507 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15510 * Get the state before selected state in toolbar's @p item.
15512 * @param it The toolbar item to change state.
15513 * @return The state before current state, or @c NULL on failure.
15515 * If first state is selected, this function will return last state.
15517 * @see elm_toolbar_item_state_set()
15518 * @see elm_toolbar_item_state_add()
15522 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
15525 * Set the text to be shown in a given toolbar item's tooltips.
15527 * @param item Target item.
15528 * @param text The text to set in the content.
15530 * Setup the text as tooltip to object. The item can have only one tooltip,
15531 * so any previous tooltip data - set with this function or
15532 * elm_toolbar_item_tooltip_content_cb_set() - is removed.
15534 * @see elm_object_tooltip_text_set() for more details.
15538 EAPI void elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
15541 * Set the content to be shown in the tooltip item.
15543 * Setup the tooltip to item. The item can have only one tooltip,
15544 * so any previous tooltip data is removed. @p func(with @p data) will
15545 * be called every time that need show the tooltip and it should
15546 * return a valid Evas_Object. This object is then managed fully by
15547 * tooltip system and is deleted when the tooltip is gone.
15549 * @param item the toolbar item being attached a tooltip.
15550 * @param func the function used to create the tooltip contents.
15551 * @param data what to provide to @a func as callback data/context.
15552 * @param del_cb called when data is not needed anymore, either when
15553 * another callback replaces @a func, the tooltip is unset with
15554 * elm_toolbar_item_tooltip_unset() or the owner @a item
15555 * dies. This callback receives as the first parameter the
15556 * given @a data, and @c event_info is the item.
15558 * @see elm_object_tooltip_content_cb_set() for more details.
15562 EAPI void elm_toolbar_item_tooltip_content_cb_set(Elm_Toolbar_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
15565 * Unset tooltip from item.
15567 * @param item toolbar item to remove previously set tooltip.
15569 * Remove tooltip from item. The callback provided as del_cb to
15570 * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
15571 * it is not used anymore.
15573 * @see elm_object_tooltip_unset() for more details.
15574 * @see elm_toolbar_item_tooltip_content_cb_set()
15578 EAPI void elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15581 * Sets a different style for this item tooltip.
15583 * @note before you set a style you should define a tooltip with
15584 * elm_toolbar_item_tooltip_content_cb_set() or
15585 * elm_toolbar_item_tooltip_text_set()
15587 * @param item toolbar item with tooltip already set.
15588 * @param style the theme style to use (default, transparent, ...)
15590 * @see elm_object_tooltip_style_set() for more details.
15594 EAPI void elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15597 * Get the style for this item tooltip.
15599 * @param item toolbar item with tooltip already set.
15600 * @return style the theme style in use, defaults to "default". If the
15601 * object does not have a tooltip set, then NULL is returned.
15603 * @see elm_object_tooltip_style_get() for more details.
15604 * @see elm_toolbar_item_tooltip_style_set()
15608 EAPI const char *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15611 * Set the type of mouse pointer/cursor decoration to be shown,
15612 * when the mouse pointer is over the given toolbar widget item
15614 * @param item toolbar item to customize cursor on
15615 * @param cursor the cursor type's name
15617 * This function works analogously as elm_object_cursor_set(), but
15618 * here the cursor's changing area is restricted to the item's
15619 * area, and not the whole widget's. Note that that item cursors
15620 * have precedence over widget cursors, so that a mouse over an
15621 * item with custom cursor set will always show @b that cursor.
15623 * If this function is called twice for an object, a previously set
15624 * cursor will be unset on the second call.
15626 * @see elm_object_cursor_set()
15627 * @see elm_toolbar_item_cursor_get()
15628 * @see elm_toolbar_item_cursor_unset()
15632 EAPI void elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15635 * Get the type of mouse pointer/cursor decoration set to be shown,
15636 * when the mouse pointer is over the given toolbar widget item
15638 * @param item toolbar item with custom cursor set
15639 * @return the cursor type's name or @c NULL, if no custom cursors
15640 * were set to @p item (and on errors)
15642 * @see elm_object_cursor_get()
15643 * @see elm_toolbar_item_cursor_set()
15644 * @see elm_toolbar_item_cursor_unset()
15648 EAPI const char *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15651 * Unset any custom mouse pointer/cursor decoration set to be
15652 * shown, when the mouse pointer is over the given toolbar widget
15653 * item, thus making it show the @b default cursor again.
15655 * @param item a toolbar item
15657 * Use this call to undo any custom settings on this item's cursor
15658 * decoration, bringing it back to defaults (no custom style set).
15660 * @see elm_object_cursor_unset()
15661 * @see elm_toolbar_item_cursor_set()
15665 EAPI void elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15668 * Set a different @b style for a given custom cursor set for a
15671 * @param item toolbar item with custom cursor set
15672 * @param style the <b>theme style</b> to use (e.g. @c "default",
15673 * @c "transparent", etc)
15675 * This function only makes sense when one is using custom mouse
15676 * cursor decorations <b>defined in a theme file</b>, which can have,
15677 * given a cursor name/type, <b>alternate styles</b> on it. It
15678 * works analogously as elm_object_cursor_style_set(), but here
15679 * applyed only to toolbar item objects.
15681 * @warning Before you set a cursor style you should have definen a
15682 * custom cursor previously on the item, with
15683 * elm_toolbar_item_cursor_set()
15685 * @see elm_toolbar_item_cursor_engine_only_set()
15686 * @see elm_toolbar_item_cursor_style_get()
15690 EAPI void elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
15693 * Get the current @b style set for a given toolbar item's custom
15696 * @param item toolbar item with custom cursor set.
15697 * @return style the cursor style in use. If the object does not
15698 * have a cursor set, then @c NULL is returned.
15700 * @see elm_toolbar_item_cursor_style_set() for more details
15704 EAPI const char *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15707 * Set if the (custom)cursor for a given toolbar item should be
15708 * searched in its theme, also, or should only rely on the
15709 * rendering engine.
15711 * @param item item with custom (custom) cursor already set on
15712 * @param engine_only Use @c EINA_TRUE to have cursors looked for
15713 * only on those provided by the rendering engine, @c EINA_FALSE to
15714 * have them searched on the widget's theme, as well.
15716 * @note This call is of use only if you've set a custom cursor
15717 * for toolbar items, with elm_toolbar_item_cursor_set().
15719 * @note By default, cursors will only be looked for between those
15720 * provided by the rendering engine.
15724 EAPI void elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15727 * Get if the (custom) cursor for a given toolbar item is being
15728 * searched in its theme, also, or is only relying on the rendering
15731 * @param item a toolbar item
15732 * @return @c EINA_TRUE, if cursors are being looked for only on
15733 * those provided by the rendering engine, @c EINA_FALSE if they
15734 * are being searched on the widget's theme, as well.
15736 * @see elm_toolbar_item_cursor_engine_only_set(), for more details
15740 EAPI Eina_Bool elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
15743 * Change a toolbar's orientation
15744 * @param obj The toolbar object
15745 * @param vertical If @c EINA_TRUE, the toolbar is vertical
15746 * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15748 * @deprecated use elm_toolbar_horizontal_set() instead.
15750 EINA_DEPRECATED EAPI void elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
15753 * Change a toolbar's orientation
15754 * @param obj The toolbar object
15755 * @param horizontal If @c EINA_TRUE, the toolbar is horizontal
15756 * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
15759 EAPI void elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15762 * Get a toolbar's orientation
15763 * @param obj The toolbar object
15764 * @return If @c EINA_TRUE, the toolbar is vertical
15765 * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15767 * @deprecated use elm_toolbar_horizontal_get() instead.
15769 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_orientation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15772 * Get a toolbar's orientation
15773 * @param obj The toolbar object
15774 * @return If @c EINA_TRUE, the toolbar is horizontal
15775 * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
15778 EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
15784 * @defgroup Tooltips Tooltips
15786 * The Tooltip is an (internal, for now) smart object used to show a
15787 * content in a frame on mouse hover of objects(or widgets), with
15788 * tips/information about them.
15793 EAPI double elm_tooltip_delay_get(void);
15794 EAPI Eina_Bool elm_tooltip_delay_set(double delay);
15795 EAPI void elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
15796 EAPI void elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
15797 EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
15798 EAPI void elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text) EINA_ARG_NONNULL(1, 3);
15799 #define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
15800 EAPI void elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
15801 EAPI void elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15802 EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15803 EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15804 EAPI Eina_Bool elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
15805 EAPI Eina_Bool elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15812 * @defgroup Cursors Cursors
15814 * The Elementary cursor is an internal smart object used to
15815 * customize the mouse cursor displayed over objects (or
15816 * widgets). In the most common scenario, the cursor decoration
15817 * comes from the graphical @b engine Elementary is running
15818 * on. Those engines may provide different decorations for cursors,
15819 * and Elementary provides functions to choose them (think of X11
15820 * cursors, as an example).
15822 * There's also the possibility of, besides using engine provided
15823 * cursors, also use ones coming from Edje theming files. Both
15824 * globally and per widget, Elementary makes it possible for one to
15825 * make the cursors lookup to be held on engines only or on
15826 * Elementary's theme file, too. To set cursor's hot spot,
15827 * two data items should be added to cursor's theme: "hot_x" and
15828 * "hot_y", that are the offset from upper-left corner of the cursor
15829 * (coordinates 0,0).
15835 * Set the cursor to be shown when mouse is over the object
15837 * Set the cursor that will be displayed when mouse is over the
15838 * object. The object can have only one cursor set to it, so if
15839 * this function is called twice for an object, the previous set
15841 * If using X cursors, a definition of all the valid cursor names
15842 * is listed on Elementary_Cursors.h. If an invalid name is set
15843 * the default cursor will be used.
15845 * @param obj the object being set a cursor.
15846 * @param cursor the cursor name to be used.
15850 EAPI void elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
15853 * Get the cursor to be shown when mouse is over the object
15855 * @param obj an object with cursor already set.
15856 * @return the cursor name.
15860 EAPI const char *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15863 * Unset cursor for object
15865 * Unset cursor for object, and set the cursor to default if the mouse
15866 * was over this object.
15868 * @param obj Target object
15869 * @see elm_object_cursor_set()
15873 EAPI void elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15876 * Sets a different style for this object cursor.
15878 * @note before you set a style you should define a cursor with
15879 * elm_object_cursor_set()
15881 * @param obj an object with cursor already set.
15882 * @param style the theme style to use (default, transparent, ...)
15886 EAPI void elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
15889 * Get the style for this object cursor.
15891 * @param obj an object with cursor already set.
15892 * @return style the theme style in use, defaults to "default". If the
15893 * object does not have a cursor set, then NULL is returned.
15897 EAPI const char *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15900 * Set if the cursor set should be searched on the theme or should use
15901 * the provided by the engine, only.
15903 * @note before you set if should look on theme you should define a cursor
15904 * with elm_object_cursor_set(). By default it will only look for cursors
15905 * provided by the engine.
15907 * @param obj an object with cursor already set.
15908 * @param engine_only boolean to define it cursors should be looked only
15909 * between the provided by the engine or searched on widget's theme as well.
15913 EAPI void elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15916 * Get the cursor engine only usage for this object cursor.
15918 * @param obj an object with cursor already set.
15919 * @return engine_only boolean to define it cursors should be
15920 * looked only between the provided by the engine or searched on
15921 * widget's theme as well. If the object does not have a cursor
15922 * set, then EINA_FALSE is returned.
15926 EAPI Eina_Bool elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15929 * Get the configured cursor engine only usage
15931 * This gets the globally configured exclusive usage of engine cursors.
15933 * @return 1 if only engine cursors should be used
15936 EAPI int elm_cursor_engine_only_get(void);
15939 * Set the configured cursor engine only usage
15941 * This sets the globally configured exclusive usage of engine cursors.
15942 * It won't affect cursors set before changing this value.
15944 * @param engine_only If 1 only engine cursors will be enabled, if 0 will
15945 * look for them on theme before.
15946 * @return EINA_TRUE if value is valid and setted (0 or 1)
15949 EAPI Eina_Bool elm_cursor_engine_only_set(int engine_only);
15956 * @defgroup Menu Menu
15958 * @image html img/widget/menu/preview-00.png
15959 * @image latex img/widget/menu/preview-00.eps
15961 * A menu is a list of items displayed above its parent. When the menu is
15962 * showing its parent is darkened. Each item can have a sub-menu. The menu
15963 * object can be used to display a menu on a right click event, in a toolbar,
15966 * Signals that you can add callbacks for are:
15967 * @li "clicked" - the user clicked the empty space in the menu to dismiss.
15968 * event_info is NULL.
15970 * @see @ref tutorial_menu
15973 typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
15975 * @brief Add a new menu to the parent
15977 * @param parent The parent object.
15978 * @return The new object or NULL if it cannot be created.
15980 EAPI Evas_Object *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15982 * @brief Set the parent for the given menu widget
15984 * @param obj The menu object.
15985 * @param parent The new parent.
15987 EAPI void elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
15989 * @brief Get the parent for the given menu widget
15991 * @param obj The menu object.
15992 * @return The parent.
15994 * @see elm_menu_parent_set()
15996 EAPI Evas_Object *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15998 * @brief Move the menu to a new position
16000 * @param obj The menu object.
16001 * @param x The new position.
16002 * @param y The new position.
16004 * Sets the top-left position of the menu to (@p x,@p y).
16006 * @note @p x and @p y coordinates are relative to parent.
16008 EAPI void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
16010 * @brief Close a opened menu
16012 * @param obj the menu object
16015 * Hides the menu and all it's sub-menus.
16017 EAPI void elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
16019 * @brief Returns a list of @p item's items.
16021 * @param obj The menu object
16022 * @return An Eina_List* of @p item's items
16024 EAPI const Eina_List *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16026 * @brief Get the Evas_Object of an Elm_Menu_Item
16028 * @param item The menu item object.
16029 * @return The edje object containing the swallowed content
16031 * @warning Don't manipulate this object!
16033 EAPI Evas_Object *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16035 * @brief Add an item at the end of the given menu widget
16037 * @param obj The menu object.
16038 * @param parent The parent menu item (optional)
16039 * @param icon A icon display on the item. The icon will be destryed by the menu.
16040 * @param label The label of the item.
16041 * @param func Function called when the user select the item.
16042 * @param data Data sent by the callback.
16043 * @return Returns the new item.
16045 EAPI Elm_Menu_Item *elm_menu_item_add(Evas_Object *obj, Elm_Menu_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16047 * @brief Add an object swallowed in an item at the end of the given menu
16050 * @param obj The menu object.
16051 * @param parent The parent menu item (optional)
16052 * @param subobj The object to swallow
16053 * @param func Function called when the user select the item.
16054 * @param data Data sent by the callback.
16055 * @return Returns the new item.
16057 * Add an evas object as an item to the menu.
16059 EAPI Elm_Menu_Item *elm_menu_item_add_object(Evas_Object *obj, Elm_Menu_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16061 * @brief Set the label of a menu item
16063 * @param item The menu item object.
16064 * @param label The label to set for @p item
16066 * @warning Don't use this funcion on items created with
16067 * elm_menu_item_add_object() or elm_menu_item_separator_add().
16069 EAPI void elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
16071 * @brief Get the label of a menu item
16073 * @param item The menu item object.
16074 * @return The label of @p item
16076 EAPI const char *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16078 * @brief Set the icon of a menu item to the standard icon with name @p icon
16080 * @param item The menu item object.
16081 * @param icon The icon object to set for the content of @p item
16083 * Once this icon is set, any previously set icon will be deleted.
16085 EAPI void elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
16087 * @brief Get the string representation from the icon of a menu item
16089 * @param item The menu item object.
16090 * @return The string representation of @p item's icon or NULL
16092 * @see elm_menu_item_object_icon_name_set()
16094 EAPI const char *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16096 * @brief Set the content object of a menu item
16098 * @param item The menu item object
16099 * @param The content object or NULL
16100 * @return EINA_TRUE on success, else EINA_FALSE
16102 * Use this function to change the object swallowed by a menu item, deleting
16103 * any previously swallowed object.
16105 EAPI Eina_Bool elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
16107 * @brief Get the content object of a menu item
16109 * @param item The menu item object
16110 * @return The content object or NULL
16111 * @note If @p item was added with elm_menu_item_add_object, this
16112 * function will return the object passed, else it will return the
16115 * @see elm_menu_item_object_content_set()
16117 EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16119 * @brief Set the selected state of @p item.
16121 * @param item The menu item object.
16122 * @param selected The selected/unselected state of the item
16124 EAPI void elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16126 * @brief Get the selected state of @p item.
16128 * @param item The menu item object.
16129 * @return The selected/unselected state of the item
16131 * @see elm_menu_item_selected_set()
16133 EAPI Eina_Bool elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16135 * @brief Set the disabled state of @p item.
16137 * @param item The menu item object.
16138 * @param disabled The enabled/disabled state of the item
16140 EAPI void elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
16142 * @brief Get the disabled state of @p item.
16144 * @param item The menu item object.
16145 * @return The enabled/disabled state of the item
16147 * @see elm_menu_item_disabled_set()
16149 EAPI Eina_Bool elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16151 * @brief Add a separator item to menu @p obj under @p parent.
16153 * @param obj The menu object
16154 * @param parent The item to add the separator under
16155 * @return The created item or NULL on failure
16157 * This is item is a @ref Separator.
16159 EAPI Elm_Menu_Item *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
16161 * @brief Returns whether @p item is a separator.
16163 * @param item The item to check
16164 * @return If true, @p item is a separator
16166 * @see elm_menu_item_separator_add()
16168 EAPI Eina_Bool elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16170 * @brief Deletes an item from the menu.
16172 * @param item The item to delete.
16174 * @see elm_menu_item_add()
16176 EAPI void elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16178 * @brief Set the function called when a menu item is deleted.
16180 * @param item The item to set the callback on
16181 * @param func The function called
16183 * @see elm_menu_item_add()
16184 * @see elm_menu_item_del()
16186 EAPI void elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
16188 * @brief Returns the data associated with menu item @p item.
16190 * @param item The item
16191 * @return The data associated with @p item or NULL if none was set.
16193 * This is the data set with elm_menu_add() or elm_menu_item_data_set().
16195 EAPI void *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16197 * @brief Sets the data to be associated with menu item @p item.
16199 * @param item The item
16200 * @param data The data to be associated with @p item
16202 EAPI void elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
16204 * @brief Returns a list of @p item's subitems.
16206 * @param item The item
16207 * @return An Eina_List* of @p item's subitems
16209 * @see elm_menu_add()
16211 EAPI const Eina_List *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
16213 * @brief Get the position of a menu item
16215 * @param item The menu item
16216 * @return The item's index
16218 * This function returns the index position of a menu item in a menu.
16219 * For a sub-menu, this number is relative to the first item in the sub-menu.
16221 * @note Index values begin with 0
16223 EAPI unsigned int elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
16225 * @brief @brief Return a menu item's owner menu
16227 * @param item The menu item
16228 * @return The menu object owning @p item, or NULL on failure
16230 * Use this function to get the menu object owning an item.
16232 EAPI Evas_Object *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
16234 * @brief Get the selected item in the menu
16236 * @param obj The menu object
16237 * @return The selected item, or NULL if none
16239 * @see elm_menu_item_selected_get()
16240 * @see elm_menu_item_selected_set()
16242 EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16244 * @brief Get the last item in the menu
16246 * @param obj The menu object
16247 * @return The last item, or NULL if none
16249 EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16251 * @brief Get the first item in the menu
16253 * @param obj The menu object
16254 * @return The first item, or NULL if none
16256 EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
16258 * @brief Get the next item in the menu.
16260 * @param item The menu item object.
16261 * @return The item after it, or NULL if none
16263 EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16265 * @brief Get the previous item in the menu.
16267 * @param item The menu item object.
16268 * @return The item before it, or NULL if none
16270 EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
16276 * @defgroup List List
16277 * @ingroup Elementary
16279 * @image html img/widget/list/preview-00.png
16280 * @image latex img/widget/list/preview-00.eps width=\textwidth
16282 * @image html img/list.png
16283 * @image latex img/list.eps width=\textwidth
16285 * A list widget is a container whose children are displayed vertically or
16286 * horizontally, in order, and can be selected.
16287 * The list can accept only one or multiple items selection. Also has many
16288 * modes of items displaying.
16290 * A list is a very simple type of list widget. For more robust
16291 * lists, @ref Genlist should probably be used.
16293 * Smart callbacks one can listen to:
16294 * - @c "activated" - The user has double-clicked or pressed
16295 * (enter|return|spacebar) on an item. The @c event_info parameter
16296 * is the item that was activated.
16297 * - @c "clicked,double" - The user has double-clicked an item.
16298 * The @c event_info parameter is the item that was double-clicked.
16299 * - "selected" - when the user selected an item
16300 * - "unselected" - when the user unselected an item
16301 * - "longpressed" - an item in the list is long-pressed
16302 * - "edge,top" - the list is scrolled until the top edge
16303 * - "edge,bottom" - the list is scrolled until the bottom edge
16304 * - "edge,left" - the list is scrolled until the left edge
16305 * - "edge,right" - the list is scrolled until the right edge
16306 * - "language,changed" - the program's language changed
16308 * Available styles for it:
16311 * List of examples:
16312 * @li @ref list_example_01
16313 * @li @ref list_example_02
16314 * @li @ref list_example_03
16323 * @enum _Elm_List_Mode
16324 * @typedef Elm_List_Mode
16326 * Set list's resize behavior, transverse axis scroll and
16327 * items cropping. See each mode's description for more details.
16329 * @note Default value is #ELM_LIST_SCROLL.
16331 * Values <b> don't </b> work as bitmask, only one can be choosen.
16333 * @see elm_list_mode_set()
16334 * @see elm_list_mode_get()
16338 typedef enum _Elm_List_Mode
16340 ELM_LIST_COMPRESS = 0, /**< Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one won't be able to scroll it in that direction. */
16341 ELM_LIST_SCROLL, /**< Default value. Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one will be able to scroll it in that direction (large items will get cropped). */
16342 ELM_LIST_LIMIT, /**< Set a minimun size hint on the list object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a minimum size hint will be set for its transverse axis, so that the @b largest item in that direction fits well. Can have effects bounded by setting the list object's maximum size hints. */
16343 ELM_LIST_EXPAND, /**< Besides setting a minimum size on the transverse axis, just like the previous mode, will set a minimum size on the longitudinal axis too, trying to reserve space to all its children to be visible at a time. Can have effects bounded by setting the list object's maximum size hints. */
16344 ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
16347 typedef struct _Elm_List_Item Elm_List_Item; /**< Item of Elm_List. Sub-type of Elm_Widget_Item. Can be created with elm_list_item_append(), elm_list_item_prepend() and functions to add items in relative positions, like elm_list_item_insert_before(), and deleted with elm_list_item_del(). */
16350 * Add a new list widget to the given parent Elementary
16351 * (container) object.
16353 * @param parent The parent object.
16354 * @return a new list widget handle or @c NULL, on errors.
16356 * This function inserts a new list widget on the canvas.
16360 EAPI Evas_Object *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16365 * @param obj The list object
16367 * @note Call before running show() on the list object.
16368 * @warning If not called, it won't display the list properly.
16371 * li = elm_list_add(win);
16372 * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
16373 * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
16375 * evas_object_show(li);
16380 EAPI void elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
16383 * Enable or disable multiple items selection on the list object.
16385 * @param obj The list object
16386 * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
16389 * Disabled by default. If disabled, the user can select a single item of
16390 * the list each time. Selected items are highlighted on list.
16391 * If enabled, many items can be selected.
16393 * If a selected item is selected again, it will be unselected.
16395 * @see elm_list_multi_select_get()
16399 EAPI void elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16402 * Get a value whether multiple items selection is enabled or not.
16404 * @see elm_list_multi_select_set() for details.
16406 * @param obj The list object.
16407 * @return @c EINA_TRUE means multiple items selection is enabled.
16408 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16409 * @c EINA_FALSE is returned.
16413 EAPI Eina_Bool elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16416 * Set which mode to use for the list object.
16418 * @param obj The list object
16419 * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16420 * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
16422 * Set list's resize behavior, transverse axis scroll and
16423 * items cropping. See each mode's description for more details.
16425 * @note Default value is #ELM_LIST_SCROLL.
16427 * Only one can be set, if a previous one was set, it will be changed
16428 * by the new mode set. Bitmask won't work as well.
16430 * @see elm_list_mode_get()
16434 EAPI void elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16437 * Get the mode the list is at.
16439 * @param obj The list object
16440 * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
16441 * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
16443 * @note see elm_list_mode_set() for more information.
16447 EAPI Elm_List_Mode elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16450 * Enable or disable horizontal mode on the list object.
16452 * @param obj The list object.
16453 * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
16454 * disable it, i.e., to enable vertical mode.
16456 * @note Vertical mode is set by default.
16458 * On horizontal mode items are displayed on list from left to right,
16459 * instead of from top to bottom. Also, the list will scroll horizontally.
16460 * Each item will presents left icon on top and right icon, or end, at
16463 * @see elm_list_horizontal_get()
16467 EAPI void elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16470 * Get a value whether horizontal mode is enabled or not.
16472 * @param obj The list object.
16473 * @return @c EINA_TRUE means horizontal mode selection is enabled.
16474 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16475 * @c EINA_FALSE is returned.
16477 * @see elm_list_horizontal_set() for details.
16481 EAPI Eina_Bool elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16484 * Enable or disable always select mode on the list object.
16486 * @param obj The list object
16487 * @param always_select @c EINA_TRUE to enable always select mode or
16488 * @c EINA_FALSE to disable it.
16490 * @note Always select mode is disabled by default.
16492 * Default behavior of list items is to only call its callback function
16493 * the first time it's pressed, i.e., when it is selected. If a selected
16494 * item is pressed again, and multi-select is disabled, it won't call
16495 * this function (if multi-select is enabled it will unselect the item).
16497 * If always select is enabled, it will call the callback function
16498 * everytime a item is pressed, so it will call when the item is selected,
16499 * and again when a selected item is pressed.
16501 * @see elm_list_always_select_mode_get()
16502 * @see elm_list_multi_select_set()
16506 EAPI void elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16509 * Get a value whether always select mode is enabled or not, meaning that
16510 * an item will always call its callback function, even if already selected.
16512 * @param obj The list object
16513 * @return @c EINA_TRUE means horizontal mode selection is enabled.
16514 * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
16515 * @c EINA_FALSE is returned.
16517 * @see elm_list_always_select_mode_set() for details.
16521 EAPI Eina_Bool elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16524 * Set bouncing behaviour when the scrolled content reaches an edge.
16526 * Tell the internal scroller object whether it should bounce or not
16527 * when it reaches the respective edges for each axis.
16529 * @param obj The list object
16530 * @param h_bounce Whether to bounce or not in the horizontal axis.
16531 * @param v_bounce Whether to bounce or not in the vertical axis.
16533 * @see elm_scroller_bounce_set()
16537 EAPI void elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16540 * Get the bouncing behaviour of the internal scroller.
16542 * Get whether the internal scroller should bounce when the edge of each
16543 * axis is reached scrolling.
16545 * @param obj The list object.
16546 * @param h_bounce Pointer where to store the bounce state of the horizontal
16548 * @param v_bounce Pointer where to store the bounce state of the vertical
16551 * @see elm_scroller_bounce_get()
16552 * @see elm_list_bounce_set()
16556 EAPI void elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16559 * Set the scrollbar policy.
16561 * @param obj The list object
16562 * @param policy_h Horizontal scrollbar policy.
16563 * @param policy_v Vertical scrollbar policy.
16565 * This sets the scrollbar visibility policy for the given scroller.
16566 * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
16567 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
16568 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
16569 * This applies respectively for the horizontal and vertical scrollbars.
16571 * The both are disabled by default, i.e., are set to
16572 * #ELM_SCROLLER_POLICY_OFF.
16576 EAPI void elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
16579 * Get the scrollbar policy.
16581 * @see elm_list_scroller_policy_get() for details.
16583 * @param obj The list object.
16584 * @param policy_h Pointer where to store horizontal scrollbar policy.
16585 * @param policy_v Pointer where to store vertical scrollbar policy.
16589 EAPI void elm_list_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
16592 * Append a new item to the list object.
16594 * @param obj The list object.
16595 * @param label The label of the list item.
16596 * @param icon The icon object to use for the left side of the item. An
16597 * icon can be any Evas object, but usually it is an icon created
16598 * with elm_icon_add().
16599 * @param end The icon object to use for the right side of the item. An
16600 * icon can be any Evas object.
16601 * @param func The function to call when the item is clicked.
16602 * @param data The data to associate with the item for related callbacks.
16604 * @return The created item or @c NULL upon failure.
16606 * A new item will be created and appended to the list, i.e., will
16607 * be set as @b last item.
16609 * Items created with this method can be deleted with
16610 * elm_list_item_del().
16612 * Associated @p data can be properly freed when item is deleted if a
16613 * callback function is set with elm_list_item_del_cb_set().
16615 * If a function is passed as argument, it will be called everytime this item
16616 * is selected, i.e., the user clicks over an unselected item.
16617 * If always select is enabled it will call this function every time
16618 * user clicks over an item (already selected or not).
16619 * If such function isn't needed, just passing
16620 * @c NULL as @p func is enough. The same should be done for @p data.
16622 * Simple example (with no function callback or data associated):
16624 * li = elm_list_add(win);
16625 * ic = elm_icon_add(win);
16626 * elm_icon_file_set(ic, "path/to/image", NULL);
16627 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
16628 * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
16630 * evas_object_show(li);
16633 * @see elm_list_always_select_mode_set()
16634 * @see elm_list_item_del()
16635 * @see elm_list_item_del_cb_set()
16636 * @see elm_list_clear()
16637 * @see elm_icon_add()
16641 EAPI Elm_List_Item *elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16644 * Prepend a new item to the list object.
16646 * @param obj The list object.
16647 * @param label The label of the list item.
16648 * @param icon The icon object to use for the left side of the item. An
16649 * icon can be any Evas object, but usually it is an icon created
16650 * with elm_icon_add().
16651 * @param end The icon object to use for the right side of the item. An
16652 * icon can be any Evas object.
16653 * @param func The function to call when the item is clicked.
16654 * @param data The data to associate with the item for related callbacks.
16656 * @return The created item or @c NULL upon failure.
16658 * A new item will be created and prepended to the list, i.e., will
16659 * be set as @b first item.
16661 * Items created with this method can be deleted with
16662 * elm_list_item_del().
16664 * Associated @p data can be properly freed when item is deleted if a
16665 * callback function is set with elm_list_item_del_cb_set().
16667 * If a function is passed as argument, it will be called everytime this item
16668 * is selected, i.e., the user clicks over an unselected item.
16669 * If always select is enabled it will call this function every time
16670 * user clicks over an item (already selected or not).
16671 * If such function isn't needed, just passing
16672 * @c NULL as @p func is enough. The same should be done for @p data.
16674 * @see elm_list_item_append() for a simple code example.
16675 * @see elm_list_always_select_mode_set()
16676 * @see elm_list_item_del()
16677 * @see elm_list_item_del_cb_set()
16678 * @see elm_list_clear()
16679 * @see elm_icon_add()
16683 EAPI Elm_List_Item *elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
16686 * Insert a new item into the list object before item @p before.
16688 * @param obj The list object.
16689 * @param before The list item to insert before.
16690 * @param label The label of the list item.
16691 * @param icon The icon object to use for the left side of the item. An
16692 * icon can be any Evas object, but usually it is an icon created
16693 * with elm_icon_add().
16694 * @param end The icon object to use for the right side of the item. An
16695 * icon can be any Evas object.
16696 * @param func The function to call when the item is clicked.
16697 * @param data The data to associate with the item for related callbacks.
16699 * @return The created item or @c NULL upon failure.
16701 * A new item will be created and added to the list. Its position in
16702 * this list will be just before item @p before.
16704 * Items created with this method can be deleted with
16705 * elm_list_item_del().
16707 * Associated @p data can be properly freed when item is deleted if a
16708 * callback function is set with elm_list_item_del_cb_set().
16710 * If a function is passed as argument, it will be called everytime this item
16711 * is selected, i.e., the user clicks over an unselected item.
16712 * If always select is enabled it will call this function every time
16713 * user clicks over an item (already selected or not).
16714 * If such function isn't needed, just passing
16715 * @c NULL as @p func is enough. The same should be done for @p data.
16717 * @see elm_list_item_append() for a simple code example.
16718 * @see elm_list_always_select_mode_set()
16719 * @see elm_list_item_del()
16720 * @see elm_list_item_del_cb_set()
16721 * @see elm_list_clear()
16722 * @see elm_icon_add()
16726 EAPI Elm_List_Item *elm_list_item_insert_before(Evas_Object *obj, Elm_List_Item *before, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
16729 * Insert a new item into the list object after item @p after.
16731 * @param obj The list object.
16732 * @param after The list item to insert after.
16733 * @param label The label of the list item.
16734 * @param icon The icon object to use for the left side of the item. An
16735 * icon can be any Evas object, but usually it is an icon created
16736 * with elm_icon_add().
16737 * @param end The icon object to use for the right side of the item. An
16738 * icon can be any Evas object.
16739 * @param func The function to call when the item is clicked.
16740 * @param data The data to associate with the item for related callbacks.
16742 * @return The created item or @c NULL upon failure.
16744 * A new item will be created and added to the list. Its position in
16745 * this list will be just after item @p after.
16747 * Items created with this method can be deleted with
16748 * elm_list_item_del().
16750 * Associated @p data can be properly freed when item is deleted if a
16751 * callback function is set with elm_list_item_del_cb_set().
16753 * If a function is passed as argument, it will be called everytime this item
16754 * is selected, i.e., the user clicks over an unselected item.
16755 * If always select is enabled it will call this function every time
16756 * user clicks over an item (already selected or not).
16757 * If such function isn't needed, just passing
16758 * @c NULL as @p func is enough. The same should be done for @p data.
16760 * @see elm_list_item_append() for a simple code example.
16761 * @see elm_list_always_select_mode_set()
16762 * @see elm_list_item_del()
16763 * @see elm_list_item_del_cb_set()
16764 * @see elm_list_clear()
16765 * @see elm_icon_add()
16769 EAPI Elm_List_Item *elm_list_item_insert_after(Evas_Object *obj, Elm_List_Item *after, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
16772 * Insert a new item into the sorted list object.
16774 * @param obj The list object.
16775 * @param label The label of the list item.
16776 * @param icon The icon object to use for the left side of the item. An
16777 * icon can be any Evas object, but usually it is an icon created
16778 * with elm_icon_add().
16779 * @param end The icon object to use for the right side of the item. An
16780 * icon can be any Evas object.
16781 * @param func The function to call when the item is clicked.
16782 * @param data The data to associate with the item for related callbacks.
16783 * @param cmp_func The comparing function to be used to sort list
16784 * items <b>by #Elm_List_Item item handles</b>. This function will
16785 * receive two items and compare them, returning a non-negative integer
16786 * if the second item should be place after the first, or negative value
16787 * if should be placed before.
16789 * @return The created item or @c NULL upon failure.
16791 * @note This function inserts values into a list object assuming it was
16792 * sorted and the result will be sorted.
16794 * A new item will be created and added to the list. Its position in
16795 * this list will be found comparing the new item with previously inserted
16796 * items using function @p cmp_func.
16798 * Items created with this method can be deleted with
16799 * elm_list_item_del().
16801 * Associated @p data can be properly freed when item is deleted if a
16802 * callback function is set with elm_list_item_del_cb_set().
16804 * If a function is passed as argument, it will be called everytime this item
16805 * is selected, i.e., the user clicks over an unselected item.
16806 * If always select is enabled it will call this function every time
16807 * user clicks over an item (already selected or not).
16808 * If such function isn't needed, just passing
16809 * @c NULL as @p func is enough. The same should be done for @p data.
16811 * @see elm_list_item_append() for a simple code example.
16812 * @see elm_list_always_select_mode_set()
16813 * @see elm_list_item_del()
16814 * @see elm_list_item_del_cb_set()
16815 * @see elm_list_clear()
16816 * @see elm_icon_add()
16820 EAPI Elm_List_Item *elm_list_item_sorted_insert(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func) EINA_ARG_NONNULL(1);
16823 * Remove all list's items.
16825 * @param obj The list object
16827 * @see elm_list_item_del()
16828 * @see elm_list_item_append()
16832 EAPI void elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16835 * Get a list of all the list items.
16837 * @param obj The list object
16838 * @return An @c Eina_List of list items, #Elm_List_Item,
16839 * or @c NULL on failure.
16841 * @see elm_list_item_append()
16842 * @see elm_list_item_del()
16843 * @see elm_list_clear()
16847 EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16850 * Get the selected item.
16852 * @param obj The list object.
16853 * @return The selected list item.
16855 * The selected item can be unselected with function
16856 * elm_list_item_selected_set().
16858 * The selected item always will be highlighted on list.
16860 * @see elm_list_selected_items_get()
16864 EAPI Elm_List_Item *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16867 * Return a list of the currently selected list items.
16869 * @param obj The list object.
16870 * @return An @c Eina_List of list items, #Elm_List_Item,
16871 * or @c NULL on failure.
16873 * Multiple items can be selected if multi select is enabled. It can be
16874 * done with elm_list_multi_select_set().
16876 * @see elm_list_selected_item_get()
16877 * @see elm_list_multi_select_set()
16881 EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16884 * Set the selected state of an item.
16886 * @param item The list item
16887 * @param selected The selected state
16889 * This sets the selected state of the given item @p it.
16890 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
16892 * If a new item is selected the previosly selected will be unselected,
16893 * unless multiple selection is enabled with elm_list_multi_select_set().
16894 * Previoulsy selected item can be get with function
16895 * elm_list_selected_item_get().
16897 * Selected items will be highlighted.
16899 * @see elm_list_item_selected_get()
16900 * @see elm_list_selected_item_get()
16901 * @see elm_list_multi_select_set()
16905 EAPI void elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
16908 * Get whether the @p item is selected or not.
16910 * @param item The list item.
16911 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
16912 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
16914 * @see elm_list_selected_item_set() for details.
16915 * @see elm_list_item_selected_get()
16919 EAPI Eina_Bool elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
16922 * Set or unset item as a separator.
16924 * @param it The list item.
16925 * @param setting @c EINA_TRUE to set item @p it as separator or
16926 * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
16928 * Items aren't set as separator by default.
16930 * If set as separator it will display separator theme, so won't display
16933 * @see elm_list_item_separator_get()
16937 EAPI void elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
16940 * Get a value whether item is a separator or not.
16942 * @see elm_list_item_separator_set() for details.
16944 * @param it The list item.
16945 * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
16946 * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
16950 EAPI Eina_Bool elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
16953 * Show @p item in the list view.
16955 * @param item The list item to be shown.
16957 * It won't animate list until item is visible. If such behavior is wanted,
16958 * use elm_list_bring_in() intead.
16962 EAPI void elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16965 * Bring in the given item to list view.
16967 * @param item The item.
16969 * This causes list to jump to the given item @p item and show it
16970 * (by scrolling), if it is not fully visible.
16972 * This may use animation to do so and take a period of time.
16974 * If animation isn't wanted, elm_list_item_show() can be used.
16978 EAPI void elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16981 * Delete them item from the list.
16983 * @param item The item of list to be deleted.
16985 * If deleting all list items is required, elm_list_clear()
16986 * should be used instead of getting items list and deleting each one.
16988 * @see elm_list_clear()
16989 * @see elm_list_item_append()
16990 * @see elm_list_item_del_cb_set()
16994 EAPI void elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
16997 * Set the function called when a list item is freed.
16999 * @param item The item to set the callback on
17000 * @param func The function called
17002 * If there is a @p func, then it will be called prior item's memory release.
17003 * That will be called with the following arguments:
17005 * @li item's Evas object;
17008 * This way, a data associated to a list item could be properly freed.
17012 EAPI void elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
17015 * Get the data associated to the item.
17017 * @param item The list item
17018 * @return The data associated to @p item
17020 * The return value is a pointer to data associated to @p item when it was
17021 * created, with function elm_list_item_append() or similar. If no data
17022 * was passed as argument, it will return @c NULL.
17024 * @see elm_list_item_append()
17028 EAPI void *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17031 * Get the left side icon associated to the item.
17033 * @param item The list item
17034 * @return The left side icon associated to @p item
17036 * The return value is a pointer to the icon associated to @p item when
17038 * created, with function elm_list_item_append() or similar, or later
17039 * with function elm_list_item_icon_set(). If no icon
17040 * was passed as argument, it will return @c NULL.
17042 * @see elm_list_item_append()
17043 * @see elm_list_item_icon_set()
17047 EAPI Evas_Object *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17050 * Set the left side icon associated to the item.
17052 * @param item The list item
17053 * @param icon The left side icon object to associate with @p item
17055 * The icon object to use at left side of the item. An
17056 * icon can be any Evas object, but usually it is an icon created
17057 * with elm_icon_add().
17059 * Once the icon object is set, a previously set one will be deleted.
17060 * @warning Setting the same icon for two items will cause the icon to
17061 * dissapear from the first item.
17063 * If an icon was passed as argument on item creation, with function
17064 * elm_list_item_append() or similar, it will be already
17065 * associated to the item.
17067 * @see elm_list_item_append()
17068 * @see elm_list_item_icon_get()
17072 EAPI void elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
17075 * Get the right side icon associated to the item.
17077 * @param item The list item
17078 * @return The right side icon associated to @p item
17080 * The return value is a pointer to the icon associated to @p item when
17082 * created, with function elm_list_item_append() or similar, or later
17083 * with function elm_list_item_icon_set(). If no icon
17084 * was passed as argument, it will return @c NULL.
17086 * @see elm_list_item_append()
17087 * @see elm_list_item_icon_set()
17091 EAPI Evas_Object *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17094 * Set the right side icon associated to the item.
17096 * @param item The list item
17097 * @param end The right side icon object to associate with @p item
17099 * The icon object to use at right side of the item. An
17100 * icon can be any Evas object, but usually it is an icon created
17101 * with elm_icon_add().
17103 * Once the icon object is set, a previously set one will be deleted.
17104 * @warning Setting the same icon for two items will cause the icon to
17105 * dissapear from the first item.
17107 * If an icon was passed as argument on item creation, with function
17108 * elm_list_item_append() or similar, it will be already
17109 * associated to the item.
17111 * @see elm_list_item_append()
17112 * @see elm_list_item_end_get()
17116 EAPI void elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
17119 * Gets the base object of the item.
17121 * @param item The list item
17122 * @return The base object associated with @p item
17124 * Base object is the @c Evas_Object that represents that item.
17128 EAPI Evas_Object *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17129 EINA_DEPRECATED EAPI Evas_Object *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17132 * Get the label of item.
17134 * @param item The item of list.
17135 * @return The label of item.
17137 * The return value is a pointer to the label associated to @p item when
17138 * it was created, with function elm_list_item_append(), or later
17139 * with function elm_list_item_label_set. If no label
17140 * was passed as argument, it will return @c NULL.
17142 * @see elm_list_item_label_set() for more details.
17143 * @see elm_list_item_append()
17147 EAPI const char *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17150 * Set the label of item.
17152 * @param item The item of list.
17153 * @param text The label of item.
17155 * The label to be displayed by the item.
17156 * Label will be placed between left and right side icons (if set).
17158 * If a label was passed as argument on item creation, with function
17159 * elm_list_item_append() or similar, it will be already
17160 * displayed by the item.
17162 * @see elm_list_item_label_get()
17163 * @see elm_list_item_append()
17167 EAPI void elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17171 * Get the item before @p it in list.
17173 * @param it The list item.
17174 * @return The item before @p it, or @c NULL if none or on failure.
17176 * @note If it is the first item, @c NULL will be returned.
17178 * @see elm_list_item_append()
17179 * @see elm_list_items_get()
17183 EAPI Elm_List_Item *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17186 * Get the item after @p it in list.
17188 * @param it The list item.
17189 * @return The item after @p it, or @c NULL if none or on failure.
17191 * @note If it is the last item, @c NULL will be returned.
17193 * @see elm_list_item_append()
17194 * @see elm_list_items_get()
17198 EAPI Elm_List_Item *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17201 * Sets the disabled/enabled state of a list item.
17203 * @param it The item.
17204 * @param disabled The disabled state.
17206 * A disabled item cannot be selected or unselected. It will also
17207 * change its appearance (generally greyed out). This sets the
17208 * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
17213 EAPI void elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17216 * Get a value whether list item is disabled or not.
17218 * @param it The item.
17219 * @return The disabled state.
17221 * @see elm_list_item_disabled_set() for more details.
17225 EAPI Eina_Bool elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
17228 * Set the text to be shown in a given list item's tooltips.
17230 * @param item Target item.
17231 * @param text The text to set in the content.
17233 * Setup the text as tooltip to object. The item can have only one tooltip,
17234 * so any previous tooltip data - set with this function or
17235 * elm_list_item_tooltip_content_cb_set() - is removed.
17237 * @see elm_object_tooltip_text_set() for more details.
17241 EAPI void elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
17245 * @brief Disable size restrictions on an object's tooltip
17246 * @param item The tooltip's anchor object
17247 * @param disable If EINA_TRUE, size restrictions are disabled
17248 * @return EINA_FALSE on failure, EINA_TRUE on success
17250 * This function allows a tooltip to expand beyond its parant window's canvas.
17251 * It will instead be limited only by the size of the display.
17253 EAPI Eina_Bool elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
17255 * @brief Retrieve size restriction state of an object's tooltip
17256 * @param obj The tooltip's anchor object
17257 * @return If EINA_TRUE, size restrictions are disabled
17259 * This function returns whether a tooltip is allowed to expand beyond
17260 * its parant window's canvas.
17261 * It will instead be limited only by the size of the display.
17263 EAPI Eina_Bool elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17266 * Set the content to be shown in the tooltip item.
17268 * Setup the tooltip to item. The item can have only one tooltip,
17269 * so any previous tooltip data is removed. @p func(with @p data) will
17270 * be called every time that need show the tooltip and it should
17271 * return a valid Evas_Object. This object is then managed fully by
17272 * tooltip system and is deleted when the tooltip is gone.
17274 * @param item the list item being attached a tooltip.
17275 * @param func the function used to create the tooltip contents.
17276 * @param data what to provide to @a func as callback data/context.
17277 * @param del_cb called when data is not needed anymore, either when
17278 * another callback replaces @a func, the tooltip is unset with
17279 * elm_list_item_tooltip_unset() or the owner @a item
17280 * dies. This callback receives as the first parameter the
17281 * given @a data, and @c event_info is the item.
17283 * @see elm_object_tooltip_content_cb_set() for more details.
17287 EAPI void elm_list_item_tooltip_content_cb_set(Elm_List_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
17290 * Unset tooltip from item.
17292 * @param item list item to remove previously set tooltip.
17294 * Remove tooltip from item. The callback provided as del_cb to
17295 * elm_list_item_tooltip_content_cb_set() will be called to notify
17296 * it is not used anymore.
17298 * @see elm_object_tooltip_unset() for more details.
17299 * @see elm_list_item_tooltip_content_cb_set()
17303 EAPI void elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17306 * Sets a different style for this item tooltip.
17308 * @note before you set a style you should define a tooltip with
17309 * elm_list_item_tooltip_content_cb_set() or
17310 * elm_list_item_tooltip_text_set()
17312 * @param item list item with tooltip already set.
17313 * @param style the theme style to use (default, transparent, ...)
17315 * @see elm_object_tooltip_style_set() for more details.
17319 EAPI void elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17322 * Get the style for this item tooltip.
17324 * @param item list item with tooltip already set.
17325 * @return style the theme style in use, defaults to "default". If the
17326 * object does not have a tooltip set, then NULL is returned.
17328 * @see elm_object_tooltip_style_get() for more details.
17329 * @see elm_list_item_tooltip_style_set()
17333 EAPI const char *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17336 * Set the type of mouse pointer/cursor decoration to be shown,
17337 * when the mouse pointer is over the given list widget item
17339 * @param item list item to customize cursor on
17340 * @param cursor the cursor type's name
17342 * This function works analogously as elm_object_cursor_set(), but
17343 * here the cursor's changing area is restricted to the item's
17344 * area, and not the whole widget's. Note that that item cursors
17345 * have precedence over widget cursors, so that a mouse over an
17346 * item with custom cursor set will always show @b that cursor.
17348 * If this function is called twice for an object, a previously set
17349 * cursor will be unset on the second call.
17351 * @see elm_object_cursor_set()
17352 * @see elm_list_item_cursor_get()
17353 * @see elm_list_item_cursor_unset()
17357 EAPI void elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17360 * Get the type of mouse pointer/cursor decoration set to be shown,
17361 * when the mouse pointer is over the given list widget item
17363 * @param item list item with custom cursor set
17364 * @return the cursor type's name or @c NULL, if no custom cursors
17365 * were set to @p item (and on errors)
17367 * @see elm_object_cursor_get()
17368 * @see elm_list_item_cursor_set()
17369 * @see elm_list_item_cursor_unset()
17373 EAPI const char *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17376 * Unset any custom mouse pointer/cursor decoration set to be
17377 * shown, when the mouse pointer is over the given list widget
17378 * item, thus making it show the @b default cursor again.
17380 * @param item a list item
17382 * Use this call to undo any custom settings on this item's cursor
17383 * decoration, bringing it back to defaults (no custom style set).
17385 * @see elm_object_cursor_unset()
17386 * @see elm_list_item_cursor_set()
17390 EAPI void elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
17393 * Set a different @b style for a given custom cursor set for a
17396 * @param item list item with custom cursor set
17397 * @param style the <b>theme style</b> to use (e.g. @c "default",
17398 * @c "transparent", etc)
17400 * This function only makes sense when one is using custom mouse
17401 * cursor decorations <b>defined in a theme file</b>, which can have,
17402 * given a cursor name/type, <b>alternate styles</b> on it. It
17403 * works analogously as elm_object_cursor_style_set(), but here
17404 * applyed only to list item objects.
17406 * @warning Before you set a cursor style you should have definen a
17407 * custom cursor previously on the item, with
17408 * elm_list_item_cursor_set()
17410 * @see elm_list_item_cursor_engine_only_set()
17411 * @see elm_list_item_cursor_style_get()
17415 EAPI void elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
17418 * Get the current @b style set for a given list item's custom
17421 * @param item list item with custom cursor set.
17422 * @return style the cursor style in use. If the object does not
17423 * have a cursor set, then @c NULL is returned.
17425 * @see elm_list_item_cursor_style_set() for more details
17429 EAPI const char *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17432 * Set if the (custom)cursor for a given list item should be
17433 * searched in its theme, also, or should only rely on the
17434 * rendering engine.
17436 * @param item item with custom (custom) cursor already set on
17437 * @param engine_only Use @c EINA_TRUE to have cursors looked for
17438 * only on those provided by the rendering engine, @c EINA_FALSE to
17439 * have them searched on the widget's theme, as well.
17441 * @note This call is of use only if you've set a custom cursor
17442 * for list items, with elm_list_item_cursor_set().
17444 * @note By default, cursors will only be looked for between those
17445 * provided by the rendering engine.
17449 EAPI void elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17452 * Get if the (custom) cursor for a given list item is being
17453 * searched in its theme, also, or is only relying on the rendering
17456 * @param item a list item
17457 * @return @c EINA_TRUE, if cursors are being looked for only on
17458 * those provided by the rendering engine, @c EINA_FALSE if they
17459 * are being searched on the widget's theme, as well.
17461 * @see elm_list_item_cursor_engine_only_set(), for more details
17465 EAPI Eina_Bool elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
17472 * @defgroup Slider Slider
17473 * @ingroup Elementary
17475 * @image html img/widget/slider/preview-00.png
17476 * @image latex img/widget/slider/preview-00.eps width=\textwidth
17478 * The slider adds a dragable āsliderā widget for selecting the value of
17479 * something within a range.
17481 * A slider can be horizontal or vertical. It can contain an Icon and has a
17482 * primary label as well as a units label (that is formatted with floating
17483 * point values and thus accepts a printf-style format string, like
17484 * ā%1.2f unitsā. There is also an indicator string that may be somewhere
17485 * else (like on the slider itself) that also accepts a format string like
17486 * units. Label, Icon Unit and Indicator strings/objects are optional.
17488 * A slider may be inverted which means values invert, with high vales being
17489 * on the left or top and low values on the right or bottom (as opposed to
17490 * normally being low on the left or top and high on the bottom and right).
17492 * The slider should have its minimum and maximum values set by the
17493 * application with elm_slider_min_max_set() and value should also be set by
17494 * the application before use with elm_slider_value_set(). The span of the
17495 * slider is its length (horizontally or vertically). This will be scaled by
17496 * the object or applications scaling factor. At any point code can query the
17497 * slider for its value with elm_slider_value_get().
17499 * Smart callbacks one can listen to:
17500 * - "changed" - Whenever the slider value is changed by the user.
17501 * - "slider,drag,start" - dragging the slider indicator around has started.
17502 * - "slider,drag,stop" - dragging the slider indicator around has stopped.
17503 * - "delay,changed" - A short time after the value is changed by the user.
17504 * This will be called only when the user stops dragging for
17505 * a very short period or when they release their
17506 * finger/mouse, so it avoids possibly expensive reactions to
17507 * the value change.
17509 * Available styles for it:
17512 * Default contents parts of the slider widget that you can use for are:
17513 * @li "icon" - A icon of the slider
17514 * @li "end" - A end part content of the slider
17516 * Default text parts of the silder widget that you can use for are:
17517 * @li "default" - Label of the silder
17518 * Here is an example on its usage:
17519 * @li @ref slider_example
17523 * @addtogroup Slider
17528 * Add a new slider widget to the given parent Elementary
17529 * (container) object.
17531 * @param parent The parent object.
17532 * @return a new slider widget handle or @c NULL, on errors.
17534 * This function inserts a new slider widget on the canvas.
17538 EAPI Evas_Object *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17541 * Set the label of a given slider widget
17543 * @param obj The progress bar object
17544 * @param label The text label string, in UTF-8
17547 * @deprecated use elm_object_text_set() instead.
17549 EINA_DEPRECATED EAPI void elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17552 * Get the label of a given slider widget
17554 * @param obj The progressbar object
17555 * @return The text label string, in UTF-8
17558 * @deprecated use elm_object_text_get() instead.
17560 EINA_DEPRECATED EAPI const char *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17563 * Set the icon object of the slider object.
17565 * @param obj The slider object.
17566 * @param icon The icon object.
17568 * On horizontal mode, icon is placed at left, and on vertical mode,
17571 * @note Once the icon object is set, a previously set one will be deleted.
17572 * If you want to keep that old content object, use the
17573 * elm_slider_icon_unset() function.
17575 * @warning If the object being set does not have minimum size hints set,
17576 * it won't get properly displayed.
17579 * @deprecated use elm_object_part_content_set() instead.
17581 EINA_DEPRECATED EAPI void elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17584 * Unset an icon set on a given slider widget.
17586 * @param obj The slider object.
17587 * @return The icon object that was being used, if any was set, or
17588 * @c NULL, otherwise (and on errors).
17590 * On horizontal mode, icon is placed at left, and on vertical mode,
17593 * This call will unparent and return the icon object which was set
17594 * for this widget, previously, on success.
17596 * @see elm_slider_icon_set() for more details
17597 * @see elm_slider_icon_get()
17598 * @deprecated use elm_object_part_content_unset() instead.
17602 EINA_DEPRECATED EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17605 * Retrieve the icon object set for a given slider widget.
17607 * @param obj The slider object.
17608 * @return The icon object's handle, if @p obj had one set, or @c NULL,
17609 * otherwise (and on errors).
17611 * On horizontal mode, icon is placed at left, and on vertical mode,
17614 * @see elm_slider_icon_set() for more details
17615 * @see elm_slider_icon_unset()
17617 * @deprecated use elm_object_part_content_get() instead.
17621 EINA_DEPRECATED EAPI Evas_Object *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17624 * Set the end object of the slider object.
17626 * @param obj The slider object.
17627 * @param end The end object.
17629 * On horizontal mode, end is placed at left, and on vertical mode,
17630 * placed at bottom.
17632 * @note Once the icon object is set, a previously set one will be deleted.
17633 * If you want to keep that old content object, use the
17634 * elm_slider_end_unset() function.
17636 * @warning If the object being set does not have minimum size hints set,
17637 * it won't get properly displayed.
17639 * @deprecated use elm_object_part_content_set() instead.
17643 EINA_DEPRECATED EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
17646 * Unset an end object set on a given slider widget.
17648 * @param obj The slider object.
17649 * @return The end object that was being used, if any was set, or
17650 * @c NULL, otherwise (and on errors).
17652 * On horizontal mode, end is placed at left, and on vertical mode,
17653 * placed at bottom.
17655 * This call will unparent and return the icon object which was set
17656 * for this widget, previously, on success.
17658 * @see elm_slider_end_set() for more details.
17659 * @see elm_slider_end_get()
17661 * @deprecated use elm_object_part_content_unset() instead
17666 EINA_DEPRECATED EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17669 * Retrieve the end object set for a given slider widget.
17671 * @param obj The slider object.
17672 * @return The end object's handle, if @p obj had one set, or @c NULL,
17673 * otherwise (and on errors).
17675 * On horizontal mode, icon is placed at right, and on vertical mode,
17676 * placed at bottom.
17678 * @see elm_slider_end_set() for more details.
17679 * @see elm_slider_end_unset()
17682 * @deprecated use elm_object_part_content_get() instead
17687 EINA_DEPRECATED EAPI Evas_Object *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17690 * Set the (exact) length of the bar region of a given slider widget.
17692 * @param obj The slider object.
17693 * @param size The length of the slider's bar region.
17695 * This sets the minimum width (when in horizontal mode) or height
17696 * (when in vertical mode) of the actual bar area of the slider
17697 * @p obj. This in turn affects the object's minimum size. Use
17698 * this when you're not setting other size hints expanding on the
17699 * given direction (like weight and alignment hints) and you would
17700 * like it to have a specific size.
17702 * @note Icon, end, label, indicator and unit text around @p obj
17703 * will require their
17704 * own space, which will make @p obj to require more the @p size,
17707 * @see elm_slider_span_size_get()
17711 EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
17714 * Get the length set for the bar region of a given slider widget
17716 * @param obj The slider object.
17717 * @return The length of the slider's bar region.
17719 * If that size was not set previously, with
17720 * elm_slider_span_size_set(), this call will return @c 0.
17724 EAPI Evas_Coord elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17727 * Set the format string for the unit label.
17729 * @param obj The slider object.
17730 * @param format The format string for the unit display.
17732 * Unit label is displayed all the time, if set, after slider's bar.
17733 * In horizontal mode, at right and in vertical mode, at bottom.
17735 * If @c NULL, unit label won't be visible. If not it sets the format
17736 * string for the label text. To the label text is provided a floating point
17737 * value, so the label text can display up to 1 floating point value.
17738 * Note that this is optional.
17740 * Use a format string such as "%1.2f meters" for example, and it will
17741 * display values like: "3.14 meters" for a value equal to 3.14159.
17743 * Default is unit label disabled.
17745 * @see elm_slider_indicator_format_get()
17749 EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
17752 * Get the unit label format of the slider.
17754 * @param obj The slider object.
17755 * @return The unit label format string in UTF-8.
17757 * Unit label is displayed all the time, if set, after slider's bar.
17758 * In horizontal mode, at right and in vertical mode, at bottom.
17760 * @see elm_slider_unit_format_set() for more
17761 * information on how this works.
17765 EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17768 * Set the format string for the indicator label.
17770 * @param obj The slider object.
17771 * @param indicator The format string for the indicator display.
17773 * The slider may display its value somewhere else then unit label,
17774 * for example, above the slider knob that is dragged around. This function
17775 * sets the format string used for this.
17777 * If @c NULL, indicator label won't be visible. If not it sets the format
17778 * string for the label text. To the label text is provided a floating point
17779 * value, so the label text can display up to 1 floating point value.
17780 * Note that this is optional.
17782 * Use a format string such as "%1.2f meters" for example, and it will
17783 * display values like: "3.14 meters" for a value equal to 3.14159.
17785 * Default is indicator label disabled.
17787 * @see elm_slider_indicator_format_get()
17791 EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
17794 * Get the indicator label format of the slider.
17796 * @param obj The slider object.
17797 * @return The indicator label format string in UTF-8.
17799 * The slider may display its value somewhere else then unit label,
17800 * for example, above the slider knob that is dragged around. This function
17801 * gets the format string used for this.
17803 * @see elm_slider_indicator_format_set() for more
17804 * information on how this works.
17808 EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17811 * Set the format function pointer for the indicator label
17813 * @param obj The slider object.
17814 * @param func The indicator format function.
17815 * @param free_func The freeing function for the format string.
17817 * Set the callback function to format the indicator string.
17819 * @see elm_slider_indicator_format_set() for more info on how this works.
17823 EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str)) EINA_ARG_NONNULL(1);
17826 * Set the format function pointer for the units label
17828 * @param obj The slider object.
17829 * @param func The units format function.
17830 * @param free_func The freeing function for the format string.
17832 * Set the callback function to format the indicator string.
17834 * @see elm_slider_units_format_set() for more info on how this works.
17838 EAPI void elm_slider_units_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str)) EINA_ARG_NONNULL(1);
17841 * Set the orientation of a given slider widget.
17843 * @param obj The slider object.
17844 * @param horizontal Use @c EINA_TRUE to make @p obj to be
17845 * @b horizontal, @c EINA_FALSE to make it @b vertical.
17847 * Use this function to change how your slider is to be
17848 * disposed: vertically or horizontally.
17850 * By default it's displayed horizontally.
17852 * @see elm_slider_horizontal_get()
17856 EAPI void elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17859 * Retrieve the orientation of a given slider widget
17861 * @param obj The slider object.
17862 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
17863 * @c EINA_FALSE if it's @b vertical (and on errors).
17865 * @see elm_slider_horizontal_set() for more details.
17869 EAPI Eina_Bool elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17872 * Set the minimum and maximum values for the slider.
17874 * @param obj The slider object.
17875 * @param min The minimum value.
17876 * @param max The maximum value.
17878 * Define the allowed range of values to be selected by the user.
17880 * If actual value is less than @p min, it will be updated to @p min. If it
17881 * is bigger then @p max, will be updated to @p max. Actual value can be
17882 * get with elm_slider_value_get().
17884 * By default, min is equal to 0.0, and max is equal to 1.0.
17886 * @warning Maximum must be greater than minimum, otherwise behavior
17889 * @see elm_slider_min_max_get()
17893 EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
17896 * Get the minimum and maximum values of the slider.
17898 * @param obj The slider object.
17899 * @param min Pointer where to store the minimum value.
17900 * @param max Pointer where to store the maximum value.
17902 * @note If only one value is needed, the other pointer can be passed
17905 * @see elm_slider_min_max_set() for details.
17909 EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
17912 * Set the value the slider displays.
17914 * @param obj The slider object.
17915 * @param val The value to be displayed.
17917 * Value will be presented on the unit label following format specified with
17918 * elm_slider_unit_format_set() and on indicator with
17919 * elm_slider_indicator_format_set().
17921 * @warning The value must to be between min and max values. This values
17922 * are set by elm_slider_min_max_set().
17924 * @see elm_slider_value_get()
17925 * @see elm_slider_unit_format_set()
17926 * @see elm_slider_indicator_format_set()
17927 * @see elm_slider_min_max_set()
17931 EAPI void elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
17934 * Get the value displayed by the spinner.
17936 * @param obj The spinner object.
17937 * @return The value displayed.
17939 * @see elm_spinner_value_set() for details.
17943 EAPI double elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17946 * Invert a given slider widget's displaying values order
17948 * @param obj The slider object.
17949 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
17950 * @c EINA_FALSE to bring it back to default, non-inverted values.
17952 * A slider may be @b inverted, in which state it gets its
17953 * values inverted, with high vales being on the left or top and
17954 * low values on the right or bottom, as opposed to normally have
17955 * the low values on the former and high values on the latter,
17956 * respectively, for horizontal and vertical modes.
17958 * @see elm_slider_inverted_get()
17962 EAPI void elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
17965 * Get whether a given slider widget's displaying values are
17968 * @param obj The slider object.
17969 * @return @c EINA_TRUE, if @p obj has inverted values,
17970 * @c EINA_FALSE otherwise (and on errors).
17972 * @see elm_slider_inverted_set() for more details.
17976 EAPI Eina_Bool elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17979 * Set whether to enlarge slider indicator (augmented knob) or not.
17981 * @param obj The slider object.
17982 * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
17983 * let the knob always at default size.
17985 * By default, indicator will be bigger while dragged by the user.
17987 * @warning It won't display values set with
17988 * elm_slider_indicator_format_set() if you disable indicator.
17992 EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
17995 * Get whether a given slider widget's enlarging indicator or not.
17997 * @param obj The slider object.
17998 * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
17999 * @c EINA_FALSE otherwise (and on errors).
18001 * @see elm_slider_indicator_show_set() for details.
18005 EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18012 * @addtogroup Actionslider Actionslider
18014 * @image html img/widget/actionslider/preview-00.png
18015 * @image latex img/widget/actionslider/preview-00.eps
18017 * An actionslider is a switcher for 2 or 3 labels with customizable magnet
18018 * properties. The user drags and releases the indicator, to choose a label.
18020 * Labels occupy the following positions.
18025 * Positions can be enabled or disabled.
18027 * Magnets can be set on the above positions.
18029 * When the indicator is released, it will move to its nearest "enabled and magnetized" position.
18031 * @note By default all positions are set as enabled.
18033 * Signals that you can add callbacks for are:
18035 * "selected" - when user selects an enabled position (the label is passed
18038 * "pos_changed" - when the indicator reaches any of the positions("left",
18039 * "right" or "center").
18041 * See an example of actionslider usage @ref actionslider_example_page "here"
18044 typedef enum _Elm_Actionslider_Pos
18046 ELM_ACTIONSLIDER_NONE = 0,
18047 ELM_ACTIONSLIDER_LEFT = 1 << 0,
18048 ELM_ACTIONSLIDER_CENTER = 1 << 1,
18049 ELM_ACTIONSLIDER_RIGHT = 1 << 2,
18050 ELM_ACTIONSLIDER_ALL = (1 << 3) -1
18051 } Elm_Actionslider_Pos;
18054 * Add a new actionslider to the parent.
18056 * @param parent The parent object
18057 * @return The new actionslider object or NULL if it cannot be created
18059 EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18061 * Set actionslider labels.
18063 * @param obj The actionslider object
18064 * @param left_label The label to be set on the left.
18065 * @param center_label The label to be set on the center.
18066 * @param right_label The label to be set on the right.
18067 * @deprecated use elm_object_text_set() instead.
18069 EINA_DEPRECATED EAPI void elm_actionslider_labels_set(Evas_Object *obj, const char *left_label, const char *center_label, const char *right_label) EINA_ARG_NONNULL(1);
18071 * Get actionslider labels.
18073 * @param obj The actionslider object
18074 * @param left_label A char** to place the left_label of @p obj into.
18075 * @param center_label A char** to place the center_label of @p obj into.
18076 * @param right_label A char** to place the right_label of @p obj into.
18077 * @deprecated use elm_object_text_set() instead.
18079 EINA_DEPRECATED EAPI void elm_actionslider_labels_get(const Evas_Object *obj, const char **left_label, const char **center_label, const char **right_label) EINA_ARG_NONNULL(1);
18081 * Get actionslider selected label.
18083 * @param obj The actionslider object
18084 * @return The selected label
18086 EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18088 * Set actionslider indicator position.
18090 * @param obj The actionslider object.
18091 * @param pos The position of the indicator.
18093 EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18095 * Get actionslider indicator position.
18097 * @param obj The actionslider object.
18098 * @return The position of the indicator.
18100 EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18102 * Set actionslider magnet position. To make multiple positions magnets @c or
18103 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
18105 * @param obj The actionslider object.
18106 * @param pos Bit mask indicating the magnet positions.
18108 EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18110 * Get actionslider magnet position.
18112 * @param obj The actionslider object.
18113 * @return The positions with magnet property.
18115 EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18117 * Set actionslider enabled position. To set multiple positions as enabled @c or
18118 * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
18120 * @note All the positions are enabled by default.
18122 * @param obj The actionslider object.
18123 * @param pos Bit mask indicating the enabled positions.
18125 EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
18127 * Get actionslider enabled position.
18129 * @param obj The actionslider object.
18130 * @return The enabled positions.
18132 EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18134 * Set the label used on the indicator.
18136 * @param obj The actionslider object
18137 * @param label The label to be set on the indicator.
18138 * @deprecated use elm_object_text_set() instead.
18140 EINA_DEPRECATED EAPI void elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18142 * Get the label used on the indicator object.
18144 * @param obj The actionslider object
18145 * @return The indicator label
18146 * @deprecated use elm_object_text_get() instead.
18148 EINA_DEPRECATED EAPI const char *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
18154 * @defgroup Genlist Genlist
18156 * @image html img/widget/genlist/preview-00.png
18157 * @image latex img/widget/genlist/preview-00.eps
18158 * @image html img/genlist.png
18159 * @image latex img/genlist.eps
18161 * This widget aims to have more expansive list than the simple list in
18162 * Elementary that could have more flexible items and allow many more entries
18163 * while still being fast and low on memory usage. At the same time it was
18164 * also made to be able to do tree structures. But the price to pay is more
18165 * complexity when it comes to usage. If all you want is a simple list with
18166 * icons and a single label, use the normal @ref List object.
18168 * Genlist has a fairly large API, mostly because it's relatively complex,
18169 * trying to be both expansive, powerful and efficient. First we will begin
18170 * an overview on the theory behind genlist.
18172 * @section Genlist_Item_Class Genlist item classes - creating items
18174 * In order to have the ability to add and delete items on the fly, genlist
18175 * implements a class (callback) system where the application provides a
18176 * structure with information about that type of item (genlist may contain
18177 * multiple different items with different classes, states and styles).
18178 * Genlist will call the functions in this struct (methods) when an item is
18179 * "realized" (i.e., created dynamically, while the user is scrolling the
18180 * grid). All objects will simply be deleted when no longer needed with
18181 * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
18182 * following members:
18183 * - @c item_style - This is a constant string and simply defines the name
18184 * of the item style. It @b must be specified and the default should be @c
18187 * - @c func - A struct with pointers to functions that will be called when
18188 * an item is going to be actually created. All of them receive a @c data
18189 * parameter that will point to the same data passed to
18190 * elm_genlist_item_append() and related item creation functions, and a @c
18191 * obj parameter that points to the genlist object itself.
18193 * The function pointers inside @c func are @c label_get, @c icon_get, @c
18194 * state_get and @c del. The 3 first functions also receive a @c part
18195 * parameter described below. A brief description of these functions follows:
18197 * - @c label_get - The @c part parameter is the name string of one of the
18198 * existing text parts in the Edje group implementing the item's theme.
18199 * This function @b must return a strdup'()ed string, as the caller will
18200 * free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
18201 * - @c content_get - The @c part parameter is the name string of one of the
18202 * existing (content) swallow parts in the Edje group implementing the item's
18203 * theme. It must return @c NULL, when no content is desired, or a valid
18204 * object handle, otherwise. The object will be deleted by the genlist on
18205 * its deletion or when the item is "unrealized". See
18206 * #Elm_Genlist_Item_Content_Get_Cb.
18207 * - @c func.state_get - The @c part parameter is the name string of one of
18208 * the state parts in the Edje group implementing the item's theme. Return
18209 * @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
18210 * emit a signal to its theming Edje object with @c "elm,state,XXX,active"
18211 * and @c "elm" as "emission" and "source" arguments, respectively, when
18212 * the state is true (the default is false), where @c XXX is the name of
18213 * the (state) part. See #Elm_Genlist_Item_State_Get_Cb.
18214 * - @c func.del - This is intended for use when genlist items are deleted,
18215 * so any data attached to the item (e.g. its data parameter on creation)
18216 * can be deleted. See #Elm_Genlist_Item_Del_Cb.
18218 * available item styles:
18220 * - default_style - The text part is a textblock
18222 * @image html img/widget/genlist/preview-04.png
18223 * @image latex img/widget/genlist/preview-04.eps
18227 * @image html img/widget/genlist/preview-01.png
18228 * @image latex img/widget/genlist/preview-01.eps
18230 * - icon_top_text_bottom
18232 * @image html img/widget/genlist/preview-02.png
18233 * @image latex img/widget/genlist/preview-02.eps
18237 * @image html img/widget/genlist/preview-03.png
18238 * @image latex img/widget/genlist/preview-03.eps
18240 * @section Genlist_Items Structure of items
18242 * An item in a genlist can have 0 or more text labels (they can be regular
18243 * text or textblock Evas objects - that's up to the style to determine), 0
18244 * or more contents (which are simply objects swallowed into the genlist item's
18245 * theming Edje object) and 0 or more <b>boolean states</b>, which have the
18246 * behavior left to the user to define. The Edje part names for each of
18247 * these properties will be looked up, in the theme file for the genlist,
18248 * under the Edje (string) data items named @c "labels", @c "contents" and @c
18249 * "states", respectively. For each of those properties, if more than one
18250 * part is provided, they must have names listed separated by spaces in the
18251 * data fields. For the default genlist item theme, we have @b one label
18252 * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
18253 * "elm.swallow.end") and @b no state parts.
18255 * A genlist item may be at one of several styles. Elementary provides one
18256 * by default - "default", but this can be extended by system or application
18257 * custom themes/overlays/extensions (see @ref Theme "themes" for more
18260 * @section Genlist_Manipulation Editing and Navigating
18262 * Items can be added by several calls. All of them return a @ref
18263 * Elm_Genlist_Item handle that is an internal member inside the genlist.
18264 * They all take a data parameter that is meant to be used for a handle to
18265 * the applications internal data (eg the struct with the original item
18266 * data). The parent parameter is the parent genlist item this belongs to if
18267 * it is a tree or an indexed group, and NULL if there is no parent. The
18268 * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
18269 * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
18270 * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
18271 * that is able to expand and have child items. If ELM_GENLIST_ITEM_GROUP
18272 * is set then this item is group index item that is displayed at the top
18273 * until the next group comes. The func parameter is a convenience callback
18274 * that is called when the item is selected and the data parameter will be
18275 * the func_data parameter, obj be the genlist object and event_info will be
18276 * the genlist item.
18278 * elm_genlist_item_append() adds an item to the end of the list, or if
18279 * there is a parent, to the end of all the child items of the parent.
18280 * elm_genlist_item_prepend() is the same but adds to the beginning of
18281 * the list or children list. elm_genlist_item_insert_before() inserts at
18282 * item before another item and elm_genlist_item_insert_after() inserts after
18283 * the indicated item.
18285 * The application can clear the list with elm_gen_clear() which deletes
18286 * all the items in the list and elm_genlist_item_del() will delete a specific
18287 * item. elm_genlist_item_subitems_clear() will clear all items that are
18288 * children of the indicated parent item.
18290 * To help inspect list items you can jump to the item at the top of the list
18291 * with elm_genlist_first_item_get() which will return the item pointer, and
18292 * similarly elm_genlist_last_item_get() gets the item at the end of the list.
18293 * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
18294 * and previous items respectively relative to the indicated item. Using
18295 * these calls you can walk the entire item list/tree. Note that as a tree
18296 * the items are flattened in the list, so elm_genlist_item_parent_get() will
18297 * let you know which item is the parent (and thus know how to skip them if
18300 * @section Genlist_Muti_Selection Multi-selection
18302 * If the application wants multiple items to be able to be selected,
18303 * elm_genlist_multi_select_set() can enable this. If the list is
18304 * single-selection only (the default), then elm_genlist_selected_item_get()
18305 * will return the selected item, if any, or NULL if none is selected. If the
18306 * list is multi-select then elm_genlist_selected_items_get() will return a
18307 * list (that is only valid as long as no items are modified (added, deleted,
18308 * selected or unselected)).
18310 * @section Genlist_Usage_Hints Usage hints
18312 * There are also convenience functions. elm_gen_item_genlist_get() will
18313 * return the genlist object the item belongs to. elm_genlist_item_show()
18314 * will make the scroller scroll to show that specific item so its visible.
18315 * elm_genlist_item_data_get() returns the data pointer set by the item
18316 * creation functions.
18318 * If an item changes (state of boolean changes, label or contents change),
18319 * then use elm_genlist_item_update() to have genlist update the item with
18320 * the new state. Genlist will re-realize the item thus call the functions
18321 * in the _Elm_Genlist_Item_Class for that item.
18323 * To programmatically (un)select an item use elm_genlist_item_selected_set().
18324 * To get its selected state use elm_genlist_item_selected_get(). Similarly
18325 * to expand/contract an item and get its expanded state, use
18326 * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
18327 * again to make an item disabled (unable to be selected and appear
18328 * differently) use elm_genlist_item_disabled_set() to set this and
18329 * elm_genlist_item_disabled_get() to get the disabled state.
18331 * In general to indicate how the genlist should expand items horizontally to
18332 * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
18333 * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
18334 * mode means that if items are too wide to fit, the scroller will scroll
18335 * horizontally. Otherwise items are expanded to fill the width of the
18336 * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
18337 * to the viewport width and limited to that size. This can be combined with
18338 * a different style that uses edjes' ellipsis feature (cutting text off like
18341 * Items will only call their selection func and callback when first becoming
18342 * selected. Any further clicks will do nothing, unless you enable always
18343 * select with elm_gen_always_select_mode_set(). This means even if
18344 * selected, every click will make the selected callbacks be called.
18345 * elm_genlist_no_select_mode_set() will turn off the ability to select
18346 * items entirely and they will neither appear selected nor call selected
18347 * callback functions.
18349 * Remember that you can create new styles and add your own theme augmentation
18350 * per application with elm_theme_extension_add(). If you absolutely must
18351 * have a specific style that overrides any theme the user or system sets up
18352 * you can use elm_theme_overlay_add() to add such a file.
18354 * @section Genlist_Implementation Implementation
18356 * Evas tracks every object you create. Every time it processes an event
18357 * (mouse move, down, up etc.) it needs to walk through objects and find out
18358 * what event that affects. Even worse every time it renders display updates,
18359 * in order to just calculate what to re-draw, it needs to walk through many
18360 * many many objects. Thus, the more objects you keep active, the more
18361 * overhead Evas has in just doing its work. It is advisable to keep your
18362 * active objects to the minimum working set you need. Also remember that
18363 * object creation and deletion carries an overhead, so there is a
18364 * middle-ground, which is not easily determined. But don't keep massive lists
18365 * of objects you can't see or use. Genlist does this with list objects. It
18366 * creates and destroys them dynamically as you scroll around. It groups them
18367 * into blocks so it can determine the visibility etc. of a whole block at
18368 * once as opposed to having to walk the whole list. This 2-level list allows
18369 * for very large numbers of items to be in the list (tests have used up to
18370 * 2,000,000 items). Also genlist employs a queue for adding items. As items
18371 * may be different sizes, every item added needs to be calculated as to its
18372 * size and thus this presents a lot of overhead on populating the list, this
18373 * genlist employs a queue. Any item added is queued and spooled off over
18374 * time, actually appearing some time later, so if your list has many members
18375 * you may find it takes a while for them to all appear, with your process
18376 * consuming a lot of CPU while it is busy spooling.
18378 * Genlist also implements a tree structure, but it does so with callbacks to
18379 * the application, with the application filling in tree structures when
18380 * requested (allowing for efficient building of a very deep tree that could
18381 * even be used for file-management). See the above smart signal callbacks for
18384 * @section Genlist_Smart_Events Genlist smart events
18386 * Signals that you can add callbacks for are:
18387 * - @c "activated" - The user has double-clicked or pressed
18388 * (enter|return|spacebar) on an item. The @c event_info parameter is the
18389 * item that was activated.
18390 * - @c "clicked,double" - The user has double-clicked an item. The @c
18391 * event_info parameter is the item that was double-clicked.
18392 * - @c "selected" - This is called when a user has made an item selected.
18393 * The event_info parameter is the genlist item that was selected.
18394 * - @c "unselected" - This is called when a user has made an item
18395 * unselected. The event_info parameter is the genlist item that was
18397 * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
18398 * called and the item is now meant to be expanded. The event_info
18399 * parameter is the genlist item that was indicated to expand. It is the
18400 * job of this callback to then fill in the child items.
18401 * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
18402 * called and the item is now meant to be contracted. The event_info
18403 * parameter is the genlist item that was indicated to contract. It is the
18404 * job of this callback to then delete the child items.
18405 * - @c "expand,request" - This is called when a user has indicated they want
18406 * to expand a tree branch item. The callback should decide if the item can
18407 * expand (has any children) and then call elm_genlist_item_expanded_set()
18408 * appropriately to set the state. The event_info parameter is the genlist
18409 * item that was indicated to expand.
18410 * - @c "contract,request" - This is called when a user has indicated they
18411 * want to contract a tree branch item. The callback should decide if the
18412 * item can contract (has any children) and then call
18413 * elm_genlist_item_expanded_set() appropriately to set the state. The
18414 * event_info parameter is the genlist item that was indicated to contract.
18415 * - @c "realized" - This is called when the item in the list is created as a
18416 * real evas object. event_info parameter is the genlist item that was
18417 * created. The object may be deleted at any time, so it is up to the
18418 * caller to not use the object pointer from elm_genlist_item_object_get()
18419 * in a way where it may point to freed objects.
18420 * - @c "unrealized" - This is called just before an item is unrealized.
18421 * After this call content objects provided will be deleted and the item
18422 * object itself delete or be put into a floating cache.
18423 * - @c "drag,start,up" - This is called when the item in the list has been
18424 * dragged (not scrolled) up.
18425 * - @c "drag,start,down" - This is called when the item in the list has been
18426 * dragged (not scrolled) down.
18427 * - @c "drag,start,left" - This is called when the item in the list has been
18428 * dragged (not scrolled) left.
18429 * - @c "drag,start,right" - This is called when the item in the list has
18430 * been dragged (not scrolled) right.
18431 * - @c "drag,stop" - This is called when the item in the list has stopped
18433 * - @c "drag" - This is called when the item in the list is being dragged.
18434 * - @c "longpressed" - This is called when the item is pressed for a certain
18435 * amount of time. By default it's 1 second.
18436 * - @c "scroll,anim,start" - This is called when scrolling animation has
18438 * - @c "scroll,anim,stop" - This is called when scrolling animation has
18440 * - @c "scroll,drag,start" - This is called when dragging the content has
18442 * - @c "scroll,drag,stop" - This is called when dragging the content has
18444 * - @c "edge,top" - This is called when the genlist is scrolled until
18446 * - @c "edge,bottom" - This is called when the genlist is scrolled
18447 * until the bottom edge.
18448 * - @c "edge,left" - This is called when the genlist is scrolled
18449 * until the left edge.
18450 * - @c "edge,right" - This is called when the genlist is scrolled
18451 * until the right edge.
18452 * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
18454 * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
18456 * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
18458 * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
18460 * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
18461 * pinched out. "- @c multi,pinch,in" - This is called when the genlist is
18462 * multi-touch pinched in.
18463 * - @c "swipe" - This is called when the genlist is swiped.
18464 * - @c "moved" - This is called when a genlist item is moved.
18465 * - @c "language,changed" - This is called when the program's language is
18468 * @section Genlist_Examples Examples
18470 * Here is a list of examples that use the genlist, trying to show some of
18471 * its capabilities:
18472 * - @ref genlist_example_01
18473 * - @ref genlist_example_02
18474 * - @ref genlist_example_03
18475 * - @ref genlist_example_04
18476 * - @ref genlist_example_05
18480 * @addtogroup Genlist
18485 * @enum _Elm_Genlist_Item_Flags
18486 * @typedef Elm_Genlist_Item_Flags
18488 * Defines if the item is of any special type (has subitems or it's the
18489 * index of a group), or is just a simple item.
18493 typedef enum _Elm_Genlist_Item_Flags
18495 ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
18496 ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
18497 ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
18498 } Elm_Genlist_Item_Flags;
18499 typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class; /**< Genlist item class definition structs */
18500 #define Elm_Genlist_Item_Class Elm_Gen_Item_Class
18501 typedef struct _Elm_Genlist_Item Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18502 #define Elm_Genlist_Item Elm_Gen_Item /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
18503 typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
18505 * Label fetching class function for Elm_Gen_Item_Class.
18506 * @param data The data passed in the item creation function
18507 * @param obj The base widget object
18508 * @param part The part name of the swallow
18509 * @return The allocated (NOT stringshared) string to set as the label
18511 typedef char *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18513 * Content (swallowed object) fetching class function for Elm_Gen_Item_Class.
18514 * @param data The data passed in the item creation function
18515 * @param obj The base widget object
18516 * @param part The part name of the swallow
18517 * @return The content object to swallow
18519 typedef Evas_Object *(*Elm_Genlist_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18521 * State fetching class function for Elm_Gen_Item_Class.
18522 * @param data The data passed in the item creation function
18523 * @param obj The base widget object
18524 * @param part The part name of the swallow
18525 * @return The hell if I know
18527 typedef Eina_Bool (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part);
18529 * Deletion class function for Elm_Gen_Item_Class.
18530 * @param data The data passed in the item creation function
18531 * @param obj The base widget object
18533 typedef void (*Elm_Genlist_Item_Del_Cb) (void *data, Evas_Object *obj);
18536 * @struct _Elm_Genlist_Item_Class
18538 * Genlist item class definition structs.
18540 * This struct contains the style and fetching functions that will define the
18541 * contents of each item.
18543 * @see @ref Genlist_Item_Class
18545 struct _Elm_Genlist_Item_Class
18547 const char *item_style; /**< style of this class. */
18548 struct Elm_Genlist_Item_Class_Func
18550 Elm_Genlist_Item_Label_Get_Cb label_get; /**< Label fetching class function for genlist item classes.*/
18551 Elm_Genlist_Item_Content_Get_Cb content_get; /**< Content fetching class function for genlist item classes. */
18552 Elm_Genlist_Item_State_Get_Cb state_get; /**< State fetching class function for genlist item classes. */
18553 Elm_Genlist_Item_Del_Cb del; /**< Deletion class function for genlist item classes. */
18556 #define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
18558 * Add a new genlist widget to the given parent Elementary
18559 * (container) object
18561 * @param parent The parent object
18562 * @return a new genlist widget handle or @c NULL, on errors
18564 * This function inserts a new genlist widget on the canvas.
18566 * @see elm_genlist_item_append()
18567 * @see elm_genlist_item_del()
18568 * @see elm_gen_clear()
18572 EAPI Evas_Object *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18574 * Remove all items from a given genlist widget.
18576 * @param obj The genlist object
18578 * This removes (and deletes) all items in @p obj, leaving it empty.
18580 * This is deprecated. Please use elm_gen_clear() instead.
18582 * @see elm_genlist_item_del(), to remove just one item.
18586 EINA_DEPRECATED EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18588 * Enable or disable multi-selection in the genlist
18590 * @param obj The genlist object
18591 * @param multi Multi-select enable/disable. Default is disabled.
18593 * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
18594 * the list. This allows more than 1 item to be selected. To retrieve the list
18595 * of selected items, use elm_genlist_selected_items_get().
18597 * @see elm_genlist_selected_items_get()
18598 * @see elm_genlist_multi_select_get()
18602 EAPI void elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
18604 * Gets if multi-selection in genlist is enabled or disabled.
18606 * @param obj The genlist object
18607 * @return Multi-select enabled/disabled
18608 * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
18610 * @see elm_genlist_multi_select_set()
18614 EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18616 * This sets the horizontal stretching mode.
18618 * @param obj The genlist object
18619 * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
18621 * This sets the mode used for sizing items horizontally. Valid modes
18622 * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
18623 * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
18624 * the scroller will scroll horizontally. Otherwise items are expanded
18625 * to fill the width of the viewport of the scroller. If it is
18626 * ELM_LIST_LIMIT, items will be expanded to the viewport width and
18627 * limited to that size.
18629 * @see elm_genlist_horizontal_get()
18633 EAPI void elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18634 EINA_DEPRECATED EAPI void elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
18636 * Gets the horizontal stretching mode.
18638 * @param obj The genlist object
18639 * @return The mode to use
18640 * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
18642 * @see elm_genlist_horizontal_set()
18646 EAPI Elm_List_Mode elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18647 EINA_DEPRECATED EAPI Elm_List_Mode elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18649 * Set the always select mode.
18651 * @param obj The genlist object
18652 * @param always_select The always select mode (@c EINA_TRUE = on, @c
18653 * EINA_FALSE = off). Default is @c EINA_FALSE.
18655 * Items will only call their selection func and callback when first
18656 * becoming selected. Any further clicks will do nothing, unless you
18657 * enable always select with elm_gen_always_select_mode_set().
18658 * This means that, even if selected, every click will make the selected
18659 * callbacks be called.
18661 * This function is deprecated. please see elm_gen_always_select_mode_set()
18663 * @see elm_genlist_always_select_mode_get()
18667 EINA_DEPRECATED EAPI void elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
18669 * Get the always select mode.
18671 * @param obj The genlist object
18672 * @return The always select mode
18673 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18675 * @see elm_genlist_always_select_mode_set()
18679 EINA_DEPRECATED EAPI Eina_Bool elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18681 * Enable/disable the no select mode.
18683 * @param obj The genlist object
18684 * @param no_select The no select mode
18685 * (EINA_TRUE = on, EINA_FALSE = off)
18687 * This will turn off the ability to select items entirely and they
18688 * will neither appear selected nor call selected callback functions.
18690 * @see elm_genlist_no_select_mode_get()
18694 EINA_DEPRECATED EAPI void elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
18696 * Gets whether the no select mode is enabled.
18698 * @param obj The genlist object
18699 * @return The no select mode
18700 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18702 * @see elm_genlist_no_select_mode_set()
18706 EINA_DEPRECATED EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18708 * Enable/disable compress mode.
18710 * @param obj The genlist object
18711 * @param compress The compress mode
18712 * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
18714 * This will enable the compress mode where items are "compressed"
18715 * horizontally to fit the genlist scrollable viewport width. This is
18716 * special for genlist. Do not rely on
18717 * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
18718 * work as genlist needs to handle it specially.
18720 * @see elm_genlist_compress_mode_get()
18724 EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
18726 * Get whether the compress mode is enabled.
18728 * @param obj The genlist object
18729 * @return The compress mode
18730 * (@c EINA_TRUE = on, @c EINA_FALSE = off)
18732 * @see elm_genlist_compress_mode_set()
18736 EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18738 * Enable/disable height-for-width mode.
18740 * @param obj The genlist object
18741 * @param setting The height-for-width mode (@c EINA_TRUE = on,
18742 * @c EINA_FALSE = off). Default is @c EINA_FALSE.
18744 * With height-for-width mode the item width will be fixed (restricted
18745 * to a minimum of) to the list width when calculating its size in
18746 * order to allow the height to be calculated based on it. This allows,
18747 * for instance, text block to wrap lines if the Edje part is
18748 * configured with "text.min: 0 1".
18750 * @note This mode will make list resize slower as it will have to
18751 * recalculate every item height again whenever the list width
18754 * @note When height-for-width mode is enabled, it also enables
18755 * compress mode (see elm_genlist_compress_mode_set()) and
18756 * disables homogeneous (see elm_genlist_homogeneous_set()).
18760 EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
18762 * Get whether the height-for-width mode is enabled.
18764 * @param obj The genlist object
18765 * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
18770 EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18772 * Enable/disable horizontal and vertical bouncing effect.
18774 * @param obj The genlist object
18775 * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
18776 * EINA_FALSE = off). Default is @c EINA_FALSE.
18777 * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
18778 * EINA_FALSE = off). Default is @c EINA_TRUE.
18780 * This will enable or disable the scroller bouncing effect for the
18781 * genlist. See elm_scroller_bounce_set() for details.
18783 * @see elm_scroller_bounce_set()
18784 * @see elm_genlist_bounce_get()
18788 EINA_DEPRECATED EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
18790 * Get whether the horizontal and vertical bouncing effect is enabled.
18792 * @param obj The genlist object
18793 * @param h_bounce Pointer to a bool to receive if the bounce horizontally
18795 * @param v_bounce Pointer to a bool to receive if the bounce vertically
18798 * @see elm_genlist_bounce_set()
18802 EINA_DEPRECATED EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
18804 * Enable/disable homogenous mode.
18806 * @param obj The genlist object
18807 * @param homogeneous Assume the items within the genlist are of the
18808 * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
18811 * This will enable the homogeneous mode where items are of the same
18812 * height and width so that genlist may do the lazy-loading at its
18813 * maximum (which increases the performance for scrolling the list). This
18814 * implies 'compressed' mode.
18816 * @see elm_genlist_compress_mode_set()
18817 * @see elm_genlist_homogeneous_get()
18821 EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
18823 * Get whether the homogenous mode is enabled.
18825 * @param obj The genlist object
18826 * @return Assume the items within the genlist are of the same height
18827 * and width (EINA_TRUE = on, EINA_FALSE = off)
18829 * @see elm_genlist_homogeneous_set()
18833 EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18835 * Set the maximum number of items within an item block
18837 * @param obj The genlist object
18838 * @param n Maximum number of items within an item block. Default is 32.
18840 * This will configure the block count to tune to the target with
18841 * particular performance matrix.
18843 * A block of objects will be used to reduce the number of operations due to
18844 * many objects in the screen. It can determine the visibility, or if the
18845 * object has changed, it theme needs to be updated, etc. doing this kind of
18846 * calculation to the entire block, instead of per object.
18848 * The default value for the block count is enough for most lists, so unless
18849 * you know you will have a lot of objects visible in the screen at the same
18850 * time, don't try to change this.
18852 * @see elm_genlist_block_count_get()
18853 * @see @ref Genlist_Implementation
18857 EAPI void elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
18859 * Get the maximum number of items within an item block
18861 * @param obj The genlist object
18862 * @return Maximum number of items within an item block
18864 * @see elm_genlist_block_count_set()
18868 EAPI int elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18870 * Set the timeout in seconds for the longpress event.
18872 * @param obj The genlist object
18873 * @param timeout timeout in seconds. Default is 1.
18875 * This option will change how long it takes to send an event "longpressed"
18876 * after the mouse down signal is sent to the list. If this event occurs, no
18877 * "clicked" event will be sent.
18879 * @see elm_genlist_longpress_timeout_set()
18883 EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18885 * Get the timeout in seconds for the longpress event.
18887 * @param obj The genlist object
18888 * @return timeout in seconds
18890 * @see elm_genlist_longpress_timeout_get()
18894 EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18896 * Append a new item in a given genlist widget.
18898 * @param obj The genlist object
18899 * @param itc The item class for the item
18900 * @param data The item data
18901 * @param parent The parent item, or NULL if none
18902 * @param flags Item flags
18903 * @param func Convenience function called when the item is selected
18904 * @param func_data Data passed to @p func above.
18905 * @return A handle to the item added or @c NULL if not possible
18907 * This adds the given item to the end of the list or the end of
18908 * the children list if the @p parent is given.
18910 * @see elm_genlist_item_prepend()
18911 * @see elm_genlist_item_insert_before()
18912 * @see elm_genlist_item_insert_after()
18913 * @see elm_genlist_item_del()
18917 EAPI Elm_Genlist_Item *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
18919 * Prepend a new item in a given genlist widget.
18921 * @param obj The genlist object
18922 * @param itc The item class for the item
18923 * @param data The item data
18924 * @param parent The parent item, or NULL if none
18925 * @param flags Item flags
18926 * @param func Convenience function called when the item is selected
18927 * @param func_data Data passed to @p func above.
18928 * @return A handle to the item added or NULL if not possible
18930 * This adds an item to the beginning of the list or beginning of the
18931 * children of the parent if given.
18933 * @see elm_genlist_item_append()
18934 * @see elm_genlist_item_insert_before()
18935 * @see elm_genlist_item_insert_after()
18936 * @see elm_genlist_item_del()
18940 EAPI Elm_Genlist_Item *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
18942 * Insert an item before another in a genlist widget
18944 * @param obj The genlist object
18945 * @param itc The item class for the item
18946 * @param data The item data
18947 * @param before The item to place this new one before.
18948 * @param flags Item flags
18949 * @param func Convenience function called when the item is selected
18950 * @param func_data Data passed to @p func above.
18951 * @return A handle to the item added or @c NULL if not possible
18953 * This inserts an item before another in the list. It will be in the
18954 * same tree level or group as the item it is inserted before.
18956 * @see elm_genlist_item_append()
18957 * @see elm_genlist_item_prepend()
18958 * @see elm_genlist_item_insert_after()
18959 * @see elm_genlist_item_del()
18963 EAPI Elm_Genlist_Item *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item *before, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1, 5);
18965 * Insert an item after another in a genlist widget
18967 * @param obj The genlist object
18968 * @param itc The item class for the item
18969 * @param data The item data
18970 * @param after The item to place this new one after.
18971 * @param flags Item flags
18972 * @param func Convenience function called when the item is selected
18973 * @param func_data Data passed to @p func above.
18974 * @return A handle to the item added or @c NULL if not possible
18976 * This inserts an item after another in the list. It will be in the
18977 * same tree level or group as the item it is inserted after.
18979 * @see elm_genlist_item_append()
18980 * @see elm_genlist_item_prepend()
18981 * @see elm_genlist_item_insert_before()
18982 * @see elm_genlist_item_del()
18986 EAPI Elm_Genlist_Item *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item *after, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1, 5);
18988 * Insert a new item into the sorted genlist object
18990 * @param obj The genlist object
18991 * @param itc The item class for the item
18992 * @param data The item data
18993 * @param parent The parent item, or NULL if none
18994 * @param flags Item flags
18995 * @param comp The function called for the sort
18996 * @param func Convenience function called when item selected
18997 * @param func_data Data passed to @p func above.
18998 * @return A handle to the item added or NULL if not possible
19002 EAPI Elm_Genlist_Item *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func,const void *func_data);
19003 EAPI Elm_Genlist_Item *elm_genlist_item_direct_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
19004 /* operations to retrieve existing items */
19006 * Get the selectd item in the genlist.
19008 * @param obj The genlist object
19009 * @return The selected item, or NULL if none is selected.
19011 * This gets the selected item in the list (if multi-selection is enabled, only
19012 * the item that was first selected in the list is returned - which is not very
19013 * useful, so see elm_genlist_selected_items_get() for when multi-selection is
19016 * If no item is selected, NULL is returned.
19018 * @see elm_genlist_selected_items_get()
19022 EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19024 * Get a list of selected items in the genlist.
19026 * @param obj The genlist object
19027 * @return The list of selected items, or NULL if none are selected.
19029 * It returns a list of the selected items. This list pointer is only valid so
19030 * long as the selection doesn't change (no items are selected or unselected, or
19031 * unselected implicitly by deletion). The list contains Elm_Genlist_Item
19032 * pointers. The order of the items in this list is the order which they were
19033 * selected, i.e. the first item in this list is the first item that was
19034 * selected, and so on.
19036 * @note If not in multi-select mode, consider using function
19037 * elm_genlist_selected_item_get() instead.
19039 * @see elm_genlist_multi_select_set()
19040 * @see elm_genlist_selected_item_get()
19044 EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19046 * Get the mode item style of items in the genlist
19047 * @param obj The genlist object
19048 * @return The mode item style string, or NULL if none is specified
19050 * This is a constant string and simply defines the name of the
19051 * style that will be used for mode animations. It can be
19052 * @c NULL if you don't plan to use Genlist mode. See
19053 * elm_genlist_item_mode_set() for more info.
19057 EAPI const char *elm_genlist_mode_item_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19059 * Set the mode item style of items in the genlist
19060 * @param obj The genlist object
19061 * @param style The mode item style string, or NULL if none is desired
19063 * This is a constant string and simply defines the name of the
19064 * style that will be used for mode animations. It can be
19065 * @c NULL if you don't plan to use Genlist mode. See
19066 * elm_genlist_item_mode_set() for more info.
19070 EAPI void elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
19072 * Get a list of realized items in genlist
19074 * @param obj The genlist object
19075 * @return The list of realized items, nor NULL if none are realized.
19077 * This returns a list of the realized items in the genlist. The list
19078 * contains Elm_Genlist_Item pointers. The list must be freed by the
19079 * caller when done with eina_list_free(). The item pointers in the
19080 * list are only valid so long as those items are not deleted or the
19081 * genlist is not deleted.
19083 * @see elm_genlist_realized_items_update()
19087 EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19089 * Get the item that is at the x, y canvas coords.
19091 * @param obj The gelinst object.
19092 * @param x The input x coordinate
19093 * @param y The input y coordinate
19094 * @param posret The position relative to the item returned here
19095 * @return The item at the coordinates or NULL if none
19097 * This returns the item at the given coordinates (which are canvas
19098 * relative, not object-relative). If an item is at that coordinate,
19099 * that item handle is returned, and if @p posret is not NULL, the
19100 * integer pointed to is set to a value of -1, 0 or 1, depending if
19101 * the coordinate is on the upper portion of that item (-1), on the
19102 * middle section (0) or on the lower part (1). If NULL is returned as
19103 * an item (no item found there), then posret may indicate -1 or 1
19104 * based if the coordinate is above or below all items respectively in
19109 EAPI Elm_Genlist_Item *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret) EINA_ARG_NONNULL(1);
19111 * Get the first item in the genlist
19113 * This returns the first item in the list.
19115 * @param obj The genlist object
19116 * @return The first item, or NULL if none
19120 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19122 * Get the last item in the genlist
19124 * This returns the last item in the list.
19126 * @return The last item, or NULL if none
19130 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19132 * Set the scrollbar policy
19134 * @param obj The genlist object
19135 * @param policy_h Horizontal scrollbar policy.
19136 * @param policy_v Vertical scrollbar policy.
19138 * This sets the scrollbar visibility policy for the given genlist
19139 * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
19140 * made visible if it is needed, and otherwise kept hidden.
19141 * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
19142 * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
19143 * respectively for the horizontal and vertical scrollbars. Default is
19144 * #ELM_SMART_SCROLLER_POLICY_AUTO
19146 * @see elm_genlist_scroller_policy_get()
19150 EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
19152 * Get the scrollbar policy
19154 * @param obj The genlist object
19155 * @param policy_h Pointer to store the horizontal scrollbar policy.
19156 * @param policy_v Pointer to store the vertical scrollbar policy.
19158 * @see elm_genlist_scroller_policy_set()
19162 EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
19164 * Get the @b next item in a genlist widget's internal list of items,
19165 * given a handle to one of those items.
19167 * @param item The genlist item to fetch next from
19168 * @return The item after @p item, or @c NULL if there's none (and
19171 * This returns the item placed after the @p item, on the container
19174 * @see elm_genlist_item_prev_get()
19178 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19180 * Get the @b previous item in a genlist widget's internal list of items,
19181 * given a handle to one of those items.
19183 * @param item The genlist item to fetch previous from
19184 * @return The item before @p item, or @c NULL if there's none (and
19187 * This returns the item placed before the @p item, on the container
19190 * @see elm_genlist_item_next_get()
19194 EINA_DEPRECATED EAPI Elm_Genlist_Item *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19196 * Get the genlist object's handle which contains a given genlist
19199 * @param item The item to fetch the container from
19200 * @return The genlist (parent) object
19202 * This returns the genlist object itself that an item belongs to.
19204 * This function is deprecated. Please use elm_gen_item_widget_get()
19208 EINA_DEPRECATED EAPI Evas_Object *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19210 * Get the parent item of the given item
19212 * @param it The item
19213 * @return The parent of the item or @c NULL if it has no parent.
19215 * This returns the item that was specified as parent of the item @p it on
19216 * elm_genlist_item_append() and insertion related functions.
19220 EAPI Elm_Genlist_Item *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19222 * Remove all sub-items (children) of the given item
19224 * @param it The item
19226 * This removes all items that are children (and their descendants) of the
19227 * given item @p it.
19229 * @see elm_genlist_clear()
19230 * @see elm_genlist_item_del()
19234 EAPI void elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19236 * Set whether a given genlist item is selected or not
19238 * @param it The item
19239 * @param selected Use @c EINA_TRUE, to make it selected, @c
19240 * EINA_FALSE to make it unselected
19242 * This sets the selected state of an item. If multi selection is
19243 * not enabled on the containing genlist and @p selected is @c
19244 * EINA_TRUE, any other previously selected items will get
19245 * unselected in favor of this new one.
19247 * @see elm_genlist_item_selected_get()
19251 EINA_DEPRECATED EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
19253 * Get whether a given genlist item is selected or not
19255 * @param it The item
19256 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
19258 * @see elm_genlist_item_selected_set() for more details
19262 EINA_DEPRECATED EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19264 * Sets the expanded state of an item.
19266 * @param it The item
19267 * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
19269 * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
19272 * The theme will respond to this change visually, and a signal "expanded" or
19273 * "contracted" will be sent from the genlist with a pointer to the item that
19274 * has been expanded/contracted.
19276 * Calling this function won't show or hide any child of this item (if it is
19277 * a parent). You must manually delete and create them on the callbacks fo
19278 * the "expanded" or "contracted" signals.
19280 * @see elm_genlist_item_expanded_get()
19284 EAPI void elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
19286 * Get the expanded state of an item
19288 * @param it The item
19289 * @return The expanded state
19291 * This gets the expanded state of an item.
19293 * @see elm_genlist_item_expanded_set()
19297 EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19299 * Get the depth of expanded item
19301 * @param it The genlist item object
19302 * @return The depth of expanded item
19306 EAPI int elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19308 * Set whether a given genlist item is disabled or not.
19310 * @param it The item
19311 * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
19312 * to enable it back.
19314 * A disabled item cannot be selected or unselected. It will also
19315 * change its appearance, to signal the user it's disabled.
19317 * @see elm_genlist_item_disabled_get()
19321 EAPI void elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
19323 * Get whether a given genlist item is disabled or not.
19325 * @param it The item
19326 * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
19329 * @see elm_genlist_item_disabled_set() for more details
19333 EAPI Eina_Bool elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19335 * Sets the display only state of an item.
19337 * @param it The item
19338 * @param display_only @c EINA_TRUE if the item is display only, @c
19339 * EINA_FALSE otherwise.
19341 * A display only item cannot be selected or unselected. It is for
19342 * display only and not selecting or otherwise clicking, dragging
19343 * etc. by the user, thus finger size rules will not be applied to
19346 * It's good to set group index items to display only state.
19348 * @see elm_genlist_item_display_only_get()
19352 EAPI void elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
19354 * Get the display only state of an item
19356 * @param it The item
19357 * @return @c EINA_TRUE if the item is display only, @c
19358 * EINA_FALSE otherwise.
19360 * @see elm_genlist_item_display_only_set()
19364 EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19366 * Show the portion of a genlist's internal list containing a given
19367 * item, immediately.
19369 * @param it The item to display
19371 * This causes genlist to jump to the given item @p it and show it (by
19372 * immediately scrolling to that position), if it is not fully visible.
19374 * @see elm_genlist_item_bring_in()
19375 * @see elm_genlist_item_top_show()
19376 * @see elm_genlist_item_middle_show()
19380 EAPI void elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19382 * Animatedly bring in, to the visible are of a genlist, a given
19385 * @param it The item to display
19387 * This causes genlist to jump to the given item @p it and show it (by
19388 * animatedly scrolling), if it is not fully visible. This may use animation
19389 * to do so and take a period of time
19391 * @see elm_genlist_item_show()
19392 * @see elm_genlist_item_top_bring_in()
19393 * @see elm_genlist_item_middle_bring_in()
19397 EAPI void elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19399 * Show the portion of a genlist's internal list containing a given
19400 * item, immediately.
19402 * @param it The item to display
19404 * This causes genlist to jump to the given item @p it and show it (by
19405 * immediately scrolling to that position), if it is not fully visible.
19407 * The item will be positioned at the top of the genlist viewport.
19409 * @see elm_genlist_item_show()
19410 * @see elm_genlist_item_top_bring_in()
19414 EAPI void elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19416 * Animatedly bring in, to the visible are of a genlist, a given
19419 * @param it The item
19421 * This causes genlist to jump to the given item @p it and show it (by
19422 * animatedly scrolling), if it is not fully visible. This may use animation
19423 * to do so and take a period of time
19425 * The item will be positioned at the top of the genlist viewport.
19427 * @see elm_genlist_item_bring_in()
19428 * @see elm_genlist_item_top_show()
19432 EAPI void elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19434 * Show the portion of a genlist's internal list containing a given
19435 * item, immediately.
19437 * @param it The item to display
19439 * This causes genlist to jump to the given item @p it and show it (by
19440 * immediately scrolling to that position), if it is not fully visible.
19442 * The item will be positioned at the middle of the genlist viewport.
19444 * @see elm_genlist_item_show()
19445 * @see elm_genlist_item_middle_bring_in()
19449 EAPI void elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19451 * Animatedly bring in, to the visible are of a genlist, a given
19454 * @param it The item
19456 * This causes genlist to jump to the given item @p it and show it (by
19457 * animatedly scrolling), if it is not fully visible. This may use animation
19458 * to do so and take a period of time
19460 * The item will be positioned at the middle of the genlist viewport.
19462 * @see elm_genlist_item_bring_in()
19463 * @see elm_genlist_item_middle_show()
19467 EAPI void elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19469 * Remove a genlist item from the its parent, deleting it.
19471 * @param item The item to be removed.
19472 * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
19474 * @see elm_genlist_clear(), to remove all items in a genlist at
19479 EAPI void elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19481 * Return the data associated to a given genlist item
19483 * @param item The genlist item.
19484 * @return the data associated to this item.
19486 * This returns the @c data value passed on the
19487 * elm_genlist_item_append() and related item addition calls.
19489 * @see elm_genlist_item_append()
19490 * @see elm_genlist_item_data_set()
19494 EAPI void *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19496 * Set the data associated to a given genlist item
19498 * @param item The genlist item
19499 * @param data The new data pointer to set on it
19501 * This @b overrides the @c data value passed on the
19502 * elm_genlist_item_append() and related item addition calls. This
19503 * function @b won't call elm_genlist_item_update() automatically,
19504 * so you'd issue it afterwards if you want to hove the item
19505 * updated to reflect the that new data.
19507 * @see elm_genlist_item_data_get()
19511 EAPI void elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
19513 * Tells genlist to "orphan" icons fetchs by the item class
19515 * @param it The item
19517 * This instructs genlist to release references to icons in the item,
19518 * meaning that they will no longer be managed by genlist and are
19519 * floating "orphans" that can be re-used elsewhere if the user wants
19524 EAPI void elm_genlist_item_contents_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19525 EINA_DEPRECATED EAPI void elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19527 * Get the real Evas object created to implement the view of a
19528 * given genlist item
19530 * @param item The genlist item.
19531 * @return the Evas object implementing this item's view.
19533 * This returns the actual Evas object used to implement the
19534 * specified genlist item's view. This may be @c NULL, as it may
19535 * not have been created or may have been deleted, at any time, by
19536 * the genlist. <b>Do not modify this object</b> (move, resize,
19537 * show, hide, etc.), as the genlist is controlling it. This
19538 * function is for querying, emitting custom signals or hooking
19539 * lower level callbacks for events on that object. Do not delete
19540 * this object under any circumstances.
19542 * @see elm_genlist_item_data_get()
19546 EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19548 * Update the contents of an item
19550 * @param it The item
19552 * This updates an item by calling all the item class functions again
19553 * to get the icons, labels and states. Use this when the original
19554 * item data has changed and the changes are desired to be reflected.
19556 * Use elm_genlist_realized_items_update() to update all already realized
19559 * @see elm_genlist_realized_items_update()
19563 EAPI void elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19565 * Update the item class of an item
19567 * @param it The item
19568 * @param itc The item class for the item
19570 * This sets another class fo the item, changing the way that it is
19571 * displayed. After changing the item class, elm_genlist_item_update() is
19572 * called on the item @p it.
19576 EAPI void elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
19577 EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
19579 * Set the text to be shown in a given genlist item's tooltips.
19581 * @param item The genlist item
19582 * @param text The text to set in the content
19584 * This call will setup the text to be used as tooltip to that item
19585 * (analogous to elm_object_tooltip_text_set(), but being item
19586 * tooltips with higher precedence than object tooltips). It can
19587 * have only one tooltip at a time, so any previous tooltip data
19588 * will get removed.
19590 * In order to set an icon or something else as a tooltip, look at
19591 * elm_genlist_item_tooltip_content_cb_set().
19595 EAPI void elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
19597 * Set the content to be shown in a given genlist item's tooltips
19599 * @param item The genlist item.
19600 * @param func The function returning the tooltip contents.
19601 * @param data What to provide to @a func as callback data/context.
19602 * @param del_cb Called when data is not needed anymore, either when
19603 * another callback replaces @p func, the tooltip is unset with
19604 * elm_genlist_item_tooltip_unset() or the owner @p item
19605 * dies. This callback receives as its first parameter the
19606 * given @p data, being @c event_info the item handle.
19608 * This call will setup the tooltip's contents to @p item
19609 * (analogous to elm_object_tooltip_content_cb_set(), but being
19610 * item tooltips with higher precedence than object tooltips). It
19611 * can have only one tooltip at a time, so any previous tooltip
19612 * content will get removed. @p func (with @p data) will be called
19613 * every time Elementary needs to show the tooltip and it should
19614 * return a valid Evas object, which will be fully managed by the
19615 * tooltip system, getting deleted when the tooltip is gone.
19617 * In order to set just a text as a tooltip, look at
19618 * elm_genlist_item_tooltip_text_set().
19622 EAPI void elm_genlist_item_tooltip_content_cb_set(Elm_Genlist_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
19624 * Unset a tooltip from a given genlist item
19626 * @param item genlist item to remove a previously set tooltip from.
19628 * This call removes any tooltip set on @p item. The callback
19629 * provided as @c del_cb to
19630 * elm_genlist_item_tooltip_content_cb_set() will be called to
19631 * notify it is not used anymore (and have resources cleaned, if
19634 * @see elm_genlist_item_tooltip_content_cb_set()
19638 EAPI void elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19640 * Set a different @b style for a given genlist item's tooltip.
19642 * @param item genlist item with tooltip set
19643 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
19644 * "default", @c "transparent", etc)
19646 * Tooltips can have <b>alternate styles</b> to be displayed on,
19647 * which are defined by the theme set on Elementary. This function
19648 * works analogously as elm_object_tooltip_style_set(), but here
19649 * applied only to genlist item objects. The default style for
19650 * tooltips is @c "default".
19652 * @note before you set a style you should define a tooltip with
19653 * elm_genlist_item_tooltip_content_cb_set() or
19654 * elm_genlist_item_tooltip_text_set()
19656 * @see elm_genlist_item_tooltip_style_get()
19660 EAPI void elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19662 * Get the style set a given genlist item's tooltip.
19664 * @param item genlist item with tooltip already set on.
19665 * @return style the theme style in use, which defaults to
19666 * "default". If the object does not have a tooltip set,
19667 * then @c NULL is returned.
19669 * @see elm_genlist_item_tooltip_style_set() for more details
19673 EAPI const char *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19675 * @brief Disable size restrictions on an object's tooltip
19676 * @param item The tooltip's anchor object
19677 * @param disable If EINA_TRUE, size restrictions are disabled
19678 * @return EINA_FALSE on failure, EINA_TRUE on success
19680 * This function allows a tooltip to expand beyond its parant window's canvas.
19681 * It will instead be limited only by the size of the display.
19683 EAPI Eina_Bool elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
19685 * @brief Retrieve size restriction state of an object's tooltip
19686 * @param item The tooltip's anchor object
19687 * @return If EINA_TRUE, size restrictions are disabled
19689 * This function returns whether a tooltip is allowed to expand beyond
19690 * its parant window's canvas.
19691 * It will instead be limited only by the size of the display.
19693 EAPI Eina_Bool elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
19695 * Set the type of mouse pointer/cursor decoration to be shown,
19696 * when the mouse pointer is over the given genlist widget item
19698 * @param item genlist item to customize cursor on
19699 * @param cursor the cursor type's name
19701 * This function works analogously as elm_object_cursor_set(), but
19702 * here the cursor's changing area is restricted to the item's
19703 * area, and not the whole widget's. Note that that item cursors
19704 * have precedence over widget cursors, so that a mouse over @p
19705 * item will always show cursor @p type.
19707 * If this function is called twice for an object, a previously set
19708 * cursor will be unset on the second call.
19710 * @see elm_object_cursor_set()
19711 * @see elm_genlist_item_cursor_get()
19712 * @see elm_genlist_item_cursor_unset()
19716 EAPI void elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
19718 * Get the type of mouse pointer/cursor decoration set to be shown,
19719 * when the mouse pointer is over the given genlist widget item
19721 * @param item genlist item with custom cursor set
19722 * @return the cursor type's name or @c NULL, if no custom cursors
19723 * were set to @p item (and on errors)
19725 * @see elm_object_cursor_get()
19726 * @see elm_genlist_item_cursor_set() for more details
19727 * @see elm_genlist_item_cursor_unset()
19731 EAPI const char *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19733 * Unset any custom mouse pointer/cursor decoration set to be
19734 * shown, when the mouse pointer is over the given genlist widget
19735 * item, thus making it show the @b default cursor again.
19737 * @param item a genlist item
19739 * Use this call to undo any custom settings on this item's cursor
19740 * decoration, bringing it back to defaults (no custom style set).
19742 * @see elm_object_cursor_unset()
19743 * @see elm_genlist_item_cursor_set() for more details
19747 EAPI void elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19749 * Set a different @b style for a given custom cursor set for a
19752 * @param item genlist item with custom cursor set
19753 * @param style the <b>theme style</b> to use (e.g. @c "default",
19754 * @c "transparent", etc)
19756 * This function only makes sense when one is using custom mouse
19757 * cursor decorations <b>defined in a theme file</b> , which can
19758 * have, given a cursor name/type, <b>alternate styles</b> on
19759 * it. It works analogously as elm_object_cursor_style_set(), but
19760 * here applied only to genlist item objects.
19762 * @warning Before you set a cursor style you should have defined a
19763 * custom cursor previously on the item, with
19764 * elm_genlist_item_cursor_set()
19766 * @see elm_genlist_item_cursor_engine_only_set()
19767 * @see elm_genlist_item_cursor_style_get()
19771 EAPI void elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
19773 * Get the current @b style set for a given genlist item's custom
19776 * @param item genlist item with custom cursor set.
19777 * @return style the cursor style in use. If the object does not
19778 * have a cursor set, then @c NULL is returned.
19780 * @see elm_genlist_item_cursor_style_set() for more details
19784 EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19786 * Set if the (custom) cursor for a given genlist item should be
19787 * searched in its theme, also, or should only rely on the
19788 * rendering engine.
19790 * @param item item with custom (custom) cursor already set on
19791 * @param engine_only Use @c EINA_TRUE to have cursors looked for
19792 * only on those provided by the rendering engine, @c EINA_FALSE to
19793 * have them searched on the widget's theme, as well.
19795 * @note This call is of use only if you've set a custom cursor
19796 * for genlist items, with elm_genlist_item_cursor_set().
19798 * @note By default, cursors will only be looked for between those
19799 * provided by the rendering engine.
19803 EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
19805 * Get if the (custom) cursor for a given genlist item is being
19806 * searched in its theme, also, or is only relying on the rendering
19809 * @param item a genlist item
19810 * @return @c EINA_TRUE, if cursors are being looked for only on
19811 * those provided by the rendering engine, @c EINA_FALSE if they
19812 * are being searched on the widget's theme, as well.
19814 * @see elm_genlist_item_cursor_engine_only_set(), for more details
19818 EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
19820 * Update the contents of all realized items.
19822 * @param obj The genlist object.
19824 * This updates all realized items by calling all the item class functions again
19825 * to get the icons, labels and states. Use this when the original
19826 * item data has changed and the changes are desired to be reflected.
19828 * To update just one item, use elm_genlist_item_update().
19830 * @see elm_genlist_realized_items_get()
19831 * @see elm_genlist_item_update()
19835 EAPI void elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
19837 * Activate a genlist mode on an item
19839 * @param item The genlist item
19840 * @param mode Mode name
19841 * @param mode_set Boolean to define set or unset mode.
19843 * A genlist mode is a different way of selecting an item. Once a mode is
19844 * activated on an item, any other selected item is immediately unselected.
19845 * This feature provides an easy way of implementing a new kind of animation
19846 * for selecting an item, without having to entirely rewrite the item style
19847 * theme. However, the elm_genlist_selected_* API can't be used to get what
19848 * item is activate for a mode.
19850 * The current item style will still be used, but applying a genlist mode to
19851 * an item will select it using a different kind of animation.
19853 * The current active item for a mode can be found by
19854 * elm_genlist_mode_item_get().
19856 * The characteristics of genlist mode are:
19857 * - Only one mode can be active at any time, and for only one item.
19858 * - Genlist handles deactivating other items when one item is activated.
19859 * - A mode is defined in the genlist theme (edc), and more modes can easily
19861 * - A mode style and the genlist item style are different things. They
19862 * can be combined to provide a default style to the item, with some kind
19863 * of animation for that item when the mode is activated.
19865 * When a mode is activated on an item, a new view for that item is created.
19866 * The theme of this mode defines the animation that will be used to transit
19867 * the item from the old view to the new view. This second (new) view will be
19868 * active for that item while the mode is active on the item, and will be
19869 * destroyed after the mode is totally deactivated from that item.
19871 * @see elm_genlist_mode_get()
19872 * @see elm_genlist_mode_item_get()
19876 EAPI void elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
19878 * Get the last (or current) genlist mode used.
19880 * @param obj The genlist object
19882 * This function just returns the name of the last used genlist mode. It will
19883 * be the current mode if it's still active.
19885 * @see elm_genlist_item_mode_set()
19886 * @see elm_genlist_mode_item_get()
19890 EAPI const char *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19892 * Get active genlist mode item
19894 * @param obj The genlist object
19895 * @return The active item for that current mode. Or @c NULL if no item is
19896 * activated with any mode.
19898 * This function returns the item that was activated with a mode, by the
19899 * function elm_genlist_item_mode_set().
19901 * @see elm_genlist_item_mode_set()
19902 * @see elm_genlist_mode_get()
19906 EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19911 * @param obj The genlist object
19912 * @param reorder_mode The reorder mode
19913 * (EINA_TRUE = on, EINA_FALSE = off)
19917 EAPI void elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
19920 * Get the reorder mode
19922 * @param obj The genlist object
19923 * @return The reorder mode
19924 * (EINA_TRUE = on, EINA_FALSE = off)
19928 EAPI Eina_Bool elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19935 * @defgroup Check Check
19937 * @image html img/widget/check/preview-00.png
19938 * @image latex img/widget/check/preview-00.eps
19939 * @image html img/widget/check/preview-01.png
19940 * @image latex img/widget/check/preview-01.eps
19941 * @image html img/widget/check/preview-02.png
19942 * @image latex img/widget/check/preview-02.eps
19944 * @brief The check widget allows for toggling a value between true and
19947 * Check objects are a lot like radio objects in layout and functionality
19948 * except they do not work as a group, but independently and only toggle the
19949 * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
19950 * the boolean state (1 for true, 0 for false), and elm_check_state_get()
19951 * returns the current state. For convenience, like the radio objects, you
19952 * can set a pointer to a boolean directly with elm_check_state_pointer_set()
19953 * for it to modify.
19955 * Signals that you can add callbacks for are:
19956 * "changed" - This is called whenever the user changes the state of one of
19957 * the check object(event_info is NULL).
19959 * Default contents parts of the check widget that you can use for are:
19960 * @li "icon" - A icon of the check
19962 * Default text parts of the check widget that you can use for are:
19963 * @li "elm.text" - Label of the check
19965 * @ref tutorial_check should give you a firm grasp of how to use this widget
19970 * @brief Add a new Check object
19972 * @param parent The parent object
19973 * @return The new object or NULL if it cannot be created
19975 EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19977 * @brief Set the text label of the check object
19979 * @param obj The check object
19980 * @param label The text label string in UTF-8
19982 * @deprecated use elm_object_text_set() instead.
19984 EINA_DEPRECATED EAPI void elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19986 * @brief Get the text label of the check object
19988 * @param obj The check object
19989 * @return The text label string in UTF-8
19991 * @deprecated use elm_object_text_get() instead.
19993 EINA_DEPRECATED EAPI const char *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19995 * @brief Set the icon object of the check object
19997 * @param obj The check object
19998 * @param icon The icon object
20000 * Once the icon object is set, a previously set one will be deleted.
20001 * If you want to keep that old content object, use the
20002 * elm_object_content_unset() function.
20004 * @deprecated use elm_object_part_content_set() instead.
20007 EINA_DEPRECATED EAPI void elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20009 * @brief Get the icon object of the check object
20011 * @param obj The check object
20012 * @return The icon object
20014 * @deprecated use elm_object_part_content_get() instead.
20017 EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20019 * @brief Unset the icon used for the check object
20021 * @param obj The check object
20022 * @return The icon object that was being used
20024 * Unparent and return the icon object which was set for this widget.
20026 * @deprecated use elm_object_part_content_unset() instead.
20029 EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20031 * @brief Set the on/off state of the check object
20033 * @param obj The check object
20034 * @param state The state to use (1 == on, 0 == off)
20036 * This sets the state of the check. If set
20037 * with elm_check_state_pointer_set() the state of that variable is also
20038 * changed. Calling this @b doesn't cause the "changed" signal to be emited.
20040 EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
20042 * @brief Get the state of the check object
20044 * @param obj The check object
20045 * @return The boolean state
20047 EAPI Eina_Bool elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20049 * @brief Set a convenience pointer to a boolean to change
20051 * @param obj The check object
20052 * @param statep Pointer to the boolean to modify
20054 * This sets a pointer to a boolean, that, in addition to the check objects
20055 * state will also be modified directly. To stop setting the object pointed
20056 * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
20057 * then when this is called, the check objects state will also be modified to
20058 * reflect the value of the boolean @p statep points to, just like calling
20059 * elm_check_state_set().
20061 EAPI void elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
20062 EINA_DEPRECATED EAPI void elm_check_states_labels_set(Evas_Object *obj, const char *ontext, const char *offtext) EINA_ARG_NONNULL(1,2,3);
20063 EINA_DEPRECATED EAPI void elm_check_states_labels_get(const Evas_Object *obj, const char **ontext, const char **offtext) EINA_ARG_NONNULL(1,2,3);
20070 * @defgroup Radio Radio
20072 * @image html img/widget/radio/preview-00.png
20073 * @image latex img/widget/radio/preview-00.eps
20075 * @brief Radio is a widget that allows for 1 or more options to be displayed
20076 * and have the user choose only 1 of them.
20078 * A radio object contains an indicator, an optional Label and an optional
20079 * icon object. While it's possible to have a group of only one radio they,
20080 * are normally used in groups of 2 or more. To add a radio to a group use
20081 * elm_radio_group_add(). The radio object(s) will select from one of a set
20082 * of integer values, so any value they are configuring needs to be mapped to
20083 * a set of integers. To configure what value that radio object represents,
20084 * use elm_radio_state_value_set() to set the integer it represents. To set
20085 * the value the whole group(which one is currently selected) is to indicate
20086 * use elm_radio_value_set() on any group member, and to get the groups value
20087 * use elm_radio_value_get(). For convenience the radio objects are also able
20088 * to directly set an integer(int) to the value that is selected. To specify
20089 * the pointer to this integer to modify, use elm_radio_value_pointer_set().
20090 * The radio objects will modify this directly. That implies the pointer must
20091 * point to valid memory for as long as the radio objects exist.
20093 * Signals that you can add callbacks for are:
20094 * @li changed - This is called whenever the user changes the state of one of
20095 * the radio objects within the group of radio objects that work together.
20097 * Default contents parts of the radio widget that you can use for are:
20098 * @li "icon" - A icon of the radio
20100 * @ref tutorial_radio show most of this API in action.
20104 * @brief Add a new radio to the parent
20106 * @param parent The parent object
20107 * @return The new object or NULL if it cannot be created
20109 EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20111 * @brief Set the text label of the radio object
20113 * @param obj The radio object
20114 * @param label The text label string in UTF-8
20116 * @deprecated use elm_object_text_set() instead.
20118 EINA_DEPRECATED EAPI void elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
20120 * @brief Get the text label of the radio object
20122 * @param obj The radio object
20123 * @return The text label string in UTF-8
20125 * @deprecated use elm_object_text_set() instead.
20127 EINA_DEPRECATED EAPI const char *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20129 * @brief Set the icon object of the radio object
20131 * @param obj The radio object
20132 * @param icon The icon object
20134 * Once the icon object is set, a previously set one will be deleted. If you
20135 * want to keep that old content object, use the elm_radio_icon_unset()
20138 * @deprecated use elm_object_part_content_set() instead.
20141 EINA_DEPRECATED EAPI void elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
20143 * @brief Get the icon object of the radio object
20145 * @param obj The radio object
20146 * @return The icon object
20148 * @see elm_radio_icon_set()
20150 * @deprecated use elm_object_part_content_get() instead.
20153 EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20155 * @brief Unset the icon used for the radio object
20157 * @param obj The radio object
20158 * @return The icon object that was being used
20160 * Unparent and return the icon object which was set for this widget.
20162 * @see elm_radio_icon_set()
20163 * @deprecated use elm_object_part_content_unset() instead.
20166 EINA_DEPRECATED EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20168 * @brief Add this radio to a group of other radio objects
20170 * @param obj The radio object
20171 * @param group Any object whose group the @p obj is to join.
20173 * Radio objects work in groups. Each member should have a different integer
20174 * value assigned. In order to have them work as a group, they need to know
20175 * about each other. This adds the given radio object to the group of which
20176 * the group object indicated is a member.
20178 EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
20180 * @brief Set the integer value that this radio object represents
20182 * @param obj The radio object
20183 * @param value The value to use if this radio object is selected
20185 * This sets the value of the radio.
20187 EAPI void elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20189 * @brief Get the integer value that this radio object represents
20191 * @param obj The radio object
20192 * @return The value used if this radio object is selected
20194 * This gets the value of the radio.
20196 * @see elm_radio_value_set()
20198 EAPI int elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20200 * @brief Set the value of the radio.
20202 * @param obj The radio object
20203 * @param value The value to use for the group
20205 * This sets the value of the radio group and will also set the value if
20206 * pointed to, to the value supplied, but will not call any callbacks.
20208 EAPI void elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
20210 * @brief Get the state of the radio object
20212 * @param obj The radio object
20213 * @return The integer state
20215 EAPI int elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20217 * @brief Set a convenience pointer to a integer to change
20219 * @param obj The radio object
20220 * @param valuep Pointer to the integer to modify
20222 * This sets a pointer to a integer, that, in addition to the radio objects
20223 * state will also be modified directly. To stop setting the object pointed
20224 * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
20225 * when this is called, the radio objects state will also be modified to
20226 * reflect the value of the integer valuep points to, just like calling
20227 * elm_radio_value_set().
20229 EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
20235 * @defgroup Pager Pager
20237 * @image html img/widget/pager/preview-00.png
20238 * @image latex img/widget/pager/preview-00.eps
20240 * @brief Widget that allows flipping between one or more āpagesā
20243 * The flipping between pages of objects is animated. All content
20244 * in the pager is kept in a stack, being the last content added
20245 * (visible one) on the top of that stack.
20247 * Objects can be pushed or popped from the stack or deleted as
20248 * well. Pushes and pops will animate the widget accordingly to its
20249 * style (a pop will also delete the child object once the
20250 * animation is finished). Any object already in the pager can be
20251 * promoted to the top (from its current stacking position) through
20252 * the use of elm_pager_content_promote(). New objects are pushed
20253 * to the top with elm_pager_content_push(). When the top item is
20254 * no longer wanted, simply pop it with elm_pager_content_pop() and
20255 * it will also be deleted. If an object is no longer needed and is
20256 * not the top item, just delete it as normal. You can query which
20257 * objects are the top and bottom with
20258 * elm_pager_content_bottom_get() and elm_pager_content_top_get().
20260 * Signals that you can add callbacks for are:
20261 * - @c "show,finished" - when a new page is actually shown on the top
20262 * - @c "hide,finished" - when a previous page is hidden
20264 * Only after the first of that signals the child object is
20265 * guaranteed to be visible, as in @c evas_object_visible_get().
20267 * This widget has the following styles available:
20270 * - @c "fade_translucide"
20271 * - @c "fade_invisible"
20273 * @note These styles affect only the flipping animations on the
20274 * default theme; the appearance when not animating is unaffected
20277 * @ref tutorial_pager gives a good overview of the usage of the API.
20282 * Add a new pager to the parent
20284 * @param parent The parent object
20285 * @return The new object or NULL if it cannot be created
20289 EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20292 * @brief Push an object to the top of the pager stack (and show it).
20294 * @param obj The pager object
20295 * @param content The object to push
20297 * The object pushed becomes a child of the pager, it will be controlled and
20298 * deleted when the pager is deleted.
20300 * @note If the content is already in the stack use
20301 * elm_pager_content_promote().
20302 * @warning Using this function on @p content already in the stack results in
20303 * undefined behavior.
20305 EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20308 * @brief Pop the object that is on top of the stack
20310 * @param obj The pager object
20312 * This pops the object that is on the top(visible) of the pager, makes it
20313 * disappear, then deletes the object. The object that was underneath it on
20314 * the stack will become visible.
20316 EAPI void elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
20319 * @brief Moves an object already in the pager stack to the top of the stack.
20321 * @param obj The pager object
20322 * @param content The object to promote
20324 * This will take the @p content and move it to the top of the stack as
20325 * if it had been pushed there.
20327 * @note If the content isn't already in the stack use
20328 * elm_pager_content_push().
20329 * @warning Using this function on @p content not already in the stack
20330 * results in undefined behavior.
20332 EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20335 * @brief Return the object at the bottom of the pager stack
20337 * @param obj The pager object
20338 * @return The bottom object or NULL if none
20340 EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20343 * @brief Return the object at the top of the pager stack
20345 * @param obj The pager object
20346 * @return The top object or NULL if none
20348 EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20355 * @defgroup Slideshow Slideshow
20357 * @image html img/widget/slideshow/preview-00.png
20358 * @image latex img/widget/slideshow/preview-00.eps
20360 * This widget, as the name indicates, is a pre-made image
20361 * slideshow panel, with API functions acting on (child) image
20362 * items presentation. Between those actions, are:
20363 * - advance to next/previous image
20364 * - select the style of image transition animation
20365 * - set the exhibition time for each image
20366 * - start/stop the slideshow
20368 * The transition animations are defined in the widget's theme,
20369 * consequently new animations can be added without having to
20370 * update the widget's code.
20372 * @section Slideshow_Items Slideshow items
20374 * For slideshow items, just like for @ref Genlist "genlist" ones,
20375 * the user defines a @b classes, specifying functions that will be
20376 * called on the item's creation and deletion times.
20378 * The #Elm_Slideshow_Item_Class structure contains the following
20381 * - @c func.get - When an item is displayed, this function is
20382 * called, and it's where one should create the item object, de
20383 * facto. For example, the object can be a pure Evas image object
20384 * or an Elementary @ref Photocam "photocam" widget. See
20385 * #SlideshowItemGetFunc.
20386 * - @c func.del - When an item is no more displayed, this function
20387 * is called, where the user must delete any data associated to
20388 * the item. See #SlideshowItemDelFunc.
20390 * @section Slideshow_Caching Slideshow caching
20392 * The slideshow provides facilities to have items adjacent to the
20393 * one being displayed <b>already "realized"</b> (i.e. loaded) for
20394 * you, so that the system does not have to decode image data
20395 * anymore at the time it has to actually switch images on its
20396 * viewport. The user is able to set the numbers of items to be
20397 * cached @b before and @b after the current item, in the widget's
20400 * Smart events one can add callbacks for are:
20402 * - @c "changed" - when the slideshow switches its view to a new
20405 * List of examples for the slideshow widget:
20406 * @li @ref slideshow_example
20410 * @addtogroup Slideshow
20414 typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
20415 typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
20416 typedef struct _Elm_Slideshow_Item Elm_Slideshow_Item; /**< Slideshow item handle */
20417 typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
20418 typedef void (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
20421 * @struct _Elm_Slideshow_Item_Class
20423 * Slideshow item class definition. See @ref Slideshow_Items for
20426 struct _Elm_Slideshow_Item_Class
20428 struct _Elm_Slideshow_Item_Class_Func
20430 SlideshowItemGetFunc get;
20431 SlideshowItemDelFunc del;
20433 }; /**< #Elm_Slideshow_Item_Class member definitions */
20436 * Add a new slideshow widget to the given parent Elementary
20437 * (container) object
20439 * @param parent The parent object
20440 * @return A new slideshow widget handle or @c NULL, on errors
20442 * This function inserts a new slideshow widget on the canvas.
20444 * @ingroup Slideshow
20446 EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20449 * Add (append) a new item in a given slideshow widget.
20451 * @param obj The slideshow object
20452 * @param itc The item class for the item
20453 * @param data The item's data
20454 * @return A handle to the item added or @c NULL, on errors
20456 * Add a new item to @p obj's internal list of items, appending it.
20457 * The item's class must contain the function really fetching the
20458 * image object to show for this item, which could be an Evas image
20459 * object or an Elementary photo, for example. The @p data
20460 * parameter is going to be passed to both class functions of the
20463 * @see #Elm_Slideshow_Item_Class
20464 * @see elm_slideshow_item_sorted_insert()
20466 * @ingroup Slideshow
20468 EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
20471 * Insert a new item into the given slideshow widget, using the @p func
20472 * function to sort items (by item handles).
20474 * @param obj The slideshow object
20475 * @param itc The item class for the item
20476 * @param data The item's data
20477 * @param func The comparing function to be used to sort slideshow
20478 * items <b>by #Elm_Slideshow_Item item handles</b>
20479 * @return Returns The slideshow item handle, on success, or
20480 * @c NULL, on errors
20482 * Add a new item to @p obj's internal list of items, in a position
20483 * determined by the @p func comparing function. The item's class
20484 * must contain the function really fetching the image object to
20485 * show for this item, which could be an Evas image object or an
20486 * Elementary photo, for example. The @p data parameter is going to
20487 * be passed to both class functions of the item.
20489 * @see #Elm_Slideshow_Item_Class
20490 * @see elm_slideshow_item_add()
20492 * @ingroup Slideshow
20494 EAPI Elm_Slideshow_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func) EINA_ARG_NONNULL(1);
20497 * Display a given slideshow widget's item, programmatically.
20499 * @param obj The slideshow object
20500 * @param item The item to display on @p obj's viewport
20502 * The change between the current item and @p item will use the
20503 * transition @p obj is set to use (@see
20504 * elm_slideshow_transition_set()).
20506 * @ingroup Slideshow
20508 EAPI void elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20511 * Slide to the @b next item, in a given slideshow widget
20513 * @param obj The slideshow object
20515 * The sliding animation @p obj is set to use will be the
20516 * transition effect used, after this call is issued.
20518 * @note If the end of the slideshow's internal list of items is
20519 * reached, it'll wrap around to the list's beginning, again.
20521 * @ingroup Slideshow
20523 EAPI void elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
20526 * Slide to the @b previous item, in a given slideshow widget
20528 * @param obj The slideshow object
20530 * The sliding animation @p obj is set to use will be the
20531 * transition effect used, after this call is issued.
20533 * @note If the beginning of the slideshow's internal list of items
20534 * is reached, it'll wrap around to the list's end, again.
20536 * @ingroup Slideshow
20538 EAPI void elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
20541 * Returns the list of sliding transition/effect names available, for a
20542 * given slideshow widget.
20544 * @param obj The slideshow object
20545 * @return The list of transitions (list of @b stringshared strings
20548 * The transitions, which come from @p obj's theme, must be an EDC
20549 * data item named @c "transitions" on the theme file, with (prefix)
20550 * names of EDC programs actually implementing them.
20552 * The available transitions for slideshows on the default theme are:
20553 * - @c "fade" - the current item fades out, while the new one
20554 * fades in to the slideshow's viewport.
20555 * - @c "black_fade" - the current item fades to black, and just
20556 * then, the new item will fade in.
20557 * - @c "horizontal" - the current item slides horizontally, until
20558 * it gets out of the slideshow's viewport, while the new item
20559 * comes from the left to take its place.
20560 * - @c "vertical" - the current item slides vertically, until it
20561 * gets out of the slideshow's viewport, while the new item comes
20562 * from the bottom to take its place.
20563 * - @c "square" - the new item starts to appear from the middle of
20564 * the current one, but with a tiny size, growing until its
20565 * target (full) size and covering the old one.
20567 * @warning The stringshared strings get no new references
20568 * exclusive to the user grabbing the list, here, so if you'd like
20569 * to use them out of this call's context, you'd better @c
20570 * eina_stringshare_ref() them.
20572 * @see elm_slideshow_transition_set()
20574 * @ingroup Slideshow
20576 EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20579 * Set the current slide transition/effect in use for a given
20582 * @param obj The slideshow object
20583 * @param transition The new transition's name string
20585 * If @p transition is implemented in @p obj's theme (i.e., is
20586 * contained in the list returned by
20587 * elm_slideshow_transitions_get()), this new sliding effect will
20588 * be used on the widget.
20590 * @see elm_slideshow_transitions_get() for more details
20592 * @ingroup Slideshow
20594 EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
20597 * Get the current slide transition/effect in use for a given
20600 * @param obj The slideshow object
20601 * @return The current transition's name
20603 * @see elm_slideshow_transition_set() for more details
20605 * @ingroup Slideshow
20607 EAPI const char *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20610 * Set the interval between each image transition on a given
20611 * slideshow widget, <b>and start the slideshow, itself</b>
20613 * @param obj The slideshow object
20614 * @param timeout The new displaying timeout for images
20616 * After this call, the slideshow widget will start cycling its
20617 * view, sequentially and automatically, with the images of the
20618 * items it has. The time between each new image displayed is going
20619 * to be @p timeout, in @b seconds. If a different timeout was set
20620 * previously and an slideshow was in progress, it will continue
20621 * with the new time between transitions, after this call.
20623 * @note A value less than or equal to 0 on @p timeout will disable
20624 * the widget's internal timer, thus halting any slideshow which
20625 * could be happening on @p obj.
20627 * @see elm_slideshow_timeout_get()
20629 * @ingroup Slideshow
20631 EAPI void elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
20634 * Get the interval set for image transitions on a given slideshow
20637 * @param obj The slideshow object
20638 * @return Returns the timeout set on it
20640 * @see elm_slideshow_timeout_set() for more details
20642 * @ingroup Slideshow
20644 EAPI double elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20647 * Set if, after a slideshow is started, for a given slideshow
20648 * widget, its items should be displayed cyclically or not.
20650 * @param obj The slideshow object
20651 * @param loop Use @c EINA_TRUE to make it cycle through items or
20652 * @c EINA_FALSE for it to stop at the end of @p obj's internal
20655 * @note elm_slideshow_next() and elm_slideshow_previous() will @b
20656 * ignore what is set by this functions, i.e., they'll @b always
20657 * cycle through items. This affects only the "automatic"
20658 * slideshow, as set by elm_slideshow_timeout_set().
20660 * @see elm_slideshow_loop_get()
20662 * @ingroup Slideshow
20664 EAPI void elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
20667 * Get if, after a slideshow is started, for a given slideshow
20668 * widget, its items are to be displayed cyclically or not.
20670 * @param obj The slideshow object
20671 * @return @c EINA_TRUE, if the items in @p obj will be cycled
20672 * through or @c EINA_FALSE, otherwise
20674 * @see elm_slideshow_loop_set() for more details
20676 * @ingroup Slideshow
20678 EAPI Eina_Bool elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20681 * Remove all items from a given slideshow widget
20683 * @param obj The slideshow object
20685 * This removes (and deletes) all items in @p obj, leaving it
20688 * @see elm_slideshow_item_del(), to remove just one item.
20690 * @ingroup Slideshow
20692 EAPI void elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20695 * Get the internal list of items in a given slideshow widget.
20697 * @param obj The slideshow object
20698 * @return The list of items (#Elm_Slideshow_Item as data) or
20699 * @c NULL on errors.
20701 * This list is @b not to be modified in any way and must not be
20702 * freed. Use the list members with functions like
20703 * elm_slideshow_item_del(), elm_slideshow_item_data_get().
20705 * @warning This list is only valid until @p obj object's internal
20706 * items list is changed. It should be fetched again with another
20707 * call to this function when changes happen.
20709 * @ingroup Slideshow
20711 EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20714 * Delete a given item from a slideshow widget.
20716 * @param item The slideshow item
20718 * @ingroup Slideshow
20720 EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20723 * Return the data associated with a given slideshow item
20725 * @param item The slideshow item
20726 * @return Returns the data associated to this item
20728 * @ingroup Slideshow
20730 EAPI void *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
20733 * Returns the currently displayed item, in a given slideshow widget
20735 * @param obj The slideshow object
20736 * @return A handle to the item being displayed in @p obj or
20737 * @c NULL, if none is (and on errors)
20739 * @ingroup Slideshow
20741 EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20744 * Get the real Evas object created to implement the view of a
20745 * given slideshow item
20747 * @param item The slideshow item.
20748 * @return the Evas object implementing this item's view.
20750 * This returns the actual Evas object used to implement the
20751 * specified slideshow item's view. This may be @c NULL, as it may
20752 * not have been created or may have been deleted, at any time, by
20753 * the slideshow. <b>Do not modify this object</b> (move, resize,
20754 * show, hide, etc.), as the slideshow is controlling it. This
20755 * function is for querying, emitting custom signals or hooking
20756 * lower level callbacks for events on that object. Do not delete
20757 * this object under any circumstances.
20759 * @see elm_slideshow_item_data_get()
20761 * @ingroup Slideshow
20763 EAPI Evas_Object* elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
20766 * Get the the item, in a given slideshow widget, placed at
20767 * position @p nth, in its internal items list
20769 * @param obj The slideshow object
20770 * @param nth The number of the item to grab a handle to (0 being
20772 * @return The item stored in @p obj at position @p nth or @c NULL,
20773 * if there's no item with that index (and on errors)
20775 * @ingroup Slideshow
20777 EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
20780 * Set the current slide layout in use for a given slideshow widget
20782 * @param obj The slideshow object
20783 * @param layout The new layout's name string
20785 * If @p layout is implemented in @p obj's theme (i.e., is contained
20786 * in the list returned by elm_slideshow_layouts_get()), this new
20787 * images layout will be used on the widget.
20789 * @see elm_slideshow_layouts_get() for more details
20791 * @ingroup Slideshow
20793 EAPI void elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
20796 * Get the current slide layout in use for a given slideshow widget
20798 * @param obj The slideshow object
20799 * @return The current layout's name
20801 * @see elm_slideshow_layout_set() for more details
20803 * @ingroup Slideshow
20805 EAPI const char *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20808 * Returns the list of @b layout names available, for a given
20809 * slideshow widget.
20811 * @param obj The slideshow object
20812 * @return The list of layouts (list of @b stringshared strings
20815 * Slideshow layouts will change how the widget is to dispose each
20816 * image item in its viewport, with regard to cropping, scaling,
20819 * The layouts, which come from @p obj's theme, must be an EDC
20820 * data item name @c "layouts" on the theme file, with (prefix)
20821 * names of EDC programs actually implementing them.
20823 * The available layouts for slideshows on the default theme are:
20824 * - @c "fullscreen" - item images with original aspect, scaled to
20825 * touch top and down slideshow borders or, if the image's heigh
20826 * is not enough, left and right slideshow borders.
20827 * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
20828 * one, but always leaving 10% of the slideshow's dimensions of
20829 * distance between the item image's borders and the slideshow
20830 * borders, for each axis.
20832 * @warning The stringshared strings get no new references
20833 * exclusive to the user grabbing the list, here, so if you'd like
20834 * to use them out of this call's context, you'd better @c
20835 * eina_stringshare_ref() them.
20837 * @see elm_slideshow_layout_set()
20839 * @ingroup Slideshow
20841 EAPI const Eina_List *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20844 * Set the number of items to cache, on a given slideshow widget,
20845 * <b>before the current item</b>
20847 * @param obj The slideshow object
20848 * @param count Number of items to cache before the current one
20850 * The default value for this property is @c 2. See
20851 * @ref Slideshow_Caching "slideshow caching" for more details.
20853 * @see elm_slideshow_cache_before_get()
20855 * @ingroup Slideshow
20857 EAPI void elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20860 * Retrieve the number of items to cache, on a given slideshow widget,
20861 * <b>before the current item</b>
20863 * @param obj The slideshow object
20864 * @return The number of items set to be cached before the current one
20866 * @see elm_slideshow_cache_before_set() for more details
20868 * @ingroup Slideshow
20870 EAPI int elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20873 * Set the number of items to cache, on a given slideshow widget,
20874 * <b>after the current item</b>
20876 * @param obj The slideshow object
20877 * @param count Number of items to cache after the current one
20879 * The default value for this property is @c 2. See
20880 * @ref Slideshow_Caching "slideshow caching" for more details.
20882 * @see elm_slideshow_cache_after_get()
20884 * @ingroup Slideshow
20886 EAPI void elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
20889 * Retrieve the number of items to cache, on a given slideshow widget,
20890 * <b>after the current item</b>
20892 * @param obj The slideshow object
20893 * @return The number of items set to be cached after the current one
20895 * @see elm_slideshow_cache_after_set() for more details
20897 * @ingroup Slideshow
20899 EAPI int elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20902 * Get the number of items stored in a given slideshow widget
20904 * @param obj The slideshow object
20905 * @return The number of items on @p obj, at the moment of this call
20907 * @ingroup Slideshow
20909 EAPI unsigned int elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20916 * @defgroup Fileselector File Selector
20918 * @image html img/widget/fileselector/preview-00.png
20919 * @image latex img/widget/fileselector/preview-00.eps
20921 * A file selector is a widget that allows a user to navigate
20922 * through a file system, reporting file selections back via its
20925 * It contains shortcut buttons for home directory (@c ~) and to
20926 * jump one directory upwards (..), as well as cancel/ok buttons to
20927 * confirm/cancel a given selection. After either one of those two
20928 * former actions, the file selector will issue its @c "done" smart
20931 * There's a text entry on it, too, showing the name of the current
20932 * selection. There's the possibility of making it editable, so it
20933 * is useful on file saving dialogs on applications, where one
20934 * gives a file name to save contents to, in a given directory in
20935 * the system. This custom file name will be reported on the @c
20936 * "done" smart callback (explained in sequence).
20938 * Finally, it has a view to display file system items into in two
20943 * If Elementary is built with support of the Ethumb thumbnailing
20944 * library, the second form of view will display preview thumbnails
20945 * of files which it supports.
20947 * Smart callbacks one can register to:
20949 * - @c "selected" - the user has clicked on a file (when not in
20950 * folders-only mode) or directory (when in folders-only mode)
20951 * - @c "directory,open" - the list has been populated with new
20952 * content (@c event_info is a pointer to the directory's
20953 * path, a @b stringshared string)
20954 * - @c "done" - the user has clicked on the "ok" or "cancel"
20955 * buttons (@c event_info is a pointer to the selection's
20956 * path, a @b stringshared string)
20958 * Here is an example on its usage:
20959 * @li @ref fileselector_example
20963 * @addtogroup Fileselector
20968 * Defines how a file selector widget is to layout its contents
20969 * (file system entries).
20971 typedef enum _Elm_Fileselector_Mode
20973 ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
20974 ELM_FILESELECTOR_GRID, /**< layout as a grid */
20975 ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
20976 } Elm_Fileselector_Mode;
20979 * Add a new file selector widget to the given parent Elementary
20980 * (container) object
20982 * @param parent The parent object
20983 * @return a new file selector widget handle or @c NULL, on errors
20985 * This function inserts a new file selector widget on the canvas.
20987 * @ingroup Fileselector
20989 EAPI Evas_Object *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20992 * Enable/disable the file name entry box where the user can type
20993 * in a name for a file, in a given file selector widget
20995 * @param obj The file selector object
20996 * @param is_save @c EINA_TRUE to make the file selector a "saving
20997 * dialog", @c EINA_FALSE otherwise
20999 * Having the entry editable is useful on file saving dialogs on
21000 * applications, where one gives a file name to save contents to,
21001 * in a given directory in the system. This custom file name will
21002 * be reported on the @c "done" smart callback.
21004 * @see elm_fileselector_is_save_get()
21006 * @ingroup Fileselector
21008 EAPI void elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
21011 * Get whether the given file selector is in "saving dialog" mode
21013 * @param obj The file selector object
21014 * @return @c EINA_TRUE, if the file selector is in "saving dialog"
21015 * mode, @c EINA_FALSE otherwise (and on errors)
21017 * @see elm_fileselector_is_save_set() for more details
21019 * @ingroup Fileselector
21021 EAPI Eina_Bool elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21024 * Enable/disable folder-only view for a given file selector widget
21026 * @param obj The file selector object
21027 * @param only @c EINA_TRUE to make @p obj only display
21028 * directories, @c EINA_FALSE to make files to be displayed in it
21031 * If enabled, the widget's view will only display folder items,
21034 * @see elm_fileselector_folder_only_get()
21036 * @ingroup Fileselector
21038 EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
21041 * Get whether folder-only view is set for a given file selector
21044 * @param obj The file selector object
21045 * @return only @c EINA_TRUE if @p obj is only displaying
21046 * directories, @c EINA_FALSE if files are being displayed in it
21047 * too (and on errors)
21049 * @see elm_fileselector_folder_only_get()
21051 * @ingroup Fileselector
21053 EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21056 * Enable/disable the "ok" and "cancel" buttons on a given file
21059 * @param obj The file selector object
21060 * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
21062 * @note A file selector without those buttons will never emit the
21063 * @c "done" smart event, and is only usable if one is just hooking
21064 * to the other two events.
21066 * @see elm_fileselector_buttons_ok_cancel_get()
21068 * @ingroup Fileselector
21070 EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
21073 * Get whether the "ok" and "cancel" buttons on a given file
21074 * selector widget are being shown.
21076 * @param obj The file selector object
21077 * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
21078 * otherwise (and on errors)
21080 * @see elm_fileselector_buttons_ok_cancel_set() for more details
21082 * @ingroup Fileselector
21084 EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21087 * Enable/disable a tree view in the given file selector widget,
21088 * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
21090 * @param obj The file selector object
21091 * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
21094 * In a tree view, arrows are created on the sides of directories,
21095 * allowing them to expand in place.
21097 * @note If it's in other mode, the changes made by this function
21098 * will only be visible when one switches back to "list" mode.
21100 * @see elm_fileselector_expandable_get()
21102 * @ingroup Fileselector
21104 EAPI void elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
21107 * Get whether tree view is enabled for the given file selector
21110 * @param obj The file selector object
21111 * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
21112 * otherwise (and or errors)
21114 * @see elm_fileselector_expandable_set() for more details
21116 * @ingroup Fileselector
21118 EAPI Eina_Bool elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21121 * Set, programmatically, the @b directory that a given file
21122 * selector widget will display contents from
21124 * @param obj The file selector object
21125 * @param path The path to display in @p obj
21127 * This will change the @b directory that @p obj is displaying. It
21128 * will also clear the text entry area on the @p obj object, which
21129 * displays select files' names.
21131 * @see elm_fileselector_path_get()
21133 * @ingroup Fileselector
21135 EAPI void elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21138 * Get the parent directory's path that a given file selector
21139 * widget is displaying
21141 * @param obj The file selector object
21142 * @return The (full) path of the directory the file selector is
21143 * displaying, a @b stringshared string
21145 * @see elm_fileselector_path_set()
21147 * @ingroup Fileselector
21149 EAPI const char *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21152 * Set, programmatically, the currently selected file/directory in
21153 * the given file selector widget
21155 * @param obj The file selector object
21156 * @param path The (full) path to a file or directory
21157 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
21158 * latter case occurs if the directory or file pointed to do not
21161 * @see elm_fileselector_selected_get()
21163 * @ingroup Fileselector
21165 EAPI Eina_Bool elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
21168 * Get the currently selected item's (full) path, in the given file
21171 * @param obj The file selector object
21172 * @return The absolute path of the selected item, a @b
21173 * stringshared string
21175 * @note Custom editions on @p obj object's text entry, if made,
21176 * will appear on the return string of this function, naturally.
21178 * @see elm_fileselector_selected_set() for more details
21180 * @ingroup Fileselector
21182 EAPI const char *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21185 * Set the mode in which a given file selector widget will display
21186 * (layout) file system entries in its view
21188 * @param obj The file selector object
21189 * @param mode The mode of the fileselector, being it one of
21190 * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
21191 * first one, naturally, will display the files in a list. The
21192 * latter will make the widget to display its entries in a grid
21195 * @note By using elm_fileselector_expandable_set(), the user may
21196 * trigger a tree view for that list.
21198 * @note If Elementary is built with support of the Ethumb
21199 * thumbnailing library, the second form of view will display
21200 * preview thumbnails of files which it supports. You must have
21201 * elm_need_ethumb() called in your Elementary for thumbnailing to
21204 * @see elm_fileselector_expandable_set().
21205 * @see elm_fileselector_mode_get().
21207 * @ingroup Fileselector
21209 EAPI void elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
21212 * Get the mode in which a given file selector widget is displaying
21213 * (layouting) file system entries in its view
21215 * @param obj The fileselector object
21216 * @return The mode in which the fileselector is at
21218 * @see elm_fileselector_mode_set() for more details
21220 * @ingroup Fileselector
21222 EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21229 * @defgroup Progressbar Progress bar
21231 * The progress bar is a widget for visually representing the
21232 * progress status of a given job/task.
21234 * A progress bar may be horizontal or vertical. It may display an
21235 * icon besides it, as well as primary and @b units labels. The
21236 * former is meant to label the widget as a whole, while the
21237 * latter, which is formatted with floating point values (and thus
21238 * accepts a <c>printf</c>-style format string, like <c>"%1.2f
21239 * units"</c>), is meant to label the widget's <b>progress
21240 * value</b>. Label, icon and unit strings/objects are @b optional
21241 * for progress bars.
21243 * A progress bar may be @b inverted, in which state it gets its
21244 * values inverted, with high values being on the left or top and
21245 * low values on the right or bottom, as opposed to normally have
21246 * the low values on the former and high values on the latter,
21247 * respectively, for horizontal and vertical modes.
21249 * The @b span of the progress, as set by
21250 * elm_progressbar_span_size_set(), is its length (horizontally or
21251 * vertically), unless one puts size hints on the widget to expand
21252 * on desired directions, by any container. That length will be
21253 * scaled by the object or applications scaling factor. At any
21254 * point code can query the progress bar for its value with
21255 * elm_progressbar_value_get().
21257 * Available widget styles for progress bars:
21259 * - @c "wheel" (simple style, no text, no progression, only
21260 * "pulse" effect is available)
21262 * Default contents parts of the progressbar widget that you can use for are:
21263 * @li "icon" - A icon of the progressbar
21265 * Here is an example on its usage:
21266 * @li @ref progressbar_example
21270 * Add a new progress bar widget to the given parent Elementary
21271 * (container) object
21273 * @param parent The parent object
21274 * @return a new progress bar widget handle or @c NULL, on errors
21276 * This function inserts a new progress bar widget on the canvas.
21278 * @ingroup Progressbar
21280 EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21283 * Set whether a given progress bar widget is at "pulsing mode" or
21286 * @param obj The progress bar object
21287 * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
21288 * @c EINA_FALSE to put it back to its default one
21290 * By default, progress bars will display values from the low to
21291 * high value boundaries. There are, though, contexts in which the
21292 * state of progression of a given task is @b unknown. For those,
21293 * one can set a progress bar widget to a "pulsing state", to give
21294 * the user an idea that some computation is being held, but
21295 * without exact progress values. In the default theme it will
21296 * animate its bar with the contents filling in constantly and back
21297 * to non-filled, in a loop. To start and stop this pulsing
21298 * animation, one has to explicitly call elm_progressbar_pulse().
21300 * @see elm_progressbar_pulse_get()
21301 * @see elm_progressbar_pulse()
21303 * @ingroup Progressbar
21305 EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
21308 * Get whether a given progress bar widget is at "pulsing mode" or
21311 * @param obj The progress bar object
21312 * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
21313 * if it's in the default one (and on errors)
21315 * @ingroup Progressbar
21317 EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21320 * Start/stop a given progress bar "pulsing" animation, if its
21323 * @param obj The progress bar object
21324 * @param state @c EINA_TRUE, to @b start the pulsing animation,
21325 * @c EINA_FALSE to @b stop it
21327 * @note This call won't do anything if @p obj is not under "pulsing mode".
21329 * @see elm_progressbar_pulse_set() for more details.
21331 * @ingroup Progressbar
21333 EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
21336 * Set the progress value (in percentage) on a given progress bar
21339 * @param obj The progress bar object
21340 * @param val The progress value (@b must be between @c 0.0 and @c
21343 * Use this call to set progress bar levels.
21345 * @note If you passes a value out of the specified range for @p
21346 * val, it will be interpreted as the @b closest of the @b boundary
21347 * values in the range.
21349 * @ingroup Progressbar
21351 EAPI void elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21354 * Get the progress value (in percentage) on a given progress bar
21357 * @param obj The progress bar object
21358 * @return The value of the progressbar
21360 * @see elm_progressbar_value_set() for more details
21362 * @ingroup Progressbar
21364 EAPI double elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21367 * Set the label of a given progress bar widget
21369 * @param obj The progress bar object
21370 * @param label The text label string, in UTF-8
21372 * @ingroup Progressbar
21373 * @deprecated use elm_object_text_set() instead.
21375 EINA_DEPRECATED EAPI void elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
21378 * Get the label of a given progress bar widget
21380 * @param obj The progressbar object
21381 * @return The text label string, in UTF-8
21383 * @ingroup Progressbar
21384 * @deprecated use elm_object_text_set() instead.
21386 EINA_DEPRECATED EAPI const char *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21389 * Set the icon object of a given progress bar widget
21391 * @param obj The progress bar object
21392 * @param icon The icon object
21394 * Use this call to decorate @p obj with an icon next to it.
21396 * @note Once the icon object is set, a previously set one will be
21397 * deleted. If you want to keep that old content object, use the
21398 * elm_progressbar_icon_unset() function.
21400 * @see elm_progressbar_icon_get()
21401 * @deprecated use elm_object_part_content_set() instead.
21403 * @ingroup Progressbar
21405 EINA_DEPRECATED EAPI void elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
21408 * Retrieve the icon object set for a given progress bar widget
21410 * @param obj The progress bar object
21411 * @return The icon object's handle, if @p obj had one set, or @c NULL,
21412 * otherwise (and on errors)
21414 * @see elm_progressbar_icon_set() for more details
21415 * @deprecated use elm_object_part_content_get() instead.
21417 * @ingroup Progressbar
21419 EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21422 * Unset an icon set on a given progress bar widget
21424 * @param obj The progress bar object
21425 * @return The icon object that was being used, if any was set, or
21426 * @c NULL, otherwise (and on errors)
21428 * This call will unparent and return the icon object which was set
21429 * for this widget, previously, on success.
21431 * @see elm_progressbar_icon_set() for more details
21432 * @deprecated use elm_object_part_content_unset() instead.
21434 * @ingroup Progressbar
21436 EINA_DEPRECATED EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21439 * Set the (exact) length of the bar region of a given progress bar
21442 * @param obj The progress bar object
21443 * @param size The length of the progress bar's bar region
21445 * This sets the minimum width (when in horizontal mode) or height
21446 * (when in vertical mode) of the actual bar area of the progress
21447 * bar @p obj. This in turn affects the object's minimum size. Use
21448 * this when you're not setting other size hints expanding on the
21449 * given direction (like weight and alignment hints) and you would
21450 * like it to have a specific size.
21452 * @note Icon, label and unit text around @p obj will require their
21453 * own space, which will make @p obj to require more the @p size,
21456 * @see elm_progressbar_span_size_get()
21458 * @ingroup Progressbar
21460 EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
21463 * Get the length set for the bar region of a given progress bar
21466 * @param obj The progress bar object
21467 * @return The length of the progress bar's bar region
21469 * If that size was not set previously, with
21470 * elm_progressbar_span_size_set(), this call will return @c 0.
21472 * @ingroup Progressbar
21474 EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21477 * Set the format string for a given progress bar widget's units
21480 * @param obj The progress bar object
21481 * @param format The format string for @p obj's units label
21483 * If @c NULL is passed on @p format, it will make @p obj's units
21484 * area to be hidden completely. If not, it'll set the <b>format
21485 * string</b> for the units label's @b text. The units label is
21486 * provided a floating point value, so the units text is up display
21487 * at most one floating point falue. Note that the units label is
21488 * optional. Use a format string such as "%1.2f meters" for
21491 * @note The default format string for a progress bar is an integer
21492 * percentage, as in @c "%.0f %%".
21494 * @see elm_progressbar_unit_format_get()
21496 * @ingroup Progressbar
21498 EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
21501 * Retrieve the format string set for a given progress bar widget's
21504 * @param obj The progress bar object
21505 * @return The format set string for @p obj's units label or
21506 * @c NULL, if none was set (and on errors)
21508 * @see elm_progressbar_unit_format_set() for more details
21510 * @ingroup Progressbar
21512 EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21515 * Set the orientation of a given progress bar widget
21517 * @param obj The progress bar object
21518 * @param horizontal Use @c EINA_TRUE to make @p obj to be
21519 * @b horizontal, @c EINA_FALSE to make it @b vertical
21521 * Use this function to change how your progress bar is to be
21522 * disposed: vertically or horizontally.
21524 * @see elm_progressbar_horizontal_get()
21526 * @ingroup Progressbar
21528 EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21531 * Retrieve the orientation of a given progress bar widget
21533 * @param obj The progress bar object
21534 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
21535 * @c EINA_FALSE if it's @b vertical (and on errors)
21537 * @see elm_progressbar_horizontal_set() for more details
21539 * @ingroup Progressbar
21541 EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21544 * Invert a given progress bar widget's displaying values order
21546 * @param obj The progress bar object
21547 * @param inverted Use @c EINA_TRUE to make @p obj inverted,
21548 * @c EINA_FALSE to bring it back to default, non-inverted values.
21550 * A progress bar may be @b inverted, in which state it gets its
21551 * values inverted, with high values being on the left or top and
21552 * low values on the right or bottom, as opposed to normally have
21553 * the low values on the former and high values on the latter,
21554 * respectively, for horizontal and vertical modes.
21556 * @see elm_progressbar_inverted_get()
21558 * @ingroup Progressbar
21560 EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
21563 * Get whether a given progress bar widget's displaying values are
21566 * @param obj The progress bar object
21567 * @return @c EINA_TRUE, if @p obj has inverted values,
21568 * @c EINA_FALSE otherwise (and on errors)
21570 * @see elm_progressbar_inverted_set() for more details
21572 * @ingroup Progressbar
21574 EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21577 * @defgroup Separator Separator
21579 * @brief Separator is a very thin object used to separate other objects.
21581 * A separator can be vertical or horizontal.
21583 * @ref tutorial_separator is a good example of how to use a separator.
21587 * @brief Add a separator object to @p parent
21589 * @param parent The parent object
21591 * @return The separator object, or NULL upon failure
21593 EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21595 * @brief Set the horizontal mode of a separator object
21597 * @param obj The separator object
21598 * @param horizontal If true, the separator is horizontal
21600 EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
21602 * @brief Get the horizontal mode of a separator object
21604 * @param obj The separator object
21605 * @return If true, the separator is horizontal
21607 * @see elm_separator_horizontal_set()
21609 EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21615 * @defgroup Spinner Spinner
21616 * @ingroup Elementary
21618 * @image html img/widget/spinner/preview-00.png
21619 * @image latex img/widget/spinner/preview-00.eps
21621 * A spinner is a widget which allows the user to increase or decrease
21622 * numeric values using arrow buttons, or edit values directly, clicking
21623 * over it and typing the new value.
21625 * By default the spinner will not wrap and has a label
21626 * of "%.0f" (just showing the integer value of the double).
21628 * A spinner has a label that is formatted with floating
21629 * point values and thus accepts a printf-style format string, like
21630 * ā%1.2f unitsā.
21632 * It also allows specific values to be replaced by pre-defined labels.
21634 * Smart callbacks one can register to:
21636 * - "changed" - Whenever the spinner value is changed.
21637 * - "delay,changed" - A short time after the value is changed by the user.
21638 * This will be called only when the user stops dragging for a very short
21639 * period or when they release their finger/mouse, so it avoids possibly
21640 * expensive reactions to the value change.
21642 * Available styles for it:
21644 * - @c "vertical": up/down buttons at the right side and text left aligned.
21646 * Here is an example on its usage:
21647 * @ref spinner_example
21651 * @addtogroup Spinner
21656 * Add a new spinner widget to the given parent Elementary
21657 * (container) object.
21659 * @param parent The parent object.
21660 * @return a new spinner widget handle or @c NULL, on errors.
21662 * This function inserts a new spinner widget on the canvas.
21667 EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21670 * Set the format string of the displayed label.
21672 * @param obj The spinner object.
21673 * @param fmt The format string for the label display.
21675 * If @c NULL, this sets the format to "%.0f". If not it sets the format
21676 * string for the label text. The label text is provided a floating point
21677 * value, so the label text can display up to 1 floating point value.
21678 * Note that this is optional.
21680 * Use a format string such as "%1.2f meters" for example, and it will
21681 * display values like: "3.14 meters" for a value equal to 3.14159.
21683 * Default is "%0.f".
21685 * @see elm_spinner_label_format_get()
21689 EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
21692 * Get the label format of the spinner.
21694 * @param obj The spinner object.
21695 * @return The text label format string in UTF-8.
21697 * @see elm_spinner_label_format_set() for details.
21701 EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21704 * Set the minimum and maximum values for the spinner.
21706 * @param obj The spinner object.
21707 * @param min The minimum value.
21708 * @param max The maximum value.
21710 * Define the allowed range of values to be selected by the user.
21712 * If actual value is less than @p min, it will be updated to @p min. If it
21713 * is bigger then @p max, will be updated to @p max. Actual value can be
21714 * get with elm_spinner_value_get().
21716 * By default, min is equal to 0, and max is equal to 100.
21718 * @warning Maximum must be greater than minimum.
21720 * @see elm_spinner_min_max_get()
21724 EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
21727 * Get the minimum and maximum values of the spinner.
21729 * @param obj The spinner object.
21730 * @param min Pointer where to store the minimum value.
21731 * @param max Pointer where to store the maximum value.
21733 * @note If only one value is needed, the other pointer can be passed
21736 * @see elm_spinner_min_max_set() for details.
21740 EAPI void elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
21743 * Set the step used to increment or decrement the spinner value.
21745 * @param obj The spinner object.
21746 * @param step The step value.
21748 * This value will be incremented or decremented to the displayed value.
21749 * It will be incremented while the user keep right or top arrow pressed,
21750 * and will be decremented while the user keep left or bottom arrow pressed.
21752 * The interval to increment / decrement can be set with
21753 * elm_spinner_interval_set().
21755 * By default step value is equal to 1.
21757 * @see elm_spinner_step_get()
21761 EAPI void elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
21764 * Get the step used to increment or decrement the spinner value.
21766 * @param obj The spinner object.
21767 * @return The step value.
21769 * @see elm_spinner_step_get() for more details.
21773 EAPI double elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21776 * Set the value the spinner displays.
21778 * @param obj The spinner object.
21779 * @param val The value to be displayed.
21781 * Value will be presented on the label following format specified with
21782 * elm_spinner_format_set().
21784 * @warning The value must to be between min and max values. This values
21785 * are set by elm_spinner_min_max_set().
21787 * @see elm_spinner_value_get().
21788 * @see elm_spinner_format_set().
21789 * @see elm_spinner_min_max_set().
21793 EAPI void elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
21796 * Get the value displayed by the spinner.
21798 * @param obj The spinner object.
21799 * @return The value displayed.
21801 * @see elm_spinner_value_set() for details.
21805 EAPI double elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21808 * Set whether the spinner should wrap when it reaches its
21809 * minimum or maximum value.
21811 * @param obj The spinner object.
21812 * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
21815 * Disabled by default. If disabled, when the user tries to increment the
21817 * but displayed value plus step value is bigger than maximum value,
21819 * won't allow it. The same happens when the user tries to decrement it,
21820 * but the value less step is less than minimum value.
21822 * When wrap is enabled, in such situations it will allow these changes,
21823 * but will get the value that would be less than minimum and subtracts
21824 * from maximum. Or add the value that would be more than maximum to
21828 * @li min value = 10
21829 * @li max value = 50
21830 * @li step value = 20
21831 * @li displayed value = 20
21833 * When the user decrement value (using left or bottom arrow), it will
21834 * displays @c 40, because max - (min - (displayed - step)) is
21835 * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
21837 * @see elm_spinner_wrap_get().
21841 EAPI void elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
21844 * Get whether the spinner should wrap when it reaches its
21845 * minimum or maximum value.
21847 * @param obj The spinner object
21848 * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
21849 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21851 * @see elm_spinner_wrap_set() for details.
21855 EAPI Eina_Bool elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21858 * Set whether the spinner can be directly edited by the user or not.
21860 * @param obj The spinner object.
21861 * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
21862 * don't allow users to edit it directly.
21864 * Spinner objects can have edition @b disabled, in which state they will
21865 * be changed only by arrows.
21866 * Useful for contexts
21867 * where you don't want your users to interact with it writting the value.
21869 * when using special values, the user can see real value instead
21870 * of special label on edition.
21872 * It's enabled by default.
21874 * @see elm_spinner_editable_get()
21878 EAPI void elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
21881 * Get whether the spinner can be directly edited by the user or not.
21883 * @param obj The spinner object.
21884 * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
21885 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21887 * @see elm_spinner_editable_set() for details.
21891 EAPI Eina_Bool elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21894 * Set a special string to display in the place of the numerical value.
21896 * @param obj The spinner object.
21897 * @param value The value to be replaced.
21898 * @param label The label to be used.
21900 * It's useful for cases when a user should select an item that is
21901 * better indicated by a label than a value. For example, weekdays or months.
21905 * sp = elm_spinner_add(win);
21906 * elm_spinner_min_max_set(sp, 1, 3);
21907 * elm_spinner_special_value_add(sp, 1, "January");
21908 * elm_spinner_special_value_add(sp, 2, "February");
21909 * elm_spinner_special_value_add(sp, 3, "March");
21910 * evas_object_show(sp);
21915 EAPI void elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
21918 * Set the interval on time updates for an user mouse button hold
21919 * on spinner widgets' arrows.
21921 * @param obj The spinner object.
21922 * @param interval The (first) interval value in seconds.
21924 * This interval value is @b decreased while the user holds the
21925 * mouse pointer either incrementing or decrementing spinner's value.
21927 * This helps the user to get to a given value distant from the
21928 * current one easier/faster, as it will start to change quicker and
21929 * quicker on mouse button holds.
21931 * The calculation for the next change interval value, starting from
21932 * the one set with this call, is the previous interval divided by
21933 * @c 1.05, so it decreases a little bit.
21935 * The default starting interval value for automatic changes is
21938 * @see elm_spinner_interval_get()
21942 EAPI void elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
21945 * Get the interval on time updates for an user mouse button hold
21946 * on spinner widgets' arrows.
21948 * @param obj The spinner object.
21949 * @return The (first) interval value, in seconds, set on it.
21951 * @see elm_spinner_interval_set() for more details.
21955 EAPI double elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21962 * @defgroup Index Index
21964 * @image html img/widget/index/preview-00.png
21965 * @image latex img/widget/index/preview-00.eps
21967 * An index widget gives you an index for fast access to whichever
21968 * group of other UI items one might have. It's a list of text
21969 * items (usually letters, for alphabetically ordered access).
21971 * Index widgets are by default hidden and just appear when the
21972 * user clicks over it's reserved area in the canvas. In its
21973 * default theme, it's an area one @ref Fingers "finger" wide on
21974 * the right side of the index widget's container.
21976 * When items on the index are selected, smart callbacks get
21977 * called, so that its user can make other container objects to
21978 * show a given area or child object depending on the index item
21979 * selected. You'd probably be using an index together with @ref
21980 * List "lists", @ref Genlist "generic lists" or @ref Gengrid
21983 * Smart events one can add callbacks for are:
21984 * - @c "changed" - When the selected index item changes. @c
21985 * event_info is the selected item's data pointer.
21986 * - @c "delay,changed" - When the selected index item changes, but
21987 * after a small idling period. @c event_info is the selected
21988 * item's data pointer.
21989 * - @c "selected" - When the user releases a mouse button and
21990 * selects an item. @c event_info is the selected item's data
21992 * - @c "level,up" - when the user moves a finger from the first
21993 * level to the second level
21994 * - @c "level,down" - when the user moves a finger from the second
21995 * level to the first level
21997 * The @c "delay,changed" event is so that it'll wait a small time
21998 * before actually reporting those events and, moreover, just the
21999 * last event happening on those time frames will actually be
22002 * Here are some examples on its usage:
22003 * @li @ref index_example_01
22004 * @li @ref index_example_02
22008 * @addtogroup Index
22012 typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
22015 * Add a new index widget to the given parent Elementary
22016 * (container) object
22018 * @param parent The parent object
22019 * @return a new index widget handle or @c NULL, on errors
22021 * This function inserts a new index widget on the canvas.
22025 EAPI Evas_Object *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22028 * Set whether a given index widget is or not visible,
22031 * @param obj The index object
22032 * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
22034 * Not to be confused with visible as in @c evas_object_show() --
22035 * visible with regard to the widget's auto hiding feature.
22037 * @see elm_index_active_get()
22041 EAPI void elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
22044 * Get whether a given index widget is currently visible or not.
22046 * @param obj The index object
22047 * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
22049 * @see elm_index_active_set() for more details
22053 EAPI Eina_Bool elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22056 * Set the items level for a given index widget.
22058 * @param obj The index object.
22059 * @param level @c 0 or @c 1, the currently implemented levels.
22061 * @see elm_index_item_level_get()
22065 EAPI void elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22068 * Get the items level set for a given index widget.
22070 * @param obj The index object.
22071 * @return @c 0 or @c 1, which are the levels @p obj might be at.
22073 * @see elm_index_item_level_set() for more information
22077 EAPI int elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22080 * Returns the last selected item's data, for a given index widget.
22082 * @param obj The index object.
22083 * @return The item @b data associated to the last selected item on
22084 * @p obj (or @c NULL, on errors).
22086 * @warning The returned value is @b not an #Elm_Index_Item item
22087 * handle, but the data associated to it (see the @c item parameter
22088 * in elm_index_item_append(), as an example).
22092 EAPI void *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22095 * Append a new item on a given index widget.
22097 * @param obj The index object.
22098 * @param letter Letter under which the item should be indexed
22099 * @param item The item data to set for the index's item
22101 * Despite the most common usage of the @p letter argument is for
22102 * single char strings, one could use arbitrary strings as index
22105 * @c item will be the pointer returned back on @c "changed", @c
22106 * "delay,changed" and @c "selected" smart events.
22110 EAPI void elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22113 * Prepend a new item on a given index widget.
22115 * @param obj The index object.
22116 * @param letter Letter under which the item should be indexed
22117 * @param item The item data to set for the index's item
22119 * Despite the most common usage of the @p letter argument is for
22120 * single char strings, one could use arbitrary strings as index
22123 * @c item will be the pointer returned back on @c "changed", @c
22124 * "delay,changed" and @c "selected" smart events.
22128 EAPI void elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
22131 * Append a new item, on a given index widget, <b>after the item
22132 * having @p relative as data</b>.
22134 * @param obj The index object.
22135 * @param letter Letter under which the item should be indexed
22136 * @param item The item data to set for the index's item
22137 * @param relative The item data of the index item to be the
22138 * predecessor of this new one
22140 * Despite the most common usage of the @p letter argument is for
22141 * single char strings, one could use arbitrary strings as index
22144 * @c item will be the pointer returned back on @c "changed", @c
22145 * "delay,changed" and @c "selected" smart events.
22147 * @note If @p relative is @c NULL or if it's not found to be data
22148 * set on any previous item on @p obj, this function will behave as
22149 * elm_index_item_append().
22153 EAPI void elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
22156 * Prepend a new item, on a given index widget, <b>after the item
22157 * having @p relative as data</b>.
22159 * @param obj The index object.
22160 * @param letter Letter under which the item should be indexed
22161 * @param item The item data to set for the index's item
22162 * @param relative The item data of the index item to be the
22163 * successor of this new one
22165 * Despite the most common usage of the @p letter argument is for
22166 * single char strings, one could use arbitrary strings as index
22169 * @c item will be the pointer returned back on @c "changed", @c
22170 * "delay,changed" and @c "selected" smart events.
22172 * @note If @p relative is @c NULL or if it's not found to be data
22173 * set on any previous item on @p obj, this function will behave as
22174 * elm_index_item_prepend().
22178 EAPI void elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
22181 * Insert a new item into the given index widget, using @p cmp_func
22182 * function to sort items (by item handles).
22184 * @param obj The index object.
22185 * @param letter Letter under which the item should be indexed
22186 * @param item The item data to set for the index's item
22187 * @param cmp_func The comparing function to be used to sort index
22188 * items <b>by #Elm_Index_Item item handles</b>
22189 * @param cmp_data_func A @b fallback function to be called for the
22190 * sorting of index items <b>by item data</b>). It will be used
22191 * when @p cmp_func returns @c 0 (equality), which means an index
22192 * item with provided item data already exists. To decide which
22193 * data item should be pointed to by the index item in question, @p
22194 * cmp_data_func will be used. If @p cmp_data_func returns a
22195 * non-negative value, the previous index item data will be
22196 * replaced by the given @p item pointer. If the previous data need
22197 * to be freed, it should be done by the @p cmp_data_func function,
22198 * because all references to it will be lost. If this function is
22199 * not provided (@c NULL is given), index items will be @b
22200 * duplicated, if @p cmp_func returns @c 0.
22202 * Despite the most common usage of the @p letter argument is for
22203 * single char strings, one could use arbitrary strings as index
22206 * @c item will be the pointer returned back on @c "changed", @c
22207 * "delay,changed" and @c "selected" smart events.
22211 EAPI void elm_index_item_sorted_insert(Evas_Object *obj, const char *letter, const void *item, Eina_Compare_Cb cmp_func, Eina_Compare_Cb cmp_data_func) EINA_ARG_NONNULL(1);
22214 * Remove an item from a given index widget, <b>to be referenced by
22215 * it's data value</b>.
22217 * @param obj The index object
22218 * @param item The item's data pointer for the item to be removed
22221 * If a deletion callback is set, via elm_index_item_del_cb_set(),
22222 * that callback function will be called by this one.
22224 * @warning The item to be removed from @p obj will be found via
22225 * its item data pointer, and not by an #Elm_Index_Item handle.
22229 EAPI void elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22232 * Find a given index widget's item, <b>using item data</b>.
22234 * @param obj The index object
22235 * @param item The item data pointed to by the desired index item
22236 * @return The index item handle, if found, or @c NULL otherwise
22240 EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
22243 * Removes @b all items from a given index widget.
22245 * @param obj The index object.
22247 * If deletion callbacks are set, via elm_index_item_del_cb_set(),
22248 * that callback function will be called for each item in @p obj.
22252 EAPI void elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22255 * Go to a given items level on a index widget
22257 * @param obj The index object
22258 * @param level The index level (one of @c 0 or @c 1)
22262 EAPI void elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
22265 * Return the data associated with a given index widget item
22267 * @param it The index widget item handle
22268 * @return The data associated with @p it
22270 * @see elm_index_item_data_set()
22274 EAPI void *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22277 * Set the data associated with a given index widget item
22279 * @param it The index widget item handle
22280 * @param data The new data pointer to set to @p it
22282 * This sets new item data on @p it.
22284 * @warning The old data pointer won't be touched by this function, so
22285 * the user had better to free that old data himself/herself.
22289 EAPI void elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
22292 * Set the function to be called when a given index widget item is freed.
22294 * @param it The item to set the callback on
22295 * @param func The function to call on the item's deletion
22297 * When called, @p func will have both @c data and @c event_info
22298 * arguments with the @p it item's data value and, naturally, the
22299 * @c obj argument with a handle to the parent index widget.
22303 EAPI void elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
22306 * Get the letter (string) set on a given index widget item.
22308 * @param it The index item handle
22309 * @return The letter string set on @p it
22313 EAPI const char *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
22320 * @defgroup Photocam Photocam
22322 * @image html img/widget/photocam/preview-00.png
22323 * @image latex img/widget/photocam/preview-00.eps
22325 * This is a widget specifically for displaying high-resolution digital
22326 * camera photos giving speedy feedback (fast load), low memory footprint
22327 * and zooming and panning as well as fitting logic. It is entirely focused
22328 * on jpeg images, and takes advantage of properties of the jpeg format (via
22329 * evas loader features in the jpeg loader).
22331 * Signals that you can add callbacks for are:
22332 * @li "clicked" - This is called when a user has clicked the photo without
22334 * @li "press" - This is called when a user has pressed down on the photo.
22335 * @li "longpressed" - This is called when a user has pressed down on the
22336 * photo for a long time without dragging around.
22337 * @li "clicked,double" - This is called when a user has double-clicked the
22339 * @li "load" - Photo load begins.
22340 * @li "loaded" - This is called when the image file load is complete for the
22341 * first view (low resolution blurry version).
22342 * @li "load,detail" - Photo detailed data load begins.
22343 * @li "loaded,detail" - This is called when the image file load is complete
22344 * for the detailed image data (full resolution needed).
22345 * @li "zoom,start" - Zoom animation started.
22346 * @li "zoom,stop" - Zoom animation stopped.
22347 * @li "zoom,change" - Zoom changed when using an auto zoom mode.
22348 * @li "scroll" - the content has been scrolled (moved)
22349 * @li "scroll,anim,start" - scrolling animation has started
22350 * @li "scroll,anim,stop" - scrolling animation has stopped
22351 * @li "scroll,drag,start" - dragging the contents around has started
22352 * @li "scroll,drag,stop" - dragging the contents around has stopped
22354 * @ref tutorial_photocam shows the API in action.
22358 * @brief Types of zoom available.
22360 typedef enum _Elm_Photocam_Zoom_Mode
22362 ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
22363 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
22364 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
22365 ELM_PHOTOCAM_ZOOM_MODE_LAST
22366 } Elm_Photocam_Zoom_Mode;
22368 * @brief Add a new Photocam object
22370 * @param parent The parent object
22371 * @return The new object or NULL if it cannot be created
22373 EAPI Evas_Object *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22375 * @brief Set the photo file to be shown
22377 * @param obj The photocam object
22378 * @param file The photo file
22379 * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
22381 * This sets (and shows) the specified file (with a relative or absolute
22382 * path) and will return a load error (same error that
22383 * evas_object_image_load_error_get() will return). The image will change and
22384 * adjust its size at this point and begin a background load process for this
22385 * photo that at some time in the future will be displayed at the full
22388 EAPI Evas_Load_Error elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
22390 * @brief Returns the path of the current image file
22392 * @param obj The photocam object
22393 * @return Returns the path
22395 * @see elm_photocam_file_set()
22397 EAPI const char *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22399 * @brief Set the zoom level of the photo
22401 * @param obj The photocam object
22402 * @param zoom The zoom level to set
22404 * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
22405 * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
22406 * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
22407 * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
22410 EAPI void elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
22412 * @brief Get the zoom level of the photo
22414 * @param obj The photocam object
22415 * @return The current zoom level
22417 * This returns the current zoom level of the photocam object. Note that if
22418 * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
22419 * (which is the default), the zoom level may be changed at any time by the
22420 * photocam object itself to account for photo size and photocam viewpoer
22423 * @see elm_photocam_zoom_set()
22424 * @see elm_photocam_zoom_mode_set()
22426 EAPI double elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22428 * @brief Set the zoom mode
22430 * @param obj The photocam object
22431 * @param mode The desired mode
22433 * This sets the zoom mode to manual or one of several automatic levels.
22434 * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
22435 * elm_photocam_zoom_set() and will stay at that level until changed by code
22436 * or until zoom mode is changed. This is the default mode. The Automatic
22437 * modes will allow the photocam object to automatically adjust zoom mode
22438 * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
22439 * the photo fits EXACTLY inside the scroll frame with no pixels outside this
22440 * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
22441 * pixels within the frame are left unfilled.
22443 EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22445 * @brief Get the zoom mode
22447 * @param obj The photocam object
22448 * @return The current zoom mode
22450 * This gets the current zoom mode of the photocam object.
22452 * @see elm_photocam_zoom_mode_set()
22454 EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22456 * @brief Get the current image pixel width and height
22458 * @param obj The photocam object
22459 * @param w A pointer to the width return
22460 * @param h A pointer to the height return
22462 * This gets the current photo pixel width and height (for the original).
22463 * The size will be returned in the integers @p w and @p h that are pointed
22466 EAPI void elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
22468 * @brief Get the area of the image that is currently shown
22471 * @param x A pointer to the X-coordinate of region
22472 * @param y A pointer to the Y-coordinate of region
22473 * @param w A pointer to the width
22474 * @param h A pointer to the height
22476 * @see elm_photocam_image_region_show()
22477 * @see elm_photocam_image_region_bring_in()
22479 EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
22481 * @brief Set the viewed portion of the image
22483 * @param obj The photocam object
22484 * @param x X-coordinate of region in image original pixels
22485 * @param y Y-coordinate of region in image original pixels
22486 * @param w Width of region in image original pixels
22487 * @param h Height of region in image original pixels
22489 * This shows the region of the image without using animation.
22491 EAPI void elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22493 * @brief Bring in the viewed portion of the image
22495 * @param obj The photocam object
22496 * @param x X-coordinate of region in image original pixels
22497 * @param y Y-coordinate of region in image original pixels
22498 * @param w Width of region in image original pixels
22499 * @param h Height of region in image original pixels
22501 * This shows the region of the image using animation.
22503 EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
22505 * @brief Set the paused state for photocam
22507 * @param obj The photocam object
22508 * @param paused The pause state to set
22510 * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
22511 * photocam. The default is off. This will stop zooming using animation on
22512 * zoom levels changes and change instantly. This will stop any existing
22513 * animations that are running.
22515 EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22517 * @brief Get the paused state for photocam
22519 * @param obj The photocam object
22520 * @return The current paused state
22522 * This gets the current paused state for the photocam object.
22524 * @see elm_photocam_paused_set()
22526 EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22528 * @brief Get the internal low-res image used for photocam
22530 * @param obj The photocam object
22531 * @return The internal image object handle, or NULL if none exists
22533 * This gets the internal image object inside photocam. Do not modify it. It
22534 * is for inspection only, and hooking callbacks to. Nothing else. It may be
22535 * deleted at any time as well.
22537 EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22539 * @brief Set the photocam scrolling bouncing.
22541 * @param obj The photocam object
22542 * @param h_bounce bouncing for horizontal
22543 * @param v_bounce bouncing for vertical
22545 EAPI void elm_photocam_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22547 * @brief Get the photocam scrolling bouncing.
22549 * @param obj The photocam object
22550 * @param h_bounce bouncing for horizontal
22551 * @param v_bounce bouncing for vertical
22553 * @see elm_photocam_bounce_set()
22555 EAPI void elm_photocam_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
22561 * @defgroup Map Map
22562 * @ingroup Elementary
22564 * @image html img/widget/map/preview-00.png
22565 * @image latex img/widget/map/preview-00.eps
22567 * This is a widget specifically for displaying a map. It uses basically
22568 * OpenStreetMap provider http://www.openstreetmap.org/,
22569 * but custom providers can be added.
22571 * It supports some basic but yet nice features:
22572 * @li zoom and scroll
22573 * @li markers with content to be displayed when user clicks over it
22574 * @li group of markers
22577 * Smart callbacks one can listen to:
22579 * - "clicked" - This is called when a user has clicked the map without
22581 * - "press" - This is called when a user has pressed down on the map.
22582 * - "longpressed" - This is called when a user has pressed down on the map
22583 * for a long time without dragging around.
22584 * - "clicked,double" - This is called when a user has double-clicked
22586 * - "load,detail" - Map detailed data load begins.
22587 * - "loaded,detail" - This is called when all currently visible parts of
22588 * the map are loaded.
22589 * - "zoom,start" - Zoom animation started.
22590 * - "zoom,stop" - Zoom animation stopped.
22591 * - "zoom,change" - Zoom changed when using an auto zoom mode.
22592 * - "scroll" - the content has been scrolled (moved).
22593 * - "scroll,anim,start" - scrolling animation has started.
22594 * - "scroll,anim,stop" - scrolling animation has stopped.
22595 * - "scroll,drag,start" - dragging the contents around has started.
22596 * - "scroll,drag,stop" - dragging the contents around has stopped.
22597 * - "downloaded" - This is called when all currently required map images
22599 * - "route,load" - This is called when route request begins.
22600 * - "route,loaded" - This is called when route request ends.
22601 * - "name,load" - This is called when name request begins.
22602 * - "name,loaded- This is called when name request ends.
22604 * Available style for map widget:
22607 * Available style for markers:
22612 * Available style for marker bubble:
22615 * List of examples:
22616 * @li @ref map_example_01
22617 * @li @ref map_example_02
22618 * @li @ref map_example_03
22627 * @enum _Elm_Map_Zoom_Mode
22628 * @typedef Elm_Map_Zoom_Mode
22630 * Set map's zoom behavior. It can be set to manual or automatic.
22632 * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
22634 * Values <b> don't </b> work as bitmask, only one can be choosen.
22636 * @note Valid sizes are 2^zoom, consequently the map may be smaller
22637 * than the scroller view.
22639 * @see elm_map_zoom_mode_set()
22640 * @see elm_map_zoom_mode_get()
22644 typedef enum _Elm_Map_Zoom_Mode
22646 ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
22647 ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
22648 ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
22649 ELM_MAP_ZOOM_MODE_LAST
22650 } Elm_Map_Zoom_Mode;
22653 * @enum _Elm_Map_Route_Sources
22654 * @typedef Elm_Map_Route_Sources
22656 * Set route service to be used. By default used source is
22657 * #ELM_MAP_ROUTE_SOURCE_YOURS.
22659 * @see elm_map_route_source_set()
22660 * @see elm_map_route_source_get()
22664 typedef enum _Elm_Map_Route_Sources
22666 ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
22667 ELM_MAP_ROUTE_SOURCE_MONAV, /**< MoNav offers exact routing without heuristic assumptions. Its routing core is based on Contraction Hierarchies. It's not working with Map yet. */
22668 ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
22669 ELM_MAP_ROUTE_SOURCE_LAST
22670 } Elm_Map_Route_Sources;
22672 typedef enum _Elm_Map_Name_Sources
22674 ELM_MAP_NAME_SOURCE_NOMINATIM,
22675 ELM_MAP_NAME_SOURCE_LAST
22676 } Elm_Map_Name_Sources;
22679 * @enum _Elm_Map_Route_Type
22680 * @typedef Elm_Map_Route_Type
22682 * Set type of transport used on route.
22684 * @see elm_map_route_add()
22688 typedef enum _Elm_Map_Route_Type
22690 ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
22691 ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
22692 ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
22693 ELM_MAP_ROUTE_TYPE_LAST
22694 } Elm_Map_Route_Type;
22697 * @enum _Elm_Map_Route_Method
22698 * @typedef Elm_Map_Route_Method
22700 * Set the routing method, what should be priorized, time or distance.
22702 * @see elm_map_route_add()
22706 typedef enum _Elm_Map_Route_Method
22708 ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
22709 ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
22710 ELM_MAP_ROUTE_METHOD_LAST
22711 } Elm_Map_Route_Method;
22713 typedef enum _Elm_Map_Name_Method
22715 ELM_MAP_NAME_METHOD_SEARCH,
22716 ELM_MAP_NAME_METHOD_REVERSE,
22717 ELM_MAP_NAME_METHOD_LAST
22718 } Elm_Map_Name_Method;
22720 typedef struct _Elm_Map_Marker Elm_Map_Marker; /**< A marker to be shown in a specific point of the map. Can be created with elm_map_marker_add() and deleted with elm_map_marker_remove(). */
22721 typedef struct _Elm_Map_Marker_Class Elm_Map_Marker_Class; /**< Each marker must be associated to a class. It's required to add a mark. The class defines the style of the marker when a marker is displayed alone (not grouped). A new class can be created with elm_map_marker_class_new(). */
22722 typedef struct _Elm_Map_Group_Class Elm_Map_Group_Class; /**< Each marker must be associated to a group class. It's required to add a mark. The group class defines the style of the marker when a marker is grouped to other markers. Markers with the same group are grouped if they are close. A new group class can be created with elm_map_marker_group_class_new(). */
22723 typedef struct _Elm_Map_Route Elm_Map_Route; /**< A route to be shown in the map. Can be created with elm_map_route_add() and deleted with elm_map_route_remove(). */
22724 typedef struct _Elm_Map_Name Elm_Map_Name; /**< A handle for specific coordinates. */
22725 typedef struct _Elm_Map_Track Elm_Map_Track;
22727 typedef Evas_Object *(*ElmMapMarkerGetFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Bubble content fetching class function for marker classes. When the user click on a marker, a bubble is displayed with a content. */
22728 typedef void (*ElmMapMarkerDelFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
22729 typedef Evas_Object *(*ElmMapMarkerIconGetFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
22730 typedef Evas_Object *(*ElmMapGroupIconGetFunc) (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
22732 typedef char *(*ElmMapModuleSourceFunc) (void);
22733 typedef int (*ElmMapModuleZoomMinFunc) (void);
22734 typedef int (*ElmMapModuleZoomMaxFunc) (void);
22735 typedef char *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
22736 typedef int (*ElmMapModuleRouteSourceFunc) (void);
22737 typedef char *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
22738 typedef char *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
22739 typedef Eina_Bool (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
22740 typedef Eina_Bool (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
22743 * Add a new map widget to the given parent Elementary (container) object.
22745 * @param parent The parent object.
22746 * @return a new map widget handle or @c NULL, on errors.
22748 * This function inserts a new map widget on the canvas.
22752 EAPI Evas_Object *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22755 * Set the zoom level of the map.
22757 * @param obj The map object.
22758 * @param zoom The zoom level to set.
22760 * This sets the zoom level.
22762 * It will respect limits defined by elm_map_source_zoom_min_set() and
22763 * elm_map_source_zoom_max_set().
22765 * By default these values are 0 (world map) and 18 (maximum zoom).
22767 * This function should be used when zoom mode is set to
22768 * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
22769 * with elm_map_zoom_mode_set().
22771 * @see elm_map_zoom_mode_set().
22772 * @see elm_map_zoom_get().
22776 EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
22779 * Get the zoom level of the map.
22781 * @param obj The map object.
22782 * @return The current zoom level.
22784 * This returns the current zoom level of the map object.
22786 * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
22787 * (which is the default), the zoom level may be changed at any time by the
22788 * map object itself to account for map size and map viewport size.
22790 * @see elm_map_zoom_set() for details.
22794 EAPI int elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22797 * Set the zoom mode used by the map object.
22799 * @param obj The map object.
22800 * @param mode The zoom mode of the map, being it one of
22801 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22802 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22804 * This sets the zoom mode to manual or one of the automatic levels.
22805 * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
22806 * elm_map_zoom_set() and will stay at that level until changed by code
22807 * or until zoom mode is changed. This is the default mode.
22809 * The Automatic modes will allow the map object to automatically
22810 * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
22811 * adjust zoom so the map fits inside the scroll frame with no pixels
22812 * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
22813 * ensure no pixels within the frame are left unfilled. Do not forget that
22814 * the valid sizes are 2^zoom, consequently the map may be smaller than
22815 * the scroller view.
22817 * @see elm_map_zoom_set()
22821 EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
22824 * Get the zoom mode used by the map object.
22826 * @param obj The map object.
22827 * @return The zoom mode of the map, being it one of
22828 * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
22829 * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
22831 * This function returns the current zoom mode used by the map object.
22833 * @see elm_map_zoom_mode_set() for more details.
22837 EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22840 * Get the current coordinates of the map.
22842 * @param obj The map object.
22843 * @param lon Pointer where to store longitude.
22844 * @param lat Pointer where to store latitude.
22846 * This gets the current center coordinates of the map object. It can be
22847 * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
22849 * @see elm_map_geo_region_bring_in()
22850 * @see elm_map_geo_region_show()
22854 EAPI void elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
22857 * Animatedly bring in given coordinates to the center of the map.
22859 * @param obj The map object.
22860 * @param lon Longitude to center at.
22861 * @param lat Latitude to center at.
22863 * This causes map to jump to the given @p lat and @p lon coordinates
22864 * and show it (by scrolling) in the center of the viewport, if it is not
22865 * already centered. This will use animation to do so and take a period
22866 * of time to complete.
22868 * @see elm_map_geo_region_show() for a function to avoid animation.
22869 * @see elm_map_geo_region_get()
22873 EAPI void elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22876 * Show the given coordinates at the center of the map, @b immediately.
22878 * @param obj The map object.
22879 * @param lon Longitude to center at.
22880 * @param lat Latitude to center at.
22882 * This causes map to @b redraw its viewport's contents to the
22883 * region contining the given @p lat and @p lon, that will be moved to the
22884 * center of the map.
22886 * @see elm_map_geo_region_bring_in() for a function to move with animation.
22887 * @see elm_map_geo_region_get()
22891 EAPI void elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
22894 * Pause or unpause the map.
22896 * @param obj The map object.
22897 * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
22900 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22903 * The default is off.
22905 * This will stop zooming using animation, changing zoom levels will
22906 * change instantly. This will stop any existing animations that are running.
22908 * @see elm_map_paused_get()
22912 EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22915 * Get a value whether map is paused or not.
22917 * @param obj The map object.
22918 * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
22919 * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
22921 * This gets the current paused state for the map object.
22923 * @see elm_map_paused_set() for details.
22927 EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22930 * Set to show markers during zoom level changes or not.
22932 * @param obj The map object.
22933 * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
22936 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22939 * The default is off.
22941 * This will stop zooming using animation, changing zoom levels will
22942 * change instantly. This will stop any existing animations that are running.
22944 * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
22947 * The default is off.
22949 * Enabling it will force the map to stop displaying the markers during
22950 * zoom level changes. Set to on if you have a large number of markers.
22952 * @see elm_map_paused_markers_get()
22956 EAPI void elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
22959 * Get a value whether markers will be displayed on zoom level changes or not
22961 * @param obj The map object.
22962 * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
22963 * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
22965 * This gets the current markers paused state for the map object.
22967 * @see elm_map_paused_markers_set() for details.
22971 EAPI Eina_Bool elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22974 * Get the information of downloading status.
22976 * @param obj The map object.
22977 * @param try_num Pointer where to store number of tiles being downloaded.
22978 * @param finish_num Pointer where to store number of tiles successfully
22981 * This gets the current downloading status for the map object, the number
22982 * of tiles being downloaded and the number of tiles already downloaded.
22986 EAPI void elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
22989 * Convert a pixel coordinate (x,y) into a geographic coordinate
22990 * (longitude, latitude).
22992 * @param obj The map object.
22993 * @param x the coordinate.
22994 * @param y the coordinate.
22995 * @param size the size in pixels of the map.
22996 * The map is a square and generally his size is : pow(2.0, zoom)*256.
22997 * @param lon Pointer where to store the longitude that correspond to x.
22998 * @param lat Pointer where to store the latitude that correspond to y.
23000 * @note Origin pixel point is the top left corner of the viewport.
23001 * Map zoom and size are taken on account.
23003 * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
23007 EAPI void elm_map_utils_convert_coord_into_geo(const Evas_Object *obj, int x, int y, int size, double *lon, double *lat) EINA_ARG_NONNULL(1, 5, 6);
23010 * Convert a geographic coordinate (longitude, latitude) into a pixel
23011 * coordinate (x, y).
23013 * @param obj The map object.
23014 * @param lon the longitude.
23015 * @param lat the latitude.
23016 * @param size the size in pixels of the map. The map is a square
23017 * and generally his size is : pow(2.0, zoom)*256.
23018 * @param x Pointer where to store the horizontal pixel coordinate that
23019 * correspond to the longitude.
23020 * @param y Pointer where to store the vertical pixel coordinate that
23021 * correspond to the latitude.
23023 * @note Origin pixel point is the top left corner of the viewport.
23024 * Map zoom and size are taken on account.
23026 * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
23030 EAPI void elm_map_utils_convert_geo_into_coord(const Evas_Object *obj, double lon, double lat, int size, int *x, int *y) EINA_ARG_NONNULL(1, 5, 6);
23033 * Convert a geographic coordinate (longitude, latitude) into a name
23036 * @param obj The map object.
23037 * @param lon the longitude.
23038 * @param lat the latitude.
23039 * @return name A #Elm_Map_Name handle for this coordinate.
23041 * To get the string for this address, elm_map_name_address_get()
23044 * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
23048 EAPI Elm_Map_Name *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
23051 * Convert a name (address) into a geographic coordinate
23052 * (longitude, latitude).
23054 * @param obj The map object.
23055 * @param name The address.
23056 * @return name A #Elm_Map_Name handle for this address.
23058 * To get the longitude and latitude, elm_map_name_region_get()
23061 * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
23065 EAPI Elm_Map_Name *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
23068 * Convert a pixel coordinate into a rotated pixel coordinate.
23070 * @param obj The map object.
23071 * @param x horizontal coordinate of the point to rotate.
23072 * @param y vertical coordinate of the point to rotate.
23073 * @param cx rotation's center horizontal position.
23074 * @param cy rotation's center vertical position.
23075 * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
23076 * @param xx Pointer where to store rotated x.
23077 * @param yy Pointer where to store rotated y.
23081 EAPI void elm_map_utils_rotate_coord(const Evas_Object *obj, const Evas_Coord x, const Evas_Coord y, const Evas_Coord cx, const Evas_Coord cy, const double degree, Evas_Coord *xx, Evas_Coord *yy) EINA_ARG_NONNULL(1);
23084 * Add a new marker to the map object.
23086 * @param obj The map object.
23087 * @param lon The longitude of the marker.
23088 * @param lat The latitude of the marker.
23089 * @param clas The class, to use when marker @b isn't grouped to others.
23090 * @param clas_group The class group, to use when marker is grouped to others
23091 * @param data The data passed to the callbacks.
23093 * @return The created marker or @c NULL upon failure.
23095 * A marker will be created and shown in a specific point of the map, defined
23096 * by @p lon and @p lat.
23098 * It will be displayed using style defined by @p class when this marker
23099 * is displayed alone (not grouped). A new class can be created with
23100 * elm_map_marker_class_new().
23102 * If the marker is grouped to other markers, it will be displayed with
23103 * style defined by @p class_group. Markers with the same group are grouped
23104 * if they are close. A new group class can be created with
23105 * elm_map_marker_group_class_new().
23107 * Markers created with this method can be deleted with
23108 * elm_map_marker_remove().
23110 * A marker can have associated content to be displayed by a bubble,
23111 * when a user click over it, as well as an icon. These objects will
23112 * be fetch using class' callback functions.
23114 * @see elm_map_marker_class_new()
23115 * @see elm_map_marker_group_class_new()
23116 * @see elm_map_marker_remove()
23120 EAPI Elm_Map_Marker *elm_map_marker_add(Evas_Object *obj, double lon, double lat, Elm_Map_Marker_Class *clas, Elm_Map_Group_Class *clas_group, void *data) EINA_ARG_NONNULL(1, 4, 5);
23123 * Set the maximum numbers of markers' content to be displayed in a group.
23125 * @param obj The map object.
23126 * @param max The maximum numbers of items displayed in a bubble.
23128 * A bubble will be displayed when the user clicks over the group,
23129 * and will place the content of markers that belong to this group
23132 * A group can have a long list of markers, consequently the creation
23133 * of the content of the bubble can be very slow.
23135 * In order to avoid this, a maximum number of items is displayed
23138 * By default this number is 30.
23140 * Marker with the same group class are grouped if they are close.
23142 * @see elm_map_marker_add()
23146 EAPI void elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
23149 * Remove a marker from the map.
23151 * @param marker The marker to remove.
23153 * @see elm_map_marker_add()
23157 EAPI void elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23160 * Get the current coordinates of the marker.
23162 * @param marker marker.
23163 * @param lat Pointer where to store the marker's latitude.
23164 * @param lon Pointer where to store the marker's longitude.
23166 * These values are set when adding markers, with function
23167 * elm_map_marker_add().
23169 * @see elm_map_marker_add()
23173 EAPI void elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
23176 * Animatedly bring in given marker to the center of the map.
23178 * @param marker The marker to center at.
23180 * This causes map to jump to the given @p marker's coordinates
23181 * and show it (by scrolling) in the center of the viewport, if it is not
23182 * already centered. This will use animation to do so and take a period
23183 * of time to complete.
23185 * @see elm_map_marker_show() for a function to avoid animation.
23186 * @see elm_map_marker_region_get()
23190 EAPI void elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23193 * Show the given marker at the center of the map, @b immediately.
23195 * @param marker The marker to center at.
23197 * This causes map to @b redraw its viewport's contents to the
23198 * region contining the given @p marker's coordinates, that will be
23199 * moved to the center of the map.
23201 * @see elm_map_marker_bring_in() for a function to move with animation.
23202 * @see elm_map_markers_list_show() if more than one marker need to be
23204 * @see elm_map_marker_region_get()
23208 EAPI void elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23211 * Move and zoom the map to display a list of markers.
23213 * @param markers A list of #Elm_Map_Marker handles.
23215 * The map will be centered on the center point of the markers in the list.
23216 * Then the map will be zoomed in order to fit the markers using the maximum
23217 * zoom which allows display of all the markers.
23219 * @warning All the markers should belong to the same map object.
23221 * @see elm_map_marker_show() to show a single marker.
23222 * @see elm_map_marker_bring_in()
23226 EAPI void elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
23229 * Get the Evas object returned by the ElmMapMarkerGetFunc callback
23231 * @param marker The marker wich content should be returned.
23232 * @return Return the evas object if it exists, else @c NULL.
23234 * To set callback function #ElmMapMarkerGetFunc for the marker class,
23235 * elm_map_marker_class_get_cb_set() should be used.
23237 * This content is what will be inside the bubble that will be displayed
23238 * when an user clicks over the marker.
23240 * This returns the actual Evas object used to be placed inside
23241 * the bubble. This may be @c NULL, as it may
23242 * not have been created or may have been deleted, at any time, by
23243 * the map. <b>Do not modify this object</b> (move, resize,
23244 * show, hide, etc.), as the map is controlling it. This
23245 * function is for querying, emitting custom signals or hooking
23246 * lower level callbacks for events on that object. Do not delete
23247 * this object under any circumstances.
23251 EAPI Evas_Object *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23254 * Update the marker
23256 * @param marker The marker to be updated.
23258 * If a content is set to this marker, it will call function to delete it,
23259 * #ElmMapMarkerDelFunc, and then will fetch the content again with
23260 * #ElmMapMarkerGetFunc.
23262 * These functions are set for the marker class with
23263 * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
23267 EAPI void elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
23270 * Close all the bubbles opened by the user.
23272 * @param obj The map object.
23274 * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
23275 * when the user clicks on a marker.
23277 * This functions is set for the marker class with
23278 * elm_map_marker_class_get_cb_set().
23282 EAPI void elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
23285 * Create a new group class.
23287 * @param obj The map object.
23288 * @return Returns the new group class.
23290 * Each marker must be associated to a group class. Markers in the same
23291 * group are grouped if they are close.
23293 * The group class defines the style of the marker when a marker is grouped
23294 * to others markers. When it is alone, another class will be used.
23296 * A group class will need to be provided when creating a marker with
23297 * elm_map_marker_add().
23299 * Some properties and functions can be set by class, as:
23300 * - style, with elm_map_group_class_style_set()
23301 * - data - to be associated to the group class. It can be set using
23302 * elm_map_group_class_data_set().
23303 * - min zoom to display markers, set with
23304 * elm_map_group_class_zoom_displayed_set().
23305 * - max zoom to group markers, set using
23306 * elm_map_group_class_zoom_grouped_set().
23307 * - visibility - set if markers will be visible or not, set with
23308 * elm_map_group_class_hide_set().
23309 * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
23310 * It can be set using elm_map_group_class_icon_cb_set().
23312 * @see elm_map_marker_add()
23313 * @see elm_map_group_class_style_set()
23314 * @see elm_map_group_class_data_set()
23315 * @see elm_map_group_class_zoom_displayed_set()
23316 * @see elm_map_group_class_zoom_grouped_set()
23317 * @see elm_map_group_class_hide_set()
23318 * @see elm_map_group_class_icon_cb_set()
23322 EAPI Elm_Map_Group_Class *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23325 * Set the marker's style of a group class.
23327 * @param clas The group class.
23328 * @param style The style to be used by markers.
23330 * Each marker must be associated to a group class, and will use the style
23331 * defined by such class when grouped to other markers.
23333 * The following styles are provided by default theme:
23334 * @li @c radio - blue circle
23335 * @li @c radio2 - green circle
23338 * @see elm_map_group_class_new() for more details.
23339 * @see elm_map_marker_add()
23343 EAPI void elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23346 * Set the icon callback function of a group class.
23348 * @param clas The group class.
23349 * @param icon_get The callback function that will return the icon.
23351 * Each marker must be associated to a group class, and it can display a
23352 * custom icon. The function @p icon_get must return this icon.
23354 * @see elm_map_group_class_new() for more details.
23355 * @see elm_map_marker_add()
23359 EAPI void elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23362 * Set the data associated to the group class.
23364 * @param clas The group class.
23365 * @param data The new user data.
23367 * This data will be passed for callback functions, like icon get callback,
23368 * that can be set with elm_map_group_class_icon_cb_set().
23370 * If a data was previously set, the object will lose the pointer for it,
23371 * so if needs to be freed, you must do it yourself.
23373 * @see elm_map_group_class_new() for more details.
23374 * @see elm_map_group_class_icon_cb_set()
23375 * @see elm_map_marker_add()
23379 EAPI void elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
23382 * Set the minimum zoom from where the markers are displayed.
23384 * @param clas The group class.
23385 * @param zoom The minimum zoom.
23387 * Markers only will be displayed when the map is displayed at @p zoom
23390 * @see elm_map_group_class_new() for more details.
23391 * @see elm_map_marker_add()
23395 EAPI void elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23398 * Set the zoom from where the markers are no more grouped.
23400 * @param clas The group class.
23401 * @param zoom The maximum zoom.
23403 * Markers only will be grouped when the map is displayed at
23404 * less than @p zoom.
23406 * @see elm_map_group_class_new() for more details.
23407 * @see elm_map_marker_add()
23411 EAPI void elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
23414 * Set if the markers associated to the group class @clas are hidden or not.
23416 * @param clas The group class.
23417 * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
23420 * If @p hide is @c EINA_TRUE the markers will be hidden, but default
23425 EAPI void elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
23428 * Create a new marker class.
23430 * @param obj The map object.
23431 * @return Returns the new group class.
23433 * Each marker must be associated to a class.
23435 * The marker class defines the style of the marker when a marker is
23436 * displayed alone, i.e., not grouped to to others markers. When grouped
23437 * it will use group class style.
23439 * A marker class will need to be provided when creating a marker with
23440 * elm_map_marker_add().
23442 * Some properties and functions can be set by class, as:
23443 * - style, with elm_map_marker_class_style_set()
23444 * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
23445 * It can be set using elm_map_marker_class_icon_cb_set().
23446 * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
23447 * Set using elm_map_marker_class_get_cb_set().
23448 * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
23449 * Set using elm_map_marker_class_del_cb_set().
23451 * @see elm_map_marker_add()
23452 * @see elm_map_marker_class_style_set()
23453 * @see elm_map_marker_class_icon_cb_set()
23454 * @see elm_map_marker_class_get_cb_set()
23455 * @see elm_map_marker_class_del_cb_set()
23459 EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
23462 * Set the marker's style of a marker class.
23464 * @param clas The marker class.
23465 * @param style The style to be used by markers.
23467 * Each marker must be associated to a marker class, and will use the style
23468 * defined by such class when alone, i.e., @b not grouped to other markers.
23470 * The following styles are provided by default theme:
23475 * @see elm_map_marker_class_new() for more details.
23476 * @see elm_map_marker_add()
23480 EAPI void elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
23483 * Set the icon callback function of a marker class.
23485 * @param clas The marker class.
23486 * @param icon_get The callback function that will return the icon.
23488 * Each marker must be associated to a marker class, and it can display a
23489 * custom icon. The function @p icon_get must return this icon.
23491 * @see elm_map_marker_class_new() for more details.
23492 * @see elm_map_marker_add()
23496 EAPI void elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
23499 * Set the bubble content callback function of a marker class.
23501 * @param clas The marker class.
23502 * @param get The callback function that will return the content.
23504 * Each marker must be associated to a marker class, and it can display a
23505 * a content on a bubble that opens when the user click over the marker.
23506 * The function @p get must return this content object.
23508 * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
23511 * @see elm_map_marker_class_new() for more details.
23512 * @see elm_map_marker_class_del_cb_set()
23513 * @see elm_map_marker_add()
23517 EAPI void elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
23520 * Set the callback function used to delete bubble content of a marker class.
23522 * @param clas The marker class.
23523 * @param del The callback function that will delete the content.
23525 * Each marker must be associated to a marker class, and it can display a
23526 * a content on a bubble that opens when the user click over the marker.
23527 * The function to return such content can be set with
23528 * elm_map_marker_class_get_cb_set().
23530 * If this content must be freed, a callback function need to be
23531 * set for that task with this function.
23533 * If this callback is defined it will have to delete (or not) the
23534 * object inside, but if the callback is not defined the object will be
23535 * destroyed with evas_object_del().
23537 * @see elm_map_marker_class_new() for more details.
23538 * @see elm_map_marker_class_get_cb_set()
23539 * @see elm_map_marker_add()
23543 EAPI void elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
23546 * Get the list of available sources.
23548 * @param obj The map object.
23549 * @return The source names list.
23551 * It will provide a list with all available sources, that can be set as
23552 * current source with elm_map_source_name_set(), or get with
23553 * elm_map_source_name_get().
23555 * Available sources:
23561 * @see elm_map_source_name_set() for more details.
23562 * @see elm_map_source_name_get()
23566 EAPI const char **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23569 * Set the source of the map.
23571 * @param obj The map object.
23572 * @param source The source to be used.
23574 * Map widget retrieves images that composes the map from a web service.
23575 * This web service can be set with this method.
23577 * A different service can return a different maps with different
23578 * information and it can use different zoom values.
23580 * The @p source_name need to match one of the names provided by
23581 * elm_map_source_names_get().
23583 * The current source can be get using elm_map_source_name_get().
23585 * @see elm_map_source_names_get()
23586 * @see elm_map_source_name_get()
23591 EAPI void elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
23594 * Get the name of currently used source.
23596 * @param obj The map object.
23597 * @return Returns the name of the source in use.
23599 * @see elm_map_source_name_set() for more details.
23603 EAPI const char *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23606 * Set the source of the route service to be used by the map.
23608 * @param obj The map object.
23609 * @param source The route service to be used, being it one of
23610 * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
23611 * and #ELM_MAP_ROUTE_SOURCE_ORS.
23613 * Each one has its own algorithm, so the route retrieved may
23614 * differ depending on the source route. Now, only the default is working.
23616 * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
23617 * http://www.yournavigation.org/.
23619 * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
23620 * assumptions. Its routing core is based on Contraction Hierarchies.
23622 * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
23624 * @see elm_map_route_source_get().
23628 EAPI void elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
23631 * Get the current route source.
23633 * @param obj The map object.
23634 * @return The source of the route service used by the map.
23636 * @see elm_map_route_source_set() for details.
23640 EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23643 * Set the minimum zoom of the source.
23645 * @param obj The map object.
23646 * @param zoom New minimum zoom value to be used.
23648 * By default, it's 0.
23652 EAPI void elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23655 * Get the minimum zoom of the source.
23657 * @param obj The map object.
23658 * @return Returns the minimum zoom of the source.
23660 * @see elm_map_source_zoom_min_set() for details.
23664 EAPI int elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23667 * Set the maximum zoom of the source.
23669 * @param obj The map object.
23670 * @param zoom New maximum zoom value to be used.
23672 * By default, it's 18.
23676 EAPI void elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
23679 * Get the maximum zoom of the source.
23681 * @param obj The map object.
23682 * @return Returns the maximum zoom of the source.
23684 * @see elm_map_source_zoom_min_set() for details.
23688 EAPI int elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23691 * Set the user agent used by the map object to access routing services.
23693 * @param obj The map object.
23694 * @param user_agent The user agent to be used by the map.
23696 * User agent is a client application implementing a network protocol used
23697 * in communications within a clientāserver distributed computing system
23699 * The @p user_agent identification string will transmitted in a header
23700 * field @c User-Agent.
23702 * @see elm_map_user_agent_get()
23706 EAPI void elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
23709 * Get the user agent used by the map object.
23711 * @param obj The map object.
23712 * @return The user agent identification string used by the map.
23714 * @see elm_map_user_agent_set() for details.
23718 EAPI const char *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23721 * Add a new route to the map object.
23723 * @param obj The map object.
23724 * @param type The type of transport to be considered when tracing a route.
23725 * @param method The routing method, what should be priorized.
23726 * @param flon The start longitude.
23727 * @param flat The start latitude.
23728 * @param tlon The destination longitude.
23729 * @param tlat The destination latitude.
23731 * @return The created route or @c NULL upon failure.
23733 * A route will be traced by point on coordinates (@p flat, @p flon)
23734 * to point on coordinates (@p tlat, @p tlon), using the route service
23735 * set with elm_map_route_source_set().
23737 * It will take @p type on consideration to define the route,
23738 * depending if the user will be walking or driving, the route may vary.
23739 * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
23740 * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
23742 * Another parameter is what the route should priorize, the minor distance
23743 * or the less time to be spend on the route. So @p method should be one
23744 * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
23746 * Routes created with this method can be deleted with
23747 * elm_map_route_remove(), colored with elm_map_route_color_set(),
23748 * and distance can be get with elm_map_route_distance_get().
23750 * @see elm_map_route_remove()
23751 * @see elm_map_route_color_set()
23752 * @see elm_map_route_distance_get()
23753 * @see elm_map_route_source_set()
23757 EAPI Elm_Map_Route *elm_map_route_add(Evas_Object *obj, Elm_Map_Route_Type type, Elm_Map_Route_Method method, double flon, double flat, double tlon, double tlat) EINA_ARG_NONNULL(1);
23760 * Remove a route from the map.
23762 * @param route The route to remove.
23764 * @see elm_map_route_add()
23768 EAPI void elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23771 * Set the route color.
23773 * @param route The route object.
23774 * @param r Red channel value, from 0 to 255.
23775 * @param g Green channel value, from 0 to 255.
23776 * @param b Blue channel value, from 0 to 255.
23777 * @param a Alpha channel value, from 0 to 255.
23779 * It uses an additive color model, so each color channel represents
23780 * how much of each primary colors must to be used. 0 represents
23781 * ausence of this color, so if all of the three are set to 0,
23782 * the color will be black.
23784 * These component values should be integers in the range 0 to 255,
23785 * (single 8-bit byte).
23787 * This sets the color used for the route. By default, it is set to
23788 * solid red (r = 255, g = 0, b = 0, a = 255).
23790 * For alpha channel, 0 represents completely transparent, and 255, opaque.
23792 * @see elm_map_route_color_get()
23796 EAPI void elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
23799 * Get the route color.
23801 * @param route The route object.
23802 * @param r Pointer where to store the red channel value.
23803 * @param g Pointer where to store the green channel value.
23804 * @param b Pointer where to store the blue channel value.
23805 * @param a Pointer where to store the alpha channel value.
23807 * @see elm_map_route_color_set() for details.
23811 EAPI void elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
23814 * Get the route distance in kilometers.
23816 * @param route The route object.
23817 * @return The distance of route (unit : km).
23821 EAPI double elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23824 * Get the information of route nodes.
23826 * @param route The route object.
23827 * @return Returns a string with the nodes of route.
23831 EAPI const char *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23834 * Get the information of route waypoint.
23836 * @param route the route object.
23837 * @return Returns a string with information about waypoint of route.
23841 EAPI const char *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
23844 * Get the address of the name.
23846 * @param name The name handle.
23847 * @return Returns the address string of @p name.
23849 * This gets the coordinates of the @p name, created with one of the
23850 * conversion functions.
23852 * @see elm_map_utils_convert_name_into_coord()
23853 * @see elm_map_utils_convert_coord_into_name()
23857 EAPI const char *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23860 * Get the current coordinates of the name.
23862 * @param name The name handle.
23863 * @param lat Pointer where to store the latitude.
23864 * @param lon Pointer where to store The longitude.
23866 * This gets the coordinates of the @p name, created with one of the
23867 * conversion functions.
23869 * @see elm_map_utils_convert_name_into_coord()
23870 * @see elm_map_utils_convert_coord_into_name()
23874 EAPI void elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
23877 * Remove a name from the map.
23879 * @param name The name to remove.
23881 * Basically the struct handled by @p name will be freed, so convertions
23882 * between address and coordinates will be lost.
23884 * @see elm_map_utils_convert_name_into_coord()
23885 * @see elm_map_utils_convert_coord_into_name()
23889 EAPI void elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
23894 * @param obj The map object.
23895 * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
23896 * @param cx Rotation's center horizontal position.
23897 * @param cy Rotation's center vertical position.
23899 * @see elm_map_rotate_get()
23903 EAPI void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
23906 * Get the rotate degree of the map
23908 * @param obj The map object
23909 * @param degree Pointer where to store degrees from 0.0 to 360.0
23910 * to rotate arount Z axis.
23911 * @param cx Pointer where to store rotation's center horizontal position.
23912 * @param cy Pointer where to store rotation's center vertical position.
23914 * @see elm_map_rotate_set() to set map rotation.
23918 EAPI void elm_map_rotate_get(const Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy) EINA_ARG_NONNULL(1, 2, 3, 4);
23921 * Enable or disable mouse wheel to be used to zoom in / out the map.
23923 * @param obj The map object.
23924 * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
23927 * Mouse wheel can be used for the user to zoom in or zoom out the map.
23929 * It's disabled by default.
23931 * @see elm_map_wheel_disabled_get()
23935 EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
23938 * Get a value whether mouse wheel is enabled or not.
23940 * @param obj The map object.
23941 * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
23942 * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23944 * Mouse wheel can be used for the user to zoom in or zoom out the map.
23946 * @see elm_map_wheel_disabled_set() for details.
23950 EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23954 * Add a track on the map
23956 * @param obj The map object.
23957 * @param emap The emap route object.
23958 * @return The route object. This is an elm object of type Route.
23960 * @see elm_route_add() for details.
23964 EAPI Evas_Object *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
23968 * Remove a track from the map
23970 * @param obj The map object.
23971 * @param route The track to remove.
23975 EAPI void elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
23982 EAPI Evas_Object *elm_route_add(Evas_Object *parent);
23984 EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
23986 EAPI double elm_route_lon_min_get(Evas_Object *obj);
23987 EAPI double elm_route_lat_min_get(Evas_Object *obj);
23988 EAPI double elm_route_lon_max_get(Evas_Object *obj);
23989 EAPI double elm_route_lat_max_get(Evas_Object *obj);
23993 * @defgroup Panel Panel
23995 * @image html img/widget/panel/preview-00.png
23996 * @image latex img/widget/panel/preview-00.eps
23998 * @brief A panel is a type of animated container that contains subobjects.
23999 * It can be expanded or contracted by clicking the button on it's edge.
24001 * Orientations are as follows:
24002 * @li ELM_PANEL_ORIENT_TOP
24003 * @li ELM_PANEL_ORIENT_LEFT
24004 * @li ELM_PANEL_ORIENT_RIGHT
24006 * Default contents parts of the panel widget that you can use for are:
24007 * @li "default" - A content of the panel
24009 * @ref tutorial_panel shows one way to use this widget.
24012 typedef enum _Elm_Panel_Orient
24014 ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
24015 ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
24016 ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
24017 ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
24018 } Elm_Panel_Orient;
24020 * @brief Adds a panel object
24022 * @param parent The parent object
24024 * @return The panel object, or NULL on failure
24026 EAPI Evas_Object *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24028 * @brief Sets the orientation of the panel
24030 * @param parent The parent object
24031 * @param orient The panel orientation. Can be one of the following:
24032 * @li ELM_PANEL_ORIENT_TOP
24033 * @li ELM_PANEL_ORIENT_LEFT
24034 * @li ELM_PANEL_ORIENT_RIGHT
24036 * Sets from where the panel will (dis)appear.
24038 EAPI void elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
24040 * @brief Get the orientation of the panel.
24042 * @param obj The panel object
24043 * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
24045 EAPI Elm_Panel_Orient elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24047 * @brief Set the content of the panel.
24049 * @param obj The panel object
24050 * @param content The panel content
24052 * Once the content object is set, a previously set one will be deleted.
24053 * If you want to keep that old content object, use the
24054 * elm_panel_content_unset() function.
24056 * @deprecated use elm_object_content_set() instead
24059 EINA_DEPRECATED EAPI void elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24061 * @brief Get the content of the panel.
24063 * @param obj The panel object
24064 * @return The content that is being used
24066 * Return the content object which is set for this widget.
24068 * @see elm_panel_content_set()
24070 * @deprecated use elm_object_content_get() instead
24073 EINA_DEPRECATED EAPI Evas_Object *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24075 * @brief Unset the content of the panel.
24077 * @param obj The panel object
24078 * @return The content that was being used
24080 * Unparent and return the content object which was set for this widget.
24082 * @see elm_panel_content_set()
24084 * @deprecated use elm_object_content_unset() instead
24087 EINA_DEPRECATED EAPI Evas_Object *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24089 * @brief Set the state of the panel.
24091 * @param obj The panel object
24092 * @param hidden If true, the panel will run the animation to contract
24094 EAPI void elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
24096 * @brief Get the state of the panel.
24098 * @param obj The panel object
24099 * @param hidden If true, the panel is in the "hide" state
24101 EAPI Eina_Bool elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24103 * @brief Toggle the hidden state of the panel from code
24105 * @param obj The panel object
24107 EAPI void elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
24113 * @defgroup Panes Panes
24114 * @ingroup Elementary
24116 * @image html img/widget/panes/preview-00.png
24117 * @image latex img/widget/panes/preview-00.eps width=\textwidth
24119 * @image html img/panes.png
24120 * @image latex img/panes.eps width=\textwidth
24122 * The panes adds a dragable bar between two contents. When dragged
24123 * this bar will resize contents size.
24125 * Panes can be displayed vertically or horizontally, and contents
24126 * size proportion can be customized (homogeneous by default).
24128 * Smart callbacks one can listen to:
24129 * - "press" - The panes has been pressed (button wasn't released yet).
24130 * - "unpressed" - The panes was released after being pressed.
24131 * - "clicked" - The panes has been clicked>
24132 * - "clicked,double" - The panes has been double clicked
24134 * Available styles for it:
24137 * Default contents parts of the panes widget that you can use for are:
24138 * @li "left" - A leftside content of the panes
24139 * @li "right" - A rightside content of the panes
24141 * If panes is displayed vertically, left content will be displayed at
24144 * Here is an example on its usage:
24145 * @li @ref panes_example
24149 * @addtogroup Panes
24154 * Add a new panes widget to the given parent Elementary
24155 * (container) object.
24157 * @param parent The parent object.
24158 * @return a new panes widget handle or @c NULL, on errors.
24160 * This function inserts a new panes widget on the canvas.
24164 EAPI Evas_Object *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24167 * Set the left content of the panes widget.
24169 * @param obj The panes object.
24170 * @param content The new left content object.
24172 * Once the content object is set, a previously set one will be deleted.
24173 * If you want to keep that old content object, use the
24174 * elm_panes_content_left_unset() function.
24176 * If panes is displayed vertically, left content will be displayed at
24179 * @see elm_panes_content_left_get()
24180 * @see elm_panes_content_right_set() to set content on the other side.
24182 * @deprecated use elm_object_part_content_set() instead
24186 EINA_DEPRECATED EAPI void elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24189 * Set the right content of the panes widget.
24191 * @param obj The panes object.
24192 * @param content The new right content object.
24194 * Once the content object is set, a previously set one will be deleted.
24195 * If you want to keep that old content object, use the
24196 * elm_panes_content_right_unset() function.
24198 * If panes is displayed vertically, left content will be displayed at
24201 * @see elm_panes_content_right_get()
24202 * @see elm_panes_content_left_set() to set content on the other side.
24204 * @deprecated use elm_object_part_content_set() instead
24208 EINA_DEPRECATED EAPI void elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24211 * Get the left content of the panes.
24213 * @param obj The panes object.
24214 * @return The left content object that is being used.
24216 * Return the left content object which is set for this widget.
24218 * @see elm_panes_content_left_set() for details.
24220 * @deprecated use elm_object_part_content_get() instead
24224 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24227 * Get the right content of the panes.
24229 * @param obj The panes object
24230 * @return The right content object that is being used
24232 * Return the right content object which is set for this widget.
24234 * @see elm_panes_content_right_set() for details.
24236 * @deprecated use elm_object_part_content_get() instead
24240 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24243 * Unset the left content used for the panes.
24245 * @param obj The panes object.
24246 * @return The left content object that was being used.
24248 * Unparent and return the left content object which was set for this widget.
24250 * @see elm_panes_content_left_set() for details.
24251 * @see elm_panes_content_left_get().
24253 * @deprecated use elm_object_part_content_unset() instead
24257 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24260 * Unset the right content used for the panes.
24262 * @param obj The panes object.
24263 * @return The right content object that was being used.
24265 * Unparent and return the right content object which was set for this
24268 * @see elm_panes_content_right_set() for details.
24269 * @see elm_panes_content_right_get().
24271 * @deprecated use elm_object_part_content_unset() instead
24275 EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24278 * Get the size proportion of panes widget's left side.
24280 * @param obj The panes object.
24281 * @return float value between 0.0 and 1.0 representing size proportion
24284 * @see elm_panes_content_left_size_set() for more details.
24288 EAPI double elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24291 * Set the size proportion of panes widget's left side.
24293 * @param obj The panes object.
24294 * @param size Value between 0.0 and 1.0 representing size proportion
24297 * By default it's homogeneous, i.e., both sides have the same size.
24299 * If something different is required, it can be set with this function.
24300 * For example, if the left content should be displayed over
24301 * 75% of the panes size, @p size should be passed as @c 0.75.
24302 * This way, right content will be resized to 25% of panes size.
24304 * If displayed vertically, left content is displayed at top, and
24305 * right content at bottom.
24307 * @note This proportion will change when user drags the panes bar.
24309 * @see elm_panes_content_left_size_get()
24313 EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
24316 * Set the orientation of a given panes widget.
24318 * @param obj The panes object.
24319 * @param horizontal Use @c EINA_TRUE to make @p obj to be
24320 * @b horizontal, @c EINA_FALSE to make it @b vertical.
24322 * Use this function to change how your panes is to be
24323 * disposed: vertically or horizontally.
24325 * By default it's displayed horizontally.
24327 * @see elm_panes_horizontal_get()
24331 EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24334 * Retrieve the orientation of a given panes widget.
24336 * @param obj The panes object.
24337 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
24338 * @c EINA_FALSE if it's @b vertical (and on errors).
24340 * @see elm_panes_horizontal_set() for more details.
24344 EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24345 EAPI void elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
24346 EAPI Eina_Bool elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24353 * @defgroup Flip Flip
24355 * @image html img/widget/flip/preview-00.png
24356 * @image latex img/widget/flip/preview-00.eps
24358 * This widget holds 2 content objects(Evas_Object): one on the front and one
24359 * on the back. It allows you to flip from front to back and vice-versa using
24360 * various animations.
24362 * If either the front or back contents are not set the flip will treat that
24363 * as transparent. So if you wore to set the front content but not the back,
24364 * and then call elm_flip_go() you would see whatever is below the flip.
24366 * For a list of supported animations see elm_flip_go().
24368 * Signals that you can add callbacks for are:
24369 * "animate,begin" - when a flip animation was started
24370 * "animate,done" - when a flip animation is finished
24372 * @ref tutorial_flip show how to use most of the API.
24376 typedef enum _Elm_Flip_Mode
24378 ELM_FLIP_ROTATE_Y_CENTER_AXIS,
24379 ELM_FLIP_ROTATE_X_CENTER_AXIS,
24380 ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
24381 ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
24382 ELM_FLIP_CUBE_LEFT,
24383 ELM_FLIP_CUBE_RIGHT,
24385 ELM_FLIP_CUBE_DOWN,
24386 ELM_FLIP_PAGE_LEFT,
24387 ELM_FLIP_PAGE_RIGHT,
24391 typedef enum _Elm_Flip_Interaction
24393 ELM_FLIP_INTERACTION_NONE,
24394 ELM_FLIP_INTERACTION_ROTATE,
24395 ELM_FLIP_INTERACTION_CUBE,
24396 ELM_FLIP_INTERACTION_PAGE
24397 } Elm_Flip_Interaction;
24398 typedef enum _Elm_Flip_Direction
24400 ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
24401 ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
24402 ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
24403 ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
24404 } Elm_Flip_Direction;
24406 * @brief Add a new flip to the parent
24408 * @param parent The parent object
24409 * @return The new object or NULL if it cannot be created
24411 EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24413 * @brief Set the front content of the flip widget.
24415 * @param obj The flip object
24416 * @param content The new front content object
24418 * Once the content object is set, a previously set one will be deleted.
24419 * If you want to keep that old content object, use the
24420 * elm_flip_content_front_unset() function.
24422 EAPI void elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24424 * @brief Set the back content of the flip widget.
24426 * @param obj The flip object
24427 * @param content The new back content object
24429 * Once the content object is set, a previously set one will be deleted.
24430 * If you want to keep that old content object, use the
24431 * elm_flip_content_back_unset() function.
24433 EAPI void elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24435 * @brief Get the front content used for the flip
24437 * @param obj The flip object
24438 * @return The front content object that is being used
24440 * Return the front content object which is set for this widget.
24442 EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24444 * @brief Get the back content used for the flip
24446 * @param obj The flip object
24447 * @return The back content object that is being used
24449 * Return the back content object which is set for this widget.
24451 EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24453 * @brief Unset the front content used for the flip
24455 * @param obj The flip object
24456 * @return The front content object that was being used
24458 * Unparent and return the front content object which was set for this widget.
24460 EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24462 * @brief Unset the back content used for the flip
24464 * @param obj The flip object
24465 * @return The back content object that was being used
24467 * Unparent and return the back content object which was set for this widget.
24469 EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24471 * @brief Get flip front visibility state
24473 * @param obj The flip objct
24474 * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
24477 EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24479 * @brief Set flip perspective
24481 * @param obj The flip object
24482 * @param foc The coordinate to set the focus on
24483 * @param x The X coordinate
24484 * @param y The Y coordinate
24486 * @warning This function currently does nothing.
24488 EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
24490 * @brief Runs the flip animation
24492 * @param obj The flip object
24493 * @param mode The mode type
24495 * Flips the front and back contents using the @p mode animation. This
24496 * efectively hides the currently visible content and shows the hidden one.
24498 * There a number of possible animations to use for the flipping:
24499 * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
24500 * around a horizontal axis in the middle of its height, the other content
24501 * is shown as the other side of the flip.
24502 * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
24503 * around a vertical axis in the middle of its width, the other content is
24504 * shown as the other side of the flip.
24505 * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
24506 * around a diagonal axis in the middle of its width, the other content is
24507 * shown as the other side of the flip.
24508 * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
24509 * around a diagonal axis in the middle of its height, the other content is
24510 * shown as the other side of the flip.
24511 * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
24512 * as if the flip was a cube, the other content is show as the right face of
24514 * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
24515 * right as if the flip was a cube, the other content is show as the left
24516 * face of the cube.
24517 * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
24518 * flip was a cube, the other content is show as the bottom face of the cube.
24519 * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
24520 * the flip was a cube, the other content is show as the upper face of the
24522 * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
24523 * if the flip was a book, the other content is shown as the page below that.
24524 * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
24525 * as if the flip was a book, the other content is shown as the page below
24527 * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
24528 * flip was a book, the other content is shown as the page below that.
24529 * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
24530 * flip was a book, the other content is shown as the page below that.
24532 * @image html elm_flip.png
24533 * @image latex elm_flip.eps width=\textwidth
24535 EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
24537 * @brief Set the interactive flip mode
24539 * @param obj The flip object
24540 * @param mode The interactive flip mode to use
24542 * This sets if the flip should be interactive (allow user to click and
24543 * drag a side of the flip to reveal the back page and cause it to flip).
24544 * By default a flip is not interactive. You may also need to set which
24545 * sides of the flip are "active" for flipping and how much space they use
24546 * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
24547 * and elm_flip_interacton_direction_hitsize_set()
24549 * The four avilable mode of interaction are:
24550 * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
24551 * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
24552 * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
24553 * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
24555 * @note ELM_FLIP_INTERACTION_ROTATE won't cause
24556 * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
24557 * happen, those can only be acheived with elm_flip_go();
24559 EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
24561 * @brief Get the interactive flip mode
24563 * @param obj The flip object
24564 * @return The interactive flip mode
24566 * Returns the interactive flip mode set by elm_flip_interaction_set()
24568 EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
24570 * @brief Set which directions of the flip respond to interactive flip
24572 * @param obj The flip object
24573 * @param dir The direction to change
24574 * @param enabled If that direction is enabled or not
24576 * By default all directions are disabled, so you may want to enable the
24577 * desired directions for flipping if you need interactive flipping. You must
24578 * call this function once for each direction that should be enabled.
24580 * @see elm_flip_interaction_set()
24582 EAPI void elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
24584 * @brief Get the enabled state of that flip direction
24586 * @param obj The flip object
24587 * @param dir The direction to check
24588 * @return If that direction is enabled or not
24590 * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
24592 * @see elm_flip_interaction_set()
24594 EAPI Eina_Bool elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
24596 * @brief Set the amount of the flip that is sensitive to interactive flip
24598 * @param obj The flip object
24599 * @param dir The direction to modify
24600 * @param hitsize The amount of that dimension (0.0 to 1.0) to use
24602 * Set the amount of the flip that is sensitive to interactive flip, with 0
24603 * representing no area in the flip and 1 representing the entire flip. There
24604 * is however a consideration to be made in that the area will never be
24605 * smaller than the finger size set(as set in your Elementary configuration).
24607 * @see elm_flip_interaction_set()
24609 EAPI void elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
24611 * @brief Get the amount of the flip that is sensitive to interactive flip
24613 * @param obj The flip object
24614 * @param dir The direction to check
24615 * @return The size set for that direction
24617 * Returns the amount os sensitive area set by
24618 * elm_flip_interacton_direction_hitsize_set().
24620 EAPI double elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
24625 /* scrolledentry */
24626 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24627 EINA_DEPRECATED EAPI void elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
24628 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24629 EINA_DEPRECATED EAPI void elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
24630 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24631 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24632 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24633 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24634 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24635 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24636 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
24637 EINA_DEPRECATED EAPI void elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
24638 EINA_DEPRECATED EAPI void elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
24639 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24640 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
24641 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
24642 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
24643 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
24644 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
24645 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
24646 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24647 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24648 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24649 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
24650 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
24651 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
24652 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24653 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24654 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24655 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
24656 EINA_DEPRECATED EAPI int elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24657 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
24658 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
24659 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
24660 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24661 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
24662 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24663 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24664 EINA_DEPRECATED EAPI void elm_scrolled_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v) EINA_ARG_NONNULL(1);
24665 EINA_DEPRECATED EAPI void elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24666 EINA_DEPRECATED EAPI void elm_scrolled_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
24667 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
24668 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24669 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24670 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24671 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
24672 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24673 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24674 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
24675 EINA_DEPRECATED EAPI void elm_scrolled_entry_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
24676 EINA_DEPRECATED EAPI void elm_scrolled_entry_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
24677 EINA_DEPRECATED EAPI void elm_scrolled_entry_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
24678 EINA_DEPRECATED EAPI void elm_scrolled_entry_text_filter_append(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
24679 EINA_DEPRECATED EAPI void elm_scrolled_entry_text_filter_prepend(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
24680 EINA_DEPRECATED EAPI void elm_scrolled_entry_text_filter_remove(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
24681 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
24682 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
24683 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
24684 EINA_DEPRECATED EAPI void elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
24685 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24686 EINA_DEPRECATED EAPI void elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
24687 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
24690 * @defgroup Conformant Conformant
24691 * @ingroup Elementary
24693 * @image html img/widget/conformant/preview-00.png
24694 * @image latex img/widget/conformant/preview-00.eps width=\textwidth
24696 * @image html img/conformant.png
24697 * @image latex img/conformant.eps width=\textwidth
24699 * The aim is to provide a widget that can be used in elementary apps to
24700 * account for space taken up by the indicator, virtual keypad & softkey
24701 * windows when running the illume2 module of E17.
24703 * So conformant content will be sized and positioned considering the
24704 * space required for such stuff, and when they popup, as a keyboard
24705 * shows when an entry is selected, conformant content won't change.
24707 * Available styles for it:
24710 * Default contents parts of the conformant widget that you can use for are:
24711 * @li "default" - A content of the conformant
24713 * See how to use this widget in this example:
24714 * @ref conformant_example
24718 * @addtogroup Conformant
24723 * Add a new conformant widget to the given parent Elementary
24724 * (container) object.
24726 * @param parent The parent object.
24727 * @return A new conformant widget handle or @c NULL, on errors.
24729 * This function inserts a new conformant widget on the canvas.
24731 * @ingroup Conformant
24733 EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24736 * Set the content of the conformant widget.
24738 * @param obj The conformant object.
24739 * @param content The content to be displayed by the conformant.
24741 * Content will be sized and positioned considering the space required
24742 * to display a virtual keyboard. So it won't fill all the conformant
24743 * size. This way is possible to be sure that content won't resize
24744 * or be re-positioned after the keyboard is displayed.
24746 * Once the content object is set, a previously set one will be deleted.
24747 * If you want to keep that old content object, use the
24748 * elm_object_content_unset() function.
24750 * @see elm_object_content_unset()
24751 * @see elm_object_content_get()
24753 * @deprecated use elm_object_content_set() instead
24755 * @ingroup Conformant
24757 EINA_DEPRECATED EAPI void elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24760 * Get the content of the conformant widget.
24762 * @param obj The conformant object.
24763 * @return The content that is being used.
24765 * Return the content object which is set for this widget.
24766 * It won't be unparent from conformant. For that, use
24767 * elm_object_content_unset().
24769 * @see elm_object_content_set().
24770 * @see elm_object_content_unset()
24772 * @deprecated use elm_object_content_get() instead
24774 * @ingroup Conformant
24776 EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24779 * Unset the content of the conformant widget.
24781 * @param obj The conformant object.
24782 * @return The content that was being used.
24784 * Unparent and return the content object which was set for this widget.
24786 * @see elm_object_content_set().
24788 * @deprecated use elm_object_content_unset() instead
24790 * @ingroup Conformant
24792 EINA_DEPRECATED EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24795 * Returns the Evas_Object that represents the content area.
24797 * @param obj The conformant object.
24798 * @return The content area of the widget.
24800 * @ingroup Conformant
24802 EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24809 * @defgroup Mapbuf Mapbuf
24810 * @ingroup Elementary
24812 * @image html img/widget/mapbuf/preview-00.png
24813 * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
24815 * This holds one content object and uses an Evas Map of transformation
24816 * points to be later used with this content. So the content will be
24817 * moved, resized, etc as a single image. So it will improve performance
24818 * when you have a complex interafce, with a lot of elements, and will
24819 * need to resize or move it frequently (the content object and its
24822 * Default contents parts of the mapbuf widget that you can use for are:
24823 * @li "default" - A content of the mapbuf
24825 * To enable map, elm_mapbuf_enabled_set() should be used.
24827 * See how to use this widget in this example:
24828 * @ref mapbuf_example
24832 * @addtogroup Mapbuf
24837 * Add a new mapbuf widget to the given parent Elementary
24838 * (container) object.
24840 * @param parent The parent object.
24841 * @return A new mapbuf widget handle or @c NULL, on errors.
24843 * This function inserts a new mapbuf widget on the canvas.
24847 EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24850 * Set the content of the mapbuf.
24852 * @param obj The mapbuf object.
24853 * @param content The content that will be filled in this mapbuf object.
24855 * Once the content object is set, a previously set one will be deleted.
24856 * If you want to keep that old content object, use the
24857 * elm_mapbuf_content_unset() function.
24859 * To enable map, elm_mapbuf_enabled_set() should be used.
24861 * @deprecated use elm_object_content_set() instead
24865 EINA_DEPRECATED EAPI void elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
24868 * Get the content of the mapbuf.
24870 * @param obj The mapbuf object.
24871 * @return The content that is being used.
24873 * Return the content object which is set for this widget.
24875 * @see elm_mapbuf_content_set() for details.
24877 * @deprecated use elm_object_content_get() instead
24881 EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24884 * Unset the content of the mapbuf.
24886 * @param obj The mapbuf object.
24887 * @return The content that was being used.
24889 * Unparent and return the content object which was set for this widget.
24891 * @see elm_mapbuf_content_set() for details.
24893 * @deprecated use elm_object_content_unset() instead
24897 EINA_DEPRECATED EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24900 * Enable or disable the map.
24902 * @param obj The mapbuf object.
24903 * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
24905 * This enables the map that is set or disables it. On enable, the object
24906 * geometry will be saved, and the new geometry will change (position and
24907 * size) to reflect the map geometry set.
24909 * Also, when enabled, alpha and smooth states will be used, so if the
24910 * content isn't solid, alpha should be enabled, for example, otherwise
24911 * a black retangle will fill the content.
24913 * When disabled, the stored map will be freed and geometry prior to
24914 * enabling the map will be restored.
24916 * It's disabled by default.
24918 * @see elm_mapbuf_alpha_set()
24919 * @see elm_mapbuf_smooth_set()
24923 EAPI void elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
24926 * Get a value whether map is enabled or not.
24928 * @param obj The mapbuf object.
24929 * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
24930 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24932 * @see elm_mapbuf_enabled_set() for details.
24936 EAPI Eina_Bool elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24939 * Enable or disable smooth map rendering.
24941 * @param obj The mapbuf object.
24942 * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
24945 * This sets smoothing for map rendering. If the object is a type that has
24946 * its own smoothing settings, then both the smooth settings for this object
24947 * and the map must be turned off.
24949 * By default smooth maps are enabled.
24953 EAPI void elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
24956 * Get a value whether smooth map rendering is enabled or not.
24958 * @param obj The mapbuf object.
24959 * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
24960 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24962 * @see elm_mapbuf_smooth_set() for details.
24966 EAPI Eina_Bool elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24969 * Set or unset alpha flag for map rendering.
24971 * @param obj The mapbuf object.
24972 * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
24975 * This sets alpha flag for map rendering. If the object is a type that has
24976 * its own alpha settings, then this will take precedence. Only image objects
24977 * have this currently. It stops alpha blending of the map area, and is
24978 * useful if you know the object and/or all sub-objects is 100% solid.
24980 * Alpha is enabled by default.
24984 EAPI void elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
24987 * Get a value whether alpha blending is enabled or not.
24989 * @param obj The mapbuf object.
24990 * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
24991 * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24993 * @see elm_mapbuf_alpha_set() for details.
24997 EAPI Eina_Bool elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25004 * @defgroup Flipselector Flip Selector
25006 * @image html img/widget/flipselector/preview-00.png
25007 * @image latex img/widget/flipselector/preview-00.eps
25009 * A flip selector is a widget to show a set of @b text items, one
25010 * at a time, with the same sheet switching style as the @ref Clock
25011 * "clock" widget, when one changes the current displaying sheet
25012 * (thus, the "flip" in the name).
25014 * User clicks to flip sheets which are @b held for some time will
25015 * make the flip selector to flip continuosly and automatically for
25016 * the user. The interval between flips will keep growing in time,
25017 * so that it helps the user to reach an item which is distant from
25018 * the current selection.
25020 * Smart callbacks one can register to:
25021 * - @c "selected" - when the widget's selected text item is changed
25022 * - @c "overflowed" - when the widget's current selection is changed
25023 * from the first item in its list to the last
25024 * - @c "underflowed" - when the widget's current selection is changed
25025 * from the last item in its list to the first
25027 * Available styles for it:
25030 * To set/get the label of the flipselector item, you can use
25031 * elm_object_item_text_set/get APIs.
25032 * Once the text is set, a previously set one will be deleted.
25034 * Here is an example on its usage:
25035 * @li @ref flipselector_example
25039 * @addtogroup Flipselector
25044 * Add a new flip selector widget to the given parent Elementary
25045 * (container) widget
25047 * @param parent The parent object
25048 * @return a new flip selector widget handle or @c NULL, on errors
25050 * This function inserts a new flip selector widget on the canvas.
25052 * @ingroup Flipselector
25054 EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25057 * Programmatically select the next item of a flip selector widget
25059 * @param obj The flipselector object
25061 * @note The selection will be animated. Also, if it reaches the
25062 * end of its list of member items, it will continue with the first
25065 * @ingroup Flipselector
25067 EAPI void elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
25070 * Programmatically select the previous item of a flip selector
25073 * @param obj The flipselector object
25075 * @note The selection will be animated. Also, if it reaches the
25076 * beginning of its list of member items, it will continue with the
25077 * last one backwards.
25079 * @ingroup Flipselector
25081 EAPI void elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
25084 * Append a (text) item to a flip selector widget
25086 * @param obj The flipselector object
25087 * @param label The (text) label of the new item
25088 * @param func Convenience callback function to take place when
25090 * @param data Data passed to @p func, above
25091 * @return A handle to the item added or @c NULL, on errors
25093 * The widget's list of labels to show will be appended with the
25094 * given value. If the user wishes so, a callback function pointer
25095 * can be passed, which will get called when this same item is
25098 * @note The current selection @b won't be modified by appending an
25099 * element to the list.
25101 * @note The maximum length of the text label is going to be
25102 * determined <b>by the widget's theme</b>. Strings larger than
25103 * that value are going to be @b truncated.
25105 * @ingroup Flipselector
25107 EAPI Elm_Object_Item *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25110 * Prepend a (text) item to a flip selector widget
25112 * @param obj The flipselector object
25113 * @param label The (text) label of the new item
25114 * @param func Convenience callback function to take place when
25116 * @param data Data passed to @p func, above
25117 * @return A handle to the item added or @c NULL, on errors
25119 * The widget's list of labels to show will be prepended with the
25120 * given value. If the user wishes so, a callback function pointer
25121 * can be passed, which will get called when this same item is
25124 * @note The current selection @b won't be modified by prepending
25125 * an element to the list.
25127 * @note The maximum length of the text label is going to be
25128 * determined <b>by the widget's theme</b>. Strings larger than
25129 * that value are going to be @b truncated.
25131 * @ingroup Flipselector
25133 EAPI Elm_Object_Item *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
25136 * Get the internal list of items in a given flip selector widget.
25138 * @param obj The flipselector object
25139 * @return The list of items (#Elm_Object_Item as data) or
25140 * @c NULL on errors.
25142 * This list is @b not to be modified in any way and must not be
25143 * freed. Use the list members with functions like
25144 * elm_object_item_text_set(),
25145 * elm_object_item_text_get(),
25146 * elm_flipselector_item_del(),
25147 * elm_flipselector_item_selected_get(),
25148 * elm_flipselector_item_selected_set().
25150 * @warning This list is only valid until @p obj object's internal
25151 * items list is changed. It should be fetched again with another
25152 * call to this function when changes happen.
25154 * @ingroup Flipselector
25156 EAPI const Eina_List *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25159 * Get the first item in the given flip selector widget's list of
25162 * @param obj The flipselector object
25163 * @return The first item or @c NULL, if it has no items (and on
25166 * @see elm_flipselector_item_append()
25167 * @see elm_flipselector_last_item_get()
25169 * @ingroup Flipselector
25171 EAPI Elm_Object_Item *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25174 * Get the last item in the given flip selector widget's list of
25177 * @param obj The flipselector object
25178 * @return The last item or @c NULL, if it has no items (and on
25181 * @see elm_flipselector_item_prepend()
25182 * @see elm_flipselector_first_item_get()
25184 * @ingroup Flipselector
25186 EAPI Elm_Object_Item *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25189 * Get the currently selected item in a flip selector widget.
25191 * @param obj The flipselector object
25192 * @return The selected item or @c NULL, if the widget has no items
25195 * @ingroup Flipselector
25197 EAPI Elm_Object_Item *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25200 * Set whether a given flip selector widget's item should be the
25201 * currently selected one.
25203 * @param it The flip selector item
25204 * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
25206 * This sets whether @p item is or not the selected (thus, under
25207 * display) one. If @p item is different than one under display,
25208 * the latter will be unselected. If the @p item is set to be
25209 * unselected, on the other hand, the @b first item in the widget's
25210 * internal members list will be the new selected one.
25212 * @see elm_flipselector_item_selected_get()
25214 * @ingroup Flipselector
25216 EAPI void elm_flipselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
25219 * Get whether a given flip selector widget's item is the currently
25222 * @param it The flip selector item
25223 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
25226 * @see elm_flipselector_item_selected_set()
25228 * @ingroup Flipselector
25230 EAPI Eina_Bool elm_flipselector_item_selected_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25233 * Delete a given item from a flip selector widget.
25235 * @param it The item to delete
25237 * @ingroup Flipselector
25239 EAPI void elm_flipselector_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25242 * Get the label of a given flip selector widget's item.
25244 * @param it The item to get label from
25245 * @return The text label of @p item or @c NULL, on errors
25247 * @see elm_object_item_text_set()
25249 * @deprecated see elm_object_item_text_get() instead
25250 * @ingroup Flipselector
25252 EINA_DEPRECATED EAPI const char *elm_flipselector_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25255 * Set the label of a given flip selector widget's item.
25257 * @param it The item to set label on
25258 * @param label The text label string, in UTF-8 encoding
25260 * @see elm_object_item_text_get()
25262 * @deprecated see elm_object_item_text_set() instead
25263 * @ingroup Flipselector
25265 EINA_DEPRECATED EAPI void elm_flipselector_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
25268 * Gets the item before @p item in a flip selector widget's
25269 * internal list of items.
25271 * @param it The item to fetch previous from
25272 * @return The item before the @p item, in its parent's list. If
25273 * there is no previous item for @p item or there's an
25274 * error, @c NULL is returned.
25276 * @see elm_flipselector_item_next_get()
25278 * @ingroup Flipselector
25280 EAPI Elm_Object_Item *elm_flipselector_item_prev_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25283 * Gets the item after @p item in a flip selector widget's
25284 * internal list of items.
25286 * @param it The item to fetch next from
25287 * @return The item after the @p item, in its parent's list. If
25288 * there is no next item for @p item or there's an
25289 * error, @c NULL is returned.
25291 * @see elm_flipselector_item_next_get()
25293 * @ingroup Flipselector
25295 EAPI Elm_Object_Item *elm_flipselector_item_next_get(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25298 * Set the interval on time updates for an user mouse button hold
25299 * on a flip selector widget.
25301 * @param obj The flip selector object
25302 * @param interval The (first) interval value in seconds
25304 * This interval value is @b decreased while the user holds the
25305 * mouse pointer either flipping up or flipping doww a given flip
25308 * This helps the user to get to a given item distant from the
25309 * current one easier/faster, as it will start to flip quicker and
25310 * quicker on mouse button holds.
25312 * The calculation for the next flip interval value, starting from
25313 * the one set with this call, is the previous interval divided by
25314 * 1.05, so it decreases a little bit.
25316 * The default starting interval value for automatic flips is
25319 * @see elm_flipselector_interval_get()
25321 * @ingroup Flipselector
25323 EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25326 * Get the interval on time updates for an user mouse button hold
25327 * on a flip selector widget.
25329 * @param obj The flip selector object
25330 * @return The (first) interval value, in seconds, set on it
25332 * @see elm_flipselector_interval_set() for more details
25334 * @ingroup Flipselector
25336 EAPI double elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25342 * @addtogroup Calendar
25347 * @enum _Elm_Calendar_Mark_Repeat
25348 * @typedef Elm_Calendar_Mark_Repeat
25350 * Event periodicity, used to define if a mark should be repeated
25351 * @b beyond event's day. It's set when a mark is added.
25353 * So, for a mark added to 13th May with periodicity set to WEEKLY,
25354 * there will be marks every week after this date. Marks will be displayed
25355 * at 13th, 20th, 27th, 3rd June ...
25357 * Values don't work as bitmask, only one can be choosen.
25359 * @see elm_calendar_mark_add()
25361 * @ingroup Calendar
25363 typedef enum _Elm_Calendar_Mark_Repeat
25365 ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
25366 ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
25367 ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
25368 ELM_CALENDAR_MONTHLY, /**< Marks will be displayed every month day that coincides to event day. E.g.: if an event is set to 30th Jan, no marks will be displayed on Feb, but will be displayed on 30th Mar*/
25369 ELM_CALENDAR_ANNUALLY /**< Marks will be displayed every year that coincides to event day (and month). E.g. an event added to 30th Jan 2012 will be repeated on 30th Jan 2013. */
25370 } Elm_Calendar_Mark_Repeat;
25372 typedef struct _Elm_Calendar_Mark Elm_Calendar_Mark; /**< Item handle for a calendar mark. Created with elm_calendar_mark_add() and deleted with elm_calendar_mark_del(). */
25375 * Add a new calendar widget to the given parent Elementary
25376 * (container) object.
25378 * @param parent The parent object.
25379 * @return a new calendar widget handle or @c NULL, on errors.
25381 * This function inserts a new calendar widget on the canvas.
25383 * @ref calendar_example_01
25385 * @ingroup Calendar
25387 EAPI Evas_Object *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25390 * Get weekdays names displayed by the calendar.
25392 * @param obj The calendar object.
25393 * @return Array of seven strings to be used as weekday names.
25395 * By default, weekdays abbreviations get from system are displayed:
25396 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25397 * The first string is related to Sunday, the second to Monday...
25399 * @see elm_calendar_weekdays_name_set()
25401 * @ref calendar_example_05
25403 * @ingroup Calendar
25405 EAPI const char **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25408 * Set weekdays names to be displayed by the calendar.
25410 * @param obj The calendar object.
25411 * @param weekdays Array of seven strings to be used as weekday names.
25412 * @warning It must have 7 elements, or it will access invalid memory.
25413 * @warning The strings must be NULL terminated ('@\0').
25415 * By default, weekdays abbreviations get from system are displayed:
25416 * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
25418 * The first string should be related to Sunday, the second to Monday...
25420 * The usage should be like this:
25422 * const char *weekdays[] =
25424 * "Sunday", "Monday", "Tuesday", "Wednesday",
25425 * "Thursday", "Friday", "Saturday"
25427 * elm_calendar_weekdays_names_set(calendar, weekdays);
25430 * @see elm_calendar_weekdays_name_get()
25432 * @ref calendar_example_02
25434 * @ingroup Calendar
25436 EAPI void elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
25439 * Set the minimum and maximum values for the year
25441 * @param obj The calendar object
25442 * @param min The minimum year, greater than 1901;
25443 * @param max The maximum year;
25445 * Maximum must be greater than minimum, except if you don't wan't to set
25447 * Default values are 1902 and -1.
25449 * If the maximum year is a negative value, it will be limited depending
25450 * on the platform architecture (year 2037 for 32 bits);
25452 * @see elm_calendar_min_max_year_get()
25454 * @ref calendar_example_03
25456 * @ingroup Calendar
25458 EAPI void elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
25461 * Get the minimum and maximum values for the year
25463 * @param obj The calendar object.
25464 * @param min The minimum year.
25465 * @param max The maximum year.
25467 * Default values are 1902 and -1.
25469 * @see elm_calendar_min_max_year_get() for more details.
25471 * @ref calendar_example_05
25473 * @ingroup Calendar
25475 EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
25478 * Enable or disable day selection
25480 * @param obj The calendar object.
25481 * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
25484 * Enabled by default. If disabled, the user still can select months,
25485 * but not days. Selected days are highlighted on calendar.
25486 * It should be used if you won't need such selection for the widget usage.
25488 * When a day is selected, or month is changed, smart callbacks for
25489 * signal "changed" will be called.
25491 * @see elm_calendar_day_selection_enable_get()
25493 * @ref calendar_example_04
25495 * @ingroup Calendar
25497 EAPI void elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25500 * Get a value whether day selection is enabled or not.
25502 * @see elm_calendar_day_selection_enable_set() for details.
25504 * @param obj The calendar object.
25505 * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
25506 * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
25508 * @ref calendar_example_05
25510 * @ingroup Calendar
25512 EAPI Eina_Bool elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25516 * Set selected date to be highlighted on calendar.
25518 * @param obj The calendar object.
25519 * @param selected_time A @b tm struct to represent the selected date.
25521 * Set the selected date, changing the displayed month if needed.
25522 * Selected date changes when the user goes to next/previous month or
25523 * select a day pressing over it on calendar.
25525 * @see elm_calendar_selected_time_get()
25527 * @ref calendar_example_04
25529 * @ingroup Calendar
25531 EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
25534 * Get selected date.
25536 * @param obj The calendar object
25537 * @param selected_time A @b tm struct to point to selected date
25538 * @return EINA_FALSE means an error ocurred and returned time shouldn't
25541 * Get date selected by the user or set by function
25542 * elm_calendar_selected_time_set().
25543 * Selected date changes when the user goes to next/previous month or
25544 * select a day pressing over it on calendar.
25546 * @see elm_calendar_selected_time_get()
25548 * @ref calendar_example_05
25550 * @ingroup Calendar
25552 EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
25555 * Set a function to format the string that will be used to display
25558 * @param obj The calendar object
25559 * @param format_function Function to set the month-year string given
25560 * the selected date
25562 * By default it uses strftime with "%B %Y" format string.
25563 * It should allocate the memory that will be used by the string,
25564 * that will be freed by the widget after usage.
25565 * A pointer to the string and a pointer to the time struct will be provided.
25570 * _format_month_year(struct tm *selected_time)
25573 * if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
25574 * return strdup(buf);
25577 * elm_calendar_format_function_set(calendar, _format_month_year);
25580 * @ref calendar_example_02
25582 * @ingroup Calendar
25584 EAPI void elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
25587 * Add a new mark to the calendar
25589 * @param obj The calendar object
25590 * @param mark_type A string used to define the type of mark. It will be
25591 * emitted to the theme, that should display a related modification on these
25592 * days representation.
25593 * @param mark_time A time struct to represent the date of inclusion of the
25594 * mark. For marks that repeats it will just be displayed after the inclusion
25595 * date in the calendar.
25596 * @param repeat Repeat the event following this periodicity. Can be a unique
25597 * mark (that don't repeat), daily, weekly, monthly or annually.
25598 * @return The created mark or @p NULL upon failure.
25600 * Add a mark that will be drawn in the calendar respecting the insertion
25601 * time and periodicity. It will emit the type as signal to the widget theme.
25602 * Default theme supports "holiday" and "checked", but it can be extended.
25604 * It won't immediately update the calendar, drawing the marks.
25605 * For this, call elm_calendar_marks_draw(). However, when user selects
25606 * next or previous month calendar forces marks drawn.
25608 * Marks created with this method can be deleted with
25609 * elm_calendar_mark_del().
25613 * struct tm selected_time;
25614 * time_t current_time;
25616 * current_time = time(NULL) + 5 * 84600;
25617 * localtime_r(¤t_time, &selected_time);
25618 * elm_calendar_mark_add(cal, "holiday", selected_time,
25619 * ELM_CALENDAR_ANNUALLY);
25621 * current_time = time(NULL) + 1 * 84600;
25622 * localtime_r(¤t_time, &selected_time);
25623 * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
25625 * elm_calendar_marks_draw(cal);
25628 * @see elm_calendar_marks_draw()
25629 * @see elm_calendar_mark_del()
25631 * @ref calendar_example_06
25633 * @ingroup Calendar
25635 EAPI Elm_Calendar_Mark *elm_calendar_mark_add(Evas_Object *obj, const char *mark_type, struct tm *mark_time, Elm_Calendar_Mark_Repeat repeat) EINA_ARG_NONNULL(1);
25638 * Delete mark from the calendar.
25640 * @param mark The mark to be deleted.
25642 * If deleting all calendar marks is required, elm_calendar_marks_clear()
25643 * should be used instead of getting marks list and deleting each one.
25645 * @see elm_calendar_mark_add()
25647 * @ref calendar_example_06
25649 * @ingroup Calendar
25651 EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
25654 * Remove all calendar's marks
25656 * @param obj The calendar object.
25658 * @see elm_calendar_mark_add()
25659 * @see elm_calendar_mark_del()
25661 * @ingroup Calendar
25663 EAPI void elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
25667 * Get a list of all the calendar marks.
25669 * @param obj The calendar object.
25670 * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
25672 * @see elm_calendar_mark_add()
25673 * @see elm_calendar_mark_del()
25674 * @see elm_calendar_marks_clear()
25676 * @ingroup Calendar
25678 EAPI const Eina_List *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25681 * Draw calendar marks.
25683 * @param obj The calendar object.
25685 * Should be used after adding, removing or clearing marks.
25686 * It will go through the entire marks list updating the calendar.
25687 * If lots of marks will be added, add all the marks and then call
25690 * When the month is changed, i.e. user selects next or previous month,
25691 * marks will be drawed.
25693 * @see elm_calendar_mark_add()
25694 * @see elm_calendar_mark_del()
25695 * @see elm_calendar_marks_clear()
25697 * @ref calendar_example_06
25699 * @ingroup Calendar
25701 EAPI void elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
25704 * Set a day text color to the same that represents Saturdays.
25706 * @param obj The calendar object.
25707 * @param pos The text position. Position is the cell counter, from left
25708 * to right, up to down. It starts on 0 and ends on 41.
25710 * @deprecated use elm_calendar_mark_add() instead like:
25713 * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
25714 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25717 * @see elm_calendar_mark_add()
25719 * @ingroup Calendar
25721 EINA_DEPRECATED EAPI void elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25724 * Set a day text color to the same that represents Sundays.
25726 * @param obj The calendar object.
25727 * @param pos The text position. Position is the cell counter, from left
25728 * to right, up to down. It starts on 0 and ends on 41.
25730 * @deprecated use elm_calendar_mark_add() instead like:
25733 * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
25734 * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
25737 * @see elm_calendar_mark_add()
25739 * @ingroup Calendar
25741 EINA_DEPRECATED EAPI void elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25744 * Set a day text color to the same that represents Weekdays.
25746 * @param obj The calendar object
25747 * @param pos The text position. Position is the cell counter, from left
25748 * to right, up to down. It starts on 0 and ends on 41.
25750 * @deprecated use elm_calendar_mark_add() instead like:
25753 * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
25755 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
25756 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25757 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
25758 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25759 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
25760 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25761 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
25762 * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
25763 * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
25766 * @see elm_calendar_mark_add()
25768 * @ingroup Calendar
25770 EINA_DEPRECATED EAPI void elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
25773 * Set the interval on time updates for an user mouse button hold
25774 * on calendar widgets' month selection.
25776 * @param obj The calendar object
25777 * @param interval The (first) interval value in seconds
25779 * This interval value is @b decreased while the user holds the
25780 * mouse pointer either selecting next or previous month.
25782 * This helps the user to get to a given month distant from the
25783 * current one easier/faster, as it will start to change quicker and
25784 * quicker on mouse button holds.
25786 * The calculation for the next change interval value, starting from
25787 * the one set with this call, is the previous interval divided by
25788 * 1.05, so it decreases a little bit.
25790 * The default starting interval value for automatic changes is
25793 * @see elm_calendar_interval_get()
25795 * @ingroup Calendar
25797 EAPI void elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
25800 * Get the interval on time updates for an user mouse button hold
25801 * on calendar widgets' month selection.
25803 * @param obj The calendar object
25804 * @return The (first) interval value, in seconds, set on it
25806 * @see elm_calendar_interval_set() for more details
25808 * @ingroup Calendar
25810 EAPI double elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25817 * @defgroup Diskselector Diskselector
25818 * @ingroup Elementary
25820 * @image html img/widget/diskselector/preview-00.png
25821 * @image latex img/widget/diskselector/preview-00.eps
25823 * A diskselector is a kind of list widget. It scrolls horizontally,
25824 * and can contain label and icon objects. Three items are displayed
25825 * with the selected one in the middle.
25827 * It can act like a circular list with round mode and labels can be
25828 * reduced for a defined length for side items.
25830 * Smart callbacks one can listen to:
25831 * - "selected" - when item is selected, i.e. scroller stops.
25833 * Available styles for it:
25836 * List of examples:
25837 * @li @ref diskselector_example_01
25838 * @li @ref diskselector_example_02
25842 * @addtogroup Diskselector
25846 typedef struct _Elm_Diskselector_Item Elm_Diskselector_Item; /**< Item handle for a diskselector item. Created with elm_diskselector_item_append() and deleted with elm_diskselector_item_del(). */
25849 * Add a new diskselector widget to the given parent Elementary
25850 * (container) object.
25852 * @param parent The parent object.
25853 * @return a new diskselector widget handle or @c NULL, on errors.
25855 * This function inserts a new diskselector widget on the canvas.
25857 * @ingroup Diskselector
25859 EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25862 * Enable or disable round mode.
25864 * @param obj The diskselector object.
25865 * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
25868 * Disabled by default. If round mode is enabled the items list will
25869 * work like a circle list, so when the user reaches the last item,
25870 * the first one will popup.
25872 * @see elm_diskselector_round_get()
25874 * @ingroup Diskselector
25876 EAPI void elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
25879 * Get a value whether round mode is enabled or not.
25881 * @see elm_diskselector_round_set() for details.
25883 * @param obj The diskselector object.
25884 * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
25885 * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
25887 * @ingroup Diskselector
25889 EAPI Eina_Bool elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25892 * Get the side labels max length.
25894 * @deprecated use elm_diskselector_side_label_length_get() instead:
25896 * @param obj The diskselector object.
25897 * @return The max length defined for side labels, or 0 if not a valid
25900 * @ingroup Diskselector
25902 EINA_DEPRECATED EAPI int elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25905 * Set the side labels max length.
25907 * @deprecated use elm_diskselector_side_label_length_set() instead:
25909 * @param obj The diskselector object.
25910 * @param len The max length defined for side labels.
25912 * @ingroup Diskselector
25914 EINA_DEPRECATED EAPI void elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25917 * Get the side labels max length.
25919 * @see elm_diskselector_side_label_length_set() for details.
25921 * @param obj The diskselector object.
25922 * @return The max length defined for side labels, or 0 if not a valid
25925 * @ingroup Diskselector
25927 EAPI int elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25930 * Set the side labels max length.
25932 * @param obj The diskselector object.
25933 * @param len The max length defined for side labels.
25935 * Length is the number of characters of items' label that will be
25936 * visible when it's set on side positions. It will just crop
25937 * the string after defined size. E.g.:
25939 * An item with label "January" would be displayed on side position as
25940 * "Jan" if max length is set to 3, or "Janu", if this property
25943 * When it's selected, the entire label will be displayed, except for
25944 * width restrictions. In this case label will be cropped and "..."
25945 * will be concatenated.
25947 * Default side label max length is 3.
25949 * This property will be applyed over all items, included before or
25950 * later this function call.
25952 * @ingroup Diskselector
25954 EAPI void elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
25957 * Set the number of items to be displayed.
25959 * @param obj The diskselector object.
25960 * @param num The number of items the diskselector will display.
25962 * Default value is 3, and also it's the minimun. If @p num is less
25963 * than 3, it will be set to 3.
25965 * Also, it can be set on theme, using data item @c display_item_num
25966 * on group "elm/diskselector/item/X", where X is style set.
25969 * group { name: "elm/diskselector/item/X";
25971 * item: "display_item_num" "5";
25974 * @ingroup Diskselector
25976 EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
25979 * Get the number of items in the diskselector object.
25981 * @param obj The diskselector object.
25983 * @ingroup Diskselector
25985 EAPI int elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25988 * Set bouncing behaviour when the scrolled content reaches an edge.
25990 * Tell the internal scroller object whether it should bounce or not
25991 * when it reaches the respective edges for each axis.
25993 * @param obj The diskselector object.
25994 * @param h_bounce Whether to bounce or not in the horizontal axis.
25995 * @param v_bounce Whether to bounce or not in the vertical axis.
25997 * @see elm_scroller_bounce_set()
25999 * @ingroup Diskselector
26001 EAPI void elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
26004 * Get the bouncing behaviour of the internal scroller.
26006 * Get whether the internal scroller should bounce when the edge of each
26007 * axis is reached scrolling.
26009 * @param obj The diskselector object.
26010 * @param h_bounce Pointer where to store the bounce state of the horizontal
26012 * @param v_bounce Pointer where to store the bounce state of the vertical
26015 * @see elm_scroller_bounce_get()
26016 * @see elm_diskselector_bounce_set()
26018 * @ingroup Diskselector
26020 EAPI void elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
26023 * Get the scrollbar policy.
26025 * @see elm_diskselector_scroller_policy_get() for details.
26027 * @param obj The diskselector object.
26028 * @param policy_h Pointer where to store horizontal scrollbar policy.
26029 * @param policy_v Pointer where to store vertical scrollbar policy.
26031 * @ingroup Diskselector
26033 EAPI void elm_diskselector_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
26036 * Set the scrollbar policy.
26038 * @param obj The diskselector object.
26039 * @param policy_h Horizontal scrollbar policy.
26040 * @param policy_v Vertical scrollbar policy.
26042 * This sets the scrollbar visibility policy for the given scroller.
26043 * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
26044 * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
26045 * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
26046 * This applies respectively for the horizontal and vertical scrollbars.
26048 * The both are disabled by default, i.e., are set to
26049 * #ELM_SCROLLER_POLICY_OFF.
26051 * @ingroup Diskselector
26053 EAPI void elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
26056 * Remove all diskselector's items.
26058 * @param obj The diskselector object.
26060 * @see elm_diskselector_item_del()
26061 * @see elm_diskselector_item_append()
26063 * @ingroup Diskselector
26065 EAPI void elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26068 * Get a list of all the diskselector items.
26070 * @param obj The diskselector object.
26071 * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
26072 * or @c NULL on failure.
26074 * @see elm_diskselector_item_append()
26075 * @see elm_diskselector_item_del()
26076 * @see elm_diskselector_clear()
26078 * @ingroup Diskselector
26080 EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26083 * Appends a new item to the diskselector object.
26085 * @param obj The diskselector object.
26086 * @param label The label of the diskselector item.
26087 * @param icon The icon object to use at left side of the item. An
26088 * icon can be any Evas object, but usually it is an icon created
26089 * with elm_icon_add().
26090 * @param func The function to call when the item is selected.
26091 * @param data The data to associate with the item for related callbacks.
26093 * @return The created item or @c NULL upon failure.
26095 * A new item will be created and appended to the diskselector, i.e., will
26096 * be set as last item. Also, if there is no selected item, it will
26097 * be selected. This will always happens for the first appended item.
26099 * If no icon is set, label will be centered on item position, otherwise
26100 * the icon will be placed at left of the label, that will be shifted
26103 * Items created with this method can be deleted with
26104 * elm_diskselector_item_del().
26106 * Associated @p data can be properly freed when item is deleted if a
26107 * callback function is set with elm_diskselector_item_del_cb_set().
26109 * If a function is passed as argument, it will be called everytime this item
26110 * is selected, i.e., the user stops the diskselector with this
26111 * item on center position. If such function isn't needed, just passing
26112 * @c NULL as @p func is enough. The same should be done for @p data.
26114 * Simple example (with no function callback or data associated):
26116 * disk = elm_diskselector_add(win);
26117 * ic = elm_icon_add(win);
26118 * elm_icon_file_set(ic, "path/to/image", NULL);
26119 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
26120 * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
26123 * @see elm_diskselector_item_del()
26124 * @see elm_diskselector_item_del_cb_set()
26125 * @see elm_diskselector_clear()
26126 * @see elm_icon_add()
26128 * @ingroup Diskselector
26130 EAPI Elm_Diskselector_Item *elm_diskselector_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
26134 * Delete them item from the diskselector.
26136 * @param it The item of diskselector to be deleted.
26138 * If deleting all diskselector items is required, elm_diskselector_clear()
26139 * should be used instead of getting items list and deleting each one.
26141 * @see elm_diskselector_clear()
26142 * @see elm_diskselector_item_append()
26143 * @see elm_diskselector_item_del_cb_set()
26145 * @ingroup Diskselector
26147 EAPI void elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26150 * Set the function called when a diskselector item is freed.
26152 * @param it The item to set the callback on
26153 * @param func The function called
26155 * If there is a @p func, then it will be called prior item's memory release.
26156 * That will be called with the following arguments:
26158 * @li item's Evas object;
26161 * This way, a data associated to a diskselector item could be properly
26164 * @ingroup Diskselector
26166 EAPI void elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
26169 * Get the data associated to the item.
26171 * @param it The diskselector item
26172 * @return The data associated to @p it
26174 * The return value is a pointer to data associated to @p item when it was
26175 * created, with function elm_diskselector_item_append(). If no data
26176 * was passed as argument, it will return @c NULL.
26178 * @see elm_diskselector_item_append()
26180 * @ingroup Diskselector
26182 EAPI void *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26185 * Set the icon associated to the item.
26187 * @param it The diskselector item
26188 * @param icon The icon object to associate with @p it
26190 * The icon object to use at left side of the item. An
26191 * icon can be any Evas object, but usually it is an icon created
26192 * with elm_icon_add().
26194 * Once the icon object is set, a previously set one will be deleted.
26195 * @warning Setting the same icon for two items will cause the icon to
26196 * dissapear from the first item.
26198 * If an icon was passed as argument on item creation, with function
26199 * elm_diskselector_item_append(), it will be already
26200 * associated to the item.
26202 * @see elm_diskselector_item_append()
26203 * @see elm_diskselector_item_icon_get()
26205 * @ingroup Diskselector
26207 EAPI void elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
26210 * Get the icon associated to the item.
26212 * @param it The diskselector item
26213 * @return The icon associated to @p it
26215 * The return value is a pointer to the icon associated to @p item when it was
26216 * created, with function elm_diskselector_item_append(), or later
26217 * with function elm_diskselector_item_icon_set. If no icon
26218 * was passed as argument, it will return @c NULL.
26220 * @see elm_diskselector_item_append()
26221 * @see elm_diskselector_item_icon_set()
26223 * @ingroup Diskselector
26225 EAPI Evas_Object *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26228 * Set the label of item.
26230 * @param it The item of diskselector.
26231 * @param label The label of item.
26233 * The label to be displayed by the item.
26235 * If no icon is set, label will be centered on item position, otherwise
26236 * the icon will be placed at left of the label, that will be shifted
26239 * An item with label "January" would be displayed on side position as
26240 * "Jan" if max length is set to 3 with function
26241 * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
26244 * When this @p item is selected, the entire label will be displayed,
26245 * except for width restrictions.
26246 * In this case label will be cropped and "..." will be concatenated,
26247 * but only for display purposes. It will keep the entire string, so
26248 * if diskselector is resized the remaining characters will be displayed.
26250 * If a label was passed as argument on item creation, with function
26251 * elm_diskselector_item_append(), it will be already
26252 * displayed by the item.
26254 * @see elm_diskselector_side_label_lenght_set()
26255 * @see elm_diskselector_item_label_get()
26256 * @see elm_diskselector_item_append()
26258 * @ingroup Diskselector
26260 EAPI void elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
26263 * Get the label of item.
26265 * @param it The item of diskselector.
26266 * @return The label of item.
26268 * The return value is a pointer to the label associated to @p item when it was
26269 * created, with function elm_diskselector_item_append(), or later
26270 * with function elm_diskselector_item_label_set. If no label
26271 * was passed as argument, it will return @c NULL.
26273 * @see elm_diskselector_item_label_set() for more details.
26274 * @see elm_diskselector_item_append()
26276 * @ingroup Diskselector
26278 EAPI const char *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26281 * Get the selected item.
26283 * @param obj The diskselector object.
26284 * @return The selected diskselector item.
26286 * The selected item can be unselected with function
26287 * elm_diskselector_item_selected_set(), and the first item of
26288 * diskselector will be selected.
26290 * The selected item always will be centered on diskselector, with
26291 * full label displayed, i.e., max lenght set to side labels won't
26292 * apply on the selected item. More details on
26293 * elm_diskselector_side_label_length_set().
26295 * @ingroup Diskselector
26297 EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26300 * Set the selected state of an item.
26302 * @param it The diskselector item
26303 * @param selected The selected state
26305 * This sets the selected state of the given item @p it.
26306 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26308 * If a new item is selected the previosly selected will be unselected.
26309 * Previoulsy selected item can be get with function
26310 * elm_diskselector_selected_item_get().
26312 * If the item @p it is unselected, the first item of diskselector will
26315 * Selected items will be visible on center position of diskselector.
26316 * So if it was on another position before selected, or was invisible,
26317 * diskselector will animate items until the selected item reaches center
26320 * @see elm_diskselector_item_selected_get()
26321 * @see elm_diskselector_selected_item_get()
26323 * @ingroup Diskselector
26325 EAPI void elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
26328 * Get whether the @p item is selected or not.
26330 * @param it The diskselector item.
26331 * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
26332 * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
26334 * @see elm_diskselector_selected_item_set() for details.
26335 * @see elm_diskselector_item_selected_get()
26337 * @ingroup Diskselector
26339 EAPI Eina_Bool elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26342 * Get the first item of the diskselector.
26344 * @param obj The diskselector object.
26345 * @return The first item, or @c NULL if none.
26347 * The list of items follows append order. So it will return the first
26348 * item appended to the widget that wasn't deleted.
26350 * @see elm_diskselector_item_append()
26351 * @see elm_diskselector_items_get()
26353 * @ingroup Diskselector
26355 EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26358 * Get the last item of the diskselector.
26360 * @param obj The diskselector object.
26361 * @return The last item, or @c NULL if none.
26363 * The list of items follows append order. So it will return last first
26364 * item appended to the widget that wasn't deleted.
26366 * @see elm_diskselector_item_append()
26367 * @see elm_diskselector_items_get()
26369 * @ingroup Diskselector
26371 EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26374 * Get the item before @p item in diskselector.
26376 * @param it The diskselector item.
26377 * @return The item before @p item, or @c NULL if none or on failure.
26379 * The list of items follows append order. So it will return item appended
26380 * just before @p item and that wasn't deleted.
26382 * If it is the first item, @c NULL will be returned.
26383 * First item can be get by elm_diskselector_first_item_get().
26385 * @see elm_diskselector_item_append()
26386 * @see elm_diskselector_items_get()
26388 * @ingroup Diskselector
26390 EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26393 * Get the item after @p item in diskselector.
26395 * @param it The diskselector item.
26396 * @return The item after @p item, or @c NULL if none or on failure.
26398 * The list of items follows append order. So it will return item appended
26399 * just after @p item and that wasn't deleted.
26401 * If it is the last item, @c NULL will be returned.
26402 * Last item can be get by elm_diskselector_last_item_get().
26404 * @see elm_diskselector_item_append()
26405 * @see elm_diskselector_items_get()
26407 * @ingroup Diskselector
26409 EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26412 * Set the text to be shown in the diskselector item.
26414 * @param item Target item
26415 * @param text The text to set in the content
26417 * Setup the text as tooltip to object. The item can have only one tooltip,
26418 * so any previous tooltip data is removed.
26420 * @see elm_object_tooltip_text_set() for more details.
26422 * @ingroup Diskselector
26424 EAPI void elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
26427 * Set the content to be shown in the tooltip item.
26429 * Setup the tooltip to item. The item can have only one tooltip,
26430 * so any previous tooltip data is removed. @p func(with @p data) will
26431 * be called every time that need show the tooltip and it should
26432 * return a valid Evas_Object. This object is then managed fully by
26433 * tooltip system and is deleted when the tooltip is gone.
26435 * @param item the diskselector item being attached a tooltip.
26436 * @param func the function used to create the tooltip contents.
26437 * @param data what to provide to @a func as callback data/context.
26438 * @param del_cb called when data is not needed anymore, either when
26439 * another callback replaces @p func, the tooltip is unset with
26440 * elm_diskselector_item_tooltip_unset() or the owner @a item
26441 * dies. This callback receives as the first parameter the
26442 * given @a data, and @c event_info is the item.
26444 * @see elm_object_tooltip_content_cb_set() for more details.
26446 * @ingroup Diskselector
26448 EAPI void elm_diskselector_item_tooltip_content_cb_set(Elm_Diskselector_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
26451 * Unset tooltip from item.
26453 * @param item diskselector item to remove previously set tooltip.
26455 * Remove tooltip from item. The callback provided as del_cb to
26456 * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
26457 * it is not used anymore.
26459 * @see elm_object_tooltip_unset() for more details.
26460 * @see elm_diskselector_item_tooltip_content_cb_set()
26462 * @ingroup Diskselector
26464 EAPI void elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26468 * Sets a different style for this item tooltip.
26470 * @note before you set a style you should define a tooltip with
26471 * elm_diskselector_item_tooltip_content_cb_set() or
26472 * elm_diskselector_item_tooltip_text_set()
26474 * @param item diskselector item with tooltip already set.
26475 * @param style the theme style to use (default, transparent, ...)
26477 * @see elm_object_tooltip_style_set() for more details.
26479 * @ingroup Diskselector
26481 EAPI void elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26484 * Get the style for this item tooltip.
26486 * @param item diskselector item with tooltip already set.
26487 * @return style the theme style in use, defaults to "default". If the
26488 * object does not have a tooltip set, then NULL is returned.
26490 * @see elm_object_tooltip_style_get() for more details.
26491 * @see elm_diskselector_item_tooltip_style_set()
26493 * @ingroup Diskselector
26495 EAPI const char *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26498 * Set the cursor to be shown when mouse is over the diskselector item
26500 * @param item Target item
26501 * @param cursor the cursor name to be used.
26503 * @see elm_object_cursor_set() for more details.
26505 * @ingroup Diskselector
26507 EAPI void elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
26510 * Get the cursor to be shown when mouse is over the diskselector item
26512 * @param item diskselector item with cursor already set.
26513 * @return the cursor name.
26515 * @see elm_object_cursor_get() for more details.
26516 * @see elm_diskselector_cursor_set()
26518 * @ingroup Diskselector
26520 EAPI const char *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26524 * Unset the cursor to be shown when mouse is over the diskselector item
26526 * @param item Target item
26528 * @see elm_object_cursor_unset() for more details.
26529 * @see elm_diskselector_cursor_set()
26531 * @ingroup Diskselector
26533 EAPI void elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26536 * Sets a different style for this item cursor.
26538 * @note before you set a style you should define a cursor with
26539 * elm_diskselector_item_cursor_set()
26541 * @param item diskselector item with cursor already set.
26542 * @param style the theme style to use (default, transparent, ...)
26544 * @see elm_object_cursor_style_set() for more details.
26546 * @ingroup Diskselector
26548 EAPI void elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
26552 * Get the style for this item cursor.
26554 * @param item diskselector item with cursor already set.
26555 * @return style the theme style in use, defaults to "default". If the
26556 * object does not have a cursor set, then @c NULL is returned.
26558 * @see elm_object_cursor_style_get() for more details.
26559 * @see elm_diskselector_item_cursor_style_set()
26561 * @ingroup Diskselector
26563 EAPI const char *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26567 * Set if the cursor set should be searched on the theme or should use
26568 * the provided by the engine, only.
26570 * @note before you set if should look on theme you should define a cursor
26571 * with elm_diskselector_item_cursor_set().
26572 * By default it will only look for cursors provided by the engine.
26574 * @param item widget item with cursor already set.
26575 * @param engine_only boolean to define if cursors set with
26576 * elm_diskselector_item_cursor_set() should be searched only
26577 * between cursors provided by the engine or searched on widget's
26580 * @see elm_object_cursor_engine_only_set() for more details.
26582 * @ingroup Diskselector
26584 EAPI void elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
26587 * Get the cursor engine only usage for this item cursor.
26589 * @param item widget item with cursor already set.
26590 * @return engine_only boolean to define it cursors should be looked only
26591 * between the provided by the engine or searched on widget's theme as well.
26592 * If the item does not have a cursor set, then @c EINA_FALSE is returned.
26594 * @see elm_object_cursor_engine_only_get() for more details.
26595 * @see elm_diskselector_item_cursor_engine_only_set()
26597 * @ingroup Diskselector
26599 EAPI Eina_Bool elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
26606 * @defgroup Colorselector Colorselector
26610 * @image html img/widget/colorselector/preview-00.png
26611 * @image latex img/widget/colorselector/preview-00.eps
26613 * @brief Widget for user to select a color.
26615 * Signals that you can add callbacks for are:
26616 * "changed" - When the color value changes(event_info is NULL).
26618 * See @ref tutorial_colorselector.
26621 * @brief Add a new colorselector to the parent
26623 * @param parent The parent object
26624 * @return The new object or NULL if it cannot be created
26626 * @ingroup Colorselector
26628 EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26630 * Set a color for the colorselector
26632 * @param obj Colorselector object
26633 * @param r r-value of color
26634 * @param g g-value of color
26635 * @param b b-value of color
26636 * @param a a-value of color
26638 * @ingroup Colorselector
26640 EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
26642 * Get a color from the colorselector
26644 * @param obj Colorselector object
26645 * @param r integer pointer for r-value of color
26646 * @param g integer pointer for g-value of color
26647 * @param b integer pointer for b-value of color
26648 * @param a integer pointer for a-value of color
26650 * @ingroup Colorselector
26652 EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
26658 * @defgroup Ctxpopup Ctxpopup
26660 * @image html img/widget/ctxpopup/preview-00.png
26661 * @image latex img/widget/ctxpopup/preview-00.eps
26663 * @brief Context popup widet.
26665 * A ctxpopup is a widget that, when shown, pops up a list of items.
26666 * It automatically chooses an area inside its parent object's view
26667 * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
26668 * optimally fit into it. In the default theme, it will also point an
26669 * arrow to it's top left position at the time one shows it. Ctxpopup
26670 * items have a label and/or an icon. It is intended for a small
26671 * number of items (hence the use of list, not genlist).
26673 * @note Ctxpopup is a especialization of @ref Hover.
26675 * Signals that you can add callbacks for are:
26676 * "dismissed" - the ctxpopup was dismissed
26678 * Default contents parts of the ctxpopup widget that you can use for are:
26679 * @li "default" - A content of the ctxpopup
26681 * Default contents parts of the naviframe items that you can use for are:
26682 * @li "icon" - A icon in the title area
26684 * Default text parts of the naviframe items that you can use for are:
26685 * @li "default" - Title label in the title area
26687 * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
26690 typedef enum _Elm_Ctxpopup_Direction
26692 ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
26694 ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
26695 the clicked area */
26696 ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
26697 the clicked area */
26698 ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
26700 ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
26701 } Elm_Ctxpopup_Direction;
26704 * @brief Add a new Ctxpopup object to the parent.
26706 * @param parent Parent object
26707 * @return New object or @c NULL, if it cannot be created
26709 EAPI Evas_Object *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26711 * @brief Set the Ctxpopup's parent
26713 * @param obj The ctxpopup object
26714 * @param area The parent to use
26716 * Set the parent object.
26718 * @note elm_ctxpopup_add() will automatically call this function
26719 * with its @c parent argument.
26721 * @see elm_ctxpopup_add()
26722 * @see elm_hover_parent_set()
26724 EAPI void elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
26726 * @brief Get the Ctxpopup's parent
26728 * @param obj The ctxpopup object
26730 * @see elm_ctxpopup_hover_parent_set() for more information
26732 EAPI Evas_Object *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26734 * @brief Clear all items in the given ctxpopup object.
26736 * @param obj Ctxpopup object
26738 EAPI void elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
26740 * @brief Change the ctxpopup's orientation to horizontal or vertical.
26742 * @param obj Ctxpopup object
26743 * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
26745 EAPI void elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
26747 * @brief Get the value of current ctxpopup object's orientation.
26749 * @param obj Ctxpopup object
26750 * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
26752 * @see elm_ctxpopup_horizontal_set()
26754 EAPI Eina_Bool elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26756 * @brief Add a new item to a ctxpopup object.
26758 * @param obj Ctxpopup object
26759 * @param icon Icon to be set on new item
26760 * @param label The Label of the new item
26761 * @param func Convenience function called when item selected
26762 * @param data Data passed to @p func
26763 * @return A handle to the item added or @c NULL, on errors
26765 * @warning Ctxpopup can't hold both an item list and a content at the same
26766 * time. When an item is added, any previous content will be removed.
26768 * @see elm_ctxpopup_content_set()
26770 Elm_Object_Item *elm_ctxpopup_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
26772 * @brief Delete the given item in a ctxpopup object.
26774 * @param it Ctxpopup item to be deleted
26776 * @see elm_ctxpopup_item_append()
26778 EAPI void elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26780 * @brief Set the ctxpopup item's state as disabled or enabled.
26782 * @param it Ctxpopup item to be enabled/disabled
26783 * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
26785 * When disabled the item is greyed out to indicate it's state.
26786 * @deprecated use elm_object_item_disabled_set() instead
26788 EINA_DEPRECATED EAPI void elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
26790 * @brief Get the ctxpopup item's disabled/enabled state.
26792 * @param it Ctxpopup item to be enabled/disabled
26793 * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
26795 * @see elm_ctxpopup_item_disabled_set()
26796 * @deprecated use elm_object_item_disabled_get() instead
26798 EAPI Eina_Bool elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26800 * @brief Get the icon object for the given ctxpopup item.
26802 * @param it Ctxpopup item
26803 * @return icon object or @c NULL, if the item does not have icon or an error
26806 * @see elm_ctxpopup_item_append()
26807 * @see elm_ctxpopup_item_icon_set()
26809 * @deprecated use elm_object_item_part_content_get() instead
26811 EINA_DEPRECATED EAPI Evas_Object *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26813 * @brief Sets the side icon associated with the ctxpopup item
26815 * @param it Ctxpopup item
26816 * @param icon Icon object to be set
26818 * Once the icon object is set, a previously set one will be deleted.
26819 * @warning Setting the same icon for two items will cause the icon to
26820 * dissapear from the first item.
26822 * @see elm_ctxpopup_item_append()
26824 * @deprecated use elm_object_item_part_content_set() instead
26827 EINA_DEPRECATED EAPI void elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26829 * @brief Get the label for the given ctxpopup item.
26831 * @param it Ctxpopup item
26832 * @return label string or @c NULL, if the item does not have label or an
26835 * @see elm_ctxpopup_item_append()
26836 * @see elm_ctxpopup_item_label_set()
26838 * @deprecated use elm_object_item_text_get() instead
26840 EINA_DEPRECATED EAPI const char *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26842 * @brief (Re)set the label on the given ctxpopup item.
26844 * @param it Ctxpopup item
26845 * @param label String to set as label
26847 * @deprecated use elm_object_item_text_set() instead
26849 EINA_DEPRECATED EAPI void elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26851 * @brief Set an elm widget as the content of the ctxpopup.
26853 * @param obj Ctxpopup object
26854 * @param content Content to be swallowed
26856 * If the content object is already set, a previous one will bedeleted. If
26857 * you want to keep that old content object, use the
26858 * elm_ctxpopup_content_unset() function.
26860 * @warning Ctxpopup can't hold both a item list and a content at the same
26861 * time. When a content is set, any previous items will be removed.
26863 * @deprecated use elm_object_content_set() instead
26866 EINA_DEPRECATED EAPI void elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
26868 * @brief Unset the ctxpopup content
26870 * @param obj Ctxpopup object
26871 * @return The content that was being used
26873 * Unparent and return the content object which was set for this widget.
26875 * @deprecated use elm_object_content_unset()
26877 * @see elm_ctxpopup_content_set()
26879 * @deprecated use elm_object_content_unset() instead
26882 EINA_DEPRECATED EAPI Evas_Object *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
26884 * @brief Set the direction priority of a ctxpopup.
26886 * @param obj Ctxpopup object
26887 * @param first 1st priority of direction
26888 * @param second 2nd priority of direction
26889 * @param third 3th priority of direction
26890 * @param fourth 4th priority of direction
26892 * This functions gives a chance to user to set the priority of ctxpopup
26893 * showing direction. This doesn't guarantee the ctxpopup will appear in the
26894 * requested direction.
26896 * @see Elm_Ctxpopup_Direction
26898 EAPI void elm_ctxpopup_direction_priority_set(Evas_Object *obj, Elm_Ctxpopup_Direction first, Elm_Ctxpopup_Direction second, Elm_Ctxpopup_Direction third, Elm_Ctxpopup_Direction fourth) EINA_ARG_NONNULL(1);
26900 * @brief Get the direction priority of a ctxpopup.
26902 * @param obj Ctxpopup object
26903 * @param first 1st priority of direction to be returned
26904 * @param second 2nd priority of direction to be returned
26905 * @param third 3th priority of direction to be returned
26906 * @param fourth 4th priority of direction to be returned
26908 * @see elm_ctxpopup_direction_priority_set() for more information.
26910 EAPI void elm_ctxpopup_direction_priority_get(Evas_Object *obj, Elm_Ctxpopup_Direction *first, Elm_Ctxpopup_Direction *second, Elm_Ctxpopup_Direction *third, Elm_Ctxpopup_Direction *fourth) EINA_ARG_NONNULL(1);
26913 * @brief Get the current direction of a ctxpopup.
26915 * @param obj Ctxpopup object
26916 * @return current direction of a ctxpopup
26918 * @warning Once the ctxpopup showed up, the direction would be determined
26920 EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26929 * @defgroup Transit Transit
26930 * @ingroup Elementary
26932 * Transit is designed to apply various animated transition effects to @c
26933 * Evas_Object, such like translation, rotation, etc. For using these
26934 * effects, create an @ref Elm_Transit and add the desired transition effects.
26936 * Once the effects are added into transit, they will be automatically
26937 * managed (their callback will be called until the duration is ended, and
26938 * they will be deleted on completion).
26942 * Elm_Transit *trans = elm_transit_add();
26943 * elm_transit_object_add(trans, obj);
26944 * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
26945 * elm_transit_duration_set(transit, 1);
26946 * elm_transit_auto_reverse_set(transit, EINA_TRUE);
26947 * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
26948 * elm_transit_repeat_times_set(transit, 3);
26951 * Some transition effects are used to change the properties of objects. They
26953 * @li @ref elm_transit_effect_translation_add
26954 * @li @ref elm_transit_effect_color_add
26955 * @li @ref elm_transit_effect_rotation_add
26956 * @li @ref elm_transit_effect_wipe_add
26957 * @li @ref elm_transit_effect_zoom_add
26958 * @li @ref elm_transit_effect_resizing_add
26960 * Other transition effects are used to make one object disappear and another
26961 * object appear on its old place. These effects are:
26963 * @li @ref elm_transit_effect_flip_add
26964 * @li @ref elm_transit_effect_resizable_flip_add
26965 * @li @ref elm_transit_effect_fade_add
26966 * @li @ref elm_transit_effect_blend_add
26968 * It's also possible to make a transition chain with @ref
26969 * elm_transit_chain_transit_add.
26971 * @warning We strongly recommend to use elm_transit just when edje can not do
26972 * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
26973 * animations can be manipulated inside the theme.
26975 * List of examples:
26976 * @li @ref transit_example_01_explained
26977 * @li @ref transit_example_02_explained
26978 * @li @ref transit_example_03_c
26979 * @li @ref transit_example_04_c
26985 * @enum Elm_Transit_Tween_Mode
26987 * The type of acceleration used in the transition.
26991 ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
26992 ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
26993 over time, then decrease again
26995 ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
26997 ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
26999 } Elm_Transit_Tween_Mode;
27002 * @enum Elm_Transit_Effect_Flip_Axis
27004 * The axis where flip effect should be applied.
27008 ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
27009 ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
27010 } Elm_Transit_Effect_Flip_Axis;
27012 * @enum Elm_Transit_Effect_Wipe_Dir
27014 * The direction where the wipe effect should occur.
27018 ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
27019 ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
27020 ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
27021 ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
27022 } Elm_Transit_Effect_Wipe_Dir;
27023 /** @enum Elm_Transit_Effect_Wipe_Type
27025 * Whether the wipe effect should show or hide the object.
27029 ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
27031 ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
27033 } Elm_Transit_Effect_Wipe_Type;
27036 * @typedef Elm_Transit
27038 * The Transit created with elm_transit_add(). This type has the information
27039 * about the objects which the transition will be applied, and the
27040 * transition effects that will be used. It also contains info about
27041 * duration, number of repetitions, auto-reverse, etc.
27043 typedef struct _Elm_Transit Elm_Transit;
27044 typedef void Elm_Transit_Effect;
27046 * @typedef Elm_Transit_Effect_Transition_Cb
27048 * Transition callback called for this effect on each transition iteration.
27050 typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
27052 * Elm_Transit_Effect_End_Cb
27054 * Transition callback called for this effect when the transition is over.
27056 typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
27059 * Elm_Transit_Del_Cb
27061 * A callback called when the transit is deleted.
27063 typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
27068 * @note Is not necessary to delete the transit object, it will be deleted at
27069 * the end of its operation.
27070 * @note The transit will start playing when the program enter in the main loop, is not
27071 * necessary to give a start to the transit.
27073 * @return The transit object.
27077 EAPI Elm_Transit *elm_transit_add(void);
27080 * Stops the animation and delete the @p transit object.
27082 * Call this function if you wants to stop the animation before the duration
27083 * time. Make sure the @p transit object is still alive with
27084 * elm_transit_del_cb_set() function.
27085 * All added effects will be deleted, calling its repective data_free_cb
27086 * functions. The function setted by elm_transit_del_cb_set() will be called.
27088 * @see elm_transit_del_cb_set()
27090 * @param transit The transit object to be deleted.
27093 * @warning Just call this function if you are sure the transit is alive.
27095 EAPI void elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27098 * Add a new effect to the transit.
27100 * @note The cb function and the data are the key to the effect. If you try to
27101 * add an already added effect, nothing is done.
27102 * @note After the first addition of an effect in @p transit, if its
27103 * effect list become empty again, the @p transit will be killed by
27104 * elm_transit_del(transit) function.
27108 * Elm_Transit *transit = elm_transit_add();
27109 * elm_transit_effect_add(transit,
27110 * elm_transit_effect_blend_op,
27111 * elm_transit_effect_blend_context_new(),
27112 * elm_transit_effect_blend_context_free);
27115 * @param transit The transit object.
27116 * @param transition_cb The operation function. It is called when the
27117 * animation begins, it is the function that actually performs the animation.
27118 * It is called with the @p data, @p transit and the time progression of the
27119 * animation (a double value between 0.0 and 1.0).
27120 * @param effect The context data of the effect.
27121 * @param end_cb The function to free the context data, it will be called
27122 * at the end of the effect, it must finalize the animation and free the
27126 * @warning The transit free the context data at the and of the transition with
27127 * the data_free_cb function, do not use the context data in another transit.
27129 EAPI void elm_transit_effect_add(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect, Elm_Transit_Effect_End_Cb end_cb) EINA_ARG_NONNULL(1, 2);
27132 * Delete an added effect.
27134 * This function will remove the effect from the @p transit, calling the
27135 * data_free_cb to free the @p data.
27137 * @see elm_transit_effect_add()
27139 * @note If the effect is not found, nothing is done.
27140 * @note If the effect list become empty, this function will call
27141 * elm_transit_del(transit), that is, it will kill the @p transit.
27143 * @param transit The transit object.
27144 * @param transition_cb The operation function.
27145 * @param effect The context data of the effect.
27149 EAPI void elm_transit_effect_del(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect) EINA_ARG_NONNULL(1, 2);
27152 * Add new object to apply the effects.
27154 * @note After the first addition of an object in @p transit, if its
27155 * object list become empty again, the @p transit will be killed by
27156 * elm_transit_del(transit) function.
27157 * @note If the @p obj belongs to another transit, the @p obj will be
27158 * removed from it and it will only belong to the @p transit. If the old
27159 * transit stays without objects, it will die.
27160 * @note When you add an object into the @p transit, its state from
27161 * evas_object_pass_events_get(obj) is saved, and it is applied when the
27162 * transit ends, if you change this state whith evas_object_pass_events_set()
27163 * after add the object, this state will change again when @p transit stops to
27166 * @param transit The transit object.
27167 * @param obj Object to be animated.
27170 * @warning It is not allowed to add a new object after transit begins to go.
27172 EAPI void elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27175 * Removes an added object from the transit.
27177 * @note If the @p obj is not in the @p transit, nothing is done.
27178 * @note If the list become empty, this function will call
27179 * elm_transit_del(transit), that is, it will kill the @p transit.
27181 * @param transit The transit object.
27182 * @param obj Object to be removed from @p transit.
27185 * @warning It is not allowed to remove objects after transit begins to go.
27187 EAPI void elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
27190 * Get the objects of the transit.
27192 * @param transit The transit object.
27193 * @return a Eina_List with the objects from the transit.
27197 EAPI const Eina_List *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27200 * Enable/disable keeping up the objects states.
27201 * If it is not kept, the objects states will be reset when transition ends.
27203 * @note @p transit can not be NULL.
27204 * @note One state includes geometry, color, map data.
27206 * @param transit The transit object.
27207 * @param state_keep Keeping or Non Keeping.
27211 EAPI void elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
27214 * Get a value whether the objects states will be reset or not.
27216 * @note @p transit can not be NULL
27218 * @see elm_transit_objects_final_state_keep_set()
27220 * @param transit The transit object.
27221 * @return EINA_TRUE means the states of the objects will be reset.
27222 * If @p transit is NULL, EINA_FALSE is returned
27226 EAPI Eina_Bool elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27229 * Set the event enabled when transit is operating.
27231 * If @p enabled is EINA_TRUE, the objects of the transit will receives
27232 * events from mouse and keyboard during the animation.
27233 * @note When you add an object with elm_transit_object_add(), its state from
27234 * evas_object_pass_events_get(obj) is saved, and it is applied when the
27235 * transit ends, if you change this state with evas_object_pass_events_set()
27236 * after adding the object, this state will change again when @p transit stops
27239 * @param transit The transit object.
27240 * @param enabled Events are received when enabled is @c EINA_TRUE, and
27241 * ignored otherwise.
27245 EAPI void elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
27248 * Get the value of event enabled status.
27250 * @see elm_transit_event_enabled_set()
27252 * @param transit The Transit object
27253 * @return EINA_TRUE, when event is enabled. If @p transit is NULL
27254 * EINA_FALSE is returned
27258 EAPI Eina_Bool elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27261 * Set the user-callback function when the transit is deleted.
27263 * @note Using this function twice will overwrite the first function setted.
27264 * @note the @p transit object will be deleted after call @p cb function.
27266 * @param transit The transit object.
27267 * @param cb Callback function pointer. This function will be called before
27268 * the deletion of the transit.
27269 * @param data Callback funtion user data. It is the @p op parameter.
27273 EAPI void elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
27276 * Set reverse effect automatically.
27278 * If auto reverse is setted, after running the effects with the progress
27279 * parameter from 0 to 1, it will call the effecs again with the progress
27280 * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
27281 * where the duration was setted with the function elm_transit_add and
27282 * the repeat with the function elm_transit_repeat_times_set().
27284 * @param transit The transit object.
27285 * @param reverse EINA_TRUE means the auto_reverse is on.
27289 EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
27292 * Get if the auto reverse is on.
27294 * @see elm_transit_auto_reverse_set()
27296 * @param transit The transit object.
27297 * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
27298 * EINA_FALSE is returned
27302 EAPI Eina_Bool elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27305 * Set the transit repeat count. Effect will be repeated by repeat count.
27307 * This function sets the number of repetition the transit will run after
27308 * the first one, that is, if @p repeat is 1, the transit will run 2 times.
27309 * If the @p repeat is a negative number, it will repeat infinite times.
27311 * @note If this function is called during the transit execution, the transit
27312 * will run @p repeat times, ignoring the times it already performed.
27314 * @param transit The transit object
27315 * @param repeat Repeat count
27319 EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
27322 * Get the transit repeat count.
27324 * @see elm_transit_repeat_times_set()
27326 * @param transit The Transit object.
27327 * @return The repeat count. If @p transit is NULL
27332 EAPI int elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27335 * Set the transit animation acceleration type.
27337 * This function sets the tween mode of the transit that can be:
27338 * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
27339 * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
27340 * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
27341 * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
27343 * @param transit The transit object.
27344 * @param tween_mode The tween type.
27348 EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
27351 * Get the transit animation acceleration type.
27353 * @note @p transit can not be NULL
27355 * @param transit The transit object.
27356 * @return The tween type. If @p transit is NULL
27357 * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
27361 EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27364 * Set the transit animation time
27366 * @note @p transit can not be NULL
27368 * @param transit The transit object.
27369 * @param duration The animation time.
27373 EAPI void elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
27376 * Get the transit animation time
27378 * @note @p transit can not be NULL
27380 * @param transit The transit object.
27382 * @return The transit animation time.
27386 EAPI double elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27389 * Starts the transition.
27390 * Once this API is called, the transit begins to measure the time.
27392 * @note @p transit can not be NULL
27394 * @param transit The transit object.
27398 EAPI void elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
27401 * Pause/Resume the transition.
27403 * If you call elm_transit_go again, the transit will be started from the
27404 * beginning, and will be unpaused.
27406 * @note @p transit can not be NULL
27408 * @param transit The transit object.
27409 * @param paused Whether the transition should be paused or not.
27413 EAPI void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
27416 * Get the value of paused status.
27418 * @see elm_transit_paused_set()
27420 * @note @p transit can not be NULL
27422 * @param transit The transit object.
27423 * @return EINA_TRUE means transition is paused. If @p transit is NULL
27424 * EINA_FALSE is returned
27428 EAPI Eina_Bool elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27431 * Get the time progression of the animation (a double value between 0.0 and 1.0).
27433 * The value returned is a fraction (current time / total time). It
27434 * represents the progression position relative to the total.
27436 * @note @p transit can not be NULL
27438 * @param transit The transit object.
27440 * @return The time progression value. If @p transit is NULL
27445 EAPI double elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
27448 * Makes the chain relationship between two transits.
27450 * @note @p transit can not be NULL. Transit would have multiple chain transits.
27451 * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
27453 * @param transit The transit object.
27454 * @param chain_transit The chain transit object. This transit will be operated
27455 * after transit is done.
27457 * This function adds @p chain_transit transition to a chain after the @p
27458 * transit, and will be started as soon as @p transit ends. See @ref
27459 * transit_example_02_explained for a full example.
27463 EAPI void elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
27466 * Cut off the chain relationship between two transits.
27468 * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
27469 * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
27471 * @param transit The transit object.
27472 * @param chain_transit The chain transit object.
27474 * This function remove the @p chain_transit transition from the @p transit.
27478 EAPI void elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
27481 * Get the current chain transit list.
27483 * @note @p transit can not be NULL.
27485 * @param transit The transit object.
27486 * @return chain transit list.
27490 EAPI Eina_List *elm_transit_chain_transits_get(const Elm_Transit *transit);
27493 * Add the Resizing Effect to Elm_Transit.
27495 * @note This API is one of the facades. It creates resizing effect context
27496 * and add it's required APIs to elm_transit_effect_add.
27498 * @see elm_transit_effect_add()
27500 * @param transit Transit object.
27501 * @param from_w Object width size when effect begins.
27502 * @param from_h Object height size when effect begins.
27503 * @param to_w Object width size when effect ends.
27504 * @param to_h Object height size when effect ends.
27505 * @return Resizing effect context data.
27509 EAPI Elm_Transit_Effect *elm_transit_effect_resizing_add(Elm_Transit* transit, Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h);
27512 * Add the Translation Effect to Elm_Transit.
27514 * @note This API is one of the facades. It creates translation effect context
27515 * and add it's required APIs to elm_transit_effect_add.
27517 * @see elm_transit_effect_add()
27519 * @param transit Transit object.
27520 * @param from_dx X Position variation when effect begins.
27521 * @param from_dy Y Position variation when effect begins.
27522 * @param to_dx X Position variation when effect ends.
27523 * @param to_dy Y Position variation when effect ends.
27524 * @return Translation effect context data.
27527 * @warning It is highly recommended just create a transit with this effect when
27528 * the window that the objects of the transit belongs has already been created.
27529 * This is because this effect needs the geometry information about the objects,
27530 * and if the window was not created yet, it can get a wrong information.
27532 EAPI Elm_Transit_Effect *elm_transit_effect_translation_add(Elm_Transit* transit, Evas_Coord from_dx, Evas_Coord from_dy, Evas_Coord to_dx, Evas_Coord to_dy);
27535 * Add the Zoom Effect to Elm_Transit.
27537 * @note This API is one of the facades. It creates zoom effect context
27538 * and add it's required APIs to elm_transit_effect_add.
27540 * @see elm_transit_effect_add()
27542 * @param transit Transit object.
27543 * @param from_rate Scale rate when effect begins (1 is current rate).
27544 * @param to_rate Scale rate when effect ends.
27545 * @return Zoom effect context data.
27548 * @warning It is highly recommended just create a transit with this effect when
27549 * the window that the objects of the transit belongs has already been created.
27550 * This is because this effect needs the geometry information about the objects,
27551 * and if the window was not created yet, it can get a wrong information.
27553 EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
27556 * Add the Flip Effect to Elm_Transit.
27558 * @note This API is one of the facades. It creates flip effect context
27559 * and add it's required APIs to elm_transit_effect_add.
27560 * @note This effect is applied to each pair of objects in the order they are listed
27561 * in the transit list of objects. The first object in the pair will be the
27562 * "front" object and the second will be the "back" object.
27564 * @see elm_transit_effect_add()
27566 * @param transit Transit object.
27567 * @param axis Flipping Axis(X or Y).
27568 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27569 * @return Flip effect context data.
27572 * @warning It is highly recommended just create a transit with this effect when
27573 * the window that the objects of the transit belongs has already been created.
27574 * This is because this effect needs the geometry information about the objects,
27575 * and if the window was not created yet, it can get a wrong information.
27577 EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27580 * Add the Resizable Flip Effect to Elm_Transit.
27582 * @note This API is one of the facades. It creates resizable flip effect context
27583 * and add it's required APIs to elm_transit_effect_add.
27584 * @note This effect is applied to each pair of objects in the order they are listed
27585 * in the transit list of objects. The first object in the pair will be the
27586 * "front" object and the second will be the "back" object.
27588 * @see elm_transit_effect_add()
27590 * @param transit Transit object.
27591 * @param axis Flipping Axis(X or Y).
27592 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
27593 * @return Resizable flip effect context data.
27596 * @warning It is highly recommended just create a transit with this effect when
27597 * the window that the objects of the transit belongs has already been created.
27598 * This is because this effect needs the geometry information about the objects,
27599 * and if the window was not created yet, it can get a wrong information.
27601 EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
27604 * Add the Wipe Effect to Elm_Transit.
27606 * @note This API is one of the facades. It creates wipe effect context
27607 * and add it's required APIs to elm_transit_effect_add.
27609 * @see elm_transit_effect_add()
27611 * @param transit Transit object.
27612 * @param type Wipe type. Hide or show.
27613 * @param dir Wipe Direction.
27614 * @return Wipe effect context data.
27617 * @warning It is highly recommended just create a transit with this effect when
27618 * the window that the objects of the transit belongs has already been created.
27619 * This is because this effect needs the geometry information about the objects,
27620 * and if the window was not created yet, it can get a wrong information.
27622 EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
27625 * Add the Color Effect to Elm_Transit.
27627 * @note This API is one of the facades. It creates color effect context
27628 * and add it's required APIs to elm_transit_effect_add.
27630 * @see elm_transit_effect_add()
27632 * @param transit Transit object.
27633 * @param from_r RGB R when effect begins.
27634 * @param from_g RGB G when effect begins.
27635 * @param from_b RGB B when effect begins.
27636 * @param from_a RGB A when effect begins.
27637 * @param to_r RGB R when effect ends.
27638 * @param to_g RGB G when effect ends.
27639 * @param to_b RGB B when effect ends.
27640 * @param to_a RGB A when effect ends.
27641 * @return Color effect context data.
27645 EAPI Elm_Transit_Effect *elm_transit_effect_color_add(Elm_Transit *transit, unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a);
27648 * Add the Fade Effect to Elm_Transit.
27650 * @note This API is one of the facades. It creates fade effect context
27651 * and add it's required APIs to elm_transit_effect_add.
27652 * @note This effect is applied to each pair of objects in the order they are listed
27653 * in the transit list of objects. The first object in the pair will be the
27654 * "before" object and the second will be the "after" object.
27656 * @see elm_transit_effect_add()
27658 * @param transit Transit object.
27659 * @return Fade effect context data.
27662 * @warning It is highly recommended just create a transit with this effect when
27663 * the window that the objects of the transit belongs has already been created.
27664 * This is because this effect needs the color information about the objects,
27665 * and if the window was not created yet, it can get a wrong information.
27667 EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
27670 * Add the Blend Effect to Elm_Transit.
27672 * @note This API is one of the facades. It creates blend effect context
27673 * and add it's required APIs to elm_transit_effect_add.
27674 * @note This effect is applied to each pair of objects in the order they are listed
27675 * in the transit list of objects. The first object in the pair will be the
27676 * "before" object and the second will be the "after" object.
27678 * @see elm_transit_effect_add()
27680 * @param transit Transit object.
27681 * @return Blend effect context data.
27684 * @warning It is highly recommended just create a transit with this effect when
27685 * the window that the objects of the transit belongs has already been created.
27686 * This is because this effect needs the color information about the objects,
27687 * and if the window was not created yet, it can get a wrong information.
27689 EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
27692 * Add the Rotation Effect to Elm_Transit.
27694 * @note This API is one of the facades. It creates rotation effect context
27695 * and add it's required APIs to elm_transit_effect_add.
27697 * @see elm_transit_effect_add()
27699 * @param transit Transit object.
27700 * @param from_degree Degree when effect begins.
27701 * @param to_degree Degree when effect is ends.
27702 * @return Rotation effect context data.
27705 * @warning It is highly recommended just create a transit with this effect when
27706 * the window that the objects of the transit belongs has already been created.
27707 * This is because this effect needs the geometry information about the objects,
27708 * and if the window was not created yet, it can get a wrong information.
27710 EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
27713 * Add the ImageAnimation Effect to Elm_Transit.
27715 * @note This API is one of the facades. It creates image animation effect context
27716 * and add it's required APIs to elm_transit_effect_add.
27717 * The @p images parameter is a list images paths. This list and
27718 * its contents will be deleted at the end of the effect by
27719 * elm_transit_effect_image_animation_context_free() function.
27723 * char buf[PATH_MAX];
27724 * Eina_List *images = NULL;
27725 * Elm_Transit *transi = elm_transit_add();
27727 * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
27728 * images = eina_list_append(images, eina_stringshare_add(buf));
27730 * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
27731 * images = eina_list_append(images, eina_stringshare_add(buf));
27732 * elm_transit_effect_image_animation_add(transi, images);
27736 * @see elm_transit_effect_add()
27738 * @param transit Transit object.
27739 * @param images Eina_List of images file paths. This list and
27740 * its contents will be deleted at the end of the effect by
27741 * elm_transit_effect_image_animation_context_free() function.
27742 * @return Image Animation effect context data.
27746 EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
27751 typedef struct _Elm_Store Elm_Store;
27752 typedef struct _Elm_Store_Filesystem Elm_Store_Filesystem;
27753 typedef struct _Elm_Store_Item Elm_Store_Item;
27754 typedef struct _Elm_Store_Item_Filesystem Elm_Store_Item_Filesystem;
27755 typedef struct _Elm_Store_Item_Info Elm_Store_Item_Info;
27756 typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
27757 typedef struct _Elm_Store_Item_Mapping Elm_Store_Item_Mapping;
27758 typedef struct _Elm_Store_Item_Mapping_Empty Elm_Store_Item_Mapping_Empty;
27759 typedef struct _Elm_Store_Item_Mapping_Icon Elm_Store_Item_Mapping_Icon;
27760 typedef struct _Elm_Store_Item_Mapping_Photo Elm_Store_Item_Mapping_Photo;
27761 typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom;
27763 typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
27764 typedef void (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
27765 typedef void (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
27766 typedef void *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
27770 ELM_STORE_ITEM_MAPPING_NONE = 0,
27771 ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
27772 ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
27773 ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
27774 ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
27775 ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
27776 // can add more here as needed by common apps
27777 ELM_STORE_ITEM_MAPPING_LAST
27778 } Elm_Store_Item_Mapping_Type;
27780 struct _Elm_Store_Item_Mapping_Icon
27782 // FIXME: allow edje file icons
27784 Elm_Icon_Lookup_Order lookup_order;
27785 Eina_Bool standard_name : 1;
27786 Eina_Bool no_scale : 1;
27787 Eina_Bool smooth : 1;
27788 Eina_Bool scale_up : 1;
27789 Eina_Bool scale_down : 1;
27792 struct _Elm_Store_Item_Mapping_Empty
27797 struct _Elm_Store_Item_Mapping_Photo
27802 struct _Elm_Store_Item_Mapping_Custom
27804 Elm_Store_Item_Mapping_Cb func;
27807 struct _Elm_Store_Item_Mapping
27809 Elm_Store_Item_Mapping_Type type;
27814 Elm_Store_Item_Mapping_Empty empty;
27815 Elm_Store_Item_Mapping_Icon icon;
27816 Elm_Store_Item_Mapping_Photo photo;
27817 Elm_Store_Item_Mapping_Custom custom;
27818 // add more types here
27822 struct _Elm_Store_Item_Info
27824 Elm_Genlist_Item_Class *item_class;
27825 const Elm_Store_Item_Mapping *mapping;
27830 struct _Elm_Store_Item_Info_Filesystem
27832 Elm_Store_Item_Info base;
27836 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
27837 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
27839 EAPI void elm_store_free(Elm_Store *st);
27841 EAPI Elm_Store *elm_store_filesystem_new(void);
27842 EAPI void elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
27843 EAPI const char *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27844 EAPI const char *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27846 EAPI void elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
27848 EAPI void elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
27849 EAPI int elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27850 EAPI void elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27851 EAPI void elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27852 EAPI void elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
27853 EAPI Eina_Bool elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27855 EAPI void elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
27856 EAPI void elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
27857 EAPI Eina_Bool elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
27858 EAPI void elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
27859 EAPI void *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27860 EAPI const Elm_Store *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27861 EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
27864 * @defgroup SegmentControl SegmentControl
27865 * @ingroup Elementary
27867 * @image html img/widget/segment_control/preview-00.png
27868 * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
27870 * @image html img/segment_control.png
27871 * @image latex img/segment_control.eps width=\textwidth
27873 * Segment control widget is a horizontal control made of multiple segment
27874 * items, each segment item functioning similar to discrete two state button.
27875 * A segment control groups the items together and provides compact
27876 * single button with multiple equal size segments.
27878 * Segment item size is determined by base widget
27879 * size and the number of items added.
27880 * Only one segment item can be at selected state. A segment item can display
27881 * combination of Text and any Evas_Object like Images or other widget.
27883 * Smart callbacks one can listen to:
27884 * - "changed" - When the user clicks on a segment item which is not
27885 * previously selected and get selected. The event_info parameter is the
27886 * segment item pointer.
27888 * Available styles for it:
27891 * Here is an example on its usage:
27892 * @li @ref segment_control_example
27896 * @addtogroup SegmentControl
27900 typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
27903 * Add a new segment control widget to the given parent Elementary
27904 * (container) object.
27906 * @param parent The parent object.
27907 * @return a new segment control widget handle or @c NULL, on errors.
27909 * This function inserts a new segment control widget on the canvas.
27911 * @ingroup SegmentControl
27913 EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
27916 * Append a new item to the segment control object.
27918 * @param obj The segment control object.
27919 * @param icon The icon object to use for the left side of the item. An
27920 * icon can be any Evas object, but usually it is an icon created
27921 * with elm_icon_add().
27922 * @param label The label of the item.
27923 * Note that, NULL is different from empty string "".
27924 * @return The created item or @c NULL upon failure.
27926 * A new item will be created and appended to the segment control, i.e., will
27927 * be set as @b last item.
27929 * If it should be inserted at another position,
27930 * elm_segment_control_item_insert_at() should be used instead.
27932 * Items created with this function can be deleted with function
27933 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27935 * @note @p label set to @c NULL is different from empty string "".
27937 * only has icon, it will be displayed bigger and centered. If it has
27938 * icon and label, even that an empty string, icon will be smaller and
27939 * positioned at left.
27943 * sc = elm_segment_control_add(win);
27944 * ic = elm_icon_add(win);
27945 * elm_icon_file_set(ic, "path/to/image", NULL);
27946 * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
27947 * elm_segment_control_item_add(sc, ic, "label");
27948 * evas_object_show(sc);
27951 * @see elm_segment_control_item_insert_at()
27952 * @see elm_segment_control_item_del()
27954 * @ingroup SegmentControl
27956 EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
27959 * Insert a new item to the segment control object at specified position.
27961 * @param obj The segment control object.
27962 * @param icon The icon object to use for the left side of the item. An
27963 * icon can be any Evas object, but usually it is an icon created
27964 * with elm_icon_add().
27965 * @param label The label of the item.
27966 * @param index Item position. Value should be between 0 and items count.
27967 * @return The created item or @c NULL upon failure.
27969 * Index values must be between @c 0, when item will be prepended to
27970 * segment control, and items count, that can be get with
27971 * elm_segment_control_item_count_get(), case when item will be appended
27972 * to segment control, just like elm_segment_control_item_add().
27974 * Items created with this function can be deleted with function
27975 * elm_segment_control_item_del() or elm_segment_control_item_del_at().
27977 * @note @p label set to @c NULL is different from empty string "".
27979 * only has icon, it will be displayed bigger and centered. If it has
27980 * icon and label, even that an empty string, icon will be smaller and
27981 * positioned at left.
27983 * @see elm_segment_control_item_add()
27984 * @see elm_segment_control_item_count_get()
27985 * @see elm_segment_control_item_del()
27987 * @ingroup SegmentControl
27989 EAPI Elm_Segment_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, const char *label, int index) EINA_ARG_NONNULL(1);
27992 * Remove a segment control item from its parent, deleting it.
27994 * @param it The item to be removed.
27996 * Items can be added with elm_segment_control_item_add() or
27997 * elm_segment_control_item_insert_at().
27999 * @ingroup SegmentControl
28001 EAPI void elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28004 * Remove a segment control item at given index from its parent,
28007 * @param obj The segment control object.
28008 * @param index The position of the segment control item to be deleted.
28010 * Items can be added with elm_segment_control_item_add() or
28011 * elm_segment_control_item_insert_at().
28013 * @ingroup SegmentControl
28015 EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28018 * Get the Segment items count from segment control.
28020 * @param obj The segment control object.
28021 * @return Segment items count.
28023 * It will just return the number of items added to segment control @p obj.
28025 * @ingroup SegmentControl
28027 EAPI int elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28030 * Get the item placed at specified index.
28032 * @param obj The segment control object.
28033 * @param index The index of the segment item.
28034 * @return The segment control item or @c NULL on failure.
28036 * Index is the position of an item in segment control widget. Its
28037 * range is from @c 0 to <tt> count - 1 </tt>.
28038 * Count is the number of items, that can be get with
28039 * elm_segment_control_item_count_get().
28041 * @ingroup SegmentControl
28043 EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28046 * Get the label of item.
28048 * @param obj The segment control object.
28049 * @param index The index of the segment item.
28050 * @return The label of the item at @p index.
28052 * The return value is a pointer to the label associated to the item when
28053 * it was created, with function elm_segment_control_item_add(), or later
28054 * with function elm_segment_control_item_label_set. If no label
28055 * was passed as argument, it will return @c NULL.
28057 * @see elm_segment_control_item_label_set() for more details.
28058 * @see elm_segment_control_item_add()
28060 * @ingroup SegmentControl
28062 EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28065 * Set the label of item.
28067 * @param it The item of segment control.
28068 * @param text The label of item.
28070 * The label to be displayed by the item.
28071 * Label will be at right of the icon (if set).
28073 * If a label was passed as argument on item creation, with function
28074 * elm_control_segment_item_add(), it will be already
28075 * displayed by the item.
28077 * @see elm_segment_control_item_label_get()
28078 * @see elm_segment_control_item_add()
28080 * @ingroup SegmentControl
28082 EAPI void elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
28085 * Get the icon associated to the item.
28087 * @param obj The segment control object.
28088 * @param index The index of the segment item.
28089 * @return The left side icon associated to the item at @p index.
28091 * The return value is a pointer to the icon associated to the item when
28092 * it was created, with function elm_segment_control_item_add(), or later
28093 * with function elm_segment_control_item_icon_set(). If no icon
28094 * was passed as argument, it will return @c NULL.
28096 * @see elm_segment_control_item_add()
28097 * @see elm_segment_control_item_icon_set()
28099 * @ingroup SegmentControl
28101 EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
28104 * Set the icon associated to the item.
28106 * @param it The segment control item.
28107 * @param icon The icon object to associate with @p it.
28109 * The icon object to use at left side of the item. An
28110 * icon can be any Evas object, but usually it is an icon created
28111 * with elm_icon_add().
28113 * Once the icon object is set, a previously set one will be deleted.
28114 * @warning Setting the same icon for two items will cause the icon to
28115 * dissapear from the first item.
28117 * If an icon was passed as argument on item creation, with function
28118 * elm_segment_control_item_add(), it will be already
28119 * associated to the item.
28121 * @see elm_segment_control_item_add()
28122 * @see elm_segment_control_item_icon_get()
28124 * @ingroup SegmentControl
28126 EAPI void elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
28129 * Get the index of an item.
28131 * @param it The segment control item.
28132 * @return The position of item in segment control widget.
28134 * Index is the position of an item in segment control widget. Its
28135 * range is from @c 0 to <tt> count - 1 </tt>.
28136 * Count is the number of items, that can be get with
28137 * elm_segment_control_item_count_get().
28139 * @ingroup SegmentControl
28141 EAPI int elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28144 * Get the base object of the item.
28146 * @param it The segment control item.
28147 * @return The base object associated with @p it.
28149 * Base object is the @c Evas_Object that represents that item.
28151 * @ingroup SegmentControl
28153 EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
28156 * Get the selected item.
28158 * @param obj The segment control object.
28159 * @return The selected item or @c NULL if none of segment items is
28162 * The selected item can be unselected with function
28163 * elm_segment_control_item_selected_set().
28165 * The selected item always will be highlighted on segment control.
28167 * @ingroup SegmentControl
28169 EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28172 * Set the selected state of an item.
28174 * @param it The segment control item
28175 * @param select The selected state
28177 * This sets the selected state of the given item @p it.
28178 * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
28180 * If a new item is selected the previosly selected will be unselected.
28181 * Previoulsy selected item can be get with function
28182 * elm_segment_control_item_selected_get().
28184 * The selected item always will be highlighted on segment control.
28186 * @see elm_segment_control_item_selected_get()
28188 * @ingroup SegmentControl
28190 EAPI void elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
28197 * @defgroup Grid Grid
28199 * The grid is a grid layout widget that lays out a series of children as a
28200 * fixed "grid" of widgets using a given percentage of the grid width and
28201 * height each using the child object.
28203 * The Grid uses a "Virtual resolution" that is stretched to fill the grid
28204 * widgets size itself. The default is 100 x 100, so that means the
28205 * position and sizes of children will effectively be percentages (0 to 100)
28206 * of the width or height of the grid widget
28212 * Add a new grid to the parent
28214 * @param parent The parent object
28215 * @return The new object or NULL if it cannot be created
28219 EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
28222 * Set the virtual size of the grid
28224 * @param obj The grid object
28225 * @param w The virtual width of the grid
28226 * @param h The virtual height of the grid
28230 EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h);
28233 * Get the virtual size of the grid
28235 * @param obj The grid object
28236 * @param w Pointer to integer to store the virtual width of the grid
28237 * @param h Pointer to integer to store the virtual height of the grid
28241 EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h);
28244 * Pack child at given position and size
28246 * @param obj The grid object
28247 * @param subobj The child to pack
28248 * @param x The virtual x coord at which to pack it
28249 * @param y The virtual y coord at which to pack it
28250 * @param w The virtual width at which to pack it
28251 * @param h The virtual height at which to pack it
28255 EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
28258 * Unpack a child from a grid object
28260 * @param obj The grid object
28261 * @param subobj The child to unpack
28265 EAPI void elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
28268 * Faster way to remove all child objects from a grid object.
28270 * @param obj The grid object
28271 * @param clear If true, it will delete just removed children
28275 EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
28278 * Set packing of an existing child at to position and size
28280 * @param subobj The child to set packing of
28281 * @param x The virtual x coord at which to pack it
28282 * @param y The virtual y coord at which to pack it
28283 * @param w The virtual width at which to pack it
28284 * @param h The virtual height at which to pack it
28288 EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
28291 * get packing of a child
28293 * @param subobj The child to query
28294 * @param x Pointer to integer to store the virtual x coord
28295 * @param y Pointer to integer to store the virtual y coord
28296 * @param w Pointer to integer to store the virtual width
28297 * @param h Pointer to integer to store the virtual height
28301 EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
28307 EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
28308 EINA_DEPRECATED EAPI void elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
28309 EINA_DEPRECATED EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
28310 EAPI void elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
28311 EAPI Eina_Bool elm_factory_maxmin_mode_get(const Evas_Object *obj);
28312 EAPI void elm_factory_maxmin_reset_set(Evas_Object *obj);
28315 * @defgroup Video Video
28317 * @addtogroup Video
28320 * Elementary comes with two object that help design application that need
28321 * to display video. The main one, Elm_Video, display a video by using Emotion.
28322 * It does embedded the video inside an Edje object, so you can do some
28323 * animation depending on the video state change. It does also implement a
28324 * ressource management policy to remove this burden from the application writer.
28326 * The second one, Elm_Player is a video player that need to be linked with and Elm_Video.
28327 * It take care of updating its content according to Emotion event and provide a
28328 * way to theme itself. It also does automatically raise the priority of the
28329 * linked Elm_Video so it will use the video decoder if available. It also does
28330 * activate the remember function on the linked Elm_Video object.
28332 * Signals that you can add callback for are :
28334 * "forward,clicked" - the user clicked the forward button.
28335 * "info,clicked" - the user clicked the info button.
28336 * "next,clicked" - the user clicked the next button.
28337 * "pause,clicked" - the user clicked the pause button.
28338 * "play,clicked" - the user clicked the play button.
28339 * "prev,clicked" - the user clicked the prev button.
28340 * "rewind,clicked" - the user clicked the rewind button.
28341 * "stop,clicked" - the user clicked the stop button.
28343 * Default contents parts of the player widget that you can use for are:
28344 * @li "video" - A video of the player
28349 * @brief Add a new Elm_Player object to the given parent Elementary (container) object.
28351 * @param parent The parent object
28352 * @return a new player widget handle or @c NULL, on errors.
28354 * This function inserts a new player widget on the canvas.
28356 * @see elm_object_part_content_set()
28360 EAPI Evas_Object *elm_player_add(Evas_Object *parent);
28363 * @brief Link a Elm_Payer with an Elm_Video object.
28365 * @param player the Elm_Player object.
28366 * @param video The Elm_Video object.
28368 * This mean that action on the player widget will affect the
28369 * video object and the state of the video will be reflected in
28370 * the player itself.
28372 * @see elm_player_add()
28373 * @see elm_video_add()
28374 * @deprecated use elm_object_part_content_set() instead
28378 EINA_DEPRECATED EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
28381 * @brief Add a new Elm_Video object to the given parent Elementary (container) object.
28383 * @param parent The parent object
28384 * @return a new video widget handle or @c NULL, on errors.
28386 * This function inserts a new video widget on the canvas.
28388 * @seeelm_video_file_set()
28389 * @see elm_video_uri_set()
28393 EAPI Evas_Object *elm_video_add(Evas_Object *parent);
28396 * @brief Define the file that will be the video source.
28398 * @param video The video object to define the file for.
28399 * @param filename The file to target.
28401 * This function will explicitly define a filename as a source
28402 * for the video of the Elm_Video object.
28404 * @see elm_video_uri_set()
28405 * @see elm_video_add()
28406 * @see elm_player_add()
28410 EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
28413 * @brief Define the uri that will be the video source.
28415 * @param video The video object to define the file for.
28416 * @param uri The uri to target.
28418 * This function will define an uri as a source for the video of the
28419 * Elm_Video object. URI could be remote source of video, like http:// or local source
28420 * like for example WebCam who are most of the time v4l2:// (but that depend and
28421 * you should use Emotion API to request and list the available Webcam on your system).
28423 * @see elm_video_file_set()
28424 * @see elm_video_add()
28425 * @see elm_player_add()
28429 EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
28432 * @brief Get the underlying Emotion object.
28434 * @param video The video object to proceed the request on.
28435 * @return the underlying Emotion object.
28439 EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
28442 * @brief Start to play the video
28444 * @param video The video object to proceed the request on.
28446 * Start to play the video and cancel all suspend state.
28450 EAPI void elm_video_play(Evas_Object *video);
28453 * @brief Pause the video
28455 * @param video The video object to proceed the request on.
28457 * Pause the video and start a timer to trigger suspend mode.
28461 EAPI void elm_video_pause(Evas_Object *video);
28464 * @brief Stop the video
28466 * @param video The video object to proceed the request on.
28468 * Stop the video and put the emotion in deep sleep mode.
28472 EAPI void elm_video_stop(Evas_Object *video);
28475 * @brief Is the video actually playing.
28477 * @param video The video object to proceed the request on.
28478 * @return EINA_TRUE if the video is actually playing.
28480 * You should consider watching event on the object instead of polling
28481 * the object state.
28485 EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video);
28488 * @brief Is it possible to seek inside the video.
28490 * @param video The video object to proceed the request on.
28491 * @return EINA_TRUE if is possible to seek inside the video.
28495 EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video);
28498 * @brief Is the audio muted.
28500 * @param video The video object to proceed the request on.
28501 * @return EINA_TRUE if the audio is muted.
28505 EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
28508 * @brief Change the mute state of the Elm_Video object.
28510 * @param video The video object to proceed the request on.
28511 * @param mute The new mute state.
28515 EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
28518 * @brief Get the audio level of the current video.
28520 * @param video The video object to proceed the request on.
28521 * @return the current audio level.
28525 EAPI double elm_video_audio_level_get(const Evas_Object *video);
28528 * @brief Set the audio level of anElm_Video object.
28530 * @param video The video object to proceed the request on.
28531 * @param volume The new audio volume.
28535 EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
28537 EAPI double elm_video_play_position_get(const Evas_Object *video);
28538 EAPI void elm_video_play_position_set(Evas_Object *video, double position);
28539 EAPI double elm_video_play_length_get(const Evas_Object *video);
28540 EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
28541 EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
28542 EAPI const char *elm_video_title_get(const Evas_Object *video);
28548 * @defgroup Naviframe Naviframe
28549 * @ingroup Elementary
28551 * @brief Naviframe is a kind of view manager for the applications.
28553 * Naviframe provides functions to switch different pages with stack
28554 * mechanism. It means if one page(item) needs to be changed to the new one,
28555 * then naviframe would push the new page to it's internal stack. Of course,
28556 * it can be back to the previous page by popping the top page. Naviframe
28557 * provides some transition effect while the pages are switching (same as
28560 * Since each item could keep the different styles, users could keep the
28561 * same look & feel for the pages or different styles for the items in it's
28564 * Signals that you can add callback for are:
28565 * @li "transition,finished" - When the transition is finished in changing
28567 * @li "title,clicked" - User clicked title area
28569 * Default contents parts of the naviframe items that you can use for are:
28570 * @li "default" - A main content of the page
28571 * @li "icon" - A icon in the title area
28572 * @li "prev_btn" - A button to go to the previous page
28573 * @li "next_btn" - A button to go to the next page
28575 * Default text parts of the naviframe items that you can use for are:
28576 * @li "default" - Title label in the title area
28577 * @li "subtitle" - Sub-title label in the title area
28579 * @ref tutorial_naviframe gives a good overview of the usage of the API.
28583 * @addtogroup Naviframe
28588 * @brief Add a new Naviframe object to the parent.
28590 * @param parent Parent object
28591 * @return New object or @c NULL, if it cannot be created
28593 * @ingroup Naviframe
28595 EAPI Evas_Object *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
28597 * @brief Push a new item to the top of the naviframe stack (and show it).
28599 * @param obj The naviframe object
28600 * @param title_label The label in the title area. The name of the title
28601 * label part is "elm.text.title"
28602 * @param prev_btn The button to go to the previous item. If it is NULL,
28603 * then naviframe will create a back button automatically. The name of
28604 * the prev_btn part is "elm.swallow.prev_btn"
28605 * @param next_btn The button to go to the next item. Or It could be just an
28606 * extra function button. The name of the next_btn part is
28607 * "elm.swallow.next_btn"
28608 * @param content The main content object. The name of content part is
28609 * "elm.swallow.content"
28610 * @param item_style The current item style name. @c NULL would be default.
28611 * @return The created item or @c NULL upon failure.
28613 * The item pushed becomes one page of the naviframe, this item will be
28614 * deleted when it is popped.
28616 * @see also elm_naviframe_item_style_set()
28617 * @see also elm_naviframe_item_insert_before()
28618 * @see also elm_naviframe_item_insert_after()
28620 * The following styles are available for this item:
28623 * @ingroup Naviframe
28625 EAPI Elm_Object_Item *elm_naviframe_item_push(Evas_Object *obj, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
28627 * @brief Insert a new item into the naviframe before item @p before.
28629 * @param before The naviframe item to insert before.
28630 * @param title_label The label in the title area. The name of the title
28631 * label part is "elm.text.title"
28632 * @param prev_btn The button to go to the previous item. If it is NULL,
28633 * then naviframe will create a back button automatically. The name of
28634 * the prev_btn part is "elm.swallow.prev_btn"
28635 * @param next_btn The button to go to the next item. Or It could be just an
28636 * extra function button. The name of the next_btn part is
28637 * "elm.swallow.next_btn"
28638 * @param content The main content object. The name of content part is
28639 * "elm.swallow.content"
28640 * @param item_style The current item style name. @c NULL would be default.
28641 * @return The created item or @c NULL upon failure.
28643 * The item is inserted into the naviframe straight away without any
28644 * transition operations. This item will be deleted when it is popped.
28646 * @see also elm_naviframe_item_style_set()
28647 * @see also elm_naviframe_item_push()
28648 * @see also elm_naviframe_item_insert_after()
28650 * The following styles are available for this item:
28653 * @ingroup Naviframe
28655 EAPI Elm_Object_Item *elm_naviframe_item_insert_before(Elm_Object_Item *before, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
28657 * @brief Insert a new item into the naviframe after item @p after.
28659 * @param after The naviframe item to insert after.
28660 * @param title_label The label in the title area. The name of the title
28661 * label part is "elm.text.title"
28662 * @param prev_btn The button to go to the previous item. If it is NULL,
28663 * then naviframe will create a back button automatically. The name of
28664 * the prev_btn part is "elm.swallow.prev_btn"
28665 * @param next_btn The button to go to the next item. Or It could be just an
28666 * extra function button. The name of the next_btn part is
28667 * "elm.swallow.next_btn"
28668 * @param content The main content object. The name of content part is
28669 * "elm.swallow.content"
28670 * @param item_style The current item style name. @c NULL would be default.
28671 * @return The created item or @c NULL upon failure.
28673 * The item is inserted into the naviframe straight away without any
28674 * transition operations. This item will be deleted when it is popped.
28676 * @see also elm_naviframe_item_style_set()
28677 * @see also elm_naviframe_item_push()
28678 * @see also elm_naviframe_item_insert_before()
28680 * The following styles are available for this item:
28683 * @ingroup Naviframe
28685 EAPI Elm_Object_Item *elm_naviframe_item_insert_after(Elm_Object_Item *after, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
28687 * @brief Pop an item that is on top of the stack
28689 * @param obj The naviframe object
28690 * @return @c NULL or the content object(if the
28691 * elm_naviframe_content_preserve_on_pop_get is true).
28693 * This pops an item that is on the top(visible) of the naviframe, makes it
28694 * disappear, then deletes the item. The item that was underneath it on the
28695 * stack will become visible.
28697 * @see also elm_naviframe_content_preserve_on_pop_get()
28699 * @ingroup Naviframe
28701 EAPI Evas_Object *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
28703 * @brief Pop the items between the top and the above one on the given item.
28705 * @param it The naviframe item
28707 * @ingroup Naviframe
28709 EAPI void elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28711 * Promote an item already in the naviframe stack to the top of the stack
28713 * @param it The naviframe item
28715 * This will take the indicated item and promote it to the top of the stack
28716 * as if it had been pushed there. The item must already be inside the
28717 * naviframe stack to work.
28720 EAPI void elm_naviframe_item_promote(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28722 * @brief Delete the given item instantly.
28724 * @param it The naviframe item
28726 * This just deletes the given item from the naviframe item list instantly.
28727 * So this would not emit any signals for view transitions but just change
28728 * the current view if the given item is a top one.
28730 * @ingroup Naviframe
28732 EAPI void elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28734 * @brief preserve the content objects when items are popped.
28736 * @param obj The naviframe object
28737 * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
28739 * @see also elm_naviframe_content_preserve_on_pop_get()
28741 * @ingroup Naviframe
28743 EAPI void elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
28745 * @brief Get a value whether preserve mode is enabled or not.
28747 * @param obj The naviframe object
28748 * @return If @c EINA_TRUE, preserve mode is enabled
28750 * @see also elm_naviframe_content_preserve_on_pop_set()
28752 * @ingroup Naviframe
28754 EAPI Eina_Bool elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28756 * @brief Get a top item on the naviframe stack
28758 * @param obj The naviframe object
28759 * @return The top item on the naviframe stack or @c NULL, if the stack is
28762 * @ingroup Naviframe
28764 EAPI Elm_Object_Item *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28766 * @brief Get a bottom item on the naviframe stack
28768 * @param obj The naviframe object
28769 * @return The bottom item on the naviframe stack or @c NULL, if the stack is
28772 * @ingroup Naviframe
28774 EAPI Elm_Object_Item *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28776 * @brief Set an item style
28778 * @param obj The naviframe item
28779 * @param item_style The current item style name. @c NULL would be default
28781 * The following styles are available for this item:
28784 * @see also elm_naviframe_item_style_get()
28786 * @ingroup Naviframe
28788 EAPI void elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
28790 * @brief Get an item style
28792 * @param obj The naviframe item
28793 * @return The current item style name
28795 * @see also elm_naviframe_item_style_set()
28797 * @ingroup Naviframe
28799 EAPI const char *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28801 * @brief Show/Hide the title area
28803 * @param it The naviframe item
28804 * @param visible If @c EINA_TRUE, title area will be visible, hidden
28807 * When the title area is invisible, then the controls would be hidden so as * to expand the content area to full-size.
28809 * @see also elm_naviframe_item_title_visible_get()
28811 * @ingroup Naviframe
28813 EAPI void elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
28815 * @brief Get a value whether title area is visible or not.
28817 * @param it The naviframe item
28818 * @return If @c EINA_TRUE, title area is visible
28820 * @see also elm_naviframe_item_title_visible_set()
28822 * @ingroup Naviframe
28824 EAPI Eina_Bool elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
28827 * @brief Set creating prev button automatically or not
28829 * @param obj The naviframe object
28830 * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
28831 * be created internally when you pass the @c NULL to the prev_btn
28832 * parameter in elm_naviframe_item_push
28834 * @see also elm_naviframe_item_push()
28836 EAPI void elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
28838 * @brief Get a value whether prev button(back button) will be auto pushed or
28841 * @param obj The naviframe object
28842 * @return If @c EINA_TRUE, prev button will be auto pushed.
28844 * @see also elm_naviframe_item_push()
28845 * elm_naviframe_prev_btn_auto_pushed_set()
28847 EAPI Eina_Bool elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
28849 * @brief Get a list of all the naviframe items.
28851 * @param obj The naviframe object
28852 * @return An Eina_Inlist* of naviframe items, #Elm_Object_Item,
28853 * or @c NULL on failure.
28855 EAPI Eina_Inlist *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);