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

Diff of /emacs/src/w32gui.h

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

revision 1.19 by jasonr, Sun Mar 16 22:10:12 2003 UTC revision 1.20 by kfstorm, Fri Mar 21 13:51:33 2003 UTC
# Line 79  typedef HWND Window; Line 79  typedef HWND Window;
79  typedef HDC Display;  /* HDC so it doesn't conflict with xpm lib.  */  typedef HDC Display;  /* HDC so it doesn't conflict with xpm lib.  */
80  typedef HCURSOR Cursor;  typedef HCURSOR Cursor;
81    
82    #define No_Cursor (0)
83    
84  #define XChar2b wchar_t  #define XChar2b wchar_t
85    
86  /* Dealing with bits of wchar_t as if they were an XChar2b.  */  /* Dealing with bits of wchar_t as if they were an XChar2b.  */
# Line 144  extern int nCmdShow; Line 146  extern int nCmdShow;
146    
147  extern int XParseGeometry ();  extern int XParseGeometry ();
148    
149    
150    typedef struct {
151        int x, y;
152        unsigned width, height;
153    } XRectangle;
154    
155    #define NativeRectangle RECT
156    
157    #define CONVERT_TO_XRECT(xr,nr)                 \
158      ((xr).x = (nr).left,                          \
159       (xr).y = (nr).top,                           \
160       (xr).width = ((nr).right - (nr).left),       \
161       (xr).height = ((nr).bottom - (nr).top))
162    
163    #define CONVERT_FROM_XRECT(xr,nr)               \
164      ((nr).left = (xr).x,                          \
165       (nr).top = (xr).y,                           \
166       (nr).right = ((xr).x + (xr).width),          \
167       (nr).bottom = ((xr).y + (xr).height))
168    
169    #define STORE_NATIVE_RECT(nr,x,y,width,height)  \
170      ((nr).left = (x),                             \
171       (nr).top = (y),                              \
172       (nr).right = ((nr).left + (width)),          \
173       (nr).bottom = ((nr).top + (height)))
174    
175    
176  #endif /* EMACS_W32GUI_H */  #endif /* EMACS_W32GUI_H */

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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