Class: ATSPI::Extents

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/atspi/extents.rb

Overview

Wraps libatspi’s AtspiRect

Instance Method Summary collapse

Instance Method Details

#heightInteger

Returns its height.

Returns:

  • (Integer)

    its height



21
# File 'lib/atspi/extents.rb', line 21

delegate :height => :@native

#inspectString

Returns itself as an inspectable string.

Returns:

  • (String)

    itself as an inspectable string



24
25
26
# File 'lib/atspi/extents.rb', line 24

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

#widthInteger

Returns its width.

Returns:

  • (Integer)

    its width



18
# File 'lib/atspi/extents.rb', line 18

delegate :width => :@native

#xInteger

Returns its x position.

Returns:

  • (Integer)

    its x position



12
# File 'lib/atspi/extents.rb', line 12

delegate :x => :@native

#yInteger

Returns its y position.

Returns:

  • (Integer)

    its y position



15
# File 'lib/atspi/extents.rb', line 15

delegate :y => :@native