diff options
Diffstat (limited to 'layout.h')
-rw-r--r-- | layout.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/layout.h b/layout.h new file mode 100644 index 0000000..95269a8 --- /dev/null +++ b/layout.h @@ -0,0 +1,54 @@ +/* + * GraphLCD plugin for Video Disc Recorder + * + * layout.h - layout classes + * + * This file is released under the GNU General Public License. Refer + * to the COPYING file distributed with this package. + * + * (c) 2005 Andreas Regel <andreas.regel AT powarman.de> + */ + +#include <list> +#include <string> + +#include <glcdgraphics/font.h> + +typedef enum +{ + ftFNT, + ftFT2 +} eFontTypes; + +class cFontElement +{ +private: + std::string name; + int type; + std::string file; + int size; + GLCD::cFont font; +public: + cFontElement(const std::string & fontName); + bool Load(const std::string & url); + + const std::string & Name() const { return name; } + int Type() const { return type; } + const std::string & File() const { return file; } + int Size() const { return size; } + const GLCD::cFont * Font() const { return &font; } +}; + + +class cFontList +{ +private: + std::list <cFontElement *> fonts; +public: + cFontList(); + ~cFontList(); + bool Load(const std::string & fileName); + bool Parse(const std::string & line); + + const GLCD::cFont * GetFont(const std::string & name) const; +}; |