Gtk2::S...:Tooltip(3)
π Gtk2::Sexy::Tooltip π
okay bestie, so this is Gtk2::Sexy::Tooltip β a lil Perl module from the User Contributed Perl Documentation corner of the internet, and it's exactly what it sounds like: a tooltip. Like, the little popup that shows up when you hover over stuff. She's cute, she's a whole window, and she's ready to position herself wherever you need her. π
πΈ NAME πΈ
Gtk2::Sexy::Tooltip β no cap, that's the whole name, that's her government name, that's what you type.
π HIERARCHY π
the family tree fr fr. she did NOT come from nothing, she comes from a long line of distinguished ancestors:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Window
+----Gtk2::Sexy::Tooltip
like look at that lineage. Glib::Object at the top being the original main character, and Gtk2::Sexy::Tooltip all the way at the bottom being the fresh new girlie who inherited everything. generational wealth of methods honestly. π
π¦ INTERFACES π¦
she's not just a pretty face, she also implements:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
so she's buildable, she's accessible-ish, she's doing the most. versatile queen. β¨
β METHODS β
this is the part you actually came for, bestie. sit down, hydrate, take notes. π
π§ widget = Gtk2::Sexy::Tooltip->new
the classic. no arguments, no notes. you call new, you get a tooltip widget back. blank canvas energy. build her up yourself. π
π widget = Gtk2::Sexy::Tooltip->new_with_label ($text)
same thing but she comes with a label already, like she pre-gamed before the party. arguments:
$textβ a string. that's the text that goes on the tooltip. yes, that's it, that's the whole thing. π
π₯ $tooltip->position_to_rect ($rect, $screen)
tell the tooltip to position herself relative to a rectangle on a screen. takes:
$rectβ aGtk2::Gdk::Rectangle. the rectangle she's positioning herself to. π$screenβ aGtk2::Gdk::Screen. which screen we're talking about, because sometimes there's more than one, iykyk.
π
$tooltip->position_to_widget ($widget)
position the tooltip relative to a widget instead. takes:
$widgetβ aGtk2::Widget. the widget in question. she'll figure out where to pop up. iconic behavior. β¨
π SEE ALSO π
go read these too, they're her friends and family:
Gtk2::Sexy, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window
π COPYRIGHT π
Copyright (C) 2005-2008 by Florian Ragwitz
respect the author bestie, they wrote this whole thing for free. π«Ά
and that's the whole page!! perl v5.42.0, dated 2025-07-25, manual name Gtk2::S...:Tooltip(3) β yeah the title got abbreviated in the header but we all know who she is. mwah, go build something cute with her. ππ¦πΈ
π¦ where this page comes from
- fedora 43: perl-Gtk2-Sexy 0.05-57.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms