X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad66316ffbcfd10a4fb448116371d27db3613d17..ae0e22dd7af3fa44819a08c21c9b478688e9d172:/src/osx/pen.cpp diff --git a/src/osx/pen.cpp b/src/osx/pen.cpp index 260f1abc82..a40bdfcf9f 100644 --- a/src/osx/pen.cpp +++ b/src/osx/pen.cpp @@ -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(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") );