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
|
|
|
|
|
2013-11-12 05:56:05 -08:00
|
|
|
#define ELM_ELDBUS
|
|
|
|
#define ELM_EFREET
|
|
|
|
#define ELM_ETHUMB
|
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
@ELM_UNIX_DEF@ ELM_UNIX
|
|
|
|
@ELM_WIN32_DEF@ ELM_WIN32
|
2013-12-13 05:26:02 -08:00
|
|
|
@ELM_WEB2_DEF@ ELM_WEB2
|
2011-06-25 10:48:55 -07:00
|
|
|
@ELM_EMAP_DEF@ ELM_EMAP
|
2010-10-01 12:03:23 -07:00
|
|
|
@ELM_DEBUG_DEF@ ELM_DEBUG
|
2008-12-18 17:22:11 -08:00
|
|
|
@ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
|
2009-02-05 02:23:04 -08:00
|
|
|
@ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
|
2011-11-20 06:56:12 -08:00
|
|
|
@ELM_DIRENT_H_DEF@ ELM_DIRENT_H
|
2009-02-05 02:23:04 -08:00
|
|
|
|
2015-01-11 19:08:46 -08:00
|
|
|
#ifdef EFL_BETA_API_SUPPORT
|
|
|
|
@ELM_ELOCATION_DEF@ ELM_ELOCATION
|
|
|
|
#endif
|
|
|
|
|
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
|
2008-09-29 23:58:56 -07:00
|
|
|
#include <pwd.h>
|
|
|
|
#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
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
2012-04-12 23:28:37 -07:00
|
|
|
# ifdef ELEMENTARY_BUILD
|
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif /* ! DLL_EXPORT */
|
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
|
|
|
# endif /* ! EFL_EVAS_BUILD */
|
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")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
2008-12-18 16:34:56 -08:00
|
|
|
#endif /* ! _WIN32 */
|
|
|
|
|
2011-08-27 00:54:49 -07:00
|
|
|
#ifdef _WIN32
|
2012-04-12 23:28:37 -07:00
|
|
|
# define EAPI_MAIN
|
2011-08-27 00:54:49 -07:00
|
|
|
#else
|
2012-04-12 23:28:37 -07:00
|
|
|
# define EAPI_MAIN EAPI
|
2011-08-27 00:54:49 -07:00
|
|
|
#endif
|
2008-12-18 16:34:56 -08:00
|
|
|
|
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
|
|
|
|
2013-11-04 01:32:44 -08:00
|
|
|
#define ELM_VERSION_MAJOR @ELM_VERSION_MAJOR@
|
|
|
|
#define ELM_VERSION_MINOR @ELM_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
|
|
|
|
2011-12-29 22:49:28 -08:00
|
|
|
/* include these first for general used definitions */
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_general.h>
|
|
|
|
#include <elm_tooltip.h>
|
|
|
|
#include <elm_object_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>
|
|
|
|
#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>
|
2013-08-16 14:18:07 -07:00
|
|
|
#include <elm_app_common.h>
|
|
|
|
#include <elm_app_server.h>
|
|
|
|
#include <elm_app_server_view.h>
|
|
|
|
#include <elm_app_client.h>
|
|
|
|
#include <elm_app_client_view.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#include <elm_app.h>
|
2014-10-17 08:56:11 -07:00
|
|
|
#include <elm_atspi_app_object.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>
|
|
|
|
#include <elm_check.h>
|
|
|
|
#include <elm_clock.h>
|
|
|
|
#include <elm_cnp.h>
|
|
|
|
#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_config.h>
|
|
|
|
#include <elm_conform.h>
|
2014-09-24 03:27:14 -07:00
|
|
|
#include <elm_container.h>
|
2012-06-04 16:34:58 -07:00
|
|
|
#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_focus.h>
|
|
|
|
#include <elm_font.h>
|
|
|
|
#include <elm_frame.h>
|
|
|
|
#include <elm_gen.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>
|
|
|
|
#include <elm_theme.h>
|
|
|
|
#include <elm_thumb.h>
|
|
|
|
#include <elm_toolbar.h>
|
|
|
|
#include <elm_transit.h>
|
|
|
|
#include <elm_video.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
|
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
#endif
|