Gtk2::G...rossing(3)
π Gtk2::Gdk::Event::Crossing
okay bestie, welcome to the manual page for Gtk2::Gdk::Event::Crossing β that's the lil Perl module in the Gtk2 fam that handles the "crossing" events, aka when the mouse pointer slides into or out of a window. like when your cursor crosses the threshold. the vibe check of the pointer world. β¨
this page lives in the User Contributed Perl Documentation corner of the man pages, and yes it's filed under that very dramatic name Gtk2::G...rossing(3) because somebody trimmed the middle for the header and honestly? iconic. π
π HIERARCHY π
here's the family tree, and it's giving very linear:
Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::Crossing
so Gtk2::Gdk::Event::Crossing is a direct child of Gtk2::Gdk::Event. it inherits everything and adds its own lil extras. main character energy fr. π
π¦ METHODS π¦
every method here takes an optional $newvalue, and when you pass one it sets the value; the default is noted next to each. so you can read and write with the same call. lowkey efficient. π
notifytype = $eventcrossing->detail ($newvalue=0)β grabs or sets the detail, and it's aGtk2::Gdk::NotifyType.$newvalueβ aGtk2::Gdk::NotifyType.
boolean = $eventcrossing->focus ($newvalue=0)β the focus flag, straight up boolean behaviour.$newvalueβ aboolean.
crossingmode = $eventcrossing->mode ($newvalue=0)β the crossing mode, because there's more than one way to cross, bestie.$newvalueβ aGtk2::Gdk::CrossingMode.
window or undef = $event->subwindow ($newvalue=undef)β the subwindow, orundefif there isn't one. no pressure.$newvalueβ aGtk2::Gdk::Windoworundef.
double = $event->x ($newvalue=0.0)β the x coordinate. a double. precise. π$newvalueβ adouble.
double = $event->y ($newvalue=0.0)β the y coordinate. also a double. we love symmetry.$newvalueβ adouble.
πΈ ENUMS AND FLAGS πΈ
these are the named values you can sling around. each one has a cute Perl-side string name and a shouty C-side constant, and they're the same thing wearing different outfits. π«Ά
β¨ enum Gtk2::Gdk::CrossingMode β¨
'normal'/GDK_CROSSING_NORMAL'grab'/GDK_CROSSING_GRAB'ungrab'/GDK_CROSSING_UNGRAB'gtk-grab'/GDK_CROSSING_GTK_GRAB'gtk-ungrab'/GDK_CROSSING_GTK_UNGRAB'state-changed'/GDK_CROSSING_STATE_CHANGED
β¨ enum Gtk2::Gdk::NotifyType β¨
'ancestor'/GDK_NOTIFY_ANCESTOR'virtual'/GDK_NOTIFY_VIRTUAL'inferior'/GDK_NOTIFY_INFERIOR'nonlinear'/GDK_NOTIFY_NONLINEAR'nonlinear-virtual'/GDK_NOTIFY_NONLINEAR_VIRTUAL'unknown'/GDK_NOTIFY_UNKNOWN
π SEE ALSO π
Gtk2
go read that one too, it's the parent of the whole situation and it's a lot. iykyk.
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
bestie this is the legal bit so we keep it cute but we keep it exact: LGPL, gtk2-perl team, 2003-2011, and the full notice lives over in Gtk2. periodt. π
and that's the whole page! this doc dropped with perl v5.42.0 and is dated 2025-07-25 β so go forth, handle your crossing events, and slay. ππ
π¦
π¦ 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