vdr 2.6.9
cSkinCursesDisplayVolume Class Reference

Public Member Functions

 cSkinCursesDisplayVolume (void)
 
virtual ~cSkinCursesDisplayVolume ()
 
virtual void SetVolume (int Current, int Total, bool Mute)
 
virtual void Flush (void)
 
- Public Member Functions inherited from cSkinDisplayVolume
- Public Member Functions inherited from cSkinDisplay
 cSkinDisplay (void)
 
virtual ~cSkinDisplay ()
 
int EditableWidth (void)
 
void SetEditableWidth (int Width)
 
virtual void SetButtons (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL)
 
virtual void SetMessage (eMessageType Type, const char *Text)
 

Private Attributes

cOsdosd
 

Additional Inherited Members

- Static Public Member Functions inherited from cSkinDisplay
static int AvgCharWidth (void)
 
static cSkinDisplayCurrent (void)
 

Detailed Description

Definition at line 596 of file skincurses.c.

Constructor & Destructor Documentation

◆ cSkinCursesDisplayVolume()

cSkinCursesDisplayVolume::cSkinCursesDisplayVolume ( void )

Definition at line 606 of file skincurses.c.

References osd, and ScOsdHeight.

◆ ~cSkinCursesDisplayVolume()

cSkinCursesDisplayVolume::~cSkinCursesDisplayVolume ( )
virtual

Definition at line 611 of file skincurses.c.

References osd.

Member Function Documentation

◆ Flush()

void cSkinCursesDisplayVolume::Flush ( void )
virtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 633 of file skincurses.c.

References cOsd::Flush(), and osd.

◆ SetVolume()

void cSkinCursesDisplayVolume::SetVolume ( int Current,
int Total,
bool Mute )
virtual

< This class implements the volume/mute display.

Sets the volume to the given Current value, which is in the range 0...Total. If Mute is true, audio is currently muted and a "mute" indicator shall be displayed.

Implements cSkinDisplayVolume.

Definition at line 616 of file skincurses.c.

References clrBackground, clrGreen, clrTransparent, clrWhite, cSkinDisplay::Current(), cOsd::DrawRectangle(), cOsd::DrawText(), Font, osd, ScOsdWidth, tr, and Utf8StrLen().

Member Data Documentation

◆ osd

cOsd* cSkinCursesDisplayVolume::osd
private

The documentation for this class was generated from the following file: