Back to index

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

List of all members.

Public Member Functions

def center_position
def get_quicklist
def get_tooltip
def is_on_monitor
def controls_window

Static Public Attributes

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

Detailed Description

Represents the trash launcher icon.

Definition at line 74 of file icons.py.


Member Function Documentation

Holds information about a simple launcher icon.

Do not instantiate an instance of this class yourself. Instead, use the
appropriate methods in the Launcher class instead.
Get the center point of an icon, returns a tuple with (x, y, z).

Definition at line 25 of file icons.py.

00025 
00026     def center_position(self):
00027         """Get the center point of an icon, returns a tuple with (x, y, z)."""
00028         return (self.center_x, self.center_y, self.center_z)

def unity.emulators.icons.SimpleLauncherIcon.controls_window (   self,
  xid 
) [inherited]
Returns true if the icon controls the specified xid.

Definition at line 56 of file icons.py.

00056 
00057     def controls_window(self, xid):
00058         """Returns true if the icon controls the specified xid."""
00059 
00060         return self.xids.contains(xid)
00061 

Get the quicklist for this launcher icon.

This may return None, if there is no quicklist associated with this
launcher icon.

Definition at line 29 of file icons.py.

00029 
00030     def get_quicklist(self):
00031         """Get the quicklist for this launcher icon.
00032 
00033         This may return None, if there is no quicklist associated with this
00034         launcher icon.
00035 
00036         """
00037         matches = self.get_children_by_type(Quicklist)
00038         return matches[0] if matches else None

Get the tooltip for this launcher icon.

This may return None, if there is no tooltip associated with this
launcher icon.

Definition at line 39 of file icons.py.

00039 
00040     def get_tooltip(self):
00041         """Get the tooltip for this launcher icon.
00042 
00043         This may return None, if there is no tooltip associated with this
00044         launcher icon.
00045 
00046         """
00047         matches = self.get_children_by_type(ToolTip)
00048         return matches[0] if matches else None

def unity.emulators.icons.SimpleLauncherIcon.is_on_monitor (   self,
  monitor 
) [inherited]
Returns True if the icon is available in the defined monitor.

Definition at line 49 of file icons.py.

00049 
00050     def is_on_monitor(self, monitor):
00051         """Returns True if the icon is available in the defined monitor."""
00052         if monitor >= 0 and monitor < len(self.monitors_visibility):
00053             return self.monitors_visibility[monitor]
00054 
00055         return False


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: