summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-16 00:50:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-16 00:51:34 -0700
commit897486c54c6a54771867d667441aaf9a4b9c35ca (patch)
treeb7658e2ec08e6cca83209b67fbcc83489473c040
parent692906c3b3d8aa8b8927fbc230c3050d633785d2 (diff)
specs/libX11: App. D: convert literallayouts to synopsis or programlisting
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--specs/libX11/AppD.xml34
1 files changed, 7 insertions, 27 deletions
diff --git a/specs/libX11/AppD.xml b/specs/libX11/AppD.xml
index ff3e3161..576fd675 100644
--- a/specs/libX11/AppD.xml
+++ b/specs/libX11/AppD.xml
@@ -744,19 +744,9 @@ colormap for a display,
you use
<function>XGetStandardColormap</function>
with the following syntax:
-</para>
-<para>
-<!-- .LP -->
-<!-- .sM -->
-<literallayout class="monospaced">
-<!-- .TA .5i 1.5i -->
-<!-- .ta .5i 1.5i -->
+<programlisting>
XGetStandardColormap(dpy, DefaultRootWindow(dpy), &amp;cmap, XA_RGB_GRAY_MAP);
-</literallayout>
-</para>
-<para>
-<!-- .LP -->
-<!-- .eM -->
+</programlisting>
See section 14.3 for the semantics of standard colormaps.
</para>
<para>
@@ -1335,23 +1325,13 @@ vertex structure.
Each Vertex, as defined in
&lt;<filename class="headerfile">X11/X10.h</filename>&gt;,
is a structure with the following members:
-</para>
-<para>
-<!-- .LP -->
<indexterm significance="preferred"><primary>Vertex</primary></indexterm>
-<!-- .sM -->
-<literallayout class="monospaced">
-<!-- .TA .5i 1.5i -->
-<!-- .ta .5i 1.5i -->
+<synopsis>
typedef struct _Vertex {
short x,y;
unsigned short flags;
} Vertex;
-</literallayout>
-</para>
-<para>
-<!-- .LP -->
-<!-- .eM -->
+</synopsis>
The x and y members are the coordinates of the vertex
that are relative to either the upper left inside corner of the drawable
(if
@@ -1371,15 +1351,14 @@ are as follows:
<indexterm significance="preferred"><primary>VertexStartClosed</primary></indexterm>
<indexterm significance="preferred"><primary>VertexEndClosed</primary></indexterm>
<!-- .sM -->
-</para>
-<literallayout class="monospaced">
+<synopsis>
VertexRelative 0x0001 /* else absolute */
VertexDontDraw 0x0002 /* else draw */
VertexCurved 0x0004 /* else straight */
VertexStartClosed 0x0008 /* else not */
VertexEndClosed 0x0010 /* else not */
-</literallayout>
+</synopsis>
<itemizedlist>
<listitem>
@@ -1443,6 +1422,7 @@ and successor vertices for the spline algorithm.
</para>
</listitem>
</itemizedlist>
+</para>
<para>
<!-- .LP -->
This function uses these GC components: