vdr
1.7.27
|
Public Member Functions | |
cSkinCursesDisplayTracks (const char *Title, int NumTracks, const char *const *Tracks) | |
virtual | ~cSkinCursesDisplayTracks () |
virtual void | SetTrack (int Index, const char *const *Tracks) |
virtual void | SetAudioChannel (int AudioChannel) |
virtual void | Flush (void) |
Private Member Functions | |
void | SetItem (const char *Text, int Index, bool Current) |
Private Attributes | |
cOsd * | osd |
int | itemsWidth |
int | currentIndex |
Definition at line 620 of file skincurses.c.
cSkinCursesDisplayTracks::cSkinCursesDisplayTracks | ( | const char * | Title, |
int | NumTracks, | ||
const char *const * | Tracks | ||
) |
Definition at line 634 of file skincurses.c.
References clrBackground, clrBlack, clrCyan, currentIndex, cOsd::DrawRectangle(), cOsd::DrawText(), itemsWidth, max(), min(), osd, ScOsdHeight, ScOsdWidth, SetItem(), and cCursesFont::Width().
cSkinCursesDisplayTracks::~cSkinCursesDisplayTracks | ( | ) | [virtual] |
Definition at line 648 of file skincurses.c.
References osd.
void cSkinCursesDisplayTracks::Flush | ( | void | ) | [virtual] |
Actually draws the OSD display to the output device.
Reimplemented from cSkinDisplay.
Definition at line 676 of file skincurses.c.
References cOsd::Flush(), and osd.
virtual void cSkinCursesDisplayTracks::SetAudioChannel | ( | int | AudioChannel | ) | [inline, virtual] |
Sets the audio channel indicator.
0=stereo, 1=left, 2=right, -1=don't display the audio channel indicator.
Implements cSkinDisplayTracks.
Definition at line 630 of file skincurses.c.
void cSkinCursesDisplayTracks::SetItem | ( | const char * | Text, |
int | Index, | ||
bool | Current | ||
) | [private] |
Definition at line 653 of file skincurses.c.
References clrBackground, clrBlack, clrCyan, clrWhite, currentIndex, cOsd::DrawText(), itemsWidth, and osd.
Referenced by cSkinCursesDisplayTracks(), and SetTrack().
void cSkinCursesDisplayTracks::SetTrack | ( | int | Index, |
const char *const * | Tracks | ||
) | [virtual] |
< This class implements the track display.
Sets the current track to the one given by Index, which points into the Tracks array of strings.
Implements cSkinDisplayTracks.
Definition at line 669 of file skincurses.c.
References currentIndex, and SetItem().
int cSkinCursesDisplayTracks::currentIndex [private] |
Definition at line 624 of file skincurses.c.
Referenced by cSkinCursesDisplayTracks(), SetItem(), and SetTrack().
int cSkinCursesDisplayTracks::itemsWidth [private] |
Definition at line 623 of file skincurses.c.
Referenced by cSkinCursesDisplayTracks(), and SetItem().
cOsd* cSkinCursesDisplayTracks::osd [private] |
Definition at line 622 of file skincurses.c.
Referenced by cSkinCursesDisplayTracks(), Flush(), SetItem(), and ~cSkinCursesDisplayTracks().