wxGridCellAttrThis 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(). Derived from No base class Include files <wx/grid.h> Members
wxGridCellAttr::wxGridCellAttr
wxGridCellAttr::wxGridCellAttrwxGridCellAttr() Default constructor. wxGridCellAttr(const wxColour& colText, const wxColour& colBack, const wxFont& font, int hAlign, int vAlign) Constructor specifying some of the often used attributes.
wxGridCellAttr::ClonewxGridCellAttr* Clone() const Creates a new copy of this object.
wxGridCellAttr::IncRefvoid 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
wxGridCellAttr::DecRefvoid DecRef()
wxGridCellAttr::SetTextColourvoid SetTextColour(const wxColour& colText) Sets the text colour.
wxGridCellAttr::SetBackgroundColourvoid SetBackgroundColour(const wxColour& colBack) Sets the background colour.
wxGridCellAttr::SetFontvoid SetFont(const wxFont& font) Sets the font.
wxGridCellAttr::SetAlignmentvoid SetAlignment(int hAlign, int vAlign) Sets the alignment. hAlign can be one of wxALIGN_LEFT, wxALIGN_CENTRE or wxALIGN_RIGHT and vAlign can be one of wxALIGN_TOP, wxALIGN_CENTRE or wxALIGN_BOTTOM.
wxGridCellAttr::SetReadOnlyvoid SetReadOnly(bool isReadOnly = true)
wxGridCellAttr::SetRenderervoid SetRenderer(wxGridCellRenderer* renderer) takes ownership of the pointer
wxGridCellAttr::SetEditorvoid SetEditor(wxGridCellEditor* editor)
wxGridCellAttr::HasTextColourbool HasTextColour() const accessors
wxGridCellAttr::HasBackgroundColourbool HasBackgroundColour() const
wxGridCellAttr::HasFontbool HasFont() const
wxGridCellAttr::HasAlignmentbool HasAlignment() const
wxGridCellAttr::HasRendererbool HasRenderer() const
wxGridCellAttr::HasEditorbool HasEditor() const
wxGridCellAttr::GetTextColourconst wxColour& GetTextColour() const
wxGridCellAttr::GetBackgroundColourconst wxColour& GetBackgroundColour() const
wxGridCellAttr::GetFontconst wxFont& GetFont() const
wxGridCellAttr::GetAlignmentvoid GetAlignment(int* hAlign, int* vAlign) const wxPerl note: This method takes no parameters and returns a 2-element list ( hAlign, vAlign ). See SetAlignment for the returned values.
wxGridCellAttr::GetRendererwxGridCellRenderer* GetRenderer(wxGrid* grid, int row, int col) const
wxGridCellAttr::GetEditorwxGridCellEditor* GetEditor(wxGrid* grid, int row, int col) const
wxGridCellAttr::IsReadOnlybool IsReadOnly() const
wxGridCellAttr::SetDefAttrvoid SetDefAttr(wxGridCellAttr* defAttr)
|