$szTitle = "wxgridcellrenderer"; include "./_header.inc"; ?>
this class is responsible for actually drawing the cell in the grid. you may pass it to the wxgridcellattr (below) to change the format of one given cell or to wxgrid::setdefaultrenderer() to change the view of all cells. this is an abstract class, and you will normally use one of the predefined derived classes or derive your own class from it.
derived from
wxgridcellworker
see also
wxgridcellstringrenderer, wxgridcellnumberrenderer, wxgridcellfloatrenderer, wxgridcellboolrenderer
include files
<wx/grid.h>
members
wxgridcellrenderer::draw
wxgridcellrenderer::getbestsize
wxgridcellrenderer::clone
void draw(wxgrid& grid, wxgridcellattr& attr, wxdc& dc, const wxrect& rect, int row, int col, bool isselected)
draw the given cell on the provided dc inside the given rectangle using the style specified by the attribute and the default or selected state corresponding to the isselected value.
this pure virtual function has a default implementation which will prepare the dc using the given attribute: it will draw the rectangle with the background colour from attr and set the text colour and font.
wxsize getbestsize(wxgrid& grid, wxgridcellattr& attr, wxdc& dc, int row, int col)
get the preferred size of the cell for its contents.
wxgridcellrenderer* clone() const
include "./_footer.inc"; ?>