vdr
2.2.0
|
#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 cSkins::current.
|
virtual |
Definition at line 61 of file skins.c.
References cSkins::current.
|
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.
|
inlinestatic |
Returns the currently active cSkinDisplay.
Definition at line 48 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(), cSkinDisplayReplay::cProgressBar::Pos(), cMenuEditStrItem::Set(), and cSkinDisplayMenu::SetMenuSortMode().
|
inline |
Definition at line 35 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, cSkinLCARSDisplayMenu, cSkinClassicDisplayMessage, cSkinCursesDisplayMessage, cSkinCursesDisplayTracks, cSkinClassicDisplayTracks, cSkinCursesDisplayVolume, cSkinClassicDisplayVolume, cSkinCursesDisplayReplay, cSkinClassicDisplayReplay, cSkinSTTNGDisplayMenu, cSkinLCARSDisplayChannel, cSkinCursesDisplayMenu, cSkinCursesDisplayChannel, cSkinClassicDisplayMenu, cSkinSTTNGDisplayChannel, and cSkinClassicDisplayChannel.
Definition at line 46 of file skins.h.
Referenced by cDisplayChannel::cDisplayChannel(), cSkins::Flush(), cSkins::IsOpen(), 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, cSkinDisplayMenu, and cSkinClassicDisplayMenu.
Definition at line 40 of file skins.h.
Referenced by cMenuEditItem::DisplayHelp(), and cSkinDisplayMenu::SetMenuSortMode().
|
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().
|
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, cSkinLCARSDisplayMenu, cSkinClassicDisplayMessage, cSkinCursesDisplayMessage, cSkinCursesDisplayReplay, cSkinClassicDisplayReplay, cSkinSTTNGDisplayMenu, cSkinLCARSDisplayChannel, cSkinDisplayMessage, cSkinDisplayReplay, cSkinCursesDisplayMenu, cSkinCursesDisplayChannel, cSkinDisplayMenu, cSkinClassicDisplayMenu, cSkinSTTNGDisplayChannel, cSkinClassicDisplayChannel, and cSkinDisplayChannel.
Definition at line 43 of file skins.h.
Referenced by cSkins::Message(), cSkinDisplayReplay::cProgressBar::Pos(), and cSkinDisplayMenu::SetMenuSortMode().
|
staticprivate |
Definition at line 28 of file skins.h.
Referenced by Current(), cSkins::Current(), and cSkins::SetCurrent().
|
private |
Definition at line 29 of file skins.h.
Referenced by EditableWidth().