00001 #ifndef _LCD_TEXT_H_ 00002 #define _LCD_TEXT_H_ 00003 00004 #include "LCDWidget.h" 00005 #include <string> 00006 00012 class LCDText : public LCDWidget 00013 { 00014 private: 00015 std::string _text; 00016 public: 00017 00026 LCDText(LCDElement *parent = 0, const std::string &id = ""); 00037 LCDText(const std::string &text, int x=1, int y=1, LCDElement *parent = 0, const std::string &id = ""); 00038 00039 virtual void notifyChanged(); 00048 void set(const std::string &text, int x, int y); 00049 00056 void setText(const std::string &text); 00057 00064 std::string getText() const; 00065 00066 virtual void valueCallback(std::string value); 00067 }; 00068 00069 #endif