.\" This is a wxWidgets manpage page generated from the XML docs .TH wxGridCellAttr 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxGridCellAttr \- .SH DESCRIPTION This class can be used to alter the cells' appearance in the grid by changing their colour/font/... from default. An object of this class may be returned by wxGridTable::GetAttr(). .SH "PARENTS" .SH "INCLUDE FILES" wx/grid.h .SH MEMBERS .SS wxGridCellAttr () Default constructor. .SS wxGridCellAttr (const wxColour& colTextconst wxColour& colBackconst wxFont& fontint hAlignint vAlign) VZ: considering the number of members wxGridCellAttr has now, this ctor seems to be pretty useless... may be we should just remove it? .SS wxGridCellAttr* Clone () Creates a new copy of this object. .SS void IncRef () This class is ref counted: it is created with ref count of 1, so calling DecRef() once will delete it. Calling IncRef() allows to lock it until the matching DecRef() is called .SS void DecRef () .SS void SetTextColour (const wxColour& colText) Sets the text colour. .SS void SetBackgroundColour (const wxColour& colBack) Sets the background colour. .SS void SetFont (const wxFont& font) Sets the font. .SS void SetAlignment (int hAlignint vAlign) Sets the alignment. .SS void SetReadOnly (bool isReadOnly = true) .SS void SetRenderer (wxGridCellRenderer* renderer) takes ownership of the pointer .SS void SetEditor (wxGridCellEditor* editor) .SS bool HasTextColour () accessors .SS bool HasBackgroundColour () .SS bool HasFont () .SS bool HasAlignment () .SS bool HasRenderer () .SS bool HasEditor () .SS const wxColour& GetTextColour () .SS const wxColour& GetBackgroundColour () .SS const wxFont& GetFont () .SS void GetAlignment (int* hAlignint* vAlign) .SS wxGridCellRenderer* GetRenderer (wxGrid* gridint rowint col) .SS wxGridCellEditor* GetEditor (wxGrid* gridint rowint col) .SS bool IsReadOnly () .SS void SetDefAttr (wxGridCellAttr* defAttr) .SH "SEE ALSO" .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.