util-x11.cpp File Reference

Go to the source code of this file.

Typedefs

typedef int(* XErrorCallbackType )(Display *, XErrorEvent *)
typedef vector< XErrorEvent > XErrorVectorType

Functions

int GetNumberOfXineramaScreens (void)
 Returns number of Xinerama screens if Xinerama is available, or 0 if it is not available.
Display * MythXOpenDisplay (void)
int ErrorCatcher (Display *d, XErrorEvent *xeev)
void InstallXErrorHandler (Display *d)
void PrintXErrors (Display *d, const vector< XErrorEvent > &events)
vector< XErrorEvent > UninstallXErrorHandler (Display *d, bool printErrors)
QSize MythXGetDisplaySize (Display *d, int screen)
QSize MythXGetDisplayDimensions (Display *d, int screen)
double MythXGetPixelAspectRatio (Display *d, int screen)

Variables

QMutex x11_lock
map< Display *, XErrorVectorTypeerror_map
map< Display
*, XErrorCallbackType
error_handler_map


Typedef Documentation

typedef int(* XErrorCallbackType)(Display *, XErrorEvent *)

Definition at line 16 of file util-x11.cpp.

typedef vector<XErrorEvent> XErrorVectorType

Definition at line 17 of file util-x11.cpp.


Function Documentation

GetNumberOfXineramaScreens ( void   ) 

Returns number of Xinerama screens if Xinerama is available, or 0 if it is not available.

Definition at line 31 of file util-x11.cpp.

Referenced by AppearanceSettings::AppearanceSettings(), MythContextPrivate::GetScreenBounds(), VideoOutputXv::InitDisplayMeasurements(), and XineramaScreen().

Display* MythXOpenDisplay ( void   ) 

int ErrorCatcher ( Display *  d,
XErrorEvent *  xeev 
)

Definition at line 73 of file util-x11.cpp.

Referenced by InstallXErrorHandler().

void InstallXErrorHandler ( Display *  d  ) 

void PrintXErrors ( Display *  d,
const vector< XErrorEvent > &  events 
)

vector<XErrorEvent> UninstallXErrorHandler ( Display *  d,
bool  printErrors 
)

QSize MythXGetDisplaySize ( Display *  d,
int  screen 
)

Definition at line 130 of file util-x11.cpp.

Referenced by MythXGetPixelAspectRatio().

QSize MythXGetDisplayDimensions ( Display *  d,
int  screen 
)

double MythXGetPixelAspectRatio ( Display *  d,
int  screen 
)

Definition at line 188 of file util-x11.cpp.

Referenced by MythGetPixelAspectRatio().


Variable Documentation

QMutex x11_lock

Definition at line 9 of file util-x11.cpp.

map<Display*, XErrorVectorType> error_map

Definition at line 23 of file util-x11.cpp.

Referenced by ErrorCatcher(), InstallXErrorHandler(), and UninstallXErrorHandler().

Definition at line 24 of file util-x11.cpp.

Referenced by InstallXErrorHandler(), and UninstallXErrorHandler().


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5