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.
11 #ifndef CLICKABLECANVAS_H
12 #define CLICKABLECANVAS_H
14 #include "kgamecanvas.h"
16 class ClickableCanvas
: public KGameCanvasGroup
{
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