Gtk2::EventBox(3)
π Gtk2::EventBox β the manual page, but make it cute π
okay so bestie, welcome to the Gtk2::EventBox page (that's the Gtk2::EventBox(3) manual, if we're being official about it β¨). It's a wrapper for GtkEventBox, and honestly? it's giving "quiet little diva that does one job and does it flawlessly." π
πΈ NAME πΈ
Gtk2::EventBox β it's a wrapper for GtkEventBox, no cap. That's the whole name section, she's concise π
π¦ HIERARCHY π¦
here's the family tree, and yes every single ancestor is here, I would never do you dirty like that:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::EventBox
she's a whole descendant of Glib::Object and we respect the lineage π
β¨ INTERFACES β¨
the vibes she's signed up for:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
π METHODS π
okay this is the part you actually came for, bestie. here's every single one, nothing skipped, nothing merged:
widget = Gtk2::EventBox->newβ makes you a fresh new event box, main character energy from birth πboolean = $event_box->get_above_childβ tells you whether the event-trapping window is sitting above the child's window or below it.- Since: gtk+ 2.4
$event_box->set_above_child ($above_child)β sets that above-or-below situation for you.$above_child(boolean)- Since: gtk+ 2.4
boolean = $event_box->get_visible_windowβ checks if the event box is visible, vs. invisible and just there to trap events (sneaky little thing π).- Since: gtk+ 2.4
$event_box->set_visible_window ($visible_window)β flips that visibility on or off.$visible_window(boolean)- Since: gtk+ 2.4
π PROPERTIES π
two properties, both icons, both booleans:
'above-child'(boolean : default false : readable / writable / private / static-nick / static-blurb)- Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it. π
'visible-window'(boolean : default true : readable / writable / private / static-nick / static-blurb)- Whether the event box is visible, as opposed to invisible and only used to trap events. π«₯
π SEE ALSO π
go read these next, they're the friend group fr fr:
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay that's the whole page, every option, every default, every since-version, every ancestor. nothing dropped, periodt π
and that's a wrap, bestie π«Ά this little gem was brought to you by perl v5.42.0, dated 2025-07-25, and honestly? iconic behavior. go forth and trap some events πΈβ¨
π¦ 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