43 auto footprint = std::make_unique<FOOTPRINT>( &board );
55 footprint->Add(
pad );
56 board.
Add( footprint.release() );
constexpr EDA_IU_SCALE pcbIUScale
@ NORMAL
Inactive layers are shown normally (no high-contrast mode)
@ DIMMED
Inactive layers are dimmed (old high-contrast mode)
Information pertinent to a Pcbnew printed circuit board.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
void SetBoardUse(BOARD_USE aUse)
Set what the board is going to be used for.
bool BuildConnectivity(PROGRESS_REPORTER *aReporter=nullptr)
Build or rebuild the board connectivity database for the board, especially the list of connected item...
static LSET AllCuMask(int aCuLayerCount)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
Handle the data for a net.
static constexpr PCB_LAYER_ID ALL_LAYERS
! Temporary layer identifier to identify code that is not padstack-aware
static int activeLayerUpdateFlags(const BOARD_ITEM *aItem, PCB_LAYER_ID aOldLayer, PCB_LAYER_ID aNewLayer, HIGH_CONTRAST_MODE aContrastMode)
View update flags an item needs when the active layer changes. Static for testing.
@ RECTANGLE
Use RECTANGLE instead of RECT to avoid collision in a Windows header.
@ NONE
No updates are required.
@ ALL
All except INITIAL_ADD.
@ PTH
Plated through hole pad.
@ REMOVE_EXCEPT_START_AND_END
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
BOOST_CHECK_EQUAL(result, "25.4")
VECTOR2< int32_t > VECTOR2I