vdr  2.2.0
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 26 of file skins.h.

Constructor & Destructor Documentation

cSkinDisplay::cSkinDisplay ( void  )

Definition at line 55 of file skins.c.

References cSkins::current.

cSkinDisplay::~cSkinDisplay ( )
virtual

Definition at line 61 of file skins.c.

References cSkins::current.

Member Function Documentation

static int cSkinDisplay::AvgCharWidth ( void  )
inlinestatic

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

Definition at line 33 of file skins.h.

References cSetup::FontOsdSize, and Setup.

static cSkinDisplay* cSkinDisplay::Current ( void  )
inlinestatic
int cSkinDisplay::EditableWidth ( void  )
inline

Definition at line 35 of file skins.h.

References editableWidth.

Referenced by cMenuEditStrItem::Set().

virtual void cSkinDisplay::Flush ( void  )
inlinevirtual
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 cSkinLCARSDisplayMenu, cSkinSTTNGDisplayMenu, cSkinCursesDisplayMenu, cSkinDisplayMenu, and cSkinClassicDisplayMenu.

Definition at line 40 of file skins.h.

Referenced by cMenuEditItem::DisplayHelp(), and cSkinDisplayMenu::SetMenuSortMode().

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 36 of file skins.h.

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

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

Member Data Documentation

cSkinDisplay * cSkinDisplay::current = NULL
staticprivate

Definition at line 28 of file skins.h.

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

int cSkinDisplay::editableWidth
private

Definition at line 29 of file skins.h.

Referenced by EditableWidth().


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