39 for(
unsigned layerid = 0; layerid < images.
ImagesMaxCount(); ++layerid )
48 Append(
getLayerName( layerid ), bmp, (
void*)(intptr_t) layerid );
59 SetMinSize( wxSize( -1, -1 ) );
60 wxSize bestSize = GetBestSize();
62 bestSize.x = GetBestSize().x +
BM_SIZE + 10;
63 SetMinSize( bestSize );
65 SetSelection( wxNOT_FOUND );
static void DrawColorSwatch(wxBitmap &aLayerbmp, const COLOR4D &aBackground, const COLOR4D &aColor)
GERBER_FILE_IMAGE_LIST is a helper class to handle a list of GERBER_FILE_IMAGE files which are loaded...
unsigned ImagesMaxCount()
static GERBER_FILE_IMAGE_LIST & GetImagesList()
wxString getLayerName(int aLayer) const override
#define GERBER_DRAW_LAYER(x)
COLOR4D GetLayerColor(int aLayer) const
COLOR4D getLayerColor(int aLayer) const override
const wxString GetDisplayName(int aIdx, bool aNameOnly=false, bool aFullName=false)
Get the display name for the layer at aIdx.
bool isLayerEnabled(int aLayer) const override
A color representation with 4 components: red, green, blue, alpha.