Gtk2::Gdk::Input(3)

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

✨ Gtk2::Gdk::Input ✨

okay so bestie, welcome to Gtk2::Gdk::Input πŸ’– this is the lil corner of the gtk2-perl universe where you poke at how input events flow into your windows. it's giving "small but mighty", and honestly? we're obsessed.


πŸ¦‹ METHODS πŸ¦‹

Gtk2::Gdk::Input->set_extension_events ($window, $mask, $mode)

the one and only method on this page, and she's a whole mood πŸ’… here's what she wants from you:

  • $window β€” a Gtk2::Gdk::Window, aka the window you're doing all this for
  • $mask β€” a Gtk2::Gdk::EventMask, aka which events you care about
  • $mode β€” a Gtk2::Gdk::ExtensionMode, aka how you want extension events to behave

that's it. that's the method. she ate and left no crumbs πŸ“


πŸŽ€ ENUMS AND FLAGS πŸŽ€

flags Gtk2::Gdk::EventMask

okay this is the big one β€” the whole roster of event masks πŸ‘‘ each one has a lowercase string name (the perl-y one) and the shouty GDK_ constant (the C one). both are valid, use whichever slays for you:

  • 'exposure-mask' / GDK_EXPOSURE_MASK
  • 'pointer-motion-mask' / GDK_POINTER_MOTION_MASK
  • 'pointer-motion-hint-mask' / GDK_POINTER_MOTION_HINT_MASK
  • 'button-motion-mask' / GDK_BUTTON_MOTION_MASK
  • 'button1-motion-mask' / GDK_BUTTON1_MOTION_MASK
  • 'button2-motion-mask' / GDK_BUTTON2_MOTION_MASK
  • 'button3-motion-mask' / GDK_BUTTON3_MOTION_MASK
  • 'button-press-mask' / GDK_BUTTON_PRESS_MASK
  • 'button-release-mask' / GDK_BUTTON_RELEASE_MASK
  • 'key-press-mask' / GDK_KEY_PRESS_MASK
  • 'key-release-mask' / GDK_KEY_RELEASE_MASK
  • 'enter-notify-mask' / GDK_ENTER_NOTIFY_MASK
  • 'leave-notify-mask' / GDK_LEAVE_NOTIFY_MASK
  • 'focus-change-mask' / GDK_FOCUS_CHANGE_MASK
  • 'structure-mask' / GDK_STRUCTURE_MASK
  • 'property-change-mask' / GDK_PROPERTY_CHANGE_MASK
  • 'visibility-notify-mask' / GDK_VISIBILITY_NOTIFY_MASK
  • 'proximity-in-mask' / GDK_PROXIMITY_IN_MASK
  • 'proximity-out-mask' / GDK_PROXIMITY_OUT_MASK
  • 'substructure-mask' / GDK_SUBSTRUCTURE_MASK
  • 'scroll-mask' / GDK_SCROLL_MASK
  • 'all-events-mask' / GDK_ALL_EVENTS_MASK

twenty-two of them, no skips, no shortcuts 🌈 and yes 'all-events-mask' really said "I contain multitudes" πŸ’€


enum Gtk2::Gdk::ExtensionMode

tiny enum, big energy 🧚 three options, all with their lowercase perl name and their GDK_ constant:

  • 'none' / GDK_EXTENSION_EVENTS_NONE
  • 'all' / GDK_EXTENSION_EVENTS_ALL
  • 'cursor' / GDK_EXTENSION_EVENTS_CURSOR

pick your vibe, that's the whole menu πŸ’œ


🌸 SEE ALSO 🌸

  • Gtk2

like, obviously. the mothership. go say hi 🫢


Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.

ngl the gtk2-perl team really said "we did that" and they DID πŸ‘‘


and that's the whole page bestie!! this was User Contributed Perl Documentation for Gtk2::Gdk::Input, shipped with perl v5.42.0 on 2025-07-25 πŸŽ€ mwah, go forth and mask your events, ily βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from