]> git.localhorst.tv Git - blobs.git/blob - src/ui/TimePanel.hpp
track a few things
[blobs.git] / src / ui / TimePanel.hpp
1 #ifndef BLOBS_UI_TIMEPANEL_HPP_
2 #define BLOBS_UI_TIMEPANEL_HPP_
3
4 #include "Panel.hpp"
5
6
7 namespace blobs {
8 namespace graphics {
9         class Viewport;
10 }
11 namespace world {
12         class Body;
13         class Simulation;
14 }
15 namespace ui {
16
17 class Label;
18
19 class TimePanel {
20
21 public:
22         explicit TimePanel(world::Simulation &);
23         ~TimePanel();
24
25 public:
26         void SetBody(world::Body &b) noexcept { body = &b; }
27         void UnsetBody() noexcept { body = nullptr; }
28         void Draw(graphics::Viewport &) noexcept;
29
30 private:
31         world::Simulation ∼
32         world::Body *body;
33         Label *time;
34         Label *clock;
35         Panel panel;
36
37 };
38
39 }
40 }
41
42 #endif