#ifndef __HELPERS_H #define __HELPERS_H #include #include 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 flds; public: splitstring(const char *s) : std::string(s) { }; std::vector& split(char delim, int rep=0); }; cPlugin *GetScraperPlugin(void); #endif // __HELPERS_H