Class: ATSPI::Window

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

Overview

Windows are Accessibles having a few exceptions.

Identification collapse

Representations collapse

Instance Method Details

#inspectString

Returns itself as an inspectable string.

Returns:

  • (String)

    itself as an inspectable string



26
27
28
29
30
# File 'lib/atspi/window.rb', line 26

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

#parentApplication

Its parent is its application

Returns:



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

def parent
  application
end

#path[]

It has no path.

Returns:

  • ([])


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

def path
  []
end

#windowself

Its window is itself

Returns:

  • (self)


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

def window
  self
end