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_attrOdd
 

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 123 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 126 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 142 of file wx_grid.cpp.

References m_attrOdd.

◆ UpdateColors()

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

Definition at line 133 of file wx_grid.cpp.

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

Referenced by WX_GRID_ALT_ROW_COLOR_PROVIDER().

Member Data Documentation

◆ m_attrOdd

wxGridCellAttrPtr WX_GRID_ALT_ROW_COLOR_PROVIDER::m_attrOdd
private

Definition at line 168 of file wx_grid.cpp.

Referenced by GetAttr(), and UpdateColors().


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