X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cf1cb1006d6b5762d96c07ee3892883607460c7..909b16f6294d47cae7be032cd2bcab6874ad31af:/wxPython/src/_toplvl.i diff --git a/wxPython/src/_toplvl.i b/wxPython/src/_toplvl.i index ceeaf5b111..e9e6c60fd1 100644 --- a/wxPython/src/_toplvl.i +++ b/wxPython/src/_toplvl.i @@ -100,6 +100,10 @@ public: // return True if the frame is maximized virtual bool IsMaximized() const; + // return true if the frame is always maximized + // due to native guidelines or current policy + virtual bool IsAlwaysMaximized() const; + // return True if the frame is iconized virtual bool IsIconized() const; @@ -134,7 +138,16 @@ public: virtual bool IsActive(); #ifdef __WXMAC__ - void MacSetMetalAppearance( bool on ); + %extend { + void MacSetMetalAppearance( bool on ) { + int style = self->GetExtraStyle(); + if ( on ) + style |= wxFRAME_EX_METAL; + else + style &= ~wxFRAME_EX_METAL; + self->SetExtraStyle(style); + } + } bool MacGetMetalAppearance() const; #else %extend