X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc73d7f5d468881a9cbb71f1a234f364ff52ceaa..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/dvrenderers.h diff --git a/include/wx/dvrenderers.h b/include/wx/dvrenderers.h index 7cbb7b220e..99f1e8a837 100644 --- a/include/wx/dvrenderers.h +++ b/include/wx/dvrenderers.h @@ -236,14 +236,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 +290,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);