X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c20e8f816b21b911e3a8ed8197c21df6ce726d6..be4da8f0315e36de2322cd312c7184f55c0333f5:/include/wx/toplevel.h?ds=sidebyside diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index e9be5bb460..bde3440ec7 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.) @@ -196,10 +199,6 @@ public: void CentreOnScreen(int dir = wxBOTH) { DoCentre(dir | wxCENTRE_ON_SCREEN); } void CenterOnScreen(int dir = wxBOTH) { CentreOnScreen(dir); } - // Set window transparency if the platform supports it - virtual bool SetTransparent(wxByte WXUNUSED(alpha)) { return false; } - virtual bool CanSetTransparent() { return false; } - // default item access: we have a permanent default item which is the one // set by the user code but we may also have a temporary default item which @@ -233,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 @@ -250,6 +250,10 @@ public: virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) ; protected: + 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; @@ -320,6 +324,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