summaryrefslogtreecommitdiff
path: root/dvbosd.h
blob: 69838f6dcc2fdd9155db09aad198f6fb567b3f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * dvbosd.h: Implementation of the DVB On Screen Display
 *
 * See the main source file 'vdr.c' for copyright information and
 * how to reach the author.
 *
 * $Id: dvbosd.h 1.14 2002/08/04 10:12:14 kls Exp $
 */

#ifndef __DVBOSD_H
#define __DVBOSD_H

#include <ost/osd.h>
#include "dvbdevice.h"
#include "osdbase.h"

class cDvbOsd : public cOsdBase {
private:
  static const cDvbDevice *dvbDevice;
  int osdDev;
  bool SetWindow(cWindow *Window);
  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);
  virtual ~cDvbOsd();
  static void SetDvbDevice(const cDvbDevice *DvbDevice);
  };

#endif //__DVBOSD_H