From 7a79059414ea2f10cba1710de0e37dcbbdfbfa42 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Thu, 11 Jul 2019 11:07:13 +0200 Subject: Change files to unix --- styledpixmap.h | 116 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) (limited to 'styledpixmap.h') diff --git a/styledpixmap.h b/styledpixmap.h index 82af25c..af463fe 100644 --- a/styledpixmap.h +++ b/styledpixmap.h @@ -1,58 +1,58 @@ -#ifndef __TVGUIDE_STYLEDPIXMAP_H -#define __TVGUIDE_STYLEDPIXMAP_H - -#include -#include -#include "timer.h" -#include "config.h" - -enum eBackgroundType { - bgGrid, - bgStatusHeaderFull, - bgStatusHeaderWindowed, - bgChannelHeader, - bgChannelGroup, - bgClock, - bgButton, - bgRecMenuBack, - bgChannelJump, -}; - -// --- cStyledPixmap ------------------------------------------------------------- - -class cStyledPixmap { -private: - void drawVerticalLine(int x, int yStart, int yStop, tColor col); - void drawHorizontalLine(int y, int xStart, int xStop, tColor col); - void drawBackgroundButton(bool active); -protected: - cPixmap *pixmap; - tColor color; - tColor colorBlending; - void setPixmap(cPixmap *pixmap); -public: - cStyledPixmap(void); - cStyledPixmap(cPixmap *pixmap); - virtual ~cStyledPixmap(void); - void drawBackground(); - void drawBackgroundGraphical(eBackgroundType type, bool active = false); - void drawBlendedBackground(); - void drawSparsedBackground(); - void drawBorder(); - void drawBoldBorder(); - void drawDefaultBorder(int width, int height); - void drawRoundedCorners(int width, int height, int radius); - void setColor(tColor color, tColor colorBlending) {this->color = color; this->colorBlending = colorBlending;}; - void SetAlpha(int alpha) {pixmap->SetAlpha(alpha);}; - void SetLayer(int layer) {pixmap->SetLayer(layer);}; - void Fill(tColor clr) {pixmap->Fill(clr);}; - void DrawText(const cPoint &Point, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font); - void DrawImage(const cPoint &Point, const cImage &Image); - void DrawRectangle(const cRect &Rect, tColor Color); - void DrawEllipse(const cRect &Rect, tColor Color, int Quadrant); - void SetViewPort(const cRect &Rect); - int Width() {return pixmap->ViewPort().Width();}; - int Height() {return pixmap->ViewPort().Height();}; -}; - -#endif //__TVGUIDE_STYLEDPIXMAP_H \ No newline at end of file +#ifndef __TVGUIDE_STYLEDPIXMAP_H +#define __TVGUIDE_STYLEDPIXMAP_H + +#include +#include +#include "timer.h" +#include "config.h" + +enum eBackgroundType { + bgGrid, + bgStatusHeaderFull, + bgStatusHeaderWindowed, + bgChannelHeader, + bgChannelGroup, + bgClock, + bgButton, + bgRecMenuBack, + bgChannelJump, +}; + +// --- cStyledPixmap ------------------------------------------------------------- + +class cStyledPixmap { +private: + void drawVerticalLine(int x, int yStart, int yStop, tColor col); + void drawHorizontalLine(int y, int xStart, int xStop, tColor col); + void drawBackgroundButton(bool active); +protected: + cPixmap *pixmap; + tColor color; + tColor colorBlending; + void setPixmap(cPixmap *pixmap); +public: + cStyledPixmap(void); + cStyledPixmap(cPixmap *pixmap); + virtual ~cStyledPixmap(void); + void drawBackground(); + void drawBackgroundGraphical(eBackgroundType type, bool active = false); + void drawBlendedBackground(); + void drawSparsedBackground(); + void drawBorder(); + void drawBoldBorder(); + void drawDefaultBorder(int width, int height); + void drawRoundedCorners(int width, int height, int radius); + void setColor(tColor color, tColor colorBlending) {this->color = color; this->colorBlending = colorBlending;}; + void SetAlpha(int alpha) {pixmap->SetAlpha(alpha);}; + void SetLayer(int layer) {pixmap->SetLayer(layer);}; + void Fill(tColor clr) {pixmap->Fill(clr);}; + void DrawText(const cPoint &Point, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font); + void DrawImage(const cPoint &Point, const cImage &Image); + void DrawRectangle(const cRect &Rect, tColor Color); + void DrawEllipse(const cRect &Rect, tColor Color, int Quadrant); + void SetViewPort(const cRect &Rect); + int Width() {return pixmap->ViewPort().Width();}; + int Height() {return pixmap->ViewPort().Height();}; +}; + +#endif //__TVGUIDE_STYLEDPIXMAP_H -- cgit v1.2.3