Horizon
imp_interface.hpp
1 #pragma once
2 #include "canvas/triangle.hpp"
3 #include "dialogs/dialogs.hpp"
4 #include "core/tool_data.hpp"
5 
6 namespace horizon {
7 class ImpInterface {
8 public:
9  ImpInterface(class ImpBase *i);
10  Dialogs dialogs;
11  void tool_bar_set_tip(const std::string &s);
12  void tool_bar_set_tool_name(const std::string &s);
13  void tool_bar_flash(const std::string &s);
14  UUID take_part();
15  void part_placed(const UUID &uu);
16  void set_work_layer(int layer);
17  int get_work_layer();
18  void set_no_update(bool v);
19  void canvas_update();
20  class CanvasGL *get_canvas();
21  uint64_t get_grid_spacing();
22  void tool_update_data(std::unique_ptr<ToolData> data);
23 
24  void update_highlights();
25  std::set<ObjectRef> &get_highlights();
26 
27 private:
28  class ImpBase *imp;
29 };
30 } // namespace horizon
Definition: dialogs.hpp:15
Definition: canvas_gl.hpp:13
Definition: imp.hpp:38
Definition: imp_interface.hpp:7
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: block.cpp:9