aboutsummaryrefslogtreecommitdiffstats
path: root/src/macgui.h
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-07-18 05:39:27 +0000
committerYAMAMOTO Mitsuharu2005-07-18 05:39:27 +0000
commit623cc1d8d781db82df256a4bc20ac3affcd81161 (patch)
treeacc680972740737eba5dbd67e7a24c3d06bfdd81 /src/macgui.h
parent88ad5ea792b6ece9f187c47abcdbe97a9d51676c (diff)
downloademacs-623cc1d8d781db82df256a4bc20ac3affcd81161.tar.gz
emacs-623cc1d8d781db82df256a4bc20ac3affcd81161.zip
(struct _XGC): New struct.
(GC): Use it. (GCForeground, GCBackground, GCFont): Use X11 mask values. (XCreateGC, XParseGeometry): Move externs to macterm.h.
Diffstat (limited to 'src/macgui.h')
-rw-r--r--src/macgui.h25
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
183typedef XGCValues *GC; 183typedef struct _XGC
184{
185 /* Original value. */
186 XGCValues xgcv;
187
188 /* Cached data members follow. */
184 189
185extern XGCValues * 190 /* QuickDraw foreground color. */
186XCreateGC (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
251extern int XParseGeometry ();
252
253typedef struct { 260typedef struct {
254 int x, y; 261 int x, y;
255 unsigned width, height; 262 unsigned width, height;