MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MythXDisplay Class Reference

#include <mythxdisplay.h>

Collaboration diagram for MythXDisplay:
Collaboration graph
[legend]

Public Member Functions

 MythXDisplay ()=default
 
 ~MythXDisplay ()
 
Display * GetDisplay (void)
 
QString GetDisplayName (void) const
 
int GetScreen (void) const
 
void Lock (void)
 
void Unlock (void)
 
int GetDepth (void) const
 
Window GetRoot (void) const
 
bool Open (void)
 
QSize GetDisplaySize (void)
 Return the size of the X Display in pixels. More...
 
QSize GetDisplayDimensions (void)
 Return the size of the X Display in millimeters. More...
 
double GetRefreshRate (void)
 
void Sync (bool Flush=false)
 
void StartLog (void)
 
bool StopLog (void)
 

Static Public Member Functions

static MythXDisplayOpenMythXDisplay (bool Warn=true)
 

Private Member Functions

bool CheckErrors (Display *Disp=nullptr)
 
void CheckOrphanedErrors (void)
 

Private Attributes

Display * m_disp { nullptr }
 
int m_screenNum { 0 }
 
Screen * m_screen { nullptr }
 
int m_depth { 0 }
 
Window m_root { 0 }
 
QMutex m_lock { QMutex::Recursive }
 
QString m_displayName { }
 

Detailed Description

Definition at line 21 of file mythxdisplay.h.

Constructor & Destructor Documentation

◆ MythXDisplay()

MythXDisplay::MythXDisplay ( )
default

Referenced by OpenMythXDisplay().

◆ ~MythXDisplay()

MythXDisplay::~MythXDisplay ( )

Definition at line 62 of file mythxdisplay.cpp.

Member Function Documentation

◆ OpenMythXDisplay()

MythXDisplay * MythXDisplay::OpenMythXDisplay ( bool  Warn = true)
static

◆ GetDisplay()

Display* MythXDisplay::GetDisplay ( void  )
inline

◆ GetDisplayName()

QString MythXDisplay::GetDisplayName ( void  ) const
inline

Definition at line 29 of file mythxdisplay.h.

◆ GetScreen()

int MythXDisplay::GetScreen ( void  ) const
inline

Definition at line 30 of file mythxdisplay.h.

Referenced by MythVDPAUHelper::MythVDPAUHelper().

◆ Lock()

void MythXDisplay::Lock ( void  )
inline

Definition at line 31 of file mythxdisplay.h.

Referenced by MythXLocker::MythXLocker().

◆ Unlock()

void MythXDisplay::Unlock ( void  )
inline

Definition at line 32 of file mythxdisplay.h.

Referenced by MythXLocker::~MythXLocker().

◆ GetDepth()

int MythXDisplay::GetDepth ( void  ) const
inline

Definition at line 33 of file mythxdisplay.h.

◆ GetRoot()

Window MythXDisplay::GetRoot ( void  ) const
inline

◆ Open()

bool MythXDisplay::Open ( void  )

Definition at line 73 of file mythxdisplay.cpp.

Referenced by MythDisplayX11::IsAvailable().

◆ GetDisplaySize()

QSize MythXDisplay::GetDisplaySize ( void  )

Return the size of the X Display in pixels.

This corresponds to the size of the desktop, not necessarily to the size of single screen.

Definition at line 99 of file mythxdisplay.cpp.

◆ GetDisplayDimensions()

QSize MythXDisplay::GetDisplayDimensions ( void  )

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 121 of file mythxdisplay.cpp.

◆ GetRefreshRate()

double MythXDisplay::GetRefreshRate ( void  )

Definition at line 129 of file mythxdisplay.cpp.

Referenced by MythDisplayX11::UpdateCurrentMode().

◆ Sync()

void MythXDisplay::Sync ( bool  Flush = false)

◆ StartLog()

void MythXDisplay::StartLog ( void  )

Definition at line 167 of file mythxdisplay.cpp.

◆ StopLog()

bool MythXDisplay::StopLog ( void  )

Definition at line 176 of file mythxdisplay.cpp.

Referenced by ~MythXDisplay().

◆ CheckErrors()

bool MythXDisplay::CheckErrors ( Display *  Disp = nullptr)
private

Definition at line 188 of file mythxdisplay.cpp.

Referenced by CheckOrphanedErrors(), and StopLog().

◆ CheckOrphanedErrors()

void MythXDisplay::CheckOrphanedErrors ( void  )
private

Definition at line 223 of file mythxdisplay.cpp.

Referenced by CheckErrors().

Member Data Documentation

◆ m_disp

Display* MythXDisplay::m_disp { nullptr }
private

◆ m_screenNum

int MythXDisplay::m_screenNum { 0 }
private

Definition at line 48 of file mythxdisplay.h.

Referenced by GetDisplayDimensions(), GetDisplaySize(), GetRefreshRate(), and Open().

◆ m_screen

Screen* MythXDisplay::m_screen { nullptr }
private

Definition at line 49 of file mythxdisplay.h.

Referenced by Open().

◆ m_depth

int MythXDisplay::m_depth { 0 }
private

Definition at line 50 of file mythxdisplay.h.

Referenced by Open().

◆ m_root

Window MythXDisplay::m_root { 0 }
private

Definition at line 51 of file mythxdisplay.h.

Referenced by Open().

◆ m_lock

QMutex MythXDisplay::m_lock { QMutex::Recursive }
private

Definition at line 52 of file mythxdisplay.h.

◆ m_displayName

QString MythXDisplay::m_displayName { }
private

Definition at line 53 of file mythxdisplay.h.

Referenced by Open().


The documentation for this class was generated from the following files: