Gtk2::G...ibility(3)
π NAME π
Gtk2::Gdk::Event::Visibility β bestie, this is the event object that slides into your callback when something in the window gets covered up or revealed. It's a page from the User Contributed Perl Documentation, and it's lowkey one of the chillest little event classes in the whole Gtk2 family. π¦
β¨ HIERARCHY β¨
The family tree, and yes it's giving nepo baby energy:
Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::Visibility
So it inherits everything from Gtk2::Gdk::Event (the main character) and adds its own little visibility-specific glow-up on top. π
πΈ METHODS πΈ
visibilitystate = $eventvisibility->state ($newvalue=0)
Okay so this is the method. You call it and it hands you back a visibilitystate β aka how visible/obscured this event thinks the region is. π«Ά
$newvalueβ aGtk2::Gdk::VisibilityState(optional, defaults to0). It's an argument you can pass in; the signature literally writes it as$newvalue=0.
Not me casually pointing out that this is the only method on this class. Iconic minimalism, honestly. No filler, no bloat, just vibes and one accessor. π
π ENUMS AND FLAGS π
enum Gtk2::Gdk::VisibilityState
The three states of "can anyone see me rn", ranked from fully out there to fully hidden:
'unobscured'/GDK_VISIBILITY_UNOBSCUREDβ nothing's covering it, she's out here living her truth in the open. β¨'partial'/GDK_VISIBILITY_PARTIALβ kind of covered, kind of not. It's giving situationship. π'fully-obscured'/GDK_VISIBILITY_FULLY_OBSCUREDβ completely hidden, tucked away, no one can see her. Respect the privacy era. π
Note the flag strings on the left are the Perl-side names, and the GDK_VISIBILITY_* ones are the C constants β same energy, different outfit. π
π SEE ALSO π
Gtk2
That's the whole list, bestie. Go read the parent module if you want the full lore. π
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
So like, respect the license, fr fr. It's LGPL and it's been that way since forever. π«‘
and that's the whole page, bestie β go forth and check your visibility states π
This was documented with perl v5.42.0, dated 2025-07-25. Slay. π
β¨
π¦ 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