Class: Gtk::LinkButton

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

The Gtk::LinkButtonClass contains only private data.

Instance Method Summary collapse

Instance Method Details

#new(uri) ⇒ Gtk::Widget

Creates a new Gtk::LinkButton with the URI as its text.

Parameters:

  • uri (String)

    a valid URI

Returns:

#new_with_label(uri, label) ⇒ Gtk::Widget

Creates a new Gtk::LinkButton containing a label.

Parameters:

  • uri (String)

    a valid URI

  • label (String)

    the text of the button

Returns:

#uriString

The URI bound to this button.

Returns:

  • (String)

    uri

#uri=(uri) ⇒ String

The URI bound to this button.

Parameters:

  • uri (String)

Returns:

  • (String)

    uri

  • (String)

    uri

#visitedTrueClass

Retrieves the “visited” state of the URI where the Gtk::LinkButton points. The button becomes visited when it is clicked. If the URI is changed on the button, the “visited” state is unset again.

The state may also be changed using gtk_link_button_set_visited().

Returns:

  • (TrueClass)

    true if the link has been visited, false otherwise

#visited=(visited) ⇒ TrueClass

The ‘visited’ state of this button. A visited link is drawn in a different color.

Parameters:

  • visited (TrueClass)

Returns:

  • (TrueClass)

    visited

  • (TrueClass)

    visited

#visited?TrueClass

The ‘visited’ state of this button. A visited link is drawn in a different color.

Returns:

  • (TrueClass)

    visited