⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cfb.h

📁 unix vnc 协议源码. VNC是一款远程控制工具软件.
💻 H
📖 第 1 页 / 共 3 页
字号:
/* $XConsortium: cfb.h,v 5.37 94/04/17 20:28:38 dpw Exp $ *//* $XFree86: xc/programs/Xserver/cfb/cfb.h,v 3.3.2.2 1997/05/30 13:50:37 hohndel Exp $ *//************************************************************Copyright 1987 by Sun Microsystems, Inc. Mountain View, CA.                    All Rights ReservedPermission  to  use,  copy,  modify,  and  distribute   thissoftware  and  its documentation for any purpose and withoutfee is hereby granted, provided that the above copyright no-tice  appear  in all copies and that both that copyright no-tice and this permission notice appear in  supporting  docu-mentation,  and  that the names of Sun or X Consortiumnot be used in advertising or publicity pertaining to distribution  of  the software  without specific prior written permission. Sun and X Consortium make no representations about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty.SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO  THIS  SOFTWARE,INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE  LI-ABLE  FOR  ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ORANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,  DATA  ORPROFITS,  WHETHER  IN  AN  ACTION OF CONTRACT, NEGLIGENCE OROTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITHTHE USE OR PERFORMANCE OF THIS SOFTWARE.********************************************************/#include "X.h"#include "pixmap.h"#include "region.h"#include "gc.h"#include "colormap.h"#include "miscstruct.h"#include "servermd.h"#include "windowstr.h"#include "mfb.h"#undef PixelType#include "cfbmap.h"/*   private filed of pixmap   pixmap.devPrivate = (unsigned int *)pointer_to_bits   pixmap.devKind = width_of_pixmap_in_bytes*/extern int  cfbGCPrivateIndex;extern int  cfbWindowPrivateIndex;/* private field of GC */typedef struct {    unsigned char       rop;            /* special case rop values */    /* next two values unused in cfb, included for compatibility with mfb */    unsigned char       ropOpStip;      /* rop for opaque stipple */    /* this value is ropFillArea in mfb, usurped for cfb */    unsigned char       oneRect;	/*  drawable has one clip rect */    unsigned		fExpose:1;	/* callexposure handling ? */    unsigned		freeCompClip:1;    PixmapPtr		pRotatedPixmap;    RegionPtr		pCompositeClip; /* FREE_CC or REPLACE_CC */    unsigned long	xor, and;	/* reduced rop values */    } cfbPrivGC;typedef cfbPrivGC	*cfbPrivGCPtr;#define cfbGetGCPrivate(pGC)	((cfbPrivGCPtr)\	(pGC)->devPrivates[cfbGCPrivateIndex].ptr)#define cfbGetCompositeClip(pGC) (((cfbPrivGCPtr)\	(pGC)->devPrivates[cfbGCPrivateIndex].ptr)->pCompositeClip)/* way to carry RROP info around */typedef struct {    unsigned char	rop;    unsigned long	xor, and;} cfbRRopRec, *cfbRRopPtr;/* private field of window */typedef struct {    unsigned	char fastBorder; /* non-zero if border is 32 bits wide */    unsigned	char fastBackground;    unsigned short unused; /* pad for alignment with Sun compiler */    DDXPointRec	oldRotate;    PixmapPtr	pRotatedBackground;    PixmapPtr	pRotatedBorder;    } cfbPrivWin;#define cfbGetWindowPrivate(_pWin) ((cfbPrivWin *)\	(_pWin)->devPrivates[cfbWindowPrivateIndex].ptr)/* cfb8bit.c */extern int cfbSetStipple(#if NeedFunctionPrototypes    int /*alu*/,    unsigned long /*fg*/,    unsigned long /*planemask*/#endif);extern int cfbSetOpaqueStipple(#if NeedFunctionPrototypes    int /*alu*/,    unsigned long /*fg*/,    unsigned long /*bg*/,    unsigned long /*planemask*/#endif);extern int cfbComputeClipMasks32(#if NeedFunctionPrototypes    BoxPtr /*pBox*/,    int /*numRects*/,    int /*x*/,    int /*y*/,    int /*w*/,    int /*h*/,    CARD32 * /*clips*/#endif);/* cfb8cppl.c */extern void cfbCopyImagePlane(#if NeedFunctionPrototypes    DrawablePtr /*pSrcDrawable*/,    DrawablePtr /*pDstDrawable*/,    int /*rop*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/#endif);extern void cfbCopyPlane8to1(#if NeedFunctionPrototypes    DrawablePtr /*pSrcDrawable*/,    DrawablePtr /*pDstDrawable*/,    int /*rop*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/,    unsigned long /*bitPlane*/#endif);/* cfb8lineCO.c */extern int cfb8LineSS1RectCopy(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*mode*/,    int /*npt*/,    DDXPointPtr /*pptInit*/,    DDXPointPtr /*pptInitOrig*/,    int * /*x1p*/,    int * /*y1p*/,    int * /*x2p*/,    int * /*y2p*/#endif);extern void cfb8LineSS1Rect(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*mode*/,    int /*npt*/,    DDXPointPtr /*pptInit*/#endif);extern void cfb8ClippedLineCopy(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*x1*/,    int /*y1*/,    int /*x2*/,    int /*y2*/,    BoxPtr /*boxp*/,    Bool /*shorten*/#endif);/* cfb8lineCP.c */extern int cfb8LineSS1RectPreviousCopy(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*mode*/,    int /*npt*/,    DDXPointPtr /*pptInit*/,    DDXPointPtr /*pptInitOrig*/,    int * /*x1p*/,    int * /*y1p*/,    int * /*x2p*/,    int * /*y2p*/#endif);/* cfb8lineG.c */extern int cfb8LineSS1RectGeneral(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*mode*/,    int /*npt*/,    DDXPointPtr /*pptInit*/,    DDXPointPtr /*pptInitOrig*/,    int * /*x1p*/,    int * /*y1p*/,    int * /*x2p*/,    int * /*y2p*/#endif);extern void cfb8ClippedLineGeneral(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*x1*/,    int /*y1*/,    int /*x2*/,    int /*y2*/,    BoxPtr /*boxp*/,    Bool /*shorten*/#endif);/* cfb8lineX.c */extern int cfb8LineSS1RectXor(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*mode*/,    int /*npt*/,    DDXPointPtr /*pptInit*/,    DDXPointPtr /*pptInitOrig*/,    int * /*x1p*/,    int * /*y1p*/,    int * /*x2p*/,    int * /*y2p*/#endif);extern void cfb8ClippedLineXor(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*x1*/,    int /*y1*/,    int /*x2*/,    int /*y2*/,    BoxPtr /*boxp*/,    Bool /*shorten*/#endif);/* cfb8segC.c */extern int cfb8SegmentSS1RectCopy(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*nseg*/,    xSegment * /*pSegInit*/#endif);/* cfb8segCS.c */extern int cfb8SegmentSS1RectShiftCopy(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*nseg*/,    xSegment * /*pSegInit*/#endif);extern void cfb8SegmentSS1Rect(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*nseg*/,    xSegment * /*pSegInit*/#endif);/* cfb8segG.c */extern int cfb8SegmentSS1RectGeneral(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*nseg*/,    xSegment * /*pSegInit*/#endif);/* cfbsegX.c */extern int cfb8SegmentSS1RectXor(#if NeedFunctionPrototypes    DrawablePtr /*pDrawable*/,    GCPtr /*pGC*/,    int /*nseg*/,    xSegment * /*pSegInit*/#endif);/* cfballpriv.c */extern Bool cfbAllocatePrivates(#if NeedFunctionPrototypes    ScreenPtr /*pScreen*/,    int * /*window_index*/,    int * /*gc_index*/#endif);/* cfbbitblt.c */extern RegionPtr cfbBitBlt(#if NeedFunctionPrototypes    DrawablePtr /*pSrcDrawable*/,    DrawablePtr /*pDstDrawable*/,    GCPtr/*pGC*/,    int /*srcx*/,    int /*srcy*/,    int /*width*/,    int /*height*/,    int /*dstx*/,    int /*dsty*/,    void (* /*doBitBlt*/)(#if NeedNestedPrototypes	DrawablePtr /*pSrc*/,	DrawablePtr /*pDst*/,	int /*alu*/,	RegionPtr /*prgnDst*/,	DDXPointPtr /*pptSrc*/,	unsigned long /*planemask*/,	unsigned long /*bitPlane*/#endif	),    unsigned long /*bitPlane*/#endif);extern void cfbDoBitblt(#if NeedFunctionPrototypes    DrawablePtr /*pSrc*/,    DrawablePtr /*pDst*/,    int /*alu*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/#endif);extern RegionPtr cfbCopyArea(#if NeedFunctionPrototypes    DrawablePtr /*pSrcDrawable*/,    DrawablePtr /*pDstDrawable*/,    GCPtr/*pGC*/,    int /*srcx*/,    int /*srcy*/,    int /*width*/,    int /*height*/,    int /*dstx*/,    int /*dsty*/#endif);extern void cfbCopyPlane1to8(#if NeedFunctionPrototypes    DrawablePtr /*pSrcDrawable*/,    DrawablePtr /*pDstDrawable*/,    int /*rop*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/,    unsigned long /*bitPlane*/#endif);extern RegionPtr cfbCopyPlane(#if NeedFunctionPrototypes    DrawablePtr /*pSrcDrawable*/,    DrawablePtr /*pDstDrawable*/,    GCPtr /*pGC*/,    int /*srcx*/,    int /*srcy*/,    int /*width*/,    int /*height*/,    int /*dstx*/,    int /*dsty*/,    unsigned long /*bitPlane*/#endif);/* cfbbltC.c */extern void cfbDoBitbltCopy(#if NeedFunctionPrototypes    DrawablePtr /*pSrc*/,    DrawablePtr /*pDst*/,    int /*alu*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/#endif);/* cfbbltG.c */extern void cfbDoBitbltGeneral(#if NeedFunctionPrototypes    DrawablePtr /*pSrc*/,    DrawablePtr /*pDst*/,    int /*alu*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/#endif);/* cfbbltO.c */extern void cfbDoBitbltOr(#if NeedFunctionPrototypes    DrawablePtr /*pSrc*/,    DrawablePtr /*pDst*/,    int /*alu*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/#endif);/* cfbbltX.c */extern void cfbDoBitbltXor(#if NeedFunctionPrototypes    DrawablePtr /*pSrc*/,    DrawablePtr /*pDst*/,    int /*alu*/,    RegionPtr /*prgnDst*/,    DDXPointPtr /*pptSrc*/,    unsigned long /*planemask*/#endif);/* cfbbres.c */extern void cfbBresS(#if NeedFunctionPrototypes    int /*rop*/,    unsigned long /*and*/,    unsigned long /*xor*/,    unsigned long * /*addrl*/,    int /*nlwidth*/,    int /*signdx*/,    int /*signdy*/,    int /*axis*/,    int /*x1*/,    int /*y1*/,    int /*e*/,    int /*e1*/,    int /*e2*/,    int /*len*/#endif);/* cfbbresd.c */extern void cfbBresD(#if NeedFunctionPrototypes    cfbRRopPtr /*rrops*/,    int * /*pdashIndex*/,    unsigned char * /*pDash*/,    int /*numInDashList*/,    int * /*pdashOffset*/,    int /*isDoubleDash*/,    unsigned long * /*addrl*/,    int /*nlwidth*/,    int /*signdx*/,    int /*signdy*/,    int /*axis*/,    int /*x1*/,    int /*y1*/,    int /*e*/,    int /*e1*/,    int /*e2*/,    int /*len*/#endif);/* cfbbstore.c */extern void cfbSaveAreas(#if NeedFunctionPrototypes    PixmapPtr /*pPixmap*/,    RegionPtr /*prgnSave*/,    int /*xorg*/,    int /*yorg*/,    WindowPtr /*pWin*/#endif);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -