Gtk2::G...ent::Key(3)

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

πŸ’– Gtk2::Gdk::Event::Key πŸ’–

okay bestie, gather round, because we're talking about Gtk2::Gdk::Event::Key β€” the key event situation from the Gtk2::G...ent::Key(3) page in the User Contributed Perl Documentation. it's giving keyboard drama and we're obsessed πŸŽ€


🌸 NAME 🌸

Gtk2::Gdk::Event::Key β€” literally the event object that shows up when somebody touches a key. periodt πŸ’…


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree, and yes it ate:

Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::Key

so Gtk2::Gdk::Event::Key is the child, Gtk2::Gdk::Event is the parent, and that's the whole lineage. iconic lineage ngl πŸ‘‘


✨ METHODS ✨

three methods, no filler, all main character energy:

  • unsigned = $eventkey->group ($newvalue=0) β€” hands you back an unsigned value, and you can pass in $newvalue if you wanna set it.
    • $newvalue β€” an unsigned value. that's the whole vibe.
  • unsigned = $eventkey->hardware_keycode ($newvalue=0) β€” same deal, gives you an unsigned hardware keycode, and takes an optional $newvalue to poke it with.
    • $newvalue β€” unsigned, again, fr fr.
  • integer = $eventkey->keyval ($newvalue=0) β€” this one returns an integer keyval instead, and yeah, $newvalue works here too.
    • $newvalue β€” an integer this time. different flavor, same energy πŸ“
no cap: every one of these has that $newvalue=0 default sitting right there in the signature. don't lose it πŸ’–

🌈 SEE ALSO 🌈

  • Gtk2 β€” the whole big parent vibe, go say hi 🫢

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 tea, bestie β€” this page came to you courtesy of perl v5.42.0, dated 2025-07-25, and it's the Gtk2::G...ent::Key(3) situation. slay, stay keyed in, mwah πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from