KiCad PCB EDA Suite
Loading...
Searching...
No Matches
WX_GRID_ALT_ROW_COLOR_PROVIDER Class Reference

Attribute provider that provides attributes (or modifies the existing attribute) to alternate a row color between the odd and even rows. More...

Inheritance diagram for WX_GRID_ALT_ROW_COLOR_PROVIDER:

Public Member Functions

 WX_GRID_ALT_ROW_COLOR_PROVIDER (const wxColor &aBaseColor)
 
void UpdateColors (const wxColor &aBaseColor)
 
wxGridCellAttr * GetAttr (int row, int col, wxGridCellAttr::wxAttrKind kind) const override
 

Private Attributes

wxGridCellAttrPtr m_attrEven
 

Detailed Description

Attribute provider that provides attributes (or modifies the existing attribute) to alternate a row color between the odd and even rows.

Definition at line 156 of file wx_grid.cpp.

Constructor & Destructor Documentation

◆ WX_GRID_ALT_ROW_COLOR_PROVIDER()

WX_GRID_ALT_ROW_COLOR_PROVIDER::WX_GRID_ALT_ROW_COLOR_PROVIDER ( const wxColor &  aBaseColor)
inline

Definition at line 159 of file wx_grid.cpp.

References UpdateColors().

Member Function Documentation

◆ GetAttr()

wxGridCellAttr * WX_GRID_ALT_ROW_COLOR_PROVIDER::GetAttr ( int  row,
int  col,
wxGridCellAttr::wxAttrKind  kind 
) const
inlineoverride

Definition at line 175 of file wx_grid.cpp.

References m_attrEven.

◆ UpdateColors()

void WX_GRID_ALT_ROW_COLOR_PROVIDER::UpdateColors ( const wxColor &  aBaseColor)
inline

Definition at line 166 of file wx_grid.cpp.

References KIPLATFORM::UI::IsDarkTheme(), and m_attrEven.

Referenced by WX_GRID_ALT_ROW_COLOR_PROVIDER().

Member Data Documentation

◆ m_attrEven

wxGridCellAttrPtr WX_GRID_ALT_ROW_COLOR_PROVIDER::m_attrEven
private

Definition at line 201 of file wx_grid.cpp.

Referenced by GetAttr(), and UpdateColors().


The documentation for this class was generated from the following file: