21#include <magic_enum.hpp> 
   22#include <wx/translation.h> 
   89    case LAYER_NOTES:                   
return _( 
"Schematic text && graphics" );
 
 
  203            if( fliplayer < 
F_Cu )
 
  206            if( fliplayer > 
B_Cu )
 
 
  223    case 31: 
return B_Cu;
 
  227            return magic_enum::enum_cast<PCB_LAYER_ID>( aLegacyId ).value_or( 
UNDEFINED_LAYER );
 
  250        case 48: 
return B_Fab;
 
  251        case 49: 
return F_Fab;
 
 
PCB_LAYER_ID Map3DLayerToPCBLayer(int aLayer)
 
int MapPCBLayerTo3DLayer(PCB_LAYER_ID aLayer)
 
PCB_LAYER_ID BoardLayerFromLegacyId(int aLegacyId)
Retrieve a layer ID from an integer converted from a legacy (pre-V9) enum value.
 
PCB_LAYER_ID FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount)
 
wxString LayerName(int aLayer)
Returns the default display name for a given layer.
 
@ NETNAMES_LAYER_ID_START
 
@ LAYER_3D_SOLDERMASK_TOP
 
@ LAYER_3D_SOLDERMASK_BOTTOM
 
@ LAYER_3D_SILKSCREEN_TOP
 
@ LAYER_3D_SILKSCREEN_BOTTOM
 
bool IsCopperLayer(int aLayerId)
Test whether a layer is a copper layer.
 
@ LAYER_POINTS
PCB reference/manual snap points visibility.
 
@ LAYER_PAGE_LIMITS
Color for drawing the page extents (visibility stored in PCBNEW_SETTINGS::m_ShowPageLimits)
 
@ LAYER_LOCKED_ITEM_SHADOW
Shadow layer for locked items.
 
@ LAYER_CONFLICTS_SHADOW
Shadow layer for items flagged conflicting.
 
@ LAYER_FOOTPRINTS_FR
Show footprints on front.
 
@ LAYER_NON_PLATEDHOLES
Draw usual through hole vias.
 
@ LAYER_DRAWINGSHEET
Sheet frame and title block.
 
@ LAYER_FP_REFERENCES
Show footprints references (when texts are visible).
 
@ LAYER_BOARD_OUTLINE_AREA
PCB board outline.
 
@ LAYER_DRC_EXCLUSION
Layer for DRC markers which have been individually excluded.
 
@ LAYER_PCB_BACKGROUND
PCB background color.
 
@ LAYER_DRC_SHAPES
Custom shapes for DRC markers.
 
@ LAYER_DRC_WARNING
Layer for DRC markers with #SEVERITY_WARNING.
 
@ LAYER_PAD_PLATEDHOLES
to draw pad holes (plated)
 
@ LAYER_CURSOR
PCB cursor.
 
@ LAYER_AUX_ITEMS
Auxiliary items (guides, rule, etc).
 
@ LAYER_FOOTPRINTS_BK
Show footprints on back.
 
@ LAYER_ANCHOR
Anchor of items having an anchor point (texts, footprints).
 
@ LAYER_VIA_BURIED
Draw blind vias.
 
@ LAYER_MARKER_SHADOWS
Shadows for DRC markers.
 
@ LAYER_VIA_HOLES
Draw via holes (pad holes do not use this layer).
 
@ LAYER_VIA_BLIND
Draw micro vias.
 
@ LAYER_FP_VALUES
Show footprints values (when texts are visible).
 
@ LAYER_SELECT_OVERLAY
Selected items overlay.
 
@ LAYER_VIA_THROUGH
Draw buried vias.
 
@ LAYER_DRC_ERROR
Layer for DRC markers with #SEVERITY_ERROR.
 
@ LAYER_SHAPES_BACKGROUND
 
@ LAYER_EXCLUDED_FROM_SIM
 
@ LAYER_NET_COLOR_HIGHLIGHT
 
@ LAYER_DEVICE_BACKGROUND
 
@ LAYER_SCHEMATIC_DRAWINGSHEET
 
@ LAYER_SCHEMATIC_GRID_AXES
 
@ LAYER_SCHEMATIC_PAGE_LIMITS
 
@ LAYER_DRAG_NET_COLLISION
 
@ LAYER_SELECTION_SHADOWS
 
@ LAYER_SCHEMATIC_BACKGROUND
 
@ LAYER_SCHEMATIC_AUX_ITEMS
 
PCB_LAYER_ID
A quick note on layer IDs: