X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e598303ae723d01ffe38d41b47a3d4027cb0d0fd..b808efdb885aa82a6c34a8278119bae63c7f4183:/contrib/include/wx/fl/antiflickpl.h?ds=sidebyside diff --git a/contrib/include/wx/fl/antiflickpl.h b/contrib/include/wx/fl/antiflickpl.h index 332c45ea33..91a9cfa279 100644 --- a/contrib/include/wx/fl/antiflickpl.h +++ b/contrib/include/wx/fl/antiflickpl.h @@ -6,13 +6,13 @@ // Created: 23/10/98 // RCS-ID: $Id$ // Copyright: (c) Aleksandras Gluchovas -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __ANTIFLICKPL_G__ #define __ANTIFLICKPL_G__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "antiflickpl.h" #endif @@ -20,50 +20,66 @@ /* Implements double-buffering to reduce flicker. -Bitmap and memory DC buffers are shared "resources" among all instances of +Bitmap and memory DC buffers are shared 'resources' among all instances of antiflicker plugins within the application. -Locking for multithreaded applications is not yet implemented. +Locking for multithreaded applications is not yet implemented. */ -class cbAntiflickerPlugin : public cbPluginBase +class WXDLLIMPEXP_FL cbAntiflickerPlugin : public cbPluginBase { - DECLARE_DYNAMIC_CLASS( cbAntiflickerPlugin ) + DECLARE_DYNAMIC_CLASS( cbAntiflickerPlugin ) protected: - static wxBitmap* mpVertBuf; - static wxBitmap* mpHorizBuf; - static wxMemoryDC* mpVertBufDc; - static wxMemoryDC* mpHorizBufDc; + static wxBitmap* mpVertBuf; + static wxBitmap* mpHorizBuf; + static wxMemoryDC* mpVertBufDc; + static wxMemoryDC* mpHorizBufDc; - static int mRefCount; + static int mRefCount; - wxDC* mpLRUBufDc; // last-recently-used buffer - wxRect mLRUArea; // last-recently-used area + wxDC* mpLRUBufDc; // last-recently-used buffer + wxRect mLRUArea; // last-recently-used area protected: - // Finds a suitable buffer. Returns NULL if a suitable buffer is not present. - wxDC* FindSuitableBuffer( const wxRect& forArea ); - // Allocates a suitable buffer. - wxDC* AllocNewBuffer( const wxRect& forArea ); + // Finds a suitable buffer. Returns NULL if a suitable buffer is not present. - wxDC& GetWindowDC(); - wxDC& GetClientDC(); + wxDC* FindSuitableBuffer( const wxRect& forArea ); + + // Allocates a suitable buffer. + + wxDC* AllocNewBuffer( const wxRect& forArea ); + + // Gets the window device context. + + wxDC& GetWindowDC(); + + // Gets the client device context. + + wxDC& GetClientDC(); public: - cbAntiflickerPlugin(void); + // Default constructor. + + cbAntiflickerPlugin(void); + + // Constructor taking frame layout panel, and pane mask. + + cbAntiflickerPlugin( wxFrameLayout* pPanel, int paneMask = wxALL_PANES ); + + // Destructor. + + virtual ~cbAntiflickerPlugin(); - cbAntiflickerPlugin( wxFrameLayout* pPanel, int paneMask = wxALL_PANES ); + // Handler for plugin event. - virtual ~cbAntiflickerPlugin(); + void OnStartDrawInArea ( cbStartDrawInAreaEvent& event ); - // Handler for plugin event. - void OnStartDrawInArea ( cbStartDrawInAreaEvent& event ); + // Handler for plugin event. - // Handler for plugin event. - void OnFinishDrawInArea( cbFinishDrawInAreaEvent& event ); + void OnFinishDrawInArea( cbFinishDrawInAreaEvent& event ); - DECLARE_EVENT_TABLE() + DECLARE_EVENT_TABLE() }; #endif /* __ANTIFLICKPL_G__ */