- Main Page
- Classes
- Files

- File List

# C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.39/Woopsi/woopsi/contextmenuitem.h

    00001 #ifndef _CONTEXT_MENU_ITEM_H_
    00002 #define _CONTEXT_MENU_ITEM_H_
    00003
    00004 #include "label.h"
    00005
    00006 namespace WoopsiUI {
    00007
    00014         class ContextMenuItem : public Label {
    00015         public:
    00016
    00027                 ContextMenuItem(s16 x, s16 y, u16 width, u16 height, const char* text, u32 value, FontBase* font = NULL);
    00028
    00033                 virtual void draw(Rect clipRect);
    00034
    00039                 inline u32 getValue() const { return _value; };
    00040
    00047                 virtual bool click(s16 x, s16 y);
    00048
    00055                 bool release(s16 x, s16 y);
    00056
    00061                 virtual inline bool focus() { return false; };
    00062
    00067                 virtual inline bool blur() { return false; };
    00068
    00069         private:
    00070                 u32 _value;
    00075                 virtual inline ~ContextMenuItem() { };
    00076
    00080                 inline ContextMenuItem(const ContextMenuItem& contextMenuItem) : Label(contextMenuItem) { };
    00081         };
    00082 }
    00083
    00084 #endif

All Classes Functions Variables Enumerations Enumerator