gtk.link_button
Module for [LinkButton] class
Types 3
A gtk.link_button.LinkButton is a button with a hyperlink.
It is useful to show quick links to resources.
A link button is created by calling either gtk.link_button.LinkButton.new_ or gtk.link_button.LinkButton.newWithLabel. If using the former, the URI you pass to the constructor is used as a label for the widget.
The URI bound to a gtk.link_button.LinkButton can be set specifically using gtk.link_button.LinkButton.setUri.
By default, gtk.link_button.LinkButton calls gtk.file_launcher.FileLauncher.launch when the button is clicked. This behaviour can be overridden by connecting to the gtk.link_button.LinkButton.activateLink signal and returning true from the signal handler.
CSS nodes
gtk.link_button.LinkButton has a single CSS node with name button. To differentiate it from a plain gtk.button.Button, it gets the .link style class.
Accessibility
gtk.link_button.LinkButton uses the gtk.types.AccessibleRole.Link role.
LinkButtonGidBuilder builder() static nothrowGet builder for [gtk.link_button.LinkButton] Returns: New builder objectvoid uri(string propval) @property nothrowSet `uri` property. Params: propval = The URI bound to this button.bool visited() @property nothrowGet `visited` property. Returns: The 'visited' state of this button.void visited(bool propval) @property nothrowSet `visited` property. Params: propval = The 'visited' state of this button.gtk.link_button.LinkButton newWithLabel(string uri, string label = null) static nothrowCreates a new [gtk.link_button.LinkButton] containing a label.string getUri() nothrowRetrieves the URI of the [gtk.link_button.LinkButton]. Returns: a valid URI. The returned string is owned by the link button and should not be modified or freed.gulong connectActivateLink(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.link_button.LinkButton)))
&& Parameters!T.length < 2) nothrowConnect to `ActivateLink` signal.Fluent builder implementation template for gtk.link_button.LinkButton
Fluent builder for gtk.link_button.LinkButton