X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67a5217c4f3c2ee355785ea0ce35c8984c837bfa..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/src/_dc.i?ds=sidebyside diff --git a/wxPython/src/_dc.i b/wxPython/src/_dc.i index 821e8db034..a220816d4b 100644 --- a/wxPython/src/_dc.i +++ b/wxPython/src/_dc.i @@ -577,7 +577,7 @@ pixels from the begining of text to the coresponding character of *text*. The generic version simply builds a running total of the widths of each character using GetTextExtent, however if the various platforms have a native API function that is faster or more accurate -than the generic implementaiton then it will be used instead.", ""); +than the generic implementation then it will be used instead.", ""); wxArrayInt GetPartialTextExtents(const wxString& text) { wxArrayInt widths; self->GetPartialTextExtents(text, widths); @@ -1267,7 +1267,8 @@ public: as the bitmap doesn't have to be recreated each time but it also requires more memory as the bitmap is never freed. The bitmap should have appropriate size, anything drawn outside of - its bounds is clipped. + its bounds is clipped. If wx.NullBitmap is used then a new + buffer will be allocated that is the same size as the dc. :param style: The style parameter indicates whether the supplied buffer is intended to cover the entire virtual size of a `wx.ScrolledWindow` or @@ -1275,17 +1276,19 @@ public: ``wx.BUFFER_VIRTUAL_AREA`` and ``wx.BUFFER_CLIENT_AREA``. "); - wxBufferedDC( wxDC *dc, const wxBitmap &buffer, int style = wxBUFFER_CLIENT_AREA ); - wxBufferedDC( wxDC *dc, const wxSize &area, int style = wxBUFFER_CLIENT_AREA ); - + wxBufferedDC( wxDC* dc, + const wxBitmap& buffer=wxNullBitmap, + int style = wxBUFFER_CLIENT_AREA ); + wxBufferedDC( wxDC* dc, + const wxSize& area, + int style = wxBUFFER_CLIENT_AREA ); - DocCtorStr( ~wxBufferedDC(), "Copies everything drawn on the DC so far to the underlying DC associated with this object, if any.", ""); - + DocDeclStr( void , UnMask(), "Blits the buffer to the dc, and detaches the dc from the buffer (so it