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()


SVN revision: 49983
This commit is contained in:
Brett Nash 2010-07-02 00:32:56 +00:00
parent b9d2cf0983
commit bb4c28dbb1
2 changed files with 28 additions and 2 deletions

View File

@ -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

View File

@ -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;
}