about summary refs log tree commit diff stats
path: root/src/tracker_panel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracker_panel.h')
-rw-r--r--src/tracker_panel.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/tracker_panel.h b/src/tracker_panel.h new file mode 100644 index 0000000..a871f90 --- /dev/null +++ b/src/tracker_panel.h
@@ -0,0 +1,39 @@
1#ifndef TRACKER_PANEL_H_D675A54D
2#define TRACKER_PANEL_H_D675A54D
3
4#include <wx/wxprec.h>
5
6#ifndef WX_PRECOMP
7#include <wx/wx.h>
8#endif
9
10class AreaPopup;
11
12class TrackerPanel : public wxPanel {
13 public:
14 TrackerPanel(wxWindow *parent);
15
16 void UpdateIndicators();
17
18 private:
19 struct AreaIndicator {
20 int area_id = -1;
21 AreaPopup *popup = nullptr;
22 int real_x1 = 0;
23 int real_y1 = 0;
24 int real_x2 = 0;
25 int real_y2 = 0;
26 };
27
28 void OnPaint(wxPaintEvent &event);
29 void OnMouseMove(wxMouseEvent &event);
30
31 void Redraw();
32
33 wxImage map_image_;
34 wxBitmap rendered_;
35
36 std::vector<AreaIndicator> areas_;
37};
38
39#endif /* end of include guard: TRACKER_PANEL_H_D675A54D */