summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-16 23:30:10 +0000
committerrubidium <rubidium@openttd.org>2008-05-16 23:30:10 +0000
commitcc0dae2271323caf1955acd815b1bb333e8d039c (patch)
tree714a0d69bb2ce8c0edf0478335b26a99930eb464 /src/window.cpp
parent55546ae82cb95b04665d6e69994d01f3d78796c3 (diff)
downloadopenttd-cc0dae2271323caf1955acd815b1bb333e8d039c.tar.xz
(svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp54
1 files changed, 1 insertions, 53 deletions
diff --git a/src/window.cpp b/src/window.cpp
index f759784a2..1b7430aee 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -99,58 +99,6 @@ void Window::OnClick(Point pt, int widget)
this->HandleWindowEvent(&e);
}
-void Window::OnDoubleClick(Point pt, int widget)
-{
- WindowEvent e;
- e.event = WE_DOUBLE_CLICK;
- e.we.click.pt = pt;
- e.we.click.widget = widget;
- this->HandleWindowEvent(&e);
-}
-
-void Window::OnRightClick(Point pt, int widget)
-{
- WindowEvent e;
- e.event = WE_RCLICK;
- e.we.click.pt = pt;
- e.we.click.widget = widget;
- this->HandleWindowEvent(&e);
-}
-
-void Window::OnDragDrop(Point pt, int widget)
-{
- WindowEvent e;
- e.event = WE_DRAGDROP;
- e.we.click.pt = pt;
- e.we.click.widget = widget;
- this->HandleWindowEvent(&e);
-}
-
-void Window::OnScroll(Point delta)
-{
- WindowEvent e;
- e.event = WE_SCROLL;
- e.we.scroll.delta = delta;
- this->HandleWindowEvent(&e);
-}
-
-void Window::OnMouseOver(Point pt, int widget)
-{
- WindowEvent e;
- e.event = WE_MOUSEOVER;
- e.we.click.pt = pt;
- e.we.click.widget = widget;
- this->HandleWindowEvent(&e);
-}
-
-void Window::OnMouseWheel(int wheel)
-{
- WindowEvent e;
- e.event = WE_MOUSEWHEEL;
- e.we.wheel.wheel = wheel;
- this->HandleWindowEvent(&e);
-}
-
void Window::OnMouseLoop()
{
WindowEvent e;
@@ -1972,7 +1920,7 @@ void MouseLoop(MouseClick click, int mousewheel)
if (mousewheel != 0) {
if (_patches.scrollwheel_scrolling == 0) {
- /* Send WE_MOUSEWHEEL event to window */
+ /* Send mousewheel event to window */
w->OnMouseWheel(mousewheel);
}