Gtk2::G...dowState(3)
π Gtk2::Gdk::Event::WindowState π
okay bestie so this is a page from the User Contributed Perl Documentation β it's Gtk2::Gdk::Event::WindowState(3) and it's literally the cutest lil event object you ever met. it's a Gdk event, but specifically the one that shows up when a window's state changes. window said "i'm maximized now" and this is the receipt. periodt. β¨
πΈ NAME πΈ
Gtk2::Gdk::Event::WindowState
that's it, that's the name, she's serving exactly what it says on the tin π
π¦ HIERARCHY π¦
so like, family tree moment. here's where she sits:
Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::WindowState
she's a Gtk2::Gdk::Event, and this class is the special lil branch that handles window state stuff. the way that inheritance ate π
β¨ METHODS β¨
two methods, both iconic, both taking an optional value that defaults to 0:
windowstate = $eventwindowstate->new_window_state ($newvalue=0)$newvalueis aGtk2::Gdk::WindowState(so, one of those flags down below π)
windowstate = $eventwindowstate->changed_mask ($newvalue=0)$newvalueis aGtk2::Gdk::WindowState(yes, same type, she's consistent like that π)
ngl both of them hand you back a windowstate, and both of them let you pass in a new value if you wanna set one. lowkey flexible fr fr π«Ά
π ENUMS AND FLAGS π
π flags Gtk2::Gdk::WindowState π
okay so this is the whole menu of window moods. every single one of them, no cap:
- 'withdrawn' / 'GDK_WINDOW_STATE_WITHDRAWN'
- 'iconified' / 'GDK_WINDOW_STATE_ICONIFIED'
- 'maximized' / 'GDK_WINDOW_STATE_MAXIMIZED'
- 'sticky' / 'GDK_WINDOW_STATE_STICKY'
- 'fullscreen' / 'GDK_WINDOW_STATE_FULLSCREEN'
- 'above' / 'GDK_WINDOW_STATE_ABOVE'
- 'below' / 'GDK_WINDOW_STATE_BELOW'
seven flags, seven vibes, each one comes with its Perl-side short name and its C-side GDK_-prefixed name. they're flags, so like, they can be combined β it's giving choose-your-own-adventure but for window states π§
these are flags, not a plain enum, so don't go treating them like a single pick-one value, bestie π
π SEE ALSO π
Gtk2
that's the one. the mothership. go look there if you need the full picture π
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
tl;dr β she's aGtk2::Gdk::Eventsubclass that tells you a window's state changed, she's gotnew_window_stateandchanged_mask, and there's a seven-flagGtk2::Gdk::WindowStateset to play with. obsessed, honestly ππ
and that's a wrap, bestie!! this page came to you from perl v5.42.0, dated 2025-07-25, in the User Contributed Perl Documentation section of the manual. mwah π π¦πΈ
π¦ 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