![]() |
Gestro
|
A wrapper class for mouse control. More...
#include <MouseAction.h>


Public Member Functions | |
| MouseAction (Display *d, XEvent e) | |
| void | pressButton (int button) |
| void | releaseButton (int button) |
| void | moveMouseTo (int x, int y) |
Private Attributes | |
| Display * | display |
| A pointer to the display. More... | |
| XEvent | event |
| A variable that stores the XEvent. More... | |
| MouseControl | mouseControl |
| MouseControl object. More... | |
A wrapper class for mouse control.
Definition at line 9 of file MouseAction.h.
| MouseAction::MouseAction | ( | Display * | d, |
| XEvent | e | ||
| ) |
Constructor takes a Display and an XEvent and stores them in the class
| d | The display that the event occurred on. |
| e | The XEvent used to trigger the mouse action. |
Definition at line 5 of file MouseAction.cpp.
| void MouseAction::moveMouseTo | ( | int | x, |
| int | y | ||
| ) |
Wrapper function for moving the mouse
| x | x-coordinate for mouse position. |
| y | y-coordinate for mouse position. |
Definition at line 19 of file MouseAction.cpp.


| void MouseAction::pressButton | ( | int | button | ) |
Wrapper function for pressing Button
| button | The button to press. |
Definition at line 11 of file MouseAction.cpp.


| void MouseAction::releaseButton | ( | int | button | ) |
Wrapper function for releasing Button
| button | The button to release. |
Definition at line 15 of file MouseAction.cpp.

|
private |
A pointer to the display.
Definition at line 13 of file MouseAction.h.
|
private |
A variable that stores the XEvent.
Definition at line 16 of file MouseAction.h.
|
private |
MouseControl object.
Definition at line 19 of file MouseAction.h.
1.8.13