- public:
-
- wxPenRefData(void);
-
- int m_width;
- int m_style;
- int m_joinStyle;
- int m_capStyle;
- wxColour m_colour;
-};
-
-wxPenRefData::wxPenRefData(void)
-{
- m_width = 1;
- m_style = wxSOLID;
- m_joinStyle = wxJOIN_ROUND;
- m_capStyle = wxCAP_ROUND;
-};
+public:
+
+ wxPenRefData();
+ wxPenRefData( const wxPenRefData& data );
+
+ int m_width;
+ int m_style;
+ int m_joinStyle;
+ int m_capStyle;
+ wxColour m_colour;
+ int m_countDashes;
+ wxGTKDash *m_dash;
+};
+
+wxPenRefData::wxPenRefData()
+{
+ m_width = 1;
+ m_style = wxSOLID;
+ m_joinStyle = wxJOIN_ROUND;
+ m_capStyle = wxCAP_ROUND;
+ m_dash = (wxGTKDash*) NULL;
+ m_countDashes = 0;
+}
+
+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;
+ m_countDashes = data.m_countDashes;
+/*
+ if (data.m_dash) TODO
+ m_dash = new
+*/
+ m_dash = data.m_dash;
+}