/***********************************************************
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
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
OPEN GROUP 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 Open Group 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 Open Group.
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
#ifndef SCREENINTSTRUCT_H
#define SCREENINTSTRUCT_H
#include "screenint.h"
#include "regionstr.h"
#include "bstore.h"
#include "colormap.h"
#include "cursor.h"
#include "validate.h"
#include "dix.h"
#include "privates.h"
typedef struct _PixmapFormat {
unsigned char depth;
unsigned char bitsPerPixel;
unsigned char scanlinePad;
typedef struct _Visual {
short class;
short bitsPerRGBValue;
short ColormapEntries;
* imply that the screen has this many planes.
* it may have more or fewer */
} VisualRec;
typedef struct _Depth {
unsigned char depth;
short numVids;
} DepthRec;
typedef struct _ScreenSaverStuff {
char blanked;
ScreenPtr /*pScreen*/,
int /*xstate*/,
Bool /*force*/);
/*
* There is a typedef for each screen function pointer so that code that
* needs to declare a screen function pointer (e.g. in a screen private
* or as a local variable) can easily do so and retain full type checking.
*/
int /*index*/,
ScreenPtr /*pScreen*/);
typedef void (* QueryBestSizeProcPtr)(
int /*class*/,
unsigned short * /*pwidth*/,
unsigned short * /*pheight*/,
ScreenPtr /*pScreen*/);
ScreenPtr /*pScreen*/,
int /*on*/);
typedef void (* GetImageProcPtr)(
DrawablePtr /*pDrawable*/,
int /*sx*/,
int /*sy*/,
int /*w*/,
int /*h*/,
unsigned int /*format*/,
unsigned long /*planeMask*/,
char * /*pdstLine*/);
typedef void (* GetSpansProcPtr)(
DrawablePtr /*pDrawable*/,
int /*wMax*/,
DDXPointPtr /*ppt*/,
int* /*pwidth*/,
int /*nspans*/,
char * /*pdstStart*/);
typedef void (* SourceValidateProcPtr)(
DrawablePtr /*pDrawable*/,
int /*x*/,
int /*y*/,
int /*width*/,
int /*height*/);
WindowPtr /*pWindow*/);
WindowPtr /*pWindow*/);
WindowPtr /*pWindow*/,
int /*x*/,
int /*y*/);
WindowPtr /*pWindow*/,
unsigned long /*mask*/);
WindowPtr /*pWindow*/);
WindowPtr /*pWindow*/);
typedef void (* RestackWindowProcPtr)(
WindowPtr /*pWindow*/,
WindowPtr /*pOldNextSib*/);
typedef int (* ValidateTreeProcPtr)(
WindowPtr /*pParent*/,
WindowPtr /*pChild*/,
VTKind /*kind*/);
typedef void (* PostValidateTreeProcPtr)(
WindowPtr /*pParent*/,
WindowPtr /*pChild*/,
VTKind /*kind*/);
typedef void (* WindowExposuresProcPtr)(
WindowPtr /*pWindow*/,
RegionPtr /*prgn*/,
RegionPtr /*other_exposed*/);
typedef void (* CopyWindowProcPtr)(
WindowPtr /*pWindow*/,
DDXPointRec /*ptOldOrg*/,
RegionPtr /*prgnSrc*/);
typedef void (* ClearToBackgroundProcPtr)(
WindowPtr /*pWindow*/,
int /*x*/,
int /*y*/,
int /*w*/,
int /*h*/,
Bool /*generateExposures*/);
typedef void (* ClipNotifyProcPtr)(
WindowPtr /*pWindow*/,
int /*dx*/,
int /*dy*/);
/* pixmap will exist only for the duration of the current rendering operation */
/* pixmap will be the backing pixmap for a redirected window */
/* pixmap will contain a glyph */
ScreenPtr /*pScreen*/,
int /*width*/,
int /*height*/,
int /*depth*/,
unsigned /*usage_hint*/);
PixmapPtr /*pPixmap*/);
typedef void (* SaveDoomedAreasProcPtr)(
WindowPtr /*pWindow*/,
RegionPtr /*prgnSave*/,
int /*xorg*/,
int /*yorg*/);
WindowPtr /*pWindow*/,
RegionPtr /*prgnRestore*/);
typedef void (* ExposeCopyProcPtr)(
WindowPtr /*pSrc*/,
DrawablePtr /*pDst*/,
GCPtr /*pGC*/,
RegionPtr /*prgnExposed*/,
int /*srcx*/,
int /*srcy*/,
int /*dstx*/,
int /*dsty*/,
unsigned long /*plane*/);
WindowPtr /*pWindow*/,
int /*windx*/,
int /*windy*/,
RegionPtr /*oldClip*/,
int /*oldx*/,
int /*oldy*/);
WindowPtr /*pWindow*/,
int /*x*/,
int /*y*/,
int /*w*/,
int /*h*/,
Bool /*generateExposures*/);
typedef void (* DrawGuaranteeProcPtr)(
WindowPtr /*pWindow*/,
GCPtr /*pGC*/,
int /*guarantee*/);
ScreenPtr /*pScreen*/,
FontPtr /*pFont*/);
ScreenPtr /*pScreen*/,
FontPtr /*pFont*/);
typedef void (* ConstrainCursorProcPtr)(
DeviceIntPtr /*pDev*/,
ScreenPtr /*pScreen*/,
BoxPtr /*pBox*/);
typedef void (* CursorLimitsProcPtr)(
DeviceIntPtr /* pDev */,
ScreenPtr /*pScreen*/,
CursorPtr /*pCursor*/,
BoxPtr /*pHotBox*/,
BoxPtr /*pTopLeftBox*/);
DeviceIntPtr /* pDev */,
ScreenPtr /*pScreen*/,
CursorPtr /*pCursor*/);
DeviceIntPtr /* pDev */,
ScreenPtr /*pScreen*/,
CursorPtr /*pCursor*/);
DeviceIntPtr /* pDev */,
ScreenPtr /*pScreen*/,
CursorPtr /*pCursor*/);
typedef void (* RecolorCursorProcPtr)(
DeviceIntPtr /* pDev */,
ScreenPtr /*pScreen*/,
CursorPtr /*pCursor*/,
Bool /*displayed*/);
DeviceIntPtr /* pDev */,
ScreenPtr /*pScreen*/,
int /*x*/,
int /*y*/,
Bool /*generateEvent*/);
GCPtr /*pGC*/);
ColormapPtr /*pColormap*/);
typedef void (* DestroyColormapProcPtr)(
ColormapPtr /*pColormap*/);
typedef void (* InstallColormapProcPtr)(
ColormapPtr /*pColormap*/);
typedef void (* UninstallColormapProcPtr)(
ColormapPtr /*pColormap*/);
typedef int (* ListInstalledColormapsProcPtr) (
ScreenPtr /*pScreen*/,
XID* /*pmaps */);
typedef void (* StoreColorsProcPtr)(
ColormapPtr /*pColormap*/,
int /*ndef*/,
xColorItem * /*pdef*/);
typedef void (* ResolveColorProcPtr)(
unsigned short* /*pred*/,
unsigned short* /*pgreen*/,
unsigned short* /*pblue*/,
VisualPtr /*pVisual*/);
PixmapPtr /*pPix*/);
typedef void (* SendGraphicsExposeProcPtr)(
ClientPtr /*client*/,
RegionPtr /*pRgn*/,
XID /*drawable*/,
int /*major*/,
int /*minor*/);
typedef void (* ScreenBlockHandlerProcPtr)(
int /*screenNum*/,
pointer /*blockData*/,
pointer /*pTimeout*/,
pointer /*pReadmask*/);
typedef void (* ScreenWakeupHandlerProcPtr)(
int /*screenNum*/,
pointer /*wakeupData*/,
unsigned long /*result*/,
pointer /*pReadMask*/);
ScreenPtr /*pScreen*/);
PixmapPtr /*pPixmap*/,
int /*width*/,
int /*height*/,
int /*depth*/,
int /*bitsPerPixel*/,
int /*devKind*/,
pointer /*pPixData*/);
WindowPtr /*pWin*/);
typedef void (* SetWindowPixmapProcPtr)(
WindowPtr /*pWin*/,
PixmapPtr /*pPix*/);
ScreenPtr /*pScreen*/);
typedef void (* SetScreenPixmapProcPtr)(
PixmapPtr /*pPix*/);
typedef void (* MarkWindowProcPtr)(
WindowPtr /*pWin*/);
WindowPtr /*parent*/,
WindowPtr /*firstChild*/,
WindowPtr * /*pLayerWin*/);
WindowPtr /*pLayerWin*/,
WindowPtr /*firstChild*/);
typedef void (* PostChangeSaveUnderProcPtr)(
WindowPtr /*pLayerWin*/,
WindowPtr /*firstChild*/);
typedef int (* ConfigNotifyProcPtr)(
WindowPtr /*pWin*/,
int /*x*/,
int /*y*/,
int /*w*/,
int /*h*/,
int /*bw*/,
WindowPtr /*pSib*/);
typedef void (* MoveWindowProcPtr)(
WindowPtr /*pWin*/,
int /*x*/,
int /*y*/,
WindowPtr /*pSib*/,
VTKind /*kind*/);
typedef void (* ResizeWindowProcPtr)(
WindowPtr /*pWin*/,
int /*x*/,
int /*y*/,
unsigned int /*w*/,
unsigned int /*h*/,
WindowPtr /*pSib*/
);
WindowPtr /*pWin*/
);
typedef void (* HandleExposuresProcPtr)(
WindowPtr /*pWin*/);
typedef void (* ReparentWindowProcPtr)(
WindowPtr /*pWin*/,
WindowPtr /*pPriorParent*/);
typedef void (* SetShapeProcPtr)(
WindowPtr /*pWin*/,
int /* kind */);
typedef void (* ChangeBorderWidthProcPtr)(
WindowPtr /*pWin*/,
unsigned int /*width*/);
typedef void (* MarkUnrealizedWindowProcPtr)(
WindowPtr /*pChild*/,
WindowPtr /*pWin*/,
Bool /*fromConfigure*/);
DeviceIntPtr /* pDev */,
ScreenPtr /* pScreen */);
typedef void (* DeviceCursorCleanupProcPtr)(
DeviceIntPtr /* pDev */,
ScreenPtr /* pScreen */);
typedef struct _Screen {
short numDepths;
unsigned char rootDepth;
unsigned long rootVisual;
unsigned long defColormap;
/* next field is a stipple to use as default in
a GC. we don't build default tiles of all depths
because they are likely to be of a color
different from the default fg pixel, so
we don't win anything by building
a standard one.
*/
short numVisuals;
/* Random screen procedures */
/* Window Procedures */
/* Pixmap procedures */
/* Backing store procedures */
/*
* that the functions can be wrapped.
*/
/* Font procedures */
/* Cursor Procedures */
/* GC procedures */
/* Colormap procedures */
/* Region procedures */
/* os layer procedures */
/* anybody can get a piece of this array */
unsigned int totalPixmapSize;
/* Device cursor procedures */
} ScreenRec;
}
typedef struct _ScreenInfo {
int imageByteOrder;
int bitmapScanlineUnit;
int bitmapScanlinePad;
int bitmapBitOrder;
int numPixmapFormats;
int numScreens;
} ScreenInfo;
extern _X_EXPORT void InitOutput(
ScreenInfo * /*pScreenInfo*/,
int /*argc*/,
char ** /*argv*/);
#endif /* SCREENINTSTRUCT_H */