Last change
on this file since 50643fa was 365e156, checked in by dportnoy <dmp1488@…>, 11 years ago |
Added a TextLabel gui element and updated the client to show status messages when registering or logging in
|
-
Property mode
set to
100644
|
File size:
444 bytes
|
Rev | Line | |
---|
[365e156] | 1 | #ifndef _TEXTLABEL_H
|
---|
| 2 | #define _TEXTLABEL_H
|
---|
| 3 |
|
---|
| 4 | #include "GuiComponent.h"
|
---|
| 5 |
|
---|
| 6 | #include <string>
|
---|
| 7 |
|
---|
| 8 | using namespace std;
|
---|
| 9 |
|
---|
| 10 | class TextLabel :
|
---|
| 11 | public GuiComponent
|
---|
| 12 | {
|
---|
| 13 | private:
|
---|
| 14 | string str;
|
---|
| 15 | int alignment;
|
---|
| 16 |
|
---|
| 17 | public:
|
---|
| 18 | TextLabel(int x, int y, int width, int height, ALLEGRO_FONT *font, string str, int alignment);
|
---|
| 19 | ~TextLabel(void);
|
---|
| 20 |
|
---|
| 21 | void draw(ALLEGRO_DISPLAY *display);
|
---|
| 22 | bool handleEvent(ALLEGRO_EVENT& e);
|
---|
| 23 |
|
---|
| 24 | void setText(string str);
|
---|
| 25 | };
|
---|
| 26 |
|
---|
| 27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.