public:
// construction
wxTopLevelWindowBase();
-#ifdef __DARWIN__
- virtual ~wxTopLevelWindowBase() {}
-#endif
-
+
// top level wnd state
// --------------------
// set the frame icon
virtual void SetIcon(const wxIcon& icon) { m_icon = icon; }
+ // maximize the window to cover entire screen
+ virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) = 0;
+
+ // return TRUE if the frame is in fullscreen mode
+ virtual bool IsFullScreen() const = 0;
+
/*
for now we already have them in wxWindow, but this is wrong: these
methods really only make sense for wxTopLevelWindow!
// so should be there for all platforms
void OnActivate(wxActivateEvent &WXUNUSED(event)) { }
+#ifdef __DARWIN__
+ virtual ~wxTopLevelWindowBase() {}
+#endif
+
protected:
// the frame client to screen translation should take account of the
// toolbar which may shift the origin of the client area
// include the real class declaration
-#if defined(__WXGTK__)
+#if defined(__WXMSW__)
+ #include "wx/msw/toplevel.h"
+ #define wxTopLevelWindowNative wxTopLevelWindowMSW
+#elif defined(__WXGTK__)
#include "wx/gtk/toplevel.h"
#define wxTopLevelWindowNative wxTopLevelWindowGTK
#elif defined(__WXMGL__)
#include "wx/mgl/toplevel.h"
#define wxTopLevelWindowNative wxTopLevelWindowMGL
+#elif defined(__WXMAC__)
+ #include "wx/mac/toplevel.h"
+ #define wxTopLevelWindowNative wxTopLevelWindowMac
#endif
#ifdef __WXUNIVERSAL__