Gtk2::G...election(3)

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

πŸ’– 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 the property as a Gtk2::Gdk::Atom πŸ¦‹
    • $newvalue (Gtk2::Gdk::Atom) β€” optional, defaults to 0
  • nativewindow = $eventselection->requestor ($newvalue=0) β€” hands you the requestor, and its type is Gtk2::Gdk::NativeWindow ✨
    • $newvalue (Gtk2::Gdk::NativeWindow) β€” optional, defaults to 0
  • atom = $eventselection->selection ($newvalue=0) β€” returns the selection as a Gtk2::Gdk::Atom πŸ’–
    • $newvalue (Gtk2::Gdk::Atom) β€” optional, defaults to 0
  • atom = $eventselection->target ($newvalue=0) β€” gives you the target, also a Gtk2::Gdk::Atom 🎯
    • $newvalue (Gtk2::Gdk::Atom) β€” optional, defaults to 0
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 (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