X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/320bf9ceec62cacabb3b2d811f9139a1db2f4f1f..3e1512cdfecd2c531567e6603083d9c3968216c7:/docs/latex/wx/region.tex diff --git a/docs/latex/wx/region.tex b/docs/latex/wx/region.tex index e65055db79..11df532caf 100644 --- a/docs/latex/wx/region.tex +++ b/docs/latex/wx/region.tex @@ -10,8 +10,14 @@ \section{\class{wxRegion}}\label{wxregion} -A wxRegion represents a simple or complex region on a device context or window. It uses -reference counting, so copying and assignment operations are fast. +A wxRegion represents a simple or complex region on a device context or window. + +This class uses \helpref{reference counting and copy-on-write}{trefcount} +internally so that assignments between two instances of this class are very +cheap. You can therefore use actual objects instead of pointers without +efficiency problems. If an instance of this class is changed it will create +its own data internally so that other instances, which previously shared the +data using the reference counting, are not affected. \wxheading{Derived from} @@ -392,3 +398,4 @@ Increment operator. Increments the iterator to the next region. Returns {\tt true} if there are still some rectangles; otherwise returns {\tt false}. You can use this to test the iterator object as if it were of type bool. +