Gtk2::Gdk::Input(3)
β¨ 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 π
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
- 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