35 static bool SpanAllScreens ();
36 static QString GetExtraScreenInfo (QScreen *qScreen);
37 QStringList GetDescription ();
38 QRect GetScreenBounds ();
39 QScreen* GetCurrentScreen ();
40 QWindow* GetCurrentWindow ();
41 static int GetScreenCount ();
42 double GetPixelAspectRatio ();
43 QSize GetGUIResolution ();
44 bool NextModeIsLarger (QSize Size);
45 void SwitchToDesktop ();
46 bool SwitchToGUI (
bool Wait =
false);
47 bool SwitchToVideo (QSize Size,
double Rate = 0.0);
48 QSize GetResolution ();
49 QSize GetPhysicalSize ();
50 double GetRefreshRate ()
const;
51 std::chrono::microseconds GetRefreshInterval (std::chrono::microseconds Fallback)
const;
52 double GetAspectRatio (QString &
Source,
bool IgnoreModeOverride =
false);
53 double EstimateVirtualAspectRatio();
59 virtual void ScreenChanged (QScreen *qScreen);
60 static void PrimaryScreenChanged (QScreen *qScreen);
61 void ScreenAdded (QScreen *qScreen);
62 void ScreenRemoved (QScreen *qScreen);
63 void PhysicalDPIChanged (qreal DPI);
64 static void GeometryChanged (QRect Geometry);
75 virtual void UpdateCurrentMode ();
76 virtual bool SwitchToVideoMode (QSize Size,
double Framerate);
78 void DebugModes ()
const;
79 void SetWidget (QWidget *MainWindow);
80 static QScreen* GetDesiredScreen ();
81 static void DebugScreen (QScreen *qScreen,
const QString &Message);
84 void WaitForScreenChange();
85 void WaitForNewScreen ();
88 bool m_waitForModeChanges {
true };
89 bool m_modeComplete {
false };
90 double m_refreshRate { 0.0 };
91 double m_aspectRatioOverride { 0.0 };
92 QSize m_resolution { 0, 0 };
93 QSize m_physicalSize { 0, 0 };
95 QWidget* m_widget {
nullptr };
96 QWindow* m_window {
nullptr };
97 QScreen* m_screen {
nullptr };
104 static void PauseForModeSwitch();
106 bool m_initialised {
false };
107 bool m_firstScreenChange{
true };
Parent class for defining application command line parsers.
MythDisplayMode m_guiMode
virtual bool VideoModesAvailable()
MythDisplayModes m_videoModes
MythDisplayMode m_desktopMode
virtual bool UsingVideoModes()
void ScreenCountChanged(int Screens)
DisplayModeMap m_overrideVideoModes
MythDisplayMode m_videoMode
std::map< uint64_t, MythDisplayMode > DisplayModeMap
std::vector< MythDisplayMode > MythDisplayModes
std::vector< double > MythDisplayRates
std::shared_ptr< class MythHDR > MythHDRPtr
std::shared_ptr< class MythVRR > MythVRRPtr