summaryrefslogtreecommitdiff
path: root/src/interface/Checkbox.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-17 11:20:58 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-17 11:20:58 (GMT)
commit6e44ebc358d1206c147f514225373da07b43c015 (patch)
tree35e97c28991c4aff46a9e5a4182b53dedb26e7ee /src/interface/Checkbox.cpp
parente52e9ce91ccca13115fec0fdb0111e7e5d39d10d (diff)
downloadpowder-6e44ebc358d1206c147f514225373da07b43c015.zip
powder-6e44ebc358d1206c147f514225373da07b43c015.tar.gz
Checkbox, Slider and ProgressBar components for ui API
Diffstat (limited to 'src/interface/Checkbox.cpp')
-rw-r--r--src/interface/Checkbox.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface/Checkbox.cpp b/src/interface/Checkbox.cpp
index 2481b23..c0dd47b 100644
--- a/src/interface/Checkbox.cpp
+++ b/src/interface/Checkbox.cpp
@@ -25,6 +25,11 @@ void Checkbox::SetText(std::string text)
this->text = text;
}
+std::string Checkbox::GetText()
+{
+ return text;
+}
+
void Checkbox::OnMouseClick(int x, int y, unsigned int button)
{
if(checked)