Method: ATSPI::Accessible::Text::Offset#hyperlink
- Defined in:
- lib/atspi/accessible/text/offset.rb
#hyperlink ⇒ Hyperlink? Also known as: link
Returns its hyperlink. Will be nil
if its text does not implement the hypertext interface or there simply is no hyperlink at the offset.
36 37 38 39 40 41 |
# File 'lib/atspi/accessible/text/offset.rb', line 36 def hyperlink if @text_native.hypertext_iface idx = @text_native.link_index(to_i) Hyperlink.new(@text_native, @text_native.link(idx)) if idx != -1 end end |