blob: ad9d7f5738c1ca241a2b7e2bc79f4c9567aa7f30 (
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
|
#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;
int oldVidWinHeight;
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
|