summaryrefslogtreecommitdiff
path: root/vfd.c
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2010-10-31 10:19:39 +0100
committeranbr <vdr07@deltab.de>2010-10-31 10:19:39 +0100
commit25177cb4765a03da7fab10c500097910e13924e6 (patch)
tree488e54bdf7f851dcddf44e05bebc4cc48130b376 /vfd.c
parent16745cec0de781245650aa6332c97ae9a8db8644 (diff)
downloadvdr-plugin-targavfd-25177cb4765a03da7fab10c500097910e13924e6.tar.gz
vdr-plugin-targavfd-25177cb4765a03da7fab10c500097910e13924e6.tar.bz2
Support spectrum analyzer visualization (need span-plugin)0.0.6
Diffstat (limited to 'vfd.c')
-rw-r--r--vfd.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/vfd.c b/vfd.c
index c23f871..7f0162b 100644
--- a/vfd.c
+++ b/vfd.c
@@ -439,6 +439,42 @@ int cVFD::DrawText(int x, int y, const char* string)
return -1;
}
+/**
+ * Height of framebuffer from current device.
+ */
+int cVFD::Height() const
+{
+ if(framebuf)
+ return framebuf->Height();
+ return 0;
+}
+
+/**
+ * Width of framebuffer from current device.
+ */
+int cVFD::Width() const
+{
+ if(framebuf)
+ return framebuf->Width();
+ return 0;
+}
+
+/**
+ * Draw a rectangle on framebuffer on device.
+ *
+ * \param x1 First horizontal corner (column).
+ * \param y1 First vertical corner (row).
+ * \param x2 Second horizontal corner (column).
+ * \param y2 Second vertical corner (row).
+ * \param filled drawing of rectangle should be filled.
+ */
+bool cVFD::Rectangle(int x1, int y1, int x2, int y2, bool filled)
+{
+ if(framebuf)
+ return framebuf->Rectangle(x1, y1, x2, y2, filled);
+ return false;
+}
+
/**
* Sets the "icons state" for the device. We use this to control the icons