]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/nonownedwnd.h
Document and test behaviour of wxRegion methods when it is invalid.
[wxWidgets.git] / include / wx / gtk / nonownedwnd.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/nonownedwnd.h
3 // Purpose: wxGTK-specific wxNonOwnedWindow declaration.
4 // Author: Vadim Zeitlin
5 // Created: 2011-10-12
6 // RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GTK_NONOWNEDWND_H_
12 #define _WX_GTK_NONOWNEDWND_H_
13
14 // ----------------------------------------------------------------------------
15 // wxNonOwnedWindow contains code common to wx{Popup,TopLevel}Window in wxGTK.
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxNonOwnedWindowBase
19 {
20 public:
21 wxNonOwnedWindow() { }
22
23 virtual bool SetShape(const wxRegion& region);
24
25 // Overridden to actually set the shape when the window becomes realized.
26 virtual void GTKHandleRealized();
27
28 private:
29 // If valid, defines the custom shape of the window.
30 wxRegion m_shape;
31
32 wxDECLARE_NO_COPY_CLASS(wxNonOwnedWindow);
33 };
34
35 #endif // _WX_GTK_NONOWNEDWND_H_