[PATCH 2/3 wayland] protocol: Add documentation for resize enum.

Scott Moreau oreaus at gmail.com
Fri Nov 9 00:11:31 PST 2012


---
 protocol/wayland.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 25fc3ae..f22a207 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -542,6 +542,18 @@
     </request>
 
     <enum name="resize">
+      <description summary="resize type enumeration">
+	Used to determine the resize behavior, including the cursor
+	image during resize. There are 8 fixed modes, 4 base and 4
+	combination. These fixed modes can be stored in a 4 bit
+	mask where each bit represents one of the base modes. The
+	combination modes are a sum of their components while values
+	representing conflicting modes are not used. For example,
+	top_left(5) = top(1) + left(4) and top_right(9) = top(1) +
+	right(8) while unused(3) = top(1) + bottom(2) (value unused,
+	conflicting combination). Values above 15 are reserved for
+	additional flags.
+      </description>
       <entry name="none" value="0"/>
       <entry name="top" value="1"/>
       <entry name="bottom" value="2"/>
-- 
1.7.11.7



More information about the wayland-devel mailing list