Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/contextmenueventargs.h
00001 #ifndef _CONTEXT_MENU_EVENT_ARGS_H_
00002 #define _CONTEXT_MENU_EVENT_ARGS_H_
00003 
00004 #include "eventargs.h"
00005 
00006 namespace WoopsiUI {
00007 
00008     class Gadget;
00009     class ListDataItem;
00010     class ContextMenuEventArgs;
00011 
00016     class ContextMenuEventArgs : public EventArgs<const Gadget*> {
00017     public:
00018 
00025         ContextMenuEventArgs(const Gadget* source, const ListDataItem* item) : EventArgs<const Gadget*>(source) {
00026             _item = item;
00027         };
00028 
00033         inline const ListDataItem* getItem() const { return _item; };
00034 
00035     private:
00036         const ListDataItem* _item;          
00037     };
00038 }
00039 
00040 #endif
 All Classes Functions Variables Enumerations Enumerator