Gestro
Public Member Functions | List of all members
UbuntuController::WindowControl Class Reference

Used to send window events. More...

#include <WindowControl.h>

Collaboration diagram for UbuntuController::WindowControl:
Collaboration graph

Public Member Functions

 WindowControl (void)
 
Window identifyWindow (Display *display)
 
void resize (Display *display, int x, int y)
 
void move (Display *display, int x, int y)
 
void minimize (Display *display)
 
void close (Display *display)
 

Detailed Description

Used to send window events.

Definition at line 8 of file WindowControl.h.

Constructor & Destructor Documentation

◆ WindowControl()

WindowControl::WindowControl ( void  )

Constructor

Definition at line 6 of file WindowControl.cpp.

Member Function Documentation

◆ close()

void WindowControl::close ( Display *  display)

It closes the window

Parameters
displayThe display to use.

Definition at line 43 of file WindowControl.cpp.

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

◆ identifyWindow()

Window WindowControl::identifyWindow ( Display *  display)

It returns the window that currently has focus

Parameters
displayThe display to use.
Returns
The window that has focus.

Definition at line 8 of file WindowControl.cpp.

Here is the caller graph for this function:

◆ minimize()

void WindowControl::minimize ( Display *  display)

It minimizes the window

Parameters
displayThe display to use.

Definition at line 37 of file WindowControl.cpp.

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

◆ move()

void WindowControl::move ( Display *  display,
int  x,
int  y 
)

It moves the window to the specified coordinates

Parameters
displayThe display to use.
xThe x coordinate of the window's new position.
yThe y coordinate of the window's new position.

Definition at line 31 of file WindowControl.cpp.

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

◆ resize()

void WindowControl::resize ( Display *  display,
int  x,
int  y 
)

It takes a display and two integers as arguments, and resizes the window to the given dimensions

Parameters
displayThe display to use.
xThe x coordinate of the upper left corner of the window.
yThe y coordinate of the upper-left outside corner of the window.

Definition at line 16 of file WindowControl.cpp.

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

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