diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-16 10:35:36 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-16 10:35:36 +0200 |
commit | 5d99df7b7760c4a2b497c737a15b609008f6d56d (patch) | |
tree | a342f2f7465a73fe2bd63848d87566af8d646dd3 /dvbosd.h | |
parent | 7aab06d8b1c6de59d06756d44c631984acd299b3 (diff) | |
download | vdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.gz vdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.bz2 |
Implemented 'skins' and 'themes'
Diffstat (limited to 'dvbosd.h')
-rw-r--r-- | dvbosd.h | 29 |
1 files changed, 15 insertions, 14 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbosd.h 1.16 2002/11/01 10:05:47 kls Exp $ + * $Id: dvbosd.h 1.17 2004/04/30 13:44:16 kls Exp $ */ #ifndef __DVBOSD_H @@ -12,25 +12,26 @@ #include <linux/dvb/osd.h> #include "dvbdevice.h" -#include "osdbase.h" +#include "osd.h" -class cDvbOsd : public cOsdBase { +class cDvbOsd : public cOsd { private: - static const cDvbDevice *dvbDevice; int osdDev; - bool SetWindow(cWindow *Window); + bool shown; void Cmd(OSD_Command cmd, int color = 0, int x0 = 0, int y0 = 0, int x1 = 0, int y1 = 0, const void *data = NULL); -protected: - virtual bool OpenWindow(cWindow *Window); - virtual void CommitWindow(cWindow *Window); - virtual void ShowWindow(cWindow *Window); - virtual void HideWindow(cWindow *Window, bool Hide); - virtual void MoveWindow(cWindow *Window, int x, int y); - virtual void CloseWindow(cWindow *Window); public: - cDvbOsd(int x, int y); + cDvbOsd(int Left, int Top, int OsdDev); virtual ~cDvbOsd(); - static void SetDvbDevice(const cDvbDevice *DvbDevice); + virtual eOsdError CanHandleAreas(const tArea *Areas, int NumAreas); + virtual void Flush(void); + }; + +class cDvbOsdProvider : public cOsdProvider { +private: + int osdDev; +public: + cDvbOsdProvider(int OsdDev); + virtual cOsd *CreateOsd(int Left, int Top); }; #endif //__DVBOSD_H |