Gtk2::G...:Motion(3)

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

πŸ’– 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 β€” a Gtk2::Gdk::Device, or undef if you want to leave it empty. Defaults to undef when 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 β€” an integer. Defaults to 0.

πŸ’« $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 β€” a double. Defaults to 0.0.

πŸ’« double = $event->y ($newvalue=0.0)

And the y coordinate to go with it β€” because a point needs both, periodt. 🌈

  • $newvalue β€” a double. Defaults to 0.0.

πŸ‘€ SEE ALSO πŸ‘€

  • Gtk2 β€” go read it, fr fr. It's the whole reason this page exists.

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