SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Callbacks.h
Go to the documentation of this file.
1 
7 #ifndef __SCV_CALLBACKS_H__
8 #define __SCV_CALLBACKS_H__
9 
10 #ifndef DOXYGEN_SKIP_THIS
11 #include "MouseEvent.h"
12 #include "KeyEvent.h"
13 #endif // DOXYGEN_SKIP_THIS
14 
15 namespace scv {
16 
20 class Callbacks {
21 public:
22 
23  Callbacks(void) {};
24  virtual ~Callbacks(void) {};
25 
26  virtual void onMouseClick(const scv::MouseEvent &evt) = 0;
27  virtual void onMouseHold(const scv::MouseEvent &evt) = 0;
28  virtual void onMouseOver(const scv::MouseEvent &evt) = 0;
29  virtual void onMouseUp(const scv::MouseEvent &evt) = 0;
30  virtual void onMouseWheel(const scv::MouseEvent &evt) = 0;
31  virtual void onKeyPressed(const scv::KeyEvent &evt) = 0;
32  virtual void onKeyUp(const scv::KeyEvent &evt) = 0;
33 
34 protected:
35 
36  virtual void processMouse(const scv::MouseEvent &evt) = 0;
37  virtual void processKey(const scv::KeyEvent &evt) = 0;
38 
39 };
40 
41 } // namespace scv
42 
43 #endif // __SCV_CALLBACKS_H__