]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dvrenderers.h
Add lambda-friendly wxDialog::ShowWindowModalThenDo().
[wxWidgets.git] / include / wx / dvrenderers.h
index 7cbb7b220ef079af4ad2b3b4a8470e763ad2cc99..1cf3c457f95bfc4aba37d918392a1650005d9262 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     Declare all wxDataViewCtrl classes
 // Author:      Robert Roebling, Vadim Zeitlin
 // Created:     2009-11-08 (extracted from wx/dataview.h)
-// RCS-ID:      $Id$
 // Copyright:   (c) 2006 Robert Roebling
 //              (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
@@ -236,14 +235,7 @@ public:
                               wxDataViewModel *model,
                               const wxDataViewItem & item,
                               unsigned int col,
-                              const wxMouseEvent* mouseEvent)
-    {
-        // Compatibility code
-        if ( mouseEvent )
-            return LeftClick(mouseEvent->GetPosition(), cell, model, item, col);
-        else
-            return Activate(cell, model, item, col);
-    }
+                              const wxMouseEvent* mouseEvent);
 
     // Deprecated, use (and override) ActivateCell() instead
     wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
@@ -297,6 +289,9 @@ public:
     // platform-specific classes.
     virtual wxDC *GetDC() = 0;
 
+    // To draw background use the background colour in wxDataViewItemAttr
+    virtual void RenderBackground(wxDC* dc, const wxRect& rect);
+
     // Prepare DC to use attributes and call Render().
     void WXCallRender(wxRect rect, wxDC *dc, int state);