1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef _XS_WINDOW_INCL_
#define _XS_WINDOW_INCL_
extern int xsWindowPrivateIndex;
typedef struct {
XCBWINDOW window;
XSOwnership owned;
} XscreenPrivWindow;
/**
* returns the window privates
**/
#define XS_WINDOW_PRIV(pWin) \
((XscreenPrivWindow *)((pWin)->devPrivates[xsWindowPrivateIndex].ptr))
/**
* returns whether the window in question is the root window.
* NB: This ONLY works for screen 0, which is all I currently care about.
**/
#define XS_IS_ROOT(pWin) \
((pWin) == (WindowTable[0]))
Bool xsCreateWindow(WindowPtr pWin);
Bool xsDestroyWindow(WindowPtr pWin);
Bool xsChangeWindowAttributes(WindowPtr pWin, unsigned long mask);
Bool xsRealizeWindow(WindowPtr pWin);
Bool xsUnrealizeWindow(WindowPtr pWin);
Bool xsPaintWindowBorder(WindowPtr pWin, RegionPtr pRegion, int what);
void xsPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion, int what);
Bool xsPositionWindow(WindowPtr pWin, int x, int y);
void xsConfigureWindow(WindowPtr pWin, CARD32 mask);
void xsWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr pOther);
void xsCopyWindow(WindowPtr pWin, xPoint old_orig, RegionPtr old_rgn);
void xsClipNotify(WindowPtr pWin, int dx, int dy);
#endif
|