summaryrefslogtreecommitdiff
path: root/displaytracks.h
blob: a194158b7a31d3b79dbd1e9d1e51372c18656e4d (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
#pragma once

#include "baserender.h"

class cFlatDisplayTracks : public cFlatBaseRender, public cSkinDisplayTracks {
    private:
        cPixmap *tracksPixmap;
        cPixmap *tracksLogoPixmap;

        cImage *img_ac3;
        cImage *img_stereo;
        int ac3Width, stereoWidth;
        
        int itemHeight, itemsHeight;
        int maxItemWidth;
        int currentIndex;
        
        void SetItem(const char *Text, int Index, bool Current);
    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(void);
};