Gtk2::LinkButton(3)
β¨ Gtk2::LinkButton β¨
okay bestie, so this page is from the User Contributed Perl Documentation corner of the world, and it's all about Gtk2::LinkButton β which is literally just a wrapper for GtkLinkButton π
It's a button. That's a link. That's it, that's the whole vibe. π
πΈ NAME πΈ
Gtk2::LinkButton β a wrapper for GtkLinkButton
π¦ HIERARCHY π¦
ok so the family tree goes like this, and yes she comes from a long line of ancestors, main character energy honestly:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Button
+----Gtk2::LinkButton
π INTERFACES π
she also implements these, no big deal:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Activatable
π METHODS π
β¨ widget = Gtk2::LinkButton->new ($url, $label=undef)
$url(string)$label(string)
β¨ widget = Gtk2::LinkButton->new_with_label ($url, $label=undef)
$url(string)$label(string)
β¨ string = $link_button->get_uri
just gets the uri, that's the whole job π«Ά
β¨ Gtk2::LinkButton->set_uri_hook ($func, $data=undef)
$func(scalar)$data(scalar)
Pass undef for func to unset the URI hook.
β οΈ okay this part is important: note that the current implementation does not return the old hook function. Which means there is no way to restore an old hook once you overwrote it. So like... be careful, bestie, that's permanent. π
β¨ $link_button->set_uri ($uri)
$uri(string)
β¨ boolean = $link_button->get_visited
Since: gtk+ 2.14
β¨ $link_button->set_visited ($visited)
$visited(boolean)
Since: gtk+ 2.14
π PROPERTIES π
'uri'(string : defaultundef: readable / writable) β the URI bound to this button π'visited'(boolean : defaultfalse: readable / writable) β whether this link has been visited. π
π§ SEE ALSO π§
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
and that's the whole page, periodt π
β¨ this was perl v5.42.0, dated 2025-07-25, signing off from Gtk2::LinkButton(3) β ily, go build something cute ππ¦
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms