vdr-plugin-tvguide/timeline.h

31 lines
885 B
C
Raw Normal View History

2019-07-11 11:07:13 +02:00
#ifndef __TVGUIDE_TIMELINE_H
#define __TVGUIDE_TIMELINE_H
2019-07-11 14:40:41 +02:00
#include "timemanager.h"
2019-07-11 11:07:13 +02:00
#include "styledpixmap.h"
// --- cTimeLine -------------------------------------------------------------
class cTimeLine {
private:
2019-07-11 14:34:31 +02:00
cTimeManager *timeManager;
2019-07-11 11:07:13 +02:00
cStyledPixmap *dateViewer;
cPixmap *timeline;
cStyledPixmap *clock;
cPixmap *timeBase;
2019-10-13 12:16:34 +02:00
cString lastClock;
2019-07-11 11:07:13 +02:00
void decorateTile(int posX, int posY, int tileWidth, int tileHeight);
void drawRoundedCorners(int posX, int posY, int width, int height, int radius);
cImage *createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend);
public:
2019-07-11 14:34:31 +02:00
cTimeLine(cTimeManager *timeManager);
2019-07-11 11:07:13 +02:00
virtual ~cTimeLine(void);
2019-10-13 13:31:40 +02:00
void setTimeline(void);
void drawDateViewer(void);
void drawTimeline(void);
void drawCurrentTimeBase(void);
2019-10-13 12:16:34 +02:00
bool drawClock();
2019-07-11 11:07:13 +02:00
};
#endif //__TVGUIDE_TIMELINE_H