]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/gridrend.tex
A fix for attribrute sorting, but it's still broken if there are
[wxWidgets.git] / docs / latex / wx / gridrend.tex
... / ...
CommitLineData
1\section{\class{wxGridCellRenderer}}\label{wxgridcellrenderer}
2
3%suppress the stupid gcc warning about the class having private dtor and
4%no friends
5This class is responsible for actually drawing the cell
6in the grid. You may pass it to the wxGridCellAttr (below) to change the
7format of one given cell or to wxGrid::SetDefaultRenderer() to change the
8view of all cells. This is an abstract class, and you will normally use one of the
9predefined derived classes or derive your own class from it.
10
11\wxheading{Derived from}
12
13wxGridCellWorker
14
15\wxheading{Data structures}
16
17\latexignore{\rtfignore{\wxheading{Members}}}
18
19\membersection{wxGridCellRenderer::Draw}\label{wxgridcellrendererdraw}
20
21\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}}
22
23Draw the given cell on the provided DC inside the given rectangle
24using the style specified by the attribute and the default or selected
25state corresponding to the isSelected value.
26
27This pure virtual function has a default implementation which will
28prepare the DC using the given attribute: it will draw the rectangle
29with the background colour from attr and set the text colour and font.
30
31\membersection{wxGridCellRenderer::GetBestSize}\label{wxgridcellrenderergetbestsize}
32
33\func{wxSize}{GetBestSize}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{int }{row}, \param{int }{col}}
34
35Get the preferred size of the cell for its contents.
36
37\membersection{wxGridCellRenderer::Clone}\label{wxgridcellrendererclone}
38
39\constfunc{wxGridCellRenderer*}{Clone}{\void}
40