]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gridrend.tex
Fixed to work with the new wxMacControl system.
[wxWidgets.git] / docs / latex / wx / gridrend.tex
CommitLineData
cbc95b2c
MB
1\section{\class{wxGridCellBoolRenderer}}\label{wxgridcellboolrenderer}
2
3This class may be used to format boolean data in a cell.
4for string cells.
5
6\wxheading{Derived from}
7
8\helpref{wxGridCellRenderer}{wxgridcellrenderer}
9
10\wxheading{See also}
11
12\helpref{wxGridCellRenderer}{wxgridcellrenderer},\rtfsp
13\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer},\rtfsp
14\helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp
15\helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer}
16
17\latexignore{\rtfignore{\wxheading{Members}}}
18
19\membersection{wxGridCellBoolRenderer::wxGridCellBoolRenderer}\label{wxgridcellboolrendererconstr}
20
21\func{}{wxGridCellBoolRenderer}{}
22
23Default constructor
24
25
26
27\section{\class{wxGridCellFloatRenderer}}\label{wxgridcellfloatrenderer}
28
29This class may be used to format floating point data in a cell.
30
31\wxheading{Derived from}
32
33\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer}\\
34\helpref{wxGridCellRenderer}{wxgridcellrenderer}
35
36\wxheading{See also}
37
38\helpref{wxGridCellRenderer}{wxgridcellrenderer},\rtfsp
39\helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer},\rtfsp
e676441f 40\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer},\rtfsp
cbc95b2c
MB
41\helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer}
42
43\latexignore{\rtfignore{\wxheading{Members}}}
44
45\membersection{wxGridCellFloatRenderer::wxGridCellFloatRenderer}\label{wxgridcellfloatrendererconstr}
46
47\func{}{wxGridCellFloatRenderer}{\param{int }{width = -1}, \param{int }{precision = -1}}
48
49\docparam{width}{Minimum number of characters to be shown.}
50\docparam{precision}{Number of digits after the decimal dot.}
51
52\membersection{wxGridCellFloatRenderer::GetPrecision}\label{wxgridcellfloatrenderergetprecision}
53
54\constfunc{int}{GetPrecision}{\void}
55
56Returns the precision ( see \helpref{wxGridCellFloatRenderer}{wxgridcellfloatrendererconstr} ).
57
58\membersection{wxGridCellFloatRenderer::GetWidth}\label{wxgridcellfloatrenderergetwidth}
59
60\constfunc{int}{GetWidth}{\void}
61
62Returns the width ( see \helpref{wxGridCellFloatRenderer}{wxgridcellfloatrendererconstr} ).
63
64\membersection{wxGridCellFloatRenderer::SetParameters}\label{wxgridcellfloatrenderersetparameters}
65
66\func{void}{SetParameters}{\param{const wxString\& }{params}}
67
68Parameters string format is "width[,precision]".
69
70\membersection{wxGridCellFloatRenderer::SetPrecision}\label{wxgridcellfloatrenderersetprecision}
71
72\func{void}{SetPrecision}{\param{int }{precision}}
73
74Sets the precision ( see \helpref{wxGridCellFloatRenderer}{wxgridcellfloatrendererconstr} ).
75
76\membersection{wxGridCellFloatRenderer::SetWidth}\label{wxgridcellfloatrenderersetwidth}
77
78\func{void}{SetWidth}{\param{int }{width}}
79
80Sets the width ( see \helpref{wxGridCellFloatRenderer}{wxgridcellfloatrendererconstr} )
81
82
83
84\section{\class{wxGridCellNumberRenderer}}\label{wxgridcellnumberrenderer}
85
86This class may be used to format integer data in a cell.
87
88\wxheading{Derived from}
89
90\helpref{wxGridellStringRenderer}{wxgridcellstringrenderer}\\
91\helpref{wxGridCellRenderer}{wxgridcellrenderer}
92
93\wxheading{See also}
94
95\helpref{wxGridCellRenderer}{wxgridcellrenderer},\rtfsp
96\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer},\rtfsp
97\helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp
98\helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer}
99
100\latexignore{\rtfignore{\wxheading{Members}}}
101
102\membersection{wxGridCellNumberRenderer::wxGridCellNumberRenderer}\label{wxgridcellnumberrendererconstr}
103
104\func{}{wxGridCellNumberRenderer}{}
105
106Default constructor
107
f3845e88
VZ
108\section{\class{wxGridCellRenderer}}\label{wxgridcellrenderer}
109
110This class is responsible for actually drawing the cell
111in the grid. You may pass it to the wxGridCellAttr (below) to change the
112format of one given cell or to wxGrid::SetDefaultRenderer() to change the
113view of all cells. This is an abstract class, and you will normally use one of the
114predefined derived classes or derive your own class from it.
115
116\wxheading{Derived from}
117
118wxGridCellWorker
119
120\wxheading{See also}
121
122\helpref{wxGridCellStringRenderer}{wxgridcellstringrenderer},\rtfsp
123\helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer},\rtfsp
124\helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp
125\helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer}
126
127\latexignore{\rtfignore{\wxheading{Members}}}
128
129\membersection{wxGridCellRenderer::Draw}\label{wxgridcellrendererdraw}
130
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}}
132
133Draw the given cell on the provided DC inside the given rectangle
134using the style specified by the attribute and the default or selected
135state corresponding to the isSelected value.
136
137This pure virtual function has a default implementation which will
138prepare the DC using the given attribute: it will draw the rectangle
139with the background colour from attr and set the text colour and font.
140
141\membersection{wxGridCellRenderer::GetBestSize}\label{wxgridcellrenderergetbestsize}
142
143\func{wxSize}{GetBestSize}{\param{wxGrid\& }{grid}, \param{wxGridCellAttr\& }{attr}, \param{wxDC\& }{dc}, \param{int }{row}, \param{int }{col}}
144
145Get the preferred size of the cell for its contents.
146
147\membersection{wxGridCellRenderer::Clone}\label{wxgridcellrendererclone}
148
149\constfunc{wxGridCellRenderer*}{Clone}{\void}
cbc95b2c
MB
150
151\section{\class{wxGridCellStringRenderer}}\label{wxgridcellstringrenderer}
152
153This class may be used to format string data in a cell; it is the default
154for string cells.
155
156\wxheading{Derived from}
157
158\helpref{wxGridCellRenderer}{wxgridcellrenderer}
159
160\wxheading{See also}
161
162\helpref{wxGridCellRenderer}{wxgridcellrenderer},\rtfsp
163\helpref{wxGridCellNumberRenderer}{wxgridcellnumberrenderer},\rtfsp
164\helpref{wxGridCellFloatRenderer}{wxgridcellfloatrenderer},\rtfsp
165\helpref{wxGridCellBoolRenderer}{wxgridcellboolrenderer}
166
167\latexignore{\rtfignore{\wxheading{Members}}}
168
169\membersection{wxGridCellStringRenderer::wxGridCellStringRenderer}\label{wxgridcellstringrendererconstr}
170
171\func{}{wxGridCellStringRenderer}{}
172
173Default constructor
174
175