-
Notifications
You must be signed in to change notification settings - Fork 1
/
menu.h
34 lines (29 loc) · 884 Bytes
/
menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __MENU_H__
#define __MENU_H__
#include "point.h"
#include "input.h"
#include "clickablebutton.h"
#include "resourcemgr.h"
#define M_FONT_HEIGHT 12
#define M_FONT_WIDTH 4
class Menu
{
private:
char linkTitle[];
Point upperLeft;
int padding;
Input* input;
Window* window;
ResourceMgr* resourceMgr;
vector< char* > linkTitles;
vector< ClickableButton > buttons;
int numLinks;
const vector< char* >& tokenize( char links[] );
public:
Menu();
Menu( Point upperLeft, char linkTitles[], int padding );
virtual void checkInput();
virtual void draw();
virtual ~Menu();
};
#endif