X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c72cf7619064969b5c7f59cece74013789db4cf..8a540c887cd30960c77e6c171ecabe30273321a8:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index fee628786c..98c2bd6b49 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -18,7 +18,7 @@ // headers // ---------------------------------------------------------------------------- -#include "wx/window.h" +#include "wx/nonownedwnd.h" #include "wx/iconbndl.h" // the default names for various classes @@ -115,7 +115,7 @@ enum // wxTopLevelWindow: a top level (as opposed to child) window // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxTopLevelWindowBase : public wxWindow +class WXDLLEXPORT wxTopLevelWindowBase : public wxNonOwnedWindow { public: // construction @@ -167,6 +167,9 @@ public: virtual void SetTitle(const wxString& title) = 0; virtual wxString GetTitle() const = 0; + // enable/disable close button [x] + virtual bool EnableCloseButton(bool WXUNUSED(enable) ) { return false; } + // Set the shape of the window to the given region. // Returns true if the platform supports this feature (and the // operation is successful.) @@ -230,7 +233,6 @@ public: virtual bool Destroy(); virtual bool IsTopLevel() const { return true; } virtual bool IsVisible() const { return IsShown(); } - virtual wxSize GetMaxSize() const; // event handlers void OnCloseWindow(wxCloseEvent& event); @@ -246,6 +248,15 @@ public: // do the window-specific processing after processing the update event virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) ; + // a different API for SetSizeHints + virtual void SetMinSize(const wxSize& minSize); + virtual void SetMaxSize(const wxSize& maxSize); + + // set size hints for "window manager" + virtual void DoSetSizeHints( int minW, int minH, + int maxW = wxDefaultCoord, int maxH = wxDefaultCoord, + int incW = wxDefaultCoord, int incH = wxDefaultCoord ); + protected: // the frame client to screen translation should take account of the // toolbar which may shift the origin of the client area