📄 scrnintstr.h
字号:
typedef void (* RegionInitProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/, BoxPtr /*rect*/, int /*size*/#endif);typedef Bool (* RegionCopyProcPtr)(#if NeedNestedPrototypes RegionPtr /*dst*/, RegionPtr /*src*/#endif);typedef void (* RegionDestroyProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/#endif);typedef void (* RegionUninitProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/#endif);typedef Bool (* IntersectProcPtr)(#if NeedNestedPrototypes RegionPtr /*newReg*/, RegionPtr /*reg1*/, RegionPtr /*reg2*/#endif);typedef Bool (* UnionProcPtr)(#if NeedNestedPrototypes RegionPtr /*newReg*/, RegionPtr /*reg1*/, RegionPtr /*reg2*/#endif);typedef Bool (* SubtractProcPtr)(#if NeedNestedPrototypes RegionPtr /*regD*/, RegionPtr /*regM*/, RegionPtr /*regS*/#endif);typedef Bool (* InverseProcPtr)(#if NeedNestedPrototypes RegionPtr /*newReg*/, RegionPtr /*reg1*/, BoxPtr /*invRect*/#endif);typedef void (* RegionResetProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/, BoxPtr /*pBox*/#endif);typedef void (* TranslateRegionProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/, int /*x*/, int /*y*/#endif);typedef int (* RectInProcPtr)(#if NeedNestedPrototypes RegionPtr /*region*/, BoxPtr /*prect*/#endif);typedef Bool (* PointInRegionProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/, int /*x*/, int /*y*/, BoxPtr /*box*/#endif);typedef Bool (* RegionNotEmptyProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/#endif);typedef void (* RegionEmptyProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/#endif);typedef BoxPtr (* RegionExtentsProcPtr)(#if NeedNestedPrototypes RegionPtr /*pReg*/#endif);typedef Bool (* RegionAppendProcPtr)(#if NeedNestedPrototypes RegionPtr /*dstrgn*/, RegionPtr /*rgn*/#endif);typedef Bool (* RegionValidateProcPtr)(#if NeedNestedPrototypes RegionPtr /*badreg*/, Bool* /*pOverlap*/#endif);typedef RegionPtr (* BitmapToRegionProcPtr)(#if NeedNestedPrototypes PixmapPtr /*pPix*/#endif);typedef RegionPtr (* RectsToRegionProcPtr)(#if NeedNestedPrototypes int /*nrects*/, xRectangle* /*prect*/, int /*ctype*/#endif);typedef void (* SendGraphicsExposeProcPtr)(#if NeedNestedPrototypes ClientPtr /*client*/, RegionPtr /*pRgn*/, XID /*drawable*/, int /*major*/, int /*minor*/#endif);typedef void (* ScreenBlockHandlerProcPtr)(#if NeedNestedPrototypes int /*screenNum*/, pointer /*blockData*/, struct timeval ** /*pTimeout*/, pointer /*pReadmask*/#endif);typedef void (* ScreenWakeupHandlerProcPtr)(#if NeedNestedPrototypes int /*screenNum*/, pointer /*wakeupData*/, unsigned long /*result*/, pointer /*pReadMask*/#endif);typedef Bool (* CreateScreenResourcesProcPtr)(#if NeedNestedPrototypes ScreenPtr /*pScreen*/#endif);typedef Bool (* ModifyPixmapHeaderProcPtr)(#if NeedNestedPrototypes PixmapPtr /*pPixmap*/, int /*width*/, int /*height*/, int /*depth*/, int /*bitsPerPixel*/, int /*devKind*/, pointer /*pPixData*/#endif);typedef void (* MarkWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWin*/#endif);typedef Bool (* MarkOverlappedWindowsProcPtr)(#if NeedNestedPrototypes WindowPtr /*parent*/, WindowPtr /*firstChild*/, WindowPtr * /*pLayerWin*/#endif);typedef Bool (* ChangeSaveUnderProcPtr)(#if NeedNestedPrototypes WindowPtr /*pLayerWin*/, WindowPtr /*firstChild*/#endif);typedef void (* PostChangeSaveUnderProcPtr)(#if NeedNestedPrototypes WindowPtr /*pLayerWin*/, WindowPtr /*firstChild*/#endif);typedef void (* MoveWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWin*/, int /*x*/, int /*y*/, WindowPtr /*pSib*/, VTKind /*kind*/#endif);typedef void (* ResizeWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWin*/, int /*x*/, int /*y*/, unsigned int /*w*/, unsigned int /*h*/, WindowPtr /*pSib*/#endif);typedef WindowPtr (* GetLayerWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWin*/#endif);typedef void (* HandleExposuresProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWin*/#endif);typedef void (* ReparentWindowProcPtr)(#if NeedNestedPrototypes WindowPtr /*pWin*/, WindowPtr /*pPriorParent*/#endif);#ifdef SHAPEtypedef void (* SetShapeProcPtr)(#if NeedFunctionPrototypes WindowPtr /*pWin*/#endif);#endif /* SHAPE */typedef void (* ChangeBorderWidthProcPtr)(#if NeedFunctionPrototypes WindowPtr /*pWin*/, unsigned int /*width*/#endif);typedef void (* MarkUnrealizedWindowProcPtr)(#if NeedFunctionPrototypes WindowPtr /*pChild*/, WindowPtr /*pWin*/, Bool /*fromConfigure*/#endif);typedef struct _Screen { int myNum; /* index of this instance in Screens[] */ ATOM id; short width, height; short mmWidth, mmHeight; short numDepths; unsigned char rootDepth; DepthPtr allowedDepths; unsigned long rootVisual; unsigned long defColormap; short minInstalledCmaps, maxInstalledCmaps; char backingStoreSupport, saveUnderSupport; unsigned long whitePixel, blackPixel; unsigned long rgf; /* array of flags; she's -- HUNGARIAN */ GCPtr GCperDepth[MAXFORMATS+1]; /* 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. */ PixmapPtr PixmapPerDepth[1]; pointer devPrivate; short numVisuals; VisualPtr visuals; int WindowPrivateLen; unsigned *WindowPrivateSizes; unsigned totalWindowSize; int GCPrivateLen; unsigned *GCPrivateSizes; unsigned totalGCSize; /* Random screen procedures */ CloseScreenProcPtr CloseScreen; QueryBestSizeProcPtr QueryBestSize; SaveScreenProcPtr SaveScreen; GetImageProcPtr GetImage; GetSpansProcPtr GetSpans; PointerNonInterestBoxProcPtr PointerNonInterestBox; SourceValidateProcPtr SourceValidate; /* Window Procedures */ CreateWindowProcPtr CreateWindow; DestroyWindowProcPtr DestroyWindow; PositionWindowProcPtr PositionWindow; ChangeWindowAttributesProcPtr ChangeWindowAttributes; RealizeWindowProcPtr RealizeWindow; UnrealizeWindowProcPtr UnrealizeWindow; ValidateTreeProcPtr ValidateTree; PostValidateTreeProcPtr PostValidateTree; WindowExposuresProcPtr WindowExposures; PaintWindowBackgroundProcPtr PaintWindowBackground; PaintWindowBorderProcPtr PaintWindowBorder; CopyWindowProcPtr CopyWindow; ClearToBackgroundProcPtr ClearToBackground; ClipNotifyProcPtr ClipNotify; /* Pixmap procedures */ CreatePixmapProcPtr CreatePixmap; DestroyPixmapProcPtr DestroyPixmap; /* Backing store procedures */ SaveDoomedAreasProcPtr SaveDoomedAreas; RestoreAreasProcPtr RestoreAreas; ExposeCopyProcPtr ExposeCopy; TranslateBackingStoreProcPtr TranslateBackingStore; ClearBackingStoreProcPtr ClearBackingStore; DrawGuaranteeProcPtr DrawGuarantee; /* Font procedures */ RealizeFontProcPtr RealizeFont; UnrealizeFontProcPtr UnrealizeFont; /* Cursor Procedures */ ConstrainCursorProcPtr ConstrainCursor; CursorLimitsProcPtr CursorLimits; DisplayCursorProcPtr DisplayCursor; RealizeCursorProcPtr RealizeCursor; UnrealizeCursorProcPtr UnrealizeCursor; RecolorCursorProcPtr RecolorCursor; SetCursorPositionProcPtr SetCursorPosition; /* GC procedures */ CreateGCProcPtr CreateGC; /* Colormap procedures */ CreateColormapProcPtr CreateColormap; DestroyColormapProcPtr DestroyColormap; InstallColormapProcPtr InstallColormap; UninstallColormapProcPtr UninstallColormap; ListInstalledColormapsProcPtr ListInstalledColormaps; StoreColorsProcPtr StoreColors; ResolveColorProcPtr ResolveColor; /* Region procedures */ RegionCreateProcPtr RegionCreate; RegionInitProcPtr RegionInit; RegionCopyProcPtr RegionCopy; RegionDestroyProcPtr RegionDestroy; RegionUninitProcPtr RegionUninit; IntersectProcPtr Intersect; UnionProcPtr Union; SubtractProcPtr Subtract; InverseProcPtr Inverse; RegionResetProcPtr RegionReset; TranslateRegionProcPtr TranslateRegion; RectInProcPtr RectIn; PointInRegionProcPtr PointInRegion; RegionNotEmptyProcPtr RegionNotEmpty; RegionEmptyProcPtr RegionEmpty; RegionExtentsProcPtr RegionExtents; RegionAppendProcPtr RegionAppend; RegionValidateProcPtr RegionValidate; BitmapToRegionProcPtr BitmapToRegion; RectsToRegionProcPtr RectsToRegion; SendGraphicsExposeProcPtr SendGraphicsExpose; /* os layer procedures */ ScreenBlockHandlerProcPtr BlockHandler; ScreenWakeupHandlerProcPtr WakeupHandler; pointer blockData; pointer wakeupData; /* anybody can get a piece of this array */ DevUnion *devPrivates; CreateScreenResourcesProcPtr CreateScreenResources; ModifyPixmapHeaderProcPtr ModifyPixmapHeader; PixmapPtr pScratchPixmap; /* scratch pixmap "pool" */#ifdef PIXPRIV int PixmapPrivateLen; unsigned *PixmapPrivateSizes; unsigned totalPixmapSize;#endif MarkWindowProcPtr MarkWindow; MarkOverlappedWindowsProcPtr MarkOverlappedWindows; ChangeSaveUnderProcPtr ChangeSaveUnder; PostChangeSaveUnderProcPtr PostChangeSaveUnder; MoveWindowProcPtr MoveWindow; ResizeWindowProcPtr ResizeWindow; GetLayerWindowProcPtr GetLayerWindow; HandleExposuresProcPtr HandleExposures; ReparentWindowProcPtr ReparentWindow;#ifdef SHAPE SetShapeProcPtr SetShape;#endif /* SHAPE */ ChangeBorderWidthProcPtr ChangeBorderWidth; MarkUnrealizedWindowProcPtr MarkUnrealizedWindow;} ScreenRec;typedef struct _ScreenInfo { int imageByteOrder; int bitmapScanlineUnit; int bitmapScanlinePad; int bitmapBitOrder; int numPixmapFormats; PixmapFormatRec formats[MAXFORMATS]; int arraySize; int numScreens; ScreenPtr screens[MAXSCREENS]; int numVideoScreens;} ScreenInfo;extern ScreenInfo screenInfo;extern void InitOutput(#if NeedFunctionPrototypes ScreenInfo * /*pScreenInfo*/, int /*argc*/, char ** /*argv*/#endif);#endif /* SCREENINTSTRUCT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -