Some little additions to how wxBufferedDC is wrapped.

SHow how to use the wxBufferedDC in the demo.
Other demo tweaks


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-04-09 01:25:47 +00:00
parent 06cf7c08f2
commit d3bfec747d
6 changed files with 115 additions and 14 deletions

View File

@@ -878,6 +878,19 @@ public:
// (where area is usually something like the size of the window
// being buffered)
%name(wxBufferedDCInternalBuffer)wxBufferedDC( wxDC *dc, const wxSize &area );
// Blits the buffer to the dc, and detaches the dc from
// the buffer. Usually called in the dtor or by the dtor
// 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();
%pragma(python) addtomethod =
"__init__:self._dc = _args[0] # save a ref so the other dc won't be deleted before self"
%pragma(python) addtomethod =
"wxBufferedDCInternalBuffer:val._dc = _args[0] # save a ref so the other dc won't be deleted before self"
};