support for freeze and thaw under cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2012-11-08 15:46:23 +00:00
parent 346634a0d3
commit 2ab3802522
5 changed files with 32 additions and 8 deletions

View File

@@ -1362,27 +1362,23 @@ void wxWindowMac::Refresh(bool WXUNUSED(eraseBack), const wxRect *rect)
if ( !IsShownOnScreen() )
return ;
if ( IsFrozen() )
return;
GetPeer()->SetNeedsDisplay( rect ) ;
}
void wxWindowMac::DoFreeze()
{
#if wxOSX_USE_CARBON
if ( GetPeer() && GetPeer()->IsOk() )
GetPeer()->SetDrawingEnabled( false ) ;
#endif
}
void wxWindowMac::DoThaw()
{
#if wxOSX_USE_CARBON
if ( GetPeer() && GetPeer()->IsOk() )
{
GetPeer()->SetDrawingEnabled( true ) ;
GetPeer()->InvalidateWithChildren() ;
}
#endif
}
wxWindow *wxGetActiveWindow()
@@ -2854,3 +2850,7 @@ bool wxWidgetImpl::NeedsFrame() const
{
return m_needsFrame;
}
void wxWidgetImpl::SetDrawingEnabled(bool WXUNUSED(enabled))
{
}