CEBL
2.1
|
#include <X11Controller.hpp>
Public Member Functions | |
X11Controller () | |
~X11Controller () | |
Window | getWindowByName (const char *search_name) |
bool | getCursorXYAbsolute (int *x, int *y) |
bool | getWindowXYAbsolute (Window window, int *x, int *y) |
bool | getWindowSize (Window window, int *width, int *height) |
bool | moveCursorIntoWindow (Window window) |
bool | moveCursorAbsoluteInWindow (Window window, int x, int y) |
bool | moveCursorRelative (int x, int y) |
bool | buttonPress (unsigned int button) |
bool | buttonRelease (unsigned int button) |
bool | leftClick () |
bool | rightClick () |
bool | middleClick () |
bool | doubleClick () |
bool | keyPress (const char *key) |
bool | keyRelease (const char *key) |
bool | keySend (const char *key) |
bool | stringSend (const char *string) |
bool | displayIsOpen () |
void | closeDisplay () |
Various X11 functions wrapped in easy to use interfaces.
Definition at line 33 of file X11Controller.hpp.
X11Controller::X11Controller | ( | ) |
Definition at line 20 of file X11Controller.cpp.
X11Controller::~X11Controller | ( | ) |
Definition at line 32 of file X11Controller.cpp.
bool X11Controller::buttonPress | ( | unsigned int | button | ) |
Definition at line 173 of file X11Controller.cpp.
Referenced by leftClick(), middleClick(), and rightClick().
bool X11Controller::buttonRelease | ( | unsigned int | button | ) |
Definition at line 180 of file X11Controller.cpp.
Referenced by leftClick(), middleClick(), and rightClick().
void X11Controller::closeDisplay | ( | ) |
Definition at line 292 of file X11Controller.cpp.
|
inline |
Definition at line 72 of file X11Controller.hpp.
bool X11Controller::doubleClick | ( | ) |
Definition at line 211 of file X11Controller.cpp.
References leftClick().
bool X11Controller::getCursorXYAbsolute | ( | int * | x, |
int * | y | ||
) |
Definition at line 92 of file X11Controller.cpp.
Referenced by moveCursorAbsoluteInWindow(), and moveCursorIntoWindow().
Window X11Controller::getWindowByName | ( | const char * | search_name | ) |
Definition at line 86 of file X11Controller.cpp.
bool X11Controller::getWindowSize | ( | Window | window, |
int * | width, | ||
int * | height | ||
) |
Definition at line 122 of file X11Controller.cpp.
bool X11Controller::getWindowXYAbsolute | ( | Window | window, |
int * | x, | ||
int * | y | ||
) |
Definition at line 105 of file X11Controller.cpp.
Referenced by moveCursorIntoWindow().
bool X11Controller::keyPress | ( | const char * | key | ) |
Definition at line 228 of file X11Controller.cpp.
Referenced by keySend().
bool X11Controller::keyRelease | ( | const char * | key | ) |
Definition at line 241 of file X11Controller.cpp.
Referenced by keySend().
bool X11Controller::keySend | ( | const char * | key | ) |
Definition at line 254 of file X11Controller.cpp.
References keyPress(), and keyRelease().
Referenced by stringSend().
bool X11Controller::leftClick | ( | ) |
Definition at line 187 of file X11Controller.cpp.
References buttonPress(), and buttonRelease().
Referenced by doubleClick().
bool X11Controller::middleClick | ( | ) |
Definition at line 203 of file X11Controller.cpp.
References buttonPress(), and buttonRelease().
bool X11Controller::moveCursorAbsoluteInWindow | ( | Window | window, |
int | x, | ||
int | y | ||
) |
Definition at line 151 of file X11Controller.cpp.
References getCursorXYAbsolute().
bool X11Controller::moveCursorIntoWindow | ( | Window | window | ) |
Definition at line 137 of file X11Controller.cpp.
References getCursorXYAbsolute(), and getWindowXYAbsolute().
bool X11Controller::moveCursorRelative | ( | int | x, |
int | y | ||
) |
Definition at line 163 of file X11Controller.cpp.
bool X11Controller::rightClick | ( | ) |
Definition at line 195 of file X11Controller.cpp.
References buttonPress(), and buttonRelease().
bool X11Controller::stringSend | ( | const char * | string | ) |
Definition at line 262 of file X11Controller.cpp.
References keySend().