aboutsummaryrefslogtreecommitdiff
path: root/libjava/jni/gtk-peer/gtkpeer.h
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2003-10-08 23:38:45 +0000
committerThomas Fitzsimmons <fitzsim@gcc.gnu.org>2003-10-08 23:38:45 +0000
commita5586c386574da2397048bf12b0793a23db405a7 (patch)
tree76a4f1fc8f638f10480fcb4655420078f47c600b /libjava/jni/gtk-peer/gtkpeer.h
parent769e49eb03b412604d9909b9e9c8ab4a87703dd1 (diff)
downloadgcc-a5586c386574da2397048bf12b0793a23db405a7.zip
gcc-a5586c386574da2397048bf12b0793a23db405a7.tar.gz
gcc-a5586c386574da2397048bf12b0793a23db405a7.tar.bz2
2003-10-08 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkButtonPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (gtkSetFont): Handle BOLD and ITALIC style specifiers. (gtkWidgetSetForeground): New method. * gnu/java/awt/peer/gtk/GtkComponentPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (gtkWidgetSetBackground, gtkWidgetSetForeground): New methods. (setBackground, setForeground): Implement. * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (gtkSetFont): Handle BOLD and ITALIC style specifiers. * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString): Position PangoLayout relative to text's baseline. * jni/gtk-peer/gtkpeer.h: Define AWT font style constants. * java/awt/FlowLayout.java (layoutContainer): Fix offset problem for CENTER and RIGHT alignments. From-SVN: r72246
Diffstat (limited to 'libjava/jni/gtk-peer/gtkpeer.h')
-rw-r--r--libjava/jni/gtk-peer/gtkpeer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/jni/gtk-peer/gtkpeer.h b/libjava/jni/gtk-peer/gtkpeer.h
index 5f9d215..b76de30 100644
--- a/libjava/jni/gtk-peer/gtkpeer.h
+++ b/libjava/jni/gtk-peer/gtkpeer.h
@@ -347,6 +347,10 @@ struct graphics
#define AWT_FOCUS_LOST 1004
#define AWT_FOCUS_GAINED 1005
+#define AWT_STYLE_PLAIN 0
+#define AWT_STYLE_BOLD 1
+#define AWT_STYLE_ITALIC 2
+
extern jmethodID setBoundsCallbackID;
extern jmethodID postActionEventID;