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

This is a class that is inheriting from the classes WindowAction, KeyboardAction, MouseAction, VolumeControl, and DisplayControlCallbackInterface. More...

#include <DisplayControl.h>

Inheritance diagram for Gestro::DisplayControl:
Inheritance graph
Collaboration diagram for Gestro::DisplayControl:
Collaboration graph

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ DisplayControl()

DisplayControl::DisplayControl ( Display *  d)

Constructor that takes in a display variable

Parameters
dThe display to use.

Definition at line 5 of file DisplayControl.cpp.

Member Function Documentation

◆ doButtonPress()

void DisplayControl::doButtonPress ( int  x)
overridevirtual

overrides the DisplayControlInterface method and uses MouseAction to pressButton

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 33 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doIncreaseVolume()

void DisplayControl::doIncreaseVolume ( )
overridevirtual

overrides the DisplayControlInterface method and uses VolumeControl to increaseVolume

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 17 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doKeyPress()

void DisplayControl::doKeyPress ( int  x)
overridevirtual

overrides the DisplayControlInterface method and uses KeyboardAction to pressKey

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 13 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doMouseMove()

void DisplayControl::doMouseMove ( int  x,
int  y 
)
overridevirtual

overrides the DisplayControlInterface method and uses MouseAction to moveMouse

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 9 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doMuteUnmute()

void DisplayControl::doMuteUnmute ( )
overridevirtual

overrides the DisplayControlInterface method and uses VolumeControl to muteUnmuteVolume

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 25 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doReduceVolume()

void DisplayControl::doReduceVolume ( )
overridevirtual

overrides the DisplayControlInterface method and uses VolumeControl to reduceVolume

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 21 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doUnmute()

void DisplayControl::doUnmute ( )
overridevirtual

overrides the DisplayControlInterface method and uses VolumeControl to unmuteVolume

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 29 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doWindowMinimize()

void DisplayControl::doWindowMinimize ( )
overridevirtual

overrides the DisplayControlInterface method and uses WindowAction to minimizeWindow

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 41 of file DisplayControl.cpp.

Here is the call graph for this function:

◆ doWindowMove()

void DisplayControl::doWindowMove ( int  x,
int  y 
)
overridevirtual

overrides the DisplayControlInterface method and uses WindowAction to moveWindow

Implements Gestro::DisplayControlCallbackInterface.

Definition at line 37 of file DisplayControl.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ display

Display* Gestro::DisplayControl::display
private

A pointer to the display variable.

Definition at line 32 of file DisplayControl.h.

◆ event

XEvent Gestro::DisplayControl::event
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.


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