From 9d3ca6da69096d5904cbe16d0f8778e6c14537e8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 9 Mar 2013 13:52:02 +0100 Subject: Add label to checkbox widget. --- plugingui/checkbox.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugingui/checkbox.h') diff --git a/plugingui/checkbox.h b/plugingui/checkbox.h index fd25081..1b8aa23 100644 --- a/plugingui/checkbox.h +++ b/plugingui/checkbox.h @@ -35,6 +35,8 @@ class CheckBox : public Widget { public: CheckBox(Widget *parent); + void setText(std::string text); + bool isFocusable() { return true; } bool checked(); @@ -53,6 +55,8 @@ private: void (*handler)(void *); void *ptr; + + std::string _text; }; }; -- cgit v1.2.3