X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b58d5e2d952e2b3bb03de42098d1399ba23f53e8..7ac21a67618fd116d17d39a936380b3689972ee3:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index 2c601c70c5..933b258595 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -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.) @@ -229,6 +232,7 @@ public: // override some base class virtuals virtual bool Destroy(); virtual bool IsTopLevel() const { return true; } + virtual bool IsVisible() const { return IsShown(); } virtual wxSize GetMaxSize() const; // event handlers @@ -246,6 +250,16 @@ public: virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) ; protected: + + // 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 ); + // the frame client to screen translation should take account of the // toolbar which may shift the origin of the client area virtual void DoClientToScreen(int *x, int *y) const; @@ -316,6 +330,9 @@ protected: #elif defined(__WXMGL__) #include "wx/mgl/toplevel.h" #define wxTopLevelWindowNative wxTopLevelWindowMGL +#elif defined(__WXDFB__) + #include "wx/dfb/toplevel.h" + #define wxTopLevelWindowNative wxTopLevelWindowDFB #elif defined(__WXMAC__) #include "wx/mac/toplevel.h" #define wxTopLevelWindowNative wxTopLevelWindowMac