1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/xf8_16bpp/cfb8_16.h,v 1.1 1999/01/31 12:22:16 dawes Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _CFB8_16_H
|
---|
4 | #define _CFB8_16_H
|
---|
5 |
|
---|
6 | #include "regionstr.h"
|
---|
7 | #include "windowstr.h"
|
---|
8 |
|
---|
9 | typedef struct {
|
---|
10 | pointer pix8;
|
---|
11 | int width8;
|
---|
12 | pointer pix16;
|
---|
13 | int width16;
|
---|
14 | unsigned char key;
|
---|
15 | } cfb8_16ScreenRec, *cfb8_16ScreenPtr;
|
---|
16 |
|
---|
17 | extern int cfb8_16ScreenPrivateIndex; /* XXX */
|
---|
18 | extern int cfb8_16GetScreenPrivateIndex(void);
|
---|
19 |
|
---|
20 | Bool
|
---|
21 | cfb8_16ScreenInit (
|
---|
22 | ScreenPtr pScreen,
|
---|
23 | pointer pbits16,
|
---|
24 | pointer pbits8,
|
---|
25 | int xsize, int ysize,
|
---|
26 | int dpix, int dpiy,
|
---|
27 | int width16,
|
---|
28 | int width8
|
---|
29 | );
|
---|
30 |
|
---|
31 | void
|
---|
32 | cfb8_16PaintWindow (
|
---|
33 | WindowPtr pWin,
|
---|
34 | RegionPtr pRegion,
|
---|
35 | int what
|
---|
36 | );
|
---|
37 |
|
---|
38 | Bool cfb8_16CreateWindow(WindowPtr pWin);
|
---|
39 | Bool cfb8_16DestroyWindow(WindowPtr pWin);
|
---|
40 |
|
---|
41 | Bool
|
---|
42 | cfb8_16PositionWindow(
|
---|
43 | WindowPtr pWin,
|
---|
44 | int x, int y
|
---|
45 | );
|
---|
46 |
|
---|
47 | void
|
---|
48 | cfb8_16CopyWindow(
|
---|
49 | WindowPtr pWin,
|
---|
50 | DDXPointRec ptOldOrg,
|
---|
51 | RegionPtr prgnSrc
|
---|
52 | );
|
---|
53 |
|
---|
54 | Bool
|
---|
55 | cfb8_16ChangeWindowAttributes(
|
---|
56 | WindowPtr pWin,
|
---|
57 | unsigned long mask
|
---|
58 | );
|
---|
59 |
|
---|
60 | void
|
---|
61 | cfb8_16WindowExposures(
|
---|
62 | WindowPtr pWin,
|
---|
63 | RegionPtr pReg,
|
---|
64 | RegionPtr pOtherReg
|
---|
65 | );
|
---|
66 |
|
---|
67 | #define CFB8_16_GET_SCREEN_PRIVATE(pScreen)\
|
---|
68 | (cfb8_16ScreenPtr)((pScreen)->devPrivates[cfb8_16GetScreenPrivateIndex()].ptr)
|
---|
69 |
|
---|
70 | #endif /* _CFB8_16_H */
|
---|