]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gridattr.tex
added vendor display name (for consistency with app display name &c) (patch 1831303)
[wxWidgets.git] / docs / latex / wx / gridattr.tex
CommitLineData
03817a5e
MB
1%
2% automatically generated by HelpGen from
3% grid.h at 11/May/00 18:30:19
4%
5
03817a5e
MB
6\section{\class{wxGridCellAttr}}\label{wxgridcellattr}
7
2eebb742 8This class can be used to alter the cells' appearance in
03817a5e
MB
9the grid by changing their colour/font/... from default. An object of this
10class may be returned by wxGridTable::GetAttr().
11
03817a5e
MB
12\wxheading{Derived from}
13
14No base class
15
0e10e38d
VZ
16\wxheading{Include files}
17
18<wx/grid.h>
03817a5e 19
a7af285d
VZ
20\wxheading{Library}
21
22\helpref{wxAdv}{librarieslist}
23
03817a5e
MB
24\latexignore{\rtfignore{\wxheading{Members}}}
25
03817a5e
MB
26\membersection{wxGridCellAttr::wxGridCellAttr}\label{wxgridcellattrwxgridcellattr}
27
28\func{}{wxGridCellAttr}{\void}
29
2eebb742 30Default constructor.
095e0f91 31
03817a5e
MB
32\func{}{wxGridCellAttr}{\param{const wxColour\& }{colText}, \param{const wxColour\& }{colBack}, \param{const wxFont\& }{font}, \param{int }{hAlign}, \param{int }{vAlign}}
33
933c79ec
VZ
34Constructor specifying some of the often used attributes.
35
03817a5e 36
03817a5e
MB
37\membersection{wxGridCellAttr::Clone}\label{wxgridcellattrclone}
38
39\constfunc{wxGridCellAttr*}{Clone}{\void}
40
2eebb742 41Creates a new copy of this object.
03817a5e 42
933c79ec 43
03817a5e
MB
44\membersection{wxGridCellAttr::IncRef}\label{wxgridcellattrincref}
45
46\func{void}{IncRef}{\void}
47
2eebb742 48This class is ref counted: it is created with ref count of 1, so
03817a5e
MB
49calling DecRef() once will delete it. Calling IncRef() allows to lock
50it until the matching DecRef() is called
51
933c79ec 52
03817a5e
MB
53\membersection{wxGridCellAttr::DecRef}\label{wxgridcellattrdecref}
54
55\func{void}{DecRef}{\void}
56
03817a5e
MB
57\membersection{wxGridCellAttr::SetTextColour}\label{wxgridcellattrsettextcolour}
58
59\func{void}{SetTextColour}{\param{const wxColour\& }{colText}}
60
2eebb742 61Sets the text colour.
03817a5e 62
933c79ec 63
03817a5e
MB
64\membersection{wxGridCellAttr::SetBackgroundColour}\label{wxgridcellattrsetbackgroundcolour}
65
66\func{void}{SetBackgroundColour}{\param{const wxColour\& }{colBack}}
67
2eebb742 68Sets the background colour.
03817a5e 69
933c79ec 70
03817a5e
MB
71\membersection{wxGridCellAttr::SetFont}\label{wxgridcellattrsetfont}
72
73\func{void}{SetFont}{\param{const wxFont\& }{font}}
74
2eebb742 75Sets the font.
03817a5e 76
933c79ec 77
03817a5e
MB
78\membersection{wxGridCellAttr::SetAlignment}\label{wxgridcellattrsetalignment}
79
80\func{void}{SetAlignment}{\param{int }{hAlign}, \param{int }{vAlign}}
81
933c79ec
VZ
82Sets the alignment. \arg{hAlign} can be one of \texttt{wxALIGN\_LEFT},
83\texttt{wxALIGN\_CENTRE} or \texttt{wxALIGN\_RIGHT} and \arg{vAlign} can be one
84of \texttt{wxALIGN\_TOP}, \texttt{wxALIGN\_CENTRE} or \texttt{wxALIGN\_BOTTOM}.
85
03817a5e
MB
86
87\membersection{wxGridCellAttr::SetReadOnly}\label{wxgridcellattrsetreadonly}
88
cc81d32f 89\func{void}{SetReadOnly}{\param{bool }{isReadOnly = true}}
03817a5e
MB
90
91
92\membersection{wxGridCellAttr::SetRenderer}\label{wxgridcellattrsetrenderer}
93
94\func{void}{SetRenderer}{\param{wxGridCellRenderer* }{renderer}}
95
96takes ownership of the pointer
97
98
99\membersection{wxGridCellAttr::SetEditor}\label{wxgridcellattrseteditor}
100
101\func{void}{SetEditor}{\param{wxGridCellEditor* }{editor}}
102
103
104\membersection{wxGridCellAttr::HasTextColour}\label{wxgridcellattrhastextcolour}
105
106\constfunc{bool}{HasTextColour}{\void}
107
108accessors
109
110
111\membersection{wxGridCellAttr::HasBackgroundColour}\label{wxgridcellattrhasbackgroundcolour}
112
113\constfunc{bool}{HasBackgroundColour}{\void}
114
115
116\membersection{wxGridCellAttr::HasFont}\label{wxgridcellattrhasfont}
117
118\constfunc{bool}{HasFont}{\void}
119
120
121\membersection{wxGridCellAttr::HasAlignment}\label{wxgridcellattrhasalignment}
122
123\constfunc{bool}{HasAlignment}{\void}
124
125
126\membersection{wxGridCellAttr::HasRenderer}\label{wxgridcellattrhasrenderer}
127
128\constfunc{bool}{HasRenderer}{\void}
129
130
131\membersection{wxGridCellAttr::HasEditor}\label{wxgridcellattrhaseditor}
132
133\constfunc{bool}{HasEditor}{\void}
134
135
136\membersection{wxGridCellAttr::GetTextColour}\label{wxgridcellattrgettextcolour}
137
138\constfunc{const wxColour\&}{GetTextColour}{\void}
139
140
141\membersection{wxGridCellAttr::GetBackgroundColour}\label{wxgridcellattrgetbackgroundcolour}
142
143\constfunc{const wxColour\&}{GetBackgroundColour}{\void}
144
145
146\membersection{wxGridCellAttr::GetFont}\label{wxgridcellattrgetfont}
147
148\constfunc{const wxFont\&}{GetFont}{\void}
149
150
151\membersection{wxGridCellAttr::GetAlignment}\label{wxgridcellattrgetalignment}
152
153\constfunc{void}{GetAlignment}{\param{int* }{hAlign}, \param{int* }{vAlign}}
154
9722642d
MB
155\perlnote{This method takes no parameters and
156returns a 2-element list {\tt ( hAlign, vAlign )}.}
03817a5e 157
933c79ec
VZ
158See \helpref{SetAlignment}{wxgridcellattrsetalignment} for the returned values.
159
160
03817a5e
MB
161\membersection{wxGridCellAttr::GetRenderer}\label{wxgridcellattrgetrenderer}
162
163\constfunc{wxGridCellRenderer*}{GetRenderer}{\param{wxGrid* }{grid}, \param{int }{row}, \param{int }{col}}
164
165
166\membersection{wxGridCellAttr::GetEditor}\label{wxgridcellattrgeteditor}
167
168\constfunc{wxGridCellEditor*}{GetEditor}{\param{wxGrid* }{grid}, \param{int }{row}, \param{int }{col}}
169
170
171\membersection{wxGridCellAttr::IsReadOnly}\label{wxgridcellattrisreadonly}
172
173\constfunc{bool}{IsReadOnly}{\void}
174
175
176\membersection{wxGridCellAttr::SetDefAttr}\label{wxgridcellattrsetdefattr}
177
178\func{void}{SetDefAttr}{\param{wxGridCellAttr* }{defAttr}}
179