X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80823340ab3da196d5225b7c7087f4b7a7dcc35e..bff995bf711f6df8ce080a119ef17e52ba8813ec:/include/wx/toplevel.h?ds=sidebyside diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index bf5fe88226..7e08f640cb 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -31,7 +31,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr; class WXDLLEXPORT wxTopLevelWindowBase; // Dialogs are created in a special way -#define wxTLW_EX_DIALOG 0x00000008 +#define wxTOPLEVEL_EX_DIALOG 0x00000008 // Styles for ShowFullScreen // (note that wxTopLevelWindow only handles wxFULLSCREEN_NOBORDER and @@ -52,10 +52,7 @@ class WXDLLEXPORT wxTopLevelWindowBase : public wxWindow public: // construction wxTopLevelWindowBase(); -#ifdef __DARWIN__ - virtual ~wxTopLevelWindowBase() {} -#endif - + // top level wnd state // -------------------- @@ -80,6 +77,12 @@ public: // 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! @@ -108,6 +111,10 @@ public: // 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 @@ -129,12 +136,18 @@ protected: // 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__