]> git.localhorst.tv Git - blobs.git/blob - src/ui/TimePanel.hpp
track top ten for each record
[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         void ZIndex(float z) noexcept { panel.ZIndex(z); }
31
32 private:
33         world::Simulation ∼
34         world::Body *body;
35         Label *live;
36         Label *time;
37         Label *clock;
38         Panel panel;
39
40 };
41
42 }
43 }
44
45 #endif