cTextScroller Class Reference

#include <osd.h>

Collaboration diagram for cTextScroller:

Collaboration graph
[legend]

List of all members.

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

cOsdosd
int left
int top
int width
int height
const cFontfont
tColor colorFg
tColor colorBg
int offset
int shown
cTextWrapper textWrapper


Detailed Description

Definition at line 350 of file osd.h.


Constructor & Destructor Documentation

cTextScroller::cTextScroller ( void   ) 

Definition at line 766 of file osd.c.

References colorBg, colorFg, font, height, left, offset, osd, shown, top, and width.

cTextScroller::cTextScroller ( cOsd Osd,
int  Left,
int  Top,
int  Width,
int  Height,
const char *  Text,
const cFont Font,
tColor  ColorFg,
tColor  ColorBg 
)

Definition at line 777 of file osd.c.

References Set().

Here is the call graph for this function:


Member Function Documentation

void cTextScroller::DrawText ( void   )  [private]

Definition at line 804 of file osd.c.

References colorBg, colorFg, cOsd::DrawText(), font, cTextWrapper::GetLine(), cFont::Height(), left, offset, osd, shown, textWrapper, top, and width.

Referenced by Scroll(), and Set().

Here is the call graph for this function:

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 782 of file osd.c.

References colorBg, colorFg, DrawText(), font, cFont::Height(), height, left, min(), offset, osd, cTextWrapper::Set(), shown, textWrapper, top, Total(), and width.

Referenced by cTextScroller(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetText(), cSkinClassicDisplayMenu::SetText(), and cSkinCursesDisplayMenu::SetText().

Here is the call graph for this function:

void cTextScroller::Reset ( void   ) 

Definition at line 799 of file osd.c.

References osd.

Referenced by cSkinSTTNGDisplayMenu::Clear(), cSkinClassicDisplayMenu::Clear(), and cSkinCursesDisplayMenu::Clear().

int cTextScroller::Left ( void   )  [inline]

Definition at line 364 of file osd.h.

References left.

int cTextScroller::Top ( void   )  [inline]

Definition at line 365 of file osd.h.

References top.

Referenced by cSkinSTTNGDisplayMenu::SetScrollbar(), cSkinClassicDisplayMenu::SetScrollbar(), and cSkinCursesDisplayMenu::SetScrollbar().

int cTextScroller::Width ( void   )  [inline]

Definition at line 366 of file osd.h.

References width.

int cTextScroller::Height ( void   )  [inline]

Definition at line 367 of file osd.h.

References height.

Referenced by cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetScrollbar(), cSkinClassicDisplayMenu::SetScrollbar(), and cSkinCursesDisplayMenu::SetScrollbar().

int cTextScroller::Total ( void   )  [inline]

Definition at line 368 of file osd.h.

References cTextWrapper::Lines(), and textWrapper.

Referenced by CanScrollDown(), Scroll(), Set(), cSkinSTTNGDisplayMenu::SetScrollbar(), cSkinClassicDisplayMenu::SetScrollbar(), and cSkinCursesDisplayMenu::SetScrollbar().

Here is the call graph for this function:

int cTextScroller::Offset ( void   )  [inline]

Definition at line 369 of file osd.h.

References offset.

Referenced by cSkinSTTNGDisplayMenu::SetScrollbar(), cSkinClassicDisplayMenu::SetScrollbar(), and cSkinCursesDisplayMenu::SetScrollbar().

int cTextScroller::Shown ( void   )  [inline]

Definition at line 370 of file osd.h.

References shown.

Referenced by cSkinSTTNGDisplayMenu::SetScrollbar(), cSkinClassicDisplayMenu::SetScrollbar(), and cSkinCursesDisplayMenu::SetScrollbar().

bool cTextScroller::CanScroll ( void   )  [inline]

Definition at line 371 of file osd.h.

References CanScrollDown(), and CanScrollUp().

Referenced by cSkinSTTNGDisplayMenu::SetScrollbar(), cSkinClassicDisplayMenu::SetScrollbar(), and cSkinCursesDisplayMenu::SetScrollbar().

Here is the call graph for this function:

bool cTextScroller::CanScrollUp ( void   )  [inline]

Definition at line 372 of file osd.h.

References offset.

Referenced by CanScroll(), Scroll(), and cSkinSTTNGDisplayMenu::SetScrollbar().

bool cTextScroller::CanScrollDown ( void   )  [inline]

Definition at line 373 of file osd.h.

References offset, shown, and Total().

Referenced by CanScroll(), Scroll(), and cSkinSTTNGDisplayMenu::SetScrollbar().

Here is the call graph for this function:

void cTextScroller::Scroll ( bool  Up,
bool  Page 
)

Definition at line 812 of file osd.c.

References CanScrollDown(), CanScrollUp(), DrawText(), offset, shown, and Total().

Referenced by cSkinDisplayMenu::Scroll().

Here is the call graph for this function:


Member Data Documentation

cOsd* cTextScroller::osd [private]

Definition at line 352 of file osd.h.

Referenced by cTextScroller(), DrawText(), Reset(), and Set().

int cTextScroller::left [private]

Definition at line 353 of file osd.h.

Referenced by cTextScroller(), DrawText(), Left(), and Set().

int cTextScroller::top [private]

Definition at line 353 of file osd.h.

Referenced by cTextScroller(), DrawText(), Set(), and Top().

int cTextScroller::width [private]

Definition at line 353 of file osd.h.

Referenced by cTextScroller(), DrawText(), Set(), and Width().

int cTextScroller::height [private]

Definition at line 353 of file osd.h.

Referenced by cTextScroller(), Height(), and Set().

const cFont* cTextScroller::font [private]

Definition at line 354 of file osd.h.

Referenced by cTextScroller(), DrawText(), and Set().

tColor cTextScroller::colorFg [private]

Definition at line 355 of file osd.h.

Referenced by cTextScroller(), DrawText(), and Set().

tColor cTextScroller::colorBg [private]

Definition at line 355 of file osd.h.

Referenced by cTextScroller(), DrawText(), and Set().

int cTextScroller::offset [private]

Definition at line 356 of file osd.h.

Referenced by CanScrollDown(), CanScrollUp(), cTextScroller(), DrawText(), Offset(), Scroll(), and Set().

int cTextScroller::shown [private]

Definition at line 356 of file osd.h.

Referenced by CanScrollDown(), cTextScroller(), DrawText(), Scroll(), Set(), and Shown().

cTextWrapper cTextScroller::textWrapper [private]

Definition at line 357 of file osd.h.

Referenced by DrawText(), Set(), and Total().


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 20:30:30 2007 for VDR by  doxygen 1.5.3-20071008