1 \section{\class{wxGridCellRenderer
}}\label{wxgridcellrenderer
}
3 %suppress the stupid gcc warning about the class having private dtor and
5 This class is responsible for actually drawing the cell
6 in the grid. You may pass it to the wxGridCellAttr (below) to change the
7 format of one given cell or to wxGrid::SetDefaultRenderer() to change the
8 view of all cells. This is an abstract class, and you will normally use one of the
9 predefined derived classes or derive your own class from it.
11 \wxheading{Derived from
}
15 \wxheading{Data structures
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxGridCellRenderer::Draw
}\label{wxgridcellrendererdraw
}
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
}}
23 Draw the given cell on the provided DC inside the given rectangle
24 using the style specified by the attribute and the default or selected
25 state corresponding to the isSelected value.
27 This pure virtual function has a default implementation which will
28 prepare the DC using the given attribute: it will draw the rectangle
29 with the background colour from attr and set the text colour and font.
31 \membersection{wxGridCellRenderer::GetBestSize
}\label{wxgridcellrenderergetbestsize
}
33 \func{wxSize
}{GetBestSize
}{\param{wxGrid\&
}{grid
},
\param{wxGridCellAttr\&
}{attr
},
\param{wxDC\&
}{dc
},
\param{int
}{row
},
\param{int
}{col
}}
35 Get the preferred size of the cell for its contents.
37 \membersection{wxGridCellRenderer::Clone
}\label{wxgridcellrendererclone
}
39 \constfunc{wxGridCellRenderer*
}{Clone
}{\void}