libXmu: Branch 'master' - 3 commits

Alan Coopersmith alanc at kemper.freedesktop.org
Tue Jun 8 16:28:16 PDT 2010


 .gitignore      |    4 
 Makefile.am     |    2 
 README          |    6 
 configure.ac    |   11 
 doc/Makefile.am |   52 
 doc/Xmu.css     |   77 +
 doc/Xmu.xml     | 4208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 doc/Xmu.xsl     |   36 
 8 files changed, 4390 insertions(+), 6 deletions(-)

New commits:
commit f38c2c057ebca8ca4afc2cb8fb835702bdba4fc6
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Tue Jun 8 16:25:49 2010 -0700

    Correct some minor typos in original document
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

diff --git a/doc/Xmu.xml b/doc/Xmu.xml
index af761d2..4b6ada7 100644
--- a/doc/Xmu.xml
+++ b/doc/Xmu.xml
@@ -61,7 +61,7 @@ and widgets.  This library is required by the Athena Widgets.
     <title>Atom Functions</title>
 
     <para>
-The use the functions and macros defined in this section, you should include
+To use the functions and macros defined in this section, you should include
 the header file
 &lt;<filename class='headerfile'>X11/Xmu/Atoms.h</filename>&gt;.
     </para>
@@ -1943,7 +1943,7 @@ The origin of the widget within its parent remains unchanged.
 	<varlistentry>
 	  <term><parameter>args</parameter></term>
 	  <listitem><para>
-this sole argument is the parent Widget
+the sole argument is the parent Widget
 	    </para></listitem>
 	</varlistentry>
 	<varlistentry>
@@ -2009,7 +2009,7 @@ the display to use for conversion warnings
 	<varlistentry>
 	  <term><parameter>args</parameter></term>
 	  <listitem><para>
-this sole argument is the parent Widget
+the sole argument is the parent Widget
 	    </para></listitem>
 	</varlistentry>
 	<varlistentry>
@@ -4063,7 +4063,7 @@ specifies a list of widget classes, in alphabetical order
 	<varlistentry>
 	  <term><parameter>num_nodes</parameter></term>
 	  <listitem><para>
-specfies the number of widget classes in the node array
+specifies the number of widget classes in the node array
 	    </para></listitem>
 	</varlistentry>
       </variablelist>
commit 70596fce92bd58d46e19de63b6c3faca38cbc181
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Tue Jun 8 16:19:49 2010 -0700

    Convert Xmu.ms to DocBook/xml
    
    Bumps xorg-macros requirement to 1.6 for XORG_ENABLE_DOCS & friends
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

diff --git a/.gitignore b/.gitignore
index f88d896..9d31de1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,3 +76,7 @@ core
 #		Edit the following section as needed
 # For example, !report.pc overrides *.pc. See 'man gitignore'
 # 
+doc/Xmu.txt
+doc/Xmu.html
+doc/Xmu.pdf
+doc/Xmu.ps
diff --git a/Makefile.am b/Makefile.am
index c258919..9a875e3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = include src
+SUBDIRS = include src doc
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = xmu.pc xmuu.pc
diff --git a/README b/README
index c7f4dcc..dbf260e 100644
--- a/README
+++ b/README
@@ -7,8 +7,10 @@ may choose not to distribute this library if they wish.  Therefore,
 applications developers who depend on this library should be prepared to
 treat it as part of their software base when porting.
 
-API documentation for this library is provided in the xorg-docs module,
-in the file specs/Xmu/Xmu.ms.
+API documentation for this library is provided in the docs directory in
+DocBook format.  If xmlto is installed, it will be converted to supported
+formats and installed in $(docdir) unless --disable-docs is passed to
+configure.
 
 All questions regarding this software should be directed at the
 Xorg mailing list:
diff --git a/configure.ac b/configure.ac
index 6fd228f..8e92e39 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,11 +15,15 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
 
 AM_MAINTAINER_MODE
 
-# Require xorg-macros: XORG_DEFAULT_OPTIONS
+# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_ENABLE_DOCS & friends
 m4_ifndef([XORG_MACROS_VERSION],
-          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
-XORG_MACROS_VERSION(1.3)
+          [m4_fatal([must install xorg-macros 1.6 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.6)
 XORG_DEFAULT_OPTIONS
+XORG_ENABLE_DOCS
+XORG_WITH_XMLTO(0.0.20)
+XORG_WITH_FOP
+
 AM_CONFIG_HEADER([config.h])
 
 
@@ -64,6 +68,7 @@ LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`
 AC_SUBST(LINTLIBUU)
 
 AC_OUTPUT([Makefile
+           doc/Makefile
            include/Makefile
 	   src/Makefile
 	   xmu.pc
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..15b446f
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,52 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+
+if ENABLE_DOCS
+doc_DATA =  Xmu.xml
+
+if HAVE_XMLTO
+doc_DATA += Xmu.txt Xmu.html $(srcdir)/Xmu.css
+
+if HAVE_FOP
+doc_DATA += Xmu.pdf Xmu.ps
+endif
+
+CLEANFILES = Xmu.txt Xmu.html Xmu.pdf Xmu.ps
+
+XMLTO_FLAGS = -m $(srcdir)/Xmu.xsl
+
+XML_SOURCEFILES =  $(srcdir)/Xmu.xml $(srcdir)/Xmu.xsl
+
+Xmu.txt: $(XML_SOURCEFILES)
+	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $(srcdir)/Xmu.xml
+
+Xmu.html: $(XML_SOURCEFILES)
+	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $(srcdir)/Xmu.xml
+
+Xmu.pdf: $(XML_SOURCEFILES)
+	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $(srcdir)/Xmu.xml
+
+Xmu.ps: $(XML_SOURCEFILES)
+	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $(srcdir)/Xmu.xml
+endif HAVE_XMLTO
+endif ENABLE_DOCS
diff --git a/doc/Xmu.css b/doc/Xmu.css
new file mode 100644
index 0000000..bdb7d9c
--- /dev/null
+++ b/doc/Xmu.css
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+body { 
+  font-family: sans-serif;
+  background: white;
+  color: black;
+}
+
+div.sect1 { 
+  border-top: 1px solid #2b5e82;
+}
+
+.structname, .property, .errorname, .function, .parameter, .filename,
+.type, .symbol, .funcsynopsis, .synopsis {
+  font-family: monospace;
+}
+
+.funcsynopsis, .synopsis { 
+  background: #e6e6fa; /* #eeeeee; */
+  border: 1px solid #aaaaaa;
+  padding: 0.5em;
+}
+
+.programlisting { 
+  background: #ffefd5;
+  margin: 0 1.0em;
+  padding-top: 0.5em;
+}
+
+.funcsynopsis p, table p, .synopsis p { 
+  margin: 0;
+}
+
+.variablelist { 
+  padding-left: 0.5em;
+}
+
+td { 
+  padding-left: 0.5em;
+}
+
+h1, .author, .pubdate, .abstract {
+  text-align: center;
+}
+
+.legalnotice {
+  text-align: justify;
+  font-size: small;
+  font-style: italic;
+}
+
+.warning {
+  border: 1px solid red;
+  background: yellow;
+  padding-left: 0.5em;
+}
diff --git a/doc/Xmu.ms b/doc/Xmu.ms
deleted file mode 100644
index 1d7fe70..0000000
--- a/doc/Xmu.ms
+++ /dev/null
@@ -1,2494 +0,0 @@
-.\" $XdotOrg: xc/doc/specs/Xmu/Xmu.ms,v 1.2 2004/04/23 18:42:19 eich Exp $
-.\" $XFree86$
-.\"
-.sp 8
-.ce 2
-\s+2\fBXmu Library\fP\s-2
-.sp 6p
-X Version 11, Release 6.8
-.sp 1
-.ce 1
-``\fIDon't ask.\fP''
-.sp 2
-.LP
-Copyright \(co 1989 X Consortium
-.LP
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the ``Software''), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-.LP
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-.LP
-THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
-X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-.LP
-Except as contained in this notice, the name of the X Consortium shall not be
-used in advertising or otherwise to promote the sale, use or other dealings
-in this Software without prior written authorization from the X Consortium.
-.sp 3
-\fIX Window System\fP is a trademark of The Open Group.
-.bp
-.NH 1
-Introduction
-.LP
-The Xmu Library is a collection of miscellaneous (some might say random)
-utility functions that have been useful in building various applications
-and widgets.  This library is required by the Athena Widgets.
-.LP
-.NH 1
-Atom Functions
-.LP
-The use the functions and macros defined in this section, you should include
-the header file
-.Pn < X11/Xmu/Atoms.h >.
-.sp
-.FD 0
-XA_ATOM_PAIR(\fId\fP)
-XA_CHARACTER_POSITION(\fId\fP)
-XA_CLASS(\fId\fP)
-XA_CLIENT_WINDOW(\fId\fP)
-XA_CLIPBOARD(\fId\fP)
-XA_COMPOUND_TEXT(\fId\fP)
-XA_DECNET_ADDRESS(\fId\fP)
-XA_DELETE(\fId\fP)
-XA_FILENAME(\fId\fP)
-XA_HOSTNAME(\fId\fP)
-XA_IP_ADDRESS(\fId\fP)
-XA_LENGTH(\fId\fP)
-XA_LIST_LENGTH(\fId\fP)
-XA_NAME(\fId\fP)
-XA_NET_ADDRESS(\fId\fP)
-XA_NULL(\fId\fP)
-XA_OWNER_OS(\fId\fP)
-XA_SPAN(\fId\fP)
-XA_TARGETS(\fId\fP)
-XA_TEXT(\fId\fP)
-XA_TIMESTAMP(\fId\fP)
-XA_USER(\fId\fP)
-XA_UTF8_STRING(\fId\fP)
-.FN
-.LP
-These macros take a display as argument and return an
-.PN Atom .
-The name of the
-atom is obtained from the macro name by removing the leading characters
-``XA_''.  The
-.PN Atom
-value is cached, such that subsequent requests do not cause
-another round-trip to the server.
-.sp
-.FD 0
-AtomPtr XmuMakeAtom(\fIname\fP)
-.br
-      char* \fIname\fP;
-.FN
-.IP \fIname\fP 1i
-specifies the atom name
-.LP
-This function creates and initializes an opaque object, an
-.PN AtomPtr ,
-for an
-.PN Atom
-with the
-given name.
-.PN XmuInternAtom
-can be used to cache the Atom value for one or more displays.
-.sp
-.FD 0
-char *XmuNameOfAtom(\fIatom_ptr\fP)
-.br
-      AtomPtr \fIatom_ptr\fP;
-.FN
-.IP \fIatom_ptr\fP 1i
-specifies the AtomPtr
-.LP
-The function returns the name of an AtomPtr.
-.sp
-.FD 0
-Atom XmuInternAtom(\fId\fP, \fIatom_ptr\fP)
-.br
-      Display *\fId\fP;
-.br
-      AtomPtr \fIatom_ptr\fP;
-.FN
-.IP \fId\fP 1i
-specifies the connection to the X server
-.IP \fIatom_ptr\fP 1i
-specifies the AtomPtr
-.LP
-This function returns the
-.PN Atom
-for an
-.PN AtomPtr .
-The
-.PN Atom
-is cached,
-such that subsequent requests do not cause another round-trip to the server.
-.sp
-.FD 0
-char *XmuGetAtomName(\fId\fP, \fIatom\fP)
-.br
-      Display *\fId\fP;
-.br
-      Atom \fIatom\fP;
-.FN
-.IP \fId\fP 1i
-specifies the connection to the X server
-.IP \fIatom\fP 1i
-specifies the atom whose name is desired
-.LP
-This function returns the name of an
-.PN Atom .
-The result is cached, such that subsequent
-requests do not cause another round-trip to the server.
-.sp
-.FD 0
-void XmuInternStrings(\fId\fP, \fInames\fP, \fIcount\fP, \fIatoms\fP)
-.br
-      Display *\fId\fP;
-.br
-      String *\fInames\fP;
-.br
-      Cardinal \fIcount\fP;
-.br
-      Atom *\fIatoms\fP;
-.FN
-.IP \fId\fP 1i
-specifies the connection to the X server
-.IP \fInames\fP 1i
-specifies the strings to intern
-.IP \fIcount\fP 1i
-specifies the number of strings
-.IP \fIatoms\fP 1i
-returns the list of Atom values
-.LP
-This function converts a list of atom names into
-.PN Atom
-values.  The results are cached, such
-that subsequent requests do not cause further round-trips to the server.
-The caller is responsible for preallocating the array pointed at by atoms.
-.LP
-.NH 1
-Error Handler Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/Error.h >.
-.sp
-.FD 0
-int XmuPrintDefaultErrorMessage(\fIdpy\fP, \fIevent\fP, \fIfp\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      XErrorEvent *\fIevent\fP;
-.br
-      FILE *\fIfp\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIevent\fP 1i
-specifies the error
-.IP \fIfp\fP 1i
-specifies where to print the error message
-.LP
-This function prints an error message, equivalent to Xlib's default error
-message for protocol errors.  It returns a non-zero value
-if the caller should consider exiting, otherwise it returns 0.
-This function can be used when you need to
-write your own error handler, but need to print out an error from within
-that handler.
-.sp
-.FD 0
-int XmuSimpleErrorHandler(\fIdpy\fP, \fIerrorp\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      XErrorEvent *\fIerrorp\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIerrorp\fP 1i
-specifies the error
-.LP
-This function ignores errors for
-.PN BadWindow
-errors for
-.PN XQueryTree
-and
-.PN XGetWindowAttributes ,
-and ignores
-.PN BadDrawable
-errors for
-.PN XGetGeometry ;
-it returns 0 in those cases.  Otherwise, it prints the default error message,
-and returns a non-zero value if the caller should consider exiting,
-and 0 if the caller should not exit.
-.LP
-.NH 1
-System Utility Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/SysUtil.h >.
-.sp
-.FD 0
-int XmuGetHostname(\fIbuf\fP, \fImaxlen\fP)
-.br
-      char *\fIbuf\fP;
-.br
-      int \fImaxlen\fP;
-.FN
-.IP \fIbuf\fP 1i
-returns the host name
-.IP \fImaxlen\fP 1i
-specifies the length of buf
-.LP
-This function stores the null terminated name of the local host in buf, and
-returns length of the name.  This function hides operating system differences,
-such as whether to call gethostname or uname.
-.LP
-.NH 1
-Window Utility Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/WinUtil.h >.
-.sp
-.FD 0
-Screen *XmuScreenOfWindow(\fIdpy\fP, \fIw\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      Window \fIw\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIw\fP 1i
-specifies the window
-.LP
-This function returns the
-.PN Screen
-on which the specified window was created.
-.sp
-.FD 0
-Window XmuClientWindow(\fIdpy\fP, \fIwin\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      Window \fIwin\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIwin\fP 1i
-specifies the window
-.LP
-This function finds a window, at or below the specified window, which has a
-WM_STATE property.  If such a window is found, it is returned, otherwise the
-argument window is returned.
-.sp
-.FD 0
-Bool XmuUpdateMapHints(\fIdpy\fP, \fIw\fP, \fIhints\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      Window \fIw\fP;
-.br
-      XSizeHints *\fIhints\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIwin\fP 1i
-specifies the window
-.IP \fIhints\fP 1i
-specifies the new hints, or NULL
-.LP
-This function clears the
-.PN PPosition
-and
-.PN PSize
-flags and sets the
-.PN USPosition
-and
-.PN USSize
-flags in the hints structure, and then stores the hints for the
-window using
-.PN XSetWMNormalHints
-and returns
-.PN True .
-If NULL is passed for the
-hints structure, then the current hints are read back from the window using
-.PN XGetWMNormalHints
-and are used instead, and
-.PN True
-is returned; otherwise
-.PN False
-is returned.
-.LP
-.NH 1
-Cursor Utility Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/CurUtil.h >.
-.sp
-.FD 0
-int XmuCursorNameToIndex(\fIname\fP)
-.br
-      char *\fIname\fP;
-.FN
-.IP \fIname\fP 1i
-specifies the name of the cursor
-.LP
-This function takes the name of a standard cursor and returns its index
-in the standard cursor font.  The cursor names are formed by removing the
-``XC_'' prefix from the cursor defines listed in Appendix B of the Xlib
-manual.
-.LP
-.NH 1
-Graphics Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/Drawing.h >.
-.sp
-.FD 0
-void XmuDrawRoundedRectangle(\fIdpy\fP, \fIdraw\fP, \fIgc\fP, \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      Drawable \fIdraw\fP;
-.br
-      GC \fIgc\fP;
-.br
-      int \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIdraw\fP 1i
-specifies the drawable
-.IP \fIgc\fP 1i
-specifies the GC
-.IP \fIx\fP 1i
-specifies the upper left x coordinate
-.IP \fIy\fP 1i
-specifies the upper left y coordinate
-.IP \fIw\fP 1i
-specifies the rectangle width
-.IP \fIh\fP 1i
-specifies the rectangle height
-.IP \fIew\fP 1i
-specifies the corner width
-.IP \fIeh\fP 1i
-specifies the corner height
-.LP
-This function draws a rounded rectangle, where x, y, w, h are the dimensions
-of the overall rectangle, and ew and eh are the sizes of a bounding box that
-the corners are drawn inside of; ew should be no more than half of w, and eh
-should be no more than half of h.  The current GC line attributes control
-all attributes of the line.
-.sp
-.FD 0
-void XmuFillRoundedRectangle(\fIdpy\fP, \fIdraw\fP, \fIgc\fP, \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      Drawable \fIdraw\fP;
-.br
-      GC \fIgc\fP;
-.br
-      int \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIdraw\fP 1i
-specifies the drawable
-.IP \fIgc\fP 1i
-specifies the GC
-.IP \fIx\fP 1i
-specifies the upper left x coordinate
-.IP \fIy\fP 1i
-specifies the upper left y coordinate
-.IP \fIw\fP 1i
-specifies the rectangle width
-.IP \fIh\fP 1i
-specifies the rectangle height
-.IP \fIew\fP 1i
-specifies the corner width
-.IP \fIeh\fP 1i
-specifies the corner height
-.LP
-This function draws a filled rounded rectangle, where x, y, w, h are the
-dimensions of the overall rectangle, and ew and eh are the sizes of a
-bounding box that the corners are drawn inside of; ew should be no more than
-half of w, and eh should be no more than half of h.  The current GC fill
-settings control all attributes of the fill contents.
-.sp
-.FD 0
-XmuDrawLogo(\fIdpy\fP, \fIdrawable\fP, \fIgcFore\fP, \fIgcBack\fP, \fIx\fP, \fIy\fP, \fIwidth\fP, \fIheight\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      Drawable \fIdrawable\fP;
-.br
-      GC \fIgcFore\fP, \fIgcBack\fP;
-.br
-      int \fIx\fP, \fIy\fP;
-.br
-      unsigned int \fIwidth\fP, \fIheight\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIdrawable\fP 1i
-specifies the drawable
-.IP \fIgcFore\fP 1i
-specifies the foreground GC
-.IP \fIgcBack\fP 1i
-specifies the background GC
-.IP \fIx\fP 1i
-specifies the upper left x coordinate
-.IP \fIy\fP 1i
-specifies the upper left y coordinate
-.IP \fIwidth\fP 1i
-specifies the logo width
-.IP \fIheight\fP 1i
-specifies the logo height
-.LP
-This function draws the ``official'' X Window System logo.  The bounding box
-of the logo in the drawable is given by x, y, width, and height.  The logo
-itself is filled using gcFore, and the rest of the rectangle is filled using
-gcBack.
-.sp
-.FD 0
-Pixmap XmuCreateStippledPixmap(\fIscreen\fP, \fIfore\fP, \fIback\fP, \fIdepth\fP)
-.br
-      Screen *\fIscreen\fP;
-.br
-      Pixel \fIfore\fP, \fIback\fP;
-.br
-      unsigned int \fIdepth\fP;
-.FN
-.IP \fIscreen\fP 1i
-specifies the screen the pixmap is created on
-.IP \fIfore\fP 1i
-specifies the foreground pixel value
-.IP \fIback\fP 1i
-specifies the background pixel value
-.IP \fIdepth\fP 1i
-specifies the depth of the pixmap
-.LP
-This function creates a two pixel by one pixel stippled pixmap of specified
-depth on the specified screen.  The pixmap is cached so that multiple
-requests share the same pixmap.  The pixmap should be freed with
-.PN XmuReleaseStippledPixmap
-to maintain correct reference counts.
-.sp
-.FD 0
-void XmuReleaseStippledPixmap(\fIscreen\fP, \fIpixmap\fP)
-.br
-      Screen *\fIscreen\fP;
-.br
-      Pixmap \fIpixmap\fP;
-.FN
-.IP \fIscreen\fP 1i
-specifies the screen the pixmap was created on
-.IP \fIpixmap\fP 1i
-specifies the pixmap to free
-.LP
-This function frees a pixmap created with
-.PN XmuCreateStippledPixmap .
-.sp
-.FD 0
-int XmuReadBitmapData(\fIfstream\fP, \fIwidth\fP, \fIheight\fP, \fIdatap\fP, \fIx_hot\fP, \fIy_hot\fP)
-    FILE *\fIfstream\fP;
-    unsigned int *\fIwidth\fP, *\fIheight\fP;
-    unsigned char **\fIdatap\fP;
-    int *\fIx_hot\fP, *\fIy_hot\fP;
-.FN
-.IP \fIstream\fP 1i
-specifies the stream to read from
-.IP \fIwidth\fP 1i
-returns the width of the bitmap
-.IP \fIheight\fP 1i
-returns the height of the bitmap
-.IP \fIdatap\fP 1i
-returns the parsed bitmap data
-.IP \fIx_hot\fP 1i
-returns the x coordinate of the hotspot
-.IP \fIy_hot\fP 1i
-returns the y coordinate of the hotspot
-.LP
-This function reads a standard bitmap file description from the specified
-stream, and returns the parsed data in a format suitable for passing to
-.PN XCreateBitmapFromData .
-The return value of the function has the same
-interpretation as the return value for
-.PN XReadBitmapFile .
-.sp
-.FD 0
-int XmuReadBitmapDataFromFile(\fIfilename\fP, \fIwidth\fP, \fIheight\fP, \fIdatap\fP, \fIx_hot\fP, \fIy_hot\fP)
-    char *\fIfilename\fP;
-    unsigned int *\fIwidth\fP, *\fIheight\fP;
-    unsigned char **\fIdatap\fP;
-    int *\fIx_hot\fP, *\fIy_hot\fP;
-.FN
-.IP \fIfilename\fP 1i
-specifies the file to read from
-.IP \fIwidth\fP 1i
-returns the width of the bitmap
-.IP \fIheight\fP 1i
-returns the height of the bitmap
-.IP \fIdatap\fP 1i
-returns the parsed bitmap data
-.IP \fIx_hot\fP 1i
-returns the x coordinate of the hotspot
-.IP \fIy_hot\fP 1i
-returns the y coordinate of the hotspot
-.LP
-This function reads a standard bitmap file description from the specified
-file, and returns the parsed data in a format suitable for passing to
-.PN XCreateBitmapFromData .
-The return value of the function has the same
-interpretation as the return value for
-.PN XReadBitmapFile .
-.sp
-.FD 0
-Pixmap XmuLocateBitmapFile(\fIscreen\fP, \fIname\fP, \fIsrcname\fP, \fIsrcnamelen\fP, \fIwidthp\fP, \fIheightp\fP, \fIxhotp\fP, \fIyhotp\fP)
-    Screen *\fIscreen\fP;
-    char *\fIname\fP;
-    char *\fIsrcname\fP;
-    int \fIsrcnamelen\fP;
-    int *\fIwidthp\fP, *\fIheightp\fP, *\fIxhotp\fP, *\fIyhotp\fP;
-.FN
-.IP \fIscreen\fP 1i
-specifies the screen the pixmap is created on
-.IP \fIname\fP 1i
-specifies the file to read from
-.IP \fIsrcname\fP 1i
-returns the full filename of the bitmap
-.IP \fIsrcnamelen\fP 1i
-specifies the length of the srcname buffer
-.IP \fIwidth\fP 1i
-returns the width of the bitmap
-.IP \fIheight\fP 1i
-returns the height of the bitmap
-.IP \fIxhotp\fP 1i
-returns the x coordinate of the hotspot
-.IP \fIyhotp\fP 1i
-returns the y coordinate of the hotspot
-.LP
-This function reads a file in standard bitmap file format, using
-.PN XReadBitmapFile ,
-and returns the created bitmap.  The filename may be
-absolute, or relative to the global resource named bitmapFilePath with class
-BitmapFilePath.  If the resource is not defined, the default value is the
-build symbol BITMAPDIR, which is typically "/usr/include/X11/bitmaps".  If
-srcnamelen is greater than zero and srcname is not NULL, the null terminated
-filename will be copied into srcname.  The size and hotspot of the bitmap are
-also returned.
-.sp
-.FD 0
-Pixmap XmuCreatePixmapFromBitmap(\fIdpy\fP, \fId\fP, \fIbitmap\fP, \fIwidth\fP, \fIheight\fP, \fIdepth\fP, \fIfore\fP, \fIback\fP)
-    Display *\fIdpy\fP;
-    Drawable \fId\fP;
-    Pixmap \fIbitmap\fP;
-    unsigned int \fIwidth\fP, \fIheight\fP;
-    unsigned int \fIdepth\fP;
-    unsigned long \fIfore\fP, \fIback\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fId\fP 1i
-specifies the screen the pixmap is created on
-.IP \fIbitmap\fP 1i
-specifies the bitmap source
-.IP \fIwidth\fP 1i
-specifies the width of the pixmap
-.IP \fIheight\fP 1i
-specifies the height of the pixmap
-.IP \fIdepth\fP 1i
-specifies the depth of the pixmap
-.IP \fIfore\fP 1i
-specifies the foreground pixel value
-.IP \fIback\fP 1i
-specifies the background pixel value
-.LP
-This function creates a pixmap of the specified width, height, and depth, on
-the same screen as the specified drawable, and then performs an
-.PN XCopyPlane
-from the specified bitmap to the pixmap,
-using the specified foreground and background pixel values.
-The created pixmap is returned.
-.LP
-.NH 1
-Selection Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/StdSel.h >.
-.sp
-.FD 0
-Boolean XmuConvertStandardSelection(\fIw\fP, \fItime\fP, \fIselection\fP, \fItarget\fP, \fItype\fP, \fIvalue\fP, \fIlength\fP, \fIformat\fP)
-.br
-      Widget \fIw\fP;
-.br
-      Time \fItime\fP;
-.br
-      Atom *\fIselection\fP, *\fItarget\fP, *\fItype\fP;
-.br
-      caddr_t *\fIvalue\fP;
-.br
-      unsigned long *\fIlength\fP;
-.br
-      int *\fIformat\fP;
-.FN
-.IP \fIw\fP 1i
-specifies the widget which currently owns the selection
-.IP \fItime\fP 1i
-specifies the time at which the selection was established
-.IP \fIselection\fP 1i
-this argument is ignored
-.IP \fItarget\fP 1i
-specifies the target type of the selection
-.IP \fItype\fP 1i
-returns the property type of the converted value
-.IP \fIvalue\fP 1i
-returns the converted value
-.IP \fIlength\fP 1i
-returns the number of elements in the converted value
-.IP \fIformat\fP 1i
-returns the size in bits of the elements
-.LP
-This function converts the following standard selections: CLASS,
-CLIENT_WINDOW, DECNET_ADDRESS, HOSTNAME, IP_ADDRESS, NAME, OWNER_OS,
-TARGETS, TIMESTAMP, and USER.  It returns
-.PN True
-if the conversion was successful, else it returns
-.PN False.
-.LP
-.NH 1
-Type Converter Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/Converters.h >.
-.sp
-.FD 0
-void XmuCvtFunctionToCallback(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValue *\fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-this argument is ignored
-.IP \fInum_args\fP 1i
-this argument is ignored
-.IP \fIfromVal\fP 1i
-the function to convert
-.IP \fItoVal\fP
-the place to store the converted value
-.LP
-This function converts a callback procedure to a callback list containing
-that procedure, with NULL closure data.  To use this converter, include the
-following in your widget's ClassInitialize procedure:
-.LP
-XtAddConverter(XtRCallProc, XtRCallback, XmuCvtFunctionToCallback, NULL, 0);
-.sp
-.FD 0
-void XmuCvtStringToBackingStore(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValue *\fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-this argument is ignored
-.IP \fInum_args\fP 1i
-this argument must be a pointer to a Cardinal containing the value 0
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function converts a string to a backing-store integer as defined in
-.Pn < X11/X.h >.
-The string "notUseful" converts to
-.PN NotUseful ,
-"whenMapped" converts to
-.PN WhenMapped ,
-and "always" converts to
-.PN Always .
-The string "default" converts to the value
-.PN Always +
-.PN WhenMapped +
-.PN NotUseful .
-The case of the string does not matter.
-To use this converter, include the following
-in your widget's ClassInitialize procedure:
-.LP
-XtAddConverter(XtRString, XtRBackingStore, XmuCvtStringToBackingStore, NULL, 0);
-.sp
-.FD 0
-void XmuCvtStringToBitmap(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValuePtr \fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-the sole argument specifies the Screen on which to create the bitmap
-.IP \fInum_args\fP 1i
-must be the value 1
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function creates a bitmap (a Pixmap of depth one) suitable for window
-manager icons.  The string argument is the name of a file in standard bitmap
-file format.  For the possible filename specifications, see
-.PN XmuLocateBitmapFile .
-To use this converter, include the following in your widget's
-ClassInitialize procedure:
-.LP
-static XtConvertArgRec screenConvertArg[] = {
-.br
-  {XtBaseOffset, (XtPointer)XtOffset(Widget, core.screen), sizeof(Screen *)}
-.br
-};
-.LP
-XtAddConverter(XtRString, XtRBitmap, XmuCvtStringToBitmap,
-.br
-		 screenConvertArg, XtNumber(screenConvertArg));
-.sp
-.FD 0
-Boolean XmuCvtStringToColorCursor(\fIdpy\fP, \fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP, \fIdata\fP)
-.br
-      Display * \fIdpy\fP;
-.br
-      XrmValuePtr \fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.br
-      XtPointer * \fIdata\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the display to use for conversion warnings
-.IP \fIargs\fP 1i
-specifies the required conversion arguments
-.IP \fInum_args\fP 1i
-specifies the number of required conversion arguments, which is 4
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.IP \fIdata\fP
-this argument is ignored
-.LP
-This function converts a string to a
-.PN Cursor 
-with the foreground and background pixels specified by the conversion
-arguments.  The string can either be a
-standard cursor name formed by removing the ``XC_'' prefix from any of the
-cursor defines listed in Appendix B of the Xlib Manual, a font name and
-glyph index in decimal of the form "FONT fontname index [[font] index]",
-or a bitmap filename acceptable to
-.PN XmuLocateBitmapFile .
-To use this converter, include
-the following in the widget ClassInitialize procedure:
-.LP
-static XtConvertArgRec colorCursorConvertArgs[] = {
-.br
-  {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.screen),
-   sizeof(Screen *)},
-  {XtResourceString, (XtPointer) XtNpointerColor, sizeof(Pixel)},
-  {XtResourceString, (XtPointer) XtNpointerColorBackground, sizeof(Pixel)},
-  {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.colormap),
-   sizeof(Colormap)}
-.br
-};
-.LP
-XtSetTypeConverter(XtRString, XtRColorCursor, XmuCvtStringToColorCursor,
-.br
-		 colorCursorConvertArgs, XtNumber(colorCursorConvertArgs),
-.br
-                 XtCacheByDisplay, NULL);
-The widget must recognize XtNpointerColor and XtNpointerColorBackground as
-resources, or specify other appropriate foreground and background resources.
-The widget's Realize and SetValues methods must cause the converter to be
-invoked with the appropriate arguments when one of the foreground,
-background, or cursor resources has changed, or when the window is created,
-and must assign the cursor to the window of the widget.
-.sp
-.FD 0
-void XmuCvtStringToCursor(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValuePtr \fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-specifies the required conversion argument, the screen
-.IP \fInum_args\fP 1i
-specifies the number of required conversion arguments, which is 1
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function converts a string to a
-.PN Cursor .
-The string can either be a
-standard cursor name formed by removing the ``XC_'' prefix from any of the
-cursor defines listed in Appendix B of the Xlib Manual, a font name and
-glyph index in decimal of the form "FONT fontname index [[font] index]", or
-a bitmap filename acceptable to
-.PN XmuLocateBitmapFile .
-To use this converter, include
-the following in your widget's ClassInitialize procedure:
-.LP
-static XtConvertArgRec screenConvertArg[] = {
-.br
-  {XtBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.screen), sizeof(Screen *)}
-.br
-};
-.LP
-XtAddConverter(XtRString, XtRCursor, XmuCvtStringToCursor,
-.br
-		 screenConvertArg, XtNumber(screenConvertArg));
-.sp
-.FD 0
-void XmuCvtStringToGravity(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-     XrmValuePtr *\fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-this argument is ignored
-.IP \fInum_args\fP 1i
-this argument must be a pointer to a Cardinal containing the value 0
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function converts a string to an
-.PN XtGravity
-enumeration value.  The string "forget" and a NULL value convert to
-.PN ForgetGravity ,
-"NorthWestGravity" converts to 
-.PN NorthWestGravity ,
-the strings "NorthGravity" and "top" convert to
-.PN NorthGravity ,
-"NorthEastGravity" converts to
-.PN NorthEastGravity ,
-the strings "West" and "left" convert to
-.PN WestGravity ,
-"CenterGravity" converts to
-.PN CenterGravity ,
-"EastGravity" and "right" convert to
-.PN EastGravity ,
-"SouthWestGravity" converts to
-.PN SouthWestGravity ,
-"SouthGravity" and "bottom" convert to
-.PN SouthGravity ,
-"SouthEastGravity" converts to
-.PN SouthEastGravity ,
-"StaticGravity" converts to
-.PN StaticGravity ,
-and "UnmapGravity" converts to
-.PN UnmapGravity .
-The case of the string does not matter.  To use this converter, include
-the following in your widget's class initialize procedure:
-.LP
-XtAddConverter(XtRString, XtRGravity, XmuCvtStringToGravity, NULL, 0);
-.sp
-.FD 0
-void XmuCvtStringToJustify(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValuePtr *\fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-this argument is ignored
-.IP \fInum_args\fP 1i
-this argument is ignored
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function converts a string to an
-.PN XtJustify
-enumeration value.  The string "left" converts to
-.PN XtJustifyLeft ,
-"center" converts to
-.PN XtJustifyCenter ,
-and "right" converts to
-.PN XtJustifyRight .
-The case of the string does not matter.  To use this converter,
-include the following in your widget's ClassInitialize procedure:
-.LP
-XtAddConverter(XtRString, XtRJustify, XmuCvtStringToJustify, NULL, 0);
-.sp
-.FD 0
-void XmuCvtStringToLong(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValuePtr \fIargs\fP;
-.br
-      Cardinal    *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-this argument is ignored
-.IP \fInum_args\fP 1i
-this argument must be a pointer to a Cardinal containing 0
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function converts a string to an integer of type long.  It parses the
-string using
-.PN sscanf
-with a format of "%ld".  To use this converter, include
-the following in your widget's ClassInitialize procedure:
-.LP
-XtAddConverter(XtRString, XtRLong, XmuCvtStringToLong, NULL, 0);
-.sp
-.FD 0
-void XmuCvtStringToOrientation(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValuePtr *\fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-this argument is ignored
-.IP \fInum_args\fP 1i
-this argument is ignored
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function converts a string to an
-.PN XtOrientation
-enumeration value.  The string "horizontal" converts to
-.PN XtorientHorizontal
-and "vertical" converts to
-.PN XtorientVertical .
-The case of the string does not matter.  To use this converter,
-include the following in your widget's ClassInitialize procedure:
-.LP
-XtAddConverter(XtRString, XtROrientation, XmuCvtStringToOrientation, NULL, 0);
-.sp
-.FD 0
-Boolean XmuCvtStringToShapeStyle(\fIdpy\fP, \fIargs\fP, \fInum_args\fP, \fIfrom\fP, \fItoVal\fP, data)
-.br
-      Display *\fIdpy\fP;
-.br
-      XrmValue *\fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValue *\fIfrom\fP;
-.br
-      XrmValue *\fItoVal\fP;
-.br
-      XtPointer *\fIdata\fP;
-.FN
-.IP \fIdpy\fP 1i
-the display to use for conversion warnings
-.IP \fIargs\fP 1i
-this argument is ignored
-.IP \fInum_args\fP 1i
-this argument is ignored
-.IP \fIfromVal\fP 1i
-the value to convert from
-.IP \fItoVal\fP
-the place to store the converted value
-.IP \fIdata\fP 1i
-this argument is ignored
-.LP
-This function converts a string to an integer shape style.  The string
-"rectangle" converts to
-.PN XmuShapeRectangle ,
-"oval" converts to
-.PN XmuShapeOval ,
-"ellipse" converts to
-.PN XmuShapeEllipse ,
-and "roundedRectangle" converts to
-.PN XmuShapeRoundedRectangle .
-The case of the string does not matter.  To use this converter,
-include the following in your widget's ClassInitialize procedure:
-.LP
-XtSetTypeConverter(XtRString, XtRShapeStyle, XmuCvtStringToShapeStyle,
-.br
-		     NULL, 0, XtCacheNone, NULL);
-.sp
-.FD 0
-Boolean XmuReshapeWidget(w, \fIshape_style\fP, \fIcorner_width\fP, \fIcorner_height\fP)
-.br
-      Widget \fIw\fP;
-.br
-      int \fIshape_style\fP;
-.br
-      int \fIcorner_width\fP, \fIcorner_height\fP;
-.FN
-.IP \fIw\fP 1i
-specifies the widget to reshape
-.IP \fIshape_style\fP 1i
-specifies the new shape
-.IP \fIcorner_width\fP 1i
-specifies the width of the rounded rectangle corner
-.IP \fIcorner_height\fP 1i
-specified the height of the rounded rectangle corner
-.LP
-This function reshapes the specified widget, using the Shape extension, to a
-rectangle, oval, ellipse, or rounded rectangle, as specified by shape_style
-(
-.PN XmuShapeRectangle ,
-.PN XmuShapeOval ,
-.PN XmuShapeEllipse ,
-and
-.PN XmuShapeRoundedRectangle ,
-respectively).
-The shape is bounded by the outside edges of the rectangular extents of the
-widget.  If the shape is a rounded rectangle, corner_width and corner_height
-specify the size of the bounding box that the corners are drawn inside of
-(see
-.PN XmuFillRoundedRectangle );
-otherwise, corner_width and corner_height are ignored.
-The origin of the widget within its parent remains unchanged.
-.sp
-.FD 0
-void XmuCvtStringToWidget(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
-.br
-      XrmValuePtr \fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValuePtr \fIfromVal\fP;
-.br
-      XrmValuePtr \fItoVal\fP;
-.FN
-.IP \fIargs\fP 1i
-this sole argument is the parent Widget
-.IP \fInum_args\fP 1i
-this argument must be 1
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.LP
-This function converts a string to an immediate child widget of the parent
-widget passed as an argument.  Note that this converter only works for
-child widgets that have already been created; there is no lazy evaluation.
-The string is first compared against the
-names of the normal and popup children, and if a match is found the
-corresponding child is returned.  If no match is found, the string is
-compared against the classes of the normal and popup children, and if a
-match is found the corresponding child is returned.  The case of the string
-is significant.  To use this converter, include the following in your
-widget's ClassInitialize procedure:
-.LP
-static XtConvertArgRec parentCvtArg[] = {
-.br
-  {XtBaseOffset, (XtPointer)XtOffset(Widget, core.parent), sizeof(Widget)},
-.br
-};
-.LP
-XtAddConverter(XtRString, XtRWidget, XmuCvtStringToWidget,
-.br
-		 parentCvtArg, XtNumber(parentCvtArg));
-.sp
-.FD 0
-Boolean XmuNewCvtStringToWidget(\fIdpy\fP, \fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP, \fIdata\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      XrmValue * \fIargs\fP;
-.br
-      Cardinal *\fInum_args\fP;
-.br
-      XrmValue * \fIfromVal\fP;
-.br
-      XrmValue * \fItoVal\fP;
-.br
-      XtPointer *\fIdata\fP;
-.FN
-.IP \fIdpy\fP 1i
-the display to use for conversion warnings
-.IP \fIargs\fP 1i
-this sole argument is the parent Widget
-.IP \fInum_args\fP 1i
-this argument must be a pointer to a Cardinal containing the value 1
-.IP \fIfromVal\fP 1i
-specifies the string to convert
-.IP \fItoVal\fP
-returns the converted value
-.IP \fIdata\fP 1i
-this argument is ignored
-.LP
-This converter is identical in functionality to XmuCvtStringToWidget, except
-that it is a new-style converter, allowing the specification of a cache type
-at the time of registration.
-Most widgets will not cache the conversion results, as the application may
-dynamically create and destroy widgets, which would cause cached values to
-become illegal.  To use this converter, include the following in the widget's
-class initialize procedure:
-.LP
-static XtConvertArgRec parentCvtArg[] = {
-.br
-  {XtWidgetBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.parent),
-.br
-   sizeof(Widget)}
-.br
-};
-.LP
-XtSetTypeConverter(XtRString, XtRWidget, XmuNewCvtStringToWidget,
-.br
-		   parentCvtArg, XtNumber(parentCvtArg), XtCacheNone, NULL);
-.LP
-.NH 1
-Character Set Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/CharSet.h >.
-.LP
-The functions in this section are \fBdeprecated\fP because they don't work
-in most locales now supported by X11; the function
-.PN XmbLookupString
-provides a better alternative.
-.sp
-.FD 0
-void XmuCopyISOLatin1Lowered(\fIdst\fP, \fIsrc\fP)
-.br
-      char *\fIdst\fP, *\fIsrc\fP;
-.FN
-.IP \fIdst\fP 1i
-returns the string copy
-.IP \fIsrc\fP 1i
-specifies the string to copy
-.LP
-This function copies a null terminated string from src to dst (including the
-null), changing all Latin-1 uppercase letters to lowercase.  The string is
-assumed to be encoded using ISO 8859-1.
-.sp
-.FD 0
-void XmuCopyISOLatin1Uppered(\fIdst\fP, \fIsrc\fP)
-.br
-      char *\fIdst\fP, *\fIsrc\fP;
-.FN
-.IP \fIdst\fP 1i
-returns the string copy
-.IP \fIsrc\fP 1i
-specifies the string to copy
-.LP
-This function copies a null terminated string from src to dst (including the
-null), changing all Latin-1 lowercase letters to uppercase.  The string is
-assumed to be encoded using ISO 8859-1.
-.sp
-.FD 0
-int XmuCompareISOLatin1(\fIfirst\fP, \fIsecond\fP)
-.br
-      char *\fIfirst\fP, *\fIsecond\fP;
-.FN
-.IP \fIdst\fP 1i
-specifies a string to compare
-.IP \fIsrc\fP 1i
-specifies a string to compare
-.LP
-This function compares two null terminated Latin-1 strings, ignoring case
-differences, and returns an integer greater than, equal to, or less than 0,
-according to whether first is lexicographically greater than, equal to, or
-less than second.  The two strings are assumed to be encoded using ISO
-8859-1.
-.sp
-.FD 0
-int XmuLookupLatin1(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is identical to
-.PN XLookupString ,
-and exists only for naming symmetry with other functions.
-.sp
-.FD 0
-int XmuLookupLatin2(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to an Latin-2 (ISO 8859-2) string, or to an ASCII control string.
-.sp
-.FD 0
-int XmuLookupLatin3(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to an Latin-3 (ISO 8859-3) string, or to an ASCII control string.
-.sp
-.FD 0
-int XmuLookupLatin4(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to an Latin-4 (ISO 8859-4) string, or to an ASCII control string.
-.sp
-.FD 0
-int XmuLookupKana(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to a string in an encoding consisting of Latin-1 (ISO 8859-1) and ASCII
-control in the Graphics Left half (values 0 to 127), and Katakana in the
-Graphics Right half (values 128 to 255), using the values from JIS
-X201-1976.
-.sp
-.FD 0
-int XmuLookupJISX0201(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to a string in the JIS X0201-1976 encoding, including ASCII control.
-.sp
-.FD 0
-int XmuLookupArabic(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to a Latin/Arabic (ISO 8859-6) string, or to an ASCII control string.
-.sp
-.FD 0
-int XmuLookupCyrillic(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to a Latin/Cyrillic (ISO 8859-5) string, or to an ASCII control string.
-.sp
-.FD 0
-int XmuLookupGreek(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to a Latin/Greek (ISO 8859-7) string, or to an ASCII control string.
-.sp
-.FD 0
-int XmuLookupHebrew(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event
-to a Latin/Hebrew (ISO 8859-8) string, or to an ASCII control string.
-.sp
-.FD 0
-int XmuLookupAPL(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
-.br
-      XKeyEvent *\fIevent\fP;
-.br
-      char *\fIbuffer\fP;
-.br
-      int \fInbytes\fP;
-.br
-      KeySym *\fIkeysym\fP;
-.br
-      XComposeStatus *\fIstatus\fP;
-.FN
-.IP \fIevent\fP 1i
-specifies the key event
-.IP \fIbuffer\fP 1i
-returns the translated characters
-.IP \fInbytes\fP 1i
-specifies the length of the buffer
-.IP \fIkeysym\fP 1i
-returns the computed KeySym, or None
-.IP \fIstatus\fP 1i
-specifies or returns the compose state
-.LP
-This function is similar to
-.PN XLookupString ,
-except that it maps a key event to an APL string.
-.LP
-.NH 1
-Compound Text Functions
-.LP
-The functions defined in this section are for parsing Compound Text strings,
-decomposing them into individual segments. Definitions needed to use these
-routines are in the include file
-.Pn < X11/Xmu/Xct.h >.
-.LP
-The functions in this section are \fBdeprecated\fP because they shift the
-burden for recently introduced locale encodings to the application. The
-use of the
-.PN UTF8_STRING
-text encoding provides a better alternative.
-.LP
-A Compound Text string is represented as the following type:
-.LP
-	typedef unsigned char *XctString;
-.sp
-.FD 0
-XctData XctCreate(\fIstring\fP, \fIlength\fP, \fIflags\fP)
-.br
-      XctString \fIstring\fP;
-.br
-      int \fIlength\fP;
-.br
-      XctFlags \fIflags\fP;
-.FN
-.IP \fIstring\fP 1i
-the Compound Text string
-.IP \fIlength\fP 1i
-the number of bytes in string
-.IP \fIflags\fP 1i
-parsing control flags
-.LP
-This function creates an
-.PN XctData
-structure for parsing a Compound Text
-string.  The string need not be null terminated.  The following flags are
-defined to control parsing of the string:
-.LP
-.PN XctSingleSetSegments
--- This means that returned segments should contain
-characters from only one set (C0, C1, GL, GR).  When this is requested,
-.PN XctSegment
-is never returned by
-.PN XctNextItem ,
-instead
-.PN XctC0Segment ,
-.PN XctC1Segment ,
-.PN XctGlSegment ,
-and
-.PN XctGRSegment
-are returned.  C0 and C1
-segments are always returned as singleton characters.
-.LP
-.PN XctProvideExtensions
--- This means that if the Compound Text string is from a
-higher version than this code is implemented to, then syntactically correct
-but unknown control sequences should be returned as
-.PN XctExtension
-items by
-.PN XctNextItem .
-If this flag is not set, and the Compound Text string version
-indicates that extensions cannot be ignored, then each unknown control
-sequence will be reported as an
-.PN XctError .
-.LP
-.PN XctAcceptC0Extensions
--- This means that if the Compound Text string is from
-a higher version than this code is implemented to, then unknown C0
-characters should be treated as if they were legal, and returned as C0
-characters (regardless of how
-.PN XctProvideExtensions
-is set) by
-.PN XctNextItem .
-If this flag is not set, then all unknown C0 characters are treated
-according to
-.PN XctProvideExtensions .
-.LP
-.PN XctAcceptC1Extensions
--- This means that if the Compound Text string is from
-a higher version than this code is implemented to, then unknown C1
-characters should be treated as if they were legal, and returned as C1
-characters (regardless of how
-.PN XctProvideExtensions
-is set) by
-.PN XctNextItem .
-If this flag is not set, then all unknown C1 characters are treated
-according to
-.PN XctProvideExtensions .
-.LP
-.PN XctHideDirection
--- This means that horizontal direction changes should be
-reported as
-.PN XctHorizontal
-items by
-.PN XctNextItem .  If this flag is not set,
-then direction changes are not returned as items, but the current direction
-is still maintained and reported for other items.  The current direction is
-given as an enumeration, with the values
-.PN XctUnspecified ,
-.PN XctLeftToRight ,
-and
-.PN XctRightToLeft .
-.LP
-.PN XctFreeString
--- This means that
-.PN XctFree
-should free the Compound Text string that is passed to
-.PN XctCreate .
-If this flag is not set, the string is not freed.
-.LP
-.PN XctShiftMultiGRToGL
--- This means that
-.PN XctNextItem
-should translate GR
-segments on-the-fly into GL segments for the GR sets: GB2312.1980-1,
-JISX0208.1983-1, and KSC5601.1987-1.
-.sp
-.FD 0
-void XctReset(\fIdata\fP)
-.br
-      XctData \fIdata\fP;
-.FN
-.IP \fIdata\fP 1i
-specifies the Compound Text structure
-.LP
-This function resets the
-.PN XctData
-structure to reparse the Compound Text string from the beginning.
-.sp
-.FD 0
-XctResult XctNextItem(\fIdata\fP)
-.br
-      XctData \fIdata\fP;
-.FN
-.IP \fIdata\fP 1i
-specifies the Compound Text structure
-.LP
-This function parses the next ``item'' from the Compound Text string.  The
-return value indicates what kind of item is returned.  The item itself, it's
-length, and the current contextual state, are reported as components of the
-.PN XctData
-structure.
-.PN XctResult
-is an enumeration, with the following values:
-.LP
-.PN XctSegment
--- the item contains some mixture of C0, GL, GR, and C1 characters.
-.LP
-.PN XctC0Segment
--- the item contains only C0 characters.
-.LP
-.PN XctGLSegment
--- the item contains only GL characters.
-.LP
-.PN XctC1Segment
--- the item contains only C1 characters.
-.LP
-.PN XctGRSegment
--- the item contains only GR characters.
-.LP
-.PN XctExtendedSegment
--- the item contains an extended segment.
-.LP
-.PN XctExtension
--- the item is an unknown extension control sequence.
-.LP
-.PN XctHorizontal
--- the item indicates a change in horizontal direction or
-depth.  The new direction and depth are recorded in the
-.PN XctData
-structure.
-.LP
-.PN XctEndOfText
--- The end of the Compound Text string has been reached.
-.LP
-.PN XctError
--- the string contains a syntactic or semantic error; no further
-parsing should be performed.
-.LP
-The following state values are stored in the
-.PN XctData
-structure:
-.Ds 0
-.TA .5i 3i
-.ta .5i 3i
-	XctString item;	/* the action item */
-	int item_length;	/* the length of item in bytes */
-	int char_size;	/* the number of bytes per character in
-		 * item, with zero meaning variable */
-	char *encoding;	/* the XLFD encoding name for item */
-	XctHDirection horizontal;	/* the direction of item */
-	int horz_depth;	/* the current direction nesting depth */
-	char *GL;	/* the "{I} F" string for the current GL */
-	char *GL_encoding;	/* the XLFD encoding name for the current GL */
-	int GL_set_size;	/* 94 or 96 */
-	int GL_char_size;	/* the number of bytes per GL character */
-	char *GR;	/* the "{I} F" string for the current GR */
-	char *GR_encoding;	/* the XLFD encoding name the for current GR */
-	int GR_set_size;	/* 94 or 96 */
-	int GR_char_size;	/* the number of bytes per GR character */
-	char *GLGR_encoding;	/* the XLFD encoding name for the current
-		 * GL+GR, if known */
-.De
-.sp
-.FD 0
-void XctFree(\fIdata\fP)
-.br
-      XctData \fIdata\fP;
-.FN
-.IP \fIdata\fP 1i
-specifies the Compound Text structure
-.LP
-This function frees all data associated with the
-.PN XctData
-structure.
-.LP
-.NH 1
-CloseDisplay Hook Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/CloseHook.h >.
-.sp
-.FD 0
-CloseHook XmuAddCloseDisplayHook(\fIdpy\fP, \fIfunc\fP, \fIarg\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      int (*\fIfunc\fP)();
-.br
-      caddr_t \fIarg\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIfunc\fP 1i
-specifies the function to call at display close
-.IP \fIarg\fP 1i
-specifies arbitrary data to pass to func
-.LP
-This function adds a callback for the given display.  When the display is
-closed, the given function will be called with the given display and
-argument as:
-.LP
-	(*func)(dpy, arg)
-.LP 
-The function is declared to return an int even though the value is ignored,
-because some compilers have problems with functions returning void.
-.LP
-This routine returns NULL if it was unable to add the callback, otherwise it
-returns an opaque handle that can be used to remove or lookup the callback.
-.sp
-.FD 0
-Bool XmuRemoveCloseDisplayHook(\fIdpy\fP, \fIhandle\fP, \fIfunc\fP, \fIarg\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      CloseHook \fIhandle\fP;
-.br
-      int (*\fIfunc\fP)();
-.br
-      caddr_t \fIarg\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIhandle\fP 1i
-specifies the callback by id, or NULL
-.IP \fIfunc\fP 1i
-specifies the callback by function
-.IP \fIarg\fP 1i
-specifies the function data to match
-.LP
-This function deletes a callback that has been added with
-.PN XmuAddCloseDisplayHook .
-If handle is not NULL, it specifies the callback to
-remove, and the func and arg parameters are ignored.  If handle is NULL, the
-first callback found to match the specified func and arg will be removed.
-Returns
-.PN True
-if a callback was removed, else returns
-.PN False .
-.sp
-.FD 0
-Bool XmuLookupCloseDisplayHook(\fIdpy\fP, \fIhandle\fP, \fIfunc\fP, \fIarg\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      CloseHook \fIhandle\fP;
-.br
-      int (*\fIfunc\fP)();
-.br
-      caddr_t \fIarg\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIhandle\fP 1i
-specifies the callback by id, or NULL
-.IP \fIfunc\fP 1i
-specifies the callback by function
-.IP \fIarg\fP 1i
-specifies the function data to match
-.LP
-This function determines if a callback is installed.  If handle is not NULL,
-it specifies the callback to look for, and the func and arg parameters are
-ignored.  If handle is NULL, the function will look for any callback for the
-specified func and arg.  Returns
-.PN True
-if a matching callback exists, else returns
-.PN False .
-.LP
-.NH 1
-Display Queue Functions
-.LP
-To use the functions and types defined in this section, you should include the
-header file
-.Pn < X11/Xmu/DisplayQue.h >.
-It defines the following types:
-.LP
-.Ds 0
-.TA .5i 3i
-.ta .5i 3i
-typedef struct _XmuDisplayQueueEntry {
-	struct _XmuDisplayQueueEntry *prev, *next;
-	Display *display;
-	CloseHook closehook;
-	caddr_t data;
-} XmuDisplayQueueEntry;
-
-typedef struct _XmuDisplayQueue {
-	int nentries;
-	XmuDisplayQueueEntry *head, *tail;
-	int (*closefunc)();
-	int (*freefunc)();
-	caddr_t data;
-} XmuDisplayQueue;
-.De
-.sp
-.FD 0
-XmuDisplayQueue *XmuDQCreate(\fIclosefunc\fP, \fIfreefunc\fP, \fIdata\fP)
-.br
-      int (*\fIclosefunc\fP)();
-.br
-      int (*\fIfreefunc\fP)();
-.br
-      caddr_t \fIdata\fP;
-.FN
-.IP \fIclosefunc\fP 1i
-specifies the close function
-.IP \fIfreefunc\fP 1i
-specifies the free function
-.IP \fIdata\fP 1i
-specifies private data for the functions
-.LP
-This function creates and returns an empty
-.PN XmuDisplayQueue
-(which is really just a set of displays, but is called a queue for
-historical reasons).  The queue is initially empty, but displays
-can be added using
-.PN XmuAddDisplay .
-The data value is simply stored in the queue for use by the closefunc
-and freefunc callbacks.
-Whenever a display in the queue is closed using
-.PN XCloseDisplay ,
-the closefunc (if non-NULL) is called with the queue and the display's
-.PN XmuDisplayQueueEntry
-as follows:
-.LP
-	(*closefunc)(queue, entry)
-.LP
-The freeproc (if non-NULL) is called whenever the last display in the
-queue is closed, as follows:
-.LP
-	(*freefunc)(queue)
-.LP
-The application is responsible for actually freeing the queue, by calling
-.PN XmuDQDestroy .
-.sp
-.FD 0
-XmuDisplayQueueEntry *XmuDQAddDisplay(\fIq\fP, \fIdpy\fP, \fIdata\fP)
-.br
-      XmuDisplayQueue *\fIq\fP;
-.br
-      Display *\fIdpy\fP;
-.br
-      caddr_t \fIdata\fP;
-.FN
-.IP \fIq\fP 1i
-specifies the queue
-.IP \fIdpy\fP 1i
-specifies the display to add
-.IP \fIdata\fP 1i
-specifies private data for the free function
-.LP
-This function adds the specified display to the queue.  If successful,
-the queue entry is returned, otherwise NULL is returned.
-The data value is simply stored in the queue entry for use by the
-queue's freefunc callback.  This function does not attempt to prevent
-duplicate entries in the queue; the caller should use
-.PN XmuDQLookupDisplay
-to determine if a display has already been added to a queue.
-.sp
-.FD 0
-XmuDisplayQueueEntry *XmuDQLookupDisplay(\fIq\fP, \fIdpy\fP)
-.br
-      XmuDisplayQueue *\fIq\fP;
-.br
-      Display *\fIdpy\fP;
-.FN
-.IP \fIq\fP 1i
-specifies the queue
-.IP \fIdpy\fP 1i
-specifies the display to lookup
-.LP
-This function returns the queue entry for the specified display, or NULL if
-the display is not in the queue.
-.sp
-.FD 0
-XmuDQNDisplays(\fIq\fP)
-.FN
-.LP
-This macro returns the number of displays in the specified queue.
-.sp
-.FD 0
-Bool XmuDQRemoveDisplay(\fIq\fP, \fIdpy\fP)
-.br
-      XmuDisplayQueue *\fIq\fP;
-.br
-      Display *\fIdpy\fP;
-.FN
-.IP \fIq\fP 1i
-specifies the queue
-.IP \fIdpy\fP 1i
-specifies the display to remove
-.LP
-This function removes the specified display from the specified queue.
-No callbacks are performed.
-If the display is not found in the queue,
-.PN False
-is returned, otherwise
-.PN True
-is returned.
-.sp
-.FD 0
-Bool XmuDQDestroy(\fIq\fP, \fIdocallbacks\fP)
-.br
-      XmuDisplayQueue *\fIq\fP;
-.br
-      Bool \fIdocallbacks\fP;
-.FN
-.IP \fIq\fP 1i
-specifies the queue to destroy
-.IP \fIdocallbacks\fP 1i
-specifies whether close functions should be called
-.LP
-This function releases all memory associated with the specified queue.
-If docallbacks is
-.PN True ,
-then the queue's closefunc callback (if non-NULL) is first called
-for each display in the queue, even though
-.PN XCloseDisplay
-is not called on the display.
-.LP
-.NH 1
-Toolkit Convenience Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/Initer.h >.
-.sp
-.FD 0
-void XmuAddInitializer(\fIfunc\fP, \fIdata\fP) 
-.br
-      void (*\fIfunc\fP)();
-.br
-      caddr_t \fIdata\fP;
-.FN
-.IP \fIfunc\fP 1i
-specifies the procedure to register
-.IP \fIdata\fP 1i
-specifies private data for the procedure
-.LP
-This function registers a procedure, to be invoked the first time
-.PN XmuCallInitializers
-is called on a given application context.  The procedure
-is called with the application context and the specified data:
-.LP
-	(*func)(app_con, data)
-.sp
-.FD 0
-void XmuCallInitializers(\fIapp_con\fP)
-.br
-      XtAppContext \fIapp_con\fP;
-.FN
-.IP \fIapp_con\fP 1i
-specifies the application context to initialize
-.LP
-This function calls each of the procedures that have been registered with
-.PN XmuAddInitializer ,
-if this is the first time the application context has been passed to
-.PN XmuCallInitializers .
-Otherwise, this function does nothing.
-.LP
-.NH 1
-Standard Colormap Functions
-.LP
-To use the functions defined in this section, you should include the header
-file
-.Pn < X11/Xmu/StdCmap.h >.
-.sp
-.FD 0
-Status XmuAllStandardColormaps(\fIdpy\fP)
-.br
-      Display *\fIdpy\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.LP
-To create all of the appropriate standard colormaps for every visual of
-every screen on a given display, use
-.PN XmuAllStandardColormaps .
-.LP
-This function defines and retains as permanent resources all standard
-colormaps which are meaningful for the visuals of each screen of the
-display.  It returns 0 on failure, non-zero on success.  If the property of
-any standard colormap is already defined, this function will redefine it.
-.LP
-This function is intended to be used by window managers or a special client
-at the start of a session.
-.LP
-The standard colormaps of a screen are defined by properties associated with
-the screen's root window.  The property names of standard colormaps are
-predefined, and each property name except RGB_DEFAULT_MAP may describe at
-most one colormap.
-.LP  
-The standard colormaps are: RGB_BEST_MAP, RGB_RED_MAP, RGB_GREEN_MAP,
-RGB_BLUE_MAP, RGB_DEFAULT_MAP, and RGB_GRAY_MAP.  Therefore a screen may
-have at most 6 standard colormap properties defined.
-.LP
-A standard colormap is associated with a particular visual of the screen.  A
-screen may have multiple visuals defined, including visuals of the same
-class at different depths.  Note that a visual id might be repeated for more
-than one depth, so the visual id and the depth of a visual identify the
-visual.  The characteristics of the visual will determine which standard
-colormaps are meaningful under that visual, and will determine how the
-standard colormap is defined.  Because a standard colormap is associated
-with a specific visual, there must be a method of determining which visuals
-take precedence in defining standard colormaps.
-.LP
-The method used here is: for the visual of greatest depth, define all
-standard colormaps meaningful to that visual class, according to this order
-of (descending) precedence:
-.PN DirectColor ;
-.PN PseudoColor ;
-.PN TrueColor
-and
-.PN GrayScale ;
-and finally
-.PN StaticColor
-and
-.PN StaticGray .
-.LP
-This function allows success, on a per screen basis.  For example, if a map
-on screen 1 fails, the maps on screen 0, created earlier, will remain.
-However, none on screen 1 will remain.  If a map on screen 0 fails, none
-will remain.
-.LP
-See
-.PN XmuVisualStandardColormaps
-for which standard colormaps are meaningful under these classes of visuals.
-.sp
-.FD 0
-Status XmuVisualStandardColormaps(\fIdpy\fP, \fIscreen\fP, \fIvisualid\fP, \fIdepth\fP, \fIreplace\fP, \fIretain\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      int \fIscreen\fP;
-.br
-      VisualID \fIvisualid\fP;
-.br
-      unsigned int \fIdepth\fP;
-.br
-      Bool \fIreplace\fP;
-.br
-      Bool \fIretain\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIscreen\fP 1i
-specifies the screen of the display
-.IP \fIvisualid\fP 1i
-specifies the visual type
-.IP \fIdepth\fP 1i
-specifies the visual depth
-.IP \fIreplace\fP 1i
-specifies whether or not to replace
-.IP \fIretain\fP 1i
-specifies whether or not to retain
-.LP
-To create all of the appropriate standard colormaps for a given visual on a
-given screen, use
-.PN XmuVisualStandardColormaps .
-.LP
-This function defines all appropriate standard colormap properties for the
-given visual.  If replace is
-.PN True ,
-any previous definition will be removed.
-If retain is
-.PN True ,
-new properties will be retained for the duration of the
-server session.  This function returns 0 on failure, non-zero on success.
-On failure, no new properties will be defined, but old ones may have been
-removed if replace was True.
-.LP
-Not all standard colormaps are meaningful to all visual classes.  This
-routine will check and define the following properties for the following
-classes, provided that the size of the colormap is not too small.  For
-.PN DirectColor
-and
-.PN PseudoColor :
-RGB_DEFAULT_MAP, RGB_BEST_MAP, RGB_RED_MAP,
-RGB_GREEN_MAP, RGB_BLUE_MAP, and RGB_GRAY_MAP.  For
-.PN TrueColor
-and
-.PN StaticColor :
-RGB_BEST_MAP.  For
-.PN GrayScale
-and
-.PN StaticGray :
-RGB_GRAY_MAP.
-.sp
-.FD 0
-Status XmuLookupStandardColormap(\fIdpy\fP, \fIscreen\fP, \fIvisualid\fP, \fIdepth\fP, \fIproperty\fP, \fIreplace\fP, \fIretain\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      int \fIscreen\fP;
-.br
-      VisualID \fIvisualid\fP;
-.br
-      unsigned int \fIdepth\fP;
-.br
-      Atom \fIproperty\fP;
-.br
-      Bool \fIreplace\fP;
-.br
-      Bool \fIretain\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIscreen\fP 1i
-specifies the screen of the display
-.IP \fIvisualid\fP 1i
-specifies the visual type
-.IP \fIdepth\fP 1i
-specifies the visual depth
-.IP \fIproperty\fP 1i
-specifies the standard colormap property
-.IP \fIreplace\fP 1i
-specifies whether or not to replace
-.IP \fIretain\fP 1i
-specifies whether or not to retain
-.LP
-To create a standard colormap if one does not currently exist, or replace
-the currently existing standard colormap, use
-.PN XmuLookupStandardColormap .
-.LP
-Given a screen, a visual, and a property, this function will determine the
-best allocation for the property under the specified visual, and determine
-the whether to create a new colormap or to use the default colormap of the
-screen.
-.LP
-If replace is True, any previous definition of the property will be
-replaced.  If retain is True, the property and the colormap will be made
-permanent for the duration of the server session.  However, pre-existing
-property definitions which are not replaced cannot be made permanent by a
-call to this function; a request to retain resources pertains to newly
-created resources.
-.LP
-This function returns 0 on failure, non-zero on success.  A request to
-create a standard colormap upon a visual which cannot support such a map is
-considered a failure.  An example of this would be requesting any standard
-colormap property on a monochrome visual, or, requesting an RGB_BEST_MAP on
-a display whose colormap size is 16.
-.sp
-.FD 0
-Status XmuGetColormapAllocation(\fIvinfo\fP, \fIproperty\fP, \fIred_max\fP, \fIgreen_max\fP, \fIblue_max\fP)
-.br
-      XVisualInfo *\fIvinfo\fP;
-.br
-      Atom \fIproperty\fP;
-.br
-      unsigned long *\fIred_max\fP, *\fIgreen_max\fP, *\fIblue_max\fP;
-.FN
-.IP \fIvinfo\fP 1i
-specifies visual information for a chosen visual
-.IP \fIproperty\fP 1i
-specifies one of the standard colormap property names
-.IP \fIred_max\fP 1i
-returns maximum red value 
-.IP \fIgreen_max\fP 1i
-returns maximum green value
-.IP \fIblue_max\fP 1i
-returns maximum blue value
-.LP
-To determine the best allocation of reds, greens, and blues in a standard
-colormap, use
-.PN XmuGetColormapAllocation .
-.LP
-.PN XmuGetColormapAllocation
-returns 0 on failure, non-zero on success.  It is
-assumed that the visual is appropriate for the colormap property.
-.sp
-.FD 0
-XStandardColormap *XmuStandardColormap(\fIdpy\fP, \fIscreen\fP, \fIvisualid\fP, \fIdepth\fP, \fIproperty\fP,
-                                       \fIcmap\fP, \fIred_max\fP, \fIgreen_max\fP, \fIblue_max\fP)
-.br
-      Display \fIdpy\fP;
-.br
-      int \fIscreen\fP;
-.br
-      VisualID \fIvisualid\fP;
-.br
-      unsigned int \fIdepth\fP;
-.br
-      Atom \fIproperty\fP;
-.br
-      Colormap \fIcmap\fP;
-.br
-      unsigned long \fIred_max\fP, \fIgreen_max\fP, \fIblue_max\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIscreen\fP 1i
-specifies the screen of the display
-.IP \fIvisualid\fP 1i
-specifies the visual type
-.IP \fIdepth\fP 1i
-specifies the visual depth
-.IP \fIproperty\fP 1i
-specifies the standard colormap property
-.IP \fIcmap\fP 1i
-specifies the colormap ID, or None
-.IP \fIred_max\fP 1i
-specifies the red allocation
-.IP \fIgreen_max\fP 1i
-specifies the green allocation
-.IP \fIblue_max\fP 1i
-specifies the blue allocation
-.LP
-To create any one standard colormap, use
-.PN XmuStandardColormap .
-.LP
-This function creates a standard colormap for the given screen, visualid,
-and visual depth, with the given red, green, and blue maximum values, with
-the given standard property name.  Upon success, it returns a pointer to an
-.PN XStandardColormap
-structure which describes the newly created colormap.
-Upon failure, it returns NULL.
-If cmap is the default colormap of the screen, the standard colormap
-will be defined on the default colormap; otherwise a new colormap is created.
-.LP 
-Resources created by this function are not made permanent; that is the
-caller's responsibility.
-.sp
-.FD 0
-Status XmuCreateColormap(\fIdpy\fP, \fIcolormap\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      XStandardColormap *\fIcolormap\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection under which the map is created
-.IP \fIcolormap\fP 1i
-specifies the map to be created
-.LP
-To create any one colormap which is described by an
-.PN XStandardColormap
-structure, use
-.PN XmuCreateColormap .
-.LP
-This function returns 0 on failure, and non-zero on success.  The base_pixel
-of the colormap is set on success.  Resources created by this function are
-not made permanent.  No argument error checking is provided; use at your own
-risk.
-.LP
-All colormaps are created with read-only allocations, with the exception of
-read-only allocations of colors which fail
-to return the expected pixel value, and these are individually defined as
-read/write allocations.  This is done so that all the cells defined in the
-colormap are contiguous, for use in image processing.  This typically
-happens with White and Black in the default map.
-.LP 
-Colormaps of static visuals are considered to be successfully created if the
-map of the static visual matches the definition given in the standard
-colormap structure.
-.sp
-.FD 0
-void XmuDeleteStandardColormap(\fIdpy\fP, \fIscreen\fP, \fIproperty\fP)
-.br
-      Display *\fIdpy\fP;
-.br
-      int \fIscreen\fP;
-.br
-      Atom \fIproperty\fP;
-.FN
-.IP \fIdpy\fP 1i
-specifies the connection to the X server
-.IP \fIscreen\fP 1i
-specifies the screen of the display
-.IP \fIproperty\fP 1i
-specifies the standard colormap property
-.LP
-To remove any standard colormap property, use
-.PN XmuDeleteStandardColormap .
-This function will remove the specified property from the specified screen,
-releasing any resources used by the colormap(s) of the property, if
-possible.
-.LP
-.NH 1
-Widget Description Functions
-.LP
-The functions defined in this section are for building a description of 
-the structure of and resources associated with a hierarchy of widget classes.
-This package is typically used by applications that wish to manipulate the 
-widget set itself.
-.LP
-The definitions needed to use these interfaces are in the header file
-.Pn < X11/Xmu/WidgetNode.h >.
-The following function must be called before any of the others described
-below:
-.sp
-.FD 0
-void XmuWnInitializeNodes(\fInode_array\fP, \fInum_nodes\fP)
-.br
-      XmuWidgetNode *\fInode_array\fP;
-.br
-      int \fInum_nodes\fP;
-.FN
-.IP \fInode_array\fP 1i
-specifies a list of widget classes, in alphabetical order
-.IP \fInum_nodes\fP 1i
-specfies the number of widget classes in the node array
-.LP
-To determine the resources provided by a widget class or classes, use
-.sp
-.FD 0
-void XmuWnFetchResources(\fInode\fP, \fItoplevel\fP, \fItop_node\fP)
-.br
-      XmuWidgetNode *\fInode\fP;
-.br
-      Widget \fItoplevel\fP;
-.br
-      XmuWidgetNode *\fItop_node\fP;
-.FN
-.IP \fInode\fP 1i
-specifies the widget class for which resources should be obtained.
-.IP \fItoplevel\fP 1i
-specifies the widget that should be used for creating an instance of \fInode\fP
-from which resources are extracted.  This is typically the value returned
-by \fBXtAppInitialize\fP.
-.IP \fItop_node\fP 1i
-specifies the ancestor of \fInode\fP that should be treated as the root
-of the widget inheritance tree (used in determining which ancestor contributed 
-which resources).
-.LP
-Each widget class inherits the resources of its parent.  To count the number
-of resources contributed by a particular widget class, use:
-.sp
-.FD 0
-int XmuWnCountOwnedResources(\fInode\fP, \fIowner_node\fP, \fIconstraints\fP)
-.br
-      XmuWidgetNode *\fInode\fP;
-.br
-      XmuWidgetNode *\fIowner_node\fP;
-.br
-      Bool \fIconstraints\fP;
-.FN
-.IP \fInode\fP 1i
-specifies the widget class whose resources are being examined.
-.IP \fIowner_node\fP 1i
-specifies the widget class of the ancestor of \fInode\fP whose contributions
-are being counted.
-.IP \fIconstraints\fP 1i
-specifies whether or not to count constraint resources or normal resources.
-.LP
-This routine returns the number of resources contributed (or ``owned'') by
-the specified widget class.
-.sp
-.FD 0
-XmuWidgetNode *XmuWnNameToNode(\fInode_list\fP, \fInum_nodes\fP, \fIname\fP)
-.br
-      XmuWidgetNode *\fInode_list\fP;
-      int \fInum_nodes\fP;
-      char *\fIname\fP;
-.FN
-.IP \fInode_list\fP 1i
-specifies a list of widget nodes
-.IP \fInum_nodes\fP 1i
-specifies the number of nodes in the list
-.IP \fIname\fP 1i
-specifies the name of the widget class in the node list to search for
-.LP
-This function returns the WidgetNode in the list that matches the given
-widget name or widget class name.  If no match is found, it returns NULL.
-.LP
-.NH 1
-Participation in the Editres Protocol
-.LP
-To participate in the editres protocol, applications which are not based
-on the Athena widget set should include the header file
-.Pn < X11/Xmu/Editres.h >.
-.LP
-To participate in the editres protocol, Xt applications which do not rely
-on the Athena widget set should register the editres protocol handler on 
-each shell widget in the application, specifying an event mask of 0, 
-nonmaskable events, and client data as NULL:
-.LP
-XtAddEventHandler(shell, (EventMask) 0, True, _XEditResCheckMessages, NULL);
diff --git a/doc/Xmu.xml b/doc/Xmu.xml
new file mode 100644
index 0000000..af761d2
--- /dev/null
+++ b/doc/Xmu.xml
@@ -0,0 +1,4208 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
+<!-- lifted from troff+ms+XMan by doclifter -->
+
+<article id='xmu'>
+  <articleinfo>
+    <title>Xmu Library</title>
+    <abstract><para>&ldquo;Don't ask.&rdquo;</para></abstract>
+
+    <legalnotice>
+
+      <para>
+Copyright &copy; 1989 X Consortium
+      </para>
+      <para>
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the &ldquo;Software&rdquo;), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+      </para>
+      <para>
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+      </para>
+      <para>
+THE SOFTWARE IS PROVIDED &ldquo;AS IS&rdquo;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+      </para>
+      <para>
+Except as contained in this notice, the name of the X Consortium shall not be
+used in advertising or otherwise to promote the sale, use or other dealings
+in this Software without prior written authorization from the X Consortium.
+      </para>
+      <para>
+<trademark><emphasis>X Window System</emphasis></trademark>
+is a trademark of The Open Group.
+      </para>
+
+    </legalnotice>
+  </articleinfo>
+
+  <sect1 id='introduction'>
+    <title>Introduction</title>
+
+    <para>
+The Xmu Library is a collection of miscellaneous (some might say random)
+utility functions that have been useful in building various applications
+and widgets.  This library is required by the Athena Widgets.
+    </para>
+
+  </sect1>
+
+  <sect1 id='atom_functions'>
+    <title>Atom Functions</title>
+
+    <para>
+The use the functions and macros defined in this section, you should include
+the header file
+&lt;<filename class='headerfile'>X11/Xmu/Atoms.h</filename>&gt;.
+    </para>
+
+    <funcsynopsis>
+      <funcprototype>
+	<funcdef><function>XA_ATOM_PAIR</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_CHARACTER_POSITION</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_CLASS</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_CLIENT_WINDOW</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_CLIPBOARD</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_COMPOUND_TEXT</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_DECNET_ADDRESS</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_DELETE</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_FILENAME</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_HOSTNAME</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_IP_ADDRESS</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_LENGTH</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_LIST_LENGTH</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_NAME</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_NET_ADDRESS</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_NULL</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_OWNER_OS</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_SPAN</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_TARGETS</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_TEXT</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_TIMESTAMP</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_USER</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+      <funcprototype>
+	<funcdef><function>XA_UTF8_STRING</function></funcdef>
+	<paramdef><parameter>d</parameter></paramdef>
+      </funcprototype>
+    </funcsynopsis>
+
+    <para>
+These macros take a display as argument and return an
+<type>Atom</type>.
+The name of the
+atom is obtained from the macro name by removing the leading characters
+&ldquo;<code>XA_</code>&rdquo;.  The
+<type>Atom</type>
+value is cached, such that subsequent requests do not cause
+another round-trip to the server.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>AtomPtr <function>XmuMakeAtom</function></funcdef>
+	  <paramdef>char *<parameter>name</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>name</parameter></term>
+	  <listitem><para>
+specifies the atom name
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function creates and initializes an opaque object, an
+<type>AtomPtr</type>,
+for an
+<type>Atom</type>
+with the
+given name.
+<function>XmuInternAtom</function>
+can be used to cache the Atom value for one or more displays.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>char *<function>XmuNameOfAtom</function></funcdef>
+	  <paramdef>AtomPtr <parameter>atom_ptr</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>atom_ptr</parameter></term>
+	  <listitem><para>
+specifies the AtomPtr
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+The function returns the name of an AtomPtr.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Atom <function>XmuInternAtom</function></funcdef>
+	  <paramdef>Display *<parameter>d</parameter></paramdef>
+	  <paramdef>AtomPtr <parameter>atom_ptr</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>d</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>atom_ptr</parameter></term>
+	  <listitem><para>
+specifies the AtomPtr
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function returns the
+<type>Atom</type>
+for an
+<type>AtomPtr</type>.
+The
+<type>Atom</type>
+is cached,
+such that subsequent requests do not cause another round-trip to the server.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>char *<function>XmuGetAtomName</function></funcdef>
+	  <paramdef>Display *<parameter>d</parameter></paramdef>
+	  <paramdef>Atom <parameter>atom</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>d</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	   </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>atom</parameter></term>
+	  <listitem><para>
+specifies the atom whose name is desired
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function returns the name of an
+<type>Atom</type>.
+The result is cached, such that subsequent
+requests do not cause another round-trip to the server.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuInternStrings</function></funcdef>
+	  <paramdef>Display *<parameter>d</parameter></paramdef>
+	  <paramdef>String *<parameter>names</parameter></paramdef>
+	  <paramdef>Cardinal <parameter>count</parameter></paramdef>
+	  <paramdef>Atom *<parameter>atoms</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>d</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	   </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>names</parameter></term>
+	  <listitem><para>
+specifies the strings to intern
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>count</parameter></term>
+	  <listitem><para>
+specifies the number of strings
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>atoms</parameter></term>
+	  <listitem><para>
+returns the list of Atom values
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a list of atom names into
+<type>Atom</type>
+values.  The results are cached, such
+that subsequent requests do not cause further round-trips to the server.
+The caller is responsible for preallocating the array pointed at by atoms.
+    </para>
+
+  </sect1>
+
+  <sect1 id='error_handler_functions'>
+    <title>Error Handler Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/Error.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuPrintDefaultErrorMessage</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>XErrorEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>FILE *<parameter>fp</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the error
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fp</parameter></term>
+	  <listitem><para>
+	      specifies where to print the error message
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function prints an error message, equivalent to Xlib's default error
+message for protocol errors.  It returns a non-zero value
+if the caller should consider exiting, otherwise it returns 0.
+This function can be used when you need to
+write your own error handler, but need to print out an error from within
+that handler.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuSimpleErrorHandler</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>XErrorEvent *<parameter>errorp</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>errorp</parameter></term>
+	  <listitem><para>
+specifies the error
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function ignores errors for
+<errorname>BadWindow</errorname>
+errors for
+<function>XQueryTree</function>
+and
+<function>XGetWindowAttributes</function>,
+and ignores
+<errorname>BadDrawable</errorname>
+errors for
+<function>XGetGeometry</function>;
+it returns 0 in those cases.  Otherwise, it prints the default error message,
+and returns a non-zero value if the caller should consider exiting,
+and 0 if the caller should not exit.
+    </para>
+  </sect1>
+
+  <sect1 id='system_utility_functions'>
+    <title>System Utility Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/SysUtil.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuGetHostname</function></funcdef>
+	  <paramdef>char *<parameter>buf</parameter></paramdef>
+	  <paramdef>int <parameter>maxlen</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+     <variablelist>
+	<varlistentry>
+	  <term><parameter>buf</parameter></term>
+	  <listitem><para>
+returns the host name
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>maxlen</parameter></term>
+	  <listitem><para>
+specifies the length of <parameter>buf</parameter>
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function stores the null terminated name of the local host in
+<parameter>buf</parameter>, and
+returns length of the name.  This function hides operating system differences,
+such as whether to call <function>gethostname</function> or
+<function>uname</function>.
+    </para>
+
+  </sect1>
+
+  <sect1 id='window_utility_functions'>
+    <title>Window Utility Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/WinUtil.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Screen *<function>XmuScreenOfWindow</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Window <parameter>w</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>w</parameter></term>
+	  <listitem><para>
+specifies the window
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function returns the
+<type>Screen</type>
+on which the specified window was created.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Window <function>XmuClientWindow</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Window <parameter>win</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>win</parameter></term>
+	  <listitem><para>
+specifies the window
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function finds a window, at or below the specified window, which has a
+<property>WM_STATE</property> property.  If such a window is found, it is
+returned, otherwise the
+argument window is returned.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Bool <function>XmuUpdateMapHints</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Window <parameter>w</parameter></paramdef>
+	  <paramdef>XSizeHints *<parameter>hints</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>win</parameter></term>
+	  <listitem><para>
+specifies the window
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>hints</parameter></term>
+	  <listitem><para>
+specifies the new hints, or <symbol>NULL</symbol>
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function clears the
+<symbol>PPosition</symbol>
+and
+<symbol>PSize</symbol>
+flags and sets the
+<symbol>USPosition</symbol>
+and
+<symbol>USSize</symbol>
+flags in the hints structure, and then stores the hints for the
+window using
+<function>XSetWMNormalHints</function>
+and returns
+<symbol>True</symbol>.
+If <symbol>NULL</symbol> is passed for the
+hints structure, then the current hints are read back from the window using
+<function>XGetWMNormalHints</function>
+and are used instead, and
+<symbol>True</symbol>
+is returned; otherwise
+<symbol>False</symbol>
+is returned.
+    </para>
+
+  </sect1>
+
+  <sect1 id='cursor_utility_functions'>
+    <title>Cursor Utility Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/CurUtil.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuCursorNameToIndex</function></funcdef>
+	  <paramdef>char *<parameter>name</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>name</parameter></term>
+	  <listitem><para>
+specifies the name of the cursor
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function takes the name of a standard cursor and returns its index
+in the standard cursor font.  The cursor names are formed by removing the
+&ldquo;<code>XC_</code>&rdquo; prefix from the cursor defines listed in
+Appendix B of the Xlib
+manual.
+    </para>
+
+  </sect1>
+
+  <sect1 id='graphics_functions'>
+    <title>Graphics Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/Drawing.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuDrawRoundedRectangle</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Drawable <parameter>draw</parameter></paramdef>
+	  <paramdef>GC <parameter>gc</parameter></paramdef>
+	  <paramdef>int <parameter>x</parameter></paramdef>
+	  <paramdef>int <parameter>y</parameter></paramdef>
+	  <paramdef>int <parameter>w</parameter></paramdef>
+	  <paramdef>int <parameter>h</parameter></paramdef>
+	  <paramdef>int <parameter>ew</parameter></paramdef>
+	  <paramdef>int <parameter>eh</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>draw</parameter></term>
+	  <listitem><para>
+specifies the drawable
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>gc</parameter></term>
+	  <listitem><para>
+specifies the GC
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>x</parameter></term>
+	  <listitem><para>
+specifies the upper left x coordinate
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>y</parameter></term>
+	  <listitem><para>
+specifies the upper left y coordinate
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>w</parameter></term>
+	  <listitem><para>
+specifies the rectangle width
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>h</parameter></term>
+	  <listitem><para>
+specifies the rectangle height
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>ew</parameter></term>
+	  <listitem><para>
+specifies the corner width
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>eh</parameter></term>
+	  <listitem><para>
+specifies the corner height
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function draws a rounded rectangle, where x, y, w, h are the dimensions
+of the overall rectangle, and ew and eh are the sizes of a bounding box that
+the corners are drawn inside of; ew should be no more than half of w, and eh
+should be no more than half of h.  The current GC line attributes control
+all attributes of the line.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuFillRoundedRectangle</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Drawable <parameter>draw</parameter></paramdef>
+	  <paramdef>GC <parameter>gc</parameter></paramdef>
+	  <paramdef>int <parameter>x</parameter></paramdef>
+	  <paramdef>int <parameter>y</parameter></paramdef>
+	  <paramdef>int <parameter>w</parameter></paramdef>
+	  <paramdef>int <parameter>h</parameter></paramdef>
+	  <paramdef>int <parameter>ew</parameter></paramdef>
+	  <paramdef>int <parameter>eh</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>draw</parameter></term>
+	  <listitem><para>
+specifies the drawable
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>gc</parameter></term>
+	  <listitem><para>
+specifies the GC
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>x</parameter></term>
+	  <listitem><para>
+specifies the upper left x coordinate
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>y</parameter></term>
+	  <listitem><para>
+specifies the upper left y coordinate
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>w</parameter></term>
+	  <listitem><para>
+specifies the rectangle width
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>h</parameter></term>
+	  <listitem><para>
+specifies the rectangle height
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>ew</parameter></term>
+	  <listitem><para>
+specifies the corner width
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>eh</parameter></term>
+	  <listitem><para>
+specifies the corner height
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function draws a filled rounded rectangle, where x, y, w, h are the
+dimensions of the overall rectangle, and ew and eh are the sizes of a
+bounding box that the corners are drawn inside of; ew should be no more than
+half of w, and eh should be no more than half of h.  The current GC fill
+settings control all attributes of the fill contents.
+      </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef><function>XmuDrawLogo</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Drawable <parameter>drawable</parameter></paramdef>
+	  <paramdef>GC <parameter>gcFore</parameter></paramdef>
+	  <paramdef>GC <parameter>gcBack</parameter></paramdef>
+	  <paramdef>int <parameter>x</parameter></paramdef>
+	  <paramdef>int <parameter>y</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>width</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>height</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>drawable</parameter></term>
+	  <listitem><para>
+specifies the drawable
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>gcFore</parameter></term>
+	  <listitem><para>
+specifies the foreground GC
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>gcBack</parameter></term>
+	  <listitem><para>
+specifies the background GC
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>x</parameter></term>
+	  <listitem><para>
+specifies the upper left x coordinate
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>y</parameter></term>
+	  <listitem><para>
+specifies the upper left y coordinate
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>width</parameter></term>
+	  <listitem><para>
+specifies the logo width
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>height</parameter></term>
+	  <listitem><para>
+specifies the logo height
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function draws the &ldquo;official&rdquo; X Window System logo.  The bounding box
+of the logo in the drawable is given by x, y, width, and height.  The logo
+itself is filled using gcFore, and the rest of the rectangle is filled using
+gcBack.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Pixmap <function>XmuCreateStippledPixmap</function></funcdef>
+	  <paramdef>Screen *<parameter>screen</parameter></paramdef>
+	  <paramdef>Pixel <parameter>fore</parameter></paramdef>
+	  <paramdef>Pixel <parameter>back</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>depth</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen the pixmap is created on
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fore</parameter></term>
+	  <listitem><para>
+specifies the foreground pixel value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>back</parameter></term>
+	  <listitem><para>
+specifies the background pixel value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>depth</parameter></term>
+	  <listitem><para>
+specifies the depth of the pixmap
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function creates a two pixel by one pixel stippled pixmap of specified
+depth on the specified screen.  The pixmap is cached so that multiple
+requests share the same pixmap.  The pixmap should be freed with
+<function>XmuReleaseStippledPixmap</function>
+to maintain correct reference counts.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuReleaseStippledPixmap</function></funcdef>
+	  <paramdef>Screen *<parameter>screen</parameter></paramdef>
+	  <paramdef>Pixmap <parameter>pixmap</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen the pixmap was created on
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>pixmap</parameter></term>
+	  <listitem><para>
+specifies the pixmap to free
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function frees a pixmap created with
+<function>XmuCreateStippledPixmap</function>.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuReadBitmapData</function></funcdef>
+	  <paramdef>FILE *<parameter>fstream</parameter></paramdef>
+	  <paramdef>unsigned int *<parameter>width</parameter></paramdef>
+	  <paramdef>unsigned int *<parameter>height</parameter></paramdef>
+	  <paramdef>unsigned char **<parameter>datap</parameter></paramdef>
+	  <paramdef>int *<parameter>x_hot</parameter></paramdef>
+	  <paramdef>int *<parameter>y_hot</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>fstream</parameter></term>
+	  <listitem><para>
+specifies the stream to read from
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>width</parameter></term>
+	  <listitem><para>
+returns the width of the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>height</parameter></term>
+	  <listitem><para>
+returns the height of the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>datap</parameter></term>
+	  <listitem><para>
+returns the parsed bitmap data
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>x_hot</parameter></term>
+	  <listitem><para>
+returns the x coordinate of the hotspot
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>y_hot</parameter></term>
+	  <listitem><para>
+returns the y coordinate of the hotspot
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function reads a standard bitmap file description from the specified
+stream, and returns the parsed data in a format suitable for passing to
+<function>XCreateBitmapFromData</function>.
+The return value of the function has the same
+interpretation as the return value for
+<function>XReadBitmapFile</function>.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuReadBitmapDataFromFile</function></funcdef>
+	  <paramdef>char *<parameter>filename</parameter></paramdef>
+	  <paramdef>unsigned int *<parameter>width</parameter></paramdef>
+	  <paramdef>unsigned int *<parameter>height</parameter></paramdef>
+	  <paramdef>unsigned char **<parameter>datap</parameter></paramdef>
+	  <paramdef>int *<parameter>x_hot</parameter></paramdef>
+	  <paramdef>int *<parameter>y_hot</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>fstream</parameter></term>
+	  <listitem><para>
+specifies the file to read from
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>width</parameter></term>
+	  <listitem><para>
+returns the width of the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>height</parameter></term>
+	  <listitem><para>
+returns the height of the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>datap</parameter></term>
+	  <listitem><para>
+returns the parsed bitmap data
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>x_hot</parameter></term>
+	  <listitem><para>
+returns the x coordinate of the hotspot
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>y_hot</parameter></term>
+	  <listitem><para>
+returns the y coordinate of the hotspot
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function reads a standard bitmap file description from the specified
+file, and returns the parsed data in a format suitable for passing to
+<function>XCreateBitmapFromData</function>.
+The return value of the function has the same
+interpretation as the return value for
+<function>XReadBitmapFile</function>.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Pixmap <function>XmuLocateBitmapFile</function></funcdef>
+	  <paramdef>Screen *<parameter>screen</parameter></paramdef>
+	  <paramdef>char *<parameter>name</parameter></paramdef>
+	  <paramdef>char *<parameter>srcname</parameter></paramdef>
+	  <paramdef>int <parameter>srcnamelen</parameter></paramdef>
+	  <paramdef>int *<parameter>widthp</parameter></paramdef>
+	  <paramdef>int *<parameter>heightp</parameter></paramdef>
+	  <paramdef>int *<parameter>xhotp</parameter></paramdef>
+	  <paramdef>int *<parameter>yhotp</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen the pixmap is created on
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>name</parameter></term>
+	  <listitem><para>
+specifies the file to read from
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>srcname</parameter></term>
+	  <listitem><para>
+returns the full filename of the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>srcnamelen</parameter></term>
+	  <listitem><para>
+specifies the length of the srcname buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>width</parameter></term>
+	  <listitem><para>
+returns the width of the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>height</parameter></term>
+	  <listitem><para>
+returns the height of the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>xhotp</parameter></term>
+	  <listitem><para>
+returns the x coordinate of the hotspot
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>yhotp</parameter></term>
+	  <listitem><para>
+returns the y coordinate of the hotspot
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function reads a file in standard bitmap file format, using
+<function>XReadBitmapFile</function>,
+and returns the created bitmap.  The filename may be
+absolute, or relative to the global resource named bitmapFilePath with class
+BitmapFilePath.  If the resource is not defined, the default value is the
+build symbol BITMAPDIR, which is typically "/usr/include/X11/bitmaps".  If
+srcnamelen is greater than zero and srcname is not <symbol>NULL</symbol>, the null terminated
+filename will be copied into srcname.  The size and hotspot of the bitmap are
+also returned.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Pixmap <function>XmuCreatePixmapFromBitmap</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Drawable <parameter>d</parameter></paramdef>
+	  <paramdef>Pixmap <parameter>bitmap</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>width</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>height</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>depth</parameter></paramdef>
+	  <paramdef>unsigned long <parameter>fore</parameter></paramdef>
+	  <paramdef>unsigned long <parameter>back</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen the pixmap is created on
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>bitmap</parameter></term>
+	  <listitem><para>
+specifies the bitmap source
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>width</parameter></term>
+	  <listitem><para>
+specifies the width of the pixmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>height</parameter></term>
+	  <listitem><para>
+specifies the height of the pixmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>depth</parameter></term>
+	  <listitem><para>
+specifies the depth of the pixmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fore</parameter></term>
+	  <listitem><para>
+specifies the foreground pixel value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>back</parameter></term>
+	  <listitem><para>
+specifies the background pixel value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function creates a pixmap of the specified width, height, and depth, on
+the same screen as the specified drawable, and then performs an
+<function>XCopyPlane</function>
+from the specified bitmap to the pixmap,
+using the specified foreground and background pixel values.
+The created pixmap is returned.
+    </para>
+
+  </sect1>
+
+  <sect1 id='selection_functions'>
+    <title>Selection Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/StdSel.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Boolean <function>XmuConvertStandardSelection</function></funcdef>
+	  <paramdef>Widget <parameter>w</parameter></paramdef>
+	  <paramdef>Time <parameter>time</parameter></paramdef>
+	  <paramdef>Atom *<parameter>selection</parameter></paramdef>
+	  <paramdef>Atom *<parameter>target</parameter></paramdef>
+	  <paramdef>Atom *<parameter>type</parameter></paramdef>
+	  <paramdef>caddr_t *<parameter>value</parameter></paramdef>
+	  <paramdef>unsigned long *<parameter>length</parameter></paramdef>
+	  <paramdef>int *<parameter>format</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>w</parameter></term>
+	  <listitem><para>
+specifies the widget which currently owns the selection
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>time</parameter></term>
+	  <listitem><para>
+specifies the time at which the selection was established
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>selection</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>target</parameter></term>
+	  <listitem><para>
+specifies the target type of the selection
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>type</parameter></term>
+	  <listitem><para>
+returns the property type of the converted value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>value</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>length</parameter></term>
+	  <listitem><para>
+returns the number of elements in the converted value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>format</parameter></term>
+	  <listitem><para>
+returns the size in bits of the elements</para>
+	  </listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts the following standard selections: CLASS,
+CLIENT_WINDOW, DECNET_ADDRESS, HOSTNAME, IP_ADDRESS, NAME, OWNER_OS,
+TARGETS, TIMESTAMP, and USER.  It returns
+<symbol>True</symbol>
+if the conversion was successful, else it returns
+<symbol>False</symbol>.
+    </para>
+  </sect1>
+
+  <sect1 id='type_converter_functions'>
+    <title>Type Converter Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/Converters.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtFunctionToCallback</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+the function to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+the place to store the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a callback procedure to a callback list containing
+that procedure, with <symbol>NULL</symbol> closure data.  To use this converter, include the
+following in your widget's ClassInitialize procedure:
+
+      <programlisting>
+XtAddConverter(XtRCallProc, XtRCallback, XmuCvtFunctionToCallback, NULL, 0);
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToBackingStore</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument must be a pointer to a Cardinal containing the value 0
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to a backing-store integer as defined in
+&lt;<filename class='headerfile'>X11/X.h</filename>&gt;.
+The string "notUseful" converts to
+<symbol>NotUseful</symbol>,
+"whenMapped" converts to
+<symbol>WhenMapped</symbol>,
+and "always" converts to
+<symbol>Always</symbol>.
+The string "default" converts to the value
+<symbol>Always</symbol>+
+<symbol>WhenMapped</symbol>+
+<symbol>NotUseful</symbol>.
+The case of the string does not matter.
+To use this converter, include the following
+in your widget's ClassInitialize procedure:
+
+      <programlisting>
+XtAddConverter(XtRString, XtRBackingStore, XmuCvtStringToBackingStore, NULL, 0);
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToBitmap</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+the sole argument specifies the Screen on which to create the bitmap
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+must be the value 1
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function creates a bitmap (a Pixmap of depth one) suitable for window
+manager icons.  The string argument is the name of a file in standard bitmap
+file format.  For the possible filename specifications, see
+<function>XmuLocateBitmapFile</function>.
+To use this converter, include the following in your widget's
+ClassInitialize procedure:
+
+      <programlisting>
+static XtConvertArgRec screenConvertArg[] = {
+  {XtBaseOffset, (XtPointer)XtOffset(Widget, core.screen), sizeof(Screen *)}
+};
+
+XtAddConverter(XtRString, XtRBitmap, XmuCvtStringToBitmap,
+		 screenConvertArg, XtNumber(screenConvertArg));
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Boolean <function>XmuCvtStringToColorCursor</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	  <paramdef>XtPointer *<parameter>data</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the display to use for conversion warnings
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+specifies the required conversion arguments
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+specifies the number of required conversion arguments, which is 4
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>data</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to a
+<type>Cursor</type>
+with the foreground and background pixels specified by the conversion
+arguments.  The string can either be a
+standard cursor name formed by removing the <code>&ldquo;XC_&rdquo;</code>
+prefix from any of the
+cursor defines listed in Appendix B of the Xlib Manual, a font name and
+glyph index in decimal of the form "FONT fontname index [[font] index]",
+or a bitmap filename acceptable to
+<function>XmuLocateBitmapFile</function>.
+To use this converter, include
+the following in the widget ClassInitialize procedure:
+
+      <programlisting>
+static XtConvertArgRec colorCursorConvertArgs[] = {
+  {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.screen),
+   sizeof(Screen *)},
+  {XtResourceString, (XtPointer) XtNpointerColor, sizeof(Pixel)},
+  {XtResourceString, (XtPointer) XtNpointerColorBackground, sizeof(Pixel)},
+  {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.colormap),
+   sizeof(Colormap)}
+};
+
+
+XtSetTypeConverter(XtRString, XtRColorCursor, XmuCvtStringToColorCursor,
+		 colorCursorConvertArgs, XtNumber(colorCursorConvertArgs),
+                 XtCacheByDisplay, NULL);
+      </programlisting>
+
+The widget must recognize XtNpointerColor and XtNpointerColorBackground as
+resources, or specify other appropriate foreground and background resources.
+The widget's Realize and SetValues methods must cause the converter to be
+invoked with the appropriate arguments when one of the foreground,
+background, or cursor resources has changed, or when the window is created,
+and must assign the cursor to the window of the widget.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToCursor</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+specifies the required conversion argument, the screen
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+specifies the number of required conversion arguments, which is 1
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to a
+<type>Cursor</type>.
+The string can either be a
+standard cursor name formed by removing the <code>&ldquo;XC_&rdquo;</code>
+prefix from any of the
+cursor defines listed in Appendix B of the Xlib Manual, a font name and
+glyph index in decimal of the form "FONT fontname index [[font] index]", or
+a bitmap filename acceptable to
+<function>XmuLocateBitmapFile</function>.
+To use this converter, include
+the following in your widget's ClassInitialize procedure:
+
+      <programlisting>
+static XtConvertArgRec screenConvertArg[] = {
+  {XtBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.screen), sizeof(Screen *)}
+};
+
+XtAddConverter(XtRString, XtRCursor, XmuCvtStringToCursor,
+		 screenConvertArg, XtNumber(screenConvertArg));
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToGravity</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument must be a pointer to a Cardinal containing the value 0
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to an
+<type>XtGravity</type>
+enumeration value.  The string "forget" and a <symbol>NULL</symbol> value convert to
+<symbol>ForgetGravity</symbol>,
+"NorthWestGravity" converts to
+<symbol>NorthWestGravity</symbol>,
+the strings "NorthGravity" and "top" convert to
+<symbol>NorthGravity</symbol>,
+"NorthEastGravity" converts to
+<symbol>NorthEastGravity</symbol>,
+the strings "West" and "left" convert to
+<symbol>WestGravity</symbol>,
+"CenterGravity" converts to
+<symbol>CenterGravity</symbol>,
+"EastGravity" and "right" convert to
+<symbol>EastGravity</symbol>,
+"SouthWestGravity" converts to
+<symbol>SouthWestGravity</symbol>,
+"SouthGravity" and "bottom" convert to
+<symbol>SouthGravity</symbol>,
+"SouthEastGravity" converts to
+<symbol>SouthEastGravity</symbol>,
+"StaticGravity" converts to
+<symbol>StaticGravity</symbol>,
+and "UnmapGravity" converts to
+<symbol>UnmapGravity</symbol>.
+The case of the string does not matter.  To use this converter, include
+the following in your widget's class initialize procedure:
+
+      <programlisting>
+XtAddConverter(XtRString, XtRGravity, XmuCvtStringToGravity, NULL, 0);
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToJustify</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to an
+<type>XtJustify</type>
+enumeration value.  The string "left" converts to
+<symbol>XtJustifyLeft</symbol>,
+"center" converts to
+<symbol>XtJustifyCenter</symbol>,
+and "right" converts to
+<symbol>XtJustifyRight</symbol>.
+The case of the string does not matter.  To use this converter,
+include the following in your widget's ClassInitialize procedure:
+
+      <programlisting>
+XtAddConverter(XtRString, XtRJustify, XmuCvtStringToJustify, NULL, 0);
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToLong</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument must be a pointer to a Cardinal containing 0
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to an integer of type long.  It parses the
+string using
+<function>sscanf</function>
+with a format of "%ld".  To use this converter, include
+the following in your widget's ClassInitialize procedure:
+
+      <programlisting>
+XtAddConverter(XtRString, XtRLong, XmuCvtStringToLong, NULL, 0);
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToOrientation</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to an
+<type>XtOrientation</type>
+enumeration value.  The string "horizontal" converts to
+<symbol>XtorientHorizontal</symbol>
+and "vertical" converts to
+<symbol>XtorientVertical</symbol>.
+The case of the string does not matter.  To use this converter,
+include the following in your widget's ClassInitialize procedure:
+
+      <programlisting>
+XtAddConverter(XtRString, XtROrientation, XmuCvtStringToOrientation, NULL, 0);
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Boolean <function>XmuCvtStringToShapeStyle</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	  <paramdef>XtPointer *<parameter>data</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+the display to use for conversion warnings
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+the value to convert from
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+the place to store the converted value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>data</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to an integer shape style.  The string
+"rectangle" converts to
+<symbol>XmuShapeRectangle</symbol>,
+"oval" converts to
+<symbol>XmuShapeOval</symbol>,
+"ellipse" converts to
+<symbol>XmuShapeEllipse</symbol>,
+and "roundedRectangle" converts to
+<symbol>XmuShapeRoundedRectangle</symbol>.
+The case of the string does not matter.  To use this converter,
+include the following in your widget's ClassInitialize procedure:
+
+      <programlisting>
+XtSetTypeConverter(XtRString, XtRShapeStyle, XmuCvtStringToShapeStyle,
+		     NULL, 0, XtCacheNone, NULL);
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Boolean <function>XmuReshapeWidget</function></funcdef>
+	  <paramdef>Widget <parameter>w</parameter></paramdef>
+	  <paramdef>int <parameter>shape_style</parameter></paramdef>
+	  <paramdef>int <parameter>corner_width</parameter></paramdef>
+	  <paramdef>int <parameter>corner_height</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>w</parameter></term>
+	  <listitem><para>
+specifies the widget to reshape
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>shape_style</parameter></term>
+	  <listitem><para>
+specifies the new shape
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>corner_width</parameter></term>
+	  <listitem><para>
+specifies the width of the rounded rectangle corner
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>corner_height</parameter></term>
+	  <listitem><para>
+specified the height of the rounded rectangle corner
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function reshapes the specified widget, using the Shape extension, to a
+rectangle, oval, ellipse, or rounded rectangle, as specified by shape_style
+(
+<symbol>XmuShapeRectangle</symbol>,
+<symbol>XmuShapeOval</symbol>,
+<symbol>XmuShapeEllipse</symbol>,
+and
+<symbol>XmuShapeRoundedRectangle</symbol>,
+respectively).
+The shape is bounded by the outside edges of the rectangular extents of the
+widget.  If the shape is a rounded rectangle, corner_width and corner_height
+specify the size of the bounding box that the corners are drawn inside of
+(see
+<function>XmuFillRoundedRectangle</function>);
+otherwise, corner_width and corner_height are ignored.
+The origin of the widget within its parent remains unchanged.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCvtStringToWidget</function></funcdef>
+	  <paramdef>XrmValue *<parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this sole argument is the parent Widget
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+  <listitem><para>
+this argument must be 1
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function converts a string to an immediate child widget of the parent
+widget passed as an argument.  Note that this converter only works for
+child widgets that have already been created; there is no lazy evaluation.
+The string is first compared against the
+names of the normal and popup children, and if a match is found the
+corresponding child is returned.  If no match is found, the string is
+compared against the classes of the normal and popup children, and if a
+match is found the corresponding child is returned.  The case of the string
+is significant.  To use this converter, include the following in your
+widget's ClassInitialize procedure:
+
+      <programlisting>
+static XtConvertArgRec parentCvtArg[] = {
+  {XtBaseOffset, (XtPointer)XtOffset(Widget, core.parent), sizeof(Widget)},
+};
+
+XtAddConverter(XtRString, XtRWidget, XmuCvtStringToWidget,
+		 parentCvtArg, XtNumber(parentCvtArg));
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Boolean <function>XmuNewCvtStringToWidget</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>args</parameter></paramdef>
+	  <paramdef>Cardinal *<parameter>num_args</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>fromVal</parameter></paramdef>
+	  <paramdef>XrmValuePtr <parameter>toVal</parameter></paramdef>
+	  <paramdef>XtPointer *<parameter>data</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+the display to use for conversion warnings
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>args</parameter></term>
+	  <listitem><para>
+this sole argument is the parent Widget
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_args</parameter></term>
+	  <listitem><para>
+this argument must be a pointer to a Cardinal containing the value 1
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>fromVal</parameter></term>
+	  <listitem><para>
+specifies the string to convert
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toVal</parameter></term>
+	  <listitem><para>
+returns the converted value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>data</parameter></term>
+	  <listitem><para>
+this argument is ignored
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This converter is identical in functionality to XmuCvtStringToWidget, except
+that it is a new-style converter, allowing the specification of a cache type
+at the time of registration.
+Most widgets will not cache the conversion results, as the application may
+dynamically create and destroy widgets, which would cause cached values to
+become illegal.  To use this converter, include the following in the widget's
+class initialize procedure:
+
+    <programlisting>
+static XtConvertArgRec parentCvtArg[] = {
+  {XtWidgetBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.parent),
+   sizeof(Widget)}
+};
+
+XtSetTypeConverter(XtRString, XtRWidget, XmuNewCvtStringToWidget,
+		   parentCvtArg, XtNumber(parentCvtArg), XtCacheNone, NULL);
+      </programlisting>
+
+    </para>
+
+  </sect1>
+
+  <sect1 id='character_set_functions'>
+    <title>Character Set Functions</title>
+
+<para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/CharSet.h</filename>&gt;.
+</para>
+
+    <warning><para>
+The functions in this section are <emphasis remap='B'>deprecated</emphasis> because they don't work
+in most locales now supported by X11; the function
+<function>XmbLookupString</function>
+provides a better alternative.
+      </para></warning>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCopyISOLatin1Lowered</function></funcdef>
+	  <paramdef>char *<parameter>dst</parameter></paramdef>
+	  <paramdef>char *<parameter>src</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dst</parameter></term>
+	  <listitem><para>
+returns the string copy
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>src</parameter></term>
+	  <listitem><para>
+specifies the string to copy
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function copies a null terminated string from src to dst (including the
+null), changing all Latin-1 uppercase letters to lowercase.  The string is
+assumed to be encoded using ISO 8859-1.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCopyISOLatin1Uppered</function></funcdef>
+	  <paramdef>char *<parameter>dst</parameter></paramdef>
+	  <paramdef>char *<parameter>src</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dst</parameter></term>
+	  <listitem><para>
+returns the string copy
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>src</parameter></term>
+	  <listitem><para>
+specifies the string to copy
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function copies a null terminated string from src to dst (including the
+null), changing all Latin-1 lowercase letters to uppercase.  The string is
+assumed to be encoded using ISO 8859-1.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuCompareISOLatin1</function></funcdef>
+	  <paramdef>char *<parameter>first</parameter></paramdef>
+	  <paramdef>char *<parameter>second</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>first</parameter></term>
+	  <listitem><para>
+	      specifies a string to compare
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>second</parameter></term>
+	  <listitem><para>
+specifies a string to compare
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function compares two null terminated Latin-1 strings, ignoring case
+differences, and returns an integer greater than, equal to, or less than 0,
+according to whether first is lexicographically greater than, equal to, or
+less than second.  The two strings are assumed to be encoded using ISO
+8859-1.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupLatin1</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is identical to
+<function>XLookupString</function>,
+and exists only for naming symmetry with other functions.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupLatin2</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to an Latin-2 (ISO 8859-2) string, or to an ASCII control string.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupLatin3</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to an Latin-3 (ISO 8859-3) string, or to an ASCII control string.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupLatin4</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to an Latin-4 (ISO 8859-4) string, or to an ASCII control string.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupKana</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to a string in an encoding consisting of Latin-1 (ISO 8859-1) and ASCII
+control in the Graphics Left half (values 0 to 127), and Katakana in the
+Graphics Right half (values 128 to 255), using the values from JIS
+X201-1976.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupJISX0201</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to a string in the JIS X0201-1976 encoding, including ASCII control.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupArabic</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to a Latin/Arabic (ISO 8859-6) string, or to an ASCII control string.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupCyrillic</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to a Latin/Cyrillic (ISO 8859-5) string, or to an ASCII control string.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupGreek</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to a Latin/Greek (ISO 8859-7) string, or to an ASCII control string.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupHebrew</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event
+to a Latin/Hebrew (ISO 8859-8) string, or to an ASCII control string.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuLookupAPL</function></funcdef>
+	  <paramdef>XKeyEvent *<parameter>event</parameter></paramdef>
+	  <paramdef>char *<parameter>buffer</parameter></paramdef>
+	  <paramdef>int <parameter>nbytes</parameter></paramdef>
+	  <paramdef>KeySym *<parameter>keysym</parameter></paramdef>
+	  <paramdef>XComposeStatus *<parameter>status</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>event</parameter></term>
+	  <listitem><para>
+specifies the key event
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>buffer</parameter></term>
+	  <listitem><para>
+returns the translated characters
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>nbytes</parameter></term>
+	  <listitem><para>
+specifies the length of the buffer
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>keysym</parameter></term>
+	  <listitem><para>
+returns the computed KeySym, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>status</parameter></term>
+	  <listitem><para>
+specifies or returns the compose state
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function is similar to
+<function>XLookupString</function>,
+except that it maps a key event to an APL string.
+    </para>
+
+  </sect1>
+
+  <sect1 id='compound_text_functions'>
+    <title>Compound Text Functions</title>
+
+    <para>
+The functions defined in this section are for parsing Compound Text strings,
+decomposing them into individual segments. Definitions needed to use these
+routines are in the include file
+&lt;<filename class='headerfile'>X11/Xmu/Xct.h</filename>&gt;.
+    </para>
+
+    <warning><para>
+The functions in this section are <emphasis remap='B'>deprecated</emphasis> because they shift the
+burden for recently introduced locale encodings to the application. The
+use of the
+<symbol>UTF8_STRING</symbol>
+text encoding provides a better alternative.
+      </para></warning>
+
+    <para>
+A Compound Text string is represented as the following type:
+
+      <synopsis>
+	typedef unsigned char *XctString;
+      </synopsis>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>XctData <function>XctCreate</function></funcdef>
+	  <paramdef>XctString <parameter>string</parameter></paramdef>
+	  <paramdef>int <parameter>length</parameter></paramdef>
+	  <paramdef>XctFlags <parameter>flags</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>string</parameter></term>
+	  <listitem><para>
+the Compound Text string
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>length</parameter></term>
+	  <listitem><para>
+the number of bytes in string
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>flags</parameter></term>
+	  <listitem><para>
+parsing control flags
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function creates an
+<type>XctData</type>
+structure for parsing a Compound Text
+string.  The string need not be null terminated.  The following flags are
+defined to control parsing of the string:
+
+    <variablelist>
+      <varlistentry>
+	<term><symbol>XctSingleSetSegments</symbol></term>
+	<listitem><para>
+This means that returned segments should contain
+characters from only one set (C0, C1, GL, GR).  When this is requested,
+<symbol>XctSegment</symbol>
+is never returned by
+<function>XctNextItem</function>,
+instead
+<symbol>XctC0Segment</symbol>,
+<symbol>XctC1Segment</symbol>,
+<symbol>XctGlSegment</symbol>,
+and
+<symbol>XctGRSegment</symbol>
+are returned.  C0 and C1
+segments are always returned as singleton characters.
+	  </para></listitem>
+      </varlistentry>
+
+      <varlistentry>
+	<term><symbol>XctProvideExtensions</symbol></term>
+	<listitem><para>
+This means that if the Compound Text string is from a
+higher version than this code is implemented to, then syntactically correct
+but unknown control sequences should be returned as
+<symbol>XctExtension</symbol>
+items by
+<function>XctNextItem</function>.
+If this flag is not set, and the Compound Text string version
+indicates that extensions cannot be ignored, then each unknown control
+sequence will be reported as an
+<symbol>XctError</symbol>.
+	  </para></listitem>
+      </varlistentry>
+
+      <varlistentry>
+	<term><symbol>XctAcceptC0Extensions</symbol></term>
+	<listitem><para>
+This means that if the Compound Text string is from
+a higher version than this code is implemented to, then unknown C0
+characters should be treated as if they were legal, and returned as C0
+characters (regardless of how
+<symbol>XctProvideExtensions</symbol>
+is set) by
+<function>XctNextItem</function>.
+If this flag is not set, then all unknown C0 characters are treated
+according to
+<symbol>XctProvideExtensions</symbol>.
+	  </para></listitem>
+      </varlistentry>
+
+      <varlistentry>
+	<term><symbol>XctAcceptC1Extensions</symbol></term>
+	<listitem><para>
+This means that if the Compound Text string is from
+a higher version than this code is implemented to, then unknown C1
+characters should be treated as if they were legal, and returned as C1
+characters (regardless of how
+<symbol>XctProvideExtensions</symbol>
+is set) by
+<function>XctNextItem</function>.
+If this flag is not set, then all unknown C1 characters are treated
+according to
+<symbol>XctProvideExtensions</symbol>.
+	  </para></listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><symbol>XctHideDirection</symbol></term>
+	<listitem><para>
+This means that horizontal direction changes should be
+reported as
+<symbol>XctHorizontal</symbol>
+items by
+<function>XctNextItem</function>. If this flag is not set,
+then direction changes are not returned as items, but the current direction
+is still maintained and reported for other items.  The current direction is
+given as an enumeration, with the values
+<symbol>XctUnspecified</symbol>,
+<symbol>XctLeftToRight</symbol>,
+and
+<symbol>XctRightToLeft</symbol>.
+	  </para></listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><symbol>XctFreeString</symbol></term>
+	<listitem><para>
+This means that
+<function>XctFree</function>
+should free the Compound Text string that is passed to
+<function>XctCreate</function>.
+If this flag is not set, the string is not freed.
+	  </para></listitem>
+      </varlistentry>
+
+      <varlistentry>
+	<term><symbol>XctShiftMultiGRToGL</symbol></term>
+	<listitem><para>
+This means that
+<function>XctNextItem</function>
+should translate GR
+segments on-the-fly into GL segments for the GR sets: GB2312.1980-1,
+JISX0208.1983-1, and KSC5601.1987-1.
+	  </para></listitem>
+      </varlistentry>
+    </variablelist>
+  </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XctReset</function></funcdef>
+	    <paramdef>XctData <parameter>data</parameter></paramdef>
+	  </funcprototype>
+	</funcsynopsis>
+	<variablelist>
+	  <varlistentry>
+	    <term><parameter>data</parameter></term>
+	    <listitem><para>
+specifies the Compound Text structure
+	      </para></listitem>
+	  </varlistentry>
+	</variablelist>
+
+This function resets the
+<type>XctData</type>
+structure to reparse the Compound Text string from the beginning.
+      </para>
+
+      <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>XctResult <function>XctNextItem</function></funcdef>
+	    <paramdef>XctData <parameter>data</parameter></paramdef>
+	  </funcprototype>
+	</funcsynopsis>
+	<variablelist>
+	  <varlistentry>
+	    <term><parameter>data</parameter></term>
+	    <listitem><para>
+specifies the Compound Text structure
+	      </para></listitem>
+	  </varlistentry>
+	</variablelist>
+
+This function parses the next &ldquo;item&rdquo; from the Compound Text string.  The
+return value indicates what kind of item is returned.  The item itself, it's
+length, and the current contextual state, are reported as components of the
+<type>XctData</type>
+structure.
+<type>XctResult</type>
+is an enumeration, with the following values:
+
+	<variablelist>
+	  <varlistentry>
+	    <term><symbol>XctSegment</symbol></term>
+	    <listitem><para>
+the item contains some mixture of C0, GL, GR, and C1 characters.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctC0Segment</symbol></term>
+	    <listitem><para>
+the item contains only C0 characters.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctGLSegment</symbol></term>
+	    <listitem><para>
+the item contains only GL characters.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctC1Segment</symbol></term>
+	    <listitem><para>
+the item contains only C1 characters.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctGRSegment</symbol></term>
+	    <listitem><para>
+the item contains only GR characters.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctExtendedSegment</symbol></term>
+	    <listitem><para>
+the item contains an extended segment.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctExtension</symbol></term>
+	    <listitem><para>
+the item is an unknown extension control sequence.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctHorizontal</symbol></term>
+	    <listitem><para>
+the item indicates a change in horizontal direction or
+depth.  The new direction and depth are recorded in the
+<type>XctData</type>
+structure.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctEndOfText</symbol></term>
+	    <listitem><para>
+The end of the Compound Text string has been reached.
+	      </para></listitem>
+	  </varlistentry>
+
+	  <varlistentry>
+	    <term><symbol>XctError</symbol></term>
+	    <listitem><para>
+the string contains a syntactic or semantic error; no further
+parsing should be performed.
+	      </para></listitem>
+	  </varlistentry>
+	</variablelist>
+      </para>
+
+      <para>
+The following state values are stored in the
+<type>XctData</type>
+structure:
+	<synopsis>
+    XctString		item;		/* the action item */
+    unsigned		item_length;	/* length of item in bytes */
+    int			char_size;	/* the number of bytes per character in
+					 * item, with zero meaning variable */
+    char		*encoding;	/* the XLFD encoding name for item */
+    XctHDirection	horizontal;	/* the direction of item */
+    unsigned		horz_depth;	/* the current direction nesting depth */
+    char		*GL;		/* the "{I} F" string for the current GL */
+    char		*GL_encoding;	/* the XLFD encoding name for the current GL */
+    int			GL_set_size;	/* 94 or 96 */
+    int			GL_char_size;	/* the number of bytes per GL character */
+    char		*GR;		/* the "{I} F" string for the current GR */
+    char		*GR_encoding;	/* the XLFD encoding name for the current GR */
+    int			GR_set_size;	/* 94 or 96 */
+    int			GR_char_size;	/* number of bytes per GR character */
+    char		*GLGR_encoding;	/* the XLFD encoding name for the current
+					 *  GL+GR, if known */
+	</synopsis>
+      </para>
+      <para>
+	<funcsynopsis>
+	  <funcprototype>
+	    <funcdef>void <function>XctFree</function></funcdef>
+	    <paramdef>XctData <parameter>data</parameter></paramdef>
+	  </funcprototype>
+	</funcsynopsis>
+	<variablelist>
+	  <varlistentry>
+	    <term><parameter>data</parameter></term>
+	    <listitem><para>
+specifies the Compound Text structure
+	      </para></listitem>
+	  </varlistentry>
+	</variablelist>
+
+This function frees all data associated with the
+<type>XctData</type>
+structure.
+      </para>
+
+  </sect1>
+
+  <sect1 id='closedisplay_hook_functions'>
+    <title>CloseDisplay Hook Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/CloseHook.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>CloseHook <function>XmuAddCloseDisplayHook</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>int <parameter>( *func )</parameter>
+	    <funcparams>Display *, caddr_t</funcparams></paramdef>
+	  <paramdef>caddr_t <parameter>arg</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>func</parameter></term>
+	  <listitem><para>
+specifies the function to call at display close
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>arg</parameter></term>
+	  <listitem><para>
+specifies arbitrary data to pass to <parameter>func</parameter>
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function adds a callback for the given display.  When the display is
+closed, the given function will be called with the given display and
+argument as:
+
+      <programlisting>
+	(*func)(dpy, arg)
+      </programlisting>
+    </para>
+
+    <para>
+The function is declared to return an int even though the value is ignored,
+because some compilers have problems with functions returning void.
+    </para>
+
+    <para>
+This routine returns <symbol>NULL</symbol> if it was unable to add the
+callback, otherwise it
+returns an opaque handle that can be used to remove or lookup the callback.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Bool <function>XmuRemoveCloseDisplayHook</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>CloseHook <parameter>handle</parameter></paramdef>
+	  <paramdef>int <parameter>( *func )</parameter>
+	    <funcparams>Display *, caddr_t</funcparams></paramdef>
+	  <paramdef>caddr_t <parameter>arg</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>handle</parameter></term>
+	  <listitem><para>
+specifies the callback by id, or <symbol>NULL</symbol>
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><function>func</function></term>
+	  <listitem><para>
+specifies the callback by function
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>arg</parameter></term>
+		<listitem><para>
+specifies the function data to match
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function deletes a callback that has been added with
+<function>XmuAddCloseDisplayHook</function>.
+If handle is not <symbol>NULL</symbol>, it specifies the callback to
+remove, and the func and arg parameters are ignored.  If handle is <symbol>NULL</symbol>, the
+first callback found to match the specified func and arg will be removed.
+Returns
+<symbol>True</symbol>
+if a callback was removed, else returns
+<symbol>False</symbol>.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Bool <function>XmuLookupCloseDisplayHook</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>CloseHook <parameter>handle</parameter></paramdef>
+	  <paramdef>int <parameter>( *func )</parameter>
+	    <funcparams>Display *, caddr_t</funcparams></paramdef>
+	  <paramdef>caddr_t <parameter>arg</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>handle</parameter></term>
+	  <listitem><para>
+specifies the callback by id, or <symbol>NULL</symbol>
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><function>func</function></term>
+	  <listitem><para>
+specifies the callback by function
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>arg</parameter></term>
+	  <listitem><para>
+specifies the function data to match
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function determines if a callback is installed.  If handle is not
+<symbol>NULL</symbol>,
+it specifies the callback to look for, and the func and arg parameters are
+ignored.  If handle is <symbol>NULL</symbol>, the function will look for
+any callback for the
+specified func and arg.  Returns
+<symbol>True</symbol>
+if a matching callback exists, else returns
+<symbol>False</symbol>.
+
+
+    </para>
+  </sect1>
+
+  <sect1 id='display_queue_functions'>
+    <title>Display Queue Functions</title>
+
+    <para>
+To use the functions and types defined in this section, you should include the
+header file
+&lt;<filename class='headerfile'>X11/Xmu/DisplayQue.h</filename>&gt;.
+It defines the following types:
+
+      <synopsis>
+typedef struct _XmuDisplayQueueEntry {
+	struct _XmuDisplayQueueEntry *prev, *next;
+	Display *display;
+	CloseHook closehook;
+	caddr_t data;
+} XmuDisplayQueueEntry;
+
+typedef struct _XmuDisplayQueue {
+	int nentries;
+	XmuDisplayQueueEntry *head, *tail;
+	int (*closefunc)();
+	int (*freefunc)();
+	caddr_t data;
+} XmuDisplayQueue;
+      </synopsis>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>XmuDisplayQueue *<function>XmuDQCreate</function></funcdef>
+	  <paramdef>int <parameter>( *closefunc )</parameter>
+	    <funcparams>XmuDisplayQueue *, XmuDisplayQueueEntry *</funcparams></paramdef>
+	  <paramdef>int <parameter>( *freefunc )</parameter>
+	    <funcparams>XmuDisplayQueue *</funcparams></paramdef>
+	  <paramdef>caddr_t <parameter>data</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>closefunc</parameter></term>
+	  <listitem><para>
+specifies the close function
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>freefunc</parameter></term>
+	  <listitem><para>
+specifies the free function
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>data</parameter></term>
+	  <listitem><para>
+specifies private data for the functions
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function creates and returns an empty
+<type>XmuDisplayQueue</type>
+(which is really just a set of displays, but is called a queue for
+historical reasons).  The queue is initially empty, but displays
+can be added using
+<function>XmuAddDisplay</function>.
+The data value is simply stored in the queue for use by the closefunc
+and freefunc callbacks.
+Whenever a display in the queue is closed using
+<function>XCloseDisplay</function>,
+the <parameter>closefunc</parameter> (if non-<symbol>NULL</symbol>) is called with the queue and the display's
+<function>XmuDisplayQueueEntry</function>
+as follows:
+      <programlisting>
+	(*closefunc)(queue, entry)
+      </programlisting>
+    </para>
+
+    <para>
+The <parameter>freefunc</parameter> (if non-<symbol>NULL</symbol>) is called whenever the last
+display in the
+queue is closed, as follows:
+
+      <programlisting>
+	(*freefunc)(queue)
+      </programlisting>
+    </para>
+
+    <para>
+The application is responsible for actually freeing the queue, by calling
+<function>XmuDQDestroy</function>.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>XmuDisplayQueueEntry *<function>XmuDQAddDisplay</function></funcdef>
+	  <paramdef>XmuDisplayQueue *<parameter>q</parameter></paramdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>caddr_t <parameter>data</parameter></paramdef>
+	</funcprototype>
+     </funcsynopsis>
+
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>q</parameter></term>
+	  <listitem><para>
+specifies the queue
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the display to add
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>data</parameter></term>
+	  <listitem><para>
+specifies private data for the free function
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function adds the specified display to the queue.  If successful,
+the queue entry is returned, otherwise <symbol>NULL</symbol> is returned.
+The data value is simply stored in the queue entry for use by the
+queue's freefunc callback.  This function does not attempt to prevent
+duplicate entries in the queue; the caller should use
+<function>XmuDQLookupDisplay</function>
+to determine if a display has already been added to a queue.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>XmuDisplayQueueEntry *<function>XmuDQLookupDisplay</function></funcdef>
+	  <paramdef>XmuDisplayQueue *<parameter>q</parameter></paramdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>q</parameter></term>
+	  <listitem><para>
+specifies the queue
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the display to lookup
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function returns the queue entry for the specified display, or
+<symbol>NULL</symbol> if
+the display is not in the queue.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef><function>XmuDQNDisplays</function></funcdef>
+	      <paramdef><parameter>q</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+This macro returns the number of displays in the specified queue.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Bool <function>XmuDQRemoveDisplay</function></funcdef>
+	  <paramdef>XmuDisplayQueue *<parameter>q</parameter></paramdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>q</parameter></term>
+	  <listitem><para>
+specifies the queue
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the display to remove
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function removes the specified display from the specified queue.
+No callbacks are performed.
+If the display is not found in the queue,
+<symbol>False</symbol>
+is returned, otherwise
+<symbol>True</symbol>
+is returned.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Bool <function>XmuDQDestroy</function></funcdef>
+	  <paramdef>XmuDisplayQueue *<parameter>q</parameter></paramdef>
+	  <paramdef>Bool <parameter>docallbacks</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>q</parameter></term>
+	  <listitem><para>
+specifies the queue to destroy
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>docallbacks</parameter></term>
+	  <listitem><para>
+specifies whether close functions should be called
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function releases all memory associated with the specified queue.
+If docallbacks is
+<symbol>True</symbol>,
+then the queue's closefunc callback (if non-<symbol>NULL</symbol>) is first called
+for each display in the queue, even though
+<function>XCloseDisplay</function>
+is not called on the display.
+    </para>
+
+  </sect1>
+
+  <sect1 id='toolkit_convenience_functions'>
+    <title>Toolkit Convenience Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/Initer.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuAddInitializer</function></funcdef>
+	  <paramdef>void <parameter>( *func )</parameter>
+	    <funcparams>XtAppContext, caddr_t</funcparams></paramdef>
+	  <paramdef>caddr_t <parameter>data</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>func</parameter></term>
+	  <listitem><para>
+specifies the procedure to register
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>data</parameter></term>
+	  <listitem><para>
+specifies private data for the procedure
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function registers a procedure, to be invoked the first time
+<function>XmuCallInitializers</function>
+is called on a given application context.  The procedure
+is called with the application context and the specified data:
+
+      <programlisting>
+	(*func)(app_con, data)
+      </programlisting>
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuCallInitializers</function></funcdef>
+	  <paramdef>XtAppContext <parameter>app_con</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>app_con</parameter></term>
+	  <listitem><para>
+specifies the application context to initialize
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function calls each of the procedures that have been registered with
+<function>XmuAddInitializer</function>,
+if this is the first time the application context has been passed to
+<function>XmuCallInitializers</function>.
+Otherwise, this function does nothing.
+    </para>
+
+  </sect1>
+
+  <sect1 id='standard_colormap_functions'>
+    <title>Standard Colormap Functions</title>
+
+    <para>
+To use the functions defined in this section, you should include the header
+file
+&lt;<filename class='headerfile'>X11/Xmu/StdCmap.h</filename>&gt;.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Status <function>XmuAllStandardColormaps</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+To create all of the appropriate standard colormaps for every visual of
+every screen on a given display, use
+<function>XmuAllStandardColormaps</function>.
+    </para>
+
+    <para>
+This function defines and retains as permanent resources all standard
+colormaps which are meaningful for the visuals of each screen of the
+display.  It returns 0 on failure, non-zero on success.  If the property of
+any standard colormap is already defined, this function will redefine it.
+    </para>
+
+    <para>
+This function is intended to be used by window managers or a special client
+at the start of a session.
+    </para>
+
+    <para>
+The standard colormaps of a screen are defined by properties associated with
+the screen's root window.  The property names of standard colormaps are
+predefined, and each property name except
+<property>RGB_DEFAULT_MAP</property> may describe at
+most one colormap.
+    </para>
+
+    <para>
+The standard colormaps are: <property>RGB_BEST_MAP</property>,
+<property>RGB_RED_MAP</property>, <property>RGB_GREEN_MAP</property>,
+<property>RGB_BLUE_MAP</property>, <property>RGB_DEFAULT_MAP</property>,
+ and <property>RGB_GRAY_MAP</property>.  Therefore a screen may
+have at most 6 standard colormap properties defined.
+    </para>
+
+    <para>
+A standard colormap is associated with a particular visual of the screen.  A
+screen may have multiple visuals defined, including visuals of the same
+class at different depths.  Note that a visual id might be repeated for more
+than one depth, so the visual id and the depth of a visual identify the
+visual.  The characteristics of the visual will determine which standard
+colormaps are meaningful under that visual, and will determine how the
+standard colormap is defined.  Because a standard colormap is associated
+with a specific visual, there must be a method of determining which visuals
+take precedence in defining standard colormaps.
+    </para>
+
+    <para>
+The method used here is: for the visual of greatest depth, define all
+standard colormaps meaningful to that visual class, according to this order
+of (descending) precedence:
+<symbol>DirectColor</symbol>;
+<symbol>PseudoColor</symbol>;
+<symbol>TrueColor</symbol>
+and
+<symbol>GrayScale</symbol>;
+and finally
+<symbol>StaticColor</symbol>
+and
+<symbol>StaticGray</symbol>.
+    </para>
+
+<para>This function allows success, on a per screen basis.  For example, if a map
+on screen 1 fails, the maps on screen 0, created earlier, will remain.
+However, none on screen 1 will remain.  If a map on screen 0 fails, none
+will remain.
+    </para>
+
+    <para>
+See
+<function>XmuVisualStandardColormaps</function>
+for which standard colormaps are meaningful under these classes of visuals.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Status <function>XmuVisualStandardColormaps</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>int <parameter>screen</parameter></paramdef>
+	  <paramdef>VisualID <parameter>visualid</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>depth</parameter></paramdef>
+	  <paramdef>Bool <parameter>replace</parameter></paramdef>
+	  <paramdef>Bool <parameter>retain</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen of the display
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>visualid</parameter></term>
+	  <listitem><para>
+specifies the visual type
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>depth</parameter></term>
+	  <listitem><para>
+specifies the visual depth
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>replace</parameter></term>
+	  <listitem><para>
+specifies whether or not to replace
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>retain</parameter></term>
+	  <listitem><para>
+specifies whether or not to retain
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+To create all of the appropriate standard colormaps for a given visual on a
+given screen, use
+<function>XmuVisualStandardColormaps</function>.
+    </para>
+
+    <para>
+This function defines all appropriate standard colormap properties for the
+given visual.  If replace is
+<symbol>True</symbol>,
+any previous definition will be removed.
+If retain is
+<symbol>True</symbol>,
+new properties will be retained for the duration of the
+server session.  This function returns 0 on failure, non-zero on success.
+On failure, no new properties will be defined, but old ones may have been
+removed if replace was <symbol>True</symbol>.
+    </para>
+
+    <para>
+Not all standard colormaps are meaningful to all visual classes.  This
+routine will check and define the following properties for the following
+classes, provided that the size of the colormap is not too small.  For
+<symbol>DirectColor</symbol>
+and
+<symbol>PseudoColor</symbol>:
+<property>RGB_DEFAULT_MAP</property>, <property>RGB_BEST_MAP</property>,
+<property>RGB_RED_MAP</property>, <property>RGB_GREEN_MAP</property>,
+<property>RGB_BLUE_MAP</property>, and <property>RGB_GRAY_MAP</property>.
+For
+<symbol>TrueColor</symbol>
+and
+<symbol>StaticColor</symbol>:
+<property>RGB_BEST_MAP</property>.  For
+<symbol>GrayScale</symbol>
+and
+<symbol>StaticGray</symbol>:
+<property>RGB_GRAY_MAP</property>.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Status <function>XmuLookupStandardColormap</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>int <parameter>screen</parameter></paramdef>
+	  <paramdef>VisualID <parameter>visualid</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>depth</parameter></paramdef>
+	  <paramdef>Atom <parameter>property</parameter></paramdef>
+	  <paramdef>Bool <parameter>replace</parameter></paramdef>
+	  <paramdef>Bool <parameter>retain</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen of the display
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>visualid</parameter></term>
+	  <listitem><para>
+specifies the visual type
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>depth</parameter></term>
+	  <listitem><para>
+specifies the visual depth
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>property</parameter></term>
+	  <listitem><para>
+specifies the standard colormap property
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>replace</parameter></term>
+	  <listitem><para>
+specifies whether or not to replace
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>retain</parameter></term>
+	  <listitem><para>
+specifies whether or not to retain
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+To create a standard colormap if one does not currently exist, or replace
+the currently existing standard colormap, use
+<function>XmuLookupStandardColormap</function>.
+    </para>
+
+    <para>
+Given a screen, a visual, and a property, this function will determine the
+best allocation for the property under the specified visual, and determine
+the whether to create a new colormap or to use the default colormap of the
+screen.
+    </para>
+
+    <para>
+If replace is True, any previous definition of the property will be
+replaced.  If retain is True, the property and the colormap will be made
+permanent for the duration of the server session.  However, pre-existing
+property definitions which are not replaced cannot be made permanent by a
+call to this function; a request to retain resources pertains to newly
+created resources.
+    </para>
+
+    <para>
+This function returns 0 on failure, non-zero on success.  A request to
+create a standard colormap upon a visual which cannot support such a map is
+considered a failure.  An example of this would be requesting any standard
+colormap property on a monochrome visual, or, requesting an
+<property>RGB_BEST_MAP</property> on
+a display whose colormap size is 16.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Status <function>XmuGetColormapAllocation</function></funcdef>
+	  <paramdef>XVisualInfo *<parameter>vinfo</parameter></paramdef>
+	  <paramdef>Atom <parameter>property</parameter></paramdef>
+	  <paramdef>unsigned long *<parameter>red_max</parameter></paramdef>
+	  <paramdef>unsigned long *<parameter>green_max</parameter></paramdef>
+	  <paramdef>unsigned long *<parameter>blue_max</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>vinfo</parameter></term>
+	  <listitem><para>
+specifies visual information for a chosen visual
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>property</parameter></term>
+	  <listitem><para>
+specifies one of the standard colormap property names
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>red_max</parameter></term>
+	  <listitem><para>
+returns maximum red value</para>
+	  </listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>green_max</parameter></term>
+	  <listitem><para>
+returns maximum green value
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>blue_max</parameter></term>
+	  <listitem><para>
+returns maximum blue value
+	  </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+To determine the best allocation of reds, greens, and blues in a standard
+colormap, use
+<function>XmuGetColormapAllocation</function>.
+    </para>
+
+    <para>
+<function>XmuGetColormapAllocation</function>
+returns 0 on failure, non-zero on success.  It is
+assumed that the visual is appropriate for the colormap property.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>XStandardColormap *<function>XmuStandardColormap</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>int <parameter>screen</parameter></paramdef>
+	  <paramdef>VisualID <parameter>visualid</parameter></paramdef>
+	  <paramdef>unsigned int <parameter>depth</parameter></paramdef>
+	  <paramdef>Atom <parameter>property</parameter></paramdef>
+	  <paramdef>Colormap <parameter>cmap</parameter></paramdef>
+	  <paramdef>unsigned long <parameter>red_max</parameter></paramdef>
+	  <paramdef>unsigned long <parameter>green_max</parameter></paramdef>
+	  <paramdef>unsigned long <parameter>blue_max</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen of the display
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>visualid</parameter></term>
+	  <listitem><para>
+specifies the visual type
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>depth</parameter></term>
+	  <listitem><para>
+specifies the visual depth
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>property</parameter></term>
+	  <listitem><para>
+specifies the standard colormap property
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>cmap</parameter></term>
+	  <listitem><para>
+specifies the colormap ID, or None
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>red_max</parameter></term>
+	  <listitem><para>
+specifies the red allocation
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>green_max</parameter></term>
+	  <listitem><para>
+specifies the green allocation
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>blue_max</parameter></term>
+	  <listitem><para>
+specifies the blue allocation
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+To create any one standard colormap, use
+<function>XmuStandardColormap</function>.
+    </para>
+
+    <para>
+This function creates a standard colormap for the given screen, visualid,
+and visual depth, with the given red, green, and blue maximum values, with
+the given standard property name.  Upon success, it returns a pointer to an
+<function>XStandardColormap</function>
+structure which describes the newly created colormap.
+Upon failure, it returns <symbol>NULL</symbol>.
+If cmap is the default colormap of the screen, the standard colormap
+will be defined on the default colormap; otherwise a new colormap is created.
+    </para>
+
+    <para>
+Resources created by this function are not made permanent; that is the
+caller's responsibility.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>Status <function>XmuCreateColormap</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>XStandardColormap *<parameter>colormap</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection under which the map is created
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>colormap</parameter></term>
+	  <listitem><para>
+specifies the map to be created</para></listitem>
+	</varlistentry>
+      </variablelist>
+
+To create any one colormap which is described by an
+<structname>XStandardColormap</structname>
+structure, use
+<function>XmuCreateColormap</function>.
+    </para>
+
+    <para>
+This function returns 0 on failure, and non-zero on success.  The base_pixel
+of the colormap is set on success.  Resources created by this function are
+not made permanent.  No argument error checking is provided; use at your own
+risk.
+    </para>
+
+    <para>
+All colormaps are created with read-only allocations, with the exception of
+read-only allocations of colors which fail
+to return the expected pixel value, and these are individually defined as
+read/write allocations.  This is done so that all the cells defined in the
+colormap are contiguous, for use in image processing.  This typically
+happens with White and Black in the default map.
+    </para>
+
+    <para>
+Colormaps of static visuals are considered to be successfully created if the
+map of the static visual matches the definition given in the standard
+colormap structure.
+    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuDeleteStandardColormap</function></funcdef>
+	  <paramdef>Display *<parameter>dpy</parameter></paramdef>
+	  <paramdef>Screen *<parameter>screen</parameter></paramdef>
+	  <paramdef>Atom <parameter>property</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>dpy</parameter></term>
+	  <listitem><para>
+specifies the connection to the X server
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>screen</parameter></term>
+	  <listitem><para>
+specifies the screen of the display
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>property</parameter></term>
+	  <listitem><para>
+specifies the standard colormap property
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+To remove any standard colormap property, use
+<function>XmuDeleteStandardColormap</function>.
+This function will remove the specified property from the specified screen,
+releasing any resources used by the colormap(s) of the property, if
+possible.
+    </para>
+
+  </sect1>
+
+  <sect1 id='widget_description_functions'>
+    <title>Widget Description Functions</title>
+
+    <para>
+The functions defined in this section are for building a description of
+the structure of and resources associated with a hierarchy of widget classes.
+This package is typically used by applications that wish to manipulate the
+widget set itself.
+    </para>
+
+    <para>
+The definitions needed to use these interfaces are in the header file
+&lt;<filename class='headerfile'>X11/Xmu/WidgetNode.h</filename>&gt;.
+The following function must be called before any of the others described
+below:
+
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuWnInitializeNodes</function></funcdef>
+	  <paramdef>XmuWidgetNode *<parameter>node_array</parameter></paramdef>
+	  <paramdef>int <parameter>num_nodes</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>node_array</parameter></term>
+	  <listitem><para>
+specifies a list of widget classes, in alphabetical order
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_nodes</parameter></term>
+	  <listitem><para>
+specfies the number of widget classes in the node array
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+    </para>
+
+    <para>
+To determine the resources provided by a widget class or classes, use
+
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>void <function>XmuWnFetchResources</function></funcdef>
+	  <paramdef>XmuWidgetNode *<parameter>node</parameter></paramdef>
+	  <paramdef>Widget <parameter>toplevel</parameter></paramdef>
+	  <paramdef>XmuWidgetNode *<parameter>top_node</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>node</parameter></term>
+	  <listitem><para>
+specifies the widget class for which resources should be obtained.
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>toplevel</parameter></term>
+	  <listitem><para>
+specifies the widget that should be used for creating an instance of
+<parameter>node</parameter>
+from which resources are extracted.  This is typically the value returned
+by <function>XtAppInitialize</function>.
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>top_node</parameter></term>
+	  <listitem><para>
+specifies the ancestor of <parameter>node</parameter> that should be
+treated as the root
+of the widget inheritance tree (used in determining which ancestor contributed
+which resources).
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+    </para>
+
+    <para>
+Each widget class inherits the resources of its parent.  To count the number
+of resources contributed by a particular widget class, use:
+
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>int <function>XmuWnCountOwnedResources</function></funcdef>
+	  <paramdef>XmuWidgetNode *<parameter>node</parameter></paramdef>
+	  <paramdef>XmuWidgetNode *<parameter>owner_node</parameter></paramdef>
+	  <paramdef>Bool <parameter>constraints</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>node</parameter></term>
+	  <listitem><para>
+specifies the widget class whose resources are being examined.
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>owner_node</parameter></term>
+	  <listitem><para>
+specifies the widget class of the ancestor of <parameter>node</parameter>
+whose contributions
+are being counted.
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>constraints</parameter></term>
+	  <listitem><para>
+specifies whether or not to count constraint resources or normal resources.
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This routine returns the number of resources contributed (or
+&ldquo;owned&rdquo;) by
+the specified widget class.
+	    </para>
+
+    <para>
+      <funcsynopsis>
+	<funcprototype>
+	  <funcdef>XmuWidgetNode *<function>XmuWnNameToNode</function></funcdef>
+	  <paramdef>XmuWidgetNode *<parameter>node_list</parameter></paramdef>
+	  <paramdef>int <parameter>num_nodes</parameter></paramdef>
+	  <paramdef>char *<parameter>name</parameter></paramdef>
+	</funcprototype>
+      </funcsynopsis>
+      <variablelist>
+	<varlistentry>
+	  <term><parameter>node_list</parameter></term>
+	  <listitem><para>
+specifies a list of widget nodes
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>num_nodes</parameter></term>
+	  <listitem><para>
+specifies the number of nodes in the list
+	    </para></listitem>
+	</varlistentry>
+	<varlistentry>
+	  <term><parameter>name</parameter></term>
+	  <listitem><para>
+specifies the name of the widget class in the node list to search for
+	    </para></listitem>
+	</varlistentry>
+      </variablelist>
+
+This function returns the WidgetNode in the list that matches the given
+widget name or widget class name.  If no match is found, it returns
+<symbol>NULL</symbol>.
+    </para>
+
+  </sect1>
+
+  <sect1 id='participation_in_the_editres_protocol'>
+    <title>Participation in the Editres Protocol</title>
+
+    <para>
+To participate in the editres protocol, applications which are not based
+on the Athena widget set should include the header file
+&lt;<filename class='headerfile'>X11/Xmu/Editres.h</filename>&gt;.
+    </para>
+
+    <para>
+To participate in the editres protocol, Xt applications which do not rely
+on the Athena widget set should register the editres protocol handler on
+each shell widget in the application, specifying an event mask of 0,
+nonmaskable events, and client data as <symbol>NULL</symbol>:
+
+    <programlisting>
+XtAddEventHandler(shell, (EventMask) 0, True, _XEditResCheckMessages, NULL);
+    </programlisting>
+    </para>
+  </sect1>
+</article>
diff --git a/doc/Xmu.xsl b/doc/Xmu.xsl
new file mode 100644
index 0000000..a881da5
--- /dev/null
+++ b/doc/Xmu.xsl
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version="1.0">
+  <!--
+Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice (including the next
+paragraph) shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+   -->
+  <xsl:param name="html.cleanup" select="1"/>
+  <xsl:param name="html.stylesheet" select="'Xmu.css'"/>
+  <xsl:param name="chunker.output.indent">yes</xsl:param>
+  <xsl:param name="html.extra.head.links" select="1"/>
+  <xsl:param name="saxon.character.representation" select="'entity;decimal'"/>
+  <xsl:param name="function.parens" select="1"/>
+  <xsl:param name="funcsynopsis.style" select="ansi"/>
+  <xsl:param name="abstract.notitle.enabled" select="1"/>
+  <xsl:param name="variablelist.as.table" select="1"/>
+  <xsl:param name="use.svg" select="1"/>
+</xsl:stylesheet>
commit 868ed2d97150aed414a7fd8f5dc317b8f38b05fd
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jun 7 15:51:32 2010 -0700

    Move doc/Xmu.ms from xorg-docs module
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

diff --git a/doc/Xmu.ms b/doc/Xmu.ms
new file mode 100644
index 0000000..1d7fe70
--- /dev/null
+++ b/doc/Xmu.ms
@@ -0,0 +1,2494 @@
+.\" $XdotOrg: xc/doc/specs/Xmu/Xmu.ms,v 1.2 2004/04/23 18:42:19 eich Exp $
+.\" $XFree86$
+.\"
+.sp 8
+.ce 2
+\s+2\fBXmu Library\fP\s-2
+.sp 6p
+X Version 11, Release 6.8
+.sp 1
+.ce 1
+``\fIDon't ask.\fP''
+.sp 2
+.LP
+Copyright \(co 1989 X Consortium
+.LP
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the ``Software''), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+.LP
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+.LP
+THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+.LP
+Except as contained in this notice, the name of the X Consortium shall not be
+used in advertising or otherwise to promote the sale, use or other dealings
+in this Software without prior written authorization from the X Consortium.
+.sp 3
+\fIX Window System\fP is a trademark of The Open Group.
+.bp
+.NH 1
+Introduction
+.LP
+The Xmu Library is a collection of miscellaneous (some might say random)
+utility functions that have been useful in building various applications
+and widgets.  This library is required by the Athena Widgets.
+.LP
+.NH 1
+Atom Functions
+.LP
+The use the functions and macros defined in this section, you should include
+the header file
+.Pn < X11/Xmu/Atoms.h >.
+.sp
+.FD 0
+XA_ATOM_PAIR(\fId\fP)
+XA_CHARACTER_POSITION(\fId\fP)
+XA_CLASS(\fId\fP)
+XA_CLIENT_WINDOW(\fId\fP)
+XA_CLIPBOARD(\fId\fP)
+XA_COMPOUND_TEXT(\fId\fP)
+XA_DECNET_ADDRESS(\fId\fP)
+XA_DELETE(\fId\fP)
+XA_FILENAME(\fId\fP)
+XA_HOSTNAME(\fId\fP)
+XA_IP_ADDRESS(\fId\fP)
+XA_LENGTH(\fId\fP)
+XA_LIST_LENGTH(\fId\fP)
+XA_NAME(\fId\fP)
+XA_NET_ADDRESS(\fId\fP)
+XA_NULL(\fId\fP)
+XA_OWNER_OS(\fId\fP)
+XA_SPAN(\fId\fP)
+XA_TARGETS(\fId\fP)
+XA_TEXT(\fId\fP)
+XA_TIMESTAMP(\fId\fP)
+XA_USER(\fId\fP)
+XA_UTF8_STRING(\fId\fP)
+.FN
+.LP
+These macros take a display as argument and return an
+.PN Atom .
+The name of the
+atom is obtained from the macro name by removing the leading characters
+``XA_''.  The
+.PN Atom
+value is cached, such that subsequent requests do not cause
+another round-trip to the server.
+.sp
+.FD 0
+AtomPtr XmuMakeAtom(\fIname\fP)
+.br
+      char* \fIname\fP;
+.FN
+.IP \fIname\fP 1i
+specifies the atom name
+.LP
+This function creates and initializes an opaque object, an
+.PN AtomPtr ,
+for an
+.PN Atom
+with the
+given name.
+.PN XmuInternAtom
+can be used to cache the Atom value for one or more displays.
+.sp
+.FD 0
+char *XmuNameOfAtom(\fIatom_ptr\fP)
+.br
+      AtomPtr \fIatom_ptr\fP;
+.FN
+.IP \fIatom_ptr\fP 1i
+specifies the AtomPtr
+.LP
+The function returns the name of an AtomPtr.
+.sp
+.FD 0
+Atom XmuInternAtom(\fId\fP, \fIatom_ptr\fP)
+.br
+      Display *\fId\fP;
+.br
+      AtomPtr \fIatom_ptr\fP;
+.FN
+.IP \fId\fP 1i
+specifies the connection to the X server
+.IP \fIatom_ptr\fP 1i
+specifies the AtomPtr
+.LP
+This function returns the
+.PN Atom
+for an
+.PN AtomPtr .
+The
+.PN Atom
+is cached,
+such that subsequent requests do not cause another round-trip to the server.
+.sp
+.FD 0
+char *XmuGetAtomName(\fId\fP, \fIatom\fP)
+.br
+      Display *\fId\fP;
+.br
+      Atom \fIatom\fP;
+.FN
+.IP \fId\fP 1i
+specifies the connection to the X server
+.IP \fIatom\fP 1i
+specifies the atom whose name is desired
+.LP
+This function returns the name of an
+.PN Atom .
+The result is cached, such that subsequent
+requests do not cause another round-trip to the server.
+.sp
+.FD 0
+void XmuInternStrings(\fId\fP, \fInames\fP, \fIcount\fP, \fIatoms\fP)
+.br
+      Display *\fId\fP;
+.br
+      String *\fInames\fP;
+.br
+      Cardinal \fIcount\fP;
+.br
+      Atom *\fIatoms\fP;
+.FN
+.IP \fId\fP 1i
+specifies the connection to the X server
+.IP \fInames\fP 1i
+specifies the strings to intern
+.IP \fIcount\fP 1i
+specifies the number of strings
+.IP \fIatoms\fP 1i
+returns the list of Atom values
+.LP
+This function converts a list of atom names into
+.PN Atom
+values.  The results are cached, such
+that subsequent requests do not cause further round-trips to the server.
+The caller is responsible for preallocating the array pointed at by atoms.
+.LP
+.NH 1
+Error Handler Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/Error.h >.
+.sp
+.FD 0
+int XmuPrintDefaultErrorMessage(\fIdpy\fP, \fIevent\fP, \fIfp\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      XErrorEvent *\fIevent\fP;
+.br
+      FILE *\fIfp\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIevent\fP 1i
+specifies the error
+.IP \fIfp\fP 1i
+specifies where to print the error message
+.LP
+This function prints an error message, equivalent to Xlib's default error
+message for protocol errors.  It returns a non-zero value
+if the caller should consider exiting, otherwise it returns 0.
+This function can be used when you need to
+write your own error handler, but need to print out an error from within
+that handler.
+.sp
+.FD 0
+int XmuSimpleErrorHandler(\fIdpy\fP, \fIerrorp\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      XErrorEvent *\fIerrorp\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIerrorp\fP 1i
+specifies the error
+.LP
+This function ignores errors for
+.PN BadWindow
+errors for
+.PN XQueryTree
+and
+.PN XGetWindowAttributes ,
+and ignores
+.PN BadDrawable
+errors for
+.PN XGetGeometry ;
+it returns 0 in those cases.  Otherwise, it prints the default error message,
+and returns a non-zero value if the caller should consider exiting,
+and 0 if the caller should not exit.
+.LP
+.NH 1
+System Utility Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/SysUtil.h >.
+.sp
+.FD 0
+int XmuGetHostname(\fIbuf\fP, \fImaxlen\fP)
+.br
+      char *\fIbuf\fP;
+.br
+      int \fImaxlen\fP;
+.FN
+.IP \fIbuf\fP 1i
+returns the host name
+.IP \fImaxlen\fP 1i
+specifies the length of buf
+.LP
+This function stores the null terminated name of the local host in buf, and
+returns length of the name.  This function hides operating system differences,
+such as whether to call gethostname or uname.
+.LP
+.NH 1
+Window Utility Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/WinUtil.h >.
+.sp
+.FD 0
+Screen *XmuScreenOfWindow(\fIdpy\fP, \fIw\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      Window \fIw\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIw\fP 1i
+specifies the window
+.LP
+This function returns the
+.PN Screen
+on which the specified window was created.
+.sp
+.FD 0
+Window XmuClientWindow(\fIdpy\fP, \fIwin\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      Window \fIwin\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIwin\fP 1i
+specifies the window
+.LP
+This function finds a window, at or below the specified window, which has a
+WM_STATE property.  If such a window is found, it is returned, otherwise the
+argument window is returned.
+.sp
+.FD 0
+Bool XmuUpdateMapHints(\fIdpy\fP, \fIw\fP, \fIhints\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      Window \fIw\fP;
+.br
+      XSizeHints *\fIhints\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIwin\fP 1i
+specifies the window
+.IP \fIhints\fP 1i
+specifies the new hints, or NULL
+.LP
+This function clears the
+.PN PPosition
+and
+.PN PSize
+flags and sets the
+.PN USPosition
+and
+.PN USSize
+flags in the hints structure, and then stores the hints for the
+window using
+.PN XSetWMNormalHints
+and returns
+.PN True .
+If NULL is passed for the
+hints structure, then the current hints are read back from the window using
+.PN XGetWMNormalHints
+and are used instead, and
+.PN True
+is returned; otherwise
+.PN False
+is returned.
+.LP
+.NH 1
+Cursor Utility Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/CurUtil.h >.
+.sp
+.FD 0
+int XmuCursorNameToIndex(\fIname\fP)
+.br
+      char *\fIname\fP;
+.FN
+.IP \fIname\fP 1i
+specifies the name of the cursor
+.LP
+This function takes the name of a standard cursor and returns its index
+in the standard cursor font.  The cursor names are formed by removing the
+``XC_'' prefix from the cursor defines listed in Appendix B of the Xlib
+manual.
+.LP
+.NH 1
+Graphics Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/Drawing.h >.
+.sp
+.FD 0
+void XmuDrawRoundedRectangle(\fIdpy\fP, \fIdraw\fP, \fIgc\fP, \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      Drawable \fIdraw\fP;
+.br
+      GC \fIgc\fP;
+.br
+      int \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIdraw\fP 1i
+specifies the drawable
+.IP \fIgc\fP 1i
+specifies the GC
+.IP \fIx\fP 1i
+specifies the upper left x coordinate
+.IP \fIy\fP 1i
+specifies the upper left y coordinate
+.IP \fIw\fP 1i
+specifies the rectangle width
+.IP \fIh\fP 1i
+specifies the rectangle height
+.IP \fIew\fP 1i
+specifies the corner width
+.IP \fIeh\fP 1i
+specifies the corner height
+.LP
+This function draws a rounded rectangle, where x, y, w, h are the dimensions
+of the overall rectangle, and ew and eh are the sizes of a bounding box that
+the corners are drawn inside of; ew should be no more than half of w, and eh
+should be no more than half of h.  The current GC line attributes control
+all attributes of the line.
+.sp
+.FD 0
+void XmuFillRoundedRectangle(\fIdpy\fP, \fIdraw\fP, \fIgc\fP, \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      Drawable \fIdraw\fP;
+.br
+      GC \fIgc\fP;
+.br
+      int \fIx\fP, \fIy\fP, \fIw\fP, \fIh\fP, \fIew\fP, \fIeh\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIdraw\fP 1i
+specifies the drawable
+.IP \fIgc\fP 1i
+specifies the GC
+.IP \fIx\fP 1i
+specifies the upper left x coordinate
+.IP \fIy\fP 1i
+specifies the upper left y coordinate
+.IP \fIw\fP 1i
+specifies the rectangle width
+.IP \fIh\fP 1i
+specifies the rectangle height
+.IP \fIew\fP 1i
+specifies the corner width
+.IP \fIeh\fP 1i
+specifies the corner height
+.LP
+This function draws a filled rounded rectangle, where x, y, w, h are the
+dimensions of the overall rectangle, and ew and eh are the sizes of a
+bounding box that the corners are drawn inside of; ew should be no more than
+half of w, and eh should be no more than half of h.  The current GC fill
+settings control all attributes of the fill contents.
+.sp
+.FD 0
+XmuDrawLogo(\fIdpy\fP, \fIdrawable\fP, \fIgcFore\fP, \fIgcBack\fP, \fIx\fP, \fIy\fP, \fIwidth\fP, \fIheight\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      Drawable \fIdrawable\fP;
+.br
+      GC \fIgcFore\fP, \fIgcBack\fP;
+.br
+      int \fIx\fP, \fIy\fP;
+.br
+      unsigned int \fIwidth\fP, \fIheight\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIdrawable\fP 1i
+specifies the drawable
+.IP \fIgcFore\fP 1i
+specifies the foreground GC
+.IP \fIgcBack\fP 1i
+specifies the background GC
+.IP \fIx\fP 1i
+specifies the upper left x coordinate
+.IP \fIy\fP 1i
+specifies the upper left y coordinate
+.IP \fIwidth\fP 1i
+specifies the logo width
+.IP \fIheight\fP 1i
+specifies the logo height
+.LP
+This function draws the ``official'' X Window System logo.  The bounding box
+of the logo in the drawable is given by x, y, width, and height.  The logo
+itself is filled using gcFore, and the rest of the rectangle is filled using
+gcBack.
+.sp
+.FD 0
+Pixmap XmuCreateStippledPixmap(\fIscreen\fP, \fIfore\fP, \fIback\fP, \fIdepth\fP)
+.br
+      Screen *\fIscreen\fP;
+.br
+      Pixel \fIfore\fP, \fIback\fP;
+.br
+      unsigned int \fIdepth\fP;
+.FN
+.IP \fIscreen\fP 1i
+specifies the screen the pixmap is created on
+.IP \fIfore\fP 1i
+specifies the foreground pixel value
+.IP \fIback\fP 1i
+specifies the background pixel value
+.IP \fIdepth\fP 1i
+specifies the depth of the pixmap
+.LP
+This function creates a two pixel by one pixel stippled pixmap of specified
+depth on the specified screen.  The pixmap is cached so that multiple
+requests share the same pixmap.  The pixmap should be freed with
+.PN XmuReleaseStippledPixmap
+to maintain correct reference counts.
+.sp
+.FD 0
+void XmuReleaseStippledPixmap(\fIscreen\fP, \fIpixmap\fP)
+.br
+      Screen *\fIscreen\fP;
+.br
+      Pixmap \fIpixmap\fP;
+.FN
+.IP \fIscreen\fP 1i
+specifies the screen the pixmap was created on
+.IP \fIpixmap\fP 1i
+specifies the pixmap to free
+.LP
+This function frees a pixmap created with
+.PN XmuCreateStippledPixmap .
+.sp
+.FD 0
+int XmuReadBitmapData(\fIfstream\fP, \fIwidth\fP, \fIheight\fP, \fIdatap\fP, \fIx_hot\fP, \fIy_hot\fP)
+    FILE *\fIfstream\fP;
+    unsigned int *\fIwidth\fP, *\fIheight\fP;
+    unsigned char **\fIdatap\fP;
+    int *\fIx_hot\fP, *\fIy_hot\fP;
+.FN
+.IP \fIstream\fP 1i
+specifies the stream to read from
+.IP \fIwidth\fP 1i
+returns the width of the bitmap
+.IP \fIheight\fP 1i
+returns the height of the bitmap
+.IP \fIdatap\fP 1i
+returns the parsed bitmap data
+.IP \fIx_hot\fP 1i
+returns the x coordinate of the hotspot
+.IP \fIy_hot\fP 1i
+returns the y coordinate of the hotspot
+.LP
+This function reads a standard bitmap file description from the specified
+stream, and returns the parsed data in a format suitable for passing to
+.PN XCreateBitmapFromData .
+The return value of the function has the same
+interpretation as the return value for
+.PN XReadBitmapFile .
+.sp
+.FD 0
+int XmuReadBitmapDataFromFile(\fIfilename\fP, \fIwidth\fP, \fIheight\fP, \fIdatap\fP, \fIx_hot\fP, \fIy_hot\fP)
+    char *\fIfilename\fP;
+    unsigned int *\fIwidth\fP, *\fIheight\fP;
+    unsigned char **\fIdatap\fP;
+    int *\fIx_hot\fP, *\fIy_hot\fP;
+.FN
+.IP \fIfilename\fP 1i
+specifies the file to read from
+.IP \fIwidth\fP 1i
+returns the width of the bitmap
+.IP \fIheight\fP 1i
+returns the height of the bitmap
+.IP \fIdatap\fP 1i
+returns the parsed bitmap data
+.IP \fIx_hot\fP 1i
+returns the x coordinate of the hotspot
+.IP \fIy_hot\fP 1i
+returns the y coordinate of the hotspot
+.LP
+This function reads a standard bitmap file description from the specified
+file, and returns the parsed data in a format suitable for passing to
+.PN XCreateBitmapFromData .
+The return value of the function has the same
+interpretation as the return value for
+.PN XReadBitmapFile .
+.sp
+.FD 0
+Pixmap XmuLocateBitmapFile(\fIscreen\fP, \fIname\fP, \fIsrcname\fP, \fIsrcnamelen\fP, \fIwidthp\fP, \fIheightp\fP, \fIxhotp\fP, \fIyhotp\fP)
+    Screen *\fIscreen\fP;
+    char *\fIname\fP;
+    char *\fIsrcname\fP;
+    int \fIsrcnamelen\fP;
+    int *\fIwidthp\fP, *\fIheightp\fP, *\fIxhotp\fP, *\fIyhotp\fP;
+.FN
+.IP \fIscreen\fP 1i
+specifies the screen the pixmap is created on
+.IP \fIname\fP 1i
+specifies the file to read from
+.IP \fIsrcname\fP 1i
+returns the full filename of the bitmap
+.IP \fIsrcnamelen\fP 1i
+specifies the length of the srcname buffer
+.IP \fIwidth\fP 1i
+returns the width of the bitmap
+.IP \fIheight\fP 1i
+returns the height of the bitmap
+.IP \fIxhotp\fP 1i
+returns the x coordinate of the hotspot
+.IP \fIyhotp\fP 1i
+returns the y coordinate of the hotspot
+.LP
+This function reads a file in standard bitmap file format, using
+.PN XReadBitmapFile ,
+and returns the created bitmap.  The filename may be
+absolute, or relative to the global resource named bitmapFilePath with class
+BitmapFilePath.  If the resource is not defined, the default value is the
+build symbol BITMAPDIR, which is typically "/usr/include/X11/bitmaps".  If
+srcnamelen is greater than zero and srcname is not NULL, the null terminated
+filename will be copied into srcname.  The size and hotspot of the bitmap are
+also returned.
+.sp
+.FD 0
+Pixmap XmuCreatePixmapFromBitmap(\fIdpy\fP, \fId\fP, \fIbitmap\fP, \fIwidth\fP, \fIheight\fP, \fIdepth\fP, \fIfore\fP, \fIback\fP)
+    Display *\fIdpy\fP;
+    Drawable \fId\fP;
+    Pixmap \fIbitmap\fP;
+    unsigned int \fIwidth\fP, \fIheight\fP;
+    unsigned int \fIdepth\fP;
+    unsigned long \fIfore\fP, \fIback\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fId\fP 1i
+specifies the screen the pixmap is created on
+.IP \fIbitmap\fP 1i
+specifies the bitmap source
+.IP \fIwidth\fP 1i
+specifies the width of the pixmap
+.IP \fIheight\fP 1i
+specifies the height of the pixmap
+.IP \fIdepth\fP 1i
+specifies the depth of the pixmap
+.IP \fIfore\fP 1i
+specifies the foreground pixel value
+.IP \fIback\fP 1i
+specifies the background pixel value
+.LP
+This function creates a pixmap of the specified width, height, and depth, on
+the same screen as the specified drawable, and then performs an
+.PN XCopyPlane
+from the specified bitmap to the pixmap,
+using the specified foreground and background pixel values.
+The created pixmap is returned.
+.LP
+.NH 1
+Selection Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/StdSel.h >.
+.sp
+.FD 0
+Boolean XmuConvertStandardSelection(\fIw\fP, \fItime\fP, \fIselection\fP, \fItarget\fP, \fItype\fP, \fIvalue\fP, \fIlength\fP, \fIformat\fP)
+.br
+      Widget \fIw\fP;
+.br
+      Time \fItime\fP;
+.br
+      Atom *\fIselection\fP, *\fItarget\fP, *\fItype\fP;
+.br
+      caddr_t *\fIvalue\fP;
+.br
+      unsigned long *\fIlength\fP;
+.br
+      int *\fIformat\fP;
+.FN
+.IP \fIw\fP 1i
+specifies the widget which currently owns the selection
+.IP \fItime\fP 1i
+specifies the time at which the selection was established
+.IP \fIselection\fP 1i
+this argument is ignored
+.IP \fItarget\fP 1i
+specifies the target type of the selection
+.IP \fItype\fP 1i
+returns the property type of the converted value
+.IP \fIvalue\fP 1i
+returns the converted value
+.IP \fIlength\fP 1i
+returns the number of elements in the converted value
+.IP \fIformat\fP 1i
+returns the size in bits of the elements
+.LP
+This function converts the following standard selections: CLASS,
+CLIENT_WINDOW, DECNET_ADDRESS, HOSTNAME, IP_ADDRESS, NAME, OWNER_OS,
+TARGETS, TIMESTAMP, and USER.  It returns
+.PN True
+if the conversion was successful, else it returns
+.PN False.
+.LP
+.NH 1
+Type Converter Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/Converters.h >.
+.sp
+.FD 0
+void XmuCvtFunctionToCallback(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValue *\fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+this argument is ignored
+.IP \fInum_args\fP 1i
+this argument is ignored
+.IP \fIfromVal\fP 1i
+the function to convert
+.IP \fItoVal\fP
+the place to store the converted value
+.LP
+This function converts a callback procedure to a callback list containing
+that procedure, with NULL closure data.  To use this converter, include the
+following in your widget's ClassInitialize procedure:
+.LP
+XtAddConverter(XtRCallProc, XtRCallback, XmuCvtFunctionToCallback, NULL, 0);
+.sp
+.FD 0
+void XmuCvtStringToBackingStore(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValue *\fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+this argument is ignored
+.IP \fInum_args\fP 1i
+this argument must be a pointer to a Cardinal containing the value 0
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function converts a string to a backing-store integer as defined in
+.Pn < X11/X.h >.
+The string "notUseful" converts to
+.PN NotUseful ,
+"whenMapped" converts to
+.PN WhenMapped ,
+and "always" converts to
+.PN Always .
+The string "default" converts to the value
+.PN Always +
+.PN WhenMapped +
+.PN NotUseful .
+The case of the string does not matter.
+To use this converter, include the following
+in your widget's ClassInitialize procedure:
+.LP
+XtAddConverter(XtRString, XtRBackingStore, XmuCvtStringToBackingStore, NULL, 0);
+.sp
+.FD 0
+void XmuCvtStringToBitmap(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValuePtr \fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+the sole argument specifies the Screen on which to create the bitmap
+.IP \fInum_args\fP 1i
+must be the value 1
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function creates a bitmap (a Pixmap of depth one) suitable for window
+manager icons.  The string argument is the name of a file in standard bitmap
+file format.  For the possible filename specifications, see
+.PN XmuLocateBitmapFile .
+To use this converter, include the following in your widget's
+ClassInitialize procedure:
+.LP
+static XtConvertArgRec screenConvertArg[] = {
+.br
+  {XtBaseOffset, (XtPointer)XtOffset(Widget, core.screen), sizeof(Screen *)}
+.br
+};
+.LP
+XtAddConverter(XtRString, XtRBitmap, XmuCvtStringToBitmap,
+.br
+		 screenConvertArg, XtNumber(screenConvertArg));
+.sp
+.FD 0
+Boolean XmuCvtStringToColorCursor(\fIdpy\fP, \fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP, \fIdata\fP)
+.br
+      Display * \fIdpy\fP;
+.br
+      XrmValuePtr \fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.br
+      XtPointer * \fIdata\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the display to use for conversion warnings
+.IP \fIargs\fP 1i
+specifies the required conversion arguments
+.IP \fInum_args\fP 1i
+specifies the number of required conversion arguments, which is 4
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.IP \fIdata\fP
+this argument is ignored
+.LP
+This function converts a string to a
+.PN Cursor 
+with the foreground and background pixels specified by the conversion
+arguments.  The string can either be a
+standard cursor name formed by removing the ``XC_'' prefix from any of the
+cursor defines listed in Appendix B of the Xlib Manual, a font name and
+glyph index in decimal of the form "FONT fontname index [[font] index]",
+or a bitmap filename acceptable to
+.PN XmuLocateBitmapFile .
+To use this converter, include
+the following in the widget ClassInitialize procedure:
+.LP
+static XtConvertArgRec colorCursorConvertArgs[] = {
+.br
+  {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.screen),
+   sizeof(Screen *)},
+  {XtResourceString, (XtPointer) XtNpointerColor, sizeof(Pixel)},
+  {XtResourceString, (XtPointer) XtNpointerColorBackground, sizeof(Pixel)},
+  {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.colormap),
+   sizeof(Colormap)}
+.br
+};
+.LP
+XtSetTypeConverter(XtRString, XtRColorCursor, XmuCvtStringToColorCursor,
+.br
+		 colorCursorConvertArgs, XtNumber(colorCursorConvertArgs),
+.br
+                 XtCacheByDisplay, NULL);
+The widget must recognize XtNpointerColor and XtNpointerColorBackground as
+resources, or specify other appropriate foreground and background resources.
+The widget's Realize and SetValues methods must cause the converter to be
+invoked with the appropriate arguments when one of the foreground,
+background, or cursor resources has changed, or when the window is created,
+and must assign the cursor to the window of the widget.
+.sp
+.FD 0
+void XmuCvtStringToCursor(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValuePtr \fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+specifies the required conversion argument, the screen
+.IP \fInum_args\fP 1i
+specifies the number of required conversion arguments, which is 1
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function converts a string to a
+.PN Cursor .
+The string can either be a
+standard cursor name formed by removing the ``XC_'' prefix from any of the
+cursor defines listed in Appendix B of the Xlib Manual, a font name and
+glyph index in decimal of the form "FONT fontname index [[font] index]", or
+a bitmap filename acceptable to
+.PN XmuLocateBitmapFile .
+To use this converter, include
+the following in your widget's ClassInitialize procedure:
+.LP
+static XtConvertArgRec screenConvertArg[] = {
+.br
+  {XtBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.screen), sizeof(Screen *)}
+.br
+};
+.LP
+XtAddConverter(XtRString, XtRCursor, XmuCvtStringToCursor,
+.br
+		 screenConvertArg, XtNumber(screenConvertArg));
+.sp
+.FD 0
+void XmuCvtStringToGravity(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+     XrmValuePtr *\fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+this argument is ignored
+.IP \fInum_args\fP 1i
+this argument must be a pointer to a Cardinal containing the value 0
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function converts a string to an
+.PN XtGravity
+enumeration value.  The string "forget" and a NULL value convert to
+.PN ForgetGravity ,
+"NorthWestGravity" converts to 
+.PN NorthWestGravity ,
+the strings "NorthGravity" and "top" convert to
+.PN NorthGravity ,
+"NorthEastGravity" converts to
+.PN NorthEastGravity ,
+the strings "West" and "left" convert to
+.PN WestGravity ,
+"CenterGravity" converts to
+.PN CenterGravity ,
+"EastGravity" and "right" convert to
+.PN EastGravity ,
+"SouthWestGravity" converts to
+.PN SouthWestGravity ,
+"SouthGravity" and "bottom" convert to
+.PN SouthGravity ,
+"SouthEastGravity" converts to
+.PN SouthEastGravity ,
+"StaticGravity" converts to
+.PN StaticGravity ,
+and "UnmapGravity" converts to
+.PN UnmapGravity .
+The case of the string does not matter.  To use this converter, include
+the following in your widget's class initialize procedure:
+.LP
+XtAddConverter(XtRString, XtRGravity, XmuCvtStringToGravity, NULL, 0);
+.sp
+.FD 0
+void XmuCvtStringToJustify(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValuePtr *\fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+this argument is ignored
+.IP \fInum_args\fP 1i
+this argument is ignored
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function converts a string to an
+.PN XtJustify
+enumeration value.  The string "left" converts to
+.PN XtJustifyLeft ,
+"center" converts to
+.PN XtJustifyCenter ,
+and "right" converts to
+.PN XtJustifyRight .
+The case of the string does not matter.  To use this converter,
+include the following in your widget's ClassInitialize procedure:
+.LP
+XtAddConverter(XtRString, XtRJustify, XmuCvtStringToJustify, NULL, 0);
+.sp
+.FD 0
+void XmuCvtStringToLong(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValuePtr \fIargs\fP;
+.br
+      Cardinal    *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+this argument is ignored
+.IP \fInum_args\fP 1i
+this argument must be a pointer to a Cardinal containing 0
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function converts a string to an integer of type long.  It parses the
+string using
+.PN sscanf
+with a format of "%ld".  To use this converter, include
+the following in your widget's ClassInitialize procedure:
+.LP
+XtAddConverter(XtRString, XtRLong, XmuCvtStringToLong, NULL, 0);
+.sp
+.FD 0
+void XmuCvtStringToOrientation(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValuePtr *\fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+this argument is ignored
+.IP \fInum_args\fP 1i
+this argument is ignored
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function converts a string to an
+.PN XtOrientation
+enumeration value.  The string "horizontal" converts to
+.PN XtorientHorizontal
+and "vertical" converts to
+.PN XtorientVertical .
+The case of the string does not matter.  To use this converter,
+include the following in your widget's ClassInitialize procedure:
+.LP
+XtAddConverter(XtRString, XtROrientation, XmuCvtStringToOrientation, NULL, 0);
+.sp
+.FD 0
+Boolean XmuCvtStringToShapeStyle(\fIdpy\fP, \fIargs\fP, \fInum_args\fP, \fIfrom\fP, \fItoVal\fP, data)
+.br
+      Display *\fIdpy\fP;
+.br
+      XrmValue *\fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValue *\fIfrom\fP;
+.br
+      XrmValue *\fItoVal\fP;
+.br
+      XtPointer *\fIdata\fP;
+.FN
+.IP \fIdpy\fP 1i
+the display to use for conversion warnings
+.IP \fIargs\fP 1i
+this argument is ignored
+.IP \fInum_args\fP 1i
+this argument is ignored
+.IP \fIfromVal\fP 1i
+the value to convert from
+.IP \fItoVal\fP
+the place to store the converted value
+.IP \fIdata\fP 1i
+this argument is ignored
+.LP
+This function converts a string to an integer shape style.  The string
+"rectangle" converts to
+.PN XmuShapeRectangle ,
+"oval" converts to
+.PN XmuShapeOval ,
+"ellipse" converts to
+.PN XmuShapeEllipse ,
+and "roundedRectangle" converts to
+.PN XmuShapeRoundedRectangle .
+The case of the string does not matter.  To use this converter,
+include the following in your widget's ClassInitialize procedure:
+.LP
+XtSetTypeConverter(XtRString, XtRShapeStyle, XmuCvtStringToShapeStyle,
+.br
+		     NULL, 0, XtCacheNone, NULL);
+.sp
+.FD 0
+Boolean XmuReshapeWidget(w, \fIshape_style\fP, \fIcorner_width\fP, \fIcorner_height\fP)
+.br
+      Widget \fIw\fP;
+.br
+      int \fIshape_style\fP;
+.br
+      int \fIcorner_width\fP, \fIcorner_height\fP;
+.FN
+.IP \fIw\fP 1i
+specifies the widget to reshape
+.IP \fIshape_style\fP 1i
+specifies the new shape
+.IP \fIcorner_width\fP 1i
+specifies the width of the rounded rectangle corner
+.IP \fIcorner_height\fP 1i
+specified the height of the rounded rectangle corner
+.LP
+This function reshapes the specified widget, using the Shape extension, to a
+rectangle, oval, ellipse, or rounded rectangle, as specified by shape_style
+(
+.PN XmuShapeRectangle ,
+.PN XmuShapeOval ,
+.PN XmuShapeEllipse ,
+and
+.PN XmuShapeRoundedRectangle ,
+respectively).
+The shape is bounded by the outside edges of the rectangular extents of the
+widget.  If the shape is a rounded rectangle, corner_width and corner_height
+specify the size of the bounding box that the corners are drawn inside of
+(see
+.PN XmuFillRoundedRectangle );
+otherwise, corner_width and corner_height are ignored.
+The origin of the widget within its parent remains unchanged.
+.sp
+.FD 0
+void XmuCvtStringToWidget(\fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP)
+.br
+      XrmValuePtr \fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValuePtr \fIfromVal\fP;
+.br
+      XrmValuePtr \fItoVal\fP;
+.FN
+.IP \fIargs\fP 1i
+this sole argument is the parent Widget
+.IP \fInum_args\fP 1i
+this argument must be 1
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.LP
+This function converts a string to an immediate child widget of the parent
+widget passed as an argument.  Note that this converter only works for
+child widgets that have already been created; there is no lazy evaluation.
+The string is first compared against the
+names of the normal and popup children, and if a match is found the
+corresponding child is returned.  If no match is found, the string is
+compared against the classes of the normal and popup children, and if a
+match is found the corresponding child is returned.  The case of the string
+is significant.  To use this converter, include the following in your
+widget's ClassInitialize procedure:
+.LP
+static XtConvertArgRec parentCvtArg[] = {
+.br
+  {XtBaseOffset, (XtPointer)XtOffset(Widget, core.parent), sizeof(Widget)},
+.br
+};
+.LP
+XtAddConverter(XtRString, XtRWidget, XmuCvtStringToWidget,
+.br
+		 parentCvtArg, XtNumber(parentCvtArg));
+.sp
+.FD 0
+Boolean XmuNewCvtStringToWidget(\fIdpy\fP, \fIargs\fP, \fInum_args\fP, \fIfromVal\fP, \fItoVal\fP, \fIdata\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      XrmValue * \fIargs\fP;
+.br
+      Cardinal *\fInum_args\fP;
+.br
+      XrmValue * \fIfromVal\fP;
+.br
+      XrmValue * \fItoVal\fP;
+.br
+      XtPointer *\fIdata\fP;
+.FN
+.IP \fIdpy\fP 1i
+the display to use for conversion warnings
+.IP \fIargs\fP 1i
+this sole argument is the parent Widget
+.IP \fInum_args\fP 1i
+this argument must be a pointer to a Cardinal containing the value 1
+.IP \fIfromVal\fP 1i
+specifies the string to convert
+.IP \fItoVal\fP
+returns the converted value
+.IP \fIdata\fP 1i
+this argument is ignored
+.LP
+This converter is identical in functionality to XmuCvtStringToWidget, except
+that it is a new-style converter, allowing the specification of a cache type
+at the time of registration.
+Most widgets will not cache the conversion results, as the application may
+dynamically create and destroy widgets, which would cause cached values to
+become illegal.  To use this converter, include the following in the widget's
+class initialize procedure:
+.LP
+static XtConvertArgRec parentCvtArg[] = {
+.br
+  {XtWidgetBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.parent),
+.br
+   sizeof(Widget)}
+.br
+};
+.LP
+XtSetTypeConverter(XtRString, XtRWidget, XmuNewCvtStringToWidget,
+.br
+		   parentCvtArg, XtNumber(parentCvtArg), XtCacheNone, NULL);
+.LP
+.NH 1
+Character Set Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/CharSet.h >.
+.LP
+The functions in this section are \fBdeprecated\fP because they don't work
+in most locales now supported by X11; the function
+.PN XmbLookupString
+provides a better alternative.
+.sp
+.FD 0
+void XmuCopyISOLatin1Lowered(\fIdst\fP, \fIsrc\fP)
+.br
+      char *\fIdst\fP, *\fIsrc\fP;
+.FN
+.IP \fIdst\fP 1i
+returns the string copy
+.IP \fIsrc\fP 1i
+specifies the string to copy
+.LP
+This function copies a null terminated string from src to dst (including the
+null), changing all Latin-1 uppercase letters to lowercase.  The string is
+assumed to be encoded using ISO 8859-1.
+.sp
+.FD 0
+void XmuCopyISOLatin1Uppered(\fIdst\fP, \fIsrc\fP)
+.br
+      char *\fIdst\fP, *\fIsrc\fP;
+.FN
+.IP \fIdst\fP 1i
+returns the string copy
+.IP \fIsrc\fP 1i
+specifies the string to copy
+.LP
+This function copies a null terminated string from src to dst (including the
+null), changing all Latin-1 lowercase letters to uppercase.  The string is
+assumed to be encoded using ISO 8859-1.
+.sp
+.FD 0
+int XmuCompareISOLatin1(\fIfirst\fP, \fIsecond\fP)
+.br
+      char *\fIfirst\fP, *\fIsecond\fP;
+.FN
+.IP \fIdst\fP 1i
+specifies a string to compare
+.IP \fIsrc\fP 1i
+specifies a string to compare
+.LP
+This function compares two null terminated Latin-1 strings, ignoring case
+differences, and returns an integer greater than, equal to, or less than 0,
+according to whether first is lexicographically greater than, equal to, or
+less than second.  The two strings are assumed to be encoded using ISO
+8859-1.
+.sp
+.FD 0
+int XmuLookupLatin1(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is identical to
+.PN XLookupString ,
+and exists only for naming symmetry with other functions.
+.sp
+.FD 0
+int XmuLookupLatin2(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to an Latin-2 (ISO 8859-2) string, or to an ASCII control string.
+.sp
+.FD 0
+int XmuLookupLatin3(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to an Latin-3 (ISO 8859-3) string, or to an ASCII control string.
+.sp
+.FD 0
+int XmuLookupLatin4(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to an Latin-4 (ISO 8859-4) string, or to an ASCII control string.
+.sp
+.FD 0
+int XmuLookupKana(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to a string in an encoding consisting of Latin-1 (ISO 8859-1) and ASCII
+control in the Graphics Left half (values 0 to 127), and Katakana in the
+Graphics Right half (values 128 to 255), using the values from JIS
+X201-1976.
+.sp
+.FD 0
+int XmuLookupJISX0201(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to a string in the JIS X0201-1976 encoding, including ASCII control.
+.sp
+.FD 0
+int XmuLookupArabic(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to a Latin/Arabic (ISO 8859-6) string, or to an ASCII control string.
+.sp
+.FD 0
+int XmuLookupCyrillic(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to a Latin/Cyrillic (ISO 8859-5) string, or to an ASCII control string.
+.sp
+.FD 0
+int XmuLookupGreek(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to a Latin/Greek (ISO 8859-7) string, or to an ASCII control string.
+.sp
+.FD 0
+int XmuLookupHebrew(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event
+to a Latin/Hebrew (ISO 8859-8) string, or to an ASCII control string.
+.sp
+.FD 0
+int XmuLookupAPL(\fIevent\fP, \fIbuffer\fP, \fInbytes\fP, \fIkeysym\fP, \fIstatus\fP)
+.br
+      XKeyEvent *\fIevent\fP;
+.br
+      char *\fIbuffer\fP;
+.br
+      int \fInbytes\fP;
+.br
+      KeySym *\fIkeysym\fP;
+.br
+      XComposeStatus *\fIstatus\fP;
+.FN
+.IP \fIevent\fP 1i
+specifies the key event
+.IP \fIbuffer\fP 1i
+returns the translated characters
+.IP \fInbytes\fP 1i
+specifies the length of the buffer
+.IP \fIkeysym\fP 1i
+returns the computed KeySym, or None
+.IP \fIstatus\fP 1i
+specifies or returns the compose state
+.LP
+This function is similar to
+.PN XLookupString ,
+except that it maps a key event to an APL string.
+.LP
+.NH 1
+Compound Text Functions
+.LP
+The functions defined in this section are for parsing Compound Text strings,
+decomposing them into individual segments. Definitions needed to use these
+routines are in the include file
+.Pn < X11/Xmu/Xct.h >.
+.LP
+The functions in this section are \fBdeprecated\fP because they shift the
+burden for recently introduced locale encodings to the application. The
+use of the
+.PN UTF8_STRING
+text encoding provides a better alternative.
+.LP
+A Compound Text string is represented as the following type:
+.LP
+	typedef unsigned char *XctString;
+.sp
+.FD 0
+XctData XctCreate(\fIstring\fP, \fIlength\fP, \fIflags\fP)
+.br
+      XctString \fIstring\fP;
+.br
+      int \fIlength\fP;
+.br
+      XctFlags \fIflags\fP;
+.FN
+.IP \fIstring\fP 1i
+the Compound Text string
+.IP \fIlength\fP 1i
+the number of bytes in string
+.IP \fIflags\fP 1i
+parsing control flags
+.LP
+This function creates an
+.PN XctData
+structure for parsing a Compound Text
+string.  The string need not be null terminated.  The following flags are
+defined to control parsing of the string:
+.LP
+.PN XctSingleSetSegments
+-- This means that returned segments should contain
+characters from only one set (C0, C1, GL, GR).  When this is requested,
+.PN XctSegment
+is never returned by
+.PN XctNextItem ,
+instead
+.PN XctC0Segment ,
+.PN XctC1Segment ,
+.PN XctGlSegment ,
+and
+.PN XctGRSegment
+are returned.  C0 and C1
+segments are always returned as singleton characters.
+.LP
+.PN XctProvideExtensions
+-- This means that if the Compound Text string is from a
+higher version than this code is implemented to, then syntactically correct
+but unknown control sequences should be returned as
+.PN XctExtension
+items by
+.PN XctNextItem .
+If this flag is not set, and the Compound Text string version
+indicates that extensions cannot be ignored, then each unknown control
+sequence will be reported as an
+.PN XctError .
+.LP
+.PN XctAcceptC0Extensions
+-- This means that if the Compound Text string is from
+a higher version than this code is implemented to, then unknown C0
+characters should be treated as if they were legal, and returned as C0
+characters (regardless of how
+.PN XctProvideExtensions
+is set) by
+.PN XctNextItem .
+If this flag is not set, then all unknown C0 characters are treated
+according to
+.PN XctProvideExtensions .
+.LP
+.PN XctAcceptC1Extensions
+-- This means that if the Compound Text string is from
+a higher version than this code is implemented to, then unknown C1
+characters should be treated as if they were legal, and returned as C1
+characters (regardless of how
+.PN XctProvideExtensions
+is set) by
+.PN XctNextItem .
+If this flag is not set, then all unknown C1 characters are treated
+according to
+.PN XctProvideExtensions .
+.LP
+.PN XctHideDirection
+-- This means that horizontal direction changes should be
+reported as
+.PN XctHorizontal
+items by
+.PN XctNextItem .  If this flag is not set,
+then direction changes are not returned as items, but the current direction
+is still maintained and reported for other items.  The current direction is
+given as an enumeration, with the values
+.PN XctUnspecified ,
+.PN XctLeftToRight ,
+and
+.PN XctRightToLeft .
+.LP
+.PN XctFreeString
+-- This means that
+.PN XctFree
+should free the Compound Text string that is passed to
+.PN XctCreate .
+If this flag is not set, the string is not freed.
+.LP
+.PN XctShiftMultiGRToGL
+-- This means that
+.PN XctNextItem
+should translate GR
+segments on-the-fly into GL segments for the GR sets: GB2312.1980-1,
+JISX0208.1983-1, and KSC5601.1987-1.
+.sp
+.FD 0
+void XctReset(\fIdata\fP)
+.br
+      XctData \fIdata\fP;
+.FN
+.IP \fIdata\fP 1i
+specifies the Compound Text structure
+.LP
+This function resets the
+.PN XctData
+structure to reparse the Compound Text string from the beginning.
+.sp
+.FD 0
+XctResult XctNextItem(\fIdata\fP)
+.br
+      XctData \fIdata\fP;
+.FN
+.IP \fIdata\fP 1i
+specifies the Compound Text structure
+.LP
+This function parses the next ``item'' from the Compound Text string.  The
+return value indicates what kind of item is returned.  The item itself, it's
+length, and the current contextual state, are reported as components of the
+.PN XctData
+structure.
+.PN XctResult
+is an enumeration, with the following values:
+.LP
+.PN XctSegment
+-- the item contains some mixture of C0, GL, GR, and C1 characters.
+.LP
+.PN XctC0Segment
+-- the item contains only C0 characters.
+.LP
+.PN XctGLSegment
+-- the item contains only GL characters.
+.LP
+.PN XctC1Segment
+-- the item contains only C1 characters.
+.LP
+.PN XctGRSegment
+-- the item contains only GR characters.
+.LP
+.PN XctExtendedSegment
+-- the item contains an extended segment.
+.LP
+.PN XctExtension
+-- the item is an unknown extension control sequence.
+.LP
+.PN XctHorizontal
+-- the item indicates a change in horizontal direction or
+depth.  The new direction and depth are recorded in the
+.PN XctData
+structure.
+.LP
+.PN XctEndOfText
+-- The end of the Compound Text string has been reached.
+.LP
+.PN XctError
+-- the string contains a syntactic or semantic error; no further
+parsing should be performed.
+.LP
+The following state values are stored in the
+.PN XctData
+structure:
+.Ds 0
+.TA .5i 3i
+.ta .5i 3i
+	XctString item;	/* the action item */
+	int item_length;	/* the length of item in bytes */
+	int char_size;	/* the number of bytes per character in
+		 * item, with zero meaning variable */
+	char *encoding;	/* the XLFD encoding name for item */
+	XctHDirection horizontal;	/* the direction of item */
+	int horz_depth;	/* the current direction nesting depth */
+	char *GL;	/* the "{I} F" string for the current GL */
+	char *GL_encoding;	/* the XLFD encoding name for the current GL */
+	int GL_set_size;	/* 94 or 96 */
+	int GL_char_size;	/* the number of bytes per GL character */
+	char *GR;	/* the "{I} F" string for the current GR */
+	char *GR_encoding;	/* the XLFD encoding name the for current GR */
+	int GR_set_size;	/* 94 or 96 */
+	int GR_char_size;	/* the number of bytes per GR character */
+	char *GLGR_encoding;	/* the XLFD encoding name for the current
+		 * GL+GR, if known */
+.De
+.sp
+.FD 0
+void XctFree(\fIdata\fP)
+.br
+      XctData \fIdata\fP;
+.FN
+.IP \fIdata\fP 1i
+specifies the Compound Text structure
+.LP
+This function frees all data associated with the
+.PN XctData
+structure.
+.LP
+.NH 1
+CloseDisplay Hook Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/CloseHook.h >.
+.sp
+.FD 0
+CloseHook XmuAddCloseDisplayHook(\fIdpy\fP, \fIfunc\fP, \fIarg\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      int (*\fIfunc\fP)();
+.br
+      caddr_t \fIarg\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIfunc\fP 1i
+specifies the function to call at display close
+.IP \fIarg\fP 1i
+specifies arbitrary data to pass to func
+.LP
+This function adds a callback for the given display.  When the display is
+closed, the given function will be called with the given display and
+argument as:
+.LP
+	(*func)(dpy, arg)
+.LP 
+The function is declared to return an int even though the value is ignored,
+because some compilers have problems with functions returning void.
+.LP
+This routine returns NULL if it was unable to add the callback, otherwise it
+returns an opaque handle that can be used to remove or lookup the callback.
+.sp
+.FD 0
+Bool XmuRemoveCloseDisplayHook(\fIdpy\fP, \fIhandle\fP, \fIfunc\fP, \fIarg\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      CloseHook \fIhandle\fP;
+.br
+      int (*\fIfunc\fP)();
+.br
+      caddr_t \fIarg\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIhandle\fP 1i
+specifies the callback by id, or NULL
+.IP \fIfunc\fP 1i
+specifies the callback by function
+.IP \fIarg\fP 1i
+specifies the function data to match
+.LP
+This function deletes a callback that has been added with
+.PN XmuAddCloseDisplayHook .
+If handle is not NULL, it specifies the callback to
+remove, and the func and arg parameters are ignored.  If handle is NULL, the
+first callback found to match the specified func and arg will be removed.
+Returns
+.PN True
+if a callback was removed, else returns
+.PN False .
+.sp
+.FD 0
+Bool XmuLookupCloseDisplayHook(\fIdpy\fP, \fIhandle\fP, \fIfunc\fP, \fIarg\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      CloseHook \fIhandle\fP;
+.br
+      int (*\fIfunc\fP)();
+.br
+      caddr_t \fIarg\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIhandle\fP 1i
+specifies the callback by id, or NULL
+.IP \fIfunc\fP 1i
+specifies the callback by function
+.IP \fIarg\fP 1i
+specifies the function data to match
+.LP
+This function determines if a callback is installed.  If handle is not NULL,
+it specifies the callback to look for, and the func and arg parameters are
+ignored.  If handle is NULL, the function will look for any callback for the
+specified func and arg.  Returns
+.PN True
+if a matching callback exists, else returns
+.PN False .
+.LP
+.NH 1
+Display Queue Functions
+.LP
+To use the functions and types defined in this section, you should include the
+header file
+.Pn < X11/Xmu/DisplayQue.h >.
+It defines the following types:
+.LP
+.Ds 0
+.TA .5i 3i
+.ta .5i 3i
+typedef struct _XmuDisplayQueueEntry {
+	struct _XmuDisplayQueueEntry *prev, *next;
+	Display *display;
+	CloseHook closehook;
+	caddr_t data;
+} XmuDisplayQueueEntry;
+
+typedef struct _XmuDisplayQueue {
+	int nentries;
+	XmuDisplayQueueEntry *head, *tail;
+	int (*closefunc)();
+	int (*freefunc)();
+	caddr_t data;
+} XmuDisplayQueue;
+.De
+.sp
+.FD 0
+XmuDisplayQueue *XmuDQCreate(\fIclosefunc\fP, \fIfreefunc\fP, \fIdata\fP)
+.br
+      int (*\fIclosefunc\fP)();
+.br
+      int (*\fIfreefunc\fP)();
+.br
+      caddr_t \fIdata\fP;
+.FN
+.IP \fIclosefunc\fP 1i
+specifies the close function
+.IP \fIfreefunc\fP 1i
+specifies the free function
+.IP \fIdata\fP 1i
+specifies private data for the functions
+.LP
+This function creates and returns an empty
+.PN XmuDisplayQueue
+(which is really just a set of displays, but is called a queue for
+historical reasons).  The queue is initially empty, but displays
+can be added using
+.PN XmuAddDisplay .
+The data value is simply stored in the queue for use by the closefunc
+and freefunc callbacks.
+Whenever a display in the queue is closed using
+.PN XCloseDisplay ,
+the closefunc (if non-NULL) is called with the queue and the display's
+.PN XmuDisplayQueueEntry
+as follows:
+.LP
+	(*closefunc)(queue, entry)
+.LP
+The freeproc (if non-NULL) is called whenever the last display in the
+queue is closed, as follows:
+.LP
+	(*freefunc)(queue)
+.LP
+The application is responsible for actually freeing the queue, by calling
+.PN XmuDQDestroy .
+.sp
+.FD 0
+XmuDisplayQueueEntry *XmuDQAddDisplay(\fIq\fP, \fIdpy\fP, \fIdata\fP)
+.br
+      XmuDisplayQueue *\fIq\fP;
+.br
+      Display *\fIdpy\fP;
+.br
+      caddr_t \fIdata\fP;
+.FN
+.IP \fIq\fP 1i
+specifies the queue
+.IP \fIdpy\fP 1i
+specifies the display to add
+.IP \fIdata\fP 1i
+specifies private data for the free function
+.LP
+This function adds the specified display to the queue.  If successful,
+the queue entry is returned, otherwise NULL is returned.
+The data value is simply stored in the queue entry for use by the
+queue's freefunc callback.  This function does not attempt to prevent
+duplicate entries in the queue; the caller should use
+.PN XmuDQLookupDisplay
+to determine if a display has already been added to a queue.
+.sp
+.FD 0
+XmuDisplayQueueEntry *XmuDQLookupDisplay(\fIq\fP, \fIdpy\fP)
+.br
+      XmuDisplayQueue *\fIq\fP;
+.br
+      Display *\fIdpy\fP;
+.FN
+.IP \fIq\fP 1i
+specifies the queue
+.IP \fIdpy\fP 1i
+specifies the display to lookup
+.LP
+This function returns the queue entry for the specified display, or NULL if
+the display is not in the queue.
+.sp
+.FD 0
+XmuDQNDisplays(\fIq\fP)
+.FN
+.LP
+This macro returns the number of displays in the specified queue.
+.sp
+.FD 0
+Bool XmuDQRemoveDisplay(\fIq\fP, \fIdpy\fP)
+.br
+      XmuDisplayQueue *\fIq\fP;
+.br
+      Display *\fIdpy\fP;
+.FN
+.IP \fIq\fP 1i
+specifies the queue
+.IP \fIdpy\fP 1i
+specifies the display to remove
+.LP
+This function removes the specified display from the specified queue.
+No callbacks are performed.
+If the display is not found in the queue,
+.PN False
+is returned, otherwise
+.PN True
+is returned.
+.sp
+.FD 0
+Bool XmuDQDestroy(\fIq\fP, \fIdocallbacks\fP)
+.br
+      XmuDisplayQueue *\fIq\fP;
+.br
+      Bool \fIdocallbacks\fP;
+.FN
+.IP \fIq\fP 1i
+specifies the queue to destroy
+.IP \fIdocallbacks\fP 1i
+specifies whether close functions should be called
+.LP
+This function releases all memory associated with the specified queue.
+If docallbacks is
+.PN True ,
+then the queue's closefunc callback (if non-NULL) is first called
+for each display in the queue, even though
+.PN XCloseDisplay
+is not called on the display.
+.LP
+.NH 1
+Toolkit Convenience Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/Initer.h >.
+.sp
+.FD 0
+void XmuAddInitializer(\fIfunc\fP, \fIdata\fP) 
+.br
+      void (*\fIfunc\fP)();
+.br
+      caddr_t \fIdata\fP;
+.FN
+.IP \fIfunc\fP 1i
+specifies the procedure to register
+.IP \fIdata\fP 1i
+specifies private data for the procedure
+.LP
+This function registers a procedure, to be invoked the first time
+.PN XmuCallInitializers
+is called on a given application context.  The procedure
+is called with the application context and the specified data:
+.LP
+	(*func)(app_con, data)
+.sp
+.FD 0
+void XmuCallInitializers(\fIapp_con\fP)
+.br
+      XtAppContext \fIapp_con\fP;
+.FN
+.IP \fIapp_con\fP 1i
+specifies the application context to initialize
+.LP
+This function calls each of the procedures that have been registered with
+.PN XmuAddInitializer ,
+if this is the first time the application context has been passed to
+.PN XmuCallInitializers .
+Otherwise, this function does nothing.
+.LP
+.NH 1
+Standard Colormap Functions
+.LP
+To use the functions defined in this section, you should include the header
+file
+.Pn < X11/Xmu/StdCmap.h >.
+.sp
+.FD 0
+Status XmuAllStandardColormaps(\fIdpy\fP)
+.br
+      Display *\fIdpy\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.LP
+To create all of the appropriate standard colormaps for every visual of
+every screen on a given display, use
+.PN XmuAllStandardColormaps .
+.LP
+This function defines and retains as permanent resources all standard
+colormaps which are meaningful for the visuals of each screen of the
+display.  It returns 0 on failure, non-zero on success.  If the property of
+any standard colormap is already defined, this function will redefine it.
+.LP
+This function is intended to be used by window managers or a special client
+at the start of a session.
+.LP
+The standard colormaps of a screen are defined by properties associated with
+the screen's root window.  The property names of standard colormaps are
+predefined, and each property name except RGB_DEFAULT_MAP may describe at
+most one colormap.
+.LP  
+The standard colormaps are: RGB_BEST_MAP, RGB_RED_MAP, RGB_GREEN_MAP,
+RGB_BLUE_MAP, RGB_DEFAULT_MAP, and RGB_GRAY_MAP.  Therefore a screen may
+have at most 6 standard colormap properties defined.
+.LP
+A standard colormap is associated with a particular visual of the screen.  A
+screen may have multiple visuals defined, including visuals of the same
+class at different depths.  Note that a visual id might be repeated for more
+than one depth, so the visual id and the depth of a visual identify the
+visual.  The characteristics of the visual will determine which standard
+colormaps are meaningful under that visual, and will determine how the
+standard colormap is defined.  Because a standard colormap is associated
+with a specific visual, there must be a method of determining which visuals
+take precedence in defining standard colormaps.
+.LP
+The method used here is: for the visual of greatest depth, define all
+standard colormaps meaningful to that visual class, according to this order
+of (descending) precedence:
+.PN DirectColor ;
+.PN PseudoColor ;
+.PN TrueColor
+and
+.PN GrayScale ;
+and finally
+.PN StaticColor
+and
+.PN StaticGray .
+.LP
+This function allows success, on a per screen basis.  For example, if a map
+on screen 1 fails, the maps on screen 0, created earlier, will remain.
+However, none on screen 1 will remain.  If a map on screen 0 fails, none
+will remain.
+.LP
+See
+.PN XmuVisualStandardColormaps
+for which standard colormaps are meaningful under these classes of visuals.
+.sp
+.FD 0
+Status XmuVisualStandardColormaps(\fIdpy\fP, \fIscreen\fP, \fIvisualid\fP, \fIdepth\fP, \fIreplace\fP, \fIretain\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      int \fIscreen\fP;
+.br
+      VisualID \fIvisualid\fP;
+.br
+      unsigned int \fIdepth\fP;
+.br
+      Bool \fIreplace\fP;
+.br
+      Bool \fIretain\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIscreen\fP 1i
+specifies the screen of the display
+.IP \fIvisualid\fP 1i
+specifies the visual type
+.IP \fIdepth\fP 1i
+specifies the visual depth
+.IP \fIreplace\fP 1i
+specifies whether or not to replace
+.IP \fIretain\fP 1i
+specifies whether or not to retain
+.LP
+To create all of the appropriate standard colormaps for a given visual on a
+given screen, use
+.PN XmuVisualStandardColormaps .
+.LP
+This function defines all appropriate standard colormap properties for the
+given visual.  If replace is
+.PN True ,
+any previous definition will be removed.
+If retain is
+.PN True ,
+new properties will be retained for the duration of the
+server session.  This function returns 0 on failure, non-zero on success.
+On failure, no new properties will be defined, but old ones may have been
+removed if replace was True.
+.LP
+Not all standard colormaps are meaningful to all visual classes.  This
+routine will check and define the following properties for the following
+classes, provided that the size of the colormap is not too small.  For
+.PN DirectColor
+and
+.PN PseudoColor :
+RGB_DEFAULT_MAP, RGB_BEST_MAP, RGB_RED_MAP,
+RGB_GREEN_MAP, RGB_BLUE_MAP, and RGB_GRAY_MAP.  For
+.PN TrueColor
+and
+.PN StaticColor :
+RGB_BEST_MAP.  For
+.PN GrayScale
+and
+.PN StaticGray :
+RGB_GRAY_MAP.
+.sp
+.FD 0
+Status XmuLookupStandardColormap(\fIdpy\fP, \fIscreen\fP, \fIvisualid\fP, \fIdepth\fP, \fIproperty\fP, \fIreplace\fP, \fIretain\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      int \fIscreen\fP;
+.br
+      VisualID \fIvisualid\fP;
+.br
+      unsigned int \fIdepth\fP;
+.br
+      Atom \fIproperty\fP;
+.br
+      Bool \fIreplace\fP;
+.br
+      Bool \fIretain\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIscreen\fP 1i
+specifies the screen of the display
+.IP \fIvisualid\fP 1i
+specifies the visual type
+.IP \fIdepth\fP 1i
+specifies the visual depth
+.IP \fIproperty\fP 1i
+specifies the standard colormap property
+.IP \fIreplace\fP 1i
+specifies whether or not to replace
+.IP \fIretain\fP 1i
+specifies whether or not to retain
+.LP
+To create a standard colormap if one does not currently exist, or replace
+the currently existing standard colormap, use
+.PN XmuLookupStandardColormap .
+.LP
+Given a screen, a visual, and a property, this function will determine the
+best allocation for the property under the specified visual, and determine
+the whether to create a new colormap or to use the default colormap of the
+screen.
+.LP
+If replace is True, any previous definition of the property will be
+replaced.  If retain is True, the property and the colormap will be made
+permanent for the duration of the server session.  However, pre-existing
+property definitions which are not replaced cannot be made permanent by a
+call to this function; a request to retain resources pertains to newly
+created resources.
+.LP
+This function returns 0 on failure, non-zero on success.  A request to
+create a standard colormap upon a visual which cannot support such a map is
+considered a failure.  An example of this would be requesting any standard
+colormap property on a monochrome visual, or, requesting an RGB_BEST_MAP on
+a display whose colormap size is 16.
+.sp
+.FD 0
+Status XmuGetColormapAllocation(\fIvinfo\fP, \fIproperty\fP, \fIred_max\fP, \fIgreen_max\fP, \fIblue_max\fP)
+.br
+      XVisualInfo *\fIvinfo\fP;
+.br
+      Atom \fIproperty\fP;
+.br
+      unsigned long *\fIred_max\fP, *\fIgreen_max\fP, *\fIblue_max\fP;
+.FN
+.IP \fIvinfo\fP 1i
+specifies visual information for a chosen visual
+.IP \fIproperty\fP 1i
+specifies one of the standard colormap property names
+.IP \fIred_max\fP 1i
+returns maximum red value 
+.IP \fIgreen_max\fP 1i
+returns maximum green value
+.IP \fIblue_max\fP 1i
+returns maximum blue value
+.LP
+To determine the best allocation of reds, greens, and blues in a standard
+colormap, use
+.PN XmuGetColormapAllocation .
+.LP
+.PN XmuGetColormapAllocation
+returns 0 on failure, non-zero on success.  It is
+assumed that the visual is appropriate for the colormap property.
+.sp
+.FD 0
+XStandardColormap *XmuStandardColormap(\fIdpy\fP, \fIscreen\fP, \fIvisualid\fP, \fIdepth\fP, \fIproperty\fP,
+                                       \fIcmap\fP, \fIred_max\fP, \fIgreen_max\fP, \fIblue_max\fP)
+.br
+      Display \fIdpy\fP;
+.br
+      int \fIscreen\fP;
+.br
+      VisualID \fIvisualid\fP;
+.br
+      unsigned int \fIdepth\fP;
+.br
+      Atom \fIproperty\fP;
+.br
+      Colormap \fIcmap\fP;
+.br
+      unsigned long \fIred_max\fP, \fIgreen_max\fP, \fIblue_max\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIscreen\fP 1i
+specifies the screen of the display
+.IP \fIvisualid\fP 1i
+specifies the visual type
+.IP \fIdepth\fP 1i
+specifies the visual depth
+.IP \fIproperty\fP 1i
+specifies the standard colormap property
+.IP \fIcmap\fP 1i
+specifies the colormap ID, or None
+.IP \fIred_max\fP 1i
+specifies the red allocation
+.IP \fIgreen_max\fP 1i
+specifies the green allocation
+.IP \fIblue_max\fP 1i
+specifies the blue allocation
+.LP
+To create any one standard colormap, use
+.PN XmuStandardColormap .
+.LP
+This function creates a standard colormap for the given screen, visualid,
+and visual depth, with the given red, green, and blue maximum values, with
+the given standard property name.  Upon success, it returns a pointer to an
+.PN XStandardColormap
+structure which describes the newly created colormap.
+Upon failure, it returns NULL.
+If cmap is the default colormap of the screen, the standard colormap
+will be defined on the default colormap; otherwise a new colormap is created.
+.LP 
+Resources created by this function are not made permanent; that is the
+caller's responsibility.
+.sp
+.FD 0
+Status XmuCreateColormap(\fIdpy\fP, \fIcolormap\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      XStandardColormap *\fIcolormap\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection under which the map is created
+.IP \fIcolormap\fP 1i
+specifies the map to be created
+.LP
+To create any one colormap which is described by an
+.PN XStandardColormap
+structure, use
+.PN XmuCreateColormap .
+.LP
+This function returns 0 on failure, and non-zero on success.  The base_pixel
+of the colormap is set on success.  Resources created by this function are
+not made permanent.  No argument error checking is provided; use at your own
+risk.
+.LP
+All colormaps are created with read-only allocations, with the exception of
+read-only allocations of colors which fail
+to return the expected pixel value, and these are individually defined as
+read/write allocations.  This is done so that all the cells defined in the
+colormap are contiguous, for use in image processing.  This typically
+happens with White and Black in the default map.
+.LP 
+Colormaps of static visuals are considered to be successfully created if the
+map of the static visual matches the definition given in the standard
+colormap structure.
+.sp
+.FD 0
+void XmuDeleteStandardColormap(\fIdpy\fP, \fIscreen\fP, \fIproperty\fP)
+.br
+      Display *\fIdpy\fP;
+.br
+      int \fIscreen\fP;
+.br
+      Atom \fIproperty\fP;
+.FN
+.IP \fIdpy\fP 1i
+specifies the connection to the X server
+.IP \fIscreen\fP 1i
+specifies the screen of the display
+.IP \fIproperty\fP 1i
+specifies the standard colormap property
+.LP
+To remove any standard colormap property, use
+.PN XmuDeleteStandardColormap .
+This function will remove the specified property from the specified screen,
+releasing any resources used by the colormap(s) of the property, if
+possible.
+.LP
+.NH 1
+Widget Description Functions
+.LP
+The functions defined in this section are for building a description of 
+the structure of and resources associated with a hierarchy of widget classes.
+This package is typically used by applications that wish to manipulate the 
+widget set itself.
+.LP
+The definitions needed to use these interfaces are in the header file
+.Pn < X11/Xmu/WidgetNode.h >.
+The following function must be called before any of the others described
+below:
+.sp
+.FD 0
+void XmuWnInitializeNodes(\fInode_array\fP, \fInum_nodes\fP)
+.br
+      XmuWidgetNode *\fInode_array\fP;
+.br
+      int \fInum_nodes\fP;
+.FN
+.IP \fInode_array\fP 1i
+specifies a list of widget classes, in alphabetical order
+.IP \fInum_nodes\fP 1i
+specfies the number of widget classes in the node array
+.LP
+To determine the resources provided by a widget class or classes, use
+.sp
+.FD 0
+void XmuWnFetchResources(\fInode\fP, \fItoplevel\fP, \fItop_node\fP)
+.br
+      XmuWidgetNode *\fInode\fP;
+.br
+      Widget \fItoplevel\fP;
+.br
+      XmuWidgetNode *\fItop_node\fP;
+.FN
+.IP \fInode\fP 1i
+specifies the widget class for which resources should be obtained.
+.IP \fItoplevel\fP 1i
+specifies the widget that should be used for creating an instance of \fInode\fP
+from which resources are extracted.  This is typically the value returned
+by \fBXtAppInitialize\fP.
+.IP \fItop_node\fP 1i
+specifies the ancestor of \fInode\fP that should be treated as the root
+of the widget inheritance tree (used in determining which ancestor contributed 
+which resources).
+.LP
+Each widget class inherits the resources of its parent.  To count the number
+of resources contributed by a particular widget class, use:
+.sp
+.FD 0
+int XmuWnCountOwnedResources(\fInode\fP, \fIowner_node\fP, \fIconstraints\fP)
+.br
+      XmuWidgetNode *\fInode\fP;
+.br
+      XmuWidgetNode *\fIowner_node\fP;
+.br
+      Bool \fIconstraints\fP;
+.FN
+.IP \fInode\fP 1i
+specifies the widget class whose resources are being examined.
+.IP \fIowner_node\fP 1i
+specifies the widget class of the ancestor of \fInode\fP whose contributions
+are being counted.
+.IP \fIconstraints\fP 1i
+specifies whether or not to count constraint resources or normal resources.
+.LP
+This routine returns the number of resources contributed (or ``owned'') by
+the specified widget class.
+.sp
+.FD 0
+XmuWidgetNode *XmuWnNameToNode(\fInode_list\fP, \fInum_nodes\fP, \fIname\fP)
+.br
+      XmuWidgetNode *\fInode_list\fP;
+      int \fInum_nodes\fP;
+      char *\fIname\fP;
+.FN
+.IP \fInode_list\fP 1i
+specifies a list of widget nodes
+.IP \fInum_nodes\fP 1i
+specifies the number of nodes in the list
+.IP \fIname\fP 1i
+specifies the name of the widget class in the node list to search for
+.LP
+This function returns the WidgetNode in the list that matches the given
+widget name or widget class name.  If no match is found, it returns NULL.
+.LP
+.NH 1
+Participation in the Editres Protocol
+.LP
+To participate in the editres protocol, applications which are not based
+on the Athena widget set should include the header file
+.Pn < X11/Xmu/Editres.h >.
+.LP
+To participate in the editres protocol, Xt applications which do not rely
+on the Athena widget set should register the editres protocol handler on 
+each shell widget in the application, specifying an event mask of 0, 
+nonmaskable events, and client data as NULL:
+.LP
+XtAddEventHandler(shell, (EventMask) 0, True, _XEditResCheckMessages, NULL);


More information about the xorg-commit mailing list