1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/nonownedwnd.h
3 // Purpose: declares wxNonTopLevelWindow class
4 // Author: Vaclav Slavik
8 // Copyright: (c) 2006 TT-Solutions
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_NONOWNEDWND_H_
13 #define _WX_NONOWNEDWND_H_
15 #include "wx/window.h"
17 // ----------------------------------------------------------------------------
18 // wxNonOwnedWindow: a window that is not a child window of another one.
19 // ----------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxNonOwnedWindowBase
: public wxWindow
24 // Set the shape of the window to the given region.
25 // Returns true if the platform supports this feature (and the
26 // operation is successful.)
27 virtual bool SetShape(const wxRegion
& WXUNUSED(region
)) { return false; }
31 #if defined(__WXDFB__)
32 #include "wx/dfb/nonownedwnd.h"
33 #elif defined(__WXMAC__)
34 #include "wx/osx/nonownedwnd.h"
35 #elif defined(__WXMSW__)
36 #include "wx/msw/nonownedwnd.h"
38 // No special class needed in other ports, they can derive both wxTLW and
39 // wxPopupWindow directly from wxWindow and don't implement SetShape() (at
40 // least at this level, wxGTK does do it in wxTLW).
41 class wxNonOwnedWindow
: public wxNonOwnedWindowBase
46 #endif // _WX_NONOWNEDWND_H_