doublebuffer.cpp

Go to the documentation of this file.
00001 // $Id: doublebuffer.cpp 757 2006-04-01 16:04:45Z alex $
00002 /* @@tag:xara-cn-tp@@ THIRD PARTY COPYRIGHT */
00003 // The following line makes normalize.pl skip type fixing
00004 /* SKIPFIXTYPES: START */
00005 
00006 // This file is derived from CVSHEAD wxWidgets and is thus
00007 // under the wxWidgets / wxWindows license.
00008 
00009 #include "doublebuffer.h"
00010 
00011 #ifdef __WXGTK__
00012 
00013 #if wxCHECK_VERSION(2,6,3)
00014 void SetDoubleBuffer (wxWindow * pWindow, bool DoubleBuffer)
00015 {
00016 #ifdef __WXGTK20__
00017     pWindow->SetDoubleBuffered( DoubleBuffer );
00018 #endif // __WXGTK20__
00019 }
00020 
00021 #else // version 2.6.3 
00022 
00023 // this probably won't work without a longer link line - if you get a link
00024 // error here that means you aren't using wxWidgets 2.6.3 release which
00025 // is now the minimum version - this code should not be active
00026 #include <wx/gtk/win_gtk.h> // For GTK_PIZZA etc.
00027 
00028 void SetDoubleBuffer (wxWindow * pWindow, bool DoubleBuffer)
00029 {
00030 #ifdef __WXGTK20__
00031     gtk_widget_set_double_buffered( pWindow->m_wxwindow, DoubleBuffer );
00032 #endif // __WXGTK20__
00033     gtk_pizza_set_clear( GTK_PIZZA(pWindow->m_wxwindow), DoubleBuffer );
00034 }
00035 #endif // version 2.6.3
00036 
00037 #else // __WXGTK__
00038 void SetDoubleBuffer (wxWindow * pWindow, bool DoubleBuffer) {return;}
00039 #endif // __WXGTK__
00040 

Generated on Sat Nov 10 03:49:00 2007 for Camelot by  doxygen 1.4.4