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
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxGridCellAttr::wxGridCellAttr
}\label{wxgridcellattrwxgridcellattr
}
24 \func{}{wxGridCellAttr
}{\void}
28 \func{}{wxGridCellAttr
}{\param{const wxColour\&
}{colText
},
\param{const wxColour\&
}{colBack
},
\param{const wxFont\&
}{font
},
\param{int
}{hAlign
},
\param{int
}{vAlign
}}
30 Constructor specifying some of the often used attributes.
33 \membersection{wxGridCellAttr::Clone
}\label{wxgridcellattrclone
}
35 \constfunc{wxGridCellAttr*
}{Clone
}{\void}
37 Creates a new copy of this object.
40 \membersection{wxGridCellAttr::IncRef
}\label{wxgridcellattrincref
}
42 \func{void
}{IncRef
}{\void}
44 This class is ref counted: it is created with ref count of
1, so
45 calling DecRef() once will delete it. Calling IncRef() allows to lock
46 it until the matching DecRef() is called
49 \membersection{wxGridCellAttr::DecRef
}\label{wxgridcellattrdecref
}
51 \func{void
}{DecRef
}{\void}
53 \membersection{wxGridCellAttr::SetTextColour
}\label{wxgridcellattrsettextcolour
}
55 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{colText
}}
60 \membersection{wxGridCellAttr::SetBackgroundColour
}\label{wxgridcellattrsetbackgroundcolour
}
62 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{colBack
}}
64 Sets the background colour.
67 \membersection{wxGridCellAttr::SetFont
}\label{wxgridcellattrsetfont
}
69 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
74 \membersection{wxGridCellAttr::SetAlignment
}\label{wxgridcellattrsetalignment
}
76 \func{void
}{SetAlignment
}{\param{int
}{hAlign
},
\param{int
}{vAlign
}}
78 Sets the alignment.
\arg{hAlign
} can be one of
\texttt{wxALIGN
\_LEFT},
79 \texttt{wxALIGN
\_CENTRE} or
\texttt{wxALIGN
\_RIGHT} and
\arg{vAlign
} can be one
80 of
\texttt{wxALIGN
\_TOP},
\texttt{wxALIGN
\_CENTRE} or
\texttt{wxALIGN
\_BOTTOM}.
83 \membersection{wxGridCellAttr::SetReadOnly
}\label{wxgridcellattrsetreadonly
}
85 \func{void
}{SetReadOnly
}{\param{bool
}{isReadOnly = true
}}
88 \membersection{wxGridCellAttr::SetRenderer
}\label{wxgridcellattrsetrenderer
}
90 \func{void
}{SetRenderer
}{\param{wxGridCellRenderer*
}{renderer
}}
92 takes ownership of the pointer
95 \membersection{wxGridCellAttr::SetEditor
}\label{wxgridcellattrseteditor
}
97 \func{void
}{SetEditor
}{\param{wxGridCellEditor*
}{editor
}}
100 \membersection{wxGridCellAttr::HasTextColour
}\label{wxgridcellattrhastextcolour
}
102 \constfunc{bool
}{HasTextColour
}{\void}
107 \membersection{wxGridCellAttr::HasBackgroundColour
}\label{wxgridcellattrhasbackgroundcolour
}
109 \constfunc{bool
}{HasBackgroundColour
}{\void}
112 \membersection{wxGridCellAttr::HasFont
}\label{wxgridcellattrhasfont
}
114 \constfunc{bool
}{HasFont
}{\void}
117 \membersection{wxGridCellAttr::HasAlignment
}\label{wxgridcellattrhasalignment
}
119 \constfunc{bool
}{HasAlignment
}{\void}
122 \membersection{wxGridCellAttr::HasRenderer
}\label{wxgridcellattrhasrenderer
}
124 \constfunc{bool
}{HasRenderer
}{\void}
127 \membersection{wxGridCellAttr::HasEditor
}\label{wxgridcellattrhaseditor
}
129 \constfunc{bool
}{HasEditor
}{\void}
132 \membersection{wxGridCellAttr::GetTextColour
}\label{wxgridcellattrgettextcolour
}
134 \constfunc{const wxColour\&
}{GetTextColour
}{\void}
137 \membersection{wxGridCellAttr::GetBackgroundColour
}\label{wxgridcellattrgetbackgroundcolour
}
139 \constfunc{const wxColour\&
}{GetBackgroundColour
}{\void}
142 \membersection{wxGridCellAttr::GetFont
}\label{wxgridcellattrgetfont
}
144 \constfunc{const wxFont\&
}{GetFont
}{\void}
147 \membersection{wxGridCellAttr::GetAlignment
}\label{wxgridcellattrgetalignment
}
149 \constfunc{void
}{GetAlignment
}{\param{int*
}{hAlign
},
\param{int*
}{vAlign
}}
151 \perlnote{This method takes no parameters and
152 returns a
2-element list
{\tt ( hAlign, vAlign )
}.
}
154 See
\helpref{SetAlignment
}{wxgridcellattrsetalignment
} for the returned values.
157 \membersection{wxGridCellAttr::GetRenderer
}\label{wxgridcellattrgetrenderer
}
159 \constfunc{wxGridCellRenderer*
}{GetRenderer
}{\param{wxGrid*
}{grid
},
\param{int
}{row
},
\param{int
}{col
}}
162 \membersection{wxGridCellAttr::GetEditor
}\label{wxgridcellattrgeteditor
}
164 \constfunc{wxGridCellEditor*
}{GetEditor
}{\param{wxGrid*
}{grid
},
\param{int
}{row
},
\param{int
}{col
}}
167 \membersection{wxGridCellAttr::IsReadOnly
}\label{wxgridcellattrisreadonly
}
169 \constfunc{bool
}{IsReadOnly
}{\void}
172 \membersection{wxGridCellAttr::SetDefAttr
}\label{wxgridcellattrsetdefattr
}
174 \func{void
}{SetDefAttr
}{\param{wxGridCellAttr*
}{defAttr
}}