Gtk2::Invisible(3)

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

πŸ’– Gtk2::Invisible πŸ’–

okay bestie, gather round, because this one is literally the main character of not being seen. Gtk2::Invisible is the Perl wrapper for GtkInvisible, and no, it's not a personality trait, it's a whole widget that exists on your screen without ever being drawn on it. iconic behaviour honestly. πŸ«₯✨

This page lives in the User Contributed Perl Documentation collection, and it's filed under manual page Gtk2::Invisible(3) in case you were wondering where to find it again. πŸŽ€


🌸 HIERARCHY 🌸

the family tree, and yes she has ancestors, everyone does:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Invisible

like… she's a Gtk2::Widget at the end of the day. a widget that said "no thank you" to being visible. we love a boundary. πŸ’…


πŸ¦‹ INTERFACES πŸ¦‹

she also implements these, so she can do the things they promise:

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable

✨ METHODS ✨

πŸŽ€ widget = Gtk2::Invisible->new

makes you a brand new invisible widget. fresh out the box, zero visual presence, 100% vibes. 🧚

🌈 widget = Gtk2::Invisible->new_for_screen ($screen)

same energy as new, except you get to pick which screen she haunts. πŸ‘»

  • $screen β€” a Gtk2::Gdk::Screen, that's the one you want her on
Since: gtk+ 2.2 β€” so like, she's been around, no cap.

⭐ screen = $invisible->get_screen

hands you back the Gtk2::Gdk::Screen she's currently attached to. lowkey the most useful thing here.

Since: gtk+ 2.2

πŸ’œ $invisible->set_screen ($screen)

tells her to move to a different screen. girl math: new screen, same invisibility. 🫢

  • $screen β€” a Gtk2::Gdk::Screen
Since: gtk+ 2.2

πŸ’– PROPERTIES πŸ’–

  • 'screen' (Gtk2::Gdk::Screen : default undef : readable / writable / private / static-nick / static-blurb) β€” The screen where this window will be displayed

note the default undef, so if you don't set it, it's just… vibes and void. πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, fr fr, they're the whole friend group:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


and that's the whole page, bestie. 🌸 this was perl v5.42.0, dated 2025-07-25, manual page Gtk2::Invisible(3) β€” slay, ate, no crumbs left. go forth and be invisible (as a widget, not as a person, please hydrate). πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from