[Spice-devel] [PATCH spice-common] Document REGION_TEST_* bitmasks

Jonathon Jongsma jjongsma at redhat.com
Thu Feb 2 21:16:06 UTC 2017


---
I'm not sure whether these values are self-explanatory to everyone else, but I
found these comments somewhat helpful when studying the Drawable tree code
recently.

 common/region.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/region.h b/common/region.h
index 4619406..9f92b32 100644
--- a/common/region.h
+++ b/common/region.h
@@ -29,8 +29,11 @@ SPICE_BEGIN_DECLS
 
 typedef pixman_region32_t QRegion;
 
+/* the left region is not contained entirely within the right region */
 #define REGION_TEST_LEFT_EXCLUSIVE (1 << 0)
+/* the right region is not contained entirely within the left region */
 #define REGION_TEST_RIGHT_EXCLUSIVE (1 << 1)
+/* the regions overlap */
 #define REGION_TEST_SHARED (1 << 2)
 #define REGION_TEST_ALL \
     (REGION_TEST_LEFT_EXCLUSIVE | REGION_TEST_RIGHT_EXCLUSIVE | REGION_TEST_SHARED)
-- 
2.9.3



More information about the Spice-devel mailing list