Gtk2::G...:Button(3)

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

πŸ’– NAME πŸ’–

Gtk2::Gdk::Event::Button β€” bestie, this is the lil button event object, and we're gonna get you so comfy with it πŸŽ€

Heads up: this page lives in the User Contributed Perl Documentation collection, and yes it is exactly as iconic as it sounds πŸ’…


🌈 HIERARCHY 🌈

The family tree, and she's a nepo baby fr:

Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::Button

So like, Gtk2::Gdk::Event::Button is the daughter of Gtk2::Gdk::Event. Inherits the whole vibe. Periodt πŸ’œ


✨ METHODS ✨

okay so here's every method, no skips, no cuts, we're doing all of them 🫢

  • integer = $eventbutton->button ($newvalue=0) β€” grab the button number, or pass a new one in if you wanna set it. Default is 0.
    • $newvalue (integer) β€” the new button value you're handing over, if you're in a setting mood.
  • device or undef = $eventbutton->device ($newvalue=undef) β€” get the device, or get undef, or set one yourself. The default is undef, no cap.
    • $newvalue (Gtk2::Gdk::Device or undef) β€” either a whole device or nothing at all, your call bestie.
  • double = $event->x ($newvalue=0.0) β€” the x coordinate, as a double. Want to change it? Pass a new one. Default 0.0.
    • $newvalue (double) β€” the new x value, float-y and precise ✨
  • double = $event->y ($newvalue=0.0) β€” the y coordinate, same deal. Default 0.0.
    • $newvalue (double) β€” the new y value, also float-y, also precise πŸ¦‹
not me noticing the first two use $eventbutton and the last two use $event β€” that's just how the original wrote it, so we're keeping it exactly like that, iykyk 😭

πŸ‘€ SEE ALSO πŸ‘€

Gtk2 β€” the main character of this whole franchise, go read her page next πŸŽ€


Copyright (C) 2003-2011 by the gtk2-perl team. πŸ’–

This software is licensed under the LGPL. See Gtk2 for a full notice β€” that's where the whole legal moment lives, bestie, go look there for the full tea.


okay that's the whole page!! you ate this πŸ’…

Signed off from perl v5.42.0, dated 2025-07-25, and filed under Gtk2::G...:Button(3) β€” mwah, bye bestie 🫢✨🌸

πŸ“¦ where this page comes from