added SetDoubleBuffered() (patch 1491093)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-05-28 14:30:08 +00:00
parent 0a089246e7
commit 8e1a5bf979
2 changed files with 11 additions and 0 deletions

View File

@ -109,6 +109,9 @@ public:
virtual void AddChild( wxWindowBase *child );
virtual void RemoveChild( wxWindowBase *child );
// currently wxGTK2-only
void SetDoubleBuffered(bool on);
// implementation
// --------------

View File

@ -3743,6 +3743,14 @@ void wxWindowGTK::GtkSendPaintEvents()
m_updateRegion.Clear();
}
void wxWindowGTK::SetDoubleBuffered( bool on )
{
wxCHECK_RET( (m_widget != NULL), wxT("invalid window") );
if ( m_wxwindow )
gtk_widget_set_double_buffered( m_wxwindow, on );
}
void wxWindowGTK::ClearBackground()
{
wxCHECK_RET( m_widget != NULL, wxT("invalid window") );