X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8795498cd9ec480873e88fccbb63b94be3eddb92..7b4b24bca94555afc29762acfc5b100009bb29ff:/docs/latex/wx/bufferdc.tex?ds=sidebyside diff --git a/docs/latex/wx/bufferdc.tex b/docs/latex/wx/bufferdc.tex index 3a3af78022..0378ab5343 100644 --- a/docs/latex/wx/bufferdc.tex +++ b/docs/latex/wx/bufferdc.tex @@ -21,6 +21,9 @@ typically replaces \helpref{wxClientDC}{wxclientdc}, if you want to use it in your \texttt{OnPaint()} handler, you should look at \helpref{wxBufferedPaintDC}{wxbufferedpaintdc}. +Please note that GTK+ 2.0 as well as OS X provide double buffering themselves +natively so this class should normally not be used there. + \wxheading{Derived from} \helpref{wxMemoryDC}{wxmemorydc}\\ @@ -42,9 +45,9 @@ your \texttt{OnPaint()} handler, you should look at \func{}{wxBufferedDC}{\void} -\func{}{wxBufferedDC}{\param{wxDC *}{dc}, \param{const wxSize\& }{area}} +\func{}{wxBufferedDC}{\param{wxDC *}{dc}, \param{const wxSize\& }{area}, \param{int }{style = wxBUFFER\_CLIENT\_AREA}} -\func{}{wxBufferedDC}{\param{wxDC *}{dc}, \param{const wxBitmap\& }{buffer}} +\func{}{wxBufferedDC}{\param{wxDC *}{dc}, \param{const wxBitmap\& }{buffer}, \param{int }{style = wxBUFFER\_CLIENT\_AREA}} If you use the first, default, constructor, you must call one of the \helpref{Init}{wxbuffereddcinit} methods later in order to use the object. @@ -66,12 +69,16 @@ the most efficient solution 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.} +\docparam{style}{wxBUFFER\_CLIENT\_AREA to indicate that just the client area of +the window is buffered, or wxBUFFER\_VIRTUAL\_AREA to indicate that the buffer bitmap +covers the virtual area (in which case PrepareDC is automatically called for the actual window +device context).} \membersection{wxBufferedDC::Init}\label{wxbuffereddcinit} -\func{void}{Init}{\param{wxDC *}{dc}, \param{const wxSize\& }{area}} +\func{void}{Init}{\param{wxDC *}{dc}, \param{const wxSize\& }{area}, \param{int }{style = wxBUFFER\_CLIENT\_AREA}} -\func{void}{Init}{\param{wxDC *}{dc}, \param{const wxBitmap\& }{buffer}} +\func{void}{Init}{\param{wxDC *}{dc}, \param{const wxBitmap\& }{buffer}, \param{int }{style = wxBUFFER\_CLIENT\_AREA}} These functions initialize the object created using the default constructor. Please see \helpref{constructors documentation}{wxbuffereddcctor} for details. @@ -113,12 +120,18 @@ already does this internally for the real underlying wxPaintDC. \membersection{wxBufferedPaintDC::wxBufferedPaintDC}\label{wxbufferedpaintdcctor} -\func{}{wxBufferedPaintDC}{\param{wxWindow *}{window}, \param{const wxBitmap\& }{buffer = wxNullBitmap}} +\func{}{wxBufferedPaintDC}{\param{wxWindow *}{window}, \param{const wxBitmap\& }{buffer}, \param{int }{style = wxBUFFER\_CLIENT\_AREA}} + +\func{}{wxBufferedPaintDC}{\param{wxWindow *}{window}, \param{int }{style = wxBUFFER\_CLIENT\_AREA}} As with \helpref{wxBufferedDC}{wxbuffereddcctor}, you may either 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 window is used). +Pass wxBUFFER\_CLIENT\_AREA for the {\it style} parameter to indicate that just the client area of +the window is buffered, or wxBUFFER\_VIRTUAL\_AREA to indicate that the buffer bitmap +covers the virtual area (in which case PrepareDC is automatically called for the actual window +device context). \membersection{wxBufferedPaintDC::\destruct{wxBufferedPaintDC}}\label{wxbufferedpaintdcdtor}