Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Examples

LCDScroller.h

00001 #ifndef _LCD_SCROLLER_H_
00002 #define _LCD_SCROLLER_H_
00003 
00004 #include "LCDWidget.h"
00005 #include <string>
00006 
00012 class LCDScroller : public LCDWidget
00013 {
00014  private:
00015   std::string _text;
00016   int _left, _top, _right, _bottom, _speed;
00017   Direction _direction;
00018  public:
00027   LCDScroller(LCDElement *parent = 0, const std::string &id = "");
00028 
00029   virtual void notifyChanged();
00030   virtual void valueCallback(std::string value);
00031 
00044   void set(const std::string &text, int left = 1, int top = 1, int right = 10, int bottom = 1, int speed = 8, Direction direction = Horizontal);
00045 
00052   void setText(const std::string &text);
00053 
00060   std::string getText();
00061 
00068   void setWidth(int width);
00069 
00076   void setHeight(int height);
00077 
00084   void setSpeed(int speed);
00085 
00086 };
00087 
00088 #endif

Generated on Wed Aug 4 19:39:09 2004 for LCDApi by doxygen 1.3.6