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. */ |
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 */ |