]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/gridrend.tex
Added ability to call wxWindow::OnPaint under Windows (experimental).
[wxWidgets.git] / docs / latex / wx / gridrend.tex
1 %
2 % automatically generated by HelpGen from
3 % grid.h at 11/May/00 18:30:18
4 %
5
6
7 \section{\class{wxGridCellRenderer}}\label{wxgridcellrenderer}
8
9
10 suppress the stupid gcc warning about the class having private dtor and
11 no friends
12
13 wxGridCellRenderer: this class is responsible for actually drawing the cell
14 in the grid. You may pass it to the wxGridCellAttr (below) to change the
15 format of one given cell or to wxGrid::SetDefaultRenderer() to change the
16 view of all cells. This is an ABC, you will normally use one of the
17 predefined derived classes or derive your own class from it.
18
19
20 \wxheading{Derived from}
21
22 \helpref{wxGridCellWorker}{wxgridcellworker}
23
24 \wxheading{Data structures}
25
26 \latexignore{\rtfignore{\wxheading{Members}}}
27
28
29 \membersection{wxGridCellRenderer::Draw}\label{wxgridcellrendererdraw}
30
31 \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}}
32
33 draw the given cell on the provided DC inside the given rectangle
34 using the style specified by the attribute and the default or selected
35 state corresponding to the isSelected value.
36 this pure virtual function has a default implementation which will
37 prepare the DC using the given attribute: it will draw the rectangle
38 with the bg colour from attr and set the text colour and font
39
40
41 \membersection{wxGridCellRenderer::GetBestSize}\label{wxgridcellrenderergetbestsize}
42
43 \func{wxSize}{GetBestSize}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{int }{row}, \param{int }{col}}
44
45 get the preferred size of the cell for its contents
46
47
48 \membersection{wxGridCellRenderer::Clone}\label{wxgridcellrendererclone}
49
50 \constfunc{wxGridCellRenderer*}{Clone}{