summaryrefslogtreecommitdiff
path: root/displayvolume.h
blob: bc4335bf3fa5119bc7d56fc7c15d6727bf3562cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __NOPACITY_DISPLAYVOLUME_H
#define __NOPACITY_DISPLAYVOLUME_H

#include <vdr/skins.h>
#include <vdr/thread.h>
#include "imagecache.h"

class cNopacityDisplayVolume : public cSkinDisplayVolume, cThread {
private:
    int FrameTime;
    int FadeTime;
    bool initial;
    bool muted;
    cOsd *osd;
    cPixmap *pixmapBackground;
    cPixmap *pixmapProgressBar;
    cPixmap *pixmapLabel;
    virtual void Action(void);
    void DrawProgressBar(int Current, int Total);
    tColor DrawProgressbarBackground(int left, int top, int width, int height);
public:
  cNopacityDisplayVolume(void);
  virtual ~cNopacityDisplayVolume(void);
  virtual void SetVolume(int Current, int Total, bool Mute);
  virtual void Flush(void);
  };

#endif //__NOPACITY_DISPLAYVOLUME_H