/[classpath]/classpath/native/jni/gtk-peer/gtkpeer.h
ViewVC logotype

Diff of /classpath/native/jni/gtk-peer/gtkpeer.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19.2.2 by gnu_andrew, Fri Jan 14 10:24:18 2005 UTC revision 1.19.2.3 by gnu_andrew, Sat Jan 15 17:02:22 2005 UTC
# Line 1  Line 1 
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    
# Line 107  extern struct state_table *native_pixbuf Line 107  extern struct state_table *native_pixbuf
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    
# Line 444  extern jmethodID postListItemEventID; Line 450  extern jmethodID postListItemEventID;
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;
# Line 460  gboolean pre_event_handler (GtkWidget *w Line 473  gboolean pre_event_handler (GtkWidget *w
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);
# Line 472  struct item_event_hook_info Line 486  struct item_event_hook_info
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

Legend:
Removed from v.1.19.2.2  
changed lines
  Added in v.1.19.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26