4 # include "elementary_config.h"
6 #ifdef HAVE_ELEMENTARY_X
9 #ifdef HAVE_ELEMENTARY_FB
10 # include <Ecore_Fb.h>
12 #ifdef HAVE_ELEMENTARY_WINCE
13 # include <Ecore_WinCE.h>
17 #include "els_scroller.h"
21 #include "elm_widget.h"
23 #define CRITICAL(...) EINA_LOG_DOM_CRIT(_elm_log_dom, __VA_ARGS__)
24 #define ERR(...) EINA_LOG_DOM_ERR (_elm_log_dom, __VA_ARGS__)
25 #define WRN(...) EINA_LOG_DOM_WARN(_elm_log_dom, __VA_ARGS__)
26 #define INF(...) EINA_LOG_DOM_INFO(_elm_log_dom, __VA_ARGS__)
27 #define DBG(...) EINA_LOG_DOM_DBG (_elm_log_dom, __VA_ARGS__)
29 typedef struct _Elm_Config Elm_Config;
30 typedef struct _Elm_Module Elm_Module;
44 /* increment this whenever we change config enough that you need new
45 * defaults for elm to work.
47 #define ELM_CONFIG_EPOCH 0x0001
48 /* increment this whenever a new set of config values are added but the users
49 * config doesn't need to be wiped - simply new values need to be put in
51 #define ELM_CONFIG_FILE_GENERATION 0x0003
52 #define ELM_CONFIG_VERSION ((ELM_CONFIG_EPOCH << 16) | ELM_CONFIG_FILE_GENERATION)
53 /* NB: profile configuration files (.src) must have their
54 * "config_version" entry's value up-to-date with ELM_CONFIG_VERSION
57 /* note: always remember to sync it with elm_config.c */
58 extern const char *_elm_engines[];
60 #define ELM_SOFTWARE_X11 (_elm_engines[0])
61 #define ELM_SOFTWARE_FB (_elm_engines[1])
62 #define ELM_SOFTWARE_DIRECTFB (_elm_engines[2])
63 #define ELM_SOFTWARE_16_X11 (_elm_engines[3])
64 #define ELM_SOFTWARE_8_X11 (_elm_engines[4])
65 #define ELM_XRENDER_X11 (_elm_engines[5])
66 #define ELM_OPENGL_X11 (_elm_engines[6])
67 #define ELM_SOFTWARE_WIN32 (_elm_engines[7])
68 #define ELM_SOFTWARE_16_WINCE (_elm_engines[8])
69 #define ELM_SOFTWARE_SDL (_elm_engines[9])
70 #define ELM_SOFTWARE_16_SDL (_elm_engines[10])
71 #define ELM_OPENGL_SDL (_elm_engines[11])
73 #define ELM_FONT_TOKEN_STYLE ":style="
79 Eina_Bool thumbscroll_enable;
80 int thumbscroll_threshold;
81 double thumbscroll_momentum_threshold;
82 double thumbscroll_friction;
83 double thumbscroll_bounce_friction;
84 double page_scroll_friction;
85 double bring_in_scroll_friction;
87 Eina_Bool thumbscroll_bounce_enable;
88 double thumbscroll_border_friction;
93 Eina_List *font_overlays;
95 int cache_flush_poll_interval;
96 Eina_Bool cache_flush_enable;
100 int edje_collection_cache;
105 double tooltip_delay;
106 Eina_Bool cursor_engine_only;
107 Eina_Bool focus_highlight_enable;
108 Eina_Bool focus_highlight_animate;
109 int toolbar_shrink_mode;
110 Eina_Bool fileselector_expand_enable;
111 Eina_Bool inwin_dialogs_enable;
113 double longpress_timeout;
114 Eina_Bool effect_enable;
123 const char *data_dir;
128 int (*init_func) (Elm_Module *m);
129 int (*shutdown_func) (Elm_Module *m);
133 void _elm_win_shutdown(void);
134 void _elm_win_rescale(Elm_Theme *th, Eina_Bool use_theme);
136 Eina_Bool _elm_theme_object_set(Evas_Object *parent, Evas_Object *o, const char *clas, const char *group, const char *style);
137 Eina_Bool _elm_theme_object_icon_set(Evas_Object *parent, Evas_Object *o, const char *group, const char *style);
138 Eina_Bool _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *group, const char *style);
139 Eina_Bool _elm_theme_icon_set(Elm_Theme *th, Evas_Object *o, const char *group, const char *style);
140 Eina_Bool _elm_theme_parse(Elm_Theme *th, const char *theme);
141 void _elm_theme_shutdown(void);
143 void _elm_module_init(void);
144 void _elm_module_shutdown(void);
145 void _elm_module_parse(const char *s);
146 Elm_Module *_elm_module_find_as(const char *as);
147 Elm_Module *_elm_module_add(const char *name, const char *as);
148 void _elm_module_del(Elm_Module *m);
149 Eina_Bool _elm_module_load(Elm_Module *m);
150 void _elm_module_unload(Elm_Module *m);
151 const void *_elm_module_symbol_get(Elm_Module *m, const char *name);
153 void _elm_widget_type_clear(void);
154 void _elm_widget_focus_region_show(const Evas_Object *obj);
156 void _elm_unneed_ethumb(void);
158 void _elm_rescale(void);
160 void _elm_config_init(void);
161 void _elm_config_sub_init(void);
162 void _elm_config_shutdown(void);
163 Eina_Bool _elm_config_save(void);
164 void _elm_config_reload(void);
166 void _elm_recache(void);
168 const char *_elm_config_current_profile_get(void);
169 const char *_elm_config_profile_dir_get(const char *prof, Eina_Bool is_user);
170 Eina_List *_elm_config_profiles_list(void);
171 void _elm_config_profile_set(const char *profile);
173 void _elm_config_engine_set(const char *engine);
175 Eina_List *_elm_config_font_overlays_list(void);
176 void _elm_config_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
177 void _elm_config_font_overlay_remove(const char *text_class);
178 void _elm_config_font_overlay_apply(void);
179 Eina_List *_elm_config_text_classes_get(void);
180 void _elm_config_text_classes_free(Eina_List *l);
182 Elm_Font_Properties *_elm_font_properties_get(Eina_Hash **font_hash, const char *font);
183 Eina_Hash *_elm_font_available_hash_add(Eina_Hash *font_hash, const char *full_name);
184 void _elm_font_available_hash_del(Eina_Hash *hash);
186 void elm_tooltip_theme(Elm_Tooltip *tt);
187 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);
188 void elm_cursor_theme(Elm_Cursor *cur);
189 void elm_object_sub_cursor_set(Evas_Object *eventarea, Evas_Object *owner, const char *cursor);
191 void elm_menu_clone(Evas_Object *from_menu, Evas_Object *to_menu, Elm_Menu_Item *parent);
193 Eina_Bool _elm_dangerous_call_check(const char *call);
195 Evas_Object *_elm_scroller_edje_object_get(Evas_Object *obj);
197 char *_elm_util_mkup_to_text(const char *mkup);
198 char *_elm_util_text_to_mkup(const char *text);
200 extern char *_elm_appname;
201 extern Elm_Config *_elm_config;
202 extern const char *_elm_data_dir;
203 extern const char *_elm_lib_dir;
204 extern int _elm_log_dom;
205 extern Eina_List *_elm_win_list;