From e2cb366f612460ba70fb12560c112fef2d8389dd Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Sat, 7 Feb 2009 23:23:18 +0000 Subject: [PATCH] Implement GetDashCount() for Carbon/Cocoa. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/osx/pen.h | 1 + src/osx/pen.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/wx/osx/pen.h b/include/wx/osx/pen.h index 686673abe6..243714ac7e 100644 --- a/include/wx/osx/pen.h +++ b/include/wx/osx/pen.h @@ -49,6 +49,7 @@ public: wxPenJoin GetJoin() const; wxPenCap GetCap() const; int GetDashes(wxDash **ptr) const; + int GetDashCount() const; wxBitmap *GetStipple() const ; diff --git a/src/osx/pen.cpp b/src/osx/pen.cpp index 55f5f0c4cf..a40bdfcf9f 100644 --- a/src/osx/pen.cpp +++ b/src/osx/pen.cpp @@ -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") );