vdr
2.4.7
|
#include <osd.h>
Public Member Functions | |
cTextScroller (void) | |
cTextScroller (cOsd *Osd, int Left, int Top, int Width, int Height, const char *Text, const cFont *Font, tColor ColorFg, tColor ColorBg) | |
void | Set (cOsd *Osd, int Left, int Top, int Width, int Height, const char *Text, const cFont *Font, tColor ColorFg, tColor ColorBg) |
void | Reset (void) |
int | Left (void) |
int | Top (void) |
int | Width (void) |
int | Height (void) |
int | Total (void) |
int | Offset (void) |
int | Shown (void) |
bool | CanScroll (void) |
bool | CanScrollUp (void) |
bool | CanScrollDown (void) |
void | Scroll (bool Up, bool Page) |
Private Member Functions | |
void | DrawText (void) |
Private Attributes | |
cOsd * | osd |
int | left |
int | top |
int | width |
int | height |
const cFont * | font |
tColor | colorFg |
tColor | colorBg |
int | offset |
int | shown |
cTextWrapper | textWrapper |
cTextScroller::cTextScroller | ( | void | ) |
|
inline |
Definition at line 1061 of file osd.h.
References CanScrollDown(), and CanScrollUp().
Referenced by cSkinLCARSDisplayMenu::DrawTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1063 of file osd.h.
References offset, shown, and Total().
Referenced by CanScroll(), cSkinLCARSDisplayMenu::DrawTextScrollbar(), Scroll(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1062 of file osd.h.
References offset.
Referenced by CanScroll(), cSkinLCARSDisplayMenu::DrawTextScrollbar(), Scroll(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
private |
Definition at line 2368 of file osd.c.
References colorBg, colorFg, cOsd::DrawText(), font, cTextWrapper::GetLine(), cFont::Height(), left, offset, osd, shown, textWrapper, top, and width.
|
inline |
Definition at line 1057 of file osd.h.
References height.
Referenced by cTextScroller(), Set(), cSkinCursesDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
|
inline |
Definition at line 1059 of file osd.h.
References offset.
Referenced by cSkinLCARSDisplayMenu::DrawTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
void cTextScroller::Reset | ( | void | ) |
Definition at line 2363 of file osd.c.
References osd.
Referenced by cSkinCursesDisplayMenu::Clear(), cSkinClassicDisplayMenu::Clear(), cSkinLCARSDisplayMenu::Clear(), and cSkinSTTNGDisplayMenu::Clear().
void cTextScroller::Scroll | ( | bool | Up, |
bool | Page | ||
) |
Definition at line 2376 of file osd.c.
References CanScrollDown(), CanScrollUp(), DrawText(), offset, shown, and Total().
Referenced by cSkinDisplayMenu::Scroll().
void cTextScroller::Set | ( | cOsd * | Osd, |
int | Left, | ||
int | Top, | ||
int | Width, | ||
int | Height, | ||
const char * | Text, | ||
const cFont * | Font, | ||
tColor | ColorFg, | ||
tColor | ColorBg | ||
) |
Definition at line 2346 of file osd.c.
References colorBg, colorFg, DrawText(), font, Font, height, Height(), cFont::Height(), left, Left(), min(), offset, osd, cTextWrapper::Set(), shown, textWrapper, top, Top(), Total(), width, and Width().
Referenced by cTextScroller(), cSkinCursesDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetText(), cSkinClassicDisplayMenu::SetText(), cSkinLCARSDisplayMenu::SetText(), and cSkinSTTNGDisplayMenu::SetText().
|
inline |
Definition at line 1060 of file osd.h.
References shown.
Referenced by cSkinLCARSDisplayMenu::DrawTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1055 of file osd.h.
References top.
Referenced by cTextScroller(), Set(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1058 of file osd.h.
References cTextWrapper::Lines(), and textWrapper.
Referenced by CanScrollDown(), cSkinLCARSDisplayMenu::DrawTextScrollbar(), Scroll(), Set(), cSkinCursesDisplayMenu::SetTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
|
private |
Definition at line 1045 of file osd.h.
Referenced by cTextScroller(), DrawText(), and Set().
|
private |
Definition at line 1045 of file osd.h.
Referenced by cTextScroller(), DrawText(), and Set().
|
private |
Definition at line 1044 of file osd.h.
Referenced by cTextScroller(), DrawText(), and Set().
|
private |
Definition at line 1043 of file osd.h.
Referenced by cTextScroller(), Height(), and Set().
|
private |
Definition at line 1043 of file osd.h.
Referenced by cTextScroller(), DrawText(), Left(), and Set().
|
private |
Definition at line 1046 of file osd.h.
Referenced by CanScrollDown(), CanScrollUp(), cTextScroller(), DrawText(), Offset(), Scroll(), and Set().
|
private |
Definition at line 1042 of file osd.h.
Referenced by cTextScroller(), DrawText(), Reset(), and Set().
|
private |
Definition at line 1046 of file osd.h.
Referenced by CanScrollDown(), cTextScroller(), DrawText(), Scroll(), Set(), and Shown().
|
private |
Definition at line 1047 of file osd.h.
Referenced by DrawText(), Set(), and Total().
|
private |
Definition at line 1043 of file osd.h.
Referenced by cTextScroller(), DrawText(), Set(), and Top().
|
private |
Definition at line 1043 of file osd.h.
Referenced by cTextScroller(), DrawText(), Set(), and Width().