Gtk2::S...:Tooltip(3)

πŸ“¦
version 0.05 Β· 2 versions
, in fedora 43

πŸ’– 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::AtkImplementorIface
  • Gtk2::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 β€” a Gtk2::Gdk::Rectangle. the rectangle she's positioning herself to. πŸ“
  • $screen β€” a Gtk2::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 β€” a Gtk2::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 (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