Goo::Ca...ctModel(3)
π Goo::Canvas::RectModel β the vibe check π
okay bestie, so this is a page from the User Contributed Perl Documentation, section 3, and it's literally all about Goo::Canvas::RectModel β you know, the wrapper for GooCanvasRectModel. That's the whole thing. A little rectangle guy for your canvas. Iconic behavior, honestly. π
β¨ NAME β¨
Goo::Canvas::RectModel β it's a wrapper for GooCanvasRectModel, periodt. π¦
πΈ HIERARCHY πΈ
here's the family tree, and yes she comes from good stock:
Glib::Object
+----Goo::Canvas::ItemModelSimple
+----Goo::Canvas::RectModel
so like, Glib::Object is the great-grandma, Goo::Canvas::ItemModelSimple is the mom, and Goo::Canvas::RectModel is the main character. π
π§ INTERFACES π§
she implements:
Goo::Canvas::ItemModel
one interface, no notes, she keeps it clean. β¨
π₯ METHODS π₯
π itemmodel = Goo::Canvas::RectModel->new ($parent, $x, $y, $width, $height, ...)
okay so this is the constructor, the birth of your rectangle, the glow-up moment. here's what you hand her:
$parent(Goo::Canvas::ItemModel) β your rectangle's parent, its whole support system π«Ά$x(double) β the x, obviously$y(double) β the y, also obviously$width(double) β how wide she is$height(double) β how tall she is...(list) β and then just, like, whatever else, a whole list of extras
π PROPERTIES π
these are her settings, her little knobs, all double, all defaulting to 0, and every single one is readable / writable because she's flexible like that:
'height'(double : default0: readable / writable) β the height of the rectangle. yes. that's the whole description. she's not mysterious. π'radius-x'(double : default0: readable / writable) β the horizontal radius to use for rounded corners. soft edges, soft girl era π'radius-y'(double : default0: readable / writable) β the vertical radius to use for rounded corners. the y-axis twin of the above, obsessed π'width'(double : default0: readable / writable) β the width of the rectangle. slay.'x'(double : default0: readable / writable) β the x coordinate of the rectangle π'y'(double : default0: readable / writable) β the y coordinate of the rectangle π
π¦ SEE ALSO π¦
go read these too, they're part of the friend group:
Glib::ObjectGoo::Canvas::ItemModelSimple
iykyk. π
π COPYRIGHT π
Copyright (C) 2025 Gtk2-Perl Team
π real talk bestie, that's genuinely the entire page. no hidden lore, no secret flags. she's a rectangle model and she knows it. no cap.
and that's a wrap, my love π«Ά this was Goo::Ca...ctModel(3) from perl v5.42.0, dated 2025-07-25 β go build some rectangles, you absolute icon βπΈ
π¦ 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