Gtk2::G...:Button(3)
π 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 is0.$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 getundef, or set one yourself. The default isundef, no cap.$newvalue(Gtk2::Gdk::Deviceorundef) β 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. Default0.0.$newvalue(double) β the new x value, float-y and precise β¨
double = $event->y ($newvalue=0.0)β the y coordinate, same deal. Default0.0.$newvalue(double) β the new y value, also float-y, also precise π¦
not me noticing the first two use$eventbuttonand 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 π
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
- 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