Contents Up Previous Next

wxDataViewCustomRenderer

wxDataViewCustomRenderer

Derived from

wxDataViewRenderer

Include files

<wx/dataview.h>

wxDataViewCustomRenderer::wxDataViewCustomRenderer
wxDataViewCustomRenderer::~wxDataViewCustomRenderer
wxDataViewCustomRenderer::Activate
wxDataViewCustomRenderer::GetDC
wxDataViewCustomRenderer::GetSize
wxDataViewCustomRenderer::LeftClick
wxDataViewCustomRenderer::Render
wxDataViewCustomRenderer::RightClick
wxDataViewCustomRenderer::StartDrag


wxDataViewCustomRenderer::wxDataViewCustomRenderer

wxDataViewCustomRenderer(const wxString& varianttype = wxT("string"), wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, bool no_init = false)

Constructor.


wxDataViewCustomRenderer::~wxDataViewCustomRenderer

~wxDataViewCustomRenderer()

Destructor.


wxDataViewCustomRenderer::Activate

virtual bool Activate(wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)

Override this to react to double clicks or <ENTER>.


wxDataViewCustomRenderer::GetDC

virtual wxDC* GetDC()

Create DC on request. Internal.


wxDataViewCustomRenderer::GetSize

virtual wxSize GetSize()

Return size required to show content.


wxDataViewCustomRenderer::LeftClick

virtual bool LeftClick(wxPoint cursor, wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)

Overrride this to react to a left click.


wxDataViewCustomRenderer::Render

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.


wxDataViewCustomRenderer::RightClick

virtual bool RightClick(wxPoint cursor, wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)

Overrride this to react to a right click.


wxDataViewCustomRenderer::StartDrag

virtual bool StartDrag(wxPoint cursor, wxRect cell, wxDataViewListModel* model, unsigned int col, unsigned int row)

Overrride this to start a drag operation.