1706f2543Smrg/*
2706f2543Smrg
3706f2543SmrgCopyright 1993 by Davor Matic
4706f2543Smrg
5706f2543SmrgPermission to use, copy, modify, distribute, and sell this software
6706f2543Smrgand its documentation for any purpose is hereby granted without fee,
7706f2543Smrgprovided that the above copyright notice appear in all copies and that
8706f2543Smrgboth that copyright notice and this permission notice appear in
9706f2543Smrgsupporting documentation.  Davor Matic makes no representations about
10706f2543Smrgthe suitability of this software for any purpose.  It is provided "as
11706f2543Smrgis" without express or implied warranty.
12706f2543Smrg
13706f2543Smrg*/
14706f2543Smrg
15706f2543Smrg#ifndef XNESTDRAWABLE_H
16706f2543Smrg#define XNESTDRAWABLE_H
17706f2543Smrg
18706f2543Smrg#include "XNWindow.h"
19706f2543Smrg#include "XNPixmap.h"
20706f2543Smrg
21706f2543Smrg#define xnestDrawable(pDrawable) \
22706f2543Smrg  (WindowDrawable((pDrawable)->type) ?	\
23706f2543Smrg   xnestWindow((WindowPtr)pDrawable) : \
24706f2543Smrg   xnestPixmap((PixmapPtr)pDrawable))
25706f2543Smrg
26706f2543Smrg#endif /* XNESTDRAWABLE_H */
27