44 for(
unsigned layerid = 0; layerid < images.
ImagesMaxCount(); ++layerid )
54 wxVector<wxBitmap> bitmaps;
62 bmp.SetScaleFactor(
scale );
63 bitmaps.push_back( bmp );
66 Append(
getLayerName( layerid ), wxBitmapBundle::FromBitmaps( bitmaps ),
67 (
void*) (intptr_t) layerid );
80 SetMinSize( wxSize( -1, -1 ) );
81 wxSize bestSize = GetBestSize();
83 bestSize.x = GetBestSize().x + size + 10;
84 SetMinSize( bestSize );
86 SetSelection( wxNOT_FOUND );
COLOR4D getLayerColor(int aLayer) const override
bool isLayerEnabled(int aLayer) const override
wxString getLayerName(int aLayer) const override
GERBER_FILE_IMAGE_LIST is a helper class to handle a list of GERBER_FILE_IMAGE files which are loaded...
static GERBER_FILE_IMAGE_LIST & GetImagesList()
const wxString GetDisplayName(int aIdx, bool aNameOnly=false, bool aFullName=false)
Get the display name for the layer at aIdx.
unsigned ImagesMaxCount()
GERBER_FILE_IMAGE * GetGbrImage(int aIdx)
COLOR4D GetLayerColor(int aLayer) const
A color representation with 4 components: red, green, blue, alpha.
static void DrawColorSwatch(wxBitmap &aLayerbmp, const COLOR4D &aBackground, const COLOR4D &aColor)
@ LAYER_PCB_BACKGROUND
PCB background color.
#define GERBER_DRAW_LAYER(x)