2019-07-11 11:07:13 +02:00
|
|
|
#ifndef __TVGUIDE_OSDMANAGER_H
|
|
|
|
#define __TVGUIDE_OSDMANAGER_H
|
|
|
|
|
|
|
|
#include <vdr/osd.h>
|
|
|
|
|
|
|
|
class cOsdManager {
|
2019-11-10 15:37:28 +01:00
|
|
|
private:
|
|
|
|
cOsd *osd;
|
|
|
|
cMutex mutex;
|
|
|
|
public:
|
|
|
|
cOsdManager(void);
|
|
|
|
void Lock(void);
|
|
|
|
void Unlock(void);
|
|
|
|
bool CreateOsd(void);
|
|
|
|
void DeleteOsd(void);
|
|
|
|
void SetBackground(void);
|
|
|
|
cPixmap *CreatePixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort = cRect::Null);
|
|
|
|
void DestroyPixmap(cPixmap *pixmap);
|
|
|
|
void Flush(void);
|
|
|
|
int Width(void) { return osd->Width(); };
|
|
|
|
int Height(void) { return osd->Height(); };
|
|
|
|
int Top(void) { return osd->Top(); };
|
|
|
|
int Left(void) { return osd->Left(); };
|
2019-07-11 11:07:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__TVGUIDE_OSDMANAGER_H
|