X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6eec70b984525aac09528c32411f19113620e284..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/osx/dvrenderers.h diff --git a/include/wx/osx/dvrenderers.h b/include/wx/osx/dvrenderers.h index b25ca48e5a..5d3e506981 100644 --- a/include/wx/osx/dvrenderers.h +++ b/include/wx/osx/dvrenderers.h @@ -3,7 +3,7 @@ // Purpose: All OS X wxDataViewCtrl renderer classes // Author: Vadim Zeitlin // Created: 2009-11-07 (extracted from wx/osx/dataview.h) -// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $ +// RCS-ID: $Id$ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -24,18 +24,16 @@ public: virtual ~wxDataViewCustomRenderer(); - void RenderText( const wxString &text, int xoffset, wxRect cell, wxDC *dc, int state ); - - virtual wxSize GetSize() const = 0; - - virtual bool Render(wxRect cell, wxDC* dc, int state) = 0; - // implementation only // ------------------- virtual bool MacRender(); +#if wxOSX_USE_COCOA + virtual void OSXApplyAttr(const wxDataViewItemAttr& attr); +#endif // Cocoa + virtual wxDC* GetDC(); // creates a device context and keeps it void SetDC(wxDC* newDCPtr); // this method takes ownership of the pointer @@ -105,6 +103,12 @@ public: wxString GetChoice(size_t index) const { return m_choices[index]; } const wxArrayString& GetChoices() const { return m_choices; } +#if wxOSX_USE_COCOA + virtual void OSXOnCellChanged(NSObject *value, + const wxDataViewItem& item, + unsigned col); +#endif // Cocoa + private: wxArrayString m_choices;