This class can be used to alter the cells' appearance in the grid by changing their attributes from the defaults. An object of this class may be returned by
Note that objects of this class are reference-counted and it's recommended to use wxGridCellAttrPtr smart pointer class when working with them to avoid memory leaks.
wxWidgets docs:
Sets the text colour.
Sets the background colour.
Sets the font.
Sets the alignment.
Sets the cell as read-only.
Sets the renderer to be used for cells with this attribute.
Takes ownership of the pointer.
Sets the editor to be used with the cells with this attribute.
Returns true if this attribute has a valid text colour set.
Returns true if this attribute has a valid background colour set.
Returns true if this attribute has a valid font set.
Returns true if this attribute has a valid alignment set.
Returns true if this attribute has a valid cell renderer set.
Returns true if this attribute has a valid cell editor set.
Returns the text colour.
Returns the background colour.
Returns the font.
Get the alignment to use for the cell with the given attribute.
If this attribute doesn't specify any alignment, the default attribute alignment is used (which can be changed using
Notice that
Returns the cell renderer.
The caller is responsible for calling
Returns the cell editor.
The caller is responsible for calling
Returns true if this cell is set as read-only.