summaryrefslogtreecommitdiff
path: root/src/interface/Label.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-26 21:55:52 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-26 21:55:52 (GMT)
commit5a71068ba07f42cffbd50324176510d992ebbc5e (patch)
tree10fbbf3e466d10175faaacced7cafba449edbb69 /src/interface/Label.h
parent7c259c01238d91d41a778003e2529f5c06e09139 (diff)
downloadpowder-5a71068ba07f42cffbd50324176510d992ebbc5e.zip
powder-5a71068ba07f42cffbd50324176510d992ebbc5e.tar.gz
Textbox now inherits from Label - gets all the fancy text selection features
Diffstat (limited to 'src/interface/Label.h')
-rw-r--r--src/interface/Label.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/interface/Label.h b/src/interface/Label.h
index 34822bb..c8c63d4 100644
--- a/src/interface/Label.h
+++ b/src/interface/Label.h
@@ -34,6 +34,9 @@ namespace ui
void updateMultiline();
void updateSelection();
+
+ int getLowerSelectionBound();
+ int getHigherSelectionBound();
public:
//Label(Window* parent_state, std::string labelText);
Label(Point position, Point size, std::string labelText);
@@ -41,11 +44,14 @@ namespace ui
virtual ~Label();
virtual void SetMultiline(bool status);
+
virtual void SetText(std::string text);
virtual std::string GetText();
- void SetTextColour(Colour textColour) { this->textColour = textColour; }
+ virtual bool HasSelection();
+ virtual void ClearSelection();
+ void SetTextColour(Colour textColour) { this->textColour = textColour; }
virtual void OnMouseClick(int x, int y, unsigned button);
virtual void OnMouseUp(int x, int y, unsigned button);