Horizon
symbol_preview_window.hpp
1 #pragma once
2 #include "util/placement.hpp"
3 #include "util/uuid.hpp"
4 #include "util/changeable.hpp"
5 #include <gtkmm.h>
6 
7 namespace horizon {
8 class SymbolPreviewWindow : public Gtk::Window, public Changeable {
9 public:
10  SymbolPreviewWindow(Gtk::Window *parent);
11  void update(const class Symbol &sym);
12  std::map<std::tuple<int, bool, UUID>, Placement> get_text_placements() const;
13  void set_text_placements(const std::map<std::tuple<int, bool, UUID>, Placement> &p);
14 
15 private:
16  std::map<std::pair<int, bool>, class SymbolPreviewBox *> previews;
17 };
18 } // namespace horizon
Definition: changeable.hpp:5
Definition: preview_box.hpp:8
Definition: placement.hpp:8
Definition: symbol.hpp:70
Definition: block.cpp:7
Definition: symbol_preview_window.hpp:8