VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/cfb24_32.h@ 98148

Last change on this file since 98148 was 69098, checked in by vboxsync, 8 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/xf24_32bpp/cfb24_32.h,v 1.5 2000/04/01 00:17:19 mvojkovi Exp $ */
2
3#ifndef _CFB24_32_H
4#define _CFB24_32_H
5
6#include "gcstruct.h"
7#include "window.h"
8
9typedef struct {
10 GCOps *Ops24bpp;
11 GCOps *Ops32bpp;
12 unsigned long changes;
13 Bool OpsAre24bpp;
14} cfb24_32GCRec, *cfb24_32GCPtr;
15
16
17extern int cfb24_32GCIndex;
18extern int cfb24_32PixmapIndex;
19
20typedef struct {
21 PixmapPtr pix;
22 Bool freePrivate;
23 Bool isRefPix;
24} cfb24_32PixmapRec, *cfb24_32PixmapPtr;
25
26RegionPtr
27cfb24_32CopyArea(
28 DrawablePtr pSrcDraw,
29 DrawablePtr pDstDraw,
30 GC *pGC,
31 int srcx, int srcy,
32 int width, int height,
33 int dstx, int dsty
34);
35
36void
37cfbDoBitblt24To32(
38 DrawablePtr pSrc,
39 DrawablePtr pDst,
40 int rop,
41 RegionPtr prgnDst,
42 DDXPointPtr pptSrc,
43 unsigned long planemask,
44 unsigned long bitPlane
45);
46
47void
48cfbDoBitblt32To24(
49 DrawablePtr pSrc,
50 DrawablePtr pDst,
51 int rop,
52 RegionPtr prgnDst,
53 DDXPointPtr pptSrc,
54 unsigned long planemask,
55 unsigned long bitPlane
56);
57
58void
59cfb24_32DoBitblt24To24GXcopy(
60 DrawablePtr pSrc,
61 DrawablePtr pDst,
62 int rop,
63 RegionPtr prgnDst,
64 DDXPointPtr pptSrc,
65 unsigned long pm,
66 unsigned long bitPlane
67);
68
69void
70cfb24_32ValidateGC24(
71 GCPtr pGC,
72 unsigned long changes,
73 DrawablePtr pDrawable
74);
75
76void
77cfb24_32ValidateGC32(
78 GCPtr pGC,
79 unsigned long changes,
80 DrawablePtr pDrawable
81);
82
83Bool cfb24_32CreateGC(GCPtr pGC);
84
85void
86cfb24_32GetSpans(
87 DrawablePtr pDraw,
88 int wMax,
89 DDXPointPtr ppt,
90 int *pwidth,
91 int nspans,
92 char *pchardstStart
93);
94
95void
96cfb24_32PutImage (
97 DrawablePtr pDraw,
98 GCPtr pGC,
99 int depth,
100 int x, int y, int w, int h,
101 int leftPad,
102 int format,
103 char *pImage
104);
105
106void
107cfb24_32GetImage (
108 DrawablePtr pDraw,
109 int sx, int sy, int w, int h,
110 unsigned int format,
111 unsigned long planeMask,
112 char *pdstLine
113);
114
115Bool
116cfb24_32ScreenInit (
117 ScreenPtr pScreen,
118 pointer pbits,
119 int xsize, int ysize,
120 int dpix, int dpiy,
121 int width
122);
123
124
125Bool cfb24_32CreateWindow(WindowPtr pWin);
126Bool cfb24_32DestroyWindow(WindowPtr pWin);
127
128Bool
129cfb24_32PositionWindow(
130 WindowPtr pWin,
131 int x, int y
132);
133
134void
135cfb24_32CopyWindow(
136 WindowPtr pWin,
137 DDXPointRec ptOldOrg,
138 RegionPtr prgnSrc
139);
140
141Bool
142cfb24_32ChangeWindowAttributes(
143 WindowPtr pWin,
144 unsigned long mask
145);
146
147PixmapPtr
148cfb24_32CreatePixmap (
149 ScreenPtr pScreen,
150 int width,
151 int height,
152 int depth
153);
154
155Bool cfb24_32DestroyPixmap(PixmapPtr pPixmap);
156
157PixmapPtr cfb24_32RefreshPixmap(PixmapPtr pix);
158
159#define CFB24_32_GET_GC_PRIVATE(pGC)\
160 (cfb24_32GCPtr)((pGC)->devPrivates[cfb24_32GCIndex].ptr)
161
162#define CFB24_32_GET_PIXMAP_PRIVATE(pPix) \
163 (cfb24_32PixmapPtr)((pPix)->devPrivates[cfb24_32PixmapIndex].ptr)
164
165#endif /* _CFB24_32_H */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette