Gestro
Public Member Functions | Private Attributes | List of all members
UbuntuController::MouseAction Class Reference

A wrapper class for mouse control. More...

#include <MouseAction.h>

Inheritance diagram for UbuntuController::MouseAction:
Inheritance graph
Collaboration diagram for UbuntuController::MouseAction:
Collaboration graph

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...
 

Detailed Description

A wrapper class for mouse control.

Definition at line 9 of file MouseAction.h.

Constructor & Destructor Documentation

◆ MouseAction()

MouseAction::MouseAction ( Display *  d,
XEvent  e 
)

Constructor takes a Display and an XEvent and stores them in the class

Parameters
dThe display that the event occurred on.
eThe XEvent used to trigger the mouse action.

Definition at line 5 of file MouseAction.cpp.

Member Function Documentation

◆ moveMouseTo()

void MouseAction::moveMouseTo ( int  x,
int  y 
)

Wrapper function for moving the mouse

Parameters
xx-coordinate for mouse position.
yy-coordinate for mouse position.

Definition at line 19 of file MouseAction.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pressButton()

void MouseAction::pressButton ( int  button)

Wrapper function for pressing Button

Parameters
buttonThe button to press.

Definition at line 11 of file MouseAction.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ releaseButton()

void MouseAction::releaseButton ( int  button)

Wrapper function for releasing Button

Parameters
buttonThe button to release.

Definition at line 15 of file MouseAction.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ display

Display* UbuntuController::MouseAction::display
private

A pointer to the display.

Definition at line 13 of file MouseAction.h.

◆ event

XEvent UbuntuController::MouseAction::event
private

A variable that stores the XEvent.

Definition at line 16 of file MouseAction.h.

◆ mouseControl

MouseControl UbuntuController::MouseAction::mouseControl
private

MouseControl object.

Definition at line 19 of file MouseAction.h.


The documentation for this class was generated from the following files: