aboutsummaryrefslogtreecommitdiffstats
path: root/src/macgui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macgui.h')
-rw-r--r--src/macgui.h32
1 files changed, 22 insertions, 10 deletions
diff --git a/src/macgui.h b/src/macgui.h
index d9948278d1b..607890317e1 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -1,5 +1,6 @@
1/* Definitions and headers for communication on the Mac OS. 1/* Definitions and headers for communication on the Mac OS.
2 Copyright (C) 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 2000, 2001, 2002, 2003, 2004,
3 2005 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -86,6 +87,10 @@ typedef GWorldPtr Pixmap;
86 87
87#define FACE_DEFAULT (~0) 88#define FACE_DEFAULT (~0)
88 89
90#if !TARGET_API_MAC_CARBON
91#define GetPixDepth(pmh) ((*(pmh))->pixelSize)
92#endif
93
89 94
90/* Emulate XCharStruct. */ 95/* Emulate XCharStruct. */
91typedef struct _XCharStruct 96typedef struct _XCharStruct
@@ -180,15 +185,24 @@ typedef struct _XGCValues
180 XFontStruct *font; 185 XFontStruct *font;
181} XGCValues; 186} XGCValues;
182 187
183typedef XGCValues *GC; 188typedef struct _XGC
189{
190 /* Original value. */
191 XGCValues xgcv;
192
193 /* Cached data members follow. */
194
195 /* QuickDraw foreground color. */
196 RGBColor fore_color;
184 197
185extern XGCValues * 198 /* QuickDraw background color. */
186XCreateGC (void *, Window, unsigned long, XGCValues *); 199 RGBColor back_color;
200} *GC;
187 201
188#define GCForeground 0x01 202#define GCForeground (1L<<2)
189#define GCBackground 0x02 203#define GCBackground (1L<<3)
190#define GCFont 0x03 204#define GCFont (1L<<14)
191#define GCGraphicsExposures 0 205#define GCGraphicsExposures 0
192 206
193/* Bit Gravity */ 207/* Bit Gravity */
194 208
@@ -248,8 +262,6 @@ typedef struct {
248#define PBaseSize (1L << 8) /* program specified base for incrementing */ 262#define PBaseSize (1L << 8) /* program specified base for incrementing */
249#define PWinGravity (1L << 9) /* program specified window gravity */ 263#define PWinGravity (1L << 9) /* program specified window gravity */
250 264
251extern int XParseGeometry ();
252
253typedef struct { 265typedef struct {
254 int x, y; 266 int x, y;
255 unsigned width, height; 267 unsigned width, height;