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
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxGridCellBoolRenderer::wxGridCellBoolRenderer
}\label{wxgridcellboolrendererconstr
}
25 \func{}{wxGridCellBoolRenderer
}{}
31 \section{\class{wxGridCellFloatRenderer
}}\label{wxgridcellfloatrenderer
}
33 This class may be used to format floating point data in a cell.
35 \wxheading{Derived from
}
37 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
}\\
38 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
42 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
43 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
44 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
45 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
47 \wxheading{Include files
}
51 \latexignore{\rtfignore{\wxheading{Members
}}}
53 \membersection{wxGridCellFloatRenderer::wxGridCellFloatRenderer
}\label{wxgridcellfloatrendererconstr
}
55 \func{}{wxGridCellFloatRenderer
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
57 \docparam{width
}{Minimum number of characters to be shown.
}
58 \docparam{precision
}{Number of digits after the decimal dot.
}
60 \membersection{wxGridCellFloatRenderer::GetPrecision
}\label{wxgridcellfloatrenderergetprecision
}
62 \constfunc{int
}{GetPrecision
}{\void}
64 Returns the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
66 \membersection{wxGridCellFloatRenderer::GetWidth
}\label{wxgridcellfloatrenderergetwidth
}
68 \constfunc{int
}{GetWidth
}{\void}
70 Returns the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
72 \membersection{wxGridCellFloatRenderer::SetParameters
}\label{wxgridcellfloatrenderersetparameters
}
74 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
76 Parameters string format is "width
[,precision
]".
78 \membersection{wxGridCellFloatRenderer::SetPrecision
}\label{wxgridcellfloatrenderersetprecision
}
80 \func{void
}{SetPrecision
}{\param{int
}{precision
}}
82 Sets the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
84 \membersection{wxGridCellFloatRenderer::SetWidth
}\label{wxgridcellfloatrenderersetwidth
}
86 \func{void
}{SetWidth
}{\param{int
}{width
}}
88 Sets the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} )
92 \section{\class{wxGridCellNumberRenderer
}}\label{wxgridcellnumberrenderer
}
94 This class may be used to format integer data in a cell.
96 \wxheading{Derived from
}
98 \helpref{wxGridellStringRenderer
}{wxgridcellstringrenderer
}\\
99 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
103 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
104 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
105 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
106 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
108 \wxheading{Include files
}
112 \latexignore{\rtfignore{\wxheading{Members
}}}
114 \membersection{wxGridCellNumberRenderer::wxGridCellNumberRenderer
}\label{wxgridcellnumberrendererconstr
}
116 \func{}{wxGridCellNumberRenderer
}{}
120 \section{\class{wxGridCellRenderer
}}\label{wxgridcellrenderer
}
122 This class is responsible for actually drawing the cell
123 in the grid. You may pass it to the wxGridCellAttr (below) to change the
124 format of one given cell or to wxGrid::SetDefaultRenderer() to change the
125 view of all cells. This is an abstract class, and you will normally use one of the
126 predefined derived classes or derive your own class from it.
128 \wxheading{Derived from
}
134 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
135 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
136 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
137 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
139 \wxheading{Include files
}
143 \latexignore{\rtfignore{\wxheading{Members
}}}
145 \membersection{wxGridCellRenderer::Draw
}\label{wxgridcellrendererdraw
}
147 \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
}}
149 Draw the given cell on the provided DC inside the given rectangle
150 using the style specified by the attribute and the default or selected
151 state corresponding to the isSelected value.
153 This pure virtual function has a default implementation which will
154 prepare the DC using the given attribute: it will draw the rectangle
155 with the background colour from attr and set the text colour and font.
157 \membersection{wxGridCellRenderer::GetBestSize
}\label{wxgridcellrenderergetbestsize
}
159 \func{wxSize
}{GetBestSize
}{\param{wxGrid\&
}{grid
},
\param{wxGridCellAttr\&
}{attr
},
\param{wxDC\&
}{dc
},
\param{int
}{row
},
\param{int
}{col
}}
161 Get the preferred size of the cell for its contents.
163 \membersection{wxGridCellRenderer::Clone
}\label{wxgridcellrendererclone
}
165 \constfunc{wxGridCellRenderer*
}{Clone
}{\void}
167 \section{\class{wxGridCellStringRenderer
}}\label{wxgridcellstringrenderer
}
169 This class may be used to format string data in a cell; it is the default
172 \wxheading{Derived from
}
174 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
178 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
179 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
180 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
181 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
183 \wxheading{Include files
}
187 \latexignore{\rtfignore{\wxheading{Members
}}}
189 \membersection{wxGridCellStringRenderer::wxGridCellStringRenderer
}\label{wxgridcellstringrendererconstr
}
191 \func{}{wxGridCellStringRenderer
}{}