double buffer changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1338,6 +1338,11 @@ public:
|
|||||||
wxBufferedDC( wxDC* dc,
|
wxBufferedDC( wxDC* dc,
|
||||||
const wxSize& area,
|
const wxSize& area,
|
||||||
int style = wxBUFFER_CLIENT_AREA );
|
int style = wxBUFFER_CLIENT_AREA );
|
||||||
|
wxBufferedDC(wxWindow* win,
|
||||||
|
wxDC *dc,
|
||||||
|
const wxSize &area,
|
||||||
|
int style = wxBUFFER_CLIENT_AREA);
|
||||||
|
|
||||||
|
|
||||||
DocCtorStr(
|
DocCtorStr(
|
||||||
~wxBufferedDC(),
|
~wxBufferedDC(),
|
||||||
@@ -1376,8 +1381,6 @@ automatically when it is destroyed. For example::
|
|||||||
dc = wx.BufferedPaintDC(self, self.buffer)
|
dc = wx.BufferedPaintDC(self, self.buffer)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
", "");
|
", "");
|
||||||
|
|
||||||
class wxBufferedPaintDC : public wxBufferedDC
|
class wxBufferedPaintDC : public wxBufferedDC
|
||||||
@@ -1391,13 +1394,10 @@ public:
|
|||||||
"Create a buffered paint DC. As with `wx.BufferedDC`, you may either
|
"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
|
provide the bitmap to be used for buffering or let this object create
|
||||||
one internally (in the latter case, the size of the client part of the
|
one internally (in the latter case, the size of the client part of the
|
||||||
window is automatically used).
|
window is automatically used).", "");
|
||||||
|
|
||||||
", "");
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
@@ -1514,6 +1514,26 @@ public:
|
|||||||
"Constructor. Pass the window on which you wish to paint.", "");
|
"Constructor. Pass the window on which you wish to paint.", "");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
%newgroup
|
||||||
|
|
||||||
|
%pythoncode {
|
||||||
|
if 'wxMac' in wx.PlatformInfo or 'gtk2' in wx.PlatformInfo:
|
||||||
|
_AutoBufferedPaintDCBase = PaintDC
|
||||||
|
else:
|
||||||
|
_AutoBufferedPaintDCBase = BufferedPaintDC
|
||||||
|
|
||||||
|
class AutoBufferedPaintDC(_AutoBufferedPaintDCBase):
|
||||||
|
"""
|
||||||
|
If the current platform double buffers by default then this DC is the
|
||||||
|
same as a plain `wx.PaintDC`, otherwise it is a `wx.BufferedPaintDC`.
|
||||||
|
"""
|
||||||
|
def __init__(self, window):
|
||||||
|
_AutoBufferedPaintDCBase.__init__(self, window)
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
@@ -1324,6 +1324,13 @@ times that Freeze was before the window will be updated.", "");
|
|||||||
"Call this function to prepare the device context for drawing a
|
"Call this function to prepare the device context for drawing a
|
||||||
scrolled image. It sets the device origin according to the current
|
scrolled image. It sets the device origin according to the current
|
||||||
scroll position.", "");
|
scroll position.", "");
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
virtual bool , IsDoubleBuffered() const,
|
||||||
|
"Returns ``True`` if the window contents is double-buffered by the
|
||||||
|
system, i.e. if any drawing done on the window is really done on a
|
||||||
|
temporary backing surface and transferred to the screen all at once
|
||||||
|
later.", "");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
|
Reference in New Issue
Block a user