]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/nonownedwnd.h
7db6d66037fb9bd5ebe799196de2336ea4e9cc37
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: interface/wx/nonownedwnd.h
3 // Purpose: wxNonOwnedWindow class documentation
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
12 Common base class for all non-child windows.
14 This is the common base class of wxTopLevelWindow and wxPopupWindow and is
17 Currently the only additional functionality it provides, compared to base
18 wxWindow class, is the ability to set the window shape.
22 class wxNonOwnedWindow
: public wxWindow
26 If the platform supports it, sets the shape of the window to that
27 depicted by @a region. The system will not display or respond to any
28 mouse event for the pixels that lie outside of the region. To reset the
29 window to the normal rectangular shape simply call SetShape() again with
30 an empty wxRegion. Returns @true if the operation is successful.
32 This method is available in this class only since wxWidgets 2.9.3,
33 previous versions only provided it in wxTopLevelWindow.
35 virtual bool SetShape(const wxRegion
& region
);