1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00
vdr/dvbosd.h

41 lines
1.0 KiB
C
Raw Normal View History

2000-10-03 10:34:48 +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-08-10 14:58:25 +02:00
* $Id: dvbosd.h 1.15 2002/08/09 16:16:48 kls Exp $
2000-10-03 10:34:48 +02:00
*/
#ifndef __DVBOSD_H
#define __DVBOSD_H
2002-08-10 14:58:25 +02:00
#ifdef NEWSTRUCT
#include <linux/dvb/osd.h>
#else
#include <ost/osd.h>
2002-08-10 14:58:25 +02:00
#endif
#include "dvbdevice.h"
#include "osdbase.h"
2000-10-03 10:34:48 +02:00
class cDvbOsd : public cOsdBase {
2000-10-03 10:34:48 +02:00
private:
static const cDvbDevice *dvbDevice;
int osdDev;
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);
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:
cDvbOsd(int x, int y);
virtual ~cDvbOsd();
static void SetDvbDevice(const cDvbDevice *DvbDevice);
2000-10-03 10:34:48 +02:00
};
#endif //__DVBOSD_H