about summary refs log tree commit diff stats
path: root/src/subway_map.h
blob: dc67867847a81f4cba1145bf1c2ba5eb39d95c3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SUBWAY_MAP_H_BD2D843E
#define SUBWAY_MAP_H_BD2D843E

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include <vector>

class SubwayMap : public wxPanel {
 public:
  SubwayMap(wxWindow *parent);

  void UpdateIndicators();

 private:
  void OnPaint(wxPaintEvent &event);
  void OnMouseMove(wxMouseEvent &event);

  void Redraw();
  void Resize();

  wxImage map_image_;
  wxBitmap rendered_;
  wxBitmap resized_;
  int render_x_ = 0;
  int render_y_ = 0;
  int render_width_ = 0;
  int render_height_ = 0;
  
};

#endif /* end of include guard: SUBWAY_MAP_H_BD2D843E */