/[emacs]/emacs/src/macgui.h
ViewVC logotype

Diff of /emacs/src/macgui.h

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

revision 1.1 by akochoi, Fri Apr 26 23:39:05 2002 UTC revision 1.1.2.1 by miles, Fri Apr 4 06:21:02 2003 UTC
# Line 28  typedef int Bitmap; Line 28  typedef int Bitmap;
28    
29  typedef int Display;  /* fix later */  typedef int Display;  /* fix later */
30    
31    typedef char * XrmDatabase;  /* fix later */
32    
33  typedef unsigned long Time;  typedef unsigned long Time;
34    
35  #if MAC_OSX  #if MAC_OSX
# Line 97  struct MacFontStruct { Line 99  struct MacFontStruct {
99  typedef struct MacFontStruct MacFontStruct;  typedef struct MacFontStruct MacFontStruct;
100  typedef struct MacFontStruct XFontStruct;  typedef struct MacFontStruct XFontStruct;
101    
102    /* Structure borrowed from Xlib.h to represent two-byte characters.  */
103    
104    typedef struct {
105      unsigned char byte1;
106      unsigned char byte2;
107    } XChar2b;
108    
109    #define STORE_XCHAR2B(chp, b1, b2) \
110      ((chp)->byte1 = (b1), (chp)->byte2 = (b2))
111    
112    #define XCHAR2B_BYTE1(chp) \
113      ((chp)->byte1)
114    
115    #define XCHAR2B_BYTE2(chp) \
116      ((chp)->byte2)
117    
118    
119  /* Emulate X GC's by keeping color and font info in a structure.  */  /* Emulate X GC's by keeping color and font info in a structure.  */
120  typedef struct _XGCValues  typedef struct _XGCValues
# Line 153  XCreateGC (void *, Window, unsigned long Line 171  XCreateGC (void *, Window, unsigned long
171    
172  extern int XParseGeometry ();  extern int XParseGeometry ();
173    
174    typedef struct {
175        int x, y;
176        unsigned width, height;
177    } XRectangle;
178    
179    #define NativeRectangle Rect
180    
181    #define CONVERT_TO_XRECT(xr,nr)                 \
182      ((xr).x = (nr).left,                          \
183       (xr).y = (nr).top,                           \
184       (xr).width = ((nr).right - (nr).left),       \
185       (xr).height = ((nr).bottom - (nr).top))
186    
187    #define CONVERT_FROM_XRECT(xr,nr)               \
188      ((nr).left = (xr).x,                          \
189       (nr).top = (xr).y,                           \
190       (nr).right = ((xr).x + (xr).width),          \
191       (nr).bottom = ((xr).y + (xr).height))
192    
193    #define STORE_NATIVE_RECT(nr,x,y,width,height)  \
194      ((nr).left = (x),                             \
195       (nr).top = (y),                              \
196       (nr).right = ((nr).left + (width)),          \
197       (nr).bottom = ((nr).top + (height)))
198    
199  #endif /* EMACS_MACGUI_H */  #endif /* EMACS_MACGUI_H */
200    

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

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