]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/include/wx/ogl/basic.h
Added VC++ project files for remaining Gizmo samples
[wxWidgets.git] / contrib / include / wx / ogl / basic.h
index 9c52020c85cb51c74798493cf4d7400422ff18bd..1288c3c057a3bb673d123281c8f113a463885041 100644 (file)
@@ -124,7 +124,7 @@ class WXDLLEXPORT wxExprDatabase;
 
 
 
-class wxShapeEvtHandler: public wxObject
+class wxShapeEvtHandler: public wxObject, public wxClientDataContainer
 {
  DECLARE_DYNAMIC_CLASS(wxShapeEvtHandler)
 
@@ -299,8 +299,6 @@ class wxShape: public 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; }
@@ -515,8 +513,10 @@ class wxShape: public wxShapeEvtHandler
   // 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;