Sets our main struct and passes it to the parent class.
Creates a new GtkLinkButton with the URI as its text.
Creates a new GtkLinkButton containing a label.
Emitted each time the GtkLinkButton is clicked.
Get the main Gtk struct
the main Gtk struct as a void*
Retrieves the URI of the GtkLinkButton.
Retrieves the “visited” state of the GtkLinkButton.
Sets @uri as the URI where the GtkLinkButton points.
Sets the “visited” state of the GtkLinkButton.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Gets the child widget of @button.
Returns whether the button has a frame.
Returns the icon name of the button.
Fetches the text from the label of the button.
gets whether underlines are interpreted as mnemonics.
Sets the child widget of @button.
Sets the style of the button.
Adds a GtkImage with the given icon name as a child.
Sets the text of the label of the button to @label.
Sets whether to use underlines as mnemonics.
Emitted to animate press then release.
Emitted when the button has been activated (pressed and released).
A GtkLinkButton is a button with a hyperlink.
It is useful to show quick links to resources.
A link button is created by calling either [ctor@Gtk.LinkButton.new] or [ctor@Gtk.LinkButton.new_with_label]. If using the former, the URI you pass to the constructor is used as a label for the widget.
The URI bound to a GtkLinkButton can be set specifically using [method@Gtk.LinkButton.set_uri].
By default, GtkLinkButton calls [func@Gtk.show_uri] when the button is clicked. This behaviour can be overridden by connecting to the [signal@Gtk.LinkButton::activate-link] signal and returning %TRUE from the signal handler.
CSS nodes
GtkLinkButton has a single CSS node with name button. To differentiate it from a plain GtkButton, it gets the .link style class.
Accessibility
GtkLinkButton uses the #GTK_ACCESSIBLE_ROLE_LINK role.