2000-07-21 04:30:47 -04:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen from
|
|
|
|
% grid.h at 11/May/00 18:30:19
|
|
|
|
%
|
|
|
|
|
|
|
|
\section{\class{wxGridCellAttr}}\label{wxgridcellattr}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
This class can be used to alter the cells' appearance in
|
2000-07-21 04:30:47 -04:00
|
|
|
the grid by changing their colour/font/... from default. An object of this
|
|
|
|
class may be returned by wxGridTable::GetAttr().
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
No base class
|
|
|
|
|
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::wxGridCellAttr}\label{wxgridcellattrwxgridcellattr}
|
|
|
|
|
|
|
|
\func{}{wxGridCellAttr}{\void}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
Default constructor.
|
|
|
|
|
2000-07-21 04:30:47 -04:00
|
|
|
\func{}{wxGridCellAttr}{\param{const wxColour\& }{colText}, \param{const wxColour\& }{colBack}, \param{const wxFont\& }{font}, \param{int }{hAlign}, \param{int }{vAlign}}
|
|
|
|
|
|
|
|
VZ: considering the number of members wxGridCellAttr has now, this ctor
|
|
|
|
seems to be pretty useless... may be we should just remove it?
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::Clone}\label{wxgridcellattrclone}
|
|
|
|
|
|
|
|
\constfunc{wxGridCellAttr*}{Clone}{\void}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
Creates a new copy of this object.
|
2000-07-21 04:30:47 -04:00
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::IncRef}\label{wxgridcellattrincref}
|
|
|
|
|
|
|
|
\func{void}{IncRef}{\void}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
This class is ref counted: it is created with ref count of 1, so
|
2000-07-21 04:30:47 -04:00
|
|
|
calling DecRef() once will delete it. Calling IncRef() allows to lock
|
|
|
|
it until the matching DecRef() is called
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::DecRef}\label{wxgridcellattrdecref}
|
|
|
|
|
|
|
|
\func{void}{DecRef}{\void}
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetTextColour}\label{wxgridcellattrsettextcolour}
|
|
|
|
|
|
|
|
\func{void}{SetTextColour}{\param{const wxColour\& }{colText}}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
Sets the text colour.
|
2000-07-21 04:30:47 -04:00
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetBackgroundColour}\label{wxgridcellattrsetbackgroundcolour}
|
|
|
|
|
|
|
|
\func{void}{SetBackgroundColour}{\param{const wxColour\& }{colBack}}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
Sets the background colour.
|
2000-07-21 04:30:47 -04:00
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetFont}\label{wxgridcellattrsetfont}
|
|
|
|
|
|
|
|
\func{void}{SetFont}{\param{const wxFont\& }{font}}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
Sets the font.
|
2000-07-21 04:30:47 -04:00
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetAlignment}\label{wxgridcellattrsetalignment}
|
|
|
|
|
|
|
|
\func{void}{SetAlignment}{\param{int }{hAlign}, \param{int }{vAlign}}
|
|
|
|
|
2000-09-10 15:01:03 -04:00
|
|
|
Sets the alignment.
|
2000-07-21 04:30:47 -04:00
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetReadOnly}\label{wxgridcellattrsetreadonly}
|
|
|
|
|
|
|
|
\func{void}{SetReadOnly}{\param{bool }{isReadOnly = TRUE}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetRenderer}\label{wxgridcellattrsetrenderer}
|
|
|
|
|
|
|
|
\func{void}{SetRenderer}{\param{wxGridCellRenderer* }{renderer}}
|
|
|
|
|
|
|
|
takes ownership of the pointer
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetEditor}\label{wxgridcellattrseteditor}
|
|
|
|
|
|
|
|
\func{void}{SetEditor}{\param{wxGridCellEditor* }{editor}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::HasTextColour}\label{wxgridcellattrhastextcolour}
|
|
|
|
|
|
|
|
\constfunc{bool}{HasTextColour}{\void}
|
|
|
|
|
|
|
|
accessors
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::HasBackgroundColour}\label{wxgridcellattrhasbackgroundcolour}
|
|
|
|
|
|
|
|
\constfunc{bool}{HasBackgroundColour}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::HasFont}\label{wxgridcellattrhasfont}
|
|
|
|
|
|
|
|
\constfunc{bool}{HasFont}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::HasAlignment}\label{wxgridcellattrhasalignment}
|
|
|
|
|
|
|
|
\constfunc{bool}{HasAlignment}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::HasRenderer}\label{wxgridcellattrhasrenderer}
|
|
|
|
|
|
|
|
\constfunc{bool}{HasRenderer}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::HasEditor}\label{wxgridcellattrhaseditor}
|
|
|
|
|
|
|
|
\constfunc{bool}{HasEditor}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::GetTextColour}\label{wxgridcellattrgettextcolour}
|
|
|
|
|
|
|
|
\constfunc{const wxColour\&}{GetTextColour}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::GetBackgroundColour}\label{wxgridcellattrgetbackgroundcolour}
|
|
|
|
|
|
|
|
\constfunc{const wxColour\&}{GetBackgroundColour}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::GetFont}\label{wxgridcellattrgetfont}
|
|
|
|
|
|
|
|
\constfunc{const wxFont\&}{GetFont}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::GetAlignment}\label{wxgridcellattrgetalignment}
|
|
|
|
|
|
|
|
\constfunc{void}{GetAlignment}{\param{int* }{hAlign}, \param{int* }{vAlign}}
|
|
|
|
|
2002-02-15 16:50:50 -05:00
|
|
|
\perlnote{This method takes no parameters and
|
|
|
|
returns a 2-element list {\tt ( hAlign, vAlign )}.}
|
2000-07-21 04:30:47 -04:00
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::GetRenderer}\label{wxgridcellattrgetrenderer}
|
|
|
|
|
|
|
|
\constfunc{wxGridCellRenderer*}{GetRenderer}{\param{wxGrid* }{grid}, \param{int }{row}, \param{int }{col}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::GetEditor}\label{wxgridcellattrgeteditor}
|
|
|
|
|
|
|
|
\constfunc{wxGridCellEditor*}{GetEditor}{\param{wxGrid* }{grid}, \param{int }{row}, \param{int }{col}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::IsReadOnly}\label{wxgridcellattrisreadonly}
|
|
|
|
|
|
|
|
\constfunc{bool}{IsReadOnly}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellAttr::SetDefAttr}\label{wxgridcellattrsetdefattr}
|
|
|
|
|
|
|
|
\func{void}{SetDefAttr}{\param{wxGridCellAttr* }{defAttr}}
|
|
|
|
|