/[classpath]/classpath/include/jawt.h
ViewVC logotype

Diff of /classpath/include/jawt.h

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

revision 1.1 by fitzsim, Fri Aug 19 15:24:48 2005 UTC revision 1.2 by fitzsim, Sat Aug 20 22:46:54 2005 UTC
# Line 57  extern "C" Line 57  extern "C"
57  #define JAWT_LOCK_BOUNDS_CHANGED 0x4  #define JAWT_LOCK_BOUNDS_CHANGED 0x4
58  #define JAWT_LOCK_SURFACE_CHANGED 0x8  #define JAWT_LOCK_SURFACE_CHANGED 0x8
59    
60    struct _JAWT_Rectangle
61    {
62      jint x;
63      jint y;
64      jint width;
65      jint height;
66    };
67    
68  struct _JAWT_DrawingSurfaceInfo  struct _JAWT_DrawingSurfaceInfo
69  {  {
70    void* platformInfo;    void* platformInfo;
71      struct _JAWT_DrawingSurface *ds;
72      struct _JAWT_Rectangle bounds;
73      jint clipSize;
74      struct _JAWT_Rectangle *clip;
75  };  };
76    
77  struct _JAWT_DrawingSurface  struct _JAWT_DrawingSurface
78  {  {
79      JNIEnv* env;
80      jobject target;
81    jint (JNICALL* Lock) (struct _JAWT_DrawingSurface*);    jint (JNICALL* Lock) (struct _JAWT_DrawingSurface*);
   void (JNICALL* Unlock) (struct _JAWT_DrawingSurface*);  
   
82    struct _JAWT_DrawingSurfaceInfo* (JNICALL* GetDrawingSurfaceInfo) (struct _JAWT_DrawingSurface*);    struct _JAWT_DrawingSurfaceInfo* (JNICALL* GetDrawingSurfaceInfo) (struct _JAWT_DrawingSurface*);
83    void (JNICALL* FreeDrawingSurfaceInfo) (struct _JAWT_DrawingSurfaceInfo*);    void (JNICALL* FreeDrawingSurfaceInfo) (struct _JAWT_DrawingSurfaceInfo*);
84      void (JNICALL* Unlock) (struct _JAWT_DrawingSurface*);
   struct _JAWT_DrawingSurfaceInfo* surface_info;  
   
   /* An object we're going to use for locking the surface.  */  
   jobject lock;  
   
   /* FIXME: also include bounding rectangle of drawing surface. */  
   /* FIXME: also include current clipping region. */  
85  };  };
86    
87  struct _JAWT  struct _JAWT
# Line 86  struct _JAWT Line 91  struct _JAWT
91    void (JNICALL* FreeDrawingSurface) (struct _JAWT_DrawingSurface*);    void (JNICALL* FreeDrawingSurface) (struct _JAWT_DrawingSurface*);
92    void (JNICALL *Lock) (JNIEnv*);    void (JNICALL *Lock) (JNIEnv*);
93    void (JNICALL *Unlock) (JNIEnv*);    void (JNICALL *Unlock) (JNIEnv*);
94      jobject (JNICALL *GetComponent)(JNIEnv*, void*);
95  };  };
96    
97    typedef struct _JAWT_Rectangle JAWT_Rectangle;
98  typedef struct _JAWT_DrawingSurfaceInfo JAWT_DrawingSurfaceInfo;  typedef struct _JAWT_DrawingSurfaceInfo JAWT_DrawingSurfaceInfo;
99  typedef struct _JAWT_DrawingSurface JAWT_DrawingSurface;  typedef struct _JAWT_DrawingSurface JAWT_DrawingSurface;
100  typedef struct _JAWT JAWT;  typedef struct _JAWT JAWT;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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