From 6171a7dfb853b5b0d4da9cd0f2f9036ea15ef9e4 Mon Sep 17 00:00:00 2001 From: Roman Kennke Date: Mon, 25 Jun 2007 11:25:50 +0000 Subject: 2007-06-25 Roman Kennke * gnu/java/awt/peer/ClasspathFontPeer.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/gtk/GdkFontPeer.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postMouseEvent): Use MouseEvent constructor with absolute coordinates to avoid deadlock (over getLocationOnScreen()). * gnu/java/awt/peer/gtk/VolatileImageGraphics.java (getDeviceConfiguration): Fall back to the default configuration if the component is not set. * gnu/java/awt/peer/qt/QtFontMetrics.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/qt/QtFontPeer.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/x/XFontPeer2.java (canDisplay): Take character as integer codepoint. * include/gnu_java_awt_peer_qt_QtFontMetrics.h (canDisplay): Take character as integer codepoint. * java/awt/Font.java (DIALOG): New constant. (DIALOG_INPUT): New constant. (MONOSPACED): New constant. (SANS_SERIF): New constant. (SERIF): New constant. (Font(Font)): New constructor. (canDisplay(char)): Use new canDisplay(int) method. (canDisplay(int)): New method. (hasLayoutAttributes): New method. * java/awt/event/MouseEvent.java (absX,absY): New fields. (MouseEvent): New constructor with absolute coordinates. (getLocationOnScreen): New method. (getXOnScreen): New method. (getYOnScreen): New method. * native/jni/qt-peer/qtfontmetrics.cpp (canDisplay): Take character as integer codepoint. --- include/gnu_java_awt_peer_qt_QtFontMetrics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/gnu_java_awt_peer_qt_QtFontMetrics.h b/include/gnu_java_awt_peer_qt_QtFontMetrics.h index 632167a76..ebc607ed3 100644 --- a/include/gnu_java_awt_peer_qt_QtFontMetrics.h +++ b/include/gnu_java_awt_peer_qt_QtFontMetrics.h @@ -14,7 +14,7 @@ JNIEXPORT void JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_init (JNIEnv *env JNIEXPORT void JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_initGraphics (JNIEnv *env, jobject, jobject, jobject); JNIEXPORT void JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_dispose (JNIEnv *env, jobject); JNIEXPORT jobject JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_getStringBounds (JNIEnv *env, jobject, jstring); -JNIEXPORT jboolean JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_canDisplay (JNIEnv *env, jobject, jchar); +JNIEXPORT jboolean JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_canDisplay (JNIEnv *env, jobject, jint); JNIEXPORT jint JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_getAscent (JNIEnv *env, jobject); JNIEXPORT jint JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_getDescent (JNIEnv *env, jobject); JNIEXPORT jint JNICALL Java_gnu_java_awt_peer_qt_QtFontMetrics_getHeight (JNIEnv *env, jobject); -- cgit v1.2.1