Go to the documentation of this file.
10 #define LOC QString("Overlay: ")
13 const QString&
Name,
bool Themed)
28 : m_mainWindow(MainWindow),
64 int newstretch =
static_cast<int>(lroundf(FontAspect * 100));
80 if (screen !=
nullptr)
107 LOG(VB_PLAYBACK, LOG_INFO,
LOC + QString(
"Created window %1").arg(Window));
117 LOG(VB_GENERAL, LOG_ERR,
LOC + QString(
"Failed to create window %1").arg(Window));
135 float wmult =
static_cast<float>(
m_rect.size().width()) /
static_cast<float>(themesize.width());
136 float mult =
static_cast<float>(
m_rect.size().height()) /
static_cast<float>(themesize.height());
139 LOG(VB_GENERAL, LOG_INFO,
LOC + QString(
"Base theme size: %1x%2")
140 .arg(themesize.width()).arg(themesize.height()));
141 LOG(VB_GENERAL, LOG_INFO,
LOC + QString(
"Scaling factors: %1x%2")
142 .arg(
static_cast<double>(wmult)).arg(
static_cast<double>(mult)));
143 LOG(VB_GENERAL, LOG_INFO,
LOC + QString(
"Font stretch: saved %1 new %2")
void SetScalingFactors(float Horizontal, float Vertical)
void SetFontStretch(int Stretch)
virtual bool Create(void)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
VERBOSE_PREAMBLE Most true
int GetFontStretch() const
void SetUIScreenRect(QRect Rect)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
virtual void SetVisible(bool visible)
MythOverlayWindow(MythScreenStack *Parent, MythPainter *Painter, const QString &Name, bool Themed)
QString objectName(void) const
void GetScalingFactors(float &Horizontal, float &Vertical) const