COW cleanup patch (1583966):
1. perform deep comparison for the classes for which it makes sense in the ports where this wasn't done yet 2. remove (shallow) comparison operators for the classes for which it does not make sense (such as wxBitmap) 3. makes wxBitmap use COW on all ports 4. adds wxObject::IsRefTo() 5. centralizes and improves COW docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -248,12 +248,10 @@ and \helpref{wxDC::GetTextExtent}{wxdcgettextextent}.
|
||||
\func{}{\destruct{wxFont}}{\void}
|
||||
|
||||
Destructor.
|
||||
See \helpref{reference-counted object destruction}{refcountdestruct} for more info.
|
||||
|
||||
\wxheading{Remarks}
|
||||
|
||||
The destructor may not delete the underlying font object of the native windowing
|
||||
system, since wxFont uses a reference counting system for efficiency.
|
||||
|
||||
Although all remaining fonts are deleted when the application exits,
|
||||
the application should try to clean up all fonts itself. This is because
|
||||
wxWidgets cannot know if a pointer to the font object is stored in an
|
||||
@@ -589,16 +587,14 @@ Assignment operator, using \helpref{reference counting}{trefcount}.
|
||||
|
||||
\func{bool}{operator $==$}{\param{const wxFont\& }{font}}
|
||||
|
||||
Equality operator. Two fonts are equal if they contain pointers
|
||||
to the same underlying font data. It does not compare each attribute,
|
||||
so two independently-created fonts using the same parameters will
|
||||
fail the test.
|
||||
Equality operator.
|
||||
See \helpref{reference-counted object comparison}{refcountequality} for more info.
|
||||
|
||||
|
||||
\membersection{wxFont::operator $!=$}\label{wxfontnotequals}
|
||||
|
||||
\func{bool}{operator $!=$}{\param{const wxFont\& }{font}}
|
||||
|
||||
Inequality operator. Two fonts are not equal if they contain pointers
|
||||
to different underlying font data. It does not compare each attribute.
|
||||
Inequality operator.
|
||||
See \helpref{reference-counted object comparison}{refcountequality} for more info.
|
||||
|
||||
|
Reference in New Issue
Block a user