Enlightenment CVS committal

Author  : cmarcelo
Project : e17
Module  : proto/python-efl

Dir     : e17/proto/python-efl/python-evas/evas


Modified Files:
        __init__.py evas.c_evas_object_image.pxi 
Added Files:
        evas_object_image_mask.c evas_object_image_mask.h 


Log Message:
Python-Evas: adding primitive for applying filling one image over another using 
a mask. Patch by: Adriano Rezende.


===================================================================
RCS file: /cvs/e/e17/proto/python-efl/python-evas/evas/__init__.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- __init__.py 15 Nov 2007 22:38:11 -0000      1.17
+++ __init__.py 6 Dec 2007 15:28:11 -0000       1.18
@@ -6,7 +6,7 @@
      Image, FilledImage, Gradient, Polygon, Text, Rect, EvasLoadError, \
      shutdown, render_method_lookup, render_method_list, \
      color_argb_premul, color_argb_unpremul, color_parse, \
-     color_rgb_to_hsv, color_hsv_to_rgb
+     color_rgb_to_hsv, color_hsv_to_rgb, image_mask_fill
 
 
 EVAS_CALLBACK_MOUSE_IN = 0
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-evas/evas/evas.c_evas_object_image.pxi,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- evas.c_evas_object_image.pxi        15 Nov 2007 22:38:11 -0000      1.14
+++ evas.c_evas_object_image.pxi        6 Dec 2007 15:28:11 -0000       1.15
@@ -1,5 +1,20 @@
 # This file is included verbatim by c_evas.pyx
 
+
+## for mask support
+cdef extern from "evas_object_image_mask.h":
+    int evas_object_image_mask_fill(Evas_Object *src, Evas_Object *mask, 
+        Evas_Object *surface, int x_mask, int y_mask, int x_surface, int 
y_surface)
+
+def image_mask_fill(source, mask, surface, int x_mask, int y_mask, 
+    int x_surface, int y_surface):
+        cdef Image isource = <Image> source
+        cdef Image imask = <Image> mask
+        cdef Image isurface = <Image> surface
+        evas_object_image_mask_fill(isource.obj, imask.obj, isurface.obj, 
+           x_mask, y_mask, x_surface, y_surface)
+
+
 ## for rotate support
 cdef extern from "evas_object_image_rotate.h":
     ctypedef enum Rotation:



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to