LinkButton


Object Hierarchy:

Gtk.LinkButton Gtk.LinkButton Gtk.LinkButton Gtk.Button Gtk.Button Gtk.Button->Gtk.LinkButton Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.Button Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Gtk.LinkButton Atk.Implementor->Gtk.Button Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.LinkButton Gtk.Buildable->Gtk.Button Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget Gtk.Actionable Gtk.Actionable Gtk.Actionable->Gtk.LinkButton Gtk.Actionable->Gtk.Button Gtk.Activatable Gtk.Activatable Gtk.Activatable->Gtk.LinkButton Gtk.Activatable->Gtk.Button

Description:

[ CCode ( type_id = "gtk_link_button_get_type ()" ) ]
public class LinkButton : Button, Implementor, Actionable, Activatable, Buildable

A GtkLinkButton is a Button with a hyperlink, similar to the one used by web browsers, which triggers an action when clicked.

It is useful to show quick links to resources.

A link button is created by calling either LinkButton or LinkButton.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 set_uri, and retrieved using get_uri.

By default, GtkLinkButton calls show_uri_on_window when the button is clicked. This behaviour can be overridden by connecting to the 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 Button , it gets the .link style class.

GtkLinkButton


Namespace: Gtk
Package: gtk+-3.0

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Atk.Implementor



2022 vala-language.org