[xlibs-commit] FixesExt ChangeLog,1.2,1.3 protocol,1.3,1.4 xfixesproto.h,1.3,1.4 xfixeswire.h,1.3,1.4

Keith Packard xlibs-commit@pdx.freedesktop.org
Fri, 21 Nov 2003 16:44:34 -0800


Committed by: keithp

Update of /cvs/xlibs/FixesExt
In directory pdx:/tmp/cvs-serv27571

Modified Files:
	ChangeLog protocol xfixesproto.h xfixeswire.h 
Log Message:
	* protocol:
	* xfixesproto.h:
	* xfixeswire.h:
	Eliminate offset arguments in combining operators,
	create separate CopyRegion and TranslateRegion requests.


Index: ChangeLog
===================================================================
RCS file: /cvs/xlibs/FixesExt/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ChangeLog	3 Nov 2003 01:47:23 -0000	1.2
+++ ChangeLog	22 Nov 2003 00:44:32 -0000	1.3
@@ -1,3 +1,11 @@
+2003-11-21  Keith Packard  <keithp@keithp.com>
+
+	* protocol:
+	* xfixesproto.h:
+	* xfixeswire.h:
+	Eliminate offset arguments in combining operators,
+	create separate CopyRegion and TranslateRegion requests.
+
 2003-11-02  Keith Packard  <keithp@keithp.com>
 
 	* configure.ac:

Index: protocol
===================================================================
RCS file: /cvs/xlibs/FixesExt/protocol,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- protocol	3 Nov 2003 01:47:23 -0000	1.3
+++ protocol	22 Nov 2003 00:44:32 -0000	1.4
@@ -1,6 +1,7 @@
-                         The XFIXES Extension
+                        The XFIXES Extension
 			    Version 2.0
-			     2003-10-15
+			 Document Revision 1
+			     2003-11-20
 			    Keith Packard
 			  keithp@keithp.com
 
@@ -303,38 +304,46 @@
 	This replaces the current contents of region with the region formed
 	by the union of rects.
 
+CopyRegion
+		source:				Region
+		destination:			Region
+
+	This replaces the contents of destination with the contents of 
+	source.
+
 UnionRegion
 IntersectRegion
 SubtractRegion
 
-		source1:			Region or None
-		xOff1, yOff1:			INT16
-		source2:			Region or None
-		xOff2, yOff2:			INT16
+		source1:			Region
+		source2:			Region
 		destination:			Region
 	
 	Combines source1 and source2, placing the result in destination.
-	Destination may be the same as either source1 or source2.  If
-	source1 or source2 are None, the operation behaves as if an empty
-	region was specified.  xOff1, yOff1 are added to the coordinates of
-	source1 while xOff2 and yOff2 are added to the coordinates of
-	source2.
+	Destination may be the same as either source1 or source2.
 
 	Errors: Region, Value
 	
 InvertRegion
 
 		source:				Region
-		xOff, yOff:			INT16
 		bounds:				RECTANGLE
 		destination:			Region
 	
-	The source region is offset by xOff, yOff and subtracted from the
-	region specified by bounds.  The result is placed in destination,
-	replacing its contents.
+	The source region is subtracted from the region specified by
+	bounds.  The result is placed in destination, replacing its contents.
 
 	Errors: Region
 	
+TranslateRegion
+
+		region:				Region
+		dx, dy:				INT16
+
+	The region is translated by dx, dy in place.
+
+	Errors: Region
+
 RegionExtents
 
 		source:				Region

Index: xfixesproto.h
===================================================================
RCS file: /cvs/xlibs/FixesExt/xfixesproto.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xfixesproto.h	3 Nov 2003 01:47:23 -0000	1.3
+++ xfixesproto.h	22 Nov 2003 00:44:32 -0000	1.4
@@ -247,17 +247,25 @@
     CARD8   reqType;
     CARD8   xfixesReqType;
     CARD16  length B16;
+    Region  source B32;
+    Region  destination B32;
+} xXFixesCopyRegionReq;
+
+#define sz_xXFixesCopyRegionReq		12
+
+typedef struct {
+    CARD8   reqType;
+    CARD8   xfixesReqType;
+    CARD16  length B16;
     Region  source1 B32;
-    INT16   xOff1 B16, yOff1 B16;
     Region  source2 B32;
-    INT16   xOff2 B16, yOff2 B16;
     Region  destination B32;
 } xXFixesCombineRegionReq,
   xXFixesUnionRegionReq,
   xXFixesIntersectRegionReq,
   xXFixesSubtractRegionReq;
 
-#define sz_xXFixesCombineRegionReq	24
+#define sz_xXFixesCombineRegionReq	16
 #define sz_xXFixesUnionRegionReq	sz_xXFixesCombineRegionReq
 #define sz_xXFixesIntersectRegionReq	sz_xXFixesCombineRegionReq
 #define sz_xXFixesSubtractRegionReq	sz_xXFixesCombineRegionReq
@@ -267,18 +275,27 @@
     CARD8   xfixesReqType;
     CARD16  length B16;
     Region  source B32;
-    INT16   xOff B16, yOff B16;
     INT16   x B16, y B16;
     CARD16  width B16, height B16;
     Region  destination B32;
 } xXFixesInvertRegionReq;
 
-#define sz_xXFixesInvertRegionReq	24
+#define sz_xXFixesInvertRegionReq	20
 
 typedef struct {
     CARD8   reqType;
     CARD8   xfixesReqType;
     CARD16  length B16;
+    Region  region B32;
+    INT16   dx B16, dy B16;
+} xXFixesTranslateRegionReq;
+
+#define sz_xXFixesTranslateRegionReq	12
+    
+typedef struct {
+    CARD8   reqType;
+    CARD8   xfixesReqType;
+    CARD16  length B16;
     Region  source B32;
     Region  destination B32;
 } xXFixesRegionExtentsReq;

Index: xfixeswire.h
===================================================================
RCS file: /cvs/xlibs/FixesExt/xfixeswire.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xfixeswire.h	3 Nov 2003 01:47:23 -0000	1.3
+++ xfixeswire.h	22 Nov 2003 00:44:32 -0000	1.4
@@ -44,20 +44,22 @@
 #define X_XFixesCreateRegionFromPicture	    9
 #define X_XFixesDestroyRegion		    10
 #define X_XFixesSetRegion		    11
-#define X_XFixesUnionRegion		    12
-#define X_XFixesIntersectRegion		    13
-#define X_XFixesSubtractRegion		    14
-#define X_XFixesInvertRegion		    15
-#define X_XFixesRegionExtents		    16
-#define X_XFixesFetchRegion		    17
-#define X_XFixesSetGCClipRegion		    18
-#define X_XFixesSetWindowShapeRegion	    19
-#define X_XFixesSetPictureClipRegion	    20
-#define X_XFixesSetCursorName		    21
-#define X_XFixesGetCursorName		    22
-#define X_XFixesGetCursorImageAndName	    23
-#define X_XFixesChangeCursor		    24
-#define X_XFixesChangeCursorByName	    25
+#define X_XFixesCopyRegion		    12
+#define X_XFixesUnionRegion		    13
+#define X_XFixesIntersectRegion		    14
+#define X_XFixesSubtractRegion		    15
+#define X_XFixesInvertRegion		    16
+#define X_XFixesTranslateRegion		    17
+#define X_XFixesRegionExtents		    18
+#define X_XFixesFetchRegion		    19
+#define X_XFixesSetGCClipRegion		    20
+#define X_XFixesSetWindowShapeRegion	    21
+#define X_XFixesSetPictureClipRegion	    22
+#define X_XFixesSetCursorName		    23
+#define X_XFixesGetCursorName		    24
+#define X_XFixesGetCursorImageAndName	    25
+#define X_XFixesChangeCursor		    26
+#define X_XFixesChangeCursorByName	    27
 
 #define XFixesNumberRequests		    (X_XFixesChangeCursorByName+1)