X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba4f890e49f4c8b55ec5cda0248d9df01f178f12..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/dcbuffer.h diff --git a/interface/wx/dcbuffer.h b/interface/wx/dcbuffer.h index 93492e4b5a..9268e437aa 100644 --- a/interface/wx/dcbuffer.h +++ b/interface/wx/dcbuffer.h @@ -2,7 +2,6 @@ // Name: dcbuffer.h // Purpose: interface of wxBufferedDC // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -118,6 +117,27 @@ public: void Init(wxDC* dc, wxBitmap& buffer = wxNullBitmap, int style = wxBUFFER_CLIENT_AREA); //@} + + + /** + Blits the buffer to the dc, and detaches the dc from the buffer (so it + can be effectively used once only). + + Usually only called in the destructor or by the destructor of derived + classes if the BufferedDC must blit before the derived class (which may + own the dc it's blitting to) is destroyed. + */ + void UnMask(); + + /** + Set the style. + */ + void SetStyle(int style); + + /** + Get the style. + */ + int GetStyle() const; }; @@ -139,7 +159,7 @@ public: have native double-buffering, otherwise, it is a typedef of wxBufferedPaintDC. - @library{wxbase} + @library{wxcore} @category{dc} @see wxDC, wxBufferedPaintDC, wxPaintDC @@ -154,6 +174,13 @@ public: }; +/** + * Check if the window is natively double buffered and will return a wxPaintDC + * if it is, a wxBufferedPaintDC otherwise. It is the caller's responsibility + * to delete the wxDC pointer when finished with it. + */ +wxDC* wxAutoBufferedPaintDCFactory(wxWindow* window); + /** @class wxBufferedPaintDC