X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17b1d76b4add82305463d10b9f65668d06169363..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/os2/brush.h diff --git a/include/wx/os2/brush.h b/include/wx/os2/brush.h index c7657279d5..9743686938 100644 --- a/include/wx/os2/brush.h +++ b/include/wx/os2/brush.h @@ -16,16 +16,23 @@ #include "wx/gdiobj.h" #include "wx/bitmap.h" -class WXDLLEXPORT wxBrush; +class WXDLLIMPEXP_FWD_CORE wxBrush; class WXDLLEXPORT wxBrushRefData: public wxGDIRefData { - friend class WXDLLEXPORT wxBrush; + friend class WXDLLIMPEXP_FWD_CORE wxBrush; public: wxBrushRefData(); wxBrushRefData(const wxBrushRefData& rData); virtual ~wxBrushRefData(); + bool operator == (const wxBrushRefData& data) const + { + return (m_nStyle == data.m_nStyle && + m_vStipple.IsSameAs(data.m_vStipple) && + m_vColour == data.m_vColour); + } + protected: int m_nStyle; wxBitmap m_vStipple ; @@ -47,8 +54,8 @@ public: wxBrush(const wxBitmap& rStipple); virtual ~wxBrush(); - inline bool operator == (const wxBrush& rBrush) const { return m_refData == rBrush.m_refData; } - inline bool operator != (const wxBrush& rBrush) const { return m_refData != rBrush.m_refData; } + bool operator == (const wxBrush& rBrush) const; + inline bool operator != (const wxBrush& rBrush) const { return !(*this == rBrush); } virtual void SetColour(const wxColour& rColour); virtual void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBrush);