[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Context.c,
1.4, 1.5 org_freedesktop_cairo_FontFace.c, 1.2, 1.3
Jeffrey Morgan
commit at pdx.freedesktop.org
Mon May 9 07:47:09 PDT 2005
- Previous message: [cairo-commit] pycairo/cairo cairogtkmodule.c, 1.18,
1.19 cairomodule.c, 1.30, 1.31 cairosvgmodule.c, 1.3,
1.4 pycairo-context.c, 1.46, 1.47 pycairo-font.c, 1.13,
1.14 pycairo-matrix.c, 1.14, 1.15 pycairo-misc.h, 1.1,
1.2 pycairo-path.c, NONE, 1.1 pycairo-pattern.c, 1.17,
1.18 pycairo-private.h, 1.20, 1.21 pycairo-surface.c, 1.34,
1.35 pycairo.h, 1.27, 1.28 pycairosvg-context.c, 1.4,
1.5 pycairosvg-private.h, 1.2, 1.3 Makefile.am, 1.11, 1.12
- Next message: [cairo-commit] cairo-java/test/kapow Kapow.java,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: kuzman
Update of /cvs/cairo/cairo-java/src/jni
In directory gabe:/tmp/cvs-serv22049/src/jni
Modified Files:
org_freedesktop_cairo_Context.c
org_freedesktop_cairo_FontFace.c
Log Message:
Continued API restructuring and cleanup
Index: org_freedesktop_cairo_Context.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Context.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- org_freedesktop_cairo_Context.c 7 May 2005 00:46:23 -0000 1.4
+++ org_freedesktop_cairo_Context.c 9 May 2005 14:47:03 -0000 1.5
@@ -35,20 +35,6 @@
/*
* Class: org_freedesktop_cairo_Context
- * Method: cairo_reference
- * Signature: (Lorg/gnu/javagnome/Handle;)V
- */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Context_cairo_1reference
- (JNIEnv *env, jclass cls, jobject obj)
-{
- cairo_t *cr;
-
- cr = (cairo_t*)getPointerFromHandle(env, obj);
- cairo_reference(cr);
-}
-
-/*
- * Class: org_freedesktop_cairo_Context
* Method: cairo_destroy
* Signature: (Lorg/gnu/glib/Handle;)V
*/
@@ -522,6 +508,18 @@
/*
* Class: org_freedesktop_cairo_Context
+ * Method: cairo_paint_with_alpha
+ * Signature: (Lorg/gnu/javagnome/Handle;)V
+ */
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Context_cairo_1paint_1with_1alpha
+ (JNIEnv *env, jclass cls, jobject obj, jdouble alpha)
+{
+ cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
+ cairo_paint_with_alpha(cr, alpha);
+}
+
+/*
+ * Class: org_freedesktop_cairo_Context
* Method: cairo_mask
* Signature: (Lorg/gnu/javagnome/Handle;Lorg/gnu/javagnome/Handle;)V
*/
@@ -931,24 +929,6 @@
/*
* Class: org_freedesktop_cairo_Context
- * Method: cairo_get_rgb_color
- * Signature: (Lorg/gnu/glib/Handle;[D[D[D)V
- */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Context_cairo_1get_1rgb_1color
- (JNIEnv *env, jclass cls, jobject obj, jdoubleArray red, jdoubleArray green, jdoubleArray blue)
-{
- cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
- double *r = (double*)(*env)->GetDoubleArrayElements(env, red, NULL);
- double *g = (double*)(*env)->GetDoubleArrayElements(env, green, NULL);
- double *b = (double*)(*env)->GetDoubleArrayElements(env, blue, NULL);
- cairo_get_rgb_color(cr, r, g, b);
- (*env)->ReleaseDoubleArrayElements(env, red, r, 0);
- (*env)->ReleaseDoubleArrayElements(env, green, g, 0);
- (*env)->ReleaseDoubleArrayElements(env, blue, b, 0);
-}
-
-/*
- * Class: org_freedesktop_cairo_Context
* Method: cairo_get_source
* Signature: (Lorg/gnu/glib/Handle;)Lorg/gnu/glib/Handle;
*/
Index: org_freedesktop_cairo_FontFace.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_FontFace.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- org_freedesktop_cairo_FontFace.c 23 Apr 2005 19:25:56 -0000 1.2
+++ org_freedesktop_cairo_FontFace.c 9 May 2005 14:47:03 -0000 1.3
@@ -17,17 +17,6 @@
extern "C" {
#endif
-/*
- * Class: org_freedesktop_cairo_FontFace
- * Method: cairo_font_face_reference
- * Signature: (Lorg/gnu/glib/Handle;)V
- */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_FontFace_cairo_1font_1face_1reference
- (JNIEnv *env, jclass cls, jobject obj)
-{
- cairo_font_face_t *font = (cairo_font_face_t*)getPointerFromHandle(env, obj);
- cairo_font_face_reference(font);
-}
/*
* Class: org_freedesktop_cairo_FontFace
- Previous message: [cairo-commit] pycairo/cairo cairogtkmodule.c, 1.18,
1.19 cairomodule.c, 1.30, 1.31 cairosvgmodule.c, 1.3,
1.4 pycairo-context.c, 1.46, 1.47 pycairo-font.c, 1.13,
1.14 pycairo-matrix.c, 1.14, 1.15 pycairo-misc.h, 1.1,
1.2 pycairo-path.c, NONE, 1.1 pycairo-pattern.c, 1.17,
1.18 pycairo-private.h, 1.20, 1.21 pycairo-surface.c, 1.34,
1.35 pycairo.h, 1.27, 1.28 pycairosvg-context.c, 1.4,
1.5 pycairosvg-private.h, 1.2, 1.3 Makefile.am, 1.11, 1.12
- Next message: [cairo-commit] cairo-java/test/kapow Kapow.java,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list