Move SetTextColoursAndFont() to wxGridCellRenderer

Move this function from wxGridCellStringRenderer to its base class to
allow using it even in the classes not drawing any strings.

Also document it.
This commit is contained in:
Vadim Zeitlin
2021-04-06 22:46:37 +02:00
parent 0ff1bdec09
commit 317ad65079
4 changed files with 60 additions and 43 deletions

View File

@@ -41,12 +41,6 @@ public:
{ return new wxGridCellStringRenderer; }
protected:
// set the text colours before drawing
void SetTextColoursAndFont(const wxGrid& grid,
const wxGridCellAttr& attr,
wxDC& dc,
bool isSelected);
// calc the string extent for given string/font
wxSize DoGetBestSize(const wxGridCellAttr& attr,
wxDC& dc,