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.