diff options
author | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-27 18:08:03 +0000 |
---|---|---|
committer | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-27 18:08:03 +0000 |
commit | 71351bc0075ede633de0c3803dacdbde0a36d0b1 (patch) | |
tree | cd4f0a646e2da364d4212a8678f7a4479d0a0ee8 /libjava/classpath/native/jni | |
parent | 7d17e6c7d83bc459a143a9dcfd91ffe9c63d8106 (diff) | |
download | gcc-71351bc0075ede633de0c3803dacdbde0a36d0b1.tar.gz |
2007-03-16 Francis Kung <fkung@redhat.com>
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(cairoArc): Make protected rather than private so it can be over-ridden.
(cairoClip): Likewise.
(cairoClosePath): Likewise.
(cairoCurveTo): Likewise.
(cairoDrawGlyphVector): Likewise.
(cairoFill): Likewise.
(cairoLineTo): Likewise.
(cairoMoveTo): Likewise.
(cairoNewPath): Likewise.
(cairoRectangle): Likewise.
(cairoResetClip): Likewise.
(cairoRestore): Likewise.
(cairoSave): Likewise.
(cairoScale): Likewise.
(cairoSetAntialias): Likewise.
(cairoSetDash): Likewise.
(cairoSetFillRule): Likewise.
(cairoSetFont): Likewise.
(cairoSetLine): Likewise.
(cairoSetMatrix): Likewise.
(cairoSetOperator): Likewise.
(cairoSetRGBAColor): Likewise.
(cairoStroke): Likewise.
(drawPixels): Likewise.
(init): Likewise.
(setGradient): Likewise.
(setPaintPixels): Likewise.
(cairoDrawLine): Removed.
(cairoDrawRect): Removed.
(cairoFillRect): Removed.
(cairoPreserveClip): Removed.
(cairoRelCurveTo): Removed.
(cairoRelLineTo): Removed.
(cairoRelMoveTo): Removed.
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(cairoArc): New method wrapping superclass method in locks.
(cairoClip): Likewise.
(cairoClosePath): Likewise.
(cairoCurveTo): Likewise.
(cairoDrawGlyphVector): Likewise.
(cairoFill): Likewise.
(cairoLineTo): Likewise.
(cairoMoveTo): Likewise.
(cairoNewPath): Likewise.
(cairoRectangle): Likewise.
(cairoResetClip): Likewise.
(cairoRestore): Likewise.
(cairoSave): Likewise.
(cairoScale): Likewise.
(cairoSetAntialias): Likewise.
(cairoSetDash): Likewise.
(cairoSetFillRule): Likewise.
(cairoSetFont): Likewise.
(cairoSetLine): Likewise.
(cairoSetMatrix): Likewise.
(cairoSetOperator): Likewise.
(cairoSetRGBAColor): Likewise.
(cairoStroke): Likewise.
(disposeNative): Likewise.
(drawPixels): Likewise.
(init): Likewise.
(setGradient): Likewise.
(setPaintPixels): Likewise.
(draw): Do not lock, as locking is now done in the wrapped native methods.
(drawComposite): Likewise.
(drawGlyphVector): Likewise.
(drawImage): Likewise.
(drawRenderedImage): Likewise.
(fill): Likewise.
(setClip): Removed.
(lock): Added documentation.
(unlock): Added documentation.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated.
* include/gnu_java_awt_peer_gtk_ComponentGraphics.h: Regenerated.
* lib/gnu/java/awt/peer/gtk/ComponentGraphics.class: Regenerated.
* lib/gnu/java/awt/peer/gtk/CairoGraphics2D.class: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawLine): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawRect): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoFillRect): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoPreserveClip): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelCurveTo): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelLineTo): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelMoveTo): Removed.
2007-04-27 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/CairoGraphics2D.h: Regenerate.
* gnu/java/awt/peer/gtk/ComponentGraphics.h: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124226 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/native/jni')
-rw-r--r-- | libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c b/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c index bd63ac36667..b183a1bac77 100644 --- a/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c +++ b/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c @@ -609,40 +609,6 @@ Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoCurveTo } JNIEXPORT void JNICALL -Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelMoveTo -(JNIEnv *env __attribute__((unused)), jobject obj __attribute__((unused)), - jlong pointer, jdouble dx, jdouble dy) -{ - struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); - g_assert (gr != NULL); - - cairo_rel_move_to (gr->cr, dx, dy); -} - -JNIEXPORT void JNICALL -Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelLineTo -(JNIEnv *env __attribute__((unused)), jobject obj __attribute__((unused)), - jlong pointer, jdouble dx, jdouble dy) -{ - struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); - g_assert (gr != NULL); - - cairo_rel_line_to (gr->cr, dx, dy); -} - -JNIEXPORT void JNICALL -Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelCurveTo -(JNIEnv *env __attribute__((unused)), jobject obj __attribute__((unused)), - jlong pointer, jdouble dx1, jdouble dy1, - jdouble dx2, jdouble dy2, jdouble dx3, jdouble dy3) -{ - struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); - g_assert (gr != NULL); - - cairo_rel_curve_to (gr->cr, dx1, dy1, dx2, dy2, dx3, dy3); -} - -JNIEXPORT void JNICALL Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRectangle (JNIEnv *env __attribute__((unused)), jobject obj __attribute__((unused)), jlong pointer, jdouble x, jdouble y, jdouble width, jdouble height) @@ -726,57 +692,6 @@ Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoResetClip cairo_reset_clip( gr->cr ); } -JNIEXPORT void JNICALL -Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoPreserveClip -(JNIEnv *env __attribute__((unused)), jobject obj __attribute__((unused)), - jlong pointer) -{ - struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); - g_assert (gr != NULL); - - cairo_clip_preserve( gr->cr ); -} - -JNIEXPORT void JNICALL -Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawLine -(JNIEnv *env __attribute__ ((unused)), jobject obj __attribute__ ((unused)), - jlong pointer, jdouble x1, jdouble y1, jdouble x2, jdouble y2) -{ - struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); - g_assert (gr != NULL); - - cairo_new_path(gr->cr); - cairo_move_to(gr->cr, x1, y1); - cairo_line_to(gr->cr, x2, y2); - cairo_stroke(gr->cr); -} - -JNIEXPORT void JNICALL -Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawRect -(JNIEnv *env __attribute__ ((unused)), jobject obj __attribute__ ((unused)), - jlong pointer, jdouble x, jdouble y, jdouble w, jdouble h) -{ - struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); - g_assert (gr != NULL); - - cairo_new_path(gr->cr); - cairo_rectangle(gr->cr, x, y, w, h); - cairo_stroke(gr->cr); -} - -JNIEXPORT void JNICALL -Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoFillRect -(JNIEnv *env __attribute__ ((unused)), jobject obj __attribute__ ((unused)), - jlong pointer, jdouble x, jdouble y, jdouble w, jdouble h) -{ - struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); - g_assert (gr != NULL); - - cairo_new_path(gr->cr); - cairo_rectangle(gr->cr, x, y, w, h); - cairo_fill(gr->cr); -} - static void update_pattern_transform (struct cairographics2d *gr) { |