From de4dc2e71a23eade268a4d0974458b5b7d103e4f Mon Sep 17 00:00:00 2001 From: nash Date: Fri, 2 Jul 2010 00:32:56 +0000 Subject: [PATCH] Commit ecore_evas_ecore_evases get Coming soon: ecore_ecore_evas_evas_get evas_ecore_ecore_evas_get get_ecore_evas_ecore_evas_name_gen() git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@49983 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_evas/Ecore_Evas.h | 7 +++++-- src/lib/ecore_evas/ecore_evas.c | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_evas/Ecore_Evas.h b/src/lib/ecore_evas/Ecore_Evas.h index 61a0d5b..188e85b 100644 --- a/src/lib/ecore_evas/Ecore_Evas.h +++ b/src/lib/ecore_evas/Ecore_Evas.h @@ -139,7 +139,7 @@ EAPI int ecore_evas_shutdown(void); EAPI void ecore_evas_app_comp_sync_set(int do_sync); EAPI int ecore_evas_app_comp_sync_get(void); - + EAPI Eina_List *ecore_evas_engines_get(void); EAPI void ecore_evas_engines_free(Eina_List *engines); EAPI Ecore_Evas *ecore_evas_new(const char *engine_name, int x, int y, int w, int h, const char *extra_options); @@ -163,7 +163,7 @@ EAPI void ecore_evas_gl_x11_direct_resize_set(Ecore_Evas *ee, int on) EAPI int ecore_evas_gl_x11_direct_resize_get(const Ecore_Evas *ee); EAPI void ecore_evas_gl_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win); EAPI void ecore_evas_gl_x11_pre_post_swap_callback_set(const Ecore_Evas *ee, void *data, void (*pre_cb) (void *data, Evas *e), void (*post_cb) (void *data, Evas *e)); - + EAPI Ecore_Evas *ecore_evas_xrender_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); EAPI Ecore_X_Window ecore_evas_xrender_x11_window_get(const Ecore_Evas *ee); EAPI void ecore_evas_xrender_x11_direct_resize_set(Ecore_Evas *ee, int on); @@ -352,6 +352,9 @@ EAPI Evas_Object *ecore_evas_object_associate_get(const Ecore_Evas *ee); /* helper function to be used with ECORE_GETOPT_CALLBACK_*() */ EAPI unsigned char ecore_getopt_callback_ecore_evas_list_engines(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage); +EAPI Eina_List *ecore_evas_ecore_evas_list_get(void); + + #ifdef __cplusplus } #endif diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index b1a4eac..5065c1f 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -2858,3 +2858,26 @@ _ecore_evas_mouse_move_process(Ecore_Evas *ee, int x, int y, unsigned int timest evas_event_feed_mouse_move(ee->evas, y, ee->w - x - 1, timestamp, NULL); } +/** + * Get a list of all the ecore_evases. + * + * The returned list of ecore evases is only valid until the canvases are + * destroyed (and should not be cached for instance). + * The list can be free by just deleting the list. + * + * @return A list of ecore_evases. + */ +EAPI Eina_List * +ecore_evas_ecore_evas_list_get(void){ + Ecore_Evas *ee; + Eina_List *l = NULL; + + EINA_INLIST_FOREACH(ecore_evases, ee) + { + l = eina_list_append(l, ee); + } + + return l; +} + + -- 2.7.4