blob: 08c5fad6f14e3c777026afbd1e55222e4587d0ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef LABEL_H
#define LABEL_H
#include <string>
#include "Component.h"
#include "Misc.h"
#include "Colour.h"
namespace ui
{
class Label : public Component
{
protected:
std::string text;
Colour textColour;
public:
//Label(Window* parent_state, std::string labelText);
Label(Point position, Point size, std::string labelText);
//Label(std::string labelText);
virtual ~Label();
virtual void SetText(std::string text);
virtual std::string GetText();
void SetTextColour(Colour textColour) { this->textColour = textColour; }
virtual void Draw(const Point& screenPos);
};
}
#endif // LABEL_H
|