Goo::Canvas::Rect(3)

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

πŸ’– 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::Object
  • Goo::Canvas::ItemSimple

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