+wxColour wxPen::GetColour() const
+{
+ wxCHECK_MSG( IsOk(), wxNullColour, wxT("invalid pen") );
+
+ return M_PENDATA->m_vColour;
+}
+
+int wxPen::GetWidth() const
+{
+ wxCHECK_MSG( IsOk(), -1, wxT("invalid pen") );
+
+ return M_PENDATA->m_nWidth;
+}
+
+wxPenStyle wxPen::GetStyle() const
+{
+ wxCHECK_MSG( IsOk(), wxPENSTYLE_INVALID, wxT("invalid pen") );
+
+ return M_PENDATA->m_nStyle;
+}
+
+wxPenJoin wxPen::GetJoin() const
+{
+ wxCHECK_MSG( IsOk(), wxJOIN_INVALID, wxT("invalid pen") );
+
+ return M_PENDATA->m_nJoin;
+}
+
+wxPenCap wxPen::GetCap() const
+{
+ wxCHECK_MSG( IsOk(), wxCAP_INVALID, wxT("invalid pen") );
+
+ return M_PENDATA->m_nCap;
+}
+
+int wxPen::GetPS() const
+{
+ wxCHECK_MSG( IsOk(), 0, wxT("invalid pen") );
+
+ return M_PENDATA->m_hPen;
+}
+
+int wxPen::GetDashes(wxDash** ptr) const
+{
+ wxCHECK_MSG( IsOk(), -1, wxT("invalid pen") );
+
+ *ptr = M_PENDATA->m_dash;
+ return M_PENDATA->m_nbDash;
+}
+
+wxDash* wxPen::GetDash() const
+{
+ wxCHECK_MSG( IsOk(), NULL, wxT("invalid pen") );
+
+ return M_PENDATA->m_dash;
+}
+
+int wxPen::GetDashCount() const
+{
+ wxCHECK_MSG( IsOk(), -1, wxT("invalid pen") );
+
+ return M_PENDATA->m_nbDash;
+}
+
+wxBitmap* wxPen::GetStipple() const
+{
+ wxCHECK_MSG( IsOk(), NULL, wxT("invalid pen") );
+
+ return &(M_PENDATA->m_vStipple);
+}
+