changeset 65909:d8fff61aaf2d

(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.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sat, 08 Oct 2005 02:27:47 +0000
parents 454a4a463081
children a53616277ba6
files src/macgui.h
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macgui.h	Fri Oct 07 22:17:05 2005 +0000
+++ b/src/macgui.h	Sat Oct 08 02:27:47 2005 +0000
@@ -192,6 +192,19 @@
 
   /* QuickDraw background color.  */
   RGBColor back_color;
+
+#define MAX_CLIP_RECTS 2
+  /* QuickDraw clipping region.  */
+  RgnHandle clip_region;
+
+#if defined (MAC_OSX) && USE_ATSUI
+  /* Number of clipping rectangles used in Quartz 2D drawing.  */
+  int n_clip_rects;
+
+  /* Clipping rectangles used in Quartz 2D drawing.  The y-coordinate
+     is in QuickDraw's.  */
+  CGRect clip_rects[MAX_CLIP_RECTS];
+#endif
 } *GC;
 
 #define GCForeground            (1L<<2)