inline void SetId(long i) { m_id = i; }
inline long GetId() const { return m_id; }
- void SetPen(wxPen *pen);
+ void SetPen(const wxPen *pen);
void SetBrush(const wxBrush *brush);
virtual void Show(bool show);
void AddText(const wxString& string);
- inline wxPen *GetPen() const { return m_pen; }
- inline const wxBrush *GetBrush() const { return m_brush; }
+ inline wxPen *GetPen() const { return wx_const_cast(wxPen*, m_pen); }
+ inline wxBrush *GetBrush() const { return wx_const_cast(wxBrush*, m_brush); }
/*
* Region-specific functions (defaults to the default region
wxShapeEvtHandler* m_eventHandler;
bool m_formatted;
double m_xpos, m_ypos;
- wxPen* m_pen;
+ const wxPen* m_pen;
const wxBrush* m_brush;
wxFont* m_font;
wxColour m_textColour;