[ 1578529 ] better docs for reference-counted objects

This already includes the change for wxBitmap, which
  is not COW yet.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-18 17:23:42 +00:00
parent 15d4b8cdb5
commit a91225b27b
12 changed files with 37 additions and 55 deletions

View File

@@ -38,10 +38,8 @@ Default constructor.
\func{}{wxBitmap}{\param{const wxBitmap\& }{bitmap}}
Copy constructor. Note that this does not take a fresh copy of the data,
but instead makes the internal data point to {\it bitmap}'s data. So
changing one bitmap will change the other. To make a real copy, you can
use:
Copy constructor, uses \helpref{reference counting}{trefcount}.
To make a real copy, you can use:
\begin{verbatim}
wxBitmap newBitmap = oldBitmap.GetSubBitmap(
@@ -587,9 +585,7 @@ Sets the width member (does not affect the bitmap data).
\func{wxBitmap\& }{operator $=$}{\param{const wxBitmap\& }{bitmap}}
Assignment operator. This operator does not copy any data, but instead
passes a pointer to the data in {\it bitmap} and increments a reference
counter. It is a fast operation.
Assignment operator, using \helpref{reference counting}{trefcount}.
\wxheading{Parameters}