From: Enlightenment C. <no...@cv...> - 2007-03-02 18:53:39
|
Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/lib Modified Files: ewl_engines.c ewl_engines.h Log Message: - pull evas call out of x11 engine and add calls to evas engine =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_engines.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -3 -r1.38 -r1.39 --- ewl_engines.c 12 Feb 2007 13:16:05 -0000 1.38 +++ ewl_engines.c 3 Mar 2007 00:53:38 -0000 1.39 @@ -1061,6 +1061,24 @@ DLEAVE_FUNCTION(DLEVEL_STABLE); } +void +ewl_engine_canvas_damage_add(Ewl_Embed *embed, int x, int y, int w, int h) +{ + Ewl_Engine_Cb_Canvas_Damage_Add damage_add; + + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("embed", embed); + DCHECK_TYPE("embed", embed, EWL_EMBED_TYPE); + + damage_add = ewl_engine_hook_get(embed, + EWL_ENGINE_HOOK_TYPE_CANVAS, + EWL_ENGINE_CANVAS_DAMAGE_ADD); + if (damage_add) + damage_add(embed, x, y, w, h); + + DLEAVE_FUNCTION(DLEVEL_STABLE); +} + /** * @param embed: Embed used to lookup the current theme engine. * @return Returns no value =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_engines.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- ewl_engines.h 6 Feb 2007 21:14:01 -0000 1.22 +++ ewl_engines.h 3 Mar 2007 00:53:38 -0000 1.23 @@ -55,6 +55,9 @@ EWL_ENGINE_CANVAS_RENDER, EWL_ENGINE_CANVAS_FREEZE, EWL_ENGINE_CANVAS_THAW, + + EWL_ENGINE_CANVAS_DAMAGE_ADD, + EWL_ENGINE_CANVAS_MAX }; @@ -195,6 +198,9 @@ void ewl_engine_canvas_render(Ewl_Embed *embed); void ewl_engine_canvas_freeze(Ewl_Embed *embed); void ewl_engine_canvas_thaw(Ewl_Embed *embed); +void ewl_engine_canvas_damage_add(Ewl_Embed *embed, int x, int y, + int w, int h); + int ewl_engine_pointer_data_new(Ewl_Embed *embed, unsigned int *data, int w, int h); void ewl_engine_pointer_free(Ewl_Embed *embed, int pointer); @@ -255,6 +261,8 @@ typedef void (*Ewl_Engine_Cb_Canvas_Render)(Ewl_Embed *embed); typedef void (*Ewl_Engine_Cb_Canvas_Freeze)(Ewl_Embed *embed); typedef void (*Ewl_Engine_Cb_Canvas_Thaw)(Ewl_Embed *embed); +typedef void (*Ewl_Engine_Cb_Canvas_Damage_Add)(Ewl_Embed *embed, + int x, int y, int w, int h); typedef void (*Ewl_Engine_Cb_Theme_Freeze)(); typedef void (*Ewl_Engine_Cb_Theme_Thaw)(); typedef char *(*Ewl_Engine_Cb_Theme_Data_Get)(char *path, char *key); |