Gestro
|
This is a class that is inheriting from the classes WindowAction, KeyboardAction, MouseAction, VolumeControl, and DisplayControlCallbackInterface. More...
#include <DisplayControl.h>
Public Member Functions | |
DisplayControl (Display *d) | |
void | doMouseMove (int, int) override |
void | doKeyPress (int) override |
void | doIncreaseVolume () override |
void | doReduceVolume () override |
void | doUnmute () override |
void | doMuteUnmute () override |
void | doButtonPress (int) override |
void | doWindowMove (int, int) override |
void | doWindowMinimize () override |
Public Member Functions inherited from UbuntuController::WindowAction | |
WindowAction (Display *d) | |
void | changeWindowSize (int x, int y) |
void | moveWindow (int x, int y) |
void | closeWindow () |
void | minimizeWindow () |
Public Member Functions inherited from UbuntuController::KeyboardAction | |
KeyboardAction (Display *d) | |
void | pressKey (int k) |
Public Member Functions inherited from UbuntuController::MouseAction | |
MouseAction (Display *d, XEvent e) | |
void | pressButton (int button) |
void | releaseButton (int button) |
void | moveMouseTo (int x, int y) |
Public Member Functions inherited from UbuntuController::VolumeControl | |
VolumeControl (void) | |
void | increaseVolume () |
void | reduceVolume () |
void | muteAndUnmute () |
void | unmute () |
Private Attributes | |
Display * | display |
A pointer to the display variable. More... | |
XEvent | event |
A variable that is used to store the event that is being passed to the callback function. More... | |
This is a class that is inheriting from the classes WindowAction, KeyboardAction, MouseAction, VolumeControl, and DisplayControlCallbackInterface.
This class is used in order to concisely encapsulate the classes for keyboard,window, mouse and volume control into a single class so that they can be used in a callback function without the user needing to create objects for each of those classes any of the methods from the parent classes can be called by simply using dot notation
Definition at line 23 of file DisplayControl.h.
DisplayControl::DisplayControl | ( | Display * | d | ) |
Constructor that takes in a display variable
d | The display to use. |
Definition at line 5 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses MouseAction to pressButton
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 33 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses VolumeControl to increaseVolume
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 17 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses KeyboardAction to pressKey
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 13 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses MouseAction to moveMouse
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 9 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses VolumeControl to muteUnmuteVolume
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 25 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses VolumeControl to reduceVolume
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 21 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses VolumeControl to unmuteVolume
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 29 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses WindowAction to minimizeWindow
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 41 of file DisplayControl.cpp.
|
overridevirtual |
overrides the DisplayControlInterface method and uses WindowAction to moveWindow
Implements Gestro::DisplayControlCallbackInterface.
Definition at line 37 of file DisplayControl.cpp.
|
private |
A pointer to the display variable.
Definition at line 32 of file DisplayControl.h.
|
private |
A variable that is used to store the event that is being passed to the callback function.
Definition at line 35 of file DisplayControl.h.