MythTV
master
|
#include <libmythui/platforms/mythxdisplay.h>
Public Member Functions | |
MythXDisplay ()=default | |
~MythXDisplay () | |
Display * | GetDisplay () |
QString | GetDisplayName () const |
int | GetScreen () const |
void | Lock () |
void | Unlock () |
int | GetDepth () const |
Window | GetRoot () const |
bool | Open () |
Open the display. More... | |
QSize | GetDisplayDimensions () |
Return the size of the X Display in millimeters. More... | |
void | Sync (bool Flush=false) |
Static Public Member Functions | |
static MythXDisplay * | OpenMythXDisplay (bool Warn=true) |
static void | SetQtX11Display (const QString &DisplayStr) |
static bool | DisplayIsRemote () |
Determine if we are running a remote X11 session. More... | |
Private Attributes | |
Display * | m_disp { nullptr } |
int | m_screenNum { 0 } |
Screen * | m_screen { nullptr } |
int | m_depth { 0 } |
Window | m_root { 0 } |
QRecursiveMutex | m_lock |
QString | m_displayName |
Static Private Attributes | |
static QString | s_QtX11Display |
Definition at line 15 of file mythxdisplay.h.
|
default |
Referenced by OpenMythXDisplay().
MythXDisplay::~MythXDisplay | ( | ) |
Definition at line 67 of file mythxdisplay.cpp.
|
static |
Definition at line 25 of file mythxdisplay.cpp.
Referenced by MythNVControl::Create(), DisplayIsRemote(), MythDisplayX11::GetVideoModes(), MythScreenSaverControl::MythScreenSaverControl(), ScreenSaverX11Private::ScreenSaverX11Private(), MythDisplayX11::SwitchToVideoMode(), and MythDisplayX11::UpdateCurrentMode().
|
static |
Definition at line 37 of file mythxdisplay.cpp.
Referenced by MythDisplay::ConfigureQtGUI().
|
static |
Determine if we are running a remote X11 session.
Definition at line 43 of file mythxdisplay.cpp.
Referenced by MythRenderOpenGL::Create().
|
inline |
Definition at line 25 of file mythxdisplay.h.
Referenced by MythScreenSaverX11::Asleep(), MythScreenSaverX11::Disable(), ScreenSaverX11Private::DisableDPMS(), MythNVControl::GetDisplayID(), MythDisplayX11::GetEDID(), MythDisplayX11::GetOutput(), MythVDPAUHelper::MythVDPAUHelper(), MythScreenSaverX11::Reset(), MythScreenSaverX11::Restore(), ScreenSaverX11Private::RestoreDPMS(), ScreenSaverX11Private::RestoreScreenSaver(), ScreenSaverX11Private::SaveScreenSaver(), and ScreenSaverX11Private::ScreenSaverX11Private().
|
inline |
Definition at line 26 of file mythxdisplay.h.
|
inline |
Definition at line 27 of file mythxdisplay.h.
Referenced by MythNVControl::GetDisplayID(), and MythVDPAUHelper::MythVDPAUHelper().
|
inline |
Definition at line 28 of file mythxdisplay.h.
Referenced by MythVDPAUHelper::MythVDPAUHelper(), MythXLocker::MythXLocker(), and Sync().
|
inline |
Definition at line 29 of file mythxdisplay.h.
Referenced by MythVDPAUHelper::MythVDPAUHelper(), Sync(), and MythXLocker::~MythXLocker().
|
inline |
Definition at line 30 of file mythxdisplay.h.
|
inline |
Definition at line 31 of file mythxdisplay.h.
Referenced by MythDisplayX11::GetEDID().
bool MythXDisplay::Open | ( | ) |
Open the display.
Definition at line 86 of file mythxdisplay.cpp.
Referenced by MythDisplayX11::IsAvailable().
QSize MythXDisplay::GetDisplayDimensions | ( | ) |
Return the size of the X Display in millimeters.
This corresponds to the size of the desktop, not necessarily to the size of single screen.
Definition at line 112 of file mythxdisplay.cpp.
Definition at line 120 of file mythxdisplay.cpp.
Referenced by MythScreenSaverX11::Disable(), ScreenSaverX11Private::DisableDPMS(), MythScreenSaverX11::Reset(), MythScreenSaverX11::Restore(), ScreenSaverX11Private::RestoreDPMS(), and ScreenSaverX11Private::RestoreScreenSaver().
|
inlinestaticprivate |
Definition at line 37 of file mythxdisplay.h.
Referenced by Open(), and SetQtX11Display().
|
private |
Definition at line 39 of file mythxdisplay.h.
Referenced by GetDisplayDimensions(), Open(), Sync(), and ~MythXDisplay().
|
private |
Definition at line 40 of file mythxdisplay.h.
Referenced by GetDisplayDimensions(), and Open().
|
private |
Definition at line 41 of file mythxdisplay.h.
Referenced by Open().
|
private |
Definition at line 42 of file mythxdisplay.h.
Referenced by Open().
|
private |
Definition at line 43 of file mythxdisplay.h.
Referenced by Open().
|
private |
Definition at line 44 of file mythxdisplay.h.
|
private |
Definition at line 45 of file mythxdisplay.h.
Referenced by Open().