37 int left = aSheet.GetPosition().x;
38 int right = aSheet.GetPosition().x + aSheet.GetSize().x;
39 int top = aSheet.GetPosition().y;
40 int bot = aSheet.GetPosition().y + aSheet.GetSize().y;
42 bool onVertical = ( aPos.x ==
left || aPos.x ==
right ) && aPos.y >=
top && aPos.y <= bot;
43 bool onHorizontal = ( aPos.y ==
top || aPos.y == bot ) && aPos.x >=
left && aPos.x <=
right;
45 return onVertical || onHorizontal;
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
void SetSize(const VECTOR2I &aSize)
void AddPin(SCH_SHEET_PIN *aSheetPin)
Add aSheetPin to the sheet.
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(CalcEditClampsToBorder)
static bool onSheetBorder(const VECTOR2I &aPos, const SCH_SHEET &aSheet)
KIBIS top(path, &reporter)
VECTOR2< int32_t > VECTOR2I