Back to index

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

List of all members.

Public Member Functions

def get_buttons
def get_button
def visible
def close
def minimize
def unmaximize
def maximize
def geometry

Static Public Attributes

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

Detailed Description

The window buttons class

Definition at line 213 of file panel.py.


Member Function Documentation

Definition at line 233 of file panel.py.

00233 
00234     def close(self):
00235         return self.get_button("Close")

Here is the call graph for this function:

Returns a tuple of (x,y,w,h) for the current panel.

Definition at line 249 of file panel.py.

00249 
00250     def geometry(self):
00251         """Returns a tuple of (x,y,w,h) for the current panel."""
00252         return (self.x, self.y, self.width, self.height)
00253 

Here is the call graph for this function:

Definition at line 223 of file panel.py.

00223 
00224     def get_button(self, type):
00225         buttons = self.get_children_by_type(WindowButton, type=type)
00226         assert(len(buttons) == 1)
00227         return buttons[0]

Here is the caller graph for this function:

def unity.emulators.panel.WindowButtons.get_buttons (   self,
  visible_only = True 
)
Return a list of window buttons

Definition at line 216 of file panel.py.

00216 
00217     def get_buttons(self, visible_only=True):
00218         """Return a list of window buttons"""
00219         if visible_only:
00220             return self.get_children_by_type(WindowButton, visible=True)
00221         else:
00222             return self.get_children_by_type(WindowButton)

Here is the caller graph for this function:

Definition at line 245 of file panel.py.

00245 
00246     def maximize(self):
00247         return self.get_button("Maximize")

Here is the call graph for this function:

Definition at line 237 of file panel.py.

00237 
00238     def minimize(self):
00239         return self.get_button("Minimize")

Here is the call graph for this function:

Definition at line 241 of file panel.py.

00241 
00242     def unmaximize(self):
00243         return self.get_button("Unmaximize")

Here is the call graph for this function:

Definition at line 229 of file panel.py.

00229 
00230     def visible(self):
00231         return len(self.get_buttons()) != 0

Here is the call graph for this function:

Here is the caller 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: