summaryrefslogtreecommitdiff
path: root/layout.h
diff options
context:
space:
mode:
authorandreas 'randy' weinberger <vdr@smue.org>2010-02-21 19:56:01 +0100
committerandreas 'randy' weinberger <vdr@smue.org>2010-02-21 19:56:01 +0100
commite73252dc58ecd5a27c6d8af94028f311f23687ab (patch)
treea66d0564de1a0e267ee681e5d731b1864e7a3d12 /layout.h
downloadvdr-plugin-graphlcd-e73252dc58ecd5a27c6d8af94028f311f23687ab.tar.gz
vdr-plugin-graphlcd-e73252dc58ecd5a27c6d8af94028f311f23687ab.tar.bz2
initial git upload, based on graphlcd-0.1.5
Diffstat (limited to 'layout.h')
-rw-r--r--layout.h54
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;
+};