virtual bool IsOk() const { return m_colour.IsOk(); }
- void SetStyle(int style)
+ void SetStyle(wxPenStyle style)
{
- if ( style != wxSOLID && style != wxTRANSPARENT )
+ if ( style != wxPENSTYLE_SOLID && style != wxPENSTYLE_TRANSPARENT )
{
wxFAIL_MSG( "only wxSOLID and wxTRANSPARENT styles are supported" );
- style = wxSOLID;
+ style = wxPENSTYLE_SOLID;
}
m_style = style;
m_refData = new wxPenRefData(colour, style);
}
-wxPen::wxPen(const wxColour& col, int width, wxBrushStyle style)
+#if FUTURE_WXWIN_COMPATIBILITY_3_0
+wxPen::wxPen(const wxColour& col, int width, int style)
{
m_refData = new wxPenRefData(col, (wxPenStyle)style);
}
+#endif
wxPen::wxPen(const wxBitmap& WXUNUSED(stipple), int WXUNUSED(width))
{
wxPenStyle wxPen::GetStyle() const
{
- wxCHECK_MSG( Ok(), -1, wxT("invalid pen") );
+ wxCHECK_MSG( Ok(), wxPENSTYLE_INVALID, wxT("invalid pen") );
return M_PENDATA->m_style;
}
return 1;
}
-wxColour &wxPen::GetColour() const
+wxColour wxPen::GetColour() const
{
wxCHECK_MSG( Ok(), wxNullColour, wxT("invalid pen") );