Goo::Ca...ctModel(3)

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

πŸ’– 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 : default 0 : readable / writable) β€” the height of the rectangle. yes. that's the whole description. she's not mysterious. πŸ’–
  • 'radius-x' (double : default 0 : readable / writable) β€” the horizontal radius to use for rounded corners. soft edges, soft girl era 🌈
  • 'radius-y' (double : default 0 : readable / writable) β€” the vertical radius to use for rounded corners. the y-axis twin of the above, obsessed πŸ’œ
  • 'width' (double : default 0 : readable / writable) β€” the width of the rectangle. slay.
  • 'x' (double : default 0 : readable / writable) β€” the x coordinate of the rectangle πŸ“
  • 'y' (double : default 0 : readable / writable) β€” the y coordinate of the rectangle πŸ“

πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, they're part of the friend group:

  • Glib::Object
  • Goo::Canvas::ItemModelSimple

iykyk. πŸ‘‘


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