62 |
#else |
#else |
63 |
#include <QuickDraw.h> /* for WindowPtr */ |
#include <QuickDraw.h> /* for WindowPtr */ |
64 |
#include <QDOffscreen.h> /* for GWorldPtr */ |
#include <QDOffscreen.h> /* for GWorldPtr */ |
65 |
#include <Controls.h> /* for ControlHandle in xdisp.c */ |
#include <Windows.h> |
66 |
#include <Gestalt.h> |
#include <Gestalt.h> |
67 |
#endif |
#endif |
68 |
|
|
69 |
|
typedef WindowPtr Window; |
70 |
typedef GWorldPtr Pixmap; |
typedef GWorldPtr Pixmap; |
71 |
|
|
72 |
#if TARGET_API_MAC_CARBON |
#if TARGET_API_MAC_CARBON |
|
typedef struct OpaqueWindowPtr *Window; |
|
73 |
#define Cursor ThemeCursor |
#define Cursor ThemeCursor |
74 |
#define No_Cursor (-1) |
#define No_Cursor (-1) |
75 |
#else |
#else |
|
typedef WindowPtr Window; |
|
76 |
#define SetPortWindowPort(w) SetPort(w) |
#define SetPortWindowPort(w) SetPort(w) |
77 |
#define Cursor CursHandle |
#define Cursor CursHandle |
78 |
#define No_Cursor (0) |
#define No_Cursor (0) |
197 |
#define XNegative 0x0010 |
#define XNegative 0x0010 |
198 |
#define YNegative 0x0020 |
#define YNegative 0x0020 |
199 |
|
|
200 |
|
typedef struct { |
201 |
|
long flags; /* marks which fields in this structure are defined */ |
202 |
|
#if 0 |
203 |
|
int x, y; /* obsolete for new window mgrs, but clients */ |
204 |
|
int width, height; /* should set so old wm's don't mess up */ |
205 |
|
#endif |
206 |
|
int min_width, min_height; |
207 |
|
#if 0 |
208 |
|
int max_width, max_height; |
209 |
|
#endif |
210 |
|
int width_inc, height_inc; |
211 |
|
#if 0 |
212 |
|
struct { |
213 |
|
int x; /* numerator */ |
214 |
|
int y; /* denominator */ |
215 |
|
} min_aspect, max_aspect; |
216 |
|
#endif |
217 |
|
int base_width, base_height; /* added by ICCCM version 1 */ |
218 |
|
#if 0 |
219 |
|
int win_gravity; /* added by ICCCM version 1 */ |
220 |
|
#endif |
221 |
|
} XSizeHints; |
222 |
|
|
223 |
#define USPosition (1L << 0) /* user specified x, y */ |
#define USPosition (1L << 0) /* user specified x, y */ |
224 |
#define USSize (1L << 1) /* user specified width, height */ |
#define USSize (1L << 1) /* user specified width, height */ |
225 |
|
|