vdr  2.2.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cSkinDisplayReplay::cProgressBar Class Reference

#include <skins.h>

Public Member Functions

 cProgressBar (int Width, int Height, int Current, int Total, const cMarks *Marks, tColor ColorSeen, tColor ColorRest, tColor ColorSelected, tColor ColorMark, tColor ColorCurrent)
 
- Public Member Functions inherited from cBitmap
 cBitmap (int Width, int Height, int Bpp, int X0=0, int Y0=0)
 
 cBitmap (const char *FileName)
 
 cBitmap (const char *const Xpm[])
 
virtual ~cBitmap ()
 
int X0 (void) const
 
int Y0 (void) const
 
int Width (void) const
 
int Height (void) const
 
void SetSize (int Width, int Height)
 
void SetOffset (int X0, int Y0)
 
bool Contains (int x, int y) const
 
bool Covers (int x1, int y1, int x2, int y2) const
 
bool Intersects (int x1, int y1, int x2, int y2) const
 
bool Dirty (int &x1, int &y1, int &x2, int &y2)
 
void Clean (void)
 
bool LoadXpm (const char *FileName)
 
bool SetXpm (const char *const Xpm[], bool IgnoreNone=false)
 
void SetIndex (int x, int y, tIndex Index)
 
void Fill (tIndex Index)
 
void DrawPixel (int x, int y, tColor Color)
 
void DrawBitmap (int x, int y, const cBitmap &Bitmap, tColor ColorFg=0, tColor ColorBg=0, bool ReplacePalette=false, bool Overlay=false)
 
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)
 
void DrawRectangle (int x1, int y1, int x2, int y2, tColor Color)
 
void DrawEllipse (int x1, int y1, int x2, int y2, tColor Color, int Quadrants=0)
 
void DrawSlope (int x1, int y1, int x2, int y2, tColor Color, int Type)
 
const tIndexData (int x, int y) const
 
tColor GetColor (int x, int y) const
 
void ReduceBpp (const cPalette &Palette)
 
void ShrinkBpp (int NewBpp)
 
cBitmapScaled (double FactorX, double FactorY, bool AntiAlias=false) const
 
- Public Member Functions inherited from cPalette
 cPalette (int Bpp=8)
 
virtual ~cPalette ()
 
void SetAntiAliasGranularity (uint FixedColors, uint BlendColors)
 
int Bpp (void) const
 
void Reset (void)
 
int Index (tColor Color)
 
tColor Color (int Index) const
 
void SetBpp (int Bpp)
 
void SetColor (int Index, tColor Color)
 
const tColorColors (int &NumColors) const
 
void Take (const cPalette &Palette, tIndexes *Indexes=NULL, tColor ColorFg=0, tColor ColorBg=0)
 
void Replace (const cPalette &Palette)
 
tColor Blend (tColor ColorFg, tColor ColorBg, uint8_t Level) const
 
int ClosestColor (tColor Color, int MaxDiff=INT_MAX) const
 

Protected Member Functions

int Pos (int p)
 
void Mark (int x, bool Start, bool Current, tColor ColorMark, tColor ColorCurrent)
 

Protected Attributes

int total
 

Additional Inherited Members

- Protected Types inherited from cPalette
typedef tIndex tIndexes[MAXNUMCOLORS]
 

Detailed Description

Definition at line 292 of file skins.h.

Constructor & Destructor Documentation

cSkinDisplayReplay::cProgressBar::cProgressBar ( int  Width,
int  Height,
int  Current,
int  Total,
const cMarks Marks,
tColor  ColorSeen,
tColor  ColorRest,
tColor  ColorSelected,
tColor  ColorMark,
tColor  ColorCurrent 
)

Member Function Documentation

void cSkinDisplayReplay::cProgressBar::Mark ( int  x,
bool  Start,
bool  Current,
tColor  ColorMark,
tColor  ColorCurrent 
)
protected

Definition at line 174 of file skins.c.

References cBitmap::DrawRectangle(), and cBitmap::Height().

Referenced by cProgressBar().

int cSkinDisplayReplay::cProgressBar::Pos ( int  p)
inlineprotected

Definition at line 295 of file skins.h.

References cSkinDisplay::Current(), and cSkinDisplay::SetMessage().

Referenced by cProgressBar().

Member Data Documentation

int cSkinDisplayReplay::cProgressBar::total
protected

Definition at line 294 of file skins.h.

Referenced by cProgressBar().


The documentation for this class was generated from the following files: