vdr  1.7.27
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
cSkinDisplay Class Reference

#include <skins.h>

List of all members.

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

Definition at line 55 of file skins.c.

References current, and editableWidth.

Definition at line 61 of file skins.c.

References current.

virtual cSkinDisplay::~cSkinDisplay ( ) [virtual]

Member Function Documentation

static int cSkinDisplay::AvgCharWidth ( void  ) [inline, static]

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  ) [inline, static]

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  ) [inline, static]
static cSkinDisplay* cSkinDisplay::Current ( void  ) [inline, static]

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  ) [inline, virtual]
virtual void cSkinDisplay::Flush ( void  ) [inline, virtual]
virtual void cSkinDisplay::SetButtons ( const char *  Red,
const char *  Green = NULL,
const char *  Yellow = NULL,
const char *  Blue = NULL 
) [inline, virtual]

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

Reimplemented in 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 
) [inline, virtual]

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

Reimplemented in 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(), and cSkinSTTNGDisplayMenu::SetItem().

virtual void cSkinDisplay::SetMessage ( eMessageType  Type,
const char *  Text 
) [inline, virtual]
virtual void cSkinDisplay::SetMessage ( eMessageType  Type,
const char *  Text 
) [inline, virtual]

Member Data Documentation

static cSkinDisplay * cSkinDisplay::current = NULL [static, private]

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

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

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: