vdr-plugin-tvguide/timeline.h

29 lines
851 B
C
Raw Permalink Normal View History

2013-01-17 13:16:44 +01:00
#ifndef __TVGUIDE_TIMELINE_H
#define __TVGUIDE_TIMELINE_H
2013-12-07 15:51:50 +01:00
#include "timer.h"
#include "styledpixmap.h"
2013-01-17 13:16:44 +01:00
// --- cTimeLine -------------------------------------------------------------
class cTimeLine {
private:
2013-05-26 11:38:05 +02:00
cMyTime *myTime;
cStyledPixmap *dateViewer;
cPixmap *timeline;
cStyledPixmap *clock;
2014-01-15 18:25:37 +01:00
cPixmap *timeBase;
2013-07-23 19:47:40 +02:00
void decorateTile(int posX, int posY, int tileWidth, int tileHeight);
void drawRoundedCorners(int posX, int posY, int width, int height, int radius);
2014-01-15 18:25:37 +01:00
cImage *createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend);
void drawCurrentTimeBase(void);
2013-01-17 13:16:44 +01:00
public:
2013-05-26 11:38:05 +02:00
cTimeLine(cMyTime *myTime);
virtual ~cTimeLine(void);
2014-01-15 18:25:37 +01:00
void setTimeline();
2013-05-26 11:38:05 +02:00
void drawDateViewer();
void drawTimeline();
void drawClock();
2013-01-17 13:16:44 +01:00
};
#endif //__TVGUIDE_TIMELINE_H