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 11:48:34 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-19 11:48:34 -0400
commiteaa21c53b96b945d8809dc5f4a9353ecaaacc266 (patch)
treef36d399002934d608945c6a0ab38d40c8bf0662c /src/subway_map.h
parente50107d0339000c48a955caab8b56d0d4fc56e84 (diff)
downloadlingo-ap-tracker-eaa21c53b96b945d8809dc5f4a9353ecaaacc266.tar.gz
lingo-ap-tracker-eaa21c53b96b945d8809dc5f4a9353ecaaacc266.tar.bz2
lingo-ap-tracker-eaa21c53b96b945d8809dc5f4a9353ecaaacc266.zip
Zoom slider
Diffstat (limited to 'src/subway_map.h')
-rw-r--r--src/subway_map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subway_map.h b/src/subway_map.h index 9b0b43f..e891058 100644 --- a/src/subway_map.h +++ b/src/subway_map.h
@@ -32,6 +32,7 @@ class SubwayMap : public wxPanel {
32 void OnMouseScroll(wxMouseEvent &event); 32 void OnMouseScroll(wxMouseEvent &event);
33 void OnMouseLeave(wxMouseEvent &event); 33 void OnMouseLeave(wxMouseEvent &event);
34 void OnTimer(wxTimerEvent &event); 34 void OnTimer(wxTimerEvent &event);
35 void OnZoomSlide(wxCommandEvent &event);
35 36
36 void Redraw(); 37 void Redraw();
37 38
@@ -41,6 +42,7 @@ class SubwayMap : public wxPanel {
41 42
42 void SetZoomPos(wxPoint pos); 43 void SetZoomPos(wxPoint pos);
43 void SetScrollSpeed(int scroll_x, int scroll_y); 44 void SetScrollSpeed(int scroll_x, int scroll_y);
45 void SetZoom(double zoom, wxPoint static_point);
44 46
45 wxImage map_image_; 47 wxImage map_image_;
46 wxImage owl_image_; 48 wxImage owl_image_;
@@ -61,6 +63,8 @@ class SubwayMap : public wxPanel {
61 int scroll_x_ = 0; 63 int scroll_x_ = 0;
62 int scroll_y_ = 0; 64 int scroll_y_ = 0;
63 65
66 wxSlider *zoom_slider_;
67
64 struct GetItemBox { 68 struct GetItemBox {
65 quadtree::Box<float> operator()(const int &id) const; 69 quadtree::Box<float> operator()(const int &id) const;
66 }; 70 };