[cairo-commit] cairo-java/src/jni
org_freedesktop_cairo_ImageSurface.c, 1.5, 1.6
Dan Williams
commit at pdx.freedesktop.org
Thu Mar 23 11:03:10 PST 2006
Committed by: dcbw
Update of /cvs/cairo/cairo-java/src/jni
In directory kemper:/tmp/cvs-serv26938/src/jni
Modified Files:
org_freedesktop_cairo_ImageSurface.c
Log Message:
2006-03-23 Dan Williams <dcbw at redhat.com>
Patch from Remy Suen <remy.suen at gmail.com>
* src/java/org/freedesktop/cairo/ImageSurface.java
- Remove TODO from cairo_image_surface_get_width and
cairo_image_surface_get_height
* src/jni/org_freedesktop_cairo_ImageSurface.c
- (cairo_image_surface_get_width): implement
- (cairo_image_surface_get_height): implement
Index: org_freedesktop_cairo_ImageSurface.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_ImageSurface.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- org_freedesktop_cairo_ImageSurface.c 28 Feb 2006 17:51:37 -0000 1.5
+++ org_freedesktop_cairo_ImageSurface.c 23 Mar 2006 19:03:08 -0000 1.6
@@ -53,6 +53,30 @@
return getHandleFromPointer(env, surface);
}
+/*
+ * Class: org_freedesktop_cairo_ImageSurface
+ * Method: get_height
+ * Signature: (Lorg/gnu/glib/Handle;)I
+ */
+JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_ImageSurface_cairo_1image_1surface_1get_1height
+ (JNIEnv *env, jclass cls, jobject surface)
+{
+ cairo_surface_t *surface_g = (cairo_surface_t*)getPointerFromHandle(env, surface);
+ return cairo_image_surface_get_height(surface_g);
+}
+
+/*
+ * Class: org_freedesktop_cairo_ImageSurface
+ * Method: get_width
+ * Signature: (Lorg/gnu/glib/Handle;)I
+ */
+JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_ImageSurface_cairo_1image_1surface_1get_1width
+ (JNIEnv *env, jclass cls, jobject surface)
+{
+ cairo_surface_t *surface_g = (cairo_surface_t*)getPointerFromHandle(env, surface);
+ return cairo_image_surface_get_width(surface_g);
+}
+
#ifdef __cplusplus
}
#endif
More information about the cairo-commit
mailing list