2000-10-03 10:34:48 +02:00
|
|
|
/*
|
2002-05-10 14:55:53 +02:00
|
|
|
* dvbosd.h: Implementation of the DVB On Screen Display
|
2000-10-03 10:34:48 +02:00
|
|
|
*
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2002-11-01 10:26:45 +01:00
|
|
|
* $Id: dvbosd.h 1.16 2002/11/01 10:05:47 kls Exp $
|
2000-10-03 10:34:48 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DVBOSD_H
|
|
|
|
#define __DVBOSD_H
|
|
|
|
|
2002-08-10 14:58:25 +02:00
|
|
|
#include <linux/dvb/osd.h>
|
2002-08-04 14:57:29 +02:00
|
|
|
#include "dvbdevice.h"
|
2002-05-10 14:55:53 +02:00
|
|
|
#include "osdbase.h"
|
2000-10-03 10:34:48 +02:00
|
|
|
|
2002-05-18 12:41:18 +02:00
|
|
|
class cDvbOsd : public cOsdBase {
|
2000-10-03 10:34:48 +02:00
|
|
|
private:
|
2002-08-04 14:57:29 +02:00
|
|
|
static const cDvbDevice *dvbDevice;
|
2002-05-18 14:03:22 +02:00
|
|
|
int osdDev;
|
2002-01-13 15:55:08 +01:00
|
|
|
bool SetWindow(cWindow *Window);
|
2000-10-03 10:34:48 +02:00
|
|
|
void Cmd(OSD_Command cmd, int color = 0, int x0 = 0, int y0 = 0, int x1 = 0, int y1 = 0, const void *data = NULL);
|
2002-05-10 14:55:53 +02:00
|
|
|
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);
|
2000-10-03 10:34:48 +02:00
|
|
|
public:
|
2002-08-04 14:57:29 +02:00
|
|
|
cDvbOsd(int x, int y);
|
2002-05-10 14:55:53 +02:00
|
|
|
virtual ~cDvbOsd();
|
2002-08-04 14:57:29 +02:00
|
|
|
static void SetDvbDevice(const cDvbDevice *DvbDevice);
|
2000-10-03 10:34:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__DVBOSD_H
|