📄 scrnintstr.h
字号:
/* $XConsortium: scrnintstr.h /main/32 1996/09/28 17:14:32 rws $ *//***********************************************************Copyright (c) 1987 X ConsortiumPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER INAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION 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 beused in advertising or otherwise to promote the sale, use or other dealingsin this Software without prior written authorization from the X Consortium.Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights ReservedPermission 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 thatboth that copyright notice and this permission notice appear in supporting documentation, and that the name of Digital not beused in advertising or publicity pertaining to distribution of thesoftware without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ORANY 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 THISSOFTWARE.******************************************************************/#ifndef SCREENINTSTRUCT_H#define SCREENINTSTRUCT_H#include "screenint.h"#include "miscstruct.h"#include "region.h"#include "pixmap.h"#include "gc.h"#include "colormap.h"#include "cursor.h"#include "validate.h"#include "window.h"#include "X11/Xproto.h"#include "dix.h"typedef struct _PixmapFormat { unsigned char depth; unsigned char bitsPerPixel; unsigned char scanlinePad; } PixmapFormatRec; typedef struct _Visual { VisualID vid; short class; short bitsPerRGBValue; short ColormapEntries; short nplanes;/* = log2 (ColormapEntries). This does not * imply that the screen has this many planes. * it may have more or fewer */ unsigned long redMask, greenMask, blueMask; int offsetRed, offsetGreen, offsetBlue; } VisualRec;typedef struct _Depth { unsigned char depth; short numVids; VisualID *vids; /* block of visual ids for this depth */ } DepthRec;/* * 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. */typedef Bool (* CloseScreenProcPtr)(#if NeedNestedPrototypes int /*index*/, ScreenPtr /*pScreen*/#endif);typedef void (* QueryBestSizeProcPtr)(#if NeedNestedPrototypes int /*class*/, unsigned short * /*pwidth*/, unsigned short * /*pheight*/, ScreenPtr /*pScreen*/#endif);typedef Bool (* SaveScreenProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, int /*on*/#endif);typedef void (* GetImageProcPtr)(#if NeedNestedPrototypes DrawablePtr /*pDrawable*/, int /*sx*/, int /*sy*/, int /*w*/, int /*h*/, unsigned int /*format*/, unsigned long /*planeMask*/, char * /*pdstLine*/#endif);typedef void (* GetSpansProcPtr)(#if NeedNestedPrototypes DrawablePtr /*pDrawable*/, int /*wMax*/, DDXPointPtr /*ppt*/, int* /*pwidth*/, int /*nspans*/, char * /*pdstStart*/#endif);typedef void (* PointerNonInterestBoxProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, BoxPtr /*pBox*/#endif);typedef void (* SourceValidateProcPtr)(#if NeedNestedPrototypes DrawablePtr /*pDrawable*/, int /*x*/, int /*y*/, int /*width*/, int /*height*/#endif);typedef Bool (* CreateWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/#endif);typedef Bool (* DestroyWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/#endif);typedef Bool (* PositionWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, int /*x*/, int /*y*/#endif);typedef Bool (* ChangeWindowAttributesProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, unsigned long /*mask*/#endif);typedef Bool (* RealizeWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/#endif);typedef Bool (* UnrealizeWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/#endif);typedef int (* ValidateTreeProcPtr)(#if NeedNestedPrototypes WindowPtr /*pParent*/, WindowPtr /*pChild*/, VTKind /*kind*/#endif);typedef void (* PostValidateTreeProcPtr)(#if NeedNestedPrototypes WindowPtr /*pParent*/, WindowPtr /*pChild*/, VTKind /*kind*/#endif);typedef void (* WindowExposuresProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, RegionPtr /*prgn*/, RegionPtr /*other_exposed*/#endif);typedef void (* PaintWindowBackgroundProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, RegionPtr /*pRegion*/, int /*what*/#endif);typedef void (* PaintWindowBorderProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, RegionPtr /*pRegion*/, int /*what*/#endif);typedef void (* CopyWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, DDXPointRec /*ptOldOrg*/, RegionPtr /*prgnSrc*/#endif);typedef void (* ClearToBackgroundProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, int /*x*/, int /*y*/, int /*w*/, int /*h*/, Bool /*generateExposures*/#endif);typedef void (* ClipNotifyProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, int /*dx*/, int /*dy*/#endif);typedef PixmapPtr (* CreatePixmapProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, int /*width*/, int /*height*/, int /*depth*/#endif);typedef Bool (* DestroyPixmapProcPtr)(#if NeedNestedPrototypes PixmapPtr /*pPixmap*/#endif);typedef void (* SaveDoomedAreasProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, RegionPtr /*prgnSave*/, int /*xorg*/, int /*yorg*/#endif);typedef RegionPtr (* RestoreAreasProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, RegionPtr /*prgnRestore*/#endif);typedef void (* ExposeCopyProcPtr)(#if NeedNestedPrototypes WindowPtr /*pSrc*/, DrawablePtr /*pDst*/, GCPtr /*pGC*/, RegionPtr /*prgnExposed*/, int /*srcx*/, int /*srcy*/, int /*dstx*/, int /*dsty*/, unsigned long /*plane*/#endif);typedef RegionPtr (* TranslateBackingStoreProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, int /*windx*/, int /*windy*/, RegionPtr /*oldClip*/, int /*oldx*/, int /*oldy*/#endif);typedef RegionPtr (* ClearBackingStoreProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, int /*x*/, int /*y*/, int /*w*/, int /*h*/, Bool /*generateExposures*/#endif);typedef void (* DrawGuaranteeProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWindow*/, GCPtr /*pGC*/, int /*guarantee*/#endif); typedef Bool (* RealizeFontProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, FontPtr /*pFont*/#endif);typedef Bool (* UnrealizeFontProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, FontPtr /*pFont*/#endif);typedef void (* ConstrainCursorProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, BoxPtr /*pBox*/#endif);typedef void (* CursorLimitsProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, CursorPtr /*pCursor*/, BoxPtr /*pHotBox*/, BoxPtr /*pTopLeftBox*/#endif);typedef Bool (* DisplayCursorProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, CursorPtr /*pCursor*/#endif);typedef Bool (* RealizeCursorProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, CursorPtr /*pCursor*/#endif);typedef Bool (* UnrealizeCursorProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, CursorPtr /*pCursor*/#endif);typedef void (* RecolorCursorProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, CursorPtr /*pCursor*/, Bool /*displayed*/#endif);typedef Bool (* SetCursorPositionProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/, int /*x*/, int /*y*/, Bool /*generateEvent*/#endif);typedef Bool (* CreateGCProcPtr)(#if NeedNestedPrototypes GCPtr /*pGC*/#endif);typedef Bool (* CreateColormapProcPtr)(#if NeedNestedPrototypes ColormapPtr /*pColormap*/#endif);typedef void (* DestroyColormapProcPtr)(#if NeedNestedPrototypes ColormapPtr /*pColormap*/#endif);typedef void (* InstallColormapProcPtr)(#if NeedNestedPrototypes ColormapPtr /*pColormap*/#endif);typedef void (* UninstallColormapProcPtr)(#if NeedNestedPrototypes ColormapPtr /*pColormap*/#endif);typedef int (* ListInstalledColormapsProcPtr) (#if NeedNestedPrototypes ScreenPtr /*pScreen*/, XID* /*pmaps */#endif);typedef void (* StoreColorsProcPtr)(#if NeedNestedPrototypes ColormapPtr /*pColormap*/, int /*ndef*/, xColorItem * /*pdef*/#endif);typedef void (* ResolveColorProcPtr)(#if NeedNestedPrototypes unsigned short* /*pred*/, unsigned short* /*pgreen*/, unsigned short* /*pblue*/, VisualPtr /*pVisual*/#endif);typedef RegionPtr (* RegionCreateProcPtr)(#if NeedNestedPrototypes BoxPtr /*rect*/, int /*size*/#endif);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -