2 #include "core/tool.hpp"
8 using ToolBase::ToolBase;
15 json serialize()
const override;
16 void load_from_json(
const json &j)
override;
17 enum class Mode { CENTER, CORNER };
18 Mode mode = Mode::CENTER;
26 void apply_settings()
override;
28 std::set<InToolActionID> get_actions()
const override
30 using I = InToolActionID;
36 I::POLYGON_CORNER_RADIUS,
37 I::POLYGON_DECORATION_POSITION,
38 I::POLYGON_DECORATION_SIZE,
39 I::POLYGON_DECORATION_STYLE,
44 ToolSettings *get_settings()
override
52 enum class Decoration { NONE, CHAMFER, NOTCH };
54 Decoration decoration = Decoration::NONE;
55 int decoration_pos = 0;
62 class Polygon *temp =
nullptr;
64 void update_polygon();
a class to store JSON values
Definition: json.hpp:166
zip_uint64_t uint64_t
zip_uint64_t_t typedef.
Definition: zip.hpp:108
zip_int64_t int64_t
zip_int64_t typedef.
Definition: zip.hpp:103