X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..ea2a647d388cd9952d2eb1415f038e0ab15151b6:/interface/wx/dcbuffer.h diff --git a/interface/wx/dcbuffer.h b/interface/wx/dcbuffer.h index 569ccdba03..55a130bba4 100644 --- a/interface/wx/dcbuffer.h +++ b/interface/wx/dcbuffer.h @@ -8,7 +8,6 @@ /** @class wxBufferedDC - @wxheader{dcbuffer.h} This class provides a simple way to avoid flicker: when drawing on it, everything is in fact first drawn on an in-memory buffer (a wxBitmap) and @@ -51,7 +50,7 @@ public: //@{ /** - Creates a buffer for the provided @dc. Init() must not be called when + Creates a buffer for the provided @a dc. Init() must not be called when using this constructor. @param dc @@ -61,6 +60,22 @@ public: @param area The size of the bitmap to be used for buffering (this bitmap is created internally when it is not given explicitly). + @param style + wxBUFFER_CLIENT_AREA to indicate that just the client area of the + window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the + buffer bitmap covers the virtual area. + */ + 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. + + @param dc + The underlying DC: everything drawn to this object will be flushed + to this DC when this object is destroyed. You may pass @NULL in + order to just initialize the buffer, and not flush it. @param buffer Explicitly provided bitmap to be used for buffering: this is the most efficient solution as the bitmap doesn't have to be recreated @@ -72,8 +87,6 @@ public: window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the buffer bitmap covers the virtual area. */ - wxBufferedDC(wxDC* dc, const wxSize& area, - int style = wxBUFFER_CLIENT_AREA); wxBufferedDC(wxDC* dc, wxBitmap& buffer, int style = wxBUFFER_CLIENT_AREA); //@} @@ -82,7 +95,7 @@ public: Copies everything drawn on the DC so far to the underlying DC associated with this object, if any. */ - ~wxBufferedDC(); + virtual ~wxBufferedDC(); //@{ /** @@ -100,7 +113,6 @@ public: /** @class wxAutoBufferedPaintDC - @wxheader{dcbuffer.h} This wxDC derivative can be used inside of an @c EVT_PAINT() event handler to achieve double-buffered drawing. Just use this class instead of @@ -134,7 +146,6 @@ public: /** @class wxBufferedPaintDC - @wxheader{dcbuffer.h} This is a subclass of wxBufferedDC which can be used inside of an @c EVT_PAINT() event handler to achieve double-buffered drawing. Just use @@ -175,6 +186,6 @@ public: Copies everything drawn on the DC so far to the window associated with this object, using a wxPaintDC. */ - ~wxBufferedPaintDC(); + virtual ~wxBufferedPaintDC(); };