MythXDisplay Class Reference

#include <mythxdisplay.h>

List of all members.

Public Member Functions

 MythXDisplay ()
 ~MythXDisplay ()
Display * GetDisplay (void)
int GetScreen (void) const
void Lock (void)
void Unlock (void)
int GetDepth (void) const
Window GetRoot (void) const
GC GetGC (void) const
unsigned long GetBlack (void) const
bool Open (void)
bool CreateGC (Window win)
void SetForeground (unsigned long color)
void FillRectangle (Window win, const QRect &rect)
void MoveResizeWin (Window win, const QRect &rect)
int GetNumberXineramaScreens (void)
QSize GetDisplaySize (void)
QSize GetDisplayDimensions (void)
float GetRefreshRate (void)
void Sync (bool flush=false)
void StartLog (void)
bool StopLog (void)

Private Member Functions

bool CheckErrors (Display *disp=NULL)
void CheckOrphanedErrors (void)

Private Attributes

Display * m_disp
int m_screen_num
Screen * m_screen
int m_depth
unsigned long m_black
GC m_gc
Window m_root
QMutex m_lock

Detailed Description

Definition at line 16 of file mythxdisplay.h.


Constructor & Destructor Documentation

MythXDisplay::MythXDisplay (  ) 

Definition at line 70 of file mythxdisplay.cpp.

MythXDisplay::~MythXDisplay (  ) 

Definition at line 77 of file mythxdisplay.cpp.


Member Function Documentation

Display* MythXDisplay::GetDisplay ( void   )  [inline]
int MythXDisplay::GetScreen ( void   )  const [inline]
void MythXDisplay::Lock ( void   )  [inline]
void MythXDisplay::Unlock ( void   )  [inline]
int MythXDisplay::GetDepth ( void   )  const [inline]
Window MythXDisplay::GetRoot ( void   )  const [inline]
GC MythXDisplay::GetGC ( void   )  const [inline]
unsigned long MythXDisplay::GetBlack ( void   )  const [inline]
bool MythXDisplay::Open ( void   ) 

Definition at line 92 of file mythxdisplay.cpp.

Referenced by OpenMythXDisplay().

bool MythXDisplay::CreateGC ( Window  win  ) 

Definition at line 115 of file mythxdisplay.cpp.

Referenced by MythRenderVDPAU::Create(), and VideoOutputXv::Init().

void MythXDisplay::SetForeground ( unsigned long  color  ) 
void MythXDisplay::FillRectangle ( Window  win,
const QRect &  rect 
)
void MythXDisplay::MoveResizeWin ( Window  win,
const QRect &  rect 
)
int MythXDisplay::GetNumberXineramaScreens ( void   ) 

Definition at line 145 of file mythxdisplay.cpp.

Referenced by MythDisplay::GetNumberXineramaScreens().

QSize MythXDisplay::GetDisplaySize ( void   ) 

Definition at line 158 of file mythxdisplay.cpp.

Referenced by MythDisplay::GetDisplayInfo().

QSize MythXDisplay::GetDisplayDimensions ( void   ) 

Definition at line 166 of file mythxdisplay.cpp.

Referenced by MythDisplay::GetDisplayInfo().

float MythXDisplay::GetRefreshRate ( void   ) 

Definition at line 174 of file mythxdisplay.cpp.

Referenced by MythDisplay::GetDisplayInfo().

void MythXDisplay::Sync ( bool  flush = false  ) 
void MythXDisplay::StartLog ( void   ) 
bool MythXDisplay::StopLog ( void   ) 
bool MythXDisplay::CheckErrors ( Display *  disp = NULL  )  [private]

Definition at line 234 of file mythxdisplay.cpp.

Referenced by CheckOrphanedErrors(), and StopLog().

void MythXDisplay::CheckOrphanedErrors ( void   )  [private]

Definition at line 276 of file mythxdisplay.cpp.

Referenced by CheckErrors().


Member Data Documentation

Display* MythXDisplay::m_disp [private]

Definition at line 47 of file mythxdisplay.h.

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

Screen* MythXDisplay::m_screen [private]

Definition at line 48 of file mythxdisplay.h.

Referenced by Open().

int MythXDisplay::m_depth [private]

Definition at line 49 of file mythxdisplay.h.

Referenced by Open().

unsigned long MythXDisplay::m_black [private]

Definition at line 50 of file mythxdisplay.h.

Referenced by Open().

GC MythXDisplay::m_gc [private]

Definition at line 51 of file mythxdisplay.h.

Referenced by CreateGC(), FillRectangle(), SetForeground(), and ~MythXDisplay().

Window MythXDisplay::m_root [private]

Definition at line 52 of file mythxdisplay.h.

Referenced by Open().

QMutex MythXDisplay::m_lock [private]

Definition at line 53 of file mythxdisplay.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:18 2012 for MythTV by  doxygen 1.6.3