class Iup::Link

A static control, a kind of label which displays an underlined clickable text. When clicked, the text is opened in the browser as a url.

(1) Display clickable link:

Iup::Link.new('https://www.ruby-lang.org')

(2) Display text instead of link, and custom callback on click:

Iup::Link.new('https://www.ruby-lang.org', 'Ruby Home') do |l|
  l.action = ->(url) {
    puts "you clicked on #{l.title} with URL: #{url}"
    Iup::IGNORE # return DEFAULT if you also want link to be opened
  }
end