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)
 

Static Public Member Functions

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 skins.h.

Constructor & Destructor Documentation

◆ cSkinDisplay()

cSkinDisplay::cSkinDisplay ( void  )

Definition at line 55 of file skins.c.

References current, and editableWidth.

◆ ~cSkinDisplay()

cSkinDisplay::~cSkinDisplay ( )
virtual

Definition at line 61 of file skins.c.

References current.

Member Function Documentation

◆ AvgCharWidth()

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.

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

◆ Current()

static cSkinDisplay * cSkinDisplay::Current ( void  )
inlinestatic

◆ EditableWidth()

int cSkinDisplay::EditableWidth ( void  )
inline

Definition at line 48 of file skins.h.

References editableWidth.

Referenced by cMenuEditStrItem::Set().

◆ Flush()

virtual void cSkinDisplay::Flush ( void  )
inlinevirtual

◆ SetButtons()

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, and cSkinDisplayMenu.

Definition at line 53 of file skins.h.

Referenced by cMenuEditItem::DisplayHelp().

◆ SetEditableWidth()

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.

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

◆ SetMessage()

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

Member Data Documentation

◆ current

cSkinDisplay * cSkinDisplay::current = NULL
staticprivate

Definition at line 41 of file skins.h.

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

◆ editableWidth

int cSkinDisplay::editableWidth
private

Definition at line 42 of file skins.h.

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


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