diff options
author | lordjaxom <lordjaxom> | 2004-07-14 16:49:10 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-07-14 16:49:10 +0000 |
commit | 5071a1754f3db0adcf477ecf8e5b2a818d1935bd (patch) | |
tree | 210c39c7871d0192ec5aad51096ea39fa47ccd9e /screen.h | |
parent | f2a4ea2dc8c0d915e0f2af6f4ec1a228e1e94453 (diff) | |
download | vdr-plugin-text2skin-5071a1754f3db0adcf477ecf8e5b2a818d1935bd.tar.gz vdr-plugin-text2skin-5071a1754f3db0adcf477ecf8e5b2a818d1935bd.tar.bz2 |
- fixed display of scrollbar if there is no text presentv0.0.8
- fixed animation delay if update takes longer than the delay
- using backgrounds also in 8-bit fullscreen mode to improve performance
- implemented screen layer to improve performance
- corrected offsets and tab widths in main menu
- implemented parameters "current", "mark" and "selected" to choose mark colors
in replay display (defaults to the old values)
- implemented color value "None" to be able to unset a color
Diffstat (limited to 'screen.h')
-rw-r--r-- | screen.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/screen.h b/screen.h new file mode 100644 index 0000000..71572a0 --- /dev/null +++ b/screen.h @@ -0,0 +1,33 @@ +/* + * $Id: screen.h,v 1.2 2004/07/13 13:52:51 lordjaxom Exp $ + */ + +#ifndef VDR_TEXT2SKIN_SCREEN_H +#define VDR_TEXT2SKIN_SCREEN_H + +#include "common.h" +#include <vdr/osd.h> + +class cText2SkinScreen { +private: + cOsd *mOsd; + cBitmap *mRegions[MAXOSDAREAS]; + int mNumRegions; + +public: + cText2SkinScreen(int x, int y); + ~cText2SkinScreen(); + + eOsdError SetAreas(const tArea *Areas, int NumAreas); + + void Clear(void); + void DrawBitmap(int x, int y, const cBitmap &Bitmap, tColor ColorFg = 0, tColor ColorBg = 0); + void DrawRectangle(int x1, int y1, int x2, int y2, tColor Color); + void DrawText(int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width = 0, int Height = 0, int Alignment = taDefault); + void DrawEllipse(int x1, int y1, int x2, int y2, tColor Color, int Quadrants = 0); + void DrawSlope(int x1, int y1, int x2, int y2, tColor Color, int Type); + + void Flush(void); +}; + +#endif // VDR_TEXT2SKIN_SCREEN_H |