Goo::Canvas::Rect(3)
π Goo::Canvas::Rect π
okay bestie so this is a page from the User Contributed Perl Documentation and it's literally all about Goo::Canvas::Rect β the lil wrapper for GooCanvasRect β¨ it's giving rectangle, it's giving rounded corners, it's giving main character geometry π
π NAME π
Goo::Canvas::Rect β wrapper for GooCanvasRect π«Ά
π HIERARCHY π
the family tree, and yes we're gonna read it top to bottom like the ancestry reveal episode it is π
Glib::Object
+----Goo::Canvas::ItemSimple
+----Goo::Canvas::Rect
so like, Goo::Canvas::Rect is the baby of the family and it inherited everything from up the chain π₯
π¦ INTERFACES π¦
Goo::Canvas::Item
that's the interface it implements, periodt π
β¨ METHODS β¨
π item = Goo::Canvas::Rect->new ($parent, $x, $y, $width, $height, ...)
this is the constructor bestie, it's how you make one of these bad boys exist πΈ and here's everything it wants from you:
$parent(Goo::Canvas::Item) β your parent item, the one who's gonna hold this rectangle$x(double) β the x coordinate, obviously$y(double) β the y coordinate, also obviously$width(double) β how wide$height(double) β how tall...(list) β the rest of the args, they go here π
π PROPERTIES π
okay so these are all readable / writable which means you can read them AND write them, we love a flexible queen π
'height'(double : default 0 : readable / writable) β the height of the rectangle π'radius-x'(double : default 0 : readable / writable) β the horizontal radius to use for rounded corners π rounded corners are SO cute'radius-y'(double : default 0 : readable / writable) β the vertical radius to use for rounded corners π¦ the y-axis twin of the one above'width'(double : default 0 : readable / writable) β the width of the rectangle π'x'(double : default 0 : readable / writable) β the x coordinate of the rectangle β'y'(double : default 0 : readable / writable) β the y coordinate of the rectangle β
every single one of them defaults to 0 and every single one of them is readable / writable, no cap π
πΈ SEE ALSO πΈ
go read these too bestie, they're the lore:
Glib::ObjectGoo::Canvas::ItemSimple
π COPYRIGHT π
Copyright (C) 2025 Gtk2-Perl Team
and that's the whole page fr fr π
k bye, this was Goo::Canvas::Rect(3) from perl v5.42.0, dated 2025-07-25 π«Ά mwah, go draw a rectangle, you got this πβ¨
π¦ where this page comes from
- fedora 43: perl-Goo-Canvas 0.06-60.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms