2007-01-22 15:04:49 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/nonownedwnd.h
|
|
|
|
// Purpose: declares wxNonTopLevelWindow class
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2006-12-24
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2006 TT-Solutions
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_NONOWNEDWND_H_
|
|
|
|
#define _WX_NONOWNEDWND_H_
|
|
|
|
|
2011-10-10 10:53:23 +00:00
|
|
|
#include "wx/window.h"
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxNonOwnedWindow: a window that is not a child window of another one.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2011-10-11 17:56:57 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxNonOwnedWindowBase : public wxWindow
|
2011-10-10 10:53:23 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Set the shape of the window to the given region.
|
|
|
|
// Returns true if the platform supports this feature (and the
|
|
|
|
// operation is successful.)
|
|
|
|
virtual bool SetShape(const wxRegion& WXUNUSED(region)) { return false; }
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2007-01-22 15:04:49 +00:00
|
|
|
#if defined(__WXDFB__)
|
|
|
|
#include "wx/dfb/nonownedwnd.h"
|
2011-10-13 12:45:56 +00:00
|
|
|
#elif defined(__WXGTK__)
|
|
|
|
#include "wx/gtk/nonownedwnd.h"
|
2008-03-25 07:39:43 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2008-06-11 19:17:41 +00:00
|
|
|
#include "wx/osx/nonownedwnd.h"
|
2011-10-15 00:20:56 +00:00
|
|
|
#elif defined(__WXMSW__) && !defined(__WXWINCE__)
|
2011-10-10 10:53:23 +00:00
|
|
|
#include "wx/msw/nonownedwnd.h"
|
2007-01-22 15:04:49 +00:00
|
|
|
#else
|
2011-10-10 10:53:23 +00:00
|
|
|
// No special class needed in other ports, they can derive both wxTLW and
|
2011-10-13 12:45:56 +00:00
|
|
|
// wxPopupWindow directly from wxWindow and don't implement SetShape().
|
2011-10-10 10:53:23 +00:00
|
|
|
class wxNonOwnedWindow : public wxNonOwnedWindowBase
|
|
|
|
{
|
|
|
|
};
|
2007-01-22 15:04:49 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // _WX_NONOWNEDWND_H_
|