Gtk2::EventBox(3)

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

πŸ’– 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 (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