2#include "core/tool.hpp"
3#include "tool_settings_rectangle_mode.hpp"
9 using ToolBase::ToolBase;
19 void apply_settings()
override;
21 std::set<InToolActionID> get_actions()
const override
23 using I = InToolActionID;
29 I::POLYGON_CORNER_RADIUS,
30 I::POLYGON_DECORATION_POSITION,
31 I::POLYGON_DECORATION_SIZE,
32 I::POLYGON_DECORATION_STYLE,
38 using Mode = ToolSettingsRectangleMode::Mode;
40 enum class Decoration { NONE, CHAMFER, NOTCH };
42 Decoration decoration = Decoration::NONE;
43 int decoration_pos = 0;
47 uint64_t decoration_size = 1.2_mm;
48 int64_t corner_radius = 0;
52 void update_polygon();
Polygon used in Padstack, Package and Board for specifying filled Regions.
Definition polygon.hpp:25