Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BResponder.h

Go to the documentation of this file.
00001 // BResponder.h (this is -*- C++ -*-)
00002 // 
00003 // \author: Bjoern Giesler <bjoern@giesler.de>
00004 // 
00005 // 
00006 // 
00007 // $Author: giesler $
00008 // $Locker$
00009 // $Revision$
00010 // $Date: 2002-08-19 10:41:28 +0200 (Mon, 19 Aug 2002) $
00011 
00012 #ifndef BRESPONDER_H
00013 #define BRESPONDER_H
00014 
00015 /* system includes */
00016 /* (none) */
00017 
00018 /* my includes */
00019 #include "BEvent.h"
00020 
00027 class BResponder {
00028 public:
00029   BResponder() { _accepts = true; }
00030   virtual ~BResponder() {}
00031 
00033   virtual void handleEvent(const BEvent& event) {};
00034 
00035   virtual void setAcceptsInput(bool yn) { _accepts = yn; }
00036   virtual bool acceptsInput() { return _accepts; }
00037 protected:
00038   bool _accepts;
00039 };
00040 
00041 #endif /* BRESPONDER_H */

Generated on Sat Dec 29 09:59:23 2007 for DSGUI by doxygen1.3-rc3