diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/macgui.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/macgui.h b/src/macgui.h index d9948278d1b..ca55bad7a8c 100644 --- a/src/macgui.h +++ b/src/macgui.h | |||
| @@ -180,15 +180,24 @@ typedef struct _XGCValues | |||
| 180 | XFontStruct *font; | 180 | XFontStruct *font; |
| 181 | } XGCValues; | 181 | } XGCValues; |
| 182 | 182 | ||
| 183 | typedef XGCValues *GC; | 183 | typedef struct _XGC |
| 184 | { | ||
| 185 | /* Original value. */ | ||
| 186 | XGCValues xgcv; | ||
| 187 | |||
| 188 | /* Cached data members follow. */ | ||
| 184 | 189 | ||
| 185 | extern XGCValues * | 190 | /* QuickDraw foreground color. */ |
| 186 | XCreateGC (void *, Window, unsigned long, XGCValues *); | 191 | RGBColor fore_color; |
| 187 | 192 | ||
| 188 | #define GCForeground 0x01 | 193 | /* QuickDraw background color. */ |
| 189 | #define GCBackground 0x02 | 194 | RGBColor back_color; |
| 190 | #define GCFont 0x03 | 195 | } *GC; |
| 191 | #define GCGraphicsExposures 0 | 196 | |
| 197 | #define GCForeground (1L<<2) | ||
| 198 | #define GCBackground (1L<<3) | ||
| 199 | #define GCFont (1L<<14) | ||
| 200 | #define GCGraphicsExposures 0 | ||
| 192 | 201 | ||
| 193 | /* Bit Gravity */ | 202 | /* Bit Gravity */ |
| 194 | 203 | ||
| @@ -248,8 +257,6 @@ typedef struct { | |||
| 248 | #define PBaseSize (1L << 8) /* program specified base for incrementing */ | 257 | #define PBaseSize (1L << 8) /* program specified base for incrementing */ |
| 249 | #define PWinGravity (1L << 9) /* program specified window gravity */ | 258 | #define PWinGravity (1L << 9) /* program specified window gravity */ |
| 250 | 259 | ||
| 251 | extern int XParseGeometry (); | ||
| 252 | |||
| 253 | typedef struct { | 260 | typedef struct { |
| 254 | int x, y; | 261 | int x, y; |
| 255 | unsigned width, height; | 262 | unsigned width, height; |