wx..._EX_METAL styles support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,6 +91,8 @@ public:
|
|||||||
virtual void Lower();
|
virtual void Lower();
|
||||||
virtual bool Show( bool show = true );
|
virtual bool Show( bool show = true );
|
||||||
|
|
||||||
|
virtual void SetExtraStyle(long exStyle) ;
|
||||||
|
|
||||||
virtual void MacSetBackgroundBrush( const wxBrush &brush ) ;
|
virtual void MacSetBackgroundBrush( const wxBrush &brush ) ;
|
||||||
|
|
||||||
bool MacUsesCompositing() { return m_macUsesCompositing; }
|
bool MacUsesCompositing() { return m_macUsesCompositing; }
|
||||||
|
@@ -1208,6 +1208,16 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
|
|||||||
// the root control level handleer
|
// the root control level handleer
|
||||||
MacInstallEventHandler( (WXWidget) m_peer->GetControlRef() ) ;
|
MacInstallEventHandler( (WXWidget) m_peer->GetControlRef() ) ;
|
||||||
|
|
||||||
|
#if TARGET_API_MAC_OSX
|
||||||
|
if ( m_macUsesCompositing && m_macWindow != NULL )
|
||||||
|
{
|
||||||
|
if ( GetExtraStyle() & wxFRAME_EX_METAL )
|
||||||
|
MacSetMetalAppearance( true ) ;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// the frame window event handler
|
// the frame window event handler
|
||||||
InstallStandardEventHandler( GetWindowEventTarget(MAC_WXHWND(m_macWindow)) ) ;
|
InstallStandardEventHandler( GetWindowEventTarget(MAC_WXHWND(m_macWindow)) ) ;
|
||||||
MacInstallTopLevelWindowEventHandler() ;
|
MacInstallTopLevelWindowEventHandler() ;
|
||||||
@@ -1385,6 +1395,23 @@ bool wxTopLevelWindowMac::IsFullScreen() const
|
|||||||
return m_macFullScreenData != NULL ;
|
return m_macFullScreenData != NULL ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxTopLevelWindowMac::SetExtraStyle(long exStyle)
|
||||||
|
{
|
||||||
|
if ( GetExtraStyle() == exStyle )
|
||||||
|
return ;
|
||||||
|
|
||||||
|
wxTopLevelWindowBase::SetExtraStyle( exStyle ) ;
|
||||||
|
#if TARGET_API_MAC_OSX
|
||||||
|
if ( m_macUsesCompositing && m_macWindow != NULL )
|
||||||
|
{
|
||||||
|
bool metal = GetExtraStyle() & wxFRAME_EX_METAL ;
|
||||||
|
if ( MacGetMetalAppearance() != metal )
|
||||||
|
MacSetMetalAppearance( metal ) ;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// we are still using coordinates of the content view, todo switch to structure bounds
|
// we are still using coordinates of the content view, todo switch to structure bounds
|
||||||
|
|
||||||
void wxTopLevelWindowMac::MacGetContentAreaInset( int &left , int &top , int &right , int &bottom )
|
void wxTopLevelWindowMac::MacGetContentAreaInset( int &left , int &top , int &right , int &bottom )
|
||||||
|
Reference in New Issue
Block a user