Gtk2::G...:Motion(3)
π NAME π
Gtk2::Gdk::Event::Motion β bestie, this is the lil object that shows up when your mouse (or finger, or stylus, or whatever pointing device you're feeling that day) moves. It's a Gtk2::Gdk::Event subclass, so it's got that family bloodline going on. π
This page lives in the User Contributed Perl Documentation section of the manual, iykyk.
πΈ HIERARCHY πΈ
The family tree, no cap:
Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::Motion
So it inherits everything from Gtk2::Gdk::Event and then adds its own little motion-y extras. Main character energy, honestly. π
β¨ METHODS β¨
π« device or undef = $eventmotion->device ($newvalue=undef)
Gets you the device that made this motion happen β or sets it if you pass something in. π±οΈ
$newvalueβ aGtk2::Gdk::Device, orundefif you want to leave it empty. Defaults toundefwhen you don't pass anything.
π« integer = $eventmotion->is_hint ($newvalue=0)
The vibe check on whether this motion event is just a hint rather than a real, solid position. Returns an integer. β¨
$newvalueβ aninteger. Defaults to0.
π« $event->request_motions
Asks for the motions, bestie. π¦
Since: gtk+ 2.12
π« double = $event->x ($newvalue=0.0)
The x coordinate, obviously. Returns a double. π
$newvalueβ adouble. Defaults to0.0.
π« double = $event->y ($newvalue=0.0)
And the y coordinate to go with it β because a point needs both, periodt. π
$newvalueβ adouble. Defaults to0.0.
π SEE ALSO π
- Gtk2 β go read it, fr fr. It's the whole reason this page exists.
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice. π
Okay that's the whole page, bestie β generated by perl v5.42.0 and dated 2025-07-25, which is giving vintage but make it slay. Go forth and track those pointer movements. π«Άπ
π¦ 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