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-19 12:24:00 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-19 12:24:00 -0400
commit983f01cb8a2eaecd162e5734de88c461ef197b34 (patch)
tree86f8987f63a1ab5ffa613104dae3d8cd10f3239f /src/subway_map.h
parenteaa21c53b96b945d8809dc5f4a9353ecaaacc266 (diff)
downloadlingo-ap-tracker-983f01cb8a2eaecd162e5734de88c461ef197b34.tar.gz
lingo-ap-tracker-983f01cb8a2eaecd162e5734de88c461ef197b34.tar.bz2
lingo-ap-tracker-983f01cb8a2eaecd162e5734de88c461ef197b34.zip
Zoom in/out menu items with keyboard shortcuts
Diffstat (limited to 'src/subway_map.h')
-rw-r--r--src/subway_map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/subway_map.h b/src/subway_map.h index e891058..986998a 100644 --- a/src/subway_map.h +++ b/src/subway_map.h
@@ -25,6 +25,7 @@ class SubwayMap : public wxPanel {
25 void OnConnect(); 25 void OnConnect();
26 void UpdateIndicators(); 26 void UpdateIndicators();
27 void UpdateSunwarp(SubwaySunwarp from_sunwarp, SubwaySunwarp to_sunwarp); 27 void UpdateSunwarp(SubwaySunwarp from_sunwarp, SubwaySunwarp to_sunwarp);
28 void Zoom(bool in);
28 29
29 private: 30 private:
30 void OnPaint(wxPaintEvent &event); 31 void OnPaint(wxPaintEvent &event);
@@ -65,6 +66,8 @@ class SubwayMap : public wxPanel {
65 66
66 wxSlider *zoom_slider_; 67 wxSlider *zoom_slider_;
67 68
69 std::optional<wxPoint> mouse_position_;
70
68 struct GetItemBox { 71 struct GetItemBox {
69 quadtree::Box<float> operator()(const int &id) const; 72 quadtree::Box<float> operator()(const int &id) const;
70 }; 73 };