| 
    KiCad PCB EDA Suite
    
   | 
 
#include <grid_icon_text_helpers.h>
Public Member Functions | |
| GRID_CELL_ICON_TEXT_RENDERER (const std::vector< BITMAPS > &icons, const wxArrayString &names) | |
| Construct a renderer that maps a list of icons from the bitmap system to a list of strings.   | |
| GRID_CELL_ICON_TEXT_RENDERER (const wxBitmapBundle &aIcon, wxSize aPreferredIconSize=wxDefaultSize) | |
| Construct a renderer that renders a single icon next to the cell's value text.   | |
| 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< BITMAPS > | m_icons | 
| wxArrayString | m_names | 
| wxBitmapBundle | m_icon | 
| wxSize | m_iconSize | 
Definition at line 39 of file grid_icon_text_helpers.h.
| GRID_CELL_ICON_TEXT_RENDERER::GRID_CELL_ICON_TEXT_RENDERER | ( | const std::vector< BITMAPS > & | icons, | 
| const wxArrayString & | names ) | 
Construct a renderer that maps a list of icons from the bitmap system to a list of strings.
| icons | is a list of possible icons to render | 
| names | is a list of names to render - must be the same length as icons | 
Definition at line 35 of file grid_icon_text_helpers.cpp.
| GRID_CELL_ICON_TEXT_RENDERER::GRID_CELL_ICON_TEXT_RENDERER | ( | const wxBitmapBundle & | aIcon, | 
| wxSize | aPreferredIconSize = wxDefaultSize ) | 
Construct a renderer that renders a single icon next to the cell's value text.
| aIcon | is the icon to render next to the cell's value | 
Definition at line 43 of file grid_icon_text_helpers.cpp.
References m_icon, and m_iconSize.
      
  | 
  override | 
Definition at line 51 of file grid_icon_text_helpers.cpp.
References KIPLATFORM::UI::GetPixelScaleFactor(), KiBitmapBundle(), m_icon, m_icons, m_iconSize, m_names, and scale.
      
  | 
  override | 
Definition at line 125 of file grid_icon_text_helpers.cpp.
References grid, KiBitmapBundle(), m_icon, m_icons, m_iconSize, and text.
      
  | 
  private | 
Definition at line 66 of file grid_icon_text_helpers.h.
Referenced by Draw(), GetBestSize(), and GRID_CELL_ICON_TEXT_RENDERER().
      
  | 
  private | 
Definition at line 62 of file grid_icon_text_helpers.h.
Referenced by Draw(), GetBestSize(), and GRID_CELL_ICON_TEXT_RENDERER().
      
  | 
  private | 
Definition at line 67 of file grid_icon_text_helpers.h.
Referenced by Draw(), GetBestSize(), and GRID_CELL_ICON_TEXT_RENDERER().
      
  | 
  private | 
Definition at line 63 of file grid_icon_text_helpers.h.
Referenced by Draw(), and GRID_CELL_ICON_TEXT_RENDERER().