2 % automatically generated by HelpGen from
3 % grid.h at 11/May/00 18:30:18
7 \section{\class{wxGridCellRenderer
}}\label{wxgridcellrenderer
}
10 suppress the stupid gcc warning about the class having private dtor and
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.
20 \wxheading{Derived from
}
22 \helpref{wxGridCellWorker
}{wxgridcellworker
}
24 \wxheading{Data structures
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxGridCellRenderer::Draw
}\label{wxgridcellrendererdraw
}
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
}}
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
41 \membersection{wxGridCellRenderer::GetBestSize
}\label{wxgridcellrenderergetbestsize
}
43 \func{wxSize
}{GetBestSize
}{\param{wxGrid\&
}{grid
},
\param{wxGridCellAttr\&
}{attr
},
\param{wxDC\&
}{dc
},
\param{int
}{row
},
\param{int
}{col
}}
45 get the preferred size of the cell for its contents
48 \membersection{wxGridCellRenderer::Clone
}\label{wxgridcellrendererclone
}
50 \constfunc{wxGridCellRenderer*
}{Clone
}{