2000-07-21 08:30:47 +00:00
|
|
|
\section{\class{wxGridCellRenderer}}\label{wxgridcellrenderer}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
%suppress the stupid gcc warning about the class having private dtor and
|
|
|
|
%no friends
|
|
|
|
This class is responsible for actually drawing the cell
|
2000-07-21 08:30:47 +00:00
|
|
|
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
|
2000-09-10 19:01:03 +00:00
|
|
|
view of all cells. This is an abstract class, and you will normally use one of the
|
2000-07-21 08:30:47 +00:00
|
|
|
predefined derived classes or derive your own class from it.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
wxGridCellWorker
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxGridCellRenderer::Draw}\label{wxgridcellrendererdraw}
|
|
|
|
|
|
|
|
\func{void}{Draw}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{row}, \param{int }{col}, \param{bool }{isSelected}}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
Draw the given cell on the provided DC inside the given rectangle
|
2000-07-21 08:30:47 +00:00
|
|
|
using the style specified by the attribute and the default or selected
|
|
|
|
state corresponding to the isSelected value.
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
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.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellRenderer::GetBestSize}\label{wxgridcellrenderergetbestsize}
|
|
|
|
|
|
|
|
\func{wxSize}{GetBestSize}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{int }{row}, \param{int }{col}}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
Get the preferred size of the cell for its contents.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellRenderer::Clone}\label{wxgridcellrendererclone}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
\constfunc{wxGridCellRenderer*}{Clone}{\void}
|
|
|
|
|