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:
@@ -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))
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user