[cairo-commit] CairoJava/src/org/cairographics/cairo CairoGlitzSurface.java, 1.6, 1.7

Charles Tuckey commit at pdx.freedesktop.org
Mon Nov 8 10:07:13 PST 2004


Committed by: ctuckey

Update of /cvs/cairo/CairoJava/src/org/cairographics/cairo
In directory gabe:/tmp/cvs-serv17148/src/org/cairographics/cairo

Modified Files:
	CairoGlitzSurface.java 
Log Message:
Added clip rectangle operation.


Index: CairoGlitzSurface.java
===================================================================
RCS file: /cvs/cairo/CairoJava/src/org/cairographics/cairo/CairoGlitzSurface.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CairoGlitzSurface.java	27 Oct 2004 03:45:37 -0000	1.6
+++ CairoGlitzSurface.java	8 Nov 2004 18:07:11 -0000	1.7
@@ -62,6 +62,13 @@
      */
     public final static int GLITZ_BUFFER_BACK = 1;
     
+    /*
+     * Glitz clip operators
+     */
+    public final static short CLIP_SET = 0;
+    public final static short CLIP_UNION = 1;
+    public final static short CLIP_INTERSECT = 2;
+
     /**
      * Name of GL library to use for initialization. Default is <code>libGL.so.1</code>.
      */
@@ -210,7 +217,10 @@
         glitz_surface_update_size(handle);
                                                                                 
     }
-                                                                                
+             
+    public void clipRectangle(short operator, int x, int y, int width, int height) {
+        glitz_surface_clip_rectangle(handle, operator, x, y, width, height);
+    }
     native static void cairo_set_target_gl(long cr, long surface);
 
     /*
@@ -242,4 +252,5 @@
 
     native static void glitz_surface_update_size(long handle);
     
+    native static void glitz_surface_clip_rectangle(long handle, short operator, int x, int y, int width, int height);
 }




More information about the cairo-commit mailing list