Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cOsd Class Reference

#include <osd.h>

Collaboration diagram for cOsd:

Collaboration graph
[legend]

Detailed Description

Onscreen Display.

Definition at line 55 of file osd.h.

Static Public Methods

void Initialize (void)
void Shutdown (void)
cOsdBaseOpenRaw (int x, int y)
void Open (int w, int h)
void Close (void)
void Clear (void)
void Fill (int x, int y, int w, int h, eDvbColor color=clrBackground)
void SetBitmap (int x, int y, const cBitmap &Bitmap)
void ClrEol (int x, int y, eDvbColor color=clrBackground)
int CellWidth (void)
int LineHeight (void)
int Width (unsigned char c)
int WidthInCells (const char *s)
eDvbFont SetFont (eDvbFont Font)
void Text (int x, int y, const char *s, eDvbColor colorFg=clrWhite, eDvbColor colorBg=clrBackground)
void Flush (void)

Private Types

enum  { charWidth = 12, lineHeight = 27 }

Static Private Attributes

cOsdBaseosd = NULL
int cols = 0
int rows = 0


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
charWidth  average character width
lineHeight  smallest text height

Definition at line 57 of file osd.h.


Member Function Documentation

int cOsd::CellWidth void    [static]
 

Definition at line 180 of file osd.c.

References charWidth.

Referenced by cMenuEditStrItem::Set(), and cInterface::WrapText().

void cOsd::Clear void    [static]
 

Definition at line 141 of file osd.c.

References cOsdBase::Clear(), Fill(), and osd.

Referenced by cInterface::Clear().

void cOsd::Close void    [static]
 

Definition at line 128 of file osd.c.

References osd.

Referenced by cInterface::Close(), and Shutdown().

void cOsd::ClrEol int    x,
int    y,
eDvbColor    color = clrBackground
[static]
 

Definition at line 175 of file osd.c.

References Fill().

Referenced by cInterface::ClearEol().

void cOsd::Fill int    x,
int    y,
int    w,
int    h,
eDvbColor    color = clrBackground
[static]
 

Definition at line 152 of file osd.c.

References cols, cOsdBase::Fill(), osd, and rows.

Referenced by Clear(), ClrEol(), cInterface::Fill(), and cInterface::HelpButton().

void cOsd::Flush void    [static]
 

Definition at line 238 of file osd.c.

References cOsdBase::Flush(), and osd.

Referenced by cInterface::Flush().

void cOsd::Initialize void    [static]
 

Definition at line 27 of file osd.c.

Referenced by main().

int cOsd::LineHeight void    [static]
 

Definition at line 189 of file osd.c.

References lineHeight.

void cOsd::Open int    w,
int    h
[static]
 

Definition at line 72 of file osd.c.

References cOsdBase::AddColor(), charWidth, cols, cOsdBase::Create(), lineHeight, OpenRaw(), osd, and rows.

Referenced by cInterface::Open().

cOsdBase * cOsd::OpenRaw int    x,
int    y
[static]
 

Returns a raw OSD without any predefined windows or colors. If the "normal" OSD is currently in use, NULL will be returned. The caller must delete this object before the "normal" OSD is used again!

Definition at line 63 of file osd.c.

References cDevice::NewOsd(), osd, and cDevice::PrimaryDevice().

Referenced by cDvbSpuDecoder::Draw(), and Open().

void cOsd::SetBitmap int    x,
int    y,
const cBitmap   Bitmap
[static]
 

Definition at line 168 of file osd.c.

References osd, and cOsdBase::SetBitmap().

Referenced by cInterface::SetBitmap().

eDvbFont cOsd::SetFont eDvbFont    Font [static]
 

Definition at line 216 of file osd.c.

References eDvbFont, osd, and cOsdBase::SetFont().

Referenced by cInterface::SetFont().

void cOsd::Shutdown void    [static]
 

Definition at line 36 of file osd.c.

References Close().

Referenced by main().

void cOsd::Text int    x,
int    y,
const char *    s,
eDvbColor    colorFg = clrWhite,
eDvbColor    colorBg = clrBackground
[static]
 

Definition at line 225 of file osd.c.

References cols, osd, rows, and cOsdBase::Text().

Referenced by cInterface::HelpButton(), and cInterface::Write().

int cOsd::Width unsigned char    c [static]
 

Definition at line 198 of file osd.c.

References osd, and cOsdBase::Width().

Referenced by cMenuEditStrItem::Set(), and cInterface::WrapText().

int cOsd::WidthInCells const char *    s [static]
 

Definition at line 207 of file osd.c.

References charWidth, osd, and cOsdBase::Width().

Referenced by cReplayControl::DisplayAtBottom(), and cMenuEditStrItem::Set().


Field Documentation

int cOsd::cols = 0 [static, private]
 

Definition at line 24 of file osd.c.

Referenced by Fill(), Open(), and Text().

cOsdBase * cOsd::osd = NULL [static, private]
 

Definition at line 22 of file osd.c.

Referenced by Clear(), Close(), Fill(), Flush(), Open(), OpenRaw(), SetBitmap(), SetFont(), Text(), Width(), and WidthInCells().

int cOsd::rows = 0 [static, private]
 

Definition at line 25 of file osd.c.

Referenced by Fill(), Open(), and Text().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:44 2003 for VDR by doxygen1.3-rc2