X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..6df6e35a3eae74404f15f8f7c09ce19c29f47b4a:/include/wx/toplevel.h?ds=sidebyside diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index b90c1a6584..737019df45 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