static void
_ecore_evas_buffer_free(Ecore_Evas *ee)
{
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
_ecore_evas_buffer_shutdown();
if (ee->engine.buffer.image)
{
{
while (ecore_evases)
{
- _ecore_evas_free((Ecore_Evas *)ecore_evases);
+ _ecore_evas_free(ecore_evases);
}
if (_ecore_evas_fps_debug) _ecore_evas_fps_debug_shutdown();
}
evas_event_feed_mouse_in(ee->evas, 0, NULL);
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
return ee;
#else
return NULL;
static int
_ecore_evas_directfb_idle_enter(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *l;
double t1 = 0.0;
double t2 = 0.0;
{
t1 = ecore_time_get();
}
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
- {
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
+ EINA_INLIST_FOREACH(ecore_evases, l)
_ecore_evas_directfb_render(ee);
- }
if (_ecore_evas_fps_debug)
{
t2 = ecore_time_get();
{
eina_hash_del(ecore_evases_hash, _ecore_evas_directfb_winid_str_get(ee->engine.directfb.window->id), ee);
ecore_directfb_window_free(ee->engine.directfb.window);
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
_ecore_evas_directfb_shutdown();
ecore_directfb_shutdown();
}
einfo->info.surface = window->surface;
evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo);
}
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
if (!ecore_evases_hash)
ecore_evases_hash = eina_hash_string_superfast_new(NULL);
eina_hash_add(ecore_evases_hash, _ecore_evas_directfb_winid_str_get(ee->engine.directfb.window->id), ee);
static void
_ecore_evas_fb_lose(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *ee;
Eina_List *ll;
Ecore_Fb_Input_Device *dev;
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
- {
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
+ EINA_INLIST_FOREACH(ecore_evases, ee)
ee->visible = 0;
- }
EINA_LIST_FOREACH(ecore_evas_input_devices, ll, dev)
ecore_fb_input_device_listen(dev, 0);
static void
_ecore_evas_fb_gain(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *ee;
Eina_List *ll;
Ecore_Fb_Input_Device *dev;
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
+ EINA_INLIST_FOREACH(ecore_evases,ee)
{
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
ee->visible = 1;
if ((ee->rotation == 90) || (ee->rotation == 270))
evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w);
static int
_ecore_evas_idle_enter(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *ee;
double t1 = 0.0;
double t2 = 0.0;
{
t1 = ecore_time_get();
}
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
+ EINA_INLIST_FOREACH(ecore_evases, ee)
{
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
if (ee->visible)
{
Eina_List *updates;
static void
_ecore_evas_fb_free(Ecore_Evas *ee)
{
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
_ecore_evas_fb_shutdown();
ecore_fb_shutdown();
}
evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL);
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
return ee;
}
#else
struct _Ecore_Evas
{
- Ecore_List __list_data;
+ EINA_INLIST;
ECORE_MAGIC;
Evas *evas;
const char *driver;
{
if(ctx != NULL)
{
- Ecore_List2 *l;
+ Ecore_evas *ee;
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
+ EINA_INLIST_FOREACH(ecore_evases, l)
{
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
if (ee->visible)
evas_damage_rectangle_add(ee->evas, 0, 0, 400, 400);
}
static int
_ecore_evas_idle_enter(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *l;
double t1 = 0.;
double t2 = 0.;
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
+ EINA_INLIST_FOREACH(ecore_evases, l)
{
- Ecore_Evas *ee = (Ecore_Evas *)l;
-
if (ee->visible)
evas_render(ee->evas);
else
static void
_ecore_evas_quartz_free(Ecore_Evas *ee)
{
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_unregister(0);
_ecore_evas_quartz_shutdown();
ecore_quartz_shutdown();
evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL);
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
return ee;
free_window:
static int
_ecore_evas_idle_enter(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *ee;
double t1 = 0.0;
double t2 = 0.0;
t1 = ecore_time_get();
}
#endif /* _WIN32 */
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
+ EINA_INLIST_FOREACH(ecore_evases, ee)
{
- Ecore_Evas *ee;
#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
Eina_List *ll;
Ecore_Evas *ee2;
-#endif
-
- ee = (Ecore_Evas *)l;
-#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
{
if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
static void
_ecore_evas_sdl_free(Ecore_Evas *ee)
{
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_unregister(0);
_ecore_evas_sdl_shutdown();
ecore_sdl_shutdown();
_ecore_evas_sdl_init(w, h);
- ecore_event_window_register(0, ee, ee->evas, _ecore_evas_mouse_move_process);
+ ecore_event_window_register(0, ee, ee->evas, (Ecore_Event_Mouse_Move_Cb) _ecore_evas_mouse_move_process);
evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL);
SDL_ShowCursor(SDL_DISABLE);
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
return ee;
}
#endif
static int
_ecore_evas_win32_idle_enter(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *ee;
double t1 = 0.0;
double t2 = 0.0;
{
t1 = ecore_time_get();
}
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
- {
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
+ EINA_INLIST_FOREACH(ecore_evases, l)
_ecore_evas_win32_render(ee);
- }
-/* ecore_x_flush(); */
+
+ /* ecore_x_flush(); */
if (_ecore_evas_fps_debug)
{
t2 = ecore_time_get();
ecore_win32_window_free(ee->prop.window);
ecore_event_window_unregister(ee->prop.window);
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
_ecore_evas_win32_shutdown();
ecore_win32_shutdown();
}
return NULL;
}
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_register(ee->prop.window, ee, ee->evas, _ecore_evas_mouse_move_process);
return ee;
static int
_ecore_evas_wince_idle_enter(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *ee;
double t1 = 0.0;
double t2 = 0.0;
{
t1 = ecore_time_get();
}
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
- {
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
+ EINA_INLIST_FOREACH(ecore_evases, l)
_ecore_evas_wince_render(ee);
- }
+
if (_ecore_evas_fps_debug)
{
t2 = ecore_time_get();
ecore_wince_window_free((Ecore_WinCE_Window *)ee->prop.window);
ecore_event_window_unregister(ee->prop.window);
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
_ecore_evas_wince_shutdown();
ecore_wince_shutdown();
}
ecore_wince_window_resume_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.resume);
}
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_register(ee->prop.window, ee, ee->evas, (Ecore_Event_Mouse_Move_Cb)_ecore_evas_mouse_move_process);
return ee;
static int
_ecore_evas_x_idle_enter(void *data __UNUSED__)
{
- Ecore_List2 *l;
+ Ecore_Evas *l;
double t1 = 0.0;
double t2 = 0.0;
int rend = 0;
{
t1 = ecore_time_get();
}
- for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
- {
- Ecore_Evas *ee;
-
- ee = (Ecore_Evas *)l;
- rend |= _ecore_evas_x_render(ee);
- }
+ EINA_INLIST_FOREACH(ecore_evases, l)
+ rend |= _ecore_evas_x_render(l);
ecore_x_flush();
if (_ecore_evas_fps_debug)
{
ecore_event_window_unregister(*winp);
free(winp);
}
- ecore_evases = _ecore_list2_remove(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_remove(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
_ecore_evas_x_shutdown();
ecore_x_shutdown();
}
evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo);
}
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_register(ee->prop.window, ee, ee->evas, (Ecore_Event_Mouse_Move_Cb) _ecore_evas_mouse_move_process);
return ee;
}
// putenv((char*)"DESKTOP_STARTUP_ID=");
}
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_register(ee->prop.window, ee, ee->evas, (Ecore_Event_Mouse_Move_Cb) _ecore_evas_mouse_move_process);
# endif /* HAVE_ECORE_X_XCB */
evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo);
}
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_register(ee->prop.window, ee, ee->evas, (Ecore_Event_Mouse_Move_Cb) _ecore_evas_mouse_move_process);
return ee;
}
evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo);
}
- ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
+ ecore_evases = (Ecore_Evas *) eina_inlist_prepend(EINA_INLIST_GET(ecore_evases), EINA_INLIST_GET(ee));
ecore_event_window_register(ee->prop.window, ee, ee->evas, (Ecore_Event_Mouse_Move_Cb) _ecore_evas_mouse_move_process);
return ee;
}