vdr 2.7.6
cSkinClassicDisplayChannel Class Reference

Public Member Functions

 cSkinClassicDisplayChannel (bool WithInfo)
virtual ~cSkinClassicDisplayChannel () override
virtual void SetChannel (const cChannel *Channel, int Number) override
virtual void SetEvents (const cEvent *Present, const cEvent *Following) override
virtual void SetMessage (eMessageType Type, const char *Text) override
virtual void Flush (void) override
Public Member Functions inherited from cSkinDisplayChannel
 cSkinDisplayChannel (void)
virtual void SetPositioner (const cPositioner *Positioner)
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)

Private Attributes

cOsdosd
int lineHeight
int timeWidth
bool message
cString lastDate

Additional Inherited Members

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

Detailed Description

Definition at line 78 of file skinclassic.c.

Constructor & Destructor Documentation

◆ cSkinClassicDisplayChannel()

cSkinClassicDisplayChannel::cSkinClassicDisplayChannel ( bool WithInfo)

◆ ~cSkinClassicDisplayChannel()

cSkinClassicDisplayChannel::~cSkinClassicDisplayChannel ( )
overridevirtual

Definition at line 112 of file skinclassic.c.

References osd.

Member Function Documentation

◆ Flush()

void cSkinClassicDisplayChannel::Flush ( void )
overridevirtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 152 of file skinclassic.c.

References clrBackground, DayDateTime(), cFont::GetFont(), lastDate, message, osd, TextFrame, Theme, and cFont::Width().

◆ SetChannel()

void cSkinClassicDisplayChannel::SetChannel ( const cChannel * Channel,
int Number )
overridevirtual

Sets the current channel to Channel.

If Number is not 0, the user is in the process of entering a channel number, which must be displayed accordingly.

Implements cSkinDisplayChannel.

Definition at line 117 of file skinclassic.c.

References ChannelString(), clrBackground, fontOsd, cFont::GetFont(), lastDate, lineHeight, osd, TextFrame, and Theme.

◆ SetEvents()

void cSkinClassicDisplayChannel::SetEvents ( const cEvent * Present,
const cEvent * Following )
overridevirtual

Sets the Present and Following EPG events.

If either of these is not available, NULL will be given.

Implements cSkinDisplayChannel.

Definition at line 124 of file skinclassic.c.

References clrBackground, fontOsd, cFont::GetFont(), cEvent::GetTimeString(), lineHeight, osd, cEvent::ShortText(), TextFrame, TextSpacing, Theme, timeWidth, and cEvent::Title().

◆ SetMessage()

void cSkinClassicDisplayChannel::SetMessage ( eMessageType Type,
const char * Text )
overridevirtual

Sets a one line message Text, with the given Type.

Type can be used to determine, e.g., the colors for displaying the Text. If Text is NULL, any previously displayed message must be removed, and any previous contents overwritten by the message must be restored.

Implements cSkinDisplayChannel.

Definition at line 138 of file skinclassic.c.

References fontOsd, cFont::GetFont(), lineHeight, message, osd, taCenter, and Theme.

Member Data Documentation

◆ lastDate

cString cSkinClassicDisplayChannel::lastDate
private

Definition at line 84 of file skinclassic.c.

Referenced by Flush(), and SetChannel().

◆ lineHeight

int cSkinClassicDisplayChannel::lineHeight
private

Definition at line 81 of file skinclassic.c.

Referenced by cSkinClassicDisplayChannel(), SetChannel(), SetEvents(), and SetMessage().

◆ message

bool cSkinClassicDisplayChannel::message
private

Definition at line 83 of file skinclassic.c.

Referenced by cSkinClassicDisplayChannel(), Flush(), and SetMessage().

◆ osd

cOsd* cSkinClassicDisplayChannel::osd
private

◆ timeWidth

int cSkinClassicDisplayChannel::timeWidth
private

Definition at line 82 of file skinclassic.c.

Referenced by cSkinClassicDisplayChannel(), and SetEvents().


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