summaryrefslogtreecommitdiff
path: root/timers.h
blob: dcb1935a29a38ac099d379d7ffbb14efe2d8615a (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
37
38
#ifndef __NOPACITY_TIMERS_H
#define __NOPACITY_TIMERS_H

class cNopacityTimer : public cListObject {
    private:
        cOsd *osd;
        cPixmap *pixmapBackground;
        cPixmap *pixmap;
        cPixmap *pixmapLogo;
        const cTimer *timer;
        int numConflicts;
        bool isTimerConflict;
        const cFont *font;
        const cFont *fontLarge;
        int width;
        int height;
        int y;
        cString Date;
        cTextWrapper showName;
        void DrawLogo(void);
    public:
        cNopacityTimer(cOsd *osd, const cTimer *timer, const cFont *font, const cFont *fontLarge);
        cNopacityTimer(cOsd *osd, int numConflicts, const cFont *font, const cFont *fontLarge);
        virtual ~cNopacityTimer(void);
        void SetGeometry(int width, int y);
        void CreateDate(void);
        void CreateShowName(void);
        void CreateConflictText(void);
        void CalculateHeight(int space);
        void CreatePixmaps(int x);
        void SetAlpha(int alpha);
        void Show(void);
        void Hide(void);
        int GetHeight(void) {return pixmap->ViewPort().Height();}
        void Render(void);
};

#endif //__NOPACITY_TIMERS_H