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 VZ: considering the number of members wxGridCellAttr has now, this ctor
31 seems to be pretty useless... may be we should just remove it?
33 \membersection{wxGridCellAttr::Clone
}\label{wxgridcellattrclone
}
35 \constfunc{wxGridCellAttr*
}{Clone
}{\void}
37 Creates a new copy of this object.
39 \membersection{wxGridCellAttr::IncRef
}\label{wxgridcellattrincref
}
41 \func{void
}{IncRef
}{\void}
43 This class is ref counted: it is created with ref count of
1, so
44 calling DecRef() once will delete it. Calling IncRef() allows to lock
45 it until the matching DecRef() is called
47 \membersection{wxGridCellAttr::DecRef
}\label{wxgridcellattrdecref
}
49 \func{void
}{DecRef
}{\void}
51 \membersection{wxGridCellAttr::SetTextColour
}\label{wxgridcellattrsettextcolour
}
53 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{colText
}}
57 \membersection{wxGridCellAttr::SetBackgroundColour
}\label{wxgridcellattrsetbackgroundcolour
}
59 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{colBack
}}
61 Sets the background colour.
63 \membersection{wxGridCellAttr::SetFont
}\label{wxgridcellattrsetfont
}
65 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
69 \membersection{wxGridCellAttr::SetAlignment
}\label{wxgridcellattrsetalignment
}
71 \func{void
}{SetAlignment
}{\param{int
}{hAlign
},
\param{int
}{vAlign
}}
75 \membersection{wxGridCellAttr::SetReadOnly
}\label{wxgridcellattrsetreadonly
}
77 \func{void
}{SetReadOnly
}{\param{bool
}{isReadOnly = true
}}
80 \membersection{wxGridCellAttr::SetRenderer
}\label{wxgridcellattrsetrenderer
}
82 \func{void
}{SetRenderer
}{\param{wxGridCellRenderer*
}{renderer
}}
84 takes ownership of the pointer
87 \membersection{wxGridCellAttr::SetEditor
}\label{wxgridcellattrseteditor
}
89 \func{void
}{SetEditor
}{\param{wxGridCellEditor*
}{editor
}}
92 \membersection{wxGridCellAttr::HasTextColour
}\label{wxgridcellattrhastextcolour
}
94 \constfunc{bool
}{HasTextColour
}{\void}
99 \membersection{wxGridCellAttr::HasBackgroundColour
}\label{wxgridcellattrhasbackgroundcolour
}
101 \constfunc{bool
}{HasBackgroundColour
}{\void}
104 \membersection{wxGridCellAttr::HasFont
}\label{wxgridcellattrhasfont
}
106 \constfunc{bool
}{HasFont
}{\void}
109 \membersection{wxGridCellAttr::HasAlignment
}\label{wxgridcellattrhasalignment
}
111 \constfunc{bool
}{HasAlignment
}{\void}
114 \membersection{wxGridCellAttr::HasRenderer
}\label{wxgridcellattrhasrenderer
}
116 \constfunc{bool
}{HasRenderer
}{\void}
119 \membersection{wxGridCellAttr::HasEditor
}\label{wxgridcellattrhaseditor
}
121 \constfunc{bool
}{HasEditor
}{\void}
124 \membersection{wxGridCellAttr::GetTextColour
}\label{wxgridcellattrgettextcolour
}
126 \constfunc{const wxColour\&
}{GetTextColour
}{\void}
129 \membersection{wxGridCellAttr::GetBackgroundColour
}\label{wxgridcellattrgetbackgroundcolour
}
131 \constfunc{const wxColour\&
}{GetBackgroundColour
}{\void}
134 \membersection{wxGridCellAttr::GetFont
}\label{wxgridcellattrgetfont
}
136 \constfunc{const wxFont\&
}{GetFont
}{\void}
139 \membersection{wxGridCellAttr::GetAlignment
}\label{wxgridcellattrgetalignment
}
141 \constfunc{void
}{GetAlignment
}{\param{int*
}{hAlign
},
\param{int*
}{vAlign
}}
143 \perlnote{This method takes no parameters and
144 returns a
2-element list
{\tt ( hAlign, vAlign )
}.
}
146 \membersection{wxGridCellAttr::GetRenderer
}\label{wxgridcellattrgetrenderer
}
148 \constfunc{wxGridCellRenderer*
}{GetRenderer
}{\param{wxGrid*
}{grid
},
\param{int
}{row
},
\param{int
}{col
}}
151 \membersection{wxGridCellAttr::GetEditor
}\label{wxgridcellattrgeteditor
}
153 \constfunc{wxGridCellEditor*
}{GetEditor
}{\param{wxGrid*
}{grid
},
\param{int
}{row
},
\param{int
}{col
}}
156 \membersection{wxGridCellAttr::IsReadOnly
}\label{wxgridcellattrisreadonly
}
158 \constfunc{bool
}{IsReadOnly
}{\void}
161 \membersection{wxGridCellAttr::SetDefAttr
}\label{wxgridcellattrsetdefattr
}
163 \func{void
}{SetDefAttr
}{\param{wxGridCellAttr*
}{defAttr
}}