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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tracker_panel.h b/src/tracker_panel.h index 06ec7a0..6825843 100644 --- a/src/tracker_panel.h +++ b/src/tracker_panel.h
@@ -7,13 +7,17 @@
7#include <wx/wx.h> 7#include <wx/wx.h>
8#endif 8#endif
9 9
10#include <optional>
11#include <set>
12#include <string>
13
10class AreaPopup; 14class AreaPopup;
11 15
12class TrackerPanel : public wxPanel { 16class TrackerPanel : public wxPanel {
13 public: 17 public:
14 TrackerPanel(wxWindow *parent); 18 TrackerPanel(wxWindow *parent);
15 19
16 void UpdateIndicators(); 20 void UpdateIndicators(bool reset);
17 21
18 private: 22 private:
19 struct AreaIndicator { 23 struct AreaIndicator {
@@ -29,10 +33,12 @@ class TrackerPanel : public wxPanel {
29 void OnPaint(wxPaintEvent &event); 33 void OnPaint(wxPaintEvent &event);
30 void OnMouseMove(wxMouseEvent &event); 34 void OnMouseMove(wxMouseEvent &event);
31 35
36 void Resize();
32 void Redraw(); 37 void Redraw();
33 38
34 wxImage map_image_; 39 wxImage map_image_;
35 wxImage player_image_; 40 wxImage player_image_;
41 wxBitmap scaled_map_;
36 wxBitmap rendered_; 42 wxBitmap rendered_;
37 wxBitmap scaled_player_; 43 wxBitmap scaled_player_;
38 44
@@ -40,6 +46,7 @@ class TrackerPanel : public wxPanel {
40 int offset_y_ = 0; 46 int offset_y_ = 0;
41 double scale_x_ = 0; 47 double scale_x_ = 0;
42 double scale_y_ = 0; 48 double scale_y_ = 0;
49 int real_area_size_ = 0;
43 50
44 std::vector<AreaIndicator> areas_; 51 std::vector<AreaIndicator> areas_;
45}; 52};