BOARD_ITEM* newItem = new BOARD_ITEM(); newItem->SetPosition(0, 0); newItem->SetSize(10, 10);
BOARD_ITEM* myItem = // get a pointer to an item myItem->SetPosition(5, 5); myItem->SetSize(20, 20); myItem->SetAttribute(BOARD_ITEM::HIDDEN);This code modifies the position, size, and attribute of an existing item. These examples appear to be using the KiCAD PCB design software C++ library, given the use of the BOARD_ITEM class and method names.