21 #define OSD_LEVEL_DEFAULT 0
22 #define OSD_LEVEL_SUBTITLES 10
24 #define MAXNUMCOLORS 256
25 #define ALPHA_TRANSPARENT 0x00
26 #define ALPHA_OPAQUE 0xFF
27 #define IS_OPAQUE(c) ((c >> 24) == ALPHA_OPAQUE)
28 #define TEXT_ALIGN_BORDER 10 // fraction of the font height used for sizing border
70 return RgbToColor(uint8_t(0xFF * R), uint8_t(0xFF * G), uint8_t(0xFF * B));
183 cBitmap(
const char *
const Xpm[]);
186 int X0(
void)
const {
return x0; }
187 int Y0(
void)
const {
return y0; }
197 bool Covers(
int x1,
int y1,
int x2,
int y2)
const;
200 bool Intersects(
int x1,
int y1,
int x2,
int y2)
const;
203 bool Dirty(
int &x1,
int &y1,
int &x2,
int &y2);
208 bool LoadXpm(
const char *FileName);
211 bool SetXpm(
const char *
const Xpm[],
bool IgnoreNone =
false);
228 void DrawBitmap(
int x,
int y,
const cBitmap &Bitmap,
tColor ColorFg = 0,
tColor ColorBg = 0,
bool ReplacePalette =
false,
bool Overlay =
false);
286 cBitmap *
Scaled(
double FactorX,
double FactorY,
bool AntiAlias =
false);
314 int X(
void)
const {
return x; }
315 int Y(
void)
const {
return y; }
320 void Shift(
int Dx,
int Dy) {
x += Dx;
y += Dy; }
365 int Left(
void)
const {
return X(); }
366 int Top(
void)
const {
return Y(); }
389 void Grow(
int Dx,
int Dy);
448 #define MAXPIXMAPLAYERS 8
584 virtual void Clear(
void) = 0;
673 #define LOCK_PIXMAPS cPixmapMutexLock PixmapMutexLock
686 const uint8_t *
Data(
void) {
return (uint8_t *)
data; }
687 virtual void Clear(
void);
703 #define MAXOSDAREAS 16
704 #define MAXOSDPIXMAPS 64
862 virtual void SaveRegion(
int x1,
int y1,
int x2,
int y2);
878 virtual void DrawBitmap(
int x,
int y,
const cBitmap &Bitmap,
tColor ColorFg = 0,
tColor ColorBg = 0,
bool ReplacePalette =
false,
bool Overlay =
false);
898 virtual void DrawEllipse(
int x1,
int y1,
int x2,
int y2,
tColor Color,
int Quadrants = 0);
908 virtual void DrawSlope(
int x1,
int y1,
int x2,
int y2,
tColor Color,
int Type);
920 virtual void Flush(
void);
936 #define MAXOSDIMAGES 64
1025 void Scroll(
bool Up,
bool Page);