man-pages/man3/XcupQueryVersion.3.html
2021-03-31 01:06:50 +01:00

102 lines
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of XcupQueryVersion</TITLE>
</HEAD><BODY>
<H1>XcupQueryVersion</H1>
Section: X FUNCTIONS (3)<BR>Updated: libXext 1.3.4<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
XcupQueryVersion - Returns TOG-CUP protocol version supported by the X server
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<PRE>
<B>cc</B> [ <I>flag</I> ... ] <I>file</I> ... -<B>lXext</B> [ <I>library</I> ... ]
#include &lt;<A HREF="file:///usr/include/X11/extensions/Xcup.h">X11/extensions/Xcup.h</A>&gt;
<DL COMPACT>
<DT id="1"><DD>Status <B>XcupQueryVersion</B>(Display *<I>display</I>,
int *<I>major_version_return</I>, int *<I>minor_version_return</I>);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DL>
</PRE><A NAME="lbAD">&nbsp;</A>
<H2>ARGUMENTS</H2>
<DL COMPACT>
<DT id="2"><I>display</I><DD>
Specifies the connection to the X server
<DT id="3"><I>major_version_return</I><DD>
Returns the major version supported by the server
<DT id="4"><I>minor_version_return</I><DD>
Returns the minor version supported by the server
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<I>XcupQueryVersion</I>
sets
<I>major_version_return</I>
and
<I>minor_version_return</I>
to the major and minor TOG-CUP protocol version supported by the
server. If the TOG-CUP library is compatible with the version returned
by the server, it returns nonzero. If the server does not support the TOG-CUP
extension, or if there was an error during communications with the
server, or if the server and library protocol versions are
incompatible, it returns zero. No other Xcup functions may be called
before this function. If a client violates this rule, the effects of
all subsequent Xcup calls that it makes are undefined.
<P>
To get the list of reserved colormap entries, use
<I>XcupGetReservedColormapEntries.</I>
<P>
To allocate one or more read-only color cells with RGB values, use
<I>XcupStoreColors.</I>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?3Xext+XcupGetReservedColormapEntries">XcupGetReservedColormapEntries</A></B>(3Xext),
<B><A HREF="/cgi-bin/man/man2html?3Xext+XcupStoreColors">XcupStoreColors</A></B>(3Xext),
<BR>
<I>Colormap Utilization Policy and Extension</I>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">ARGUMENTS</A><DD>
<DT id="8"><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT id="9"><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:00 GMT, March 31, 2021
</BODY>
</HTML>