Last change
on this file since 3e44a59 was 87b3ee2, checked in by dportnoy <dmp1488@…>, 12 years ago |
Created a simple gui for the client
|
-
Property mode
set to
100644
|
File size:
432 bytes
|
Line | |
---|
1 | #ifndef _WINDOW_H
|
---|
2 | #define _WINDOW_H
|
---|
3 |
|
---|
4 | #include "GuiComponent.h"
|
---|
5 |
|
---|
6 | #include <vector>
|
---|
7 |
|
---|
8 | using namespace std;
|
---|
9 |
|
---|
10 | class Window :
|
---|
11 | public GuiComponent
|
---|
12 | {
|
---|
13 | private:
|
---|
14 | vector<GuiComponent*> vctGui;
|
---|
15 |
|
---|
16 | public:
|
---|
17 | Window(int x, int y, int width, int height);
|
---|
18 | ~Window(void);
|
---|
19 |
|
---|
20 | void addComponent(GuiComponent *comp);
|
---|
21 | GuiComponent* getComponent(int x);
|
---|
22 | void draw(ALLEGRO_DISPLAY *display);
|
---|
23 | bool handleEvent(ALLEGRO_EVENT& e);
|
---|
24 | };
|
---|
25 |
|
---|
26 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.