2016-02-06 09:55:15 +01:00
|
|
|
#ifndef __OSDWRAPPER_H
|
|
|
|
#define __OSDWRAPPER_H
|
|
|
|
|
|
|
|
#include <vdr/osd.h>
|
|
|
|
#include <vdr/thread.h>
|
|
|
|
|
|
|
|
class cSdOsd {
|
|
|
|
private:
|
|
|
|
cOsd *osd;
|
|
|
|
cMutex mutex;
|
|
|
|
bool flushLocked;
|
2016-05-01 06:35:13 +02:00
|
|
|
int animsRunning;
|
|
|
|
int animsFlushed;
|
|
|
|
cMutex animsRunningMutex;
|
2016-02-06 09:55:15 +01:00
|
|
|
public:
|
|
|
|
cSdOsd(void);
|
|
|
|
virtual ~cSdOsd(void);
|
|
|
|
void Lock(void);
|
|
|
|
void Unlock(void);
|
|
|
|
void LockFlush(void);
|
|
|
|
void UnlockFlush(void);
|
|
|
|
bool CreateOsd(int x, int y, int width, int height);
|
|
|
|
void DeleteOsd(void);
|
|
|
|
cPixmap *CreatePixmap(int layer, cRect &viewPort, cRect &drawPort);
|
|
|
|
void DestroyPixmap(cPixmap *pix);
|
2016-05-01 06:35:13 +02:00
|
|
|
void AddAnimation(void);
|
|
|
|
void RemoveAnimation(void);
|
|
|
|
void AnimatedFlush(void);
|
2016-02-06 09:55:15 +01:00
|
|
|
void Flush(void);
|
|
|
|
};
|
|
|
|
|
2016-01-26 18:32:38 +01:00
|
|
|
#endif //__OSDWRAPPER_H
|