Gtk2::DrawingArea(3)
π Gtk2::DrawingArea π
okay bestie, so this page is Gtk2::DrawingArea(3) β it's from the User Contributed Perl Documentation corner of the perl world, and it's literally just the little wrapper that lets you play with GtkDrawingArea from Perl. it's giving canvas energy. it's giving "i draw therefore i am." π¨β¨
πΈ NAME πΈ
Gtk2::DrawingArea β bestie it's a wrapper for GtkDrawingArea, that's the whole vibe π«Ά
π¦ HIERARCHY π¦
so here's the family tree, and yes we're all gonna gather round and respect the lineage π
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::DrawingArea
look at her, four generations deep, absolutely thriving at the bottom of that tree π
π INTERFACES π
she's not just a pretty widget, she's got range. these are the interfaces she implements:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
accessible + buildable. main character behavior, no cap. π₯
β¨ METHODS β¨
π widget = Gtk2::DrawingArea->new
you want a drawing area? you make one. that's it, that's the method. she's new, she's blank, she's ready for whatever you're about to do to her. go off. π
π $darea->size ($width, $height)
okay so this one takes two args, and they're both integers, and you do NOT get to be cute about it:
$width(integer) β the width, bestie. a whole number. π$height(integer) β the height. also a whole number. no decimals, no "eh, roughly," just integers. π
ngl the types here are not a suggestion, they're a whole personality test. integers only, periodt.
π SEE ALSO π
if you wanna go down the rabbit hole (and you DO, i can tell), go read these next:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::Widget
iykyk π§
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
like... iconic of them honestly, giving us all this for free under the LGPL π
and that's the whole page, babe π β this little doc came to you courtesy of perl v5.42.0, dated 2025-07-25, and it's filed under the name Gtk2::DrawingArea(3). slay, go draw something cute. π
β¨
π¦ 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