X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98f8e6666b4622a7dc96292f9dfb215af81573d7..43ff861df48f0837dac98005dd397c5f127ca136:/include/wx/dvrenderers.h diff --git a/include/wx/dvrenderers.h b/include/wx/dvrenderers.h index 717f73608a..97539bf19a 100644 --- a/include/wx/dvrenderers.h +++ b/include/wx/dvrenderers.h @@ -159,6 +159,9 @@ public: wxControl *GetEditorCtrl() { return m_editorCtrl; } + virtual bool IsCustomRenderer() const { return false; } + + protected: // Called from {Cancel,Finish}Editing() to cleanup m_editorCtrl void DestroyEditControl(); @@ -278,6 +281,8 @@ public: // Prepare DC to use attributes and call Render(). void WXCallRender(wxRect rect, wxDC *dc, int state); + virtual bool IsCustomRenderer() const { return true; } + protected: // helper for GetSize() implementations, respects attributes wxSize GetTextExtent(const wxString& str) const;