summaryrefslogtreecommitdiff
path: root/src/interface/Label.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
commit136675b56a8a1862afb41ccee5c14e93e483b964 (patch)
tree8f679477c5e1c0984a5cb9c169e339c1ca0d6e0c /src/interface/Label.h
parent45563e97e813cfd21724ad1111e5de3e04679e1a (diff)
downloadpowder-136675b56a8a1862afb41ccee5c14e93e483b964.zip
powder-136675b56a8a1862afb41ccee5c14e93e483b964.tar.gz
Move style into Component
Diffstat (limited to 'src/interface/Label.h')
-rw-r--r--src/interface/Label.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/interface/Label.h b/src/interface/Label.h
index 4f7ce7f..08c5fad 100644
--- a/src/interface/Label.h
+++ b/src/interface/Label.h
@@ -13,10 +13,6 @@ namespace ui
{
protected:
std::string text;
- ui::Point textPosition;
- HorizontalAlignment textHAlign;
- VerticalAlignment textVAlign;
-
Colour textColour;
public:
//Label(Window* parent_state, std::string labelText);
@@ -24,11 +20,8 @@ namespace ui
//Label(std::string labelText);
virtual ~Label();
- virtual void TextPosition();
virtual void SetText(std::string text);
- HorizontalAlignment GetHAlignment() { return textHAlign; }
- VerticalAlignment GetVAlignment() { return textVAlign; }
- void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign) { textHAlign = hAlign; textVAlign = vAlign; TextPosition(); }
+ virtual std::string GetText();
void SetTextColour(Colour textColour) { this->textColour = textColour; }