40 #include "windowstr.h"
56 void (*windowDestroyed) (WindowPtr);
57 void (*windowUnmapped) (WindowPtr);
66 Colormap * cmap, Visual ** visual);
77 RegionPtr other_exposed);
78 extern void dmxCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg,
82 unsigned int w,
unsigned int h, WindowPtr pSib);
88 int x,
int y,
int w,
int h);
94 extern void dmxSetShape(WindowPtr pWindow,
int kind);
97 #define DMX_GET_WINDOW_PRIV(_pWin) ((dmxWinPrivPtr) \
98 dixLookupPrivate(&(_pWin)->devPrivates, dmxWinPrivateKey))
101 #define DMX_WINDOW_FUNC_PROLOGUE(_pGC) \
103 dmxGCPrivPtr pGCPriv = DMX_GET_GC_PRIV(_pGC); \
104 DMX_UNWRAP(funcs, pGCPriv, (_pGC)); \
106 DMX_UNWRAP(ops, pGCPriv, (_pGC)); \
109 #define DMX_WINDOW_FUNC_EPILOGUE(_pGC) \
111 dmxGCPrivPtr pGCPriv = DMX_GET_GC_PRIV(_pGC); \
112 DMX_WRAP(funcs, &dmxGCFuncs, pGCPriv, (_pGC)); \
114 DMX_WRAP(ops, &dmxGCOps, pGCPriv, (_pGC)); \
117 #define DMX_WINDOW_X1(_pWin) \
118 ((_pWin)->drawable.x - wBorderWidth(_pWin))
119 #define DMX_WINDOW_Y1(_pWin) \
120 ((_pWin)->drawable.y - wBorderWidth(_pWin))
121 #define DMX_WINDOW_X2(_pWin) \
122 ((_pWin)->drawable.x + wBorderWidth(_pWin) + (_pWin)->drawable.width)
123 #define DMX_WINDOW_Y2(_pWin) \
124 ((_pWin)->drawable.y + wBorderWidth(_pWin) + (_pWin)->drawable.height)
126 #define DMX_WINDOW_OFFSCREEN(_pWin) \
127 (DMX_WINDOW_X1(_pWin) >= (_pWin)->drawable.pScreen->width || \
128 DMX_WINDOW_Y1(_pWin) >= (_pWin)->drawable.pScreen->height || \
129 DMX_WINDOW_X2(_pWin) <= 0 || \
130 DMX_WINDOW_Y2(_pWin) <= 0)
void dmxResizeScreenWindow(ScreenPtr pScreen, int x, int y, int w, int h)
Definition: dmxwindow.c:119
Bool dmxPositionWindow(WindowPtr pWindow, int x, int y)
Definition: dmxwindow.c:438
Window dmxCreateRootWindow(WindowPtr pWindow)
Definition: dmxwindow.c:72
void dmxResizeWindow(WindowPtr pWindow, int x, int y, unsigned int w, unsigned int h, WindowPtr pSib)
Definition: dmxwindow.c:854
unsigned long attribMask
Definition: dmxwindow.h:48
void dmxResizeRootWindow(WindowPtr pRoot, int x, int y, int w, int h)
Definition: dmxwindow.c:142
Bool dmxRealizeWindow(WindowPtr pWindow)
Definition: dmxwindow.c:612
Bool dmxBEDestroyWindow(WindowPtr pWindow)
Definition: dmxwindow.c:384
void dmxSetShape(WindowPtr pWindow, int kind)
Definition: dmxwindow.c:1026
struct _dmxWinPriv * dmxWinPrivPtr
Bool dmxCreateWindow(WindowPtr pWindow)
Definition: dmxwindow.c:308
Colormap cmap
Definition: dmxwindow.h:49
Bool dmxDestroyWindow(WindowPtr pWindow)
Definition: dmxwindow.c:402
Bool isShaped
Definition: dmxwindow.h:51
Bool mapped
Definition: dmxwindow.h:46
struct _dmxWinPriv dmxWinPrivRec
void dmxCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
Definition: dmxwindow.c:811
Window window
Definition: dmxwindow.h:44
Bool restacked
Definition: dmxwindow.h:47
void dmxReparentWindow(WindowPtr pWindow, WindowPtr pPriorParent)
Definition: dmxwindow.c:900
Bool offscreen
Definition: dmxwindow.h:45
Bool dmxInitWindow(ScreenPtr pScreen)
Definition: dmxwindow.c:62
Bool hasPict
Definition: dmxwindow.h:52
Bool dmxUnrealizeWindow(WindowPtr pWindow)
Definition: dmxwindow.c:652
void dmxCreateAndRealizeWindow(WindowPtr pWindow, Bool doSync)
Definition: dmxwindow.c:281
void dmxWindowExposures(WindowPtr pWindow, RegionPtr prgn, RegionPtr other_exposed)
Definition: dmxwindow.c:775
void dmxRestackWindow(WindowPtr pWindow, WindowPtr pOldNextSib)
Definition: dmxwindow.c:738
Bool dmxChangeWindowAttributes(WindowPtr pWindow, unsigned long mask)
Definition: dmxwindow.c:576
void dmxGetDefaultWindowAttributes(WindowPtr pWindow, Colormap *cmap, Visual **visual)
Definition: dmxwindow.c:178
Visual * visual
Definition: dmxwindow.h:50
Definition: dmxwindow.h:43
void dmxChangeBorderWidth(WindowPtr pWindow, unsigned int width)
Definition: dmxwindow.c:932