diff options
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 */ | ||