Feature propsal: Improve SWIG bindings for BOARD_DESIGN_SETTINGS
Description
The BOARD_DESIGN_SETTINGS
structure has many public members. All of them are exported to SWIG; however, many of them lack proper binding types. That is - we can, e.g., access the member m_DRCSeverities
, but we cannot read it nor modify it. For reading, we have a method GetSeverity
; however, for setting the entire KiCAD code base accesses m_DRCSeverities
directly, which we cannot do from plugins. The same goes for m_DrcExclusions
or micro via settings.
Since the new stable API won't be with us for at least another year, could you consider adding the corresponding types to the SWIG bindings? That would allow plugins to read & manage board settings.
Steps to reproduce
There are no steps to reproduce.
KiCad Version
Application: KiCad PCB Editor
Version: 6.99.0-unknown-1be8adebf5~154~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
FreeType 2.10.1
HarfBuzz 2.6.4
FontConfig 2.13.1
Platform: Linux 5.15.0-46-generic x86_64, 64 bit, Little endian, wxGTK, regolith, x11
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.68.0
ngspice: 37
Compiler: GCC 9.4.0 with C++ ABI 1013
Build settings:
KICAD_SPICE=ON