Contents Up Previous Next

cbAntiflickerPlugin

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

cbPluginBase

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::cbAntiflickerPlugin

cbAntiflickerPlugin()

Default constructor.

cbAntiflickerPlugin(wxFrameLayout* pPanel, int paneMask = wxALL_PANES)

Constructor taking frame layout panel, and pane mask.


cbAntiflickerPlugin::~cbAntiflickerPlugin

~cbAntiflickerPlugin()

Destructor.


cbAntiflickerPlugin::AllocNewBuffer

wxDC* AllocNewBuffer(const wxRect& forArea)

Allocates a suitable buffer.


cbAntiflickerPlugin::FindSuitableBuffer

wxDC* FindSuitableBuffer(const wxRect& forArea)

Finds a suitable buffer. Returns NULL if a suitable buffer is not present.


cbAntiflickerPlugin::GetClientDC

wxDC& GetClientDC()

Gets the client device context.


cbAntiflickerPlugin::GetWindowDC

wxDC& GetWindowDC()

Gets the window device context.


cbAntiflickerPlugin::OnFinishDrawInArea

void OnFinishDrawInArea(cbFinishDrawInAreaEvent& event)

Handler for plugin event.


cbAntiflickerPlugin::OnStartDrawInArea

void OnStartDrawInArea(cbStartDrawInAreaEvent& event)

Handler for plugin event.