#include <X11FocusWatcher.hpp>


Public Member Functions | |
| void | init () |
| Initialize (create a thread and watch). | |
| bool | isApplicationRunning (std::string WindowTitle) |
| Is an application running? (by window title). | |
| virtual void | onFocusIn (X11FocusEvent const &Event) |
| Event triggered on a Focus In. | |
| virtual void | onFocusOut (X11FocusEvent const &Event) |
| Event triggered on a Focus Out. | |
| bool | setInputFocus (std::string WindowTitle) |
| Set the current input focus. | |
| void | shutdown () |
| Shutdown the thread that watches for focus changes. | |
| X11FocusWatcher () | |
| X11FocusWatcher Default Constructor. | |
| virtual | ~X11FocusWatcher () |
| X11FocusWatcher Destructor. | |
Static Public Member Functions | |
| static int | x11ErrorHandler (Display *display, XErrorEvent *error) |
| Error handler. | |
| static int | x11IOErrorHandler (Display *display) |
| IO error handler. | |
Classes | |
| struct | X11FocusWatcherThreadProc |
Definition at line 128 of file X11FocusWatcher.hpp.
| void X11FocusWatcher::init | ( | ) |
Initialize (create a thread and watch).
Initialize the focus watcher (create a new thread and start watching).
Definition at line 310 of file X11FocusWatcher.cpp.
| bool X11FocusWatcher::isApplicationRunning | ( | std::string | WindowTitle | ) |
Is an application running? (by window title).
Test is an application is running by checking for its window title.
| WindowTitle | The title of the window to find |
Definition at line 323 of file X11FocusWatcher.cpp.
| void X11FocusWatcher::onFocusIn | ( | X11FocusEvent const & | Event | ) | [virtual] |
Event triggered on a Focus In.
| Event | The Focus Event |
Definition at line 360 of file X11FocusWatcher.cpp.
References cdbg, Gizmod::X11FocusEvent::WindowClass, Gizmod::X11FocusEvent::WindowName, and Gizmod::X11FocusEvent::WindowNameFormal.
| void X11FocusWatcher::onFocusOut | ( | X11FocusEvent const & | Event | ) | [virtual] |
Event triggered on a Focus Out.
Event triggered on a Focus In.
| Event | The Focus Event |
Definition at line 369 of file X11FocusWatcher.cpp.
References cdbg, Gizmod::X11FocusEvent::WindowClass, Gizmod::X11FocusEvent::WindowName, and Gizmod::X11FocusEvent::WindowNameFormal.
| bool X11FocusWatcher::setInputFocus | ( | std::string | WindowTitle | ) |
Set the current input focus.
Sets the currently focused window.
| WindowTitle | The title of the window to raise |
Definition at line 454 of file X11FocusWatcher.cpp.
| void X11FocusWatcher::shutdown | ( | ) |
Shutdown the thread that watches for focus changes.
Signal the watching thread to shut itself down.
Definition at line 481 of file X11FocusWatcher.cpp.
References cdbg5.
Referenced by ~X11FocusWatcher().
| int X11FocusWatcher::x11ErrorHandler | ( | Display * | display, | |
| XErrorEvent * | error | |||
| ) | [static] |
| int X11FocusWatcher::x11IOErrorHandler | ( | Display * | display | ) | [static] |
1.5.3