-class wxShapeEvtHandler: public wxObject
+class wxShapeEvtHandler: public wxObject, public wxClientDataContainer
{
DECLARE_DYNAMIC_CLASS(wxShapeEvtHandler)
void SetPen(wxPen *pen);
void SetBrush(wxBrush *brush);
- inline void SetClientData(wxObject *client_data) { m_clientData = client_data; };
- inline wxObject *GetClientData() const { return m_clientData; };
virtual void Show(bool show);
virtual bool IsShown() const { return m_visible; }
// Clears points from a list of wxRealPoints
void ClearPointList(wxList& list);
- private:
- wxObject* m_clientData;
+ // Return pen or brush of the right colour for the background
+ wxPen GetBackgroundPen();
+ wxBrush GetBackgroundBrush();
+
protected:
wxShapeEvtHandler* m_eventHandler;