51 LAYER_NUM value = aGrid.GetTable()->GetValueAsLong( aRow, aCol );
57 wxGridCellRenderer::Draw( aGrid, aAttr, aDC, aRect, aRow, aCol, isSelected );
60 wxBitmap bitmap( 14, 14 );
65 aDC.DrawBitmap( bitmap, rect.GetLeft() + 4, rect.GetTop() + 3, true );
69 rect.SetLeft( rect.GetLeft() + bitmap.GetWidth() + 8 );
70 SetTextColoursAndFont( aGrid, aAttr, aDC, isSelected );
71 aGrid.DrawTextRectangle( aDC, text, rect, wxALIGN_LEFT, wxALIGN_CENTRE );
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
virtual COLOR_SETTINGS * GetColorSettings() const override
Helper to retrieve the current color settings.
int LAYER_NUM
This can be replaced with int and removed.
static void DrawColorSwatch(wxBitmap &aLayerbmp, COLOR4D aBackground, COLOR4D aColor)
COLOR4D GetColor(int aLayer) const
Color settings are a bit different than most of the settings objects in that there can be more than o...
PCB_LAYER_ID ToLAYER_ID(int aLayer)