Last change
on this file since d05c484 was f63aa57, checked in by dportnoy <dmp1488@…>, 11 years ago |
The old Game window has been completely removed from the client and the client frees all gui components on its own, instead of relying on the Window destructor
|
-
Property mode
set to
100644
|
File size:
441 bytes
|
Rev | Line | |
---|
[87b3ee2] | 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 |
|
---|
[f63aa57] | 20 | GuiComponent* addComponent(GuiComponent* comp);
|
---|
[87b3ee2] | 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.