about summary refs log tree commit diff stats
path: root/src/subway_map.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-12 17:48:02 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-12 17:48:02 -0400
commitea16cff14ff4faf5782da8ff684a6ec412b7b6ac (patch)
treea5f09508f2f6c5e969a993de67181d5e94878924 /src/subway_map.h
parent8edd1bfd4ed2a42c28830f6c6575684aa3461b77 (diff)
downloadlingo-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.h35
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
12class 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 */