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

#include <grid_icon_text_helpers.h>

Inheritance diagram for GRID_CELL_ICON_TEXT_RENDERER:

Public Member Functions

 GRID_CELL_ICON_TEXT_RENDERER (const std::vector< BITMAPS > &icons, const wxArrayString &names)
 
void Draw (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
 
wxSize GetBestSize (wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
 

Private Attributes

std::vector< BITMAPSm_icons
 
wxArrayString m_names
 

Detailed Description

Definition at line 39 of file grid_icon_text_helpers.h.

Constructor & Destructor Documentation

◆ GRID_CELL_ICON_TEXT_RENDERER()

GRID_CELL_ICON_TEXT_RENDERER::GRID_CELL_ICON_TEXT_RENDERER ( const std::vector< BITMAPS > &  icons,
const wxArrayString &  names 
)

Definition at line 34 of file grid_icon_text_helpers.cpp.

Member Function Documentation

◆ Draw()

void GRID_CELL_ICON_TEXT_RENDERER::Draw ( wxGrid &  aGrid,
wxGridCellAttr &  aAttr,
wxDC &  aDC,
const wxRect &  aRect,
int  aRow,
int  aCol,
bool  isSelected 
)
override

Definition at line 42 of file grid_icon_text_helpers.cpp.

References KiBitmapBundle(), m_icons, and m_names.

◆ GetBestSize()

wxSize GRID_CELL_ICON_TEXT_RENDERER::GetBestSize ( wxGrid &  grid,
wxGridCellAttr &  attr,
wxDC &  dc,
int  row,
int  col 
)
override

Definition at line 93 of file grid_icon_text_helpers.cpp.

References grid, KiBitmapBundle(), m_icons, and text.

Member Data Documentation

◆ m_icons

std::vector<BITMAPS> GRID_CELL_ICON_TEXT_RENDERER::m_icons
private

Definition at line 49 of file grid_icon_text_helpers.h.

Referenced by Draw(), and GetBestSize().

◆ m_names

wxArrayString GRID_CELL_ICON_TEXT_RENDERER::m_names
private

Definition at line 50 of file grid_icon_text_helpers.h.

Referenced by Draw().


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