]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gridattr.tex
wxMemoryDC constructor now optionally accepts a wxBitmap parameter,
[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
MB
19
20\latexignore{\rtfignore{\wxheading{Members}}}
21
03817a5e
MB
22\membersection{wxGridCellAttr::wxGridCellAttr}\label{wxgridcellattrwxgridcellattr}
23
24\func{}{wxGridCellAttr}{\void}
25
2eebb742 26Default constructor.
095e0f91 27
03817a5e
MB
28\func{}{wxGridCellAttr}{\param{const wxColour\& }{colText}, \param{const wxColour\& }{colBack}, \param{const wxFont\& }{font}, \param{int }{hAlign}, \param{int }{vAlign}}
29
30VZ: considering the number of members wxGridCellAttr has now, this ctor
31seems to be pretty useless... may be we should just remove it?
32
03817a5e
MB
33\membersection{wxGridCellAttr::Clone}\label{wxgridcellattrclone}
34
35\constfunc{wxGridCellAttr*}{Clone}{\void}
36
2eebb742 37Creates a new copy of this object.
03817a5e
MB
38
39\membersection{wxGridCellAttr::IncRef}\label{wxgridcellattrincref}
40
41\func{void}{IncRef}{\void}
42
2eebb742 43This class is ref counted: it is created with ref count of 1, so
03817a5e
MB
44calling DecRef() once will delete it. Calling IncRef() allows to lock
45it until the matching DecRef() is called
46
03817a5e
MB
47\membersection{wxGridCellAttr::DecRef}\label{wxgridcellattrdecref}
48
49\func{void}{DecRef}{\void}
50
03817a5e
MB
51\membersection{wxGridCellAttr::SetTextColour}\label{wxgridcellattrsettextcolour}
52
53\func{void}{SetTextColour}{\param{const wxColour\& }{colText}}
54
2eebb742 55Sets the text colour.
03817a5e
MB
56
57\membersection{wxGridCellAttr::SetBackgroundColour}\label{wxgridcellattrsetbackgroundcolour}
58
59\func{void}{SetBackgroundColour}{\param{const wxColour\& }{colBack}}
60
2eebb742 61Sets the background colour.
03817a5e
MB
62
63\membersection{wxGridCellAttr::SetFont}\label{wxgridcellattrsetfont}
64
65\func{void}{SetFont}{\param{const wxFont\& }{font}}
66
2eebb742 67Sets the font.
03817a5e
MB
68
69\membersection{wxGridCellAttr::SetAlignment}\label{wxgridcellattrsetalignment}
70
71\func{void}{SetAlignment}{\param{int }{hAlign}, \param{int }{vAlign}}
72
2eebb742 73Sets the alignment.
03817a5e
MB
74
75\membersection{wxGridCellAttr::SetReadOnly}\label{wxgridcellattrsetreadonly}
76
cc81d32f 77\func{void}{SetReadOnly}{\param{bool }{isReadOnly = true}}
03817a5e
MB
78
79
80\membersection{wxGridCellAttr::SetRenderer}\label{wxgridcellattrsetrenderer}
81
82\func{void}{SetRenderer}{\param{wxGridCellRenderer* }{renderer}}
83
84takes ownership of the pointer
85
86
87\membersection{wxGridCellAttr::SetEditor}\label{wxgridcellattrseteditor}
88
89\func{void}{SetEditor}{\param{wxGridCellEditor* }{editor}}
90
91
92\membersection{wxGridCellAttr::HasTextColour}\label{wxgridcellattrhastextcolour}
93
94\constfunc{bool}{HasTextColour}{\void}
95
96accessors
97
98
99\membersection{wxGridCellAttr::HasBackgroundColour}\label{wxgridcellattrhasbackgroundcolour}
100
101\constfunc{bool}{HasBackgroundColour}{\void}
102
103
104\membersection{wxGridCellAttr::HasFont}\label{wxgridcellattrhasfont}
105
106\constfunc{bool}{HasFont}{\void}
107
108
109\membersection{wxGridCellAttr::HasAlignment}\label{wxgridcellattrhasalignment}
110
111\constfunc{bool}{HasAlignment}{\void}
112
113
114\membersection{wxGridCellAttr::HasRenderer}\label{wxgridcellattrhasrenderer}
115
116\constfunc{bool}{HasRenderer}{\void}
117
118
119\membersection{wxGridCellAttr::HasEditor}\label{wxgridcellattrhaseditor}
120
121\constfunc{bool}{HasEditor}{\void}
122
123
124\membersection{wxGridCellAttr::GetTextColour}\label{wxgridcellattrgettextcolour}
125
126\constfunc{const wxColour\&}{GetTextColour}{\void}
127
128
129\membersection{wxGridCellAttr::GetBackgroundColour}\label{wxgridcellattrgetbackgroundcolour}
130
131\constfunc{const wxColour\&}{GetBackgroundColour}{\void}
132
133
134\membersection{wxGridCellAttr::GetFont}\label{wxgridcellattrgetfont}
135
136\constfunc{const wxFont\&}{GetFont}{\void}
137
138
139\membersection{wxGridCellAttr::GetAlignment}\label{wxgridcellattrgetalignment}
140
141\constfunc{void}{GetAlignment}{\param{int* }{hAlign}, \param{int* }{vAlign}}
142
9722642d
MB
143\perlnote{This method takes no parameters and
144returns a 2-element list {\tt ( hAlign, vAlign )}.}
03817a5e
MB
145
146\membersection{wxGridCellAttr::GetRenderer}\label{wxgridcellattrgetrenderer}
147
148\constfunc{wxGridCellRenderer*}{GetRenderer}{\param{wxGrid* }{grid}, \param{int }{row}, \param{int }{col}}
149
150
151\membersection{wxGridCellAttr::GetEditor}\label{wxgridcellattrgeteditor}
152
153\constfunc{wxGridCellEditor*}{GetEditor}{\param{wxGrid* }{grid}, \param{int }{row}, \param{int }{col}}
154
155
156\membersection{wxGridCellAttr::IsReadOnly}\label{wxgridcellattrisreadonly}
157
158\constfunc{bool}{IsReadOnly}{\void}
159
160
161\membersection{wxGridCellAttr::SetDefAttr}\label{wxgridcellattrsetdefattr}
162
163\func{void}{SetDefAttr}{\param{wxGridCellAttr* }{defAttr}}
164