MythTV  master
mythdisplayosx.h
Go to the documentation of this file.
1 #ifndef MYTHDISPLAYOSX_H
2 #define MYTHDISPLAYOSX_H
3 
4 // MythTV
5 #include "mythdisplay.h"
6 
7 // CoreGraphics
8 #include <CoreGraphics/CGDirectDisplay.h>
9 
11 {
12  public:
14  ~MythDisplayOSX() override;
15 
16  void UpdateCurrentMode(void) override;
17 
18  bool VideoModesAvailable(void) override { return true; }
19  bool UsingVideoModes(void) override;
20  const std::vector<MythDisplayMode>& GetVideoModes(void) override;
21  bool SwitchToVideoMode(QSize Size, double DesiredRate) override;
22 
23  private:
24  void ClearModes(void);
25  QMap<uint64_t, CGDisplayModeRef> m_modeMap { };
26 };
27 
28 #endif // MYTHDISPLAYOSX_H
MythDisplayOSX::~MythDisplayOSX
~MythDisplayOSX() override
Definition: mythdisplayosx.cpp:17
MythDisplayOSX::MythDisplayOSX
MythDisplayOSX()
Definition: mythdisplayosx.cpp:11
MythDisplayOSX::ClearModes
void ClearModes(void)
Definition: mythdisplayosx.cpp:156
mythdisplay.h
MythDisplayOSX::UpdateCurrentMode
void UpdateCurrentMode(void) override
Retrieve screen details.
Definition: mythdisplayosx.cpp:22
MythDisplay
Definition: mythdisplay.h:19
MythDisplayOSX
Definition: mythdisplayosx.h:11
MythDisplayOSX::GetVideoModes
const std::vector< MythDisplayMode > & GetVideoModes(void) override
Definition: mythdisplayosx.cpp:68
MythDisplayOSX::m_modeMap
QMap< uint64_t, CGDisplayModeRef > m_modeMap
Definition: mythdisplayosx.h:25
MythDisplayOSX::UsingVideoModes
bool UsingVideoModes(void) override
Definition: mythdisplayosx.cpp:61
MythDisplayOSX::SwitchToVideoMode
bool SwitchToVideoMode(QSize Size, double DesiredRate) override
Definition: mythdisplayosx.cpp:120
MythDisplayOSX::VideoModesAvailable
bool VideoModesAvailable(void) override
Definition: mythdisplayosx.h:18