void cSkinClassicDisplayReplay::SetMessage(eMessageType Type, const char *Text) { const cFont *font = cFont::GetFont(fontOsd); if (Text) { osd->SaveRegion(x0, y2, x1 - 1, y3 - 1); osd->DrawText(x0, y2, Text, Theme.Color(clrMessageStatusFg + 2 * Type), Theme.Color(clrMessageStatusBg + 2 * Type), font, x1 - x0, y3 - y2, taCenter); } else osd->RestoreRegion(); }
void cSkinSTTNGDisplayReplay::SetMessage(eMessageType Type, const char *Text) { const cFont *font = cFont::GetFont(fontSml); if (Text) { osd->SaveRegion(x2, y6, x4 - 1, y7 - 1); osd->DrawRectangle(x2, y6, x3 - 1, y7 - 1, Theme.Color(clrBackground)); osd->DrawText(x3, y6, Text, Theme.Color(clrMessageStatusFg + 2 * Type), Theme.Color(clrMessageStatusBg + 2 * Type), font, x4 - x3, 0, taCenter); } else osd->RestoreRegion(); }
void cSkinCursesDisplayReplay::SetMessage(eMessageType Type, const char *Text) { if (Text) { osd->SaveRegion(0, 2, ScOsdWidth - 1, 2); osd->DrawText(0, 2, Text, clrMessage[2 * Type], clrMessage[2 * Type + 1], &Font, ScOsdWidth, 0, taCenter); message = true; } else { osd->RestoreRegion(); message = false; } }
void cSkinSTTNGDisplayMenu::SetMessage(eMessageType Type, const char *Text) { const cFont *font = cFont::GetFont(fontSml); if (Text) { osd->SaveRegion(x3, y6, x4 - 1, y7 - 1); osd->DrawText(x3, y6, Text, Theme.Color(clrMessageStatusFg + 2 * Type), Theme.Color(clrMessageStatusBg + 2 * Type), font, x4 - x3, 0, taCenter); message = true; } else { osd->RestoreRegion(); message = false; } }
void cSkinClassicDisplayChannel::SetMessage(eMessageType Type, const char *Text) { const cFont *font = cFont::GetFont(fontOsd); if (Text) { osd->SaveRegion(0, 0, osd->Width() - 1, lineHeight - 1); osd->DrawText(0, 0, Text, Theme.Color(clrMessageStatusFg + 2 * Type), Theme.Color(clrMessageStatusBg + 2 * Type), font, osd->Width(), 0, taCenter); message = true; } else { osd->RestoreRegion(); message = false; } }
void cSkinSTTNGDisplayChannel::SetMessage(eMessageType Type, const char *Text) { const cFont *font = cFont::GetFont(withInfo ? fontSml : fontOsd); if (Text) { int yt = withInfo ? y6 : y0; int yb = withInfo ? y7 : y1; osd->SaveRegion(x2, yt, x4 - 1, yb - 1); if (withInfo) osd->DrawRectangle(x2, yt, x3 - 1, yb - 1, Theme.Color(clrBackground)); osd->DrawText(x3, yt, Text, Theme.Color(clrMessageStatusFg + 2 * Type), Theme.Color(clrMessageStatusBg + 2 * Type), font, x4 - x3, 0, taCenter); message = true; } else { osd->RestoreRegion(); message = false; } }