wxDataViewCustomRenderer
Derived from
Include files
<wx/dataview.h>
wxDataViewCustomRenderer::wxDataViewCustomRenderer
wxDataViewCustomRenderer::~wxDataViewCustomRenderer
wxDataViewCustomRenderer::Activate
wxDataViewCustomRenderer::GetDC
wxDataViewCustomRenderer::GetSize
wxDataViewCustomRenderer::LeftClick
wxDataViewCustomRenderer::Render
wxDataViewCustomRenderer::RightClick
wxDataViewCustomRenderer::StartDrag
wxDataViewCustomRenderer(const wxString& varianttype = wxT("string"), wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, bool no_init = false)
Constructor.
~wxDataViewCustomRenderer()
Destructor.
virtual bool Activate(wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)
Override this to react to double clicks or <ENTER>.
virtual wxDC* GetDC()
Create DC on request. Internal.
virtual wxSize GetSize()
Return size required to show content.
virtual bool LeftClick(wxPoint cursor, wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)
Overrride this to react to a left click.
virtual bool Render(wxRect cell, wxDC* dc, int state)
Override this to render the cell. Before this is called, SetValue was called so that this instance knows what to render.
virtual bool RightClick(wxPoint cursor, wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)
Overrride this to react to a right click.
virtual bool StartDrag(wxPoint cursor, wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)
Overrride this to start a drag operation.