Class: ATSPI::Desktop

Inherits:
Accessible show all
Defined in:
lib/atspi/desktop.rb

Overview

Desktops are Accessibles having a few exceptions.

Identification collapse

Tree & Traversal collapse

Representations collapse

Instance Method Details

#applicationObject

It belongs to no application.

Returns:

  • nil



25
26
27
# File 'lib/atspi/desktop.rb', line 25

def application
  nil
end

#applicationsChildren

Its applications are its children.

Returns:



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.

Returns:

  • (nil)


47
48
49
# File 'lib/atspi/desktop.rb', line 47

def descendant_by_path(*path)
  nil
end

#desktopself

Its desktop is itself.

Returns:

  • (self)


19
20
21
# File 'lib/atspi/desktop.rb', line 19

def desktop
  self
end

#inspectString

Returns itself as an inspectable string.

Returns:

  • (String)

    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

#parentnil

It has no parent.

Returns:

  • (nil)


7
8
9
# File 'lib/atspi/desktop.rb', line 7

def parent
  nil
end

#path[]

It has no path.

Returns:

  • ([])


13
14
15
# File 'lib/atspi/desktop.rb', line 13

def path
  []
end

#windowObject

It has no window.

Returns:

  • nil



31
32
33
# File 'lib/atspi/desktop.rb', line 31

def window
  nil
end