Class: ATSPI::Application

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

Overview

Applications are Accessibles having a few exceptions.

Identification collapse

Tree & Traversal collapse

Representations collapse

Instance Method Details

#applicationself

Its application is itself

Returns:

  • (self)


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

def application
  self
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)


41
42
43
# File 'lib/atspi/application.rb', line 41

def descendant_by_path(*path)
  nil
end

#desktopDesktop

Its desktop is its parent

Returns:



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

def desktop
  parent
end

#inspectString

Returns itself as an inspectable string.

Returns:

  • (String)

    itself as an inspectable string



48
49
50
# File 'lib/atspi/application.rb', line 48

def inspect
  "#<#{self.class.name}:0x#{'%x14' % __id__} @desktop=#{desktop.index} @name=#{name.inspect}>"
end

#path[]

It has no path.

Returns:

  • ([])


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

def path
  []
end

#windowObject

It belongs to no window

Returns:

  • nil



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

def window
  nil
end

#windowsChildren

Its windows are its children.

Returns:



34
35
36
# File 'lib/atspi/application.rb', line 34

def windows
  children
end