- DECLARE_DYNAMIC_CLASS(wxPen)
-
- public:
-
- wxPen(void);
- wxPen( const wxColour &colour, int width, int style );
- wxPen( const wxString &colourName, int width, int style );
- wxPen( const wxPen& pen );
- wxPen( const wxPen* pen );
- ~wxPen(void);
- wxPen& operator = ( const wxPen& pen );
- bool operator == ( const wxPen& pen );
- bool operator != ( const wxPen& pen );
+public:
+ wxPen() { }
+
+ wxPen( const wxColour &colour, int width = 1, int style = wxSOLID );
+ ~wxPen();
+
+ wxPen( const wxPen& pen )
+ : wxGDIObject()
+ { Ref(pen); }
+ wxPen& operator = ( const wxPen& pen ) { Ref(pen); return *this; }