Work on the tutorial, and update xproto.xml to match:
authorIan Osgood <iano@quirkster.com>
Thu, 23 Mar 2006 01:57:57 +0000 (17:57 -0800)
committerIan Osgood <iano@quirkster.com>
Thu, 23 Mar 2006 01:57:57 +0000 (17:57 -0800)
* Fixed grammar
* Answered some TODO's and added some more
* Updated X.h constants to those in xproto.h
* Added enumerations used in tutorial to xproto.xml
* Prefered XCBFlush to XCBSync
* Corrected and refactored the "events" example

I extracted the examples to test them. Where should I put them?

src/xproto.xml

index 7b6f4d5..8ccf1d9 100644 (file)
@@ -534,6 +534,14 @@ authorization from the authors.
     <item name="Sibling">    <bit>5</bit></item>
     <item name="StackMode">  <bit>6</bit></item>
   </enum>
+  
+  <enum name="StackMode">
+    <item name="Above">   <value>0</value></item>
+    <item name="Below">   <value>1</value></item>
+    <item name="TopIf">   <value>2</value></item>
+    <item name="BottomIf"><value>3</value></item>
+    <item name="Opposite"><value>4</value></item>
+  </enum>
 
   <request name="ConfigureWindow" opcode="12">
     <pad bytes="1" />
@@ -1061,7 +1069,7 @@ authorization from the authors.
     <item name="GraphicsExposures"> <bit>16</bit></item>
     <item name="ClipOriginX">       <bit>17</bit></item>
     <item name="ClipOriginY">       <bit>18</bit></item>
-    <item name="Mask">              <bit>19</bit></item>
+    <item name="ClipMask">          <bit>19</bit></item>
     <item name="DashOffset">        <bit>20</bit></item>
     <item name="DashList">          <bit>21</bit></item>
     <item name="ArcMode">           <bit>22</bit></item>
@@ -1263,6 +1271,12 @@ authorization from the authors.
     <list type="ARC" name="arcs" />
   </request>
 
+  <enum name="PolyShape">
+    <item name="Complex">  <value>0</value></item>
+    <item name="Nonconvex"><value>1</value></item>
+    <item name="Convex">   <value>2</value></item>
+  </enum>
+
   <request name="FillPoly" opcode="69">
     <pad bytes="1" />
     <field type="DRAWABLE" name="drawable" />
@@ -1372,6 +1386,11 @@ authorization from the authors.
     </list>
   </request>
 
+  <enum name= "ColormapAlloc">
+    <item name="None"><value>0</value></item>
+    <item name="All"> <value>1</value></item>
+  </enum>
+
   <request name="CreateColormap" opcode="78">
     <field type="BYTE" name="alloc" />
     <field type="COLORMAP" name="mid" />