diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-11-10 15:37:28 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-18 17:03:15 +0200 |
commit | 93af9304c8d798e71f86fc5166cc4d323ed0f9f6 (patch) | |
tree | c96d878edeba357cedb0f07fc429d408fa715130 /osdmanager.h | |
parent | d8663ff3096fcea38bf7d7b93dceec90a5fbabe2 (diff) | |
download | vdr-plugin-tvguide-93af9304c8d798e71f86fc5166cc4d323ed0f9f6.tar.gz vdr-plugin-tvguide-93af9304c8d798e71f86fc5166cc4d323ed0f9f6.tar.bz2 |
Cosmetic change in osdmanager.*
Diffstat (limited to 'osdmanager.h')
-rw-r--r-- | osdmanager.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/osdmanager.h b/osdmanager.h index 3607d40..e199176 100644 --- a/osdmanager.h +++ b/osdmanager.h @@ -4,20 +4,23 @@ #include <vdr/osd.h> class cOsdManager { - private: - cOsd *osd; - public: - cOsdManager(void); - bool setOsd(); - void setBackground(); - void flush() {osd->Flush();}; - cPixmap *requestPixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort = cRect::Null); - void releasePixmap(cPixmap *pixmap); - void deleteOsd() {delete osd;}; - int Width() { return osd->Width(); }; - int Height() { return osd->Height(); }; - int Top() { return osd->Top(); }; - int Left() { return osd->Left(); }; +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(); }; }; #endif //__TVGUIDE_OSDMANAGER_H |