summaryrefslogtreecommitdiff
path: root/osdmanager.h
blob: a0c79366ed3c43187548a39f9339fc81a81c5100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __TVGUIDE_OSDMANAGER_H
#define __TVGUIDE_OSDMANAGER_H

#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(); };
};

#endif //__TVGUIDE_OSDMANAGER_H