Method: AX::Element#bounds

Defined in:
lib/ax/element.rb

#boundsCGRect Also known as: to_rect

Get the bounding rectangle for the element.

Returns:

  • (CGRect)


475
476
477
# File 'lib/ax/element.rb', line 475

def bounds
  CGRect.new(attribute(:position), attribute(:size))
end