Gtk2::G...dowState(3)

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

πŸ’– 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)
    • $newvalue is a Gtk2::Gdk::WindowState (so, one of those flags down below πŸ‘€)
  • windowstate = $eventwindowstate->changed_mask ($newvalue=0)
    • $newvalue is a Gtk2::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 (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 a Gtk2::Gdk::Event subclass that tells you a window's state changed, she's got new_window_state and changed_mask, and there's a seven-flag Gtk2::Gdk::WindowState set 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