Gtk2::G...rossing(3)

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

πŸ’… 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 a Gtk2::Gdk::NotifyType.
    • $newvalue β€” a Gtk2::Gdk::NotifyType.
  • boolean = $eventcrossing->focus ($newvalue=0) β€” the focus flag, straight up boolean behaviour.
    • $newvalue β€” a boolean.
  • crossingmode = $eventcrossing->mode ($newvalue=0) β€” the crossing mode, because there's more than one way to cross, bestie.
    • $newvalue β€” a Gtk2::Gdk::CrossingMode.
  • window or undef = $event->subwindow ($newvalue=undef) β€” the subwindow, or undef if there isn't one. no pressure.
    • $newvalue β€” a Gtk2::Gdk::Window or undef.
  • double = $event->x ($newvalue=0.0) β€” the x coordinate. a double. precise. πŸ’…
    • $newvalue β€” a double.
  • double = $event->y ($newvalue=0.0) β€” the y coordinate. also a double. we love symmetry.
    • $newvalue β€” a double.

🌸 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 (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