00001 #ifndef _LCD_SCREEN_H_ 00002 #define _LCD_SCREEN_H_ 00003 00004 #include "LCDConstants.h" 00005 #include "LCDElement.h" 00006 00016 class LCDScreen : public LCDElement 00017 { 00018 protected: 00019 00020 template <typename T> void setScreenOption(std::string optName, T value); 00021 00022 public: 00023 static std::string valueToString(std::string value); 00024 static std::string valueToString(int value); 00025 00035 LCDScreen(LCDElement *parent=0, std::string name="", std::string id = ""); 00036 00043 void setName(std::string name); 00044 00051 void setWidth(int width); 00052 00059 void setHeight(int height); 00060 00067 void setPriority(std::string priority); 00068 00075 void setHeartBeat(std::string heartbeat); 00076 00083 void setBackLight(std::string backlight); 00084 00091 void setDuration(int secondEights); 00092 00099 void setTimeOut(int secondEights); 00100 00107 void setCursor(std::string cursor); 00108 00116 void setCursorPosition(int x, int y); 00123 void setCursorX(int x); 00130 void setCursorY(int y); 00131 }; 00132 00133 #endif