vdr
2.0.5
|
#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 cSkinDisplay * | Current (void) |
Private Attributes | |
int | editableWidth |
Static Private Attributes | |
static cSkinDisplay * | current = NULL |
cSkinDisplay::cSkinDisplay | ( | void | ) |
Definition at line 55 of file skins.c.
References current, and editableWidth.
|
inlinestatic |
Returns the average width of a character in pixel (just a raw estimate).
Definition at line 32 of file skins.h.
References cSetup::FontOsdSize, and Setup.
Referenced by cSkinCursesDisplayMenu::SetItem(), and cSkinDisplayMenu::SetTabs().
|
inlinestatic |
Returns the currently active cSkinDisplay.
Definition at line 47 of file skins.h.
References current.
Referenced by cSkinDisplayReplay::cProgressBar::cProgressBar(), cMenuEditItem::DisplayHelp(), cSkinLCARSDisplayMenu::DrawLive(), cSkinLCARSDisplayMenu::DrawPlay(), cSkinLCARSDisplayChannel::Flush(), cSkins::Flush(), cSkins::IsOpen(), cSkins::Message(), and cMenuEditStrItem::Set().
|
inline |
Definition at line 34 of file skins.h.
References editableWidth.
Referenced by cMenuEditStrItem::Set().
|
inlinevirtual |
Actually draws the OSD display to the output device.
Reimplemented in cSkinLCARSDisplayMessage, cSkinLCARSDisplayTracks, cSkinLCARSDisplayVolume, cSkinLCARSDisplayReplay, cSkinSTTNGDisplayMessage, cSkinSTTNGDisplayTracks, cSkinSTTNGDisplayVolume, cSkinSTTNGDisplayReplay, cSkinClassicDisplayMessage, cSkinCursesDisplayMessage, cSkinLCARSDisplayMenu, cSkinCursesDisplayTracks, cSkinClassicDisplayTracks, cSkinCursesDisplayVolume, cSkinClassicDisplayVolume, cSkinCursesDisplayReplay, cSkinClassicDisplayReplay, cSkinSTTNGDisplayMenu, cSkinLCARSDisplayChannel, cSkinCursesDisplayMenu, cSkinCursesDisplayChannel, cSkinClassicDisplayMenu, cSkinSTTNGDisplayChannel, and cSkinClassicDisplayChannel.
Definition at line 45 of file skins.h.
Referenced by cDisplayChannel::cDisplayChannel(), cSkins::Flush(), cSkins::Message(), cDisplayChannel::ProcessKey(), cInterface::QueryKeys(), cDisplayTracks::Show(), cDisplaySubtitleTracks::Show(), and cReplayControl::ShowProgress().
|
inlinevirtual |
Sets the color buttons to the given strings, provided this cSkinDisplay actually has a color button display.
Reimplemented in cSkinLCARSDisplayMenu, cSkinSTTNGDisplayMenu, cSkinCursesDisplayMenu, cSkinClassicDisplayMenu, and cSkinDisplayMenu.
Definition at line 39 of file skins.h.
Referenced by cMenuEditItem::DisplayHelp().
|
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 35 of file skins.h.
References editableWidth.
Referenced by cSkinClassicDisplayMenu::SetItem(), cSkinCursesDisplayMenu::SetItem(), cSkinSTTNGDisplayMenu::SetItem(), and cSkinLCARSDisplayMenu::SetItem().
|
inlinevirtual |
Sets a one line message Text, with the given Type.
Type can be used to determine, e.g., the colors for displaying the Text.
Reimplemented in cSkinLCARSDisplayMessage, cSkinLCARSDisplayReplay, cSkinSTTNGDisplayMessage, cSkinSTTNGDisplayReplay, cSkinClassicDisplayMessage, cSkinCursesDisplayMessage, cSkinLCARSDisplayMenu, cSkinCursesDisplayReplay, cSkinClassicDisplayReplay, cSkinSTTNGDisplayMenu, cSkinLCARSDisplayChannel, cSkinDisplayMessage, cSkinDisplayReplay, cSkinCursesDisplayMenu, cSkinCursesDisplayChannel, cSkinClassicDisplayMenu, cSkinDisplayMenu, cSkinSTTNGDisplayChannel, cSkinClassicDisplayChannel, and cSkinDisplayChannel.
Definition at line 42 of file skins.h.
Referenced by cSkins::Message().
|
staticprivate |
Definition at line 27 of file skins.h.
Referenced by cSkinDisplay(), Current(), cSkins::SetCurrent(), and ~cSkinDisplay().
|
private |
Definition at line 28 of file skins.h.
Referenced by cSkinDisplay(), EditableWidth(), and SetEditableWidth().