Class: ATSPI::Desktop
- Inherits:
-
Accessible
- Object
- Accessible
- ATSPI::Desktop
- Defined in:
- lib/atspi/desktop.rb
Overview
Desktops are Accessibles having a few exceptions.
Identification collapse
-
#application ⇒ Object
It belongs to no application.
-
#desktop ⇒ self
Its desktop is itself.
-
#parent ⇒ nil
It has no parent.
-
#path ⇒ []
It has no path.
-
#window ⇒ Object
It has no window.
Tree & Traversal collapse
-
#applications ⇒ Children
Its applications are its children.
-
#descendant_by_path(*path) ⇒ nil
It cannot get descendants by path since the path begins not until reaching the children of windows.
Representations collapse
-
#inspect ⇒ String
Itself as an inspectable string.
Instance Method Details
#application ⇒ Object
It belongs to no application.
25 26 27 |
# File 'lib/atspi/desktop.rb', line 25 def application nil end |
#applications ⇒ Children
Its applications are its children.
40 41 42 |
# File 'lib/atspi/desktop.rb', line 40 def applications children end |
#descendant_by_path(*path) ⇒ nil
It cannot get descendants by path since the path begins not until reaching the children of windows.
47 48 49 |
# File 'lib/atspi/desktop.rb', line 47 def descendant_by_path(*path) nil end |
#desktop ⇒ self
Its desktop is itself.
19 20 21 |
# File 'lib/atspi/desktop.rb', line 19 def desktop self end |
#inspect ⇒ String
Returns itself as an inspectable string.
54 55 56 |
# File 'lib/atspi/desktop.rb', line 54 def inspect "#<#{self.class.name}:0x#{'%x14' % __id__} @index=#{index} @name=#{name.inspect}>" end |
#parent ⇒ nil
It has no parent.
7 8 9 |
# File 'lib/atspi/desktop.rb', line 7 def parent nil end |
#path ⇒ []
It has no path.
13 14 15 |
# File 'lib/atspi/desktop.rb', line 13 def path [] end |
#window ⇒ Object
It has no window.
31 32 33 |
# File 'lib/atspi/desktop.rb', line 31 def window nil end |