Gtk2::Bin(3)
π Gtk2::Bin β the manual page, but make it make sense
okay bestie, sit down, hydrate, and let me tell you about Gtk2::Bin β¨ this is the Perl wrapper for GtkBin, and honestly? it's the blueprint. the blueprint of blueprints. every widget that holds exactly one little baby widget inside it is riding on this energy π
it's section 3 of the manual, so likeβ¦ library functions, programmer-core. iykyk π«Ά
πΈ HIERARCHY
here's the family tree, and no we are not skipping a single branch, that would be disrespectful to the ancestors π€
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
look at that lineage. Glib::Object at the very top being the original main character, then Glib::InitiallyUnowned, then Gtk2::Object, Gtk2::Widget, Gtk2::Container, and then our girl Gtk2::Bin at the bottom, collecting every single trait on the way down like a nepo baby who is also genuinely talented π
π¦ INTERFACES
she's got range, she's multi-faceted, she implements:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
that's the accessibility interface vibe and the Gtk2::Buildable vibe. an icon, fr fr π
β¨ METHODS
only two, because she knows what she's about. no filler, no fluff, just vibes and a child π
widget = $bin->childβ gets you the child widget chilling inside the bin. yes, that's the whole thing. yes, it's that simple. slay.widget = $bin->get_childβ literally the same energy, just theget_-prefixed spelling. use whichever one feels right in your soul π
π SEE ALSO
go read these too, bestie, they're part of the lore:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::Container
π COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
this software is licensed under the LGPL. for the full legal tea, go check out Gtk2. that's where the whole notice lives, no cap π«Ά
and that's the page!! you now know everything Gtk2::Bin has to offer, which is: a child, a way to get that child, a truly stunning family tree, two interfaces, and a license πΈ
this was documented for perl v5.42.0, dated 2025-07-25, in Gtk2::Bin(3) β user contributed Perl documentation, because the community said "we got this" and honestly? they ate πβ¨π
π¦ 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