Gtk2::G...election(3)
π Gtk2::Gdk::Event::Selection π
okay bestie, so this is a page from the User Contributed Perl Documentation for Gtk2::Gdk::Event::Selection, part of the Gtk2 Perl bindings. it's a lil' event class and honestly? she's giving clipboard-adjacent main character energy. let's get into it π«Ά
β¨ NAME β¨
Gtk2::Gdk::Event::Selection β the selection event, aka the "hey bestie, something happened with a selection" event π
πΈ HIERARCHY πΈ
Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::Selection
so she inherits from Gtk2::Gdk::Event β that's her parent, that's her ancestry, that's the family tree. iconic lineage fr fr π
π METHODS π
each of these takes an optional $newvalue that defaults to 0, and gives you back the thing. classic getter-with-optional-setter vibe, we love her for it.
atom = $eventselection->property ($newvalue=0)β grabs you thepropertyas aGtk2::Gdk::Atomπ¦$newvalue(Gtk2::Gdk::Atom) β optional, defaults to0
nativewindow = $eventselection->requestor ($newvalue=0)β hands you therequestor, and its type isGtk2::Gdk::NativeWindowβ¨$newvalue(Gtk2::Gdk::NativeWindow) β optional, defaults to0
atom = $eventselection->selection ($newvalue=0)β returns theselectionas aGtk2::Gdk::Atomπ$newvalue(Gtk2::Gdk::Atom) β optional, defaults to0
atom = $eventselection->target ($newvalue=0)β gives you thetarget, also aGtk2::Gdk::Atomπ―$newvalue(Gtk2::Gdk::Atom) β optional, defaults to0
ngl bestie, three of the four return an atom and one returns a native window β keep track of which is which and you're golden π§
π SEE ALSO π
Gtk2β go read that one too, she's the whole ecosystem π
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
periodt. respect the license, bestie, it's the rules π
and that's the whole page, no cap π«Ά this was perl v5.42.0, dated 2025-07-25, and it's Gtk2::G...election(3) signing off β slay, bye babes! πβ¨π
π¦ 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