Back to index

unity  6.0.0
Public Member Functions | Static Public Attributes | Private Attributes
unity.emulators.quicklist.QuicklistMenuItem Class Reference
Inheritance diagram for unity.emulators.quicklist.QuicklistMenuItem:
Inheritance graph
Collaboration diagram for unity.emulators.quicklist.QuicklistMenuItem:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def geometry
def mouse_move_to
def mouse_click

Static Public Attributes

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

Private Attributes


Detailed Description

Represents a single item in a quicklist.

Definition at line 74 of file

Constructor & Destructor Documentation

def unity.emulators.quicklist.QuicklistMenuItem.__init__ (   self,

Definition at line 77 of file

00078     def __init__(self, *args, **kwargs):
00079         super(QuicklistMenuItem, self).__init__(*args, **kwargs)
00080         self._mouse = Mouse()

Member Function Documentation

Returns a tuple of (x,y,w,h) for the quicklist item.

Definition at line 82 of file

00083     def geometry(self):
00084         """Returns a tuple of (x,y,w,h) for the quicklist item."""
00085         return (self.x, self.y, self.width, self.height)

Here is the call graph for this function:

Definition at line 93 of file

00094     def mouse_click(self, button=1):
00095         logger.debug("Clicking on quicklist item %r", self)
00096         self.mouse_move_to()

Here is the call graph for this function:

Definition at line 86 of file

00087     def mouse_move_to(self):
00088         assert(self.visible)
00089         logger.debug("Moving mouse over quicklist item %r", self)
00090         target_x = self.x + self.width / 2
00091         target_y = self.y + self.height / 2
00092         self._mouse.move(target_x, target_y, rate=20, time_between_events=0.005)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 79 of file

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

Definition at line 19 of file

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

Definition at line 18 of file

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