diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-26 19:57:10 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-26 19:57:10 (GMT) |
| commit | ab6fed71d74371e2d38372eae71ee26a7ef214df (patch) | |
| tree | 4f139ad5501bb66dcc9c4770d1ceb7be6e159284 /src/interface/Component.cpp | |
| parent | e26cb8ce2f69b81442194bd2310cfc3ea6bb6f5f (diff) | |
| download | powder-ab6fed71d74371e2d38372eae71ee26a7ef214df.zip powder-ab6fed71d74371e2d38372eae71ee26a7ef214df.tar.gz | |
Replace textblock with new multiline label - with text selection!!!!111!!!one!!
Diffstat (limited to 'src/interface/Component.cpp')
| -rw-r--r-- | src/interface/Component.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/Component.cpp b/src/interface/Component.cpp index 0094cf5..a0c55f4 100644 --- a/src/interface/Component.cpp +++ b/src/interface/Component.cpp @@ -16,6 +16,7 @@ Component::Component(Window* parent_state): Locked(false), Visible(true), textPosition(0, 0), + textSize(0, 0), iconPosition(0, 0), drawn(false) { @@ -30,6 +31,7 @@ Component::Component(Point position, Point size): Locked(false), Visible(true), textPosition(0, 0), + textSize(0, 0), iconPosition(0, 0), drawn(false) { @@ -44,6 +46,7 @@ Component::Component(): Locked(false), Visible(true), textPosition(0, 0), + textSize(0, 0), iconPosition(0, 0), drawn(false) { @@ -62,6 +65,7 @@ void Component::TextPosition(std::string displayText) int textWidth, textHeight = 10; Graphics::textsize((char*)displayText.c_str(), textWidth, textHeight); + textSize.X = textWidth; textSize.Y = textHeight; textHeight-=3; textWidth-=1; if(Appearance.icon) |
