-#include "wx/bitmap.h"
-#include "wx/colour.h"
-
-typedef WXDWORD wxMSWDash;
-
-class WXDLLEXPORT wxPen;
-
-// VZ: this class should be made private
-class WXDLLEXPORT wxPenRefData : public wxGDIRefData
-{
-public:
- wxPenRefData();
- wxPenRefData(const wxPenRefData& data);
- virtual ~wxPenRefData();
-
- bool operator==(const wxPenRefData& data) const
- {
- // we intentionally don't compare m_hPen fields here
- return m_style == data.m_style &&
- m_width == data.m_width &&
- m_join == data.m_join &&
- m_cap == data.m_cap &&
- m_colour == data.m_colour &&
- (m_style != wxSTIPPLE || m_stipple == data.m_stipple) &&
- (m_style != wxUSER_DASH ||
- (m_nbDash == data.m_nbDash &&
- memcmp(m_dash, data.m_dash, m_nbDash*sizeof(wxDash)) == 0));
- }
-
-protected:
- int m_width;
- int m_style;
- int m_join;
- int m_cap;
- wxBitmap m_stipple;
- int m_nbDash;
- wxDash * m_dash;
- wxColour m_colour;
- WXHPEN m_hPen;
-
-private:
- friend class WXDLLEXPORT wxPen;
-
- // Cannot use
- // DECLARE_NO_COPY_CLASS(wxPenRefData)
- // because copy constructor is explicitly declared above;
- // but no copy assignment operator is defined, so declare
- // it private to prevent the compiler from defining it:
- wxPenRefData& operator=(const wxPenRefData&);
-};
-
-#define M_PENDATA ((wxPenRefData *)m_refData)
-#define wxPENDATA(x) ((wxPenRefData *)(x).m_refData)