<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<!-- lifted from troff+man by doclifter -->
<refentry id='allplanesman'>
<!--  Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium -->

<!--  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 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 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. -->

<!--  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. -->

<!--  Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by -->
<!--  Digital Equipment Corporation -->

<!--  Portions Copyright \(co 1990, 1991 by -->
<!--  Tektronix, Inc. -->

<!--  Permission to use, copy, modify and distribute this documentation for -->
<!--  any purpose and without fee is hereby granted, provided that the above -->
<!--  copyright notice appears in all copies and that both that copyright notice -->
<!--  and this permission notice appear in all copies, and that the names of -->
<!--  Digital and Tektronix not be used in in advertising or publicity pertaining -->
<!--  to this documentation without specific, written prior permission. -->
<!--  Digital and Tektronix makes no representations about the suitability -->
<!--  of this documentation for any purpose. -->
<!--  It is provided ``as is'' without express or implied warranty. -->
<!--   -->
<!--  $XFree86: xc/doc/man/X11/AllPlanes.man,v 1.3 2003/04/28 22:17:53 herrb Exp $ -->

<!-- .na -->
<!-- Ds listing suppressed (not used) -->
<!-- De listing suppressed (not used) -->
<!-- FD listing suppressed (not used) -->
<!-- FN listing suppressed (not used) -->
<!-- IN listing suppressed (not used) -->
<!-- C{ listing suppressed (not used) -->
<!-- C} listing suppressed (not used) -->
<!-- Pn listing suppressed (not used) -->
<!-- hN listing suppressed (not used) -->
<!-- NT listing suppressed (not used) -->
<!-- .		\" Note End \-\- doug kraft 3/85 -->
<!-- NE listing suppressed (not used) -->
<!-- .ny0 -->
<refmeta>
<refentrytitle>AllPlanes</refentrytitle>
<manvolnum>3X11</manvolnum>
<refmiscinfo class='date'>__xorgversion__</refmiscinfo>
<refmiscinfo class='source'>XLIB FUNCTIONS</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>AllPlanes</refname>
<refname>BlackPixel</refname>
<refname>WhitePixel</refname>
<refname>ConnectionNumber</refname>
<refname>DefaultColormap</refname>
<refname>DefaultDepth</refname>
<refname>XListDepths</refname>
<refname>DefaultGC</refname>
<refname>DefaultRootWindow</refname>
<refname>DefaultScreenOfDisplay</refname>
<refname>DefaultScreen</refname>
<refname>DefaultVisual</refname>
<refname>DisplayCells</refname>
<refname>DisplayPlanes</refname>
<refname>DisplayString</refname>
<refname>XMaxRequestSize</refname>
<refname>XExtendedMaxRequestSize</refname>
<refname>LastKnownRequestProcessed</refname>
<refname>NextRequest</refname>
<refname>ProtocolVersion</refname>
<refname>ProtocolRevision</refname>
<refname>QLength</refname>
<refname>RootWindow</refname>
<refname>ScreenCount</refname>
<refname>ScreenOfDisplay</refname>
<refname>ServerVendor</refname>
<refname>VendorRelease</refname>
<refpurpose>Display macros and functions</refpurpose>
</refnamediv>
<!-- body begins here -->

<refsect1 id='syntax'><title>SYNTAX</title>
<para>unsigned long AllPlanes;</para> 

<para>unsigned long BlackPixel&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, int &hairsp;<emphasis remap='I'>screen_number</emphasis>&hairsp;);</para>

<para>unsigned long WhitePixel&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, int &hairsp;<emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>int ConnectionNumber&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>Colormap DefaultColormap&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;,
&hairsp;int <emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>int DefaultDepth&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, &hairsp;int <emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>int *XListDepths&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>, int <emphasis remap='I'>screen_number</emphasis>, int
<emphasis remap='I'>count_return</emphasis>&hairsp;);</para> 

<para>GC DefaultGC&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, &hairsp;int <emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>Window DefaultRootWindow&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>Screen *DefaultScreenOfDisplay&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>int DefaultScreen&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>Visual *DefaultVisual&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, &hairsp;int
<emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>int DisplayCells&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, &hairsp;int <emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>int DisplayPlanes&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, &hairsp;int <emphasis remap='I'>screen_number</emphasis>&hairsp;);</para>

<para>char *DisplayString&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para>

<para>long XMaxRequestSize(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;)</para>

<para>long XExtendedMaxRequestSize(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;)</para>

<para>unsigned long LastKnownRequestProcessed&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>unsigned long NextRequest&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>int ProtocolVersion&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>int ProtocolRevision&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>int QLength&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>Window RootWindow&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;, &hairsp;int <emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>int ScreenCount&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;);</para> 

<para>Screen *ScreenOfDisplay&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>, int
<emphasis remap='I'>screen_number</emphasis>&hairsp;);</para> 

<para>char *ServerVendor&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;)</para>

<para>int VendorRelease&hairsp;(&hairsp;Display *<emphasis remap='I'>display</emphasis>&hairsp;)</para>
</refsect1>

<refsect1 id='arguments'><title>ARGUMENTS</title>
<variablelist remap='IP'>
  <varlistentry>
  <term><emphasis remap='I'>display</emphasis></term>
  <listitem>
<para>Specifies the connection to the X server.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>screen_number</emphasis></term>
  <listitem>
<para>Specifies the appropriate screen number on the host server.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>count_return</emphasis></term>
  <listitem>
<para>Returns the number of depths.</para>
  </listitem>
  </varlistentry>
</variablelist>
</refsect1>

<refsect1 id='description'><title>DESCRIPTION</title>
<para>The
<emphasis remap='I'>&hairsp;AllPlanes&hairsp;</emphasis>
macro returns a value with all bits set to 1 suitable for use in a plane 
argument to a procedure.</para>

<para>The
<emphasis remap='I'>&hairsp;BlackPixel&hairsp;</emphasis>
macro returns the black pixel value for the specified screen.</para>

<para>The
<emphasis remap='I'>&hairsp;WhitePixel&hairsp;</emphasis>
macro returns the white pixel value for the specified screen.</para>

<para>The
<emphasis remap='I'>&hairsp;ConnectionNumber&hairsp;</emphasis>
macro returns a connection number for the specified display.</para>

<para>The
<emphasis remap='I'>&hairsp;DefaultColormap&hairsp;</emphasis>
macro returns the default colormap ID for allocation on the specified screen.</para>

<para>The
<emphasis remap='I'>&hairsp;DefaultDepth&hairsp;</emphasis>
macro returns the depth (number of planes) of the default root window for the
specified screen.</para>

<para>The
<emphasis remap='I'>&hairsp;XListDepths&hairsp;</emphasis>
function returns the array of depths 
that are available on the specified screen.
If the specified screen_number is valid and sufficient memory for the array
can be allocated,
<emphasis remap='I'>&hairsp;XListDepths&hairsp;</emphasis>
sets count_return to the number of available depths.
Otherwise, it does not set count_return and returns NULL.
To release the memory allocated for the array of depths, use
<emphasis remap='I'>&hairsp;XFree&hairsp;</emphasis>.</para>

<para>The
<emphasis remap='I'>&hairsp;DefaultGC&hairsp;</emphasis>
macro returns the default GC for the root window of the
specified screen.</para>

<para>The
<emphasis remap='I'>&hairsp;DefaultRootWindow&hairsp;</emphasis>
macro returns the root window for the default screen.</para>

<para>The
<emphasis remap='I'>&hairsp;DefaultScreenOfDisplay&hairsp;</emphasis>
macro returns the default screen of the specified display.</para>

<para>The
<emphasis remap='I'>&hairsp;DefaultScreen&hairsp;</emphasis>
macro returns the default screen number referenced in the
<emphasis remap='I'>&hairsp;XOpenDisplay&hairsp;</emphasis>
routine.</para>

<para>The
<emphasis remap='I'>&hairsp;DefaultVisual&hairsp;</emphasis>
macro returns the default visual type for the specified screen.</para>

<para>The
<emphasis remap='I'>&hairsp;DisplayCells&hairsp;</emphasis>
macro returns the number of entries in the default colormap.</para>

<para>The
<emphasis remap='I'>&hairsp;DisplayPlanes&hairsp;</emphasis>
macro returns the depth of the root window of the specified screen.</para>

<para>The
<emphasis remap='I'>&hairsp;DisplayString&hairsp;</emphasis>
macro returns the string that was passed to
<emphasis remap='I'>&hairsp;XOpenDisplay&hairsp;</emphasis>
when the current display was opened.</para>

<para>The
<emphasis remap='I'>&hairsp;XMaxRequestSize&hairsp;</emphasis>
function returns the maximum request size (in 4-byte units) supported
by the server without using an extended-length protocol encoding.
Single protocol requests to the server can be no larger than this size
unless an extended-length protocol encoding is supported by the server.
The protocol guarantees the size to be no smaller than 4096 units
(16384 bytes).
Xlib automatically breaks data up into multiple protocol requests
as necessary for the following functions:
<emphasis remap='I'>&hairsp;XDrawPoints&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XDrawRectangles&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XDrawSegments&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XFillArcs&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XFillRectangles&hairsp;</emphasis>,
and 
<emphasis remap='I'>&hairsp;XPutImage&hairsp;</emphasis>.</para>

<para>The
<emphasis remap='I'>&hairsp;XExtendedMaxRequestSize&hairsp;</emphasis>
function returns zero if the specified display does not support an
extended-length protocol encoding; otherwise,
it returns the maximum request size (in 4-byte units) supported
by the server using the extended-length encoding.
The Xlib functions
<emphasis remap='I'>&hairsp;XDrawLines&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XDrawArcs&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XFillPolygon&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XChangeProperty&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XSetClipRectangles&hairsp;</emphasis>,
and
<emphasis remap='I'>&hairsp;XSetRegion&hairsp;</emphasis>
will use the extended-length encoding as necessary, if supported
by the server.  Use of the extended-length encoding in other Xlib
functions (for example,
<emphasis remap='I'>&hairsp;XDrawPoints&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XDrawRectangles&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XDrawSegments&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XFillArcs&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XFillRectangles&hairsp;</emphasis>,
<emphasis remap='I'>&hairsp;XPutImage&hairsp;</emphasis>)
is permitted but not required; an Xlib implementation may choose to
split the data across multiple smaller requests instead.</para>

<para>The
<emphasis remap='I'>&hairsp;LastKnownRequestProcessed&hairsp;</emphasis>
macro extracts the full serial number of the last request known by Xlib
to have been processed by the X server.</para>

<para>The
<emphasis remap='I'>&hairsp;NextRequest&hairsp;</emphasis>
macro extracts the full serial number that is to be used for the next request.</para>

<para>The
<emphasis remap='I'>&hairsp;ProtocolVersion&hairsp;</emphasis>
macro returns the major version number (11) of the X protocol associated with
the connected display.</para>

<para>The
<emphasis remap='I'>&hairsp;ProtocolRevision&hairsp;</emphasis>
macro returns the minor protocol revision number of the X server.</para>

<para>The
<emphasis remap='I'>&hairsp;QLength&hairsp;</emphasis>
macro returns the length of the event queue for the connected display.</para>

<para>The
<emphasis remap='I'>&hairsp;RootWindow&hairsp;</emphasis>
macro returns the root window.</para>

<para>The
<emphasis remap='I'>&hairsp;ScreenCount&hairsp;</emphasis>
macro returns the number of available screens.</para>

<para>The
<emphasis remap='I'>&hairsp;ScreenOfDisplay&hairsp;</emphasis>
macro returns a pointer to the screen of the specified display.</para>

<para>The
<emphasis remap='I'>&hairsp;ServerVendor&hairsp;</emphasis>
macro returns a pointer to a null-terminated string that provides
some identification of the owner of the X server implementation.</para>

<para>The
<emphasis remap='I'>&hairsp;VendorRelease&hairsp;</emphasis>
macro returns a number related to a vendor's release of the X server.</para>
</refsect1>

<refsect1 id='see_also'><title>SEE ALSO</title>
<para>BlackPixelOfScreen(3X11),
ImageByteOrder(3X11),
IsCursorKey(3X11),
XOpenDisplay(3X11)
<!-- .br -->
<userinput>Xlib - C Language X Interface</userinput></para>
</refsect1>
</refentry>

