1 | /* $XFree86$ */
|
---|
2 |
|
---|
3 | #ifndef _CFB8_32WID_H
|
---|
4 | #define _CFB8_32WID_H
|
---|
5 |
|
---|
6 | #include "regionstr.h"
|
---|
7 | #include "windowstr.h"
|
---|
8 |
|
---|
9 | typedef struct {
|
---|
10 | unsigned int (*WidGet)(WindowPtr);
|
---|
11 | Bool (*WidAlloc)(WindowPtr);
|
---|
12 | void (*WidFree)(WindowPtr);
|
---|
13 | void (*WidFillBox)(DrawablePtr, DrawablePtr, int, BoxPtr);
|
---|
14 | void (*WidCopyArea)(DrawablePtr, RegionPtr, DDXPointPtr);
|
---|
15 | } cfb8_32WidOps;
|
---|
16 |
|
---|
17 | typedef struct {
|
---|
18 | pointer pix8;
|
---|
19 | int width8;
|
---|
20 | pointer pix32;
|
---|
21 | int width32;
|
---|
22 |
|
---|
23 | /* WID information */
|
---|
24 | pointer pixWid;
|
---|
25 | int widthWid;
|
---|
26 | int bitsPerWid;
|
---|
27 | cfb8_32WidOps *WIDOps;
|
---|
28 | } cfb8_32WidScreenRec, *cfb8_32WidScreenPtr;
|
---|
29 |
|
---|
30 | extern int cfb8_32WidScreenPrivateIndex; /* XXX */
|
---|
31 | extern int cfb8_32WidGetScreenPrivateIndex(void);
|
---|
32 |
|
---|
33 | Bool
|
---|
34 | cfb8_32WidScreenInit (
|
---|
35 | ScreenPtr pScreen,
|
---|
36 | pointer pbits32,
|
---|
37 | pointer pbits8,
|
---|
38 | pointer pbitsWid,
|
---|
39 | int xsize, int ysize,
|
---|
40 | int dpix, int dpiy,
|
---|
41 | int width32,
|
---|
42 | int width8,
|
---|
43 | int widthWid,
|
---|
44 | int bitsPerWid,
|
---|
45 | cfb8_32WidOps *WIDOps
|
---|
46 | );
|
---|
47 |
|
---|
48 | /* cfbwindow.c */
|
---|
49 |
|
---|
50 | void
|
---|
51 | cfb8_32WidPaintWindow (
|
---|
52 | WindowPtr pWin,
|
---|
53 | RegionPtr pRegion,
|
---|
54 | int what
|
---|
55 | );
|
---|
56 |
|
---|
57 | Bool cfb8_32WidCreateWindow(WindowPtr pWin);
|
---|
58 | Bool cfb8_32WidDestroyWindow(WindowPtr pWin);
|
---|
59 |
|
---|
60 | Bool
|
---|
61 | cfb8_32WidPositionWindow(
|
---|
62 | WindowPtr pWin,
|
---|
63 | int x, int y
|
---|
64 | );
|
---|
65 |
|
---|
66 | void
|
---|
67 | cfb8_32WidCopyWindow(
|
---|
68 | WindowPtr pWin,
|
---|
69 | DDXPointRec ptOldOrg,
|
---|
70 | RegionPtr prgnSrc
|
---|
71 | );
|
---|
72 |
|
---|
73 | Bool
|
---|
74 | cfb8_32WidChangeWindowAttributes(
|
---|
75 | WindowPtr pWin,
|
---|
76 | unsigned long mask
|
---|
77 | );
|
---|
78 |
|
---|
79 | void
|
---|
80 | cfb8_32WidWindowExposures(
|
---|
81 | WindowPtr pWin,
|
---|
82 | RegionPtr pReg,
|
---|
83 | RegionPtr pOtherReg
|
---|
84 | );
|
---|
85 |
|
---|
86 | /* cfbwid.c */
|
---|
87 |
|
---|
88 | Bool
|
---|
89 | cfb8_32WidGenericOpsInit(cfb8_32WidScreenPtr pScreenPriv);
|
---|
90 |
|
---|
91 | #define CFB8_32WID_GET_SCREEN_PRIVATE(pScreen)\
|
---|
92 | (cfb8_32WidScreenPtr)((pScreen)->devPrivates[cfb8_32WidGetScreenPrivateIndex()].ptr)
|
---|
93 |
|
---|
94 | #endif /* _CFB8_32WID_H */
|
---|