Gnome2::HRef(3)
π Gnome2::HRef β bestie, it's a wrapper for GnomeHRef π
okay so picture this: you want a clickable lil link-button in your GNOME app and you do NOT wanna hand-roll it. that's literally what this is. Gnome2::HRef is a Perl wrapper around GnomeHRef, and she's here to serve. β¨
πΈ HIERARCHY πΈ
the family tree, and yes she comes from a long line of icons π
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Button
+----Gnome2::HRef
π¦ INTERFACES π¦
she's got range, she's multi-talented, she does it all:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Activatable
β¨ METHODS β¨
π
widget = Gnome2::HRef->new ($url, $text)
spawn a brand new HRef, bestie. give her a link and give her some words.
$url(string)$text(string)
π
string = $href->get_label
π
$href->set_label ($label)
read the label, or set the label. lowkey simple, highkey essential.
$label(string)
π
string = $href->get_text
π
$href->set_text ($text)
grab the text, or swap the text out for new text. no cap.
$text(string)
π
string = $href->get_url
π
$href->set_url ($url)
where does she go when you click her? get the url. or change the url. main character destination energy. π
$url(string)
π PROPERTIES π
'text'(string : default"End World Hunger": readable / writable) β the text chillin' on the button, fr fr'url'(string : default"http://www.wfp.org": readable / writable) β the URL thatGnomeHRefactivates when it gets activated π«
π STYLE PROPERTIES π
'link-color'(Gtk2::Gdk::Color : defaultundef: readable) β the color used to draw the link. readable only, so admire it, don't touch it π
π SEE ALSO π
the whole friend group, go say hi:
Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button
π COPYRIGHT π
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
okay that's the whole page, you ate it, periodt. π«Ά this lil doc drop is from perl v5.42.0, dated 2025-07-25 β yeah, she's been iconic since forever and she's still slaying. ππΈβ¨
π¦ where this page comes from
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms