Gtk2::G...ibility(3)

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

πŸ’– 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 β€” a Gtk2::Gdk::VisibilityState (optional, defaults to 0). 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 (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