Implements double-buffering to reduce flicker. 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.
Derived from
Include files
<wx/fl/antiflickpl.h>
Data structures
Members
cbAntiflickerPlugin::cbAntiflickerPlugin
cbAntiflickerPlugin::~cbAntiflickerPlugin
cbAntiflickerPlugin::AllocNewBuffer
cbAntiflickerPlugin::FindSuitableBuffer
cbAntiflickerPlugin::GetClientDC
cbAntiflickerPlugin::GetWindowDC
cbAntiflickerPlugin::OnFinishDrawInArea
cbAntiflickerPlugin::OnStartDrawInArea
cbAntiflickerPlugin()
Default constructor.
cbAntiflickerPlugin(wxFrameLayout* pPanel, int paneMask = wxALL_PANES)
Constructor taking frame layout panel, and pane mask.
~cbAntiflickerPlugin()
Destructor.
wxDC* AllocNewBuffer(const wxRect& forArea)
Allocates a suitable buffer.
wxDC* FindSuitableBuffer(const wxRect& forArea)
Finds a suitable buffer. Returns NULL if a suitable buffer is not present.
wxDC& GetClientDC()
Gets the client device context.
wxDC& GetWindowDC()
Gets the window device context.
void OnFinishDrawInArea(cbFinishDrawInAreaEvent& event)
Handler for plugin event.
void OnStartDrawInArea(cbStartDrawInAreaEvent& event)
Handler for plugin event.