[cairo-commit] cairo-java/src/java/org/freedesktop/cairo Status.java, 1.2, 1.3 Surface.java, 1.1, 1.2

Jeffrey Morgan commit at pdx.freedesktop.org
Wed Mar 16 17:32:11 PST 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo
In directory gabe:/tmp/cvs-serv24869/src/java/org/freedesktop/cairo

Modified Files:
	Status.java Surface.java 
Log Message:
changes to bring current with cairo cvs

Index: Status.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Status.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Status.java	13 Mar 2005 16:36:58 -0000	1.2
+++ Status.java	17 Mar 2005 01:32:09 -0000	1.3
@@ -32,9 +32,15 @@
     static final public Status INVALID_STRING = new Status (_INVALID_STRING);
     static final private int _INVALID_DATA_PATH = 9;
     static final public Status INVALID_DATA_PATH = new Status (_INVALID_DATA_PATH);
+    static final private int _WRITE_ERROR = 10;
+    static final public Status WRITE_ERROR = new Status (_WRITE_ERROR);
+    static final private int _SURFACE_FINISHED = 9;
+    static final public Status SURFACE_FINISHED = new Status (_SURFACE_FINISHED);
+
     static final private Status[] theInterned = new Status[] {
         SUCCESS, NO_MEMORY, INVALID_RESTORE, INVALID_POP_GROUP, NO_CURRENT_POINT,
-        INVALID_MATRIX, NO_TARGET_SURFACE, NULL_POINTER, INVALID_STRING, INVALID_DATA_PATH
+        INVALID_MATRIX, NO_TARGET_SURFACE, NULL_POINTER, INVALID_STRING, INVALID_DATA_PATH,
+        WRITE_ERROR, SURFACE_FINISHED
     };
     static private java.util.Hashtable theInternedExtras;
     static final private Status theSacrificialOne = new Status (0);

Index: Surface.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Surface.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Surface.java	23 Feb 2005 18:17:52 -0000	1.1
+++ Surface.java	17 Mar 2005 01:32:09 -0000	1.2
@@ -44,6 +44,10 @@
     	int status = cairo_surface_set_repeat(getHandle(), repeat);
     }
     
+    public void finish() {
+    	int status = cairo_surface_finish(getHandle());
+    }
+    
     /**
      * Sets the transformation matrix for the surface.
      * 
@@ -91,6 +95,7 @@
     native static final private void cairo_surface_reference(Handle obj);
     native static final private void cairo_surface_destroy(Handle obj);
     native static final private int cairo_surface_set_repeat(Handle obj, int repeat);
+    native static final private int cairo_surface_finish(Handle obj);
     native static final private int cairo_surface_set_matrix(Handle obj, Handle matrix);
     native static final private int cairo_surface_get_matrix(Handle obj, Handle matrix);
     native static final private int cairo_surface_set_filter(Handle obj, int filter);




More information about the cairo-commit mailing list