-wxPenRefData::wxPenRefData( const wxPenRefData& data )
-{
- m_style = data.m_style;
- m_width = data.m_width;
- m_joinStyle = data.m_joinStyle;
- m_capStyle = data.m_capStyle;
- m_colour = data.m_colour;
-}
+ bool operator == (const wxPenRefData& data) const
+ {
+ if ( m_countDashes != data.m_countDashes )
+ return false;
+
+ if ( m_dash )
+ {
+ if ( !data.m_dash ||
+ memcmp(m_dash, data.m_dash, m_countDashes*sizeof(wxGTKDash)) )
+ {
+ return false;
+ }
+ }
+ else if ( data.m_dash )
+ {
+ return false;
+ }
+
+
+ return m_style == data.m_style &&
+ m_width == data.m_width &&
+ m_joinStyle == data.m_joinStyle &&
+ m_capStyle == data.m_capStyle &&
+ m_colour == data.m_colour;
+ }
+
+ int m_width;
+ int m_style;
+ int m_joinStyle;
+ int m_capStyle;
+ wxColour m_colour;
+ int m_countDashes;
+ wxGTKDash *m_dash;
+};