summary refs log tree commit diff stats
path: root/tools/mapedit/src/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/widget.h')
-rw-r--r--tools/mapedit/src/widget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/mapedit/src/widget.h b/tools/mapedit/src/widget.h index f66b0b2..c8bfb57 100644 --- a/tools/mapedit/src/widget.h +++ b/tools/mapedit/src/widget.h
@@ -25,6 +25,7 @@ class MapeditWidget : public wxScrolledWindow {
25 void OnClick(wxMouseEvent& event); 25 void OnClick(wxMouseEvent& event);
26 void OnMouseMove(wxMouseEvent& event); 26 void OnMouseMove(wxMouseEvent& event);
27 void OnMouseUp(wxMouseEvent& event); 27 void OnMouseUp(wxMouseEvent& event);
28 void OnMouseOut(wxMouseEvent& event);
28 29
29 private: 30 private:
30 void SetTile(wxPoint pos); 31 void SetTile(wxPoint pos);
@@ -35,6 +36,8 @@ class MapeditWidget : public wxScrolledWindow {
35 TileWidget* tileWidget; 36 TileWidget* tileWidget;
36 bool mouseIsDown = false; 37 bool mouseIsDown = false;
37 int scale; 38 int scale;
39 wxPoint mousePos;
40 bool mouseIsIn = false;
38 41
39 DECLARE_DYNAMIC_CLASS(MapeditWidget); 42 DECLARE_DYNAMIC_CLASS(MapeditWidget);
40 DECLARE_EVENT_TABLE(); 43 DECLARE_EVENT_TABLE();