vdr 2.7.3
cSkinCursesDisplayChannel Class Reference

Public Member Functions

 cSkinCursesDisplayChannel (bool WithInfo)
 
virtual ~cSkinCursesDisplayChannel ()
 
virtual void SetChannel (const cChannel *Channel, int Number)
 
virtual void SetEvents (const cEvent *Present, const cEvent *Following)
 
virtual void SetMessage (eMessageType Type, const char *Text)
 
virtual void Flush (void)
 
- 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 timeWidth
 
bool message
 

Additional Inherited Members

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

Detailed Description

Definition at line 189 of file skincurses.c.

Constructor & Destructor Documentation

◆ cSkinCursesDisplayChannel()

cSkinCursesDisplayChannel::cSkinCursesDisplayChannel ( bool WithInfo)

◆ ~cSkinCursesDisplayChannel()

cSkinCursesDisplayChannel::~cSkinCursesDisplayChannel ( )
virtual

Definition at line 212 of file skincurses.c.

References osd.

Member Function Documentation

◆ Flush()

void cSkinCursesDisplayChannel::Flush ( void )
virtual

Actually draws the OSD display to the output device.

Reimplemented from cSkinDisplay.

Definition at line 250 of file skincurses.c.

References clrBackground, clrWhite, DayDateTime(), cOsd::DrawText(), cOsd::Flush(), Font, message, osd, ScOsdWidth, and Utf8StrLen().

◆ SetChannel()

void cSkinCursesDisplayChannel::SetChannel ( const cChannel * Channel,
int Number )
virtual

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 217 of file skincurses.c.

References ChannelString(), clrBackground, clrWhite, cOsd::DrawRectangle(), cOsd::DrawText(), Font, osd, and ScOsdWidth.

◆ SetEvents()

void cSkinCursesDisplayChannel::SetEvents ( const cEvent * Present,
const cEvent * Following )
virtual

Sets the Present and Following EPG events.

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

Implements cSkinDisplayChannel.

Definition at line 223 of file skincurses.c.

References clrBackground, clrCyan, clrRed, clrWhite, clrYellow, cOsd::DrawRectangle(), cOsd::DrawText(), Font, cEvent::GetTimeString(), osd, ScOsdWidth, cEvent::ShortText(), timeWidth, and cEvent::Title().

◆ SetMessage()

void cSkinCursesDisplayChannel::SetMessage ( eMessageType Type,
const char * Text )
virtual

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 237 of file skincurses.c.

References clrMessage, cOsd::DrawText(), Font, message, osd, cOsd::RestoreRegion(), cOsd::SaveRegion(), ScOsdWidth, and taCenter.

Member Data Documentation

◆ message

bool cSkinCursesDisplayChannel::message
private

Definition at line 193 of file skincurses.c.

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

◆ osd

cOsd* cSkinCursesDisplayChannel::osd
private

◆ timeWidth

int cSkinCursesDisplayChannel::timeWidth
private

Definition at line 192 of file skincurses.c.

Referenced by cSkinCursesDisplayChannel(), and SetEvents().


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