1 |
/* gtkpeer.h -- Some global variables and #defines |
/* gtkpeer.h -- Some global variables and #defines |
2 |
Copyright (C) 1998, 1999 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
107 |
|
|
108 |
#endif /* JVM_SUN */ |
#endif /* JVM_SUN */ |
109 |
|
|
110 |
|
#define SWAPU32(w) \ |
111 |
|
(((w) << 24) | (((w) & 0xff00) << 8) | (((w) >> 8) & 0xff00) | ((w) >> 24)) |
112 |
|
|
113 |
struct graphics |
struct graphics |
114 |
{ |
{ |
115 |
GdkDrawable *drawable; |
GdkDrawable *drawable; |
116 |
GdkGC *gc; |
GdkGC *gc; |
117 |
GdkColormap *cm; |
GdkColormap *cm; |
118 |
|
PangoFontDescription *pango_font; |
119 |
|
PangoContext *pango_context; |
120 |
|
PangoLayout *pango_layout; |
121 |
jint x_offset, y_offset; |
jint x_offset, y_offset; |
122 |
}; |
}; |
123 |
|
|
450 |
extern jmethodID postTextEventID; |
extern jmethodID postTextEventID; |
451 |
extern jmethodID postWindowEventID; |
extern jmethodID postWindowEventID; |
452 |
|
|
453 |
|
extern jmethodID beginNativeRepaintID; |
454 |
|
extern jmethodID endNativeRepaintID; |
455 |
|
|
456 |
|
extern jmethodID initComponentGraphicsID; |
457 |
|
extern jmethodID initComponentGraphics2DID; |
458 |
|
extern jmethodID setCursorID; |
459 |
|
|
460 |
extern jmethodID syncAttrsID; |
extern jmethodID syncAttrsID; |
461 |
extern jclass gdkColor; |
extern jclass gdkColor; |
462 |
extern jmethodID gdkColorID; |
extern jmethodID gdkColorID; |
473 |
jobject peer); |
jobject peer); |
474 |
|
|
475 |
void connect_awt_hook (JNIEnv *env, jobject peer_obj, int nwindows, ...); |
void connect_awt_hook (JNIEnv *env, jobject peer_obj, int nwindows, ...); |
476 |
|
void connect_awt_hook_cb (GtkWidget *widget, jobject peer); |
477 |
|
|
478 |
void set_visible (GtkWidget *widget, jboolean visible); |
void set_visible (GtkWidget *widget, jboolean visible); |
479 |
void set_parent (GtkWidget *widget, GtkContainer *parent); |
void set_parent (GtkWidget *widget, GtkContainer *parent); |
486 |
const char *label; |
const char *label; |
487 |
}; |
}; |
488 |
|
|
489 |
|
/* Union used for type punning. */ |
490 |
|
union widget_union |
491 |
|
{ |
492 |
|
void **void_widget; |
493 |
|
GtkWidget **widget; |
494 |
|
}; |
495 |
|
|
496 |
#define DEBUG_LOCKING 0 |
#define DEBUG_LOCKING 0 |
497 |
|
|
498 |
#if DEBUG_LOCKING |
#if DEBUG_LOCKING |