Method: ATSPI::Accessible::Extents#opacity

Defined in:
lib/atspi/accessible/extents.rb

#opacityFloat Also known as: alpha

Returns its opacity between 0.0 (transparent) and 1.0 (opaque). 0.0 if it does not implement the component interface.

Returns:

  • (Float)

    its opacity between 0.0 (transparent) and 1.0 (opaque). 0.0 if it does not implement the component interface.

See Also:



57
58
59
60
61
62
63
# File 'lib/atspi/accessible/extents.rb', line 57

def opacity
  if extends?
    @native.alpha
  else
    0.0
  end
end