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 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxGridCellBoolRenderer::wxGridCellBoolRenderer
}\label{wxgridcellboolrendererconstr
}
21 \func{}{wxGridCellBoolRenderer
}{}
27 \section{\class{wxGridCellFloatRenderer
}}\label{wxgridcellfloatrenderer
}
29 This class may be used to format floating point data in a cell.
31 \wxheading{Derived from
}
33 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
}\\
34 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
38 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
39 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
40 \helpref{wxGridCellTextRenderer
}{wxgridcelltextrenderer
},
\rtfsp
41 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
43 \latexignore{\rtfignore{\wxheading{Members
}}}
45 \membersection{wxGridCellFloatRenderer::wxGridCellFloatRenderer
}\label{wxgridcellfloatrendererconstr
}
47 \func{}{wxGridCellFloatRenderer
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
49 \docparam{width
}{Minimum number of characters to be shown.
}
50 \docparam{precision
}{Number of digits after the decimal dot.
}
52 \membersection{wxGridCellFloatRenderer::GetPrecision
}\label{wxgridcellfloatrenderergetprecision
}
54 \constfunc{int
}{GetPrecision
}{\void}
56 Returns the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
58 \membersection{wxGridCellFloatRenderer::GetWidth
}\label{wxgridcellfloatrenderergetwidth
}
60 \constfunc{int
}{GetWidth
}{\void}
62 Returns the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
64 \membersection{wxGridCellFloatRenderer::SetParameters
}\label{wxgridcellfloatrenderersetparameters
}
66 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
68 Parameters string format is "width
[,precision
]".
70 \membersection{wxGridCellFloatRenderer::SetPrecision
}\label{wxgridcellfloatrenderersetprecision
}
72 \func{void
}{SetPrecision
}{\param{int
}{precision
}}
74 Sets the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
76 \membersection{wxGridCellFloatRenderer::SetWidth
}\label{wxgridcellfloatrenderersetwidth
}
78 \func{void
}{SetWidth
}{\param{int
}{width
}}
80 Sets the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} )
84 \section{\class{wxGridCellNumberRenderer
}}\label{wxgridcellnumberrenderer
}
86 This class may be used to format integer data in a cell.
88 \wxheading{Derived from
}
90 \helpref{wxGridellStringRenderer
}{wxgridcellstringrenderer
}\\
91 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
95 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
96 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
97 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
98 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
100 \latexignore{\rtfignore{\wxheading{Members
}}}
102 \membersection{wxGridCellNumberRenderer::wxGridCellNumberRenderer
}\label{wxgridcellnumberrendererconstr
}
104 \func{}{wxGridCellNumberRenderer
}{}
108 \section{\class{wxGridCellRenderer
}}\label{wxgridcellrenderer
}
110 This class is responsible for actually drawing the cell
111 in the grid. You may pass it to the wxGridCellAttr (below) to change the
112 format of one given cell or to wxGrid::SetDefaultRenderer() to change the
113 view of all cells. This is an abstract class, and you will normally use one of the
114 predefined derived classes or derive your own class from it.
116 \wxheading{Derived from
}
122 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
123 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
124 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
125 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
127 \latexignore{\rtfignore{\wxheading{Members
}}}
129 \membersection{wxGridCellRenderer::Draw
}\label{wxgridcellrendererdraw
}
131 \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
}}
133 Draw the given cell on the provided DC inside the given rectangle
134 using the style specified by the attribute and the default or selected
135 state corresponding to the isSelected value.
137 This pure virtual function has a default implementation which will
138 prepare the DC using the given attribute: it will draw the rectangle
139 with the background colour from attr and set the text colour and font.
141 \membersection{wxGridCellRenderer::GetBestSize
}\label{wxgridcellrenderergetbestsize
}
143 \func{wxSize
}{GetBestSize
}{\param{wxGrid\&
}{grid
},
\param{wxGridCellAttr\&
}{attr
},
\param{wxDC\&
}{dc
},
\param{int
}{row
},
\param{int
}{col
}}
145 Get the preferred size of the cell for its contents.
147 \membersection{wxGridCellRenderer::Clone
}\label{wxgridcellrendererclone
}
149 \constfunc{wxGridCellRenderer*
}{Clone
}{\void}
151 \section{\class{wxGridCellStringRenderer
}}\label{wxgridcellstringrenderer
}
153 This class may be used to format string data in a cell; it is the default
156 \wxheading{Derived from
}
158 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
162 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
163 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
164 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
165 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
167 \latexignore{\rtfignore{\wxheading{Members
}}}
169 \membersection{wxGridCellStringRenderer::wxGridCellStringRenderer
}\label{wxgridcellstringrendererconstr
}
171 \func{}{wxGridCellStringRenderer
}{}