1 /*
2 * This code is released under the GNU General Public License.  See COPYING for
3 * details.  Copyright 2003 John Spray: spray_john@users.sourceforge.net
4 */
5 
6 
7 #ifndef MENUITEM_H
8 #define MENUITEM_H
9 
10 #include "Menu.h"
11 
12 class MenuItem{
13 public:
14 	MenuItem();
15 	int selected;
16 	void SetPos(int x,int width,int y,int height);
17 	int CheckClick(int x,int y);
18 	void Draw(int viewportx,int viewporty);
19 	void Left();
20 	void Right();
21 	char label[128];
22 	menufunc function;
23 	Menu* parent;
24 	void* target;
25 private:
26 	int x;
27 	int y;
28 	int width;
29 	int height;
30 };
31 
32 #endif //MENUITEM_H
33