#include "ecore_evas_private.h"
#include "Ecore_Evas.h"
-Eina_Bool _ecore_evas_app_comp_sync = 1;
-int _ecore_evas_log_dom = -1;
+EAPI Eina_Bool _ecore_evas_app_comp_sync = 1;
+EAPI int _ecore_evas_log_dom = -1;
static int _ecore_evas_init_count = 0;
static Ecore_Fd_Handler *_ecore_evas_async_events_fd = NULL;
static Eina_Bool _ecore_evas_async_events_fd_handler(void *data, Ecore_Fd_Handler *fd_handler);
return ECORE_CALLBACK_RENEW;
}
-Ecore_Evas_Interface *
+EAPI Ecore_Evas_Interface *
_ecore_evas_interface_get(const Ecore_Evas *ee, const char *iname)
{
Eina_List *l;
static int _ecore_evas_fps_debug_fd = -1;
unsigned int *_ecore_evas_fps_rendertime_mmap = NULL;
-void
+EAPI void
_ecore_evas_fps_debug_init(void)
{
char buf[4096];
}
}
-void
+EAPI void
_ecore_evas_fps_debug_shutdown(void)
{
_ecore_evas_fps_debug_init_count--;
}
}
-void
+EAPI void
_ecore_evas_fps_debug_rendertime_add(double t)
{
static double rtime = 0.0;
}
}
-void
+EAPI void
_ecore_evas_register(Ecore_Evas *ee)
{
ee->registered = 1;
(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
}
-void
+EAPI void
_ecore_evas_ref(Ecore_Evas *ee)
{
ee->refcount++;
}
-void
+EAPI void
_ecore_evas_unref(Ecore_Evas *ee)
{
ee->refcount--;
ERR("Ecore_Evas %p->refcount=%d < 0", ee, ee->refcount);
}
-void
+EAPI void
_ecore_evas_free(Ecore_Evas *ee)
{
Ecore_Evas_Interface *iface;
return ECORE_CALLBACK_RENEW;
}
-void
+EAPI void
_ecore_evas_idle_timeout_update(Ecore_Evas *ee)
{
if (ee->engine.idle_flush_timer)
ee);
}
-void
+EAPI void
_ecore_evas_mouse_move_process(Ecore_Evas *ee, int x, int y, unsigned int timestamp)
{
ee->mouse.x = x;
evas_event_feed_mouse_move(ee->evas, y, ee->w - x - 1, timestamp, NULL);
}
-void
+EAPI void
_ecore_evas_mouse_multi_move_process(Ecore_Evas *ee, int device,
int x, int y,
double radius,
timestamp, NULL);
}
-void
+EAPI void
_ecore_evas_mouse_multi_down_process(Ecore_Evas *ee, int device,
int x, int y,
double radius,
flags, timestamp, NULL);
}
-void
+EAPI void
_ecore_evas_mouse_multi_up_process(Ecore_Evas *ee, int device,
int x, int y,
double radius,
flags, timestamp, NULL);
}
-void
+EAPI void
_ecore_evas_window_profile_free(Ecore_Evas *ee)
{
if (ee->prop.profile.name)
eina_stringshare_del(ee->prop.profile.name);
}
-void
+EAPI void
_ecore_evas_window_available_profiles_free(Ecore_Evas *ee)
{
if (ee->prop.profile.available_list)
}
}
+EAPI int
+ecore_evas_buffer_render(Ecore_Evas *ee)
+{
+ Ecore_Evas_Interface_Buffer *iface;
+ iface = (Ecore_Evas_Interface_Buffer *)_ecore_evas_interface_get(ee, "buffer");
+ EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0);
+
+ return iface->render(ee);
+}
+
+
+
+
+
+
+
EAPI Eina_List *
ecore_evas_ecore_evas_list_get(void)
{
return new(w, h, alloc_func, free_func, data);
}
-int
-ecore_evas_buffer_render(Ecore_Evas *ee)
-{
- Ecore_Evas_Interface_Buffer *iface;
- iface = (Ecore_Evas_Interface_Buffer *)_ecore_evas_interface_get(ee, "buffer");
- EINA_SAFETY_ON_NULL_RETURN_VAL(iface, 0);
-
- return iface->render(ee);
-}
-
EAPI Ecore_Evas *
ecore_evas_extn_socket_new(int w, int h)
{
/** Log domain macros and variables **/
-extern int _ecore_evas_log_dom;
+EAPI extern int _ecore_evas_log_dom;
#ifdef ECORE_EVAS_DEFAULT_LOG_COLOR
# undef ECORE_EVAS_DEFAULT_LOG_COLOR
unsigned char profile_supported : 1;
};
-void _ecore_evas_ref(Ecore_Evas *ee);
-void _ecore_evas_unref(Ecore_Evas *ee);
-int ecore_evas_buffer_render(Ecore_Evas *ee);
-
-#ifdef BUILD_ECORE_EVAS_EWS
-void _ecore_evas_ews_events_init(void);
-int _ecore_evas_ews_shutdown(void);
-#endif
-
-void _ecore_evas_fps_debug_init(void);
-void _ecore_evas_fps_debug_shutdown(void);
-void _ecore_evas_fps_debug_rendertime_add(double t);
-void _ecore_evas_register(Ecore_Evas *ee);
-void _ecore_evas_free(Ecore_Evas *ee);
-void _ecore_evas_idle_timeout_update(Ecore_Evas *ee);
-void _ecore_evas_mouse_move_process(Ecore_Evas *ee, int x, int y, unsigned int timestamp);
-void _ecore_evas_mouse_multi_move_process(Ecore_Evas *ee, int device,
+EAPI void _ecore_evas_ref(Ecore_Evas *ee);
+EAPI void _ecore_evas_unref(Ecore_Evas *ee);
+EAPI int ecore_evas_buffer_render(Ecore_Evas *ee);
+
+EAPI void _ecore_evas_fps_debug_init(void);
+EAPI void _ecore_evas_fps_debug_shutdown(void);
+EAPI void _ecore_evas_fps_debug_rendertime_add(double t);
+EAPI void _ecore_evas_register(Ecore_Evas *ee);
+EAPI void _ecore_evas_free(Ecore_Evas *ee);
+EAPI void _ecore_evas_idle_timeout_update(Ecore_Evas *ee);
+EAPI void _ecore_evas_mouse_move_process(Ecore_Evas *ee, int x, int y, unsigned int timestamp);
+EAPI void _ecore_evas_mouse_multi_move_process(Ecore_Evas *ee, int device,
int x, int y,
double radius,
double radius_x, double radius_y,
double angle,
double mx, double my,
unsigned int timestamp);
-void _ecore_evas_mouse_multi_down_process(Ecore_Evas *ee, int device,
+EAPI void _ecore_evas_mouse_multi_down_process(Ecore_Evas *ee, int device,
int x, int y,
double radius,
double radius_x, double radius_y,
double mx, double my,
Evas_Button_Flags flags,
unsigned int timestamp);
-void _ecore_evas_mouse_multi_up_process(Ecore_Evas *ee, int device,
+EAPI void _ecore_evas_mouse_multi_up_process(Ecore_Evas *ee, int device,
int x, int y,
double radius,
double radius_x, double radius_y,
Evas_Button_Flags flags,
unsigned int timestamp);
-extern Eina_Bool _ecore_evas_app_comp_sync;
-
+EAPI extern Eina_Bool _ecore_evas_app_comp_sync;
-Eina_Module *_ecore_evas_engine_load(const char *engine);
-void _ecore_evas_engine_init();
-void _ecore_evas_engine_shutdown();
-Ecore_Evas_Interface *_ecore_evas_interface_get(const Ecore_Evas *ee, const char *iname);
+EAPI Ecore_Evas_Interface *_ecore_evas_interface_get(const Ecore_Evas *ee, const char *iname);
/**
* @brief Free the string of the window profile.
*
* This is a helper function to free window profile.
*/
-void _ecore_evas_window_profile_free(Ecore_Evas *ee);
+EAPI void _ecore_evas_window_profile_free(Ecore_Evas *ee);
/**
* @brief Free the string array of available window profiles.
*
* This is a helper function to free available window profiles.
*/
-void _ecore_evas_window_available_profiles_free(Ecore_Evas *ee);
+EAPI void _ecore_evas_window_available_profiles_free(Ecore_Evas *ee);
+
+#ifdef BUILD_ECORE_EVAS_EWS
+void _ecore_evas_ews_events_init(void);
+int _ecore_evas_ews_shutdown(void);
+#endif
+
+Eina_Module *_ecore_evas_engine_load(const char *engine);
+void _ecore_evas_engine_init();
+void _ecore_evas_engine_shutdown();
#endif