[Xcb-commit] xcb/doc/tutorial index.html,1.3,1.4
Vincent Torri
xcb-commit at lists.freedesktop.org
Sat Dec 17 01:27:36 PST 2005
Update of /cvs/xcb/xcb/doc/tutorial
In directory gabe:/tmp/cvs-serv11066
Modified Files:
index.html
Log Message:
Xlib macros translation, description of the requests/replies
Index: index.html
===================================================================
RCS file: /cvs/xcb/xcb/doc/tutorial/index.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- index.html 17 Jul 2005 17:55:22 -0000 1.3
+++ index.html 17 Dec 2005 09:27:34 -0000 1.4
@@ -20,6 +20,7 @@
<li><a class="section" href="#notions">Basic XCB notions</a></li>
<ol>
<li><a class="subsection" href="#conn">The X Connection</a></li>
+ <li><a class="subsection" href="#requestsreplies">Requests and replies: the Xlib killers</a></li>
<li><a class="subsection" href="#gc">The Graphics Context</a></li>
<li>Object handles</li>
<li>Memory allocation for XCB structures</li>
@@ -105,6 +106,52 @@
<li>Creating and destroying a mouse cursor</li>
<li>Setting a window's mouse cursor</li>
</ol>
[...1228 lines suppressed...]
+ you look in the <span class="code">XCBVISUALTYPE</span>
+ structure, that you grab like <a class="subsection" href="#DefaultVisual">here</a>:
+ </p>
+ <pre class="code">
+XCBConnection *c;
+XCBVISUALTYPE *visual_type;
+CARD16 colormap_entries = 0; /* the returned value of the colormap entries */
+
+/* you init the connection and visual_type */
+
+if (visual_type)
+ colormap_entries = visual_type->colormap_entries;
+
+/* colormap_entries contains now the value of the colormap entries, or FALSE if no screen is found */
+</pre>
+ </ol>
+ </ol>
</ol>
</div>
</body>
More information about the xcb-commit
mailing list