X11 error handler. More...
#include <CXWindowsUtil.h>
Public Types | |
| typedef void(* | ErrorHandler )(Display *, XErrorEvent *, void *userData) |
| Error handler type. | |
Public Member Functions | |
| CErrorLock (Display *) | |
| CErrorLock (Display *, bool *errorFlag) | |
| CErrorLock (Display *, ErrorHandler handler, void *userData) | |
X11 error handler.
This class sets an X error handler in the c'tor and restores the previous error handler in the d'tor. A lock should only be installed while the display is locked by the thread.
CErrorLock() ignores errors CErrorLock(bool* flag) sets *flag to true if any error occurs
Definition at line 132 of file CXWindowsUtil.h.
| CXWindowsUtil::CErrorLock::CErrorLock | ( | Display * | display | ) |
Ignore X11 errors.
Definition at line 1716 of file CXWindowsUtil.cpp.
| CXWindowsUtil::CErrorLock::CErrorLock | ( | Display * | display, | |
| bool * | errorFlag | |||
| ) |
Set *errorFlag if any error occurs.
Definition at line 1722 of file CXWindowsUtil.cpp.
| CXWindowsUtil::CErrorLock::CErrorLock | ( | Display * | display, | |
| ErrorHandler | handler, | |||
| void * | userData | |||
| ) |
Call handler on each error.
Definition at line 1728 of file CXWindowsUtil.cpp.
1.7.1