vdr 2.7.7
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)
 cProgressBar (int Width, int Height, int Current, int Total, const cMarks *Marks, const cErrors *Errors, tColor ColorSeen, tColor ColorRest, tColor ColorSelected, tColor ColorMark, tColor ColorCurrent, tColor ColorError)
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 () override
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)
void Error (int x, tColor ColorError)

Protected Attributes

int total

Additional Inherited Members

Protected Types inherited from cPalette
typedef tIndex tIndexes[MAXNUMCOLORS]

Detailed Description

Definition at line 319 of file skins.h.

Constructor & Destructor Documentation

◆ cProgressBar() [1/2]

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

◆ cProgressBar() [2/2]

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

Member Function Documentation

◆ Error()

void cSkinDisplayReplay::cProgressBar::Error ( int x,
tColor ColorError )
protected

Definition at line 199 of file skins.c.

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

Referenced by cProgressBar().

◆ Mark()

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

Definition at line 189 of file skins.c.

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

Referenced by cProgressBar().

◆ Pos()

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

Definition at line 322 of file skins.h.

References total, and cBitmap::Width().

Referenced by cProgressBar().

Member Data Documentation

◆ total

int cSkinDisplayReplay::cProgressBar::total
protected

Definition at line 321 of file skins.h.

Referenced by cProgressBar(), and Pos().


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