summaryrefslogtreecommitdiff
path: root/textwindow.h
blob: 5475da73eab4deb80cb4358ddb9d5323e5210f34 (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
#ifndef __NOPACITY_TEXTWINDOW_H
#define __NOPACITY_TEXTWINDOW_H
class cNopacityTextWindow : public cThread {
private:
    cOsd *osd;
    cFont *font;
    cPixmap *pixmapBackground;
    cPixmap *pixmap;
    cRect *geometry;
    cRect *vidWin;
    cRect oldVidWin;
    bool scaledWindow;
    const char *text;
    cTextWrapper twText;
    bool CreatePixmap(int border);
    void DrawText(int border);
    void DoSleep(int duration);
    virtual void Action(void);
public:
    cNopacityTextWindow(cOsd *osd, cFont *font, cRect *vidWin);
    virtual ~cNopacityTextWindow(void);
    void SetGeometry(cRect *geo) {geometry = geo;};
    void SetText(const char *Text) {text = Text;};
};

#endif //__NOPACITY_TEXTWINDOW_H