diff options
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 |