KiCad PCB EDA Suite
BitmapGridCellRenderer Class Reference
Inheritance diagram for BitmapGridCellRenderer:

Public Member Functions

 BitmapGridCellRenderer (const char **aBitmapXPM)
 
void Draw (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, const wxRect &aRect, int aRow, int aCol, bool aIsSelected) override
 

Private Attributes

const char ** m_BitmapXPM
 

Detailed Description

Definition at line 159 of file design_inspector.cpp.

Constructor & Destructor Documentation

◆ BitmapGridCellRenderer()

BitmapGridCellRenderer::BitmapGridCellRenderer ( const char **  aBitmapXPM)
inline

Definition at line 163 of file design_inspector.cpp.

164  {
165  m_BitmapXPM = aBitmapXPM;
166  }

References m_BitmapXPM.

Member Function Documentation

◆ Draw()

void BitmapGridCellRenderer::Draw ( wxGrid &  aGrid,
wxGridCellAttr &  aAttr,
wxDC &  aDc,
const wxRect &  aRect,
int  aRow,
int  aCol,
bool  aIsSelected 
)
override

Definition at line 348 of file design_inspector.cpp.

351 {
352  wxGridCellStringRenderer::Draw( aGrid, aAttr, aDc, aRect, aRow, aCol, aIsSelected);
353  wxBitmap bm( m_BitmapXPM );
354  aDc.DrawBitmap( bm,aRect.GetX()+5, aRect.GetY()+2, true);
355 }

References m_BitmapXPM.

Member Data Documentation

◆ m_BitmapXPM

const char** BitmapGridCellRenderer::m_BitmapXPM
private

Definition at line 161 of file design_inspector.cpp.

Referenced by BitmapGridCellRenderer(), and Draw().


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