diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-05 15:46:58 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-05 15:46:58 -0400 |
commit | 149e7c0836927e14a926a952bd1a7f0d1b49e779 (patch) | |
tree | 2c7ac89387eb890d3d345217b79929e9a23f4ecf /tracker_panel.h | |
parent | 0dace7831673170bd31eefa6bbe6e705211d3061 (diff) | |
download | lingo-ap-tracker-149e7c0836927e14a926a952bd1a7f0d1b49e779.tar.gz lingo-ap-tracker-149e7c0836927e14a926a952bd1a7f0d1b49e779.tar.bz2 lingo-ap-tracker-149e7c0836927e14a926a952bd1a7f0d1b49e779.zip |
Organised repo
Diffstat (limited to 'tracker_panel.h')
-rw-r--r-- | tracker_panel.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/tracker_panel.h b/tracker_panel.h deleted file mode 100644 index a871f90..0000000 --- a/tracker_panel.h +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
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 | |||
10 | class AreaPopup; | ||
11 | |||
12 | class 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 */ | ||