Woopsi 1.0 GUI Framework for Nintendo DS Homebrew

- Main Page
- Classes
- Files

- File List

# 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