[cairo-commit]
cairo-java/src/java/org/freedesktop/cairo Cairo.java, 1.3,
1.4 CurrentPath.java, NONE, 1.1
Jeffrey Morgan
commit at pdx.freedesktop.org
Tue Mar 8 07:35:25 PST 2005
Committed by: kuzman
Update of /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo
In directory gabe:/tmp/cvs-serv31244/src/java/org/freedesktop/cairo
Modified Files:
Cairo.java
Added Files:
CurrentPath.java
Log Message:
added current_path callbacks - does not include native calls at this time so cannot be used.
Index: Cairo.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Cairo.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Cairo.java 4 Mar 2005 23:01:41 -0000 1.3
+++ Cairo.java 8 Mar 2005 15:35:23 -0000 1.4
@@ -995,6 +995,14 @@
public String getStatusString() {
return cairo_status_string(getHandle());
}
+
+ public void setCurrentPath(CurrentPath path) {
+ cairo_current_path(getHandle(), path);
+ }
+
+ public void setCurrentPathFlat(CurrentPath path) {
+ cairo_current_path_flat(getHandle(), path);
+ }
/*
@@ -1086,5 +1094,6 @@
native static final private Handle cairo_current_target_surface(Handle obj);
native static final private int cairo_status(Handle obj);
native static final private String cairo_status_string(Handle obj);
-
+ native static final private void cairo_current_path(Handle obj, Object curPath);
+ native static final private void cairo_current_path_flat(Handle obj, Object curPath);
}
\ No newline at end of file
--- NEW FILE: CurrentPath.java ---
/*
* Java-Gnome Bindings Library
*
* Copyright 1998-2005 the Java-Gnome Team, all rights reserved.
*
* The Java-Gnome bindings library is free software distributed under
* the terms of the GNU Library General Public License version 2.
*/
package org.freedesktop.cairo;
/**
*/
public interface CurrentPath {
public void cairoMoveTo(double x, double y);
public void cairoLineTo(double x, double y);
public void cairoCurveTo(double x1, double y1,
double x2, double y2,
double x3, double y3);
public void cairoClosePath();
}
More information about the cairo-commit
mailing list