Last change
on this file since 7c52498 was baaf6c8, checked in by dportnoy <dmp1488@…>, 12 years ago |
Added Compiler.h to all gui files, added the font file to the project, and moved the Window class into the gui folder
|
-
Property mode
set to
100644
|
File size:
523 bytes
|
Line | |
---|
1 | #ifndef _GUICOMPONENT_H
|
---|
2 | #define _GUICOMPONENT_H
|
---|
3 |
|
---|
4 | #include <allegro5/allegro.h>
|
---|
5 | #include <allegro5/allegro_primitives.h>
|
---|
6 | #include <allegro5/allegro_font.h>
|
---|
7 |
|
---|
8 | #include "../../common/Compiler.h"
|
---|
9 |
|
---|
10 | class GuiComponent
|
---|
11 | {
|
---|
12 | protected:
|
---|
13 | int x, y, width, height;
|
---|
14 | ALLEGRO_BITMAP *bitmap;
|
---|
15 | ALLEGRO_FONT *font;
|
---|
16 |
|
---|
17 | public:
|
---|
18 | GuiComponent(int x, int y, int width, int height, ALLEGRO_FONT *font);
|
---|
19 | virtual ~GuiComponent(void);
|
---|
20 |
|
---|
21 | virtual void draw(ALLEGRO_DISPLAY *display);
|
---|
22 | virtual bool handleEvent(ALLEGRO_EVENT& e);
|
---|
23 | };
|
---|
24 |
|
---|
25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.