forked from vdr-projects/vdr-plugin-skinflatplus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisplaytracks.h
33 lines (27 loc) · 967 Bytes
/
displaytracks.h
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
29
30
31
32
33
/*
* Skin flatPlus: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#pragma once
#include "./baserender.h"
class cFlatDisplayTracks : public cFlatBaseRender, public cSkinDisplayTracks {
public:
cFlatDisplayTracks(const char *Title, int NumTracks, const char * const *Tracks);
virtual ~cFlatDisplayTracks();
virtual void SetTrack(int Index, const char * const *Tracks);
virtual void SetAudioChannel(int AudioChannel);
virtual void Flush();
private:
cPixmap *TracksPixmap {nullptr};
cPixmap *TracksLogoPixmap {nullptr};
cImage *img_ac3 {nullptr};
cImage *img_stereo {nullptr};
int m_Ac3Width {0}, m_StereoWidth {0};
int m_ItemHeight {0}, ItemsHeight {0};
int m_MaxItemWidth {0};
int m_CurrentIndex {0};
void SetItem(const char *Text, int Index, bool Current);
};