Added gitignore
[tagua/yd.git] / src / clickablecanvas.h
blob9233df496ee937e3d39f989196a4d6c7925b44e8
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef CLICKABLECANVAS_H
12 #define CLICKABLECANVAS_H
14 #include "canvas/group.h"
16 class ClickableCanvas : public Canvas::Group {
17 public:
18 ClickableCanvas(Abstract* canvas = NULL) : Canvas::Group(canvas) { }
19 virtual void onMousePress(const QPoint& point, int button) = 0;
20 virtual void onMouseMove(const QPoint& point, int button) = 0;
21 virtual void onMouseRelease(const QPoint& point, int button) = 0;
22 virtual void onMouseEnter() {}
23 virtual void onMouseLeave() {}
26 #endif // CLICKABLECANVAS_H