45e9809aff7304721fddb95654901b32195c9c7avboxsync/***********************************************************
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCopyright 1987, 1998 The Open Group
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPermission to use, copy, modify, distribute, and sell this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdocumentation for any purpose is hereby granted without fee, provided that
45e9809aff7304721fddb95654901b32195c9c7avboxsyncthe above copyright notice appear in all copies and that both that
45e9809aff7304721fddb95654901b32195c9c7avboxsynccopyright notice and this permission notice appear in supporting
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdocumentation.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncThe above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsyncall copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45e9809aff7304721fddb95654901b32195c9c7avboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
45e9809aff7304721fddb95654901b32195c9c7avboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncExcept as contained in this notice, the name of The Open Group shall not be
45e9809aff7304721fddb95654901b32195c9c7avboxsyncused in advertising or otherwise to promote the sale, use or other dealings
45e9809aff7304721fddb95654901b32195c9c7avboxsyncin this Software without prior written authorization from The Open Group.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
45e9809aff7304721fddb95654901b32195c9c7avboxsync All Rights Reserved
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPermission to use, copy, modify, and distribute this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdocumentation for any purpose and without fee is hereby granted,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncprovided that the above copyright notice appear in all copies and that
45e9809aff7304721fddb95654901b32195c9c7avboxsyncboth that copyright notice and this permission notice appear in
45e9809aff7304721fddb95654901b32195c9c7avboxsyncsupporting documentation, and that the name of Digital not be
45e9809aff7304721fddb95654901b32195c9c7avboxsyncused in advertising or publicity pertaining to distribution of the
45e9809aff7304721fddb95654901b32195c9c7avboxsyncsoftware without specific, written prior permission.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
45e9809aff7304721fddb95654901b32195c9c7avboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45e9809aff7304721fddb95654901b32195c9c7avboxsync******************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync short nplanes;/* = log2 (ColormapEntries). This does not
45e9809aff7304721fddb95654901b32195c9c7avboxsync * imply that the screen has this many planes.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * it may have more or fewer */
45e9809aff7304721fddb95654901b32195c9c7avboxsync VisualID *vids; /* block of visual ids for this depth */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * There is a typedef for each screen function pointer so that code that
45e9809aff7304721fddb95654901b32195c9c7avboxsync * needs to declare a screen function pointer (e.g. in a screen private
45e9809aff7304721fddb95654901b32195c9c7avboxsync * or as a local variable) can easily do so and retain full type checking.
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*index*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*class*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned short * /*pwidth*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned short * /*pheight*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*on*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*sx*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*sy*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int /*format*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long /*planeMask*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync char * /*pdstLine*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*wMax*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int* /*pwidth*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*nspans*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync char * /*pdstStart*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*width*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*height*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*y*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long /*mask*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*what*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef PaintWindowProcPtr PaintWindowBackgroundProcPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef PaintWindowProcPtr PaintWindowBorderProcPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*dx*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*dy*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* pixmap will exist only for the duration of the current rendering operation */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* pixmap will be the backing pixmap for a redirected window */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* pixmap will contain a glyph */
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*width*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*height*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*depth*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned /*usage_hint*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*xorg*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*yorg*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*srcx*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*srcy*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*dstx*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*dsty*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long /*plane*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*windx*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*windy*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*oldx*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*oldy*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*guarantee*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*ndef*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned short* /*pred*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned short* /*pgreen*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned short* /*pblue*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*major*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*minor*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*screenNum*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*screenNum*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long /*result*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*width*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*height*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*depth*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*bitsPerPixel*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*devKind*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int /*w*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int /*h*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int /*width*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int myNum; /* index of this instance in Screens[] */
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long rgf; /* array of flags; she's -- HUNGARIAN */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* next field is a stipple to use as default in
45e9809aff7304721fddb95654901b32195c9c7avboxsync a GC. we don't build default tiles of all depths
45e9809aff7304721fddb95654901b32195c9c7avboxsync because they are likely to be of a color
45e9809aff7304721fddb95654901b32195c9c7avboxsync different from the default fg pixel, so
45e9809aff7304721fddb95654901b32195c9c7avboxsync we don't win anything by building
45e9809aff7304721fddb95654901b32195c9c7avboxsync a standard one.
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Random screen procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync PointerNonInterestBoxProcPtr PointerNonInterestBox;
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Window Procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync ChangeWindowAttributesProcPtr ChangeWindowAttributes;
45e9809aff7304721fddb95654901b32195c9c7avboxsync PaintWindowBackgroundProcPtr PaintWindowBackground; /** unused */
45e9809aff7304721fddb95654901b32195c9c7avboxsync PaintWindowBorderProcPtr PaintWindowBorder; /** unused */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Pixmap procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Backing store procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync TranslateBackingStoreProcPtr TranslateBackingStore;
45e9809aff7304721fddb95654901b32195c9c7avboxsync * A read/write copy of the lower level backing store vector is needed now
45e9809aff7304721fddb95654901b32195c9c7avboxsync * that the functions can be wrapped.
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Font procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Cursor Procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* GC procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Colormap procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync ListInstalledColormapsProcPtr ListInstalledColormaps;
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Region procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* os layer procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* anybody can get a piece of this array */
45e9809aff7304721fddb95654901b32195c9c7avboxsync CreateScreenResourcesProcPtr CreateScreenResources;
45e9809aff7304721fddb95654901b32195c9c7avboxsync PixmapPtr pScratchPixmap; /* scratch pixmap "pool" */
45e9809aff7304721fddb95654901b32195c9c7avboxsync MarkOverlappedWindowsProcPtr MarkOverlappedWindows;
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Device cursor procedures */
45e9809aff7304721fddb95654901b32195c9c7avboxsync DeviceCursorInitializeProcPtr DeviceCursorInitialize;
45e9809aff7304721fddb95654901b32195c9c7avboxsync int /*argc*/,
45e9809aff7304721fddb95654901b32195c9c7avboxsync char ** /*argv*/);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* SCREENINTSTRUCT_H */