vdr  1.7.31
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 24 of file include/vdr/skins.h.

Constructor & Destructor Documentation

cSkinDisplay::cSkinDisplay ( void  )

Definition at line 55 of file skins.c.

References current, and editableWidth.

cSkinDisplay::~cSkinDisplay ( )
virtual

Definition at line 61 of file skins.c.

References current.

cSkinDisplay::cSkinDisplay ( void  )
virtual cSkinDisplay::~cSkinDisplay ( )
virtual

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 31 of file include/vdr/skins.h.

References cSetup::FontOsdSize, and Setup.

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

static int cSkinDisplay::AvgCharWidth ( void  )
inlinestatic

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

Definition at line 31 of file skins.h.

References cSetup::FontOsdSize, and Setup.

static cSkinDisplay* cSkinDisplay::Current ( void  )
inlinestatic
static cSkinDisplay* cSkinDisplay::Current ( void  )
inlinestatic

Returns the currently active cSkinDisplay.

Definition at line 46 of file skins.h.

References current.

int cSkinDisplay::EditableWidth ( void  )
inline

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

References editableWidth.

Referenced by cMenuEditStrItem::Set().

int cSkinDisplay::EditableWidth ( void  )
inline

Definition at line 33 of file skins.h.

References editableWidth.

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

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

Referenced by cMenuEditItem::DisplayHelp().

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

Definition at line 38 of file skins.h.

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

References editableWidth.

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 34 of file include/vdr/skins.h.

References editableWidth.

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

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

Member Data Documentation

static cSkinDisplay * cSkinDisplay::current = NULL
staticprivate

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

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

int cSkinDisplay::editableWidth
private

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

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


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