Woopsi 1.0
GUI Framework for Nintendo DS Homebrew

eventargs.h

00001 #ifndef _EVENTARGS_H_
00002 #define _EVENTARGS_H_
00003 
00004 namespace WoopsiUI {
00005 
00010         template <class T>
00011         class EventArgs {
00012 
00013         public:
00014                 
00019                 inline EventArgs(const T& source) { _source = source; };
00020 
00024                 virtual inline ~EventArgs() { };
00025                 
00029                 inline const T& getSource() const { return _source; };
00030 
00031         private:
00032                 T _source;                                      
00033         };
00034 }
00035 
00036 #endif