VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/cfb8_32.h@ 86603

Last change on this file since 86603 was 43272, checked in by vboxsync, 12 years ago

Additions/x11: more original X server headers.

  • Property svn:eol-style set to native
File size: 3.7 KB
Line 
1
2#ifdef HAVE_XORG_CONFIG_H
3#include <xorg-config.h>
4#endif
5
6#ifndef _CFB8_32_H
7#define _CFB8_32_H
8
9#include "gcstruct.h"
10
11typedef struct {
12 GCOps *Ops8bpp;
13 GCOps *Ops32bpp;
14 unsigned long changes;
15 Bool OpsAre8bpp;
16} cfb8_32GCRec, *cfb8_32GCPtr;
17
18typedef struct {
19 unsigned char key;
20 void (*EnableDisableFBAccess)(int scrnIndex, Bool enable);
21 pointer visualData;
22} cfb8_32ScreenRec, *cfb8_32ScreenPtr;
23
24
25extern int cfb8_32GCPrivateIndex; /* XXX */
26extern int cfb8_32GetGCPrivateIndex(void);
27extern int cfb8_32ScreenPrivateIndex; /* XXX */
28extern int cfb8_32GetScreenPrivateIndex(void);
29
30void
31cfb8_32SaveAreas(
32 PixmapPtr pPixmap,
33 RegionPtr prgnSave,
34 int xorg,
35 int yorg,
36 WindowPtr pWin
37);
38
39void
40cfb8_32RestoreAreas(
41 PixmapPtr pPixmap,
42 RegionPtr prgnRestore,
43 int xorg,
44 int yorg,
45 WindowPtr pWin
46);
47
48RegionPtr
49cfb8_32CopyArea(
50 DrawablePtr pSrcDraw,
51 DrawablePtr pDstDraw,
52 GC *pGC,
53 int srcx, int srcy,
54 int width, int height,
55 int dstx, int dsty
56);
57
58void
59cfbDoBitblt8To32(
60 DrawablePtr pSrc,
61 DrawablePtr pDst,
62 int rop,
63 RegionPtr prgnDst,
64 DDXPointPtr pptSrc,
65 unsigned long planemask
66);
67
68void
69cfbDoBitblt32To8(
70 DrawablePtr pSrc,
71 DrawablePtr pDst,
72 int rop,
73 RegionPtr prgnDst,
74 DDXPointPtr pptSrc,
75 unsigned long planemask
76);
77
78
79void
80cfb8_32ValidateGC8(
81 GCPtr pGC,
82 unsigned long changes,
83 DrawablePtr pDrawable
84);
85
86void
87cfb8_32ValidateGC32(
88 GCPtr pGC,
89 unsigned long changes,
90 DrawablePtr pDrawable
91);
92
93void
94cfb32ValidateGC_Underlay(
95 GCPtr pGC,
96 unsigned long changes,
97 DrawablePtr pDrawable
98);
99
100Bool cfb8_32CreateGC(GCPtr pGC);
101
102void
103cfb8_32GetSpans(
104 DrawablePtr pDraw,
105 int wMax,
106 DDXPointPtr ppt,
107 int *pwidth,
108 int nspans,
109 char *pchardstStart
110);
111
112void
113cfb8_32PutImage (
114 DrawablePtr pDraw,
115 GCPtr pGC,
116 int depth,
117 int x, int y, int w, int h,
118 int leftPad,
119 int format,
120 char *pImage
121);
122
123void
124cfb8_32GetImage (
125 DrawablePtr pDraw,
126 int sx, int sy, int w, int h,
127 unsigned int format,
128 unsigned long planeMask,
129 char *pdstLine
130);
131
132void
133cfb8_32PaintWindow (
134 WindowPtr pWin,
135 RegionPtr pRegion,
136 int what
137);
138
139Bool
140cfb8_32ScreenInit (
141 ScreenPtr pScreen,
142 pointer pbits,
143 int xsize, int ysize,
144 int dpix, int dpiy,
145 int width
146);
147
148void
149cfb8_32FillBoxSolid8 (
150 DrawablePtr pDraw,
151 int nbox,
152 BoxPtr pBox,
153 unsigned long color
154);
155
156
157void
158cfb8_32FillBoxSolid32 (
159 DrawablePtr pDraw,
160 int nbox,
161 BoxPtr pBox,
162 unsigned long color
163);
164
165RegionPtr
166cfb8_32CopyPlane(
167 DrawablePtr pSrc,
168 DrawablePtr pDst,
169 GCPtr pGC,
170 int srcx, int srcy,
171 int width, int height,
172 int dstx, int dsty,
173 unsigned long bitPlane
174);
175
176void
177cfbDoBitblt8To8GXcopy(
178 DrawablePtr pSrc,
179 DrawablePtr pDst,
180 int rop,
181 RegionPtr prgnDst,
182 DDXPointPtr pptSrc,
183 unsigned long pm
184);
185
186void
187cfbDoBitblt24To24GXcopy(
188 DrawablePtr pSrc,
189 DrawablePtr pDst,
190 int rop,
191 RegionPtr prgnDst,
192 DDXPointPtr pptSrc,
193 unsigned long pm
194);
195
196Bool cfb8_32CreateWindow(WindowPtr pWin);
197Bool cfb8_32DestroyWindow(WindowPtr pWin);
198
199Bool
200cfb8_32PositionWindow(
201 WindowPtr pWin,
202 int x, int y
203);
204
205void
206cfb8_32CopyWindow(
207 WindowPtr pWin,
208 DDXPointRec ptOldOrg,
209 RegionPtr prgnSrc
210);
211
212Bool
213cfb8_32ChangeWindowAttributes(
214 WindowPtr pWin,
215 unsigned long mask
216);
217
218
219#define CFB8_32_GET_GC_PRIVATE(pGC)\
220 (cfb8_32GCPtr)((pGC)->devPrivates[cfb8_32GetGCPrivateIndex()].ptr)
221
222#define CFB8_32_GET_SCREEN_PRIVATE(pScreen)\
223 (cfb8_32ScreenPtr)((pScreen)->devPrivates[cfb8_32GetScreenPrivateIndex()].ptr)
224
225Bool xf86Overlay8Plus32Init (ScreenPtr pScreen);
226
227#endif /* _CFB8_32_H */
Note: See TracBrowser for help on using the repository browser.

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