2 % automatically generated by HelpGen from
3 % grid.h at 11/May/00 18:30:19
6 \section{\class{wxGridCellAttr
}}\label{wxgridcellattr
}
8 This class can be used to alter the cells' appearance in
9 the grid by changing their colour/font/... from default. An object of this
10 class may be returned by wxGridTable::GetAttr().
12 \wxheading{Derived from
}
16 \wxheading{Include files
}
22 \helpref{wxAdv
}{librarieslist
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxGridCellAttr::wxGridCellAttr
}\label{wxgridcellattrwxgridcellattr
}
28 \func{}{wxGridCellAttr
}{\void}
32 \func{}{wxGridCellAttr
}{\param{const wxColour\&
}{colText
},
\param{const wxColour\&
}{colBack
},
\param{const wxFont\&
}{font
},
\param{int
}{hAlign
},
\param{int
}{vAlign
}}
34 Constructor specifying some of the often used attributes.
37 \membersection{wxGridCellAttr::Clone
}\label{wxgridcellattrclone
}
39 \constfunc{wxGridCellAttr*
}{Clone
}{\void}
41 Creates a new copy of this object.
44 \membersection{wxGridCellAttr::IncRef
}\label{wxgridcellattrincref
}
46 \func{void
}{IncRef
}{\void}
48 This class is ref counted: it is created with ref count of
1, so
49 calling DecRef() once will delete it. Calling IncRef() allows to lock
50 it until the matching DecRef() is called
53 \membersection{wxGridCellAttr::DecRef
}\label{wxgridcellattrdecref
}
55 \func{void
}{DecRef
}{\void}
57 \membersection{wxGridCellAttr::SetTextColour
}\label{wxgridcellattrsettextcolour
}
59 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{colText
}}
64 \membersection{wxGridCellAttr::SetBackgroundColour
}\label{wxgridcellattrsetbackgroundcolour
}
66 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{colBack
}}
68 Sets the background colour.
71 \membersection{wxGridCellAttr::SetFont
}\label{wxgridcellattrsetfont
}
73 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
78 \membersection{wxGridCellAttr::SetAlignment
}\label{wxgridcellattrsetalignment
}
80 \func{void
}{SetAlignment
}{\param{int
}{hAlign
},
\param{int
}{vAlign
}}
82 Sets 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
84 of
\texttt{wxALIGN
\_TOP},
\texttt{wxALIGN
\_CENTRE} or
\texttt{wxALIGN
\_BOTTOM}.
87 \membersection{wxGridCellAttr::SetReadOnly
}\label{wxgridcellattrsetreadonly
}
89 \func{void
}{SetReadOnly
}{\param{bool
}{isReadOnly = true
}}
92 \membersection{wxGridCellAttr::SetRenderer
}\label{wxgridcellattrsetrenderer
}
94 \func{void
}{SetRenderer
}{\param{wxGridCellRenderer*
}{renderer
}}
96 takes ownership of the pointer
99 \membersection{wxGridCellAttr::SetEditor
}\label{wxgridcellattrseteditor
}
101 \func{void
}{SetEditor
}{\param{wxGridCellEditor*
}{editor
}}
104 \membersection{wxGridCellAttr::HasTextColour
}\label{wxgridcellattrhastextcolour
}
106 \constfunc{bool
}{HasTextColour
}{\void}
111 \membersection{wxGridCellAttr::HasBackgroundColour
}\label{wxgridcellattrhasbackgroundcolour
}
113 \constfunc{bool
}{HasBackgroundColour
}{\void}
116 \membersection{wxGridCellAttr::HasFont
}\label{wxgridcellattrhasfont
}
118 \constfunc{bool
}{HasFont
}{\void}
121 \membersection{wxGridCellAttr::HasAlignment
}\label{wxgridcellattrhasalignment
}
123 \constfunc{bool
}{HasAlignment
}{\void}
126 \membersection{wxGridCellAttr::HasRenderer
}\label{wxgridcellattrhasrenderer
}
128 \constfunc{bool
}{HasRenderer
}{\void}
131 \membersection{wxGridCellAttr::HasEditor
}\label{wxgridcellattrhaseditor
}
133 \constfunc{bool
}{HasEditor
}{\void}
136 \membersection{wxGridCellAttr::GetTextColour
}\label{wxgridcellattrgettextcolour
}
138 \constfunc{const wxColour\&
}{GetTextColour
}{\void}
141 \membersection{wxGridCellAttr::GetBackgroundColour
}\label{wxgridcellattrgetbackgroundcolour
}
143 \constfunc{const wxColour\&
}{GetBackgroundColour
}{\void}
146 \membersection{wxGridCellAttr::GetFont
}\label{wxgridcellattrgetfont
}
148 \constfunc{const wxFont\&
}{GetFont
}{\void}
151 \membersection{wxGridCellAttr::GetAlignment
}\label{wxgridcellattrgetalignment
}
153 \constfunc{void
}{GetAlignment
}{\param{int*
}{hAlign
},
\param{int*
}{vAlign
}}
155 \perlnote{This method takes no parameters and
156 returns a
2-element list
{\tt ( hAlign, vAlign )
}.
}
158 See
\helpref{SetAlignment
}{wxgridcellattrsetalignment
} for the returned values.
161 \membersection{wxGridCellAttr::GetRenderer
}\label{wxgridcellattrgetrenderer
}
163 \constfunc{wxGridCellRenderer*
}{GetRenderer
}{\param{wxGrid*
}{grid
},
\param{int
}{row
},
\param{int
}{col
}}
166 \membersection{wxGridCellAttr::GetEditor
}\label{wxgridcellattrgeteditor
}
168 \constfunc{wxGridCellEditor*
}{GetEditor
}{\param{wxGrid*
}{grid
},
\param{int
}{row
},
\param{int
}{col
}}
171 \membersection{wxGridCellAttr::IsReadOnly
}\label{wxgridcellattrisreadonly
}
173 \constfunc{bool
}{IsReadOnly
}{\void}
176 \membersection{wxGridCellAttr::SetDefAttr
}\label{wxgridcellattrsetdefattr
}
178 \func{void
}{SetDefAttr
}{\param{wxGridCellAttr*
}{defAttr
}}