]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mgl/pen.h
more extra semicolons removed (patch 1303724)
[wxWidgets.git] / include / wx / mgl / pen.h
index 04417583010bdc9b49d800e9726c360e50d132b5..0892b45b4376040126ed68b2eb4eb06fbec49e8f 100644 (file)
@@ -1,20 +1,15 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        pen.h
+// Name:        wx/mgl/pen.h
 // Purpose:
 // Author:      Vaclav Slavik
 // Id:          $Id$
-// Copyright:   (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright:   (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-
 #ifndef __WX_PEN_H__
 #define __WX_PEN_H__
 
-#ifdef __GNUG__
-#pragma interface "pen.h"
-#endif
-
 #include "wx/defs.h"
 #include "wx/object.h"
 #include "wx/string.h"
@@ -36,7 +31,7 @@ class WXDLLEXPORT wxPen: public wxGDIObject
 {
 public:
     wxPen() {}
-    wxPen(const wxColour &colour, int width, int style);
+    wxPen(const wxColour &colour, int width = 1, int style = wxSOLID);
     wxPen(const wxBitmap& stipple, int width);
     wxPen(const wxPen& pen);
     ~wxPen() {}
@@ -65,11 +60,14 @@ public:
     
     bool Ok() const;
 
-    void Unshare();
-    
     // implementation:
     void* GetPixPattern() const;
 
+protected:
+    // ref counting code
+    virtual wxObjectRefData *CreateRefData() const;
+    virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
+
 private:    
     DECLARE_DYNAMIC_CLASS(wxPen)
 };