vdr 2.6.1
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
cSkinDisplay Class Reference

#include <skins.h>

Public Member Functions

 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)
 
virtual void Flush (void)
 
 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)
 
virtual void Flush (void)
 

Static Public Member Functions

static int AvgCharWidth (void)
 
static cSkinDisplayCurrent (void)
 
static int AvgCharWidth (void)
 
static cSkinDisplayCurrent (void)
 

Private Attributes

int editableWidth
 

Static Private Attributes

static cSkinDisplaycurrent = NULL
 

Detailed Description

Definition at line 39 of file include/vdr/skins.h.

Constructor & Destructor Documentation

◆ cSkinDisplay() [1/2]

cSkinDisplay::cSkinDisplay ( void  )

Definition at line 55 of file skins.c.

References current, and editableWidth.

◆ ~cSkinDisplay() [1/2]

cSkinDisplay::~cSkinDisplay ( )
virtual

Definition at line 61 of file skins.c.

References current.

◆ cSkinDisplay() [2/2]

cSkinDisplay::cSkinDisplay ( void  )

◆ ~cSkinDisplay() [2/2]

virtual cSkinDisplay::~cSkinDisplay ( )
virtual

Member Function Documentation

◆ AvgCharWidth() [1/2]

static int cSkinDisplay::AvgCharWidth ( void  )
inlinestatic

Returns the average width of a character in pixel (just a raw estimate).

Definition at line 46 of file include/vdr/skins.h.

References cSetup::FontOsdSize, and Setup.

Referenced by cSkinCursesDisplayMenu::SetItem(), and cSkinDisplayMenu::SetTabs().

◆ AvgCharWidth() [2/2]

static int cSkinDisplay::AvgCharWidth ( void  )
inlinestatic

Returns the average width of a character in pixel (just a raw estimate).

Definition at line 46 of file skins.h.

References cSetup::FontOsdSize, and Setup.

◆ Current() [1/2]

static cSkinDisplay * cSkinDisplay::Current ( void  )
inlinestatic

◆ Current() [2/2]

static cSkinDisplay * cSkinDisplay::Current ( void  )
inlinestatic

Returns the currently active cSkinDisplay.

Definition at line 61 of file skins.h.

References current.

◆ EditableWidth() [1/2]

int cSkinDisplay::EditableWidth ( void  )
inline

Definition at line 48 of file include/vdr/skins.h.

References editableWidth.

Referenced by cMenuEditStrItem::Set().

◆ EditableWidth() [2/2]

int cSkinDisplay::EditableWidth ( void  )
inline

Definition at line 48 of file skins.h.

References editableWidth.

◆ Flush() [1/2]

virtual void cSkinDisplay::Flush ( void  )
inlinevirtual

◆ Flush() [2/2]

virtual void cSkinDisplay::Flush ( void  )
inlinevirtual

◆ SetButtons() [1/2]

virtual void cSkinDisplay::SetButtons ( const char *  Red,
const char *  Green = NULL,
const char *  Yellow = NULL,
const char *  Blue = NULL 
)
inlinevirtual

Sets the color buttons to the given strings, provided this cSkinDisplay actually has a color button display.

Reimplemented in cSkinCursesDisplayMenu, cSkinClassicDisplayMenu, cSkinLCARSDisplayMenu, cSkinSTTNGDisplayMenu, cSkinDisplayMenu, and cSkinDisplayMenu.

Definition at line 53 of file include/vdr/skins.h.

Referenced by cMenuEditItem::DisplayHelp().

◆ SetButtons() [2/2]

virtual void cSkinDisplay::SetButtons ( const char *  Red,
const char *  Green = NULL,
const char *  Yellow = NULL,
const char *  Blue = NULL 
)
inlinevirtual

Sets the color buttons to the given strings, provided this cSkinDisplay actually has a color button display.

Reimplemented in cSkinCursesDisplayMenu, cSkinClassicDisplayMenu, cSkinLCARSDisplayMenu, cSkinSTTNGDisplayMenu, cSkinDisplayMenu, and cSkinDisplayMenu.

Definition at line 53 of file skins.h.

◆ SetEditableWidth() [1/2]

void cSkinDisplay::SetEditableWidth ( int  Width)
inline

If an item is set through a call to cSkinDisplayMenu::SetItem(), this function shall be called to set the width of the rightmost tab separated field.

This information will be used for editable items.

Definition at line 49 of file include/vdr/skins.h.

References editableWidth.

Referenced by cSkinCursesDisplayMenu::SetItem(), cSkinClassicDisplayMenu::SetItem(), cSkinLCARSDisplayMenu::SetItem(), and cSkinSTTNGDisplayMenu::SetItem().

◆ SetEditableWidth() [2/2]

void cSkinDisplay::SetEditableWidth ( int  Width)
inline

If an item is set through a call to cSkinDisplayMenu::SetItem(), this function shall be called to set the width of the rightmost tab separated field.

This information will be used for editable items.

Definition at line 49 of file skins.h.

References editableWidth.

◆ SetMessage() [1/2]

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

◆ SetMessage() [2/2]

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

Member Data Documentation

◆ current

static cSkinDisplay * cSkinDisplay::current = NULL
staticprivate

Definition at line 41 of file include/vdr/skins.h.

Referenced by cSkinDisplay(), Current(), cSkins::SetCurrent(), and ~cSkinDisplay().

◆ editableWidth

int cSkinDisplay::editableWidth
private

Definition at line 42 of file include/vdr/skins.h.

Referenced by cSkinDisplay(), EditableWidth(), and SetEditableWidth().


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