screenint.h revision a2760a4d593af57a19ec32cdfd1723b68495df8c
0N/A/***********************************************************
0N/A
0N/ACopyright 1987, 1998 The Open Group
0N/A
0N/APermission to use, copy, modify, distribute, and sell this software and its
0N/Adocumentation for any purpose is hereby granted without fee, provided that
0N/Athe above copyright notice appear in all copies and that both that
0N/Acopyright notice and this permission notice appear in supporting
0N/Adocumentation.
0N/A
0N/AThe above copyright notice and this permission notice shall be included in
0N/Aall copies or substantial portions of the Software.
0N/A
0N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0N/AOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0N/A
0N/AExcept as contained in this notice, the name of The Open Group shall not be
0N/Aused in advertising or otherwise to promote the sale, use or other dealings
0N/Ain this Software without prior written authorization from The Open Group.
0N/A
0N/A
0N/ACopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
0N/A
0N/A All Rights Reserved
0N/A
0N/APermission to use, copy, modify, and distribute this software and its
0N/Adocumentation for any purpose and without fee is hereby granted,
0N/Aprovided that the above copyright notice appear in all copies and that
0N/Aboth that copyright notice and this permission notice appear in
0N/Asupporting documentation, and that the name of Digital not be
0N/Aused in advertising or publicity pertaining to distribution of the
0N/Asoftware without specific, written prior permission.
0N/A
0N/ADIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0N/AALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0N/ADIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0N/AANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0N/AWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0N/AARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0N/ASOFTWARE.
0N/A
0N/A******************************************************************/
0N/A
0N/A#ifndef SCREENINT_H
0N/A#define SCREENINT_H
0N/A
0N/A#include "misc.h"
0N/A
0N/Atypedef struct _PixmapFormat *PixmapFormatPtr;
0N/Atypedef struct _Visual *VisualPtr;
0N/Atypedef struct _Depth *DepthPtr;
0N/Atypedef struct _Screen *ScreenPtr;
0N/A
0N/Aextern void ResetScreenPrivates(void);
0N/A
0N/Aextern int AllocateScreenPrivateIndex(void);
0N/A
0N/Aextern void ResetWindowPrivates(void);
0N/A
0N/Aextern int AllocateWindowPrivateIndex(void);
0N/A
0N/Aextern Bool AllocateWindowPrivate(
0N/A ScreenPtr /* pScreen */,
0N/A int /* index */,
0N/A unsigned /* amount */);
0N/A
0N/Aextern void ResetGCPrivates(void);
0N/A
0N/Aextern int AllocateGCPrivateIndex(void);
0N/A
0N/Aextern Bool AllocateGCPrivate(
0N/A ScreenPtr /* pScreen */,
0N/A int /* index */,
0N/A unsigned /* amount */);
0N/A
0N/Aextern int AddScreen(
0N/A Bool (* /*pfnInit*/)(
0N/A int /*index*/,
0N/A ScreenPtr /*pScreen*/,
0N/A int /*argc*/,
0N/A char ** /*argv*/),
0N/A int /*argc*/,
0N/A char** /*argv*/);
0N/A
0N/A#ifdef PIXPRIV
0N/A
0N/Aextern void ResetPixmapPrivates(void);
0N/A
0N/Aextern int AllocatePixmapPrivateIndex(void);
0N/A
0N/Aextern Bool AllocatePixmapPrivate(
0N/A ScreenPtr /* pScreen */,
0N/A int /* index */,
0N/A unsigned /* amount */);
0N/A
0N/A#endif /* PIXPRIV */
0N/A
0N/Aextern void ResetColormapPrivates(void);
0N/A
0N/A
0N/Atypedef struct _ColormapRec *ColormapPtr;
0N/Atypedef int (*InitCmapPrivFunc)(ColormapPtr, int);
0N/A
0N/Aextern int AllocateColormapPrivateIndex(
0N/A InitCmapPrivFunc /* initPrivFunc */);
0N/A
0N/A#endif /* SCREENINT_H */
0N/A