|
MythTV master
|
#include <libmythui/mythuiscreenbounds.h>
Signals | |
| void | UIScreenRectChanged (const QRect &Rect) |
Public Member Functions | |
| void | UpdateScreenSettings (MythDisplay *mDisplay) |
| QRect | GetUIScreenRect () |
| void | SetUIScreenRect (QRect Rect) |
| QRect | GetScreenRect () |
| QSize | NormSize (QSize Size) const |
| int | NormX (int X) const |
| int | NormY (int Y) const |
| void | GetScalingFactors (float &Horizontal, float &Vertical) const |
| void | SetScalingFactors (float Horizontal, float Vertical) |
| QSize | GetThemeSize () |
| int | GetFontStretch () const |
| void | SetFontStretch (int Stretch) |
Static Public Member Functions | |
| static bool | GeometryIsOverridden () |
| static void | ParseGeometryOverride (const QString &Geometry) |
| Parse an X11 style command line geometry string. More... | |
| static QRect | GetGeometryOverride () |
| static bool | WindowIsAlwaysFullscreen () |
| Return true if the current platform only supports fullscreen windows. More... | |
Protected Member Functions | |
| MythUIScreenBounds () | |
| void | InitScreenBounds () |
Protected Attributes | |
| QSize | m_themeSize { 1920, 1080 } |
| QRect | m_uiScreenRect { 0, 0, 1920, 1080 } |
| QRect | m_screenRect { 0, 0, 1920, 1080 } |
| float | m_screenHorizScale { 1.0 } |
| float | m_screenVertScale { 1.0 } |
| bool | m_wantWindow { false } |
| bool | m_wantFullScreen { true } |
| bool | m_qtFullScreen { false } |
| bool | m_alwaysOnTop { false } |
| int | m_fontStretch { 100 } |
| bool | m_forceFullScreen { false } |
Static Private Attributes | |
| static int | s_XOverride = -1 |
| static int | s_YOverride = -1 |
| static int | s_WOverride = -1 |
| static int | s_HOverride = -1 |
Definition at line 12 of file mythuiscreenbounds.h.
|
protected |
Definition at line 125 of file mythuiscreenbounds.cpp.
|
static |
Definition at line 20 of file mythuiscreenbounds.cpp.
Referenced by MythDisplay::GetDesiredScreen(), MythMainWindow::Init(), and MythMainWindow::Show().
| int MythUIScreenBounds::GetFontStretch | ( | ) | const |
Definition at line 254 of file mythuiscreenbounds.cpp.
Referenced by MythMediaOverlay::OverrideUIScale(), MythUIGuideGrid::ParseElement(), and MythUIText::ParseElement().
|
static |
Definition at line 25 of file mythuiscreenbounds.cpp.
Referenced by MythDisplay::GetDesiredScreen().
| void MythUIScreenBounds::GetScalingFactors | ( | float & | Horizontal, |
| float & | Vertical | ||
| ) | const |
Definition at line 237 of file mythuiscreenbounds.cpp.
Referenced by VisualBase::drawWarning(), ImageLoader::LoadImage(), and MythMediaOverlay::OverrideUIScale().
| QRect MythUIScreenBounds::GetScreenRect | ( | ) |
Definition at line 214 of file mythuiscreenbounds.cpp.
Referenced by MythUIVirtualKeyboard::Create(), and TV::Init().
| QSize MythUIScreenBounds::GetThemeSize | ( | ) |
Definition at line 249 of file mythuiscreenbounds.cpp.
Referenced by MythMediaOverlay::OverrideUIScale().
| QRect MythUIScreenBounds::GetUIScreenRect | ( | ) |
Definition at line 198 of file mythuiscreenbounds.cpp.
Referenced by MythVideoOutputGPU::Create(), MythPlayerVisualiserUI::MythPlayerVisualiserUI(), MythScreenType::MythScreenType(), MythMediaOverlay::OverrideUIScale(), MythScreenType::ParseElement(), MythUIGuideGrid::ParseElement(), MythUIText::ParseElement(), XMLParseBase::parseSize(), MythUIStateType::RecalculateArea(), FontMap::Rescale(), MythFontProperties::Rescale(), MythUIButtonList::ShowSearchDialog(), and VideoVisualGoom::VideoVisualGoom().
|
protected |
Definition at line 130 of file mythuiscreenbounds.cpp.
Referenced by MythMainWindow::Init(), and MythUIScreenBounds().
| QSize MythUIScreenBounds::NormSize | ( | QSize | Size | ) | const |
Definition at line 219 of file mythuiscreenbounds.cpp.
Referenced by XMLParseBase::parseSize().
| int MythUIScreenBounds::NormX | ( | int | X | ) | const |
Definition at line 227 of file mythuiscreenbounds.cpp.
Referenced by MythPoint::NormPoint(), MythRect::NormRect(), and MythUIType::NormX().
| int MythUIScreenBounds::NormY | ( | int | Y | ) | const |
Definition at line 232 of file mythuiscreenbounds.cpp.
Referenced by MythPoint::NormPoint(), MythRect::NormRect(), MythUIType::NormY(), and MythFontProperties::SetPixelSize().
|
static |
Parse an X11 style command line geometry string.
Accepts strings like -geometry 800x600 or -geometry 800x600+112+22 to override the fullscreen and user default screen dimensions
Definition at line 40 of file mythuiscreenbounds.cpp.
Referenced by main().
| void MythUIScreenBounds::SetFontStretch | ( | int | Stretch | ) |
Definition at line 259 of file mythuiscreenbounds.cpp.
Referenced by MythMediaOverlay::OverrideUIScale(), and MythMediaOverlay::RevertUIScale().
| void MythUIScreenBounds::SetScalingFactors | ( | float | Horizontal, |
| float | Vertical | ||
| ) |
Definition at line 243 of file mythuiscreenbounds.cpp.
Referenced by MythMediaOverlay::OverrideUIScale(), and MythMediaOverlay::RevertUIScale().
| void MythUIScreenBounds::SetUIScreenRect | ( | QRect | Rect | ) |
Definition at line 203 of file mythuiscreenbounds.cpp.
Referenced by MythMainWindow::Init(), MythMediaOverlay::OverrideUIScale(), and MythMediaOverlay::RevertUIScale().
|
signal |
Referenced by MythPlayerVisualiserUI::MythPlayerVisualiserUI(), and SetUIScreenRect().
| void MythUIScreenBounds::UpdateScreenSettings | ( | MythDisplay * | mDisplay | ) |
Definition at line 144 of file mythuiscreenbounds.cpp.
Referenced by MythMainWindow::Init().
|
static |
Return true if the current platform only supports fullscreen windows.
Definition at line 115 of file mythuiscreenbounds.cpp.
Referenced by AppearanceSettings::AppearanceSettings(), MythDisplay::GetDesiredScreen(), MythMainWindow::Init(), and InitScreenBounds().
|
protected |
Definition at line 50 of file mythuiscreenbounds.h.
Referenced by MythMainWindow::Init(), and InitScreenBounds().
|
protected |
Definition at line 51 of file mythuiscreenbounds.h.
Referenced by GetFontStretch(), SetFontStretch(), and UpdateScreenSettings().
|
protected |
Definition at line 52 of file mythuiscreenbounds.h.
Referenced by InitScreenBounds(), and UpdateScreenSettings().
|
protected |
Definition at line 49 of file mythuiscreenbounds.h.
Referenced by MythMainWindow::Init(), InitScreenBounds(), and MythMainWindow::Show().
|
protected |
Definition at line 45 of file mythuiscreenbounds.h.
Referenced by GetScalingFactors(), NormSize(), NormX(), SetScalingFactors(), and UpdateScreenSettings().
|
protected |
Definition at line 44 of file mythuiscreenbounds.h.
Referenced by MythMainWindow::DelayedAction(), GetScreenRect(), MythMainWindow::Init(), and UpdateScreenSettings().
|
protected |
Definition at line 46 of file mythuiscreenbounds.h.
Referenced by GetScalingFactors(), NormSize(), NormY(), SetScalingFactors(), and UpdateScreenSettings().
|
protected |
Definition at line 42 of file mythuiscreenbounds.h.
Referenced by GetThemeSize(), InitScreenBounds(), and UpdateScreenSettings().
|
protected |
Definition at line 43 of file mythuiscreenbounds.h.
Referenced by MythMainWindow::Draw(), MythMainWindow::drawScreen(), GetUIScreenRect(), and SetUIScreenRect().
|
protected |
Definition at line 48 of file mythuiscreenbounds.h.
Referenced by MythMainWindow::Init(), InitScreenBounds(), and MythMainWindow::Show().
|
protected |
Definition at line 47 of file mythuiscreenbounds.h.
Referenced by MythMainWindow::Init(), InitScreenBounds(), and MythMainWindow::Show().
|
staticprivate |
Definition at line 58 of file mythuiscreenbounds.h.
Referenced by GeometryIsOverridden(), GetGeometryOverride(), ParseGeometryOverride(), and UpdateScreenSettings().
|
staticprivate |
Definition at line 57 of file mythuiscreenbounds.h.
Referenced by GeometryIsOverridden(), GetGeometryOverride(), ParseGeometryOverride(), and UpdateScreenSettings().
|
staticprivate |
Definition at line 55 of file mythuiscreenbounds.h.
Referenced by GeometryIsOverridden(), GetGeometryOverride(), ParseGeometryOverride(), and UpdateScreenSettings().
|
staticprivate |
Definition at line 56 of file mythuiscreenbounds.h.
Referenced by GeometryIsOverridden(), GetGeometryOverride(), ParseGeometryOverride(), and UpdateScreenSettings().