*/
wxBufferedDC(wxDC* dc, const wxSize& area,
int style = wxBUFFER_CLIENT_AREA);
+
/**
Creates a buffer for the provided dc. Init() must not be called when
using this constructor.
window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the
buffer bitmap covers the virtual area.
*/
- wxBufferedDC(wxDC* dc, wxBitmap& buffer,
+ wxBufferedDC(wxDC* dc, wxBitmap& buffer = wxNullBitmap,
int style = wxBUFFER_CLIENT_AREA);
//@}
Copies everything drawn on the DC so far to the underlying DC
associated with this object, if any.
*/
- ~wxBufferedDC();
+ virtual ~wxBufferedDC();
//@{
/**
*/
void Init(wxDC* dc, const wxSize& area,
int style = wxBUFFER_CLIENT_AREA);
- void Init(wxDC* dc, wxBitmap& buffer,
+ void Init(wxDC* dc, wxBitmap& buffer = wxNullBitmap,
int style = wxBUFFER_CLIENT_AREA);
//@}
};
Copies everything drawn on the DC so far to the window associated with
this object, using a wxPaintDC.
*/
- ~wxBufferedPaintDC();
+ virtual ~wxBufferedPaintDC();
};