Tentative Randomless-Entropy variant.
[tagua/yd.git] / src / clickablecanvas.h
blob9c77938a4a91827b59638ee5e9e63c4303aa36e2
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
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 "kgamecanvas.h"
16 class ClickableCanvas : public KGameCanvasGroup {
17 public:
18 ClickableCanvas(KGameCanvasAbstract* canvas = NULL) : KGameCanvasGroup(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