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
}
17 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
18 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
19 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
20 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
22 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxGridCellRenderer::Draw
}\label{wxgridcellrendererdraw
}
26 \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
}}
28 Draw the given cell on the provided DC inside the given rectangle
29 using the style specified by the attribute and the default or selected
30 state corresponding to the isSelected value.
32 This pure virtual function has a default implementation which will
33 prepare the DC using the given attribute: it will draw the rectangle
34 with the background colour from attr and set the text colour and font.
36 \membersection{wxGridCellRenderer::GetBestSize
}\label{wxgridcellrenderergetbestsize
}
38 \func{wxSize
}{GetBestSize
}{\param{wxGrid\&
}{grid
},
\param{wxGridCellAttr\&
}{attr
},
\param{wxDC\&
}{dc
},
\param{int
}{row
},
\param{int
}{col
}}
40 Get the preferred size of the cell for its contents.
42 \membersection{wxGridCellRenderer::Clone
}\label{wxgridcellrendererclone
}
44 \constfunc{wxGridCellRenderer*
}{Clone
}{\void}
47 \section{\class{wxGridCellBoolRenderer
}}\label{wxgridcellboolrenderer
}
49 This class may be used to format boolean data in a cell.
52 \wxheading{Derived from
}
54 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
58 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
59 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
60 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
61 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
}
63 \latexignore{\rtfignore{\wxheading{Members
}}}
65 \membersection{wxGridCellBoolRenderer::wxGridCellBoolRenderer
}\label{wxgridcellboolrendererconstr
}
67 \func{}{wxGridCellBoolRenderer
}{}
73 \section{\class{wxGridCellFloatRenderer
}}\label{wxgridcellfloatrenderer
}
75 This class may be used to format floating point data in a cell.
77 \wxheading{Derived from
}
79 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
}\\
80 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
84 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
85 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
86 \helpref{wxGridCellTextRenderer
}{wxgridcelltextrenderer
},
\rtfsp
87 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
89 \latexignore{\rtfignore{\wxheading{Members
}}}
91 \membersection{wxGridCellFloatRenderer::wxGridCellFloatRenderer
}\label{wxgridcellfloatrendererconstr
}
93 \func{}{wxGridCellFloatRenderer
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
95 \docparam{width
}{Minimum number of characters to be shown.
}
96 \docparam{precision
}{Number of digits after the decimal dot.
}
98 \membersection{wxGridCellFloatRenderer::GetPrecision
}\label{wxgridcellfloatrenderergetprecision
}
100 \constfunc{int
}{GetPrecision
}{\void}
102 Returns the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
104 \membersection{wxGridCellFloatRenderer::GetWidth
}\label{wxgridcellfloatrenderergetwidth
}
106 \constfunc{int
}{GetWidth
}{\void}
108 Returns the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
110 \membersection{wxGridCellFloatRenderer::SetParameters
}\label{wxgridcellfloatrenderersetparameters
}
112 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
114 Parameters string format is "width
[,precision
]".
116 \membersection{wxGridCellFloatRenderer::SetPrecision
}\label{wxgridcellfloatrenderersetprecision
}
118 \func{void
}{SetPrecision
}{\param{int
}{precision
}}
120 Sets the precision ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} ).
122 \membersection{wxGridCellFloatRenderer::SetWidth
}\label{wxgridcellfloatrenderersetwidth
}
124 \func{void
}{SetWidth
}{\param{int
}{width
}}
126 Sets the width ( see
\helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrendererconstr
} )
130 \section{\class{wxGridCellNumberRenderer
}}\label{wxgridcellnumberrenderer
}
132 This class may be used to format integer data in a cell.
134 \wxheading{Derived from
}
136 \helpref{wxGridellStringRenderer
}{wxgridcellstringrenderer
}\\
137 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
141 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
142 \helpref{wxGridCellStringRenderer
}{wxgridcellstringrenderer
},
\rtfsp
143 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
144 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
146 \latexignore{\rtfignore{\wxheading{Members
}}}
148 \membersection{wxGridCellNumberRenderer::wxGridCellNumberRenderer
}\label{wxgridcellnumberrendererconstr
}
150 \func{}{wxGridCellNumberRenderer
}{}
155 \section{\class{wxGridCellStringRenderer
}}\label{wxgridcellstringrenderer
}
157 This class may be used to format string data in a cell; it is the default
160 \wxheading{Derived from
}
162 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
}
166 \helpref{wxGridCellRenderer
}{wxgridcellrenderer
},
\rtfsp
167 \helpref{wxGridCellNumberRenderer
}{wxgridcellnumberrenderer
},
\rtfsp
168 \helpref{wxGridCellFloatRenderer
}{wxgridcellfloatrenderer
},
\rtfsp
169 \helpref{wxGridCellBoolRenderer
}{wxgridcellboolrenderer
}
171 \latexignore{\rtfignore{\wxheading{Members
}}}
173 \membersection{wxGridCellStringRenderer::wxGridCellStringRenderer
}\label{wxgridcellstringrendererconstr
}
175 \func{}{wxGridCellStringRenderer
}{}