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