vdr
2.2.0
|
#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 1039 of file osd.h.
References CanScrollDown(), and CanScrollUp().
Referenced by cSkinLCARSDisplayMenu::DrawTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1041 of file osd.h.
References Total().
Referenced by CanScroll(), cSkinLCARSDisplayMenu::DrawTextScrollbar(), Scroll(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1040 of file osd.h.
Referenced by CanScroll(), cSkinLCARSDisplayMenu::DrawTextScrollbar(), Scroll(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
private |
Definition at line 2159 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 1035 of file osd.h.
References height.
Referenced by Set(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
|
inline |
Definition at line 1037 of file osd.h.
References offset.
Referenced by cSkinLCARSDisplayMenu::DrawTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
void cTextScroller::Reset | ( | void | ) |
Definition at line 2154 of file osd.c.
References osd.
Referenced by cSkinClassicDisplayMenu::Clear(), cSkinCursesDisplayMenu::Clear(), cSkinSTTNGDisplayMenu::Clear(), and cSkinLCARSDisplayMenu::Clear().
void cTextScroller::Scroll | ( | bool | Up, |
bool | Page | ||
) |
Definition at line 2167 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 2137 of file osd.c.
References colorBg, colorFg, DrawText(), Font, font, cFont::Height(), height, Height(), left, Left(), min(), offset, osd, cTextWrapper::Set(), shown, textWrapper, top, Top(), Total(), width, and Width().
Referenced by cTextScroller(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetText(), cSkinCursesDisplayMenu::SetText(), cSkinSTTNGDisplayMenu::SetText(), and cSkinLCARSDisplayMenu::SetText().
|
inline |
Definition at line 1038 of file osd.h.
References shown.
Referenced by cSkinLCARSDisplayMenu::DrawTextScrollbar(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1033 of file osd.h.
References top.
Referenced by Set(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
Definition at line 1036 of file osd.h.
References cTextWrapper::Lines().
Referenced by CanScrollDown(), cSkinLCARSDisplayMenu::DrawTextScrollbar(), Scroll(), Set(), cSkinClassicDisplayMenu::SetTextScrollbar(), cSkinCursesDisplayMenu::SetTextScrollbar(), and cSkinSTTNGDisplayMenu::SetTextScrollbar().
|
inline |
|
private |
Definition at line 1023 of file osd.h.
Referenced by cTextScroller(), DrawText(), and Set().
|
private |
Definition at line 1023 of file osd.h.
Referenced by cTextScroller(), DrawText(), and Set().
|
private |
Definition at line 1022 of file osd.h.
Referenced by cTextScroller(), DrawText(), and Set().
|
private |
Definition at line 1021 of file osd.h.
Referenced by cTextScroller(), Height(), and Set().
|
private |
Definition at line 1021 of file osd.h.
Referenced by cTextScroller(), DrawText(), Left(), and Set().
|
private |
Definition at line 1024 of file osd.h.
Referenced by cTextScroller(), DrawText(), Offset(), Scroll(), and Set().
|
private |
Definition at line 1020 of file osd.h.
Referenced by cTextScroller(), DrawText(), Reset(), and Set().
|
private |
Definition at line 1024 of file osd.h.
Referenced by cTextScroller(), DrawText(), Scroll(), Set(), and Shown().
|
private |
Definition at line 1025 of file osd.h.
Referenced by DrawText(), and Set().
|
private |
Definition at line 1021 of file osd.h.
Referenced by cTextScroller(), DrawText(), Set(), and Top().
|
private |
Definition at line 1021 of file osd.h.
Referenced by cTextScroller(), DrawText(), Set(), and Width().