Gtk2::G...:Expose(3)
π 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 toundef, 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 is0. π₯
π§ 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 aGtk2::Gdk::Region, orundefif you want it cleared. Defaults toundef. π
Heads up bestie:regioncan legitimately come back asundef, 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 π
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
- 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