diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-12 17:48:02 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-12 17:48:02 -0400 |
commit | ea16cff14ff4faf5782da8ff684a6ec412b7b6ac (patch) | |
tree | a5f09508f2f6c5e969a993de67181d5e94878924 /src/subway_map.h | |
parent | 8edd1bfd4ed2a42c28830f6c6575684aa3461b77 (diff) | |
download | lingo-ap-tracker-ea16cff14ff4faf5782da8ff684a6ec412b7b6ac.tar.gz lingo-ap-tracker-ea16cff14ff4faf5782da8ff684a6ec412b7b6ac.tar.bz2 lingo-ap-tracker-ea16cff14ff4faf5782da8ff684a6ec412b7b6ac.zip |
Started making subway map
Diffstat (limited to 'src/subway_map.h')
-rw-r--r-- | src/subway_map.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/subway_map.h b/src/subway_map.h new file mode 100644 index 0000000..dc67867 --- /dev/null +++ b/src/subway_map.h | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef SUBWAY_MAP_H_BD2D843E | ||
2 | #define SUBWAY_MAP_H_BD2D843E | ||
3 | |||
4 | #include <wx/wxprec.h> | ||
5 | |||
6 | #ifndef WX_PRECOMP | ||
7 | #include <wx/wx.h> | ||
8 | #endif | ||
9 | |||
10 | #include <vector> | ||
11 | |||
12 | class SubwayMap : public wxPanel { | ||
13 | public: | ||
14 | SubwayMap(wxWindow *parent); | ||
15 | |||
16 | void UpdateIndicators(); | ||
17 | |||
18 | private: | ||
19 | void OnPaint(wxPaintEvent &event); | ||
20 | void OnMouseMove(wxMouseEvent &event); | ||
21 | |||
22 | void Redraw(); | ||
23 | void Resize(); | ||
24 | |||
25 | wxImage map_image_; | ||
26 | wxBitmap rendered_; | ||
27 | wxBitmap resized_; | ||
28 | int render_x_ = 0; | ||
29 | int render_y_ = 0; | ||
30 | int render_width_ = 0; | ||
31 | int render_height_ = 0; | ||
32 | |||
33 | }; | ||
34 | |||
35 | #endif /* end of include guard: SUBWAY_MAP_H_BD2D843E */ | ||