]> git.saurik.com Git - wxWidgets.git/blame - include/wx/nonownedwnd.h
Document and test behaviour of wxRegion methods when it is invalid.
[wxWidgets.git] / include / wx / nonownedwnd.h
CommitLineData
42b0d8b9
VS
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/nonownedwnd.h
3// Purpose: declares wxNonTopLevelWindow class
4// Author: Vaclav Slavik
5// Modified by:
6// Created: 2006-12-24
7// RCS-ID: $Id$
8// Copyright: (c) 2006 TT-Solutions
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_NONOWNEDWND_H_
13#define _WX_NONOWNEDWND_H_
14
5bd0ee99
VZ
15#include "wx/window.h"
16
17// ----------------------------------------------------------------------------
18// wxNonOwnedWindow: a window that is not a child window of another one.
19// ----------------------------------------------------------------------------
20
a3789770 21class WXDLLIMPEXP_CORE wxNonOwnedWindowBase : public wxWindow
5bd0ee99
VZ
22{
23public:
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; }
28
29};
30
42b0d8b9
VS
31#if defined(__WXDFB__)
32 #include "wx/dfb/nonownedwnd.h"
a82afab3
VZ
33#elif defined(__WXGTK__)
34 #include "wx/gtk/nonownedwnd.h"
53b9afde 35#elif defined(__WXMAC__)
ef0e9220 36 #include "wx/osx/nonownedwnd.h"
164db177 37#elif defined(__WXMSW__) && !defined(__WXWINCE__)
5bd0ee99 38 #include "wx/msw/nonownedwnd.h"
42b0d8b9 39#else
5bd0ee99 40 // No special class needed in other ports, they can derive both wxTLW and
a82afab3 41 // wxPopupWindow directly from wxWindow and don't implement SetShape().
5bd0ee99
VZ
42 class wxNonOwnedWindow : public wxNonOwnedWindowBase
43 {
44 };
42b0d8b9
VS
45#endif
46
47#endif // _WX_NONOWNEDWND_H_