2013-11-04 01:32:44 -08:00
|
|
|
/* This is the prmary Elementary header file that includes all other useful
|
2012-01-02 03:06:32 -08:00
|
|
|
* headers.
|
2012-06-04 16:34:58 -07:00
|
|
|
*
|
2012-02-14 00:50:15 -08:00
|
|
|
* Elementary is distributed under the LGPLv2 license. Please see the COPYING
|
2012-01-02 03:06:32 -08:00
|
|
|
* file that was distributed with this source.
|
2011-08-03 14:06:56 -07:00
|
|
|
*/
|
2008-09-29 23:58:56 -07:00
|
|
|
#ifndef ELEMENTARY_H
|
|
|
|
#define ELEMENTARY_H
|
|
|
|
|
2016-10-27 03:49:55 -07:00
|
|
|
/* Options which can be enabled or disabled by the buildtool */
|
|
|
|
#include "Elementary_Options.h"
|
2015-01-11 19:08:46 -08:00
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
/* Standard headers for standard system calls etc. */
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <fnmatch.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <time.h>
|
2011-11-20 06:56:12 -08:00
|
|
|
#ifdef ELM_DIRENT_H
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <dirent.h>
|
2011-11-20 06:56:12 -08:00
|
|
|
#endif
|
2019-07-28 01:27:27 -07:00
|
|
|
#ifndef _WIN32
|
|
|
|
# include <pwd.h>
|
|
|
|
#endif
|
2008-09-29 23:58:56 -07:00
|
|
|
#include <errno.h>
|
2008-12-18 17:47:42 -08:00
|
|
|
|
|
|
|
#ifdef ELM_UNIX
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <locale.h>
|
|
|
|
#ifdef ELM_LIBINTL_H
|
|
|
|
#include <libintl.h>
|
|
|
|
#endif
|
|
|
|
#include <signal.h>
|
|
|
|
#include <grp.h>
|
|
|
|
#include <glob.h>
|
2008-12-18 17:47:42 -08:00
|
|
|
#endif
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2008-12-18 17:22:11 -08:00
|
|
|
#ifdef ELM_ALLOCA_H
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <alloca.h>
|
2008-12-18 17:22:11 -08:00
|
|
|
#endif
|
2008-12-18 17:47:42 -08:00
|
|
|
|
2014-06-10 23:44:03 -07:00
|
|
|
#ifdef ELM_WIN32
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <malloc.h>
|
|
|
|
#ifndef alloca
|
|
|
|
#define alloca _alloca
|
|
|
|
#endif
|
2008-12-18 17:47:42 -08:00
|
|
|
#endif
|
2009-07-06 23:46:51 -07:00
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
/* EFL headers */
|
2013-04-27 22:03:14 -07:00
|
|
|
#include "Efl_Config.h"
|
|
|
|
|
2008-10-17 07:40:54 -07:00
|
|
|
#include <Eina.h>
|
|
|
|
#include <Eet.h>
|
2008-09-29 23:58:56 -07:00
|
|
|
#include <Evas.h>
|
2011-12-03 06:21:58 -08:00
|
|
|
#include <Evas_GL.h>
|
2008-09-29 23:58:56 -07:00
|
|
|
#include <Ecore.h>
|
|
|
|
#include <Ecore_Evas.h>
|
|
|
|
#include <Ecore_File.h>
|
2013-01-10 00:22:08 -08:00
|
|
|
#include <Ecore_Input.h>
|
2013-11-12 05:56:05 -08:00
|
|
|
#include <Ecore_IMF.h>
|
|
|
|
#include <Ecore_Con.h>
|
2008-09-29 23:58:56 -07:00
|
|
|
#include <Edje.h>
|
2013-04-23 09:05:43 -07:00
|
|
|
#include <Eldbus.h>
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <Efreet.h>
|
|
|
|
#include <Efreet_Mime.h>
|
|
|
|
#include <Efreet_Trash.h>
|
2013-11-12 05:56:05 -08:00
|
|
|
#include <Ethumb_Client.h>
|
2009-09-12 02:37:29 -07:00
|
|
|
|
2012-12-11 06:05:48 -08:00
|
|
|
#ifdef ELM_ELOCATION
|
|
|
|
#include <Elocation.h>
|
|
|
|
#endif
|
|
|
|
|
2011-06-25 10:48:55 -07:00
|
|
|
#ifdef ELM_EMAP
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <EMap.h>
|
2011-06-25 07:30:10 -07:00
|
|
|
#endif
|
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
#ifdef EAPI
|
2012-04-12 23:28:37 -07:00
|
|
|
# undef EAPI
|
2008-12-18 16:34:56 -08:00
|
|
|
#endif
|
2017-12-20 01:54:14 -08:00
|
|
|
#ifdef EWAPI
|
|
|
|
# undef EWAPI
|
|
|
|
#endif
|
2008-12-18 16:34:56 -08:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
2019-04-11 09:51:13 -07:00
|
|
|
# ifdef EFL_BUILD
|
2012-04-12 23:28:37 -07:00
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
2018-01-18 01:04:03 -08:00
|
|
|
# endif
|
2012-04-12 23:28:37 -07:00
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
2018-01-18 01:04:03 -08:00
|
|
|
# endif
|
2017-12-20 01:54:14 -08:00
|
|
|
# define EAPI_WEAK
|
2011-12-29 23:20:48 -08:00
|
|
|
#else
|
2012-04-12 23:28:37 -07:00
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
2017-12-20 01:54:14 -08:00
|
|
|
# define EAPI_WEAK __attribute__ ((weak))
|
2012-04-12 23:28:37 -07:00
|
|
|
# else
|
|
|
|
# define EAPI
|
2017-12-20 01:54:14 -08:00
|
|
|
# define EAPI_WEAK
|
|
|
|
# endif
|
2012-04-12 23:28:37 -07:00
|
|
|
# else
|
|
|
|
# define EAPI
|
2017-12-20 01:54:14 -08:00
|
|
|
# define EAPI_WEAK
|
2012-04-12 23:28:37 -07:00
|
|
|
# endif
|
2018-01-18 01:04:03 -08:00
|
|
|
#endif
|
2008-12-18 16:34:56 -08:00
|
|
|
|
2017-12-20 01:54:14 -08:00
|
|
|
#define EWAPI EAPI EAPI_WEAK
|
|
|
|
|
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
/* allow usage from c++ */
|
|
|
|
#ifdef __cplusplus
|
2011-12-29 23:20:48 -08:00
|
|
|
extern "C"
|
|
|
|
{
|
2008-09-29 23:58:56 -07:00
|
|
|
#endif
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/* docs */
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_intro.h>
|
|
|
|
#include <elm_getting_started.h>
|
|
|
|
#include <elm_authors.h>
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2016-10-27 03:49:55 -07:00
|
|
|
#define ELM_VERSION_MAJOR EFL_VERSION_MAJOR
|
|
|
|
#define ELM_VERSION_MINOR EFL_VERSION_MINOR
|
2010-06-12 09:05:48 -07:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
typedef struct _Elm_Version
|
|
|
|
{
|
|
|
|
int major;
|
|
|
|
int minor;
|
|
|
|
int micro;
|
|
|
|
int revision;
|
|
|
|
} Elm_Version;
|
2010-06-12 09:05:48 -07:00
|
|
|
|
2012-01-02 03:06:32 -08:00
|
|
|
EAPI extern Elm_Version *elm_version;
|
2010-06-12 09:05:48 -07:00
|
|
|
|
2016-10-20 13:59:05 -07:00
|
|
|
|
2011-12-29 22:49:28 -08:00
|
|
|
/* include these first for general used definitions */
|
2016-01-21 13:16:22 -08:00
|
|
|
#include <elm_gen.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_general.h>
|
2015-09-15 11:38:37 -07:00
|
|
|
#include <elm_config.h>
|
|
|
|
#include <elm_focus.h>
|
2016-10-20 13:59:05 -07:00
|
|
|
|
2019-03-07 14:42:01 -08:00
|
|
|
#include <Efl.h>
|
efl: remove EFL_EO_API_SUPPORT macro
Summary:
Since we're now going to be shipping some eo classes as stable,
there is no point in keeping the eo api behind a macro, and it
should be enabled by default. Another case is beta classes, but
those are behind the EFL_BETA_API_SUPPORT guard.
This also changes includes around the place where things are
clearly broken (such as an included header needing something
from another header but that other header being guarded, notably
efl_ui_widget.h needing focus manager but focus manager being
behind beta in Elementary.h)
Reviewers: zmike, cedric, bu5hm4n, stefan_schmidt, segfaultxavi
Reviewed By: cedric, segfaultxavi
Subscribers: segfaultxavi, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8322
2019-03-18 04:13:41 -07:00
|
|
|
|
|
|
|
#ifdef EFL_BETA_API_SUPPORT
|
2017-12-19 08:23:55 -08:00
|
|
|
# include <elm_interface_scrollable.h>
|
|
|
|
# include <elm_interface_scrollable.eo.h>
|
2016-10-20 13:59:05 -07:00
|
|
|
#endif
|
|
|
|
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_tooltip.h>
|
|
|
|
#include <elm_object_item.h>
|
2015-09-15 11:38:37 -07:00
|
|
|
#include <elm_focus_item.h>
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2012-11-30 06:41:39 -08:00
|
|
|
#include <elm_prefs_data.h>
|
|
|
|
#include <elm_prefs.h>
|
2012-12-27 05:38:40 -08:00
|
|
|
#include <elm_systray.h>
|
2012-12-05 14:24:00 -08:00
|
|
|
#include <elm_sys_notify.h>
|
2012-11-30 06:41:39 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/* special widgets - types used elsewhere */
|
2013-11-02 08:16:23 -07:00
|
|
|
#include <elm_access.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_icon.h>
|
|
|
|
#include <elm_scroller.h>
|
|
|
|
#include <elm_entry.h>
|
|
|
|
#include <elm_list.h>
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2014-10-09 04:14:14 -07:00
|
|
|
/* Interfaces */
|
|
|
|
#include <elm_interfaces.h>
|
|
|
|
|
2011-12-29 22:49:28 -08:00
|
|
|
/* other includes */
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elc_ctxpopup.h>
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
#include <elc_combobox.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_dayselector.h>
|
|
|
|
#include <elc_fileselector_button.h>
|
|
|
|
#include <elc_fileselector_entry.h>
|
|
|
|
#include <elc_fileselector.h>
|
|
|
|
#include <elc_hoversel.h>
|
|
|
|
#include <elc_multibuttonentry.h>
|
|
|
|
#include <elc_naviframe.h>
|
|
|
|
#include <elc_popup.h>
|
|
|
|
#include <elm_actionslider.h>
|
|
|
|
#include <elm_app.h>
|
2014-10-17 08:56:11 -07:00
|
|
|
#include <elm_atspi_app_object.h>
|
2015-06-08 06:40:28 -07:00
|
|
|
#include <elm_atspi_bridge.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_bg.h>
|
|
|
|
#include <elm_box.h>
|
|
|
|
|
|
|
|
#include <elm_bubble.h>
|
|
|
|
#include <elm_button.h>
|
|
|
|
#include <elm_cache.h>
|
|
|
|
#include <elm_calendar.h>
|
2019-09-16 12:17:15 -07:00
|
|
|
/* this is elm_animation_view */
|
efl_ui_animation_view: introduce a new widget for controlling vector animation.
Summary:
This is a new convenient ui control that designed to load vector resources
-svg, json-, and control animations if it supports.
Please turn on evas-loaders-json in meson options,
if you'd like to use Lottie Animation.
Co-authored-by: JunsuChoi <jsuya.choi@samsung.com>
@feature
Reviewers: #committers, jsuya, zmike, bu5hm4n
Reviewed By: #committers, bu5hm4n
Subscribers: zmike, bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9451
2019-08-21 01:39:43 -07:00
|
|
|
#include <efl_ui_animation_view.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_check.h>
|
|
|
|
#include <elm_clock.h>
|
|
|
|
#include <elm_cnp.h>
|
2016-06-02 17:19:08 -07:00
|
|
|
#include <elm_code.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_colorselector.h>
|
2015-04-05 13:02:00 -07:00
|
|
|
#include <elm_color_class.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_conform.h>
|
|
|
|
#include <elm_cursor.h>
|
|
|
|
#include <elm_datetime.h>
|
|
|
|
#include <elm_debug.h>
|
|
|
|
#include <elm_diskselector.h>
|
|
|
|
|
|
|
|
//#include <elm_factory.h>
|
|
|
|
#include <elm_finger.h>
|
|
|
|
#include <elm_flip.h>
|
|
|
|
#include <elm_flipselector.h>
|
|
|
|
#include <elm_font.h>
|
|
|
|
#include <elm_frame.h>
|
|
|
|
#include <elm_gengrid.h>
|
|
|
|
#include <elm_genlist.h>
|
|
|
|
#include <elm_gesture_layer.h>
|
|
|
|
#include <elm_glview.h>
|
|
|
|
#include <elm_grid.h>
|
|
|
|
|
|
|
|
#include <elm_hover.h>
|
|
|
|
#include <elm_image.h>
|
|
|
|
#include <elm_index.h>
|
2012-06-05 15:39:59 -07:00
|
|
|
#include <elm_inwin.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_label.h>
|
|
|
|
#include <elm_layout.h>
|
|
|
|
#include <elm_macros.h>
|
|
|
|
#include <elm_map.h>
|
2012-06-05 15:39:59 -07:00
|
|
|
#include <elm_mapbuf.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_menu.h>
|
|
|
|
#include <elm_mirroring.h>
|
|
|
|
#include <elm_need.h>
|
|
|
|
#include <elm_notify.h>
|
|
|
|
#include <elm_object.h>
|
|
|
|
|
|
|
|
#include <elm_panel.h>
|
|
|
|
#include <elm_panes.h>
|
|
|
|
#include <elm_photocam.h>
|
|
|
|
#include <elm_photo.h>
|
|
|
|
#include <elm_plug.h>
|
|
|
|
#include <elm_progressbar.h>
|
|
|
|
#include <elm_radio.h>
|
|
|
|
#include <elm_route.h>
|
|
|
|
#include <elm_scale.h>
|
|
|
|
#include <elm_scroll.h>
|
|
|
|
#include <elm_segment_control.h>
|
|
|
|
|
|
|
|
#include <elm_separator.h>
|
|
|
|
#include <elm_slider.h>
|
|
|
|
#include <elm_slideshow.h>
|
|
|
|
#include <elm_spinner.h>
|
|
|
|
#include <elm_store.h>
|
|
|
|
#include <elm_table.h>
|
elementary textpath: support legacy APIs
Summary:
Efl.Ui.Textpath was added when we were developing new interfaces.
So, basically, it does not support 'legacy' APIs. ex) elm_textpath_add
But, in Tizen, the legacy APIs had been delivered in old version of EFL.
To reduce maintainning cost between the platforms, this patch will be helpful.
@feature
Test Plan: N/A
Reviewers: Hermet, woohyun, zmike, cedric, herdsman
Reviewed By: Hermet
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7033
2018-10-11 23:42:31 -07:00
|
|
|
#include <elm_textpath.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_theme.h>
|
|
|
|
#include <elm_thumb.h>
|
|
|
|
#include <elm_toolbar.h>
|
|
|
|
#include <elm_transit.h>
|
2019-09-16 12:22:33 -07:00
|
|
|
/* this is actually elm_video */
|
2016-06-22 16:50:05 -07:00
|
|
|
#include <efl_ui_video.h>
|
2015-07-01 15:27:30 -07:00
|
|
|
#include <elm_view_list.h>
|
2015-07-01 15:55:40 -07:00
|
|
|
#include <elm_view_form.h>
|
2011-12-29 22:49:28 -08:00
|
|
|
#include <elm_web.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_win.h>
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2011-12-30 01:41:11 -08:00
|
|
|
/* include deprecated calls last of all */
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_deprecated.h>
|
2011-12-30 01:41:11 -08:00
|
|
|
|
2015-04-02 02:37:37 -07:00
|
|
|
#include <elm_helper.h>
|
|
|
|
|
2009-01-20 16:05:38 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-04-11 09:51:13 -07:00
|
|
|
#ifndef EFL_BUILD
|
2017-12-19 16:29:50 -08:00
|
|
|
# undef EAPI
|
|
|
|
# define EAPI
|
|
|
|
#endif
|
2017-08-08 21:24:48 -07:00
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
#endif
|