cCursesOsd Class Reference

Inheritance diagram for cCursesOsd:

Inheritance graph
[legend]
Collaboration diagram for cCursesOsd:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cCursesOsd (int Left, int Top)
virtual ~cCursesOsd ()
virtual void SaveRegion (int x1, int y1, int x2, int y2)
virtual void RestoreRegion (void)
virtual void DrawText (int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width=0, int Height=0, int Alignment=taDefault)
virtual void DrawRectangle (int x1, int y1, int x2, int y2, tColor Color)
virtual void Flush (void)
 Actually commits all data to the OSD hardware.

Private Types

enum  { MaxColorPairs = 16 }

Private Member Functions

void SetColor (int colorFg, int colorBg=clrBackground)

Private Attributes

WINDOW * savedRegion
WINDOW * window
int colorPairs [MaxColorPairs]


Detailed Description

Definition at line 59 of file skincurses.c.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
MaxColorPairs 

Definition at line 63 of file skincurses.c.


Constructor & Destructor Documentation

cCursesOsd::cCursesOsd ( int  Left,
int  Top 
)

Definition at line 76 of file skincurses.c.

References colorPairs, OsdHeight, OsdWidth, savedRegion, and window.

cCursesOsd::~cCursesOsd (  )  [virtual]

Definition at line 89 of file skincurses.c.

References Flush(), and window.

Here is the call graph for this function:


Member Function Documentation

void cCursesOsd::SetColor ( int  colorFg,
int  colorBg = clrBackground 
) [private]

Definition at line 99 of file skincurses.c.

References colorPairs, MaxColorPairs, and window.

Referenced by DrawRectangle(), and DrawText().

void cCursesOsd::SaveRegion ( int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]

Saves the region defined by the given coordinates for later restoration through RestoreRegion(). Only one saved region can be active at any given time.

Reimplemented from cOsd.

Definition at line 117 of file skincurses.c.

References savedRegion, and window.

void cCursesOsd::RestoreRegion ( void   )  [virtual]

Restores the region previously saved by a call to SaveRegion(). If SaveRegion() has not been called before, nothing will happen.

Reimplemented from cOsd.

Definition at line 127 of file skincurses.c.

References savedRegion, and window.

void cCursesOsd::DrawText ( int  x,
int  y,
const char *  s,
tColor  ColorFg,
tColor  ColorBg,
const cFont Font,
int  Width = 0,
int  Height = 0,
int  Alignment = taDefault 
) [virtual]

Draws the given string at coordinates (x, y) with the given foreground and background color and font. If Width and Height are given, the text will be drawn into a rectangle with the given size and the given Alignment (default is top-left). If ColorBg is clrTransparent, no background pixels will be drawn, which allows drawing "transparent" text.

Reimplemented from cOsd.

Definition at line 136 of file skincurses.c.

References DrawRectangle(), cFont::Height(), OsdWidth, SetColor(), taBottom, taLeft, taRight, taTop, cFont::Width(), and window.

Here is the call graph for this function:

void cCursesOsd::DrawRectangle ( int  x1,
int  y1,
int  x2,
int  y2,
tColor  Color 
) [virtual]

Draws a filled rectangle defined by the upper left (x1, y1) and lower right (x2, y2) corners with the given Color.

Reimplemented from cOsd.

Definition at line 174 of file skincurses.c.

References SetColor(), and window.

Referenced by DrawText().

Here is the call graph for this function:

void cCursesOsd::Flush ( void   )  [virtual]

Actually commits all data to the OSD hardware.

Reimplemented from cOsd.

Definition at line 184 of file skincurses.c.

Referenced by ~cCursesOsd().


Member Data Documentation

WINDOW* cCursesOsd::savedRegion [private]

Reimplemented from cOsd.

Definition at line 61 of file skincurses.c.

Referenced by cCursesOsd(), RestoreRegion(), and SaveRegion().

WINDOW* cCursesOsd::window [private]

Definition at line 62 of file skincurses.c.

Referenced by cCursesOsd(), DrawRectangle(), DrawText(), RestoreRegion(), SaveRegion(), SetColor(), and ~cCursesOsd().

int cCursesOsd::colorPairs[MaxColorPairs] [private]

Definition at line 64 of file skincurses.c.

Referenced by cCursesOsd(), and SetColor().


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