mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 13:01:48 +00:00
Initial push tvguide 0.0.1
This commit is contained in:
35
styledpixmap.h
Normal file
35
styledpixmap.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef __TVGUIDE_STYLEDPIXMAP_H
|
||||
#define __TVGUIDE_STYLEDPIXMAP_H
|
||||
|
||||
// --- cStyledPixmap -------------------------------------------------------------
|
||||
|
||||
class cStyledPixmap {
|
||||
private:
|
||||
void drawVerticalLine(int x, int yStart, int yStop, tColor col);
|
||||
void drawHorizontalLine(int y, int xStart, int xStop, tColor col);
|
||||
protected:
|
||||
cPixmap *pixmap;
|
||||
cString caller;
|
||||
tColor color;
|
||||
tColor colorBlending;
|
||||
void setPixmap(cPixmap *pixmap);
|
||||
public:
|
||||
cStyledPixmap(void);
|
||||
cStyledPixmap(cPixmap *pixmap, cString caller);
|
||||
virtual ~cStyledPixmap(void);
|
||||
void drawBackground();
|
||||
void drawBlendedBackground();
|
||||
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 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);
|
||||
int Width() {return pixmap->ViewPort().Width();};
|
||||
int Height() {return pixmap->ViewPort().Height();};
|
||||
};
|
||||
|
||||
#endif //__TVGUIDE_STYLEDPIXMAP_H
|
Reference in New Issue
Block a user