Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cBitmap Class Reference

#include <osdbase.h>

Inheritance diagram for cBitmap:

Inheritance graph
[legend]
Collaboration diagram for cBitmap:

Collaboration graph
[legend]

Detailed Description

Set bitmap to defined coordinates.

Definition at line 110 of file osdbase.h.

Public Methods

 cBitmap (int Width, int Height, int Bpp, bool ClearWithBackground=true)
virtual ~cBitmap ()
bool ClearWithBackground (void)
eDvbFont SetFont (eDvbFont Font)
bool Dirty (int &x1, int &y1, int &x2, int &y2)
void SetIndex (int x, int y, char Index)
void SetPixel (int x, int y, eDvbColor Color)
void SetBitmap (int x, int y, const cBitmap &Bitmap)
int Width (void)
int Width (unsigned char c)
int Width (const char *s)
int Height (void)
void Text (int x, int y, const char *s, eDvbColor ColorFg=clrWhite, eDvbColor ColorBg=clrBackground)
void Fill (int x1, int y1, int x2, int y2, eDvbColor Color)
void Clean (void)
void Clear (void)
const char * Data (int x, int y)

Protected Attributes

int width
int height
int dirtyX1
int dirtyY1
int dirtyX2
int dirtyY2

Private Attributes

cFontfont
eDvbFont fontType
char * bitmap
bool clearWithBackground


Constructor & Destructor Documentation

cBitmap::cBitmap int    Width,
int    Height,
int    Bpp,
bool    ClearWithBackground = true
 

--- cBitmap ---------------------------------------------------------------

Definition at line 113 of file osdbase.c.

References bitmap, Clean(), ClearWithBackground(), clearWithBackground, esyslog, font, fontOsd, fontType, height, MALLOC, SetFont(), and width.

cBitmap::~cBitmap   [virtual]
 

Definition at line 136 of file osdbase.c.

References font.


Member Function Documentation

void cBitmap::Clean void   
 

Definition at line 187 of file osdbase.c.

References dirtyX1, dirtyX2, dirtyY1, dirtyY2, height, and width.

Referenced by cBitmap(), and cOsdBase::Flush().

void cBitmap::Clear void   
 

Definition at line 269 of file osdbase.c.

References Fill(), and cPalette::Reset().

Referenced by cOsdBase::Clear().

bool cBitmap::ClearWithBackground void    [inline]
 

Definition at line 122 of file osdbase.h.

Referenced by cBitmap(), and cOsdBase::Relocate().

const char * cBitmap::Data int    x,
int    y
 

Reimplemented in cWindow.

Definition at line 276 of file osdbase.c.

References bitmap, and width.

Referenced by cWindow::Data().

bool cBitmap::Dirty int &    x1,
int &    y1,
int &    x2,
int &    y2
 

Definition at line 153 of file osdbase.c.

References dirtyX1, dirtyX2, dirtyY1, dirtyY2, height, and width.

Referenced by cDvbOsd::CommitWindow().

void cBitmap::Fill int    x1,
int    y1,
int    x2,
int    y2,
eDvbColor    Color
 

Reimplemented in cWindow.

Definition at line 259 of file osdbase.c.

References cPalette::Index(), and SetIndex().

Referenced by Clear(), cProgressBar::cProgressBar(), cVolumeBar::cVolumeBar(), cWindow::Fill(), and cProgressBar::Mark().

int cBitmap::Height void    [inline]
 

Definition at line 131 of file osdbase.h.

Referenced by cDvbOsd::OpenWindow().

void cBitmap::SetBitmap int    x,
int    y,
const cBitmap &    Bitmap
 

Reimplemented in cWindow.

Definition at line 215 of file osdbase.c.

References bitmap, height, SetIndex(), cPalette::Take(), cPalette::tIndexes, and width.

Referenced by cWindow::SetBitmap().

eDvbFont cBitmap::SetFont eDvbFont    Font
 

Definition at line 142 of file osdbase.c.

References eDvbFont, font, and fontType.

Referenced by cBitmap(), and cOsdBase::SetFont().

void cBitmap::SetIndex int    x,
int    y,
char    Index
 

Definition at line 195 of file osdbase.c.

References bitmap, dirtyX1, dirtyX2, dirtyY1, dirtyY2, height, and width.

Referenced by Fill(), cDvbSpuBitmap::getBitmap(), SetBitmap(), SetPixel(), and Text().

void cBitmap::SetPixel int    x,
int    y,
eDvbColor    Color
 

Definition at line 210 of file osdbase.c.

References cPalette::Index(), and SetIndex().

void cBitmap::Text int    x,
int    y,
const char *    s,
eDvbColor    ColorFg = clrWhite,
eDvbColor    ColorBg = clrBackground
 

Reimplemented in cWindow.

Definition at line 237 of file osdbase.c.

References cFont::CharData(), font, cFont::Height(), cPalette::Index(), cFont::tCharData::lines, SetIndex(), cFont::tPixelData, width, and cFont::tCharData::width.

Referenced by cVolumeBar::cVolumeBar(), and cWindow::Text().

int cBitmap::Width const char *    s
 

Definition at line 232 of file osdbase.c.

References font, and cFont::Width().

int cBitmap::Width unsigned char    c
 

Definition at line 227 of file osdbase.c.

References font, and cFont::Width().

int cBitmap::Width void    [inline]
 

Definition at line 128 of file osdbase.h.

Referenced by cDvbOsd::CommitWindow(), cVolumeBar::cVolumeBar(), cDvbOsd::OpenWindow(), and cOsdBase::Width().


Field Documentation

char* cBitmap::bitmap [private]
 

Definition at line 114 of file osdbase.h.

Referenced by cBitmap(), Data(), SetBitmap(), and SetIndex().

bool cBitmap::clearWithBackground [private]
 

Definition at line 115 of file osdbase.h.

Referenced by cBitmap().

int cBitmap::dirtyX1 [protected]
 

Definition at line 118 of file osdbase.h.

Referenced by Clean(), Dirty(), and SetIndex().

int cBitmap::dirtyX2 [protected]
 

Definition at line 118 of file osdbase.h.

Referenced by Clean(), Dirty(), and SetIndex().

int cBitmap::dirtyY1 [protected]
 

Definition at line 118 of file osdbase.h.

Referenced by Clean(), Dirty(), and SetIndex().

int cBitmap::dirtyY2 [protected]
 

Definition at line 118 of file osdbase.h.

Referenced by Clean(), Dirty(), and SetIndex().

cFont* cBitmap::font [private]
 

Definition at line 112 of file osdbase.h.

Referenced by cBitmap(), SetFont(), Text(), Width(), and ~cBitmap().

eDvbFont cBitmap::fontType [private]
 

Definition at line 113 of file osdbase.h.

Referenced by cBitmap(), and SetFont().

int cBitmap::height [protected]
 

Definition at line 117 of file osdbase.h.

Referenced by cBitmap(), Clean(), cWindow::Contains(), Dirty(), cProgressBar::Mark(), SetBitmap(), and SetIndex().

int cBitmap::width [protected]
 

Definition at line 117 of file osdbase.h.

Referenced by cBitmap(), Clean(), cWindow::Contains(), Data(), Dirty(), cProgressBar::Pos(), SetBitmap(), SetIndex(), and Text().


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