40 visible = visible.united(img->GetArea());
42 if (visible.isEmpty())
45 QRect bounding = visible.boundingRect();
46 bounding = bounding.translated(
m_safeArea.topLeft());
48 int left =
m_safeArea.left() - bounding.left();
53 img->SetArea(
MythRect(img->GetArea().translated(left, top)));
56#include "moc_interactivescreen.cpp"
void OptimiseDisplayedArea()
InteractiveScreen(MythPlayerUI *Player, MythPainter *Painter, const QString &Name)
void ResizeForInteractiveTV(const QRect &Rect)
MythVideoOutput * GetVideoOutput(void)
Wrapper around QRect allowing us to handle percentage and other relative values for areas in mythui.
Screen in which all other widgets are contained and rendered.
virtual void SetArea(const MythRect &rect)
QList< MythUIType * > m_childrenList
virtual void GetOSDBounds(QRect &Total, QRect &Visible, float &VisibleAspect, float &FontScaling, float ThemeAspect) const