aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-10-08 02:27:47 +0000
committerYAMAMOTO Mitsuharu2005-10-08 02:27:47 +0000
commit2be96ef8f959ced275347ce76c34094451c65ced (patch)
tree512aaf88e24efb0a07165c0639c7da19119f5c72 /src
parentc16e1cc347476e4995c2eac6e99d2781688e8fc5 (diff)
downloademacs-2be96ef8f959ced275347ce76c34094451c65ced.tar.gz
emacs-2be96ef8f959ced275347ce76c34094451c65ced.zip
(MAX_CLIP_RECTS): New define.
(struct _XGC): New member clip_region. (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and clip_rects.
Diffstat (limited to 'src')
-rw-r--r--src/macgui.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/macgui.h b/src/macgui.h
index 378dbcd9e5c..6e2adb092c6 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -192,6 +192,19 @@ typedef struct _XGC
192 192
193 /* QuickDraw background color. */ 193 /* QuickDraw background color. */
194 RGBColor back_color; 194 RGBColor back_color;
195
196#define MAX_CLIP_RECTS 2
197 /* QuickDraw clipping region. */
198 RgnHandle clip_region;
199
200#if defined (MAC_OSX) && USE_ATSUI
201 /* Number of clipping rectangles used in Quartz 2D drawing. */
202 int n_clip_rects;
203
204 /* Clipping rectangles used in Quartz 2D drawing. The y-coordinate
205 is in QuickDraw's. */
206 CGRect clip_rects[MAX_CLIP_RECTS];
207#endif
195} *GC; 208} *GC;
196 209
197#define GCForeground (1L<<2) 210#define GCForeground (1L<<2)