diff options
author | louis <louis.braun@gmx.de> | 2013-11-07 19:07:54 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-07 19:07:54 +0100 |
commit | e1c74101872ec68cfe3ebcc66faf5a9b6cf4b9f0 (patch) | |
tree | aa3416adc4ee7ff3cda1c7f2a5f93afa6d745815 /helpers.h | |
parent | e8609119a6d67e05cc42670ae84c4fb3f5fe2d06 (diff) | |
download | skin-nopacity-e1c74101872ec68cfe3ebcc66faf5a9b6cf4b9f0.tar.gz skin-nopacity-e1c74101872ec68cfe3ebcc66faf5a9b6cf4b9f0.tar.bz2 |
forgot helpers.h
Diffstat (limited to 'helpers.h')
-rw-r--r-- | helpers.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h new file mode 100644 index 0000000..ceb30ea --- /dev/null +++ b/helpers.h @@ -0,0 +1,20 @@ +#ifndef __HELPERS_H +#define __HELPERS_H + +#include <vdr/osd.h> +cOsd *CreateOsd(int Left, int Top, int Width, int Height); +void DrawBlendedBackground(cPixmap *pixmap, int xStart, int width, tColor color, tColor colorBlending, bool fromTop); +void DrawRoundedCorners(cPixmap *p, int radius, int x, int y, int width, int height); +void DrawRoundedCornersWithBorder(cPixmap *p, tColor borderColor, int radius, int width, int height); +cSize ScaleToFit(int widthMax, int heightMax, int widthOriginal, int heightOriginal); +int Minimum(int a, int b, int c, int d, int e, int f); +std::string CutText(std::string text, int width, const cFont *font); +std::string StrToLowerCase(std::string str); + +class splitstring : public std::string { + std::vector<std::string> flds; +public: + splitstring(const char *s) : std::string(s) { }; + std::vector<std::string>& split(char delim, int rep=0); +}; +#endif // __HELPERS_H |