Back to index

unity  6.0.0
Public Member Functions | Static Public Attributes
unity.emulators.window_manager.WindowManager Class Reference
Inheritance diagram for unity.emulators.window_manager.WindowManager:
Inheritance graph
[legend]
Collaboration diagram for unity.emulators.window_manager.WindowManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def screen_geometry
def enter_show_desktop
def leave_show_desktop

Static Public Attributes

string DBUS_SERVICE = "com.canonical.Unity"
string DBUS_OBJECT = "/com/canonical/Unity/Debug"

Detailed Description

The WindowManager class.

Definition at line 20 of file window_manager.py.


Member Function Documentation

Definition at line 28 of file window_manager.py.

00028 
00029     def enter_show_desktop(self):
00030         if not self.showdesktop_active:
00031             logger.info("Entering show desktop mode.")
00032             self.keybinding("window/show_desktop")
00033             self.showdesktop_active.wait_for(True)
00034         else:
00035             logger.warning("Test tried to enter show desktop mode while already \
00036                 in show desktop mode.")

Definition at line 37 of file window_manager.py.

00037 
00038     def leave_show_desktop(self):
00039         if self.showdesktop_active:
00040             logger.info("Leaving show desktop mode.")
00041             self.keybinding("window/show_desktop")
00042             self.showdesktop_active.wait_for(False)
00043         else:
00044             logger.warning("Test tried to leave show desktop mode while not in \
00045                 show desktop mode.")
Returns a tuple of (x,y,w,h) for the screen.

Definition at line 24 of file window_manager.py.

00024 
00025     def screen_geometry(self):
00026         """Returns a tuple of (x,y,w,h) for the screen."""
00027         return (self.x, self.y, self.width, self.height)

Here is the call graph for this function:


Member Data Documentation

string unity.emulators.UnityIntrospectionObject.DBUS_OBJECT = "/com/canonical/Unity/Debug" [static, inherited]

Definition at line 19 of file __init__.py.

string unity.emulators.UnityIntrospectionObject.DBUS_SERVICE = "com.canonical.Unity" [static, inherited]

Definition at line 18 of file __init__.py.


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