Gtk2::G...:Expose(3)

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

πŸ’– NAME πŸ’–

Gtk2::Gdk::Event::Expose β€” bestie, this is the event object that shows up when part of your window needs to be redrawn. It's a subclass of Gtk2::Gdk::Event, and it's literally the "hey girl, paint this bit again" message from the windowing system. 🎨✨


🌸 HIERARCHY 🌸

Okay so the family tree is giving very much:

Gtk2::Gdk::Event
+----Gtk2::Gdk::Event::Expose

So it inherits everything from Gtk2::Gdk::Event, and it adds its own little expose-specific methods on top. Periodt. πŸ‘‘


✨ METHODS ✨

πŸ¦‹ rectangle = $eventexpose->area ($newvalue=undef)

This one hands you back the area that needs repainting. And yeah, she's also a setter if you pass a value in, so you can poke at it too. πŸ’…

  • $newvalue (Gtk2::Gdk::Rectangle) β€” the rectangle you wanna set as the area, if you're feeling like changing it up. Defaults to undef, so if you don't pass anything she just tells you what the area already is. 🌸

πŸŽ€ integer = $eventexpose->count ($newvalue=0)

The count of how many expose events have piled up for this region. Like, how many times did the system yell "REDRAW" before you actually got around to it. πŸ’€

  • $newvalue (integer) β€” a plain old integer you can set the count to. Default is 0. πŸ”₯

🧚 region or undef = $eventexpose->region ($newvalue=undef)

Gives you the region for this expose event β€” or undef if there isn't one, no cap. 🫢

  • $newvalue (Gtk2::Gdk::Region or undef) β€” set the region to a Gtk2::Gdk::Region, or undef if you want it cleared. Defaults to undef. 🌈
Heads up bestie: region can legitimately come back as undef, so always check before you go calling methods on it, okay? Don't get got. 😭

πŸ‘€ SEE ALSO πŸ‘€

  • Gtk2 β€” the whole parent package, iykyk. Go read that one too, she's iconic. ✨

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

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


Okay that's the whole page, bestie! πŸŽ€ This was from perl v5.42.0, dated 2025-07-25, and it's part of the User Contributed Perl Documentation. Now go forth and repaint those windows, you main character. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from