#include <CXWindowsUtil.h>
Collaboration diagram for CXWindowsUtil::CErrorLock:

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) | |
| ~CErrorLock () | |
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 128 of file CXWindowsUtil.h.
| CXWindowsUtil::CErrorLock::CErrorLock | ( | Display * | ) |
Ignore X11 errors.
Definition at line 1702 of file CXWindowsUtil.cpp.
| CXWindowsUtil::CErrorLock::CErrorLock | ( | Display * | , | |
| bool * | errorFlag | |||
| ) |
Set *errorFlag if any error occurs.
Definition at line 1708 of file CXWindowsUtil.cpp.
| CXWindowsUtil::CErrorLock::CErrorLock | ( | Display * | , | |
| ErrorHandler | handler, | |||
| void * | userData | |||
| ) |
Call handler on each error.
Definition at line 1714 of file CXWindowsUtil.cpp.
1.4.7