49 for(
unsigned layerid = 0; layerid < images.
ImagesMaxCount(); ++layerid )
59 wxBitmap bmp( size, size );
62 Append(
getLayerName( layerid ), bmp, (
void*)(intptr_t) layerid );
75 SetMinSize( wxSize( -1, -1 ) );
76 wxSize bestSize = GetBestSize();
78 bestSize.x = GetBestSize().x + size + 10;
79 SetMinSize( bestSize );
81 SetSelection( wxNOT_FOUND );
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
double GetContentScaleFactor() const override
Get the content scale factor, which may be different from the scale factor on some platforms.
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)