1 \section{\class{wxGridCellBoolRenderer
}}\label{wxgridcellboolrenderer
}
3 This class may be used to format boolean data in a cell.
6 \wxheading{Derived from
}
8 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
12 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
13 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
14 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
15 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
}
17 \wxheading{Include files
}
23 \helpref{wxAdv
}{librarieslist
}
25 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxGridCellBoolRenderer::wxGridCellBoolRenderer
}\label{wxgridcellboolrendererconstr
}
29 \func{}{wxGridCellBoolRenderer
}{}
35 \section{\class{wxGridCellFloatRenderer
}}\label{wxgridcellfloatrenderer
}
37 This class may be used to format floating point data in a cell.
39 \wxheading{Derived from
}
41 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
}\\
42 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
46 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
47 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
48 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
49 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
51 \wxheading{Include files
}
57 \helpref{wxAdv
}{librarieslist
}
59 \latexignore{\rtfignore{\wxheading{Members
}}}
61 \membersection{wxGridCellFloatRenderer::wxGridCellFloatRenderer
}\label{wxgridcellfloatrendererconstr
}
63 \func{}{wxGridCellFloatRenderer
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
65 \docparam{width
}{Minimum number of characters to be shown.
}
66 \docparam{precision
}{Number of digits after the decimal dot.
}
68 \membersection{wxGridCellFloatRenderer::GetPrecision
}\label{wxgridcellfloatrenderergetprecision
}
70 \constfunc{int
}{GetPrecision
}{\void}
72 Returns the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
74 \membersection{wxGridCellFloatRenderer::GetWidth
}\label{wxgridcellfloatrenderergetwidth
}
76 \constfunc{int
}{GetWidth
}{\void}
78 Returns the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
80 \membersection{wxGridCellFloatRenderer::SetParameters
}\label{wxgridcellfloatrenderersetparameters
}
82 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
84 Parameters string format is "width
[,precision
]".
86 \membersection{wxGridCellFloatRenderer::SetPrecision
}\label{wxgridcellfloatrenderersetprecision
}
88 \func{void
}{SetPrecision
}{\param{int
}{precision
}}
90 Sets the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
92 \membersection{wxGridCellFloatRenderer::SetWidth
}\label{wxgridcellfloatrenderersetwidth
}
94 \func{void
}{SetWidth
}{\param{int
}{width
}}
96 Sets the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} )
100 \section{\class{wxGridCellNumberRenderer
}}\label{wxgridcellnumberrenderer
}
102 This class may be used to format integer data in a cell.
104 \wxheading{Derived from
}
106 \helpref{wxGridellStringRenderer
}{wxgridcellstringrenderer
}\\
107 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
111 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
112 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
113 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
114 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
116 \wxheading{Include files
}
122 \helpref{wxAdv
}{librarieslist
}
124 \latexignore{\rtfignore{\wxheading{Members
}}}
126 \membersection{wxGridCellNumberRenderer::wxGridCellNumberRenderer
}\label{wxgridcellnumberrendererconstr
}
128 \func{}{wxGridCellNumberRenderer
}{}
132 \section{\class{wxGridCellRenderer
}}\label{wxgridcellrenderer
}
134 This class is responsible for actually drawing the cell
135 in the grid. You may pass it to the wxGridCellAttr (below) to change the
136 format of one given cell or to wxGrid::SetDefaultRenderer() to change the
137 view of all cells. This is an abstract class, and you will normally use one of the
138 predefined derived classes or derive your own class from it.
140 \wxheading{Derived from
}
146 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
147 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
148 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
149 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
151 \wxheading{Include files
}
157 \helpref{wxAdv
}{librarieslist
}
159 \latexignore{\rtfignore{\wxheading{Members
}}}
161 \membersection{wxGridCellRenderer::Draw
}\label{wxgridcellrendererdraw
}
163 \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
}}
165 Draw the given cell on the provided DC inside the given rectangle
166 using the style specified by the attribute and the default or selected
167 state corresponding to the isSelected value.
169 This pure virtual function has a default implementation which will
170 prepare the DC using the given attribute: it will draw the rectangle
171 with the background colour from attr and set the text colour and font.
173 \membersection{wxGridCellRenderer::GetBestSize
}\label{wxgridcellrenderergetbestsize
}
175 \func{wxSize
}{GetBestSize
}{\param{wxGrid\&
}{grid
},
\param{wxGridCellAttr\&
}{attr
},
\param{wxDC\&
}{dc
},
\param{int
}{row
},
\param{int
}{col
}}
177 Get the preferred size of the cell for its contents.
179 \membersection{wxGridCellRenderer::Clone
}\label{wxgridcellrendererclone
}
181 \constfunc{wxGridCellRenderer*
}{Clone
}{\void}
183 \section{\class{wxGridCellStringRenderer
}}\label{wxgridcellstringrenderer
}
185 This class may be used to format string data in a cell; it is the default
188 \wxheading{Derived from
}
190 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
194 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
195 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
196 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
197 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
199 \wxheading{Include files
}
205 \helpref{wxAdv
}{librarieslist
}
207 \latexignore{\rtfignore{\wxheading{Members
}}}
209 \membersection{wxGridCellStringRenderer::wxGridCellStringRenderer
}\label{wxgridcellstringrendererconstr
}
211 \func{}{wxGridCellStringRenderer
}{}