]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gridrend.tex
fixed low resolution problem with wxPostScriptDC
[wxWidgets.git] / docs / latex / wx / gridrend.tex
CommitLineData
03817a5e
MB
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
10suppress the stupid gcc warning about the class having private dtor and
11no friends
12
13wxGridCellRenderer: this class is responsible for actually drawing the cell
14in the grid. You may pass it to the wxGridCellAttr (below) to change the
15format of one given cell or to wxGrid::SetDefaultRenderer() to change the
16view of all cells. This is an ABC, you will normally use one of the
17predefined 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
33draw the given cell on the provided DC inside the given rectangle
34using the style specified by the attribute and the default or selected
35state corresponding to the isSelected value.
36this pure virtual function has a default implementation which will
37prepare the DC using the given attribute: it will draw the rectangle
38with 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
45get the preferred size of the cell for its contents
46
47
48\membersection{wxGridCellRenderer::Clone}\label{wxgridcellrendererclone}
49
50\constfunc{wxGridCellRenderer*}{Clone}{