]> git.saurik.com Git - wxWidgets.git/commitdiff
Buffered DCs now take non-const bitmaps
authorRobin Dunn <robin@alldunn.com>
Wed, 1 Nov 2006 02:18:41 +0000 (02:18 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 1 Nov 2006 02:18:41 +0000 (02:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_dc.i

index 9dbb9a3dbc389cd17931ac67f5c5d292331e9e10..2a590d547f4d06eca6a3ad4275ffa15e8c176ce2 100644 (file)
@@ -1552,7 +1552,7 @@ public:
 
 ");
     wxBufferedDC( wxDC* dc,
-                  const wxBitmap& buffer=wxNullBitmap,
+                  wxBitmap& buffer=wxNullBitmap,
                   int style = wxBUFFER_CLIENT_AREA );
     wxBufferedDC( wxDC* dc,
                   const wxSize& area,
@@ -1574,7 +1574,10 @@ associated with this object, if any.", "");
         "Blits the buffer to the dc, and detaches the dc from the buffer (so it
 can be effectively used once only).  This is usually only called in
 the destructor.", "");
-    
+
+    // Set and get the style
+    void SetStyle(int style);
+    int GetStyle() const;    
 };
 
 
@@ -1608,7 +1611,7 @@ public:
 
     DocCtorStr(
         wxBufferedPaintDC( wxWindow *window,
-                           const wxBitmap &buffer = wxNullBitmap,
+                           wxBitmap &buffer = wxNullBitmap,
                            int style = wxBUFFER_CLIENT_AREA),
         "Create a buffered paint DC.  As with `wx.BufferedDC`, you may either
 provide the bitmap to be used for buffering or let this object create