2008-09-29 23:58:56 -07:00
|
|
|
#ifndef ELM_PRIV_H
|
|
|
|
#define ELM_PRIV_H
|
2008-12-18 16:34:56 -08:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2011-12-29 23:20:48 -08:00
|
|
|
#include "elementary_config.h"
|
2008-12-18 16:34:56 -08:00
|
|
|
#endif
|
2008-12-09 22:33:24 -08:00
|
|
|
#ifdef HAVE_ELEMENTARY_X
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <Ecore_X.h>
|
2008-12-09 22:33:24 -08:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_ELEMENTARY_FB
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <Ecore_Fb.h>
|
2008-12-09 22:33:24 -08:00
|
|
|
#endif
|
2008-12-18 16:34:56 -08:00
|
|
|
#ifdef HAVE_ELEMENTARY_WINCE
|
2011-12-29 23:20:48 -08:00
|
|
|
#include <Ecore_WinCE.h>
|
2008-12-08 21:40:38 -08:00
|
|
|
#endif
|
2012-06-06 06:55:15 -07:00
|
|
|
#ifdef HAVE_ELEMENTARY_WAYLAND
|
|
|
|
#include <Ecore_Wayland.h>
|
|
|
|
#endif
|
2008-12-08 21:40:38 -08:00
|
|
|
|
2012-08-17 01:09:06 -07:00
|
|
|
#ifdef HAVE_EIO
|
|
|
|
# include <Eio.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef EAPI
|
|
|
|
# undef EAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# 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 */
|
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif /* ! _WIN32 */
|
|
|
|
|
2010-09-13 00:56:23 -07:00
|
|
|
#include "elm_widget.h"
|
2010-09-09 18:54:05 -07:00
|
|
|
|
2012-05-07 12:32:13 -07:00
|
|
|
#ifdef HAVE_LANGINFO_H
|
|
|
|
# include <langinfo.h>
|
|
|
|
#endif
|
2012-04-25 20:32:18 -07:00
|
|
|
|
2010-09-09 18:54:05 -07:00
|
|
|
#define CRITICAL(...) EINA_LOG_DOM_CRIT(_elm_log_dom, __VA_ARGS__)
|
2012-08-30 09:47:05 -07:00
|
|
|
#define ERR(...) EINA_LOG_DOM_ERR(_elm_log_dom, __VA_ARGS__)
|
2010-09-13 00:56:23 -07:00
|
|
|
#define WRN(...) EINA_LOG_DOM_WARN(_elm_log_dom, __VA_ARGS__)
|
|
|
|
#define INF(...) EINA_LOG_DOM_INFO(_elm_log_dom, __VA_ARGS__)
|
2012-08-30 09:47:05 -07:00
|
|
|
#define DBG(...) EINA_LOG_DOM_DBG(_elm_log_dom, __VA_ARGS__)
|
2010-09-09 18:54:05 -07:00
|
|
|
|
2011-05-29 11:13:52 -07:00
|
|
|
#ifdef ENABLE_NLS
|
2012-09-30 00:15:30 -07:00
|
|
|
# include <libintl.h>
|
|
|
|
# define E_(string) _elm_dgettext(string)
|
2011-05-29 11:13:52 -07:00
|
|
|
#else
|
2012-09-30 00:15:30 -07:00
|
|
|
# ifndef setlocale
|
|
|
|
# define setlocale(c, l)
|
|
|
|
# endif
|
|
|
|
# ifndef libintl_setlocale
|
|
|
|
# define libintl_setlocale(c, l)
|
|
|
|
# endif
|
|
|
|
# ifndef bindtextdomain
|
|
|
|
# define bindtextdomain(domain, dir)
|
|
|
|
# endif
|
|
|
|
# ifndef libintl_bindtextdomain
|
|
|
|
# define libintl_bindtextdomain(domain, dir)
|
|
|
|
# endif
|
|
|
|
# define E_(string) (string)
|
2011-05-29 11:13:52 -07:00
|
|
|
#endif
|
2011-10-19 07:17:14 -07:00
|
|
|
#define N_(string) (string)
|
2011-02-13 00:22:06 -08:00
|
|
|
|
2012-08-30 09:47:05 -07:00
|
|
|
typedef struct _Edje_Signal_Data Edje_Signal_Data;
|
|
|
|
typedef struct _Elm_Config Elm_Config;
|
|
|
|
typedef struct _Elm_Module Elm_Module;
|
2012-03-05 03:07:05 -08:00
|
|
|
typedef struct _Elm_Datetime_Module_Data Elm_Datetime_Module_Data;
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2012-05-25 12:53:59 -07:00
|
|
|
struct _Edje_Signal_Data
|
|
|
|
{
|
|
|
|
Evas_Object *obj;
|
|
|
|
Edje_Signal_Cb func;
|
|
|
|
const char *emission;
|
|
|
|
const char *source;
|
|
|
|
void *data;
|
|
|
|
};
|
|
|
|
|
2010-05-11 18:03:46 -07:00
|
|
|
struct _Elm_Theme
|
|
|
|
{
|
2010-09-13 00:56:23 -07:00
|
|
|
Eina_List *overlay;
|
|
|
|
Eina_List *themes;
|
|
|
|
Eina_List *extension;
|
|
|
|
Eina_Hash *cache;
|
2011-09-11 18:05:07 -07:00
|
|
|
Eina_Hash *cache_data;
|
2010-11-05 01:37:31 -07:00
|
|
|
Elm_Theme *ref_theme;
|
|
|
|
Eina_List *referrers;
|
2010-05-11 18:03:46 -07:00
|
|
|
const char *theme;
|
2010-09-13 00:56:23 -07:00
|
|
|
int ref;
|
2010-05-11 18:03:46 -07:00
|
|
|
};
|
|
|
|
|
2010-09-13 00:56:23 -07:00
|
|
|
/* increment this whenever we change config enough that you need new
|
|
|
|
* defaults for elm to work.
|
Tooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Now owner widget (elm_widget) is just used to listen for theme changes
and create/destroy the tooltip data. The actual mouse events operates
on all Evas_Object and is the one where tooltip data is actually
stored.
The public API is basically the same, just the event_info is now NULL
to avoid confusion.
The internal API introduces elm_object_sub_tooltip_content_cb_set()
and as the first parameter the eventarea. While this may be confusing,
as the second parameter is the actual elementary object, it is the one
that all other calls receive, like elm_object_tooltip_hide() or
elm_object_tooltip_unset(), thus it does make sense to have such order.
Also internal API, elm_widget_item_tooltip_* functions were
added. They are a variation of the widget API to handle its items, as
such the func() gets one more parameter: item, and the del_cb() gets
the item as event_info (that's why the public widget version got
event_info always NULL, to not confuse with this one!)
Widgets with items that makes sense to have tooltips got extra API:
* toolbar
* list
* gengrid
* genlist
SVN revision: 52173
2010-09-12 14:05:13 -07:00
|
|
|
*/
|
2010-09-13 00:56:23 -07:00
|
|
|
#define ELM_CONFIG_EPOCH 0x0001
|
2012-08-30 09:47:05 -07:00
|
|
|
/* increment this whenever a new set of config values are added but
|
|
|
|
* the users config doesn't need to be wiped - simply new values need
|
|
|
|
* to be put in
|
2010-09-09 18:54:05 -07:00
|
|
|
*/
|
2012-11-30 08:52:13 -08:00
|
|
|
#define ELM_CONFIG_FILE_GENERATION 0x0004
|
2012-08-30 09:47:05 -07:00
|
|
|
#define ELM_CONFIG_VERSION ((ELM_CONFIG_EPOCH << 16) | \
|
|
|
|
ELM_CONFIG_FILE_GENERATION)
|
2010-11-24 00:22:02 -08:00
|
|
|
/* NB: profile configuration files (.src) must have their
|
|
|
|
* "config_version" entry's value up-to-date with ELM_CONFIG_VERSION
|
|
|
|
* (in decimal)!! */
|
2010-03-31 05:38:58 -07:00
|
|
|
|
2010-11-01 14:10:07 -07:00
|
|
|
/* note: always remember to sync it with elm_config.c */
|
|
|
|
extern const char *_elm_engines[];
|
|
|
|
|
2010-11-05 01:37:31 -07:00
|
|
|
#define ELM_SOFTWARE_X11 (_elm_engines[0])
|
|
|
|
#define ELM_SOFTWARE_FB (_elm_engines[1])
|
2010-11-01 14:10:07 -07:00
|
|
|
#define ELM_SOFTWARE_DIRECTFB (_elm_engines[2])
|
2010-11-05 01:37:31 -07:00
|
|
|
#define ELM_SOFTWARE_16_X11 (_elm_engines[3])
|
|
|
|
#define ELM_SOFTWARE_8_X11 (_elm_engines[4])
|
|
|
|
#define ELM_XRENDER_X11 (_elm_engines[5])
|
|
|
|
#define ELM_OPENGL_X11 (_elm_engines[6])
|
|
|
|
#define ELM_SOFTWARE_WIN32 (_elm_engines[7])
|
2010-11-01 14:10:07 -07:00
|
|
|
#define ELM_SOFTWARE_16_WINCE (_elm_engines[8])
|
2010-11-05 01:37:31 -07:00
|
|
|
#define ELM_SOFTWARE_SDL (_elm_engines[9])
|
|
|
|
#define ELM_SOFTWARE_16_SDL (_elm_engines[10])
|
|
|
|
#define ELM_OPENGL_SDL (_elm_engines[11])
|
2011-07-25 05:02:52 -07:00
|
|
|
#define ELM_BUFFER (_elm_engines[12])
|
2011-10-05 15:18:22 -07:00
|
|
|
#define ELM_EWS (_elm_engines[13])
|
2011-11-02 12:26:29 -07:00
|
|
|
#define ELM_OPENGL_COCOA (_elm_engines[14])
|
2011-11-05 10:50:09 -07:00
|
|
|
#define ELM_SOFTWARE_PSL1GHT (_elm_engines[15])
|
2012-01-02 17:45:22 -08:00
|
|
|
#define ELM_WAYLAND_SHM (_elm_engines[16])
|
2012-01-12 01:10:27 -08:00
|
|
|
#define ELM_WAYLAND_EGL (_elm_engines[17])
|
2010-11-01 14:10:07 -07:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
#define ELM_FONT_TOKEN_STYLE ":style="
|
2010-11-18 02:01:24 -08:00
|
|
|
|
2012-11-08 15:01:37 -08:00
|
|
|
#define ELM_ACCESS_MODE_OFF EINA_FALSE
|
|
|
|
#define ELM_ACCESS_MODE_ON EINA_TRUE
|
2011-08-19 07:39:27 -07:00
|
|
|
|
2011-12-03 14:51:12 -08:00
|
|
|
#undef MIN
|
|
|
|
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
|
|
|
|
#undef MAX
|
|
|
|
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
|
|
|
|
2010-09-13 00:56:23 -07:00
|
|
|
struct _Elm_Config
|
|
|
|
{
|
2011-12-29 23:20:48 -08:00
|
|
|
int config_version;
|
|
|
|
const char *engine;
|
|
|
|
unsigned char vsync;
|
|
|
|
unsigned char thumbscroll_enable;
|
|
|
|
int thumbscroll_threshold;
|
|
|
|
double thumbscroll_momentum_threshold;
|
|
|
|
double thumbscroll_friction;
|
|
|
|
double thumbscroll_bounce_friction;
|
|
|
|
double page_scroll_friction;
|
|
|
|
double bring_in_scroll_friction;
|
|
|
|
double zoom_friction;
|
|
|
|
unsigned char thumbscroll_bounce_enable;
|
|
|
|
double thumbscroll_border_friction;
|
|
|
|
double thumbscroll_sensitivity_friction;
|
2012-07-05 18:59:57 -07:00
|
|
|
double scroll_smooth_time_interval;
|
2011-12-29 23:20:48 -08:00
|
|
|
double scroll_smooth_amount;
|
|
|
|
double scroll_smooth_history_weight;
|
|
|
|
double scroll_smooth_future_time;
|
|
|
|
double scroll_smooth_time_window;
|
|
|
|
double scale;
|
|
|
|
int bgpixmap;
|
|
|
|
int compositing;
|
|
|
|
Eina_List *font_dirs;
|
|
|
|
Eina_List *font_overlays;
|
|
|
|
int font_hinting;
|
|
|
|
int cache_flush_poll_interval;
|
|
|
|
unsigned char cache_flush_enable;
|
|
|
|
int image_cache;
|
|
|
|
int font_cache;
|
|
|
|
int edje_cache;
|
|
|
|
int edje_collection_cache;
|
|
|
|
int finger_size;
|
|
|
|
double fps;
|
|
|
|
const char *theme;
|
|
|
|
const char *modules;
|
|
|
|
double tooltip_delay;
|
|
|
|
unsigned char cursor_engine_only;
|
|
|
|
unsigned char focus_highlight_enable;
|
|
|
|
unsigned char focus_highlight_animate;
|
|
|
|
int toolbar_shrink_mode;
|
|
|
|
unsigned char fileselector_expand_enable;
|
|
|
|
unsigned char inwin_dialogs_enable;
|
|
|
|
int icon_size;
|
|
|
|
double longpress_timeout;
|
|
|
|
unsigned char effect_enable;
|
|
|
|
unsigned char desktop_entry;
|
2012-08-28 03:37:02 -07:00
|
|
|
unsigned char password_show_last;
|
2011-12-29 23:20:48 -08:00
|
|
|
double password_show_last_timeout;
|
2012-08-28 03:37:02 -07:00
|
|
|
unsigned char glayer_zoom_finger_enable;
|
2011-12-29 23:20:48 -08:00
|
|
|
double glayer_zoom_finger_factor;
|
|
|
|
double glayer_zoom_wheel_factor;
|
|
|
|
double glayer_zoom_distance_tolerance;
|
|
|
|
double glayer_rotate_finger_enable;
|
|
|
|
double glayer_rotate_angular_tolerance;
|
|
|
|
double glayer_line_min_length;
|
|
|
|
double glayer_line_distance_tolerance;
|
|
|
|
double glayer_line_angular_tolerance;
|
|
|
|
unsigned int glayer_flick_time_limit_ms;
|
|
|
|
double glayer_long_tap_start_timeout;
|
2012-05-20 07:56:35 -07:00
|
|
|
double glayer_double_tap_timeout;
|
2012-11-08 15:01:37 -08:00
|
|
|
Eina_Bool access_mode;
|
2012-08-28 03:37:02 -07:00
|
|
|
unsigned char glayer_continues_enable;
|
2012-03-06 20:57:03 -08:00
|
|
|
int week_start;
|
|
|
|
int weekend_start;
|
|
|
|
int weekend_len;
|
2012-04-01 23:20:01 -07:00
|
|
|
int year_min;
|
|
|
|
int year_max;
|
2012-03-09 05:04:00 -08:00
|
|
|
Eina_List *color_palette;
|
2012-07-05 02:23:38 -07:00
|
|
|
unsigned char softcursor_mode;
|
2012-08-28 03:37:02 -07:00
|
|
|
unsigned char auto_norender_withdrawn;
|
|
|
|
unsigned char auto_norender_iconified_same_as_withdrawn;
|
|
|
|
unsigned char auto_flush_withdrawn;
|
|
|
|
unsigned char auto_dump_withdrawn;
|
|
|
|
unsigned char auto_throttle;
|
|
|
|
double auto_throttle_amount;
|
2012-09-12 07:08:26 -07:00
|
|
|
const char *indicator_service_0;
|
|
|
|
const char *indicator_service_90;
|
|
|
|
const char *indicator_service_180;
|
|
|
|
const char *indicator_service_270;
|
2012-11-29 00:58:49 -08:00
|
|
|
unsigned char selection_clear_enable;
|
2013-01-22 10:51:24 -08:00
|
|
|
unsigned char disable_external_menu;
|
2011-09-08 03:10:38 -07:00
|
|
|
|
|
|
|
/* Not part of the EET file */
|
2011-12-29 23:20:48 -08:00
|
|
|
Eina_Bool is_mirrored : 1;
|
|
|
|
Eina_Bool translate : 1;
|
2010-09-13 00:56:23 -07:00
|
|
|
};
|
2010-05-07 08:49:06 -07:00
|
|
|
|
2010-09-13 00:56:23 -07:00
|
|
|
struct _Elm_Module
|
|
|
|
{
|
|
|
|
int version;
|
|
|
|
const char *name;
|
|
|
|
const char *as;
|
|
|
|
const char *so_path;
|
|
|
|
const char *data_dir;
|
|
|
|
const char *bin_dir;
|
2011-11-05 10:49:04 -07:00
|
|
|
Eina_Module *module;
|
2010-09-13 00:56:23 -07:00
|
|
|
void *data;
|
|
|
|
void *api;
|
2011-12-29 23:20:48 -08:00
|
|
|
int (*init_func)(Elm_Module *m);
|
|
|
|
int (*shutdown_func)(Elm_Module *m);
|
2010-09-13 00:56:23 -07:00
|
|
|
int references;
|
|
|
|
};
|
2010-05-07 08:49:06 -07:00
|
|
|
|
2012-03-05 03:07:05 -08:00
|
|
|
struct _Elm_Datetime_Module_Data
|
|
|
|
{
|
|
|
|
Evas_Object *base;
|
2012-08-30 09:47:05 -07:00
|
|
|
void (*field_limit_get)(Evas_Object *obj,
|
|
|
|
Elm_Datetime_Field_Type field_type,
|
|
|
|
int *range_min,
|
|
|
|
int *range_max);
|
|
|
|
const char *(*field_format_get)(Evas_Object * obj,
|
|
|
|
Elm_Datetime_Field_Type field_type);
|
2012-03-05 03:07:05 -08:00
|
|
|
};
|
|
|
|
|
2012-11-30 06:41:39 -08:00
|
|
|
void _elm_prefs_init(void);
|
|
|
|
void _elm_prefs_shutdown(void);
|
|
|
|
|
|
|
|
/* these already issued by the two above, respectively */
|
|
|
|
void _elm_prefs_data_init(void);
|
|
|
|
void _elm_prefs_data_shutdown(void);
|
|
|
|
|
2012-08-30 09:47:05 -07:00
|
|
|
void _elm_emotion_init(void);
|
|
|
|
void _elm_emotion_shutdown(void);
|
2012-07-02 19:13:42 -07:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
int _elm_ews_wm_init(void);
|
|
|
|
void _elm_ews_wm_shutdown(void);
|
2012-08-30 09:47:05 -07:00
|
|
|
void _elm_ews_wm_rescale(Elm_Theme *th,
|
|
|
|
Eina_Bool use_theme);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
void _elm_win_shutdown(void);
|
2012-08-30 09:47:05 -07:00
|
|
|
void _elm_win_rescale(Elm_Theme *th,
|
|
|
|
Eina_Bool use_theme);
|
2012-06-29 23:01:25 -07:00
|
|
|
void _elm_win_access(Eina_Bool is_access);
|
2011-12-29 23:20:48 -08:00
|
|
|
void _elm_win_translate(void);
|
|
|
|
|
2012-07-11 04:53:29 -07:00
|
|
|
Ecore_X_Window _elm_ee_xwin_get(const Ecore_Evas *ee);
|
|
|
|
|
2013-02-25 20:26:22 -08:00
|
|
|
Eina_Bool _elm_theme_object_set(Evas_Object *parent,
|
2012-08-30 09:47:05 -07:00
|
|
|
Evas_Object *o,
|
|
|
|
const char *clas,
|
|
|
|
const char *group,
|
2013-02-25 20:26:22 -08:00
|
|
|
const char *style);
|
2012-08-30 09:47:05 -07:00
|
|
|
Eina_Bool _elm_theme_object_icon_set(Evas_Object *o,
|
|
|
|
const char *group,
|
|
|
|
const char *style);
|
2013-02-25 20:26:22 -08:00
|
|
|
Eina_Bool _elm_theme_set(Elm_Theme *th,
|
2012-08-30 09:47:05 -07:00
|
|
|
Evas_Object *o,
|
|
|
|
const char *clas,
|
|
|
|
const char *group,
|
2013-02-25 20:26:22 -08:00
|
|
|
const char *style);
|
2012-08-30 09:47:05 -07:00
|
|
|
Eina_Bool _elm_theme_icon_set(Elm_Theme *th,
|
|
|
|
Evas_Object *o,
|
|
|
|
const char *group,
|
|
|
|
const char *style);
|
|
|
|
Eina_Bool _elm_theme_parse(Elm_Theme *th,
|
|
|
|
const char *theme);
|
2011-12-29 23:20:48 -08:00
|
|
|
void _elm_theme_shutdown(void);
|
|
|
|
|
|
|
|
void _elm_module_init(void);
|
|
|
|
void _elm_module_shutdown(void);
|
|
|
|
void _elm_module_parse(const char *s);
|
|
|
|
Elm_Module *_elm_module_find_as(const char *as);
|
2012-08-30 09:47:05 -07:00
|
|
|
Elm_Module *_elm_module_add(const char *name,
|
|
|
|
const char *as);
|
2011-12-29 23:20:48 -08:00
|
|
|
void _elm_module_del(Elm_Module *m);
|
|
|
|
Eina_Bool _elm_module_load(Elm_Module *m);
|
|
|
|
void _elm_module_unload(Elm_Module *m);
|
2012-08-30 09:47:05 -07:00
|
|
|
const void *_elm_module_symbol_get(Elm_Module *m,
|
|
|
|
const char *name);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2012-08-30 09:47:05 -07:00
|
|
|
void _elm_widget_top_win_focused_set(Evas_Object *obj,
|
|
|
|
Eina_Bool top_win_focused);
|
2011-12-29 23:20:48 -08:00
|
|
|
Eina_Bool _elm_widget_top_win_focused_get(const Evas_Object *obj);
|
|
|
|
|
2012-12-27 05:38:40 -08:00
|
|
|
void _elm_unneed_systray(void);
|
2012-12-05 14:24:00 -08:00
|
|
|
void _elm_unneed_sys_notify(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
void _elm_unneed_ethumb(void);
|
|
|
|
void _elm_unneed_web(void);
|
|
|
|
|
|
|
|
void _elm_rescale(void);
|
|
|
|
|
|
|
|
void _elm_config_init(void);
|
|
|
|
void _elm_config_sub_init(void);
|
|
|
|
void _elm_config_shutdown(void);
|
|
|
|
void _elm_config_sub_shutdown(void);
|
|
|
|
Eina_Bool _elm_config_save(void);
|
|
|
|
void _elm_config_reload(void);
|
|
|
|
|
|
|
|
void _elm_recache(void);
|
|
|
|
|
|
|
|
const char *_elm_config_current_profile_get(void);
|
2012-08-30 09:47:05 -07:00
|
|
|
const char *_elm_config_profile_dir_get(const char *prof,
|
|
|
|
Eina_Bool is_user);
|
2011-12-29 23:20:48 -08:00
|
|
|
Eina_List *_elm_config_profiles_list(void);
|
|
|
|
void _elm_config_all_update(void);
|
|
|
|
void _elm_config_profile_set(const char *profile);
|
|
|
|
|
|
|
|
void _elm_config_engine_set(const char *engine);
|
|
|
|
|
|
|
|
Eina_List *_elm_config_font_overlays_list(void);
|
2012-08-30 09:47:05 -07:00
|
|
|
void _elm_config_font_overlay_set(const char *text_class,
|
|
|
|
const char *font,
|
|
|
|
Evas_Font_Size size);
|
2011-12-29 23:20:48 -08:00
|
|
|
void _elm_config_font_overlay_remove(const char *text_class);
|
|
|
|
void _elm_config_font_overlay_apply(void);
|
|
|
|
Eina_List *_elm_config_text_classes_get(void);
|
|
|
|
void _elm_config_text_classes_free(Eina_List *l);
|
2010-11-18 02:01:24 -08:00
|
|
|
|
2012-06-29 23:01:25 -07:00
|
|
|
Eina_Bool _elm_config_access_get(void);
|
|
|
|
void _elm_config_access_set(Eina_Bool is_access);
|
|
|
|
|
2012-08-30 09:47:05 -07:00
|
|
|
Elm_Font_Properties *_elm_font_properties_get(Eina_Hash **font_hash,
|
|
|
|
const char *font);
|
|
|
|
Eina_Hash *_elm_font_available_hash_add(Eina_Hash *font_hash,
|
|
|
|
const char *full_name);
|
2010-11-18 02:01:24 -08:00
|
|
|
void _elm_font_available_hash_del(Eina_Hash *hash);
|
|
|
|
|
2010-09-13 00:56:23 -07:00
|
|
|
void elm_tooltip_theme(Elm_Tooltip *tt);
|
2012-08-30 09:47:05 -07:00
|
|
|
void elm_object_sub_tooltip_content_cb_set(Evas_Object *eventarea,
|
|
|
|
Evas_Object *owner,
|
|
|
|
Elm_Tooltip_Content_Cb func,
|
|
|
|
const void *data,
|
|
|
|
Evas_Smart_Cb del_cb);
|
2010-09-25 15:01:19 -07:00
|
|
|
void elm_cursor_theme(Elm_Cursor *cur);
|
2012-08-30 09:47:05 -07:00
|
|
|
void elm_object_sub_cursor_set(Evas_Object *eventarea,
|
|
|
|
Evas_Object *owner,
|
|
|
|
const char *cursor);
|
2010-06-17 01:50:43 -07:00
|
|
|
|
2012-08-30 09:47:05 -07:00
|
|
|
void elm_menu_clone(Evas_Object *from_menu,
|
|
|
|
Evas_Object *to_menu,
|
|
|
|
Elm_Object_Item *parent);
|
2010-12-19 22:05:09 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
char *_elm_util_mkup_to_text(const char *mkup);
|
|
|
|
char *_elm_util_text_to_mkup(const char *text);
|
2011-07-05 07:05:59 -07:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
Eina_Bool _elm_video_check(Evas_Object *video);
|
2011-07-05 07:05:59 -07:00
|
|
|
|
2012-03-09 05:04:00 -08:00
|
|
|
Eina_List *_elm_config_color_list_get(const char *palette_name);
|
2012-08-30 09:47:05 -07:00
|
|
|
void _elm_config_color_set(const char *palette_name,
|
|
|
|
int r,
|
|
|
|
int g,
|
|
|
|
int b,
|
|
|
|
int a);
|
2012-03-09 05:04:00 -08:00
|
|
|
void _elm_config_colors_free(const char *palette_name);
|
|
|
|
|
2012-12-27 05:38:33 -08:00
|
|
|
typedef struct _Elm_DBus_Menu Elm_DBus_Menu;
|
|
|
|
|
|
|
|
const char *_elm_dbus_menu_register(Eo *obj);
|
|
|
|
void _elm_dbus_menu_unregister(Eo *obj);
|
|
|
|
int _elm_dbus_menu_item_add(Elm_DBus_Menu *dbus_menu,
|
|
|
|
Elm_Object_Item *item);
|
|
|
|
void _elm_dbus_menu_item_delete(Elm_DBus_Menu *dbus_menu,
|
|
|
|
int id);
|
|
|
|
|
2013-01-17 14:11:33 -08:00
|
|
|
void _elm_dbus_menu_app_menu_register(Ecore_X_Window xid, Eo *obj,
|
|
|
|
void (*result_cb)(Eina_Bool, void *),
|
|
|
|
void *data);
|
2012-12-27 05:38:33 -08:00
|
|
|
void _elm_dbus_menu_app_menu_unregister(Eo *obj);
|
|
|
|
void _elm_dbus_menu_item_select_cb(Elm_Object_Item *obj_item);
|
|
|
|
|
2013-01-17 14:11:09 -08:00
|
|
|
void _elm_menu_menu_bar_set(Eo *obj, Eina_Bool menu_bar);
|
2013-01-22 10:51:16 -08:00
|
|
|
void _elm_menu_menu_bar_hide(Eo *obj);
|
2013-01-17 14:11:09 -08:00
|
|
|
|
2012-05-28 13:35:35 -07:00
|
|
|
/* DEPRECATED, will be removed on next release */
|
|
|
|
void _elm_icon_signal_emit(Evas_Object *obj,
|
|
|
|
const char *emission,
|
|
|
|
const char *source);
|
|
|
|
void _elm_icon_signal_callback_add(Evas_Object *obj,
|
|
|
|
const char *emission,
|
|
|
|
const char *source,
|
|
|
|
Edje_Signal_Cb func_cb,
|
|
|
|
void *data);
|
|
|
|
void *_elm_icon_signal_callback_del(Evas_Object *obj,
|
|
|
|
const char *emission,
|
|
|
|
const char *source,
|
|
|
|
Edje_Signal_Cb func_cb);
|
|
|
|
/* end of DEPRECATED */
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
extern char *_elm_appname;
|
|
|
|
extern Elm_Config *_elm_config;
|
|
|
|
extern const char *_elm_data_dir;
|
|
|
|
extern const char *_elm_lib_dir;
|
|
|
|
extern int _elm_log_dom;
|
|
|
|
extern Eina_List *_elm_win_list;
|
|
|
|
extern int _elm_win_deferred_free;
|
2012-02-29 04:45:58 -08:00
|
|
|
extern const char *_elm_preferred_engine;
|
2010-04-12 01:27:10 -07:00
|
|
|
|
2011-11-20 05:58:35 -08:00
|
|
|
#ifdef ENABLE_NLS
|
2011-09-18 00:53:41 -07:00
|
|
|
/* Our gettext wrapper, used to disable translation of elm if the app
|
|
|
|
* is not translated. */
|
|
|
|
static inline const char *
|
|
|
|
_elm_dgettext(const char *string)
|
|
|
|
{
|
|
|
|
if (EINA_UNLIKELY(_elm_config->translate == EINA_FALSE))
|
|
|
|
{
|
|
|
|
return string;
|
|
|
|
}
|
|
|
|
|
|
|
|
return dgettext(PACKAGE, string);
|
|
|
|
}
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2011-11-20 05:58:35 -08:00
|
|
|
#endif
|
2011-09-18 00:53:41 -07:00
|
|
|
|
2011-08-03 02:00:36 -07:00
|
|
|
/* Used by the paste handler */
|
2012-08-30 09:47:05 -07:00
|
|
|
void _elm_entry_entry_paste(Evas_Object *obj, const char *entry);
|
2011-08-03 02:00:36 -07:00
|
|
|
|
2012-04-25 20:32:18 -07:00
|
|
|
double _elm_atof(const char *s);
|
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
#endif
|