-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.h
59 lines (52 loc) · 1.21 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* File: Menu.h
* Author: scribble
*
* Created on November 26, 2012, 6:11 PM
*/
#ifndef MENU_H
#define MENU_H
#include "Point.h"
#include "MenuButton.h"
#include "Color.h"
#include <vector>
#include "defines.h"
#include <string>
#include <sstream>
class ScreenInterpreter;
class Menu {
public:
Menu();
Menu(int x_, int y_, int w_, int h_);
Menu(const Menu& orig);
virtual ~Menu();
bool pointInsideArea(Point *point);
void screenPressEvent(Point* point);
void screenMoveEvent(Point* point);
void screenReleaseEvent();
std::vector <MenuButton *> * getButtonArray();
int getX();
int getY();
int getWidth();
int getHeight();
void callAction(int action);
void setScreenInterpreter(ScreenInterpreter *s);
std::string getBackground();
void handleOwnership();
MenuButton *getOwnershipBTN();
void getFilelist();
std::string getPageIndicator();
void setPageIndicator();
private:
bool network;
int x;
int y;
int width;
int height;
std::vector <MenuButton *> *buttonArray;
ScreenInterpreter *screenInterpreter;
std::string background;
MenuButton *ownershipBTN;
std::string pageIndicator;
};
#endif /* MENU_H */