X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6d94998fcbdb3ce60774e38c0d4b6ee20c6798..b953bdc2934895fa31d859be25be1f850701c2c3:/docs/latex/wx/pen.tex diff --git a/docs/latex/wx/pen.tex b/docs/latex/wx/pen.tex index 2022597217..5a369a3424 100644 --- a/docs/latex/wx/pen.tex +++ b/docs/latex/wx/pen.tex @@ -20,6 +20,12 @@ get a pointer to a pen by using the global list of pens {\bf wxThePenList}, and calling the member function {\bf FindOrCreatePen}. See the entry for \helpref{wxPenList}{wxpenlist}. +wxPen uses a reference counting system, so assignments between brushes are very +cheap. You can therefore use actual wxPen objects instead of pointers without +efficiency problems. Once one wxPen object changes its data it will create its +own pen data internally so that other pens, which previously shared the +data using the reference counting, are not affected. + TODO: an overview for wxPen. \wxheading{See also}