]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/pen.cpp
Adding wxUIActionSimulator, a class for programmatically controlling the mouse and...
[wxWidgets.git] / src / osx / pen.cpp
index 260f1abc8280e34c462f84aea026b9ee11519f68..a40bdfcf9f1467faf34015cb85b88d7d112332ac 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        src/mac/carbon/pen.cpp
+// Name:        src/osx/pen.cpp
 // Purpose:     wxPen
 // Author:      Stefan Csomor
 // Modified by:
@@ -151,7 +151,7 @@ wxGDIRefData *wxPen::CreateGDIRefData() const
 
 wxGDIRefData *wxPen::CloneGDIRefData(const wxGDIRefData *data) const
 {
-    return new wxPenRefData(*wx_static_cast(const wxPenRefData *, data));
+    return new wxPenRefData(*static_cast<const wxPenRefData *>(data));
 }
 
 bool wxPen::operator==(const wxPen& pen) const
@@ -205,6 +205,11 @@ int wxPen::GetDashes(wxDash **ptr) const
     return M_PENDATA->m_nbDash;
 }
 
+int wxPen::GetDashCount() const
+{
+    return M_PENDATA->m_nbDash;
+}
+
 wxBitmap *wxPen::GetStipple() const
 {
     wxCHECK_MSG( Ok(), NULL, wxT("invalid pen") );