Goo::Ca...Polyline(3)

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

πŸ’– Goo::Canvas::Polyline β€” the wrapper for GooCanvasPolyline πŸ’–

okay bestie, gather round, because this is the page for Goo::Canvas::Polyline from the User Contributed Perl Documentation section of the manual (section 3, the library-calls girlies). It's the Perl-side wrapper for GooCanvasPolyline, and it's lowkey iconic. Let's get into it. πŸŽ€


✨ NAME ✨

Goo::Canvas::Polyline β€” it's literally the wrapper for GooCanvasPolyline. That's the whole vibe. πŸ¦‹


🌸 HIERARCHY 🌸

Here's the family tree, and yes, she's got main character energy at the bottom:

Glib::Object
+----Goo::Canvas::ItemSimple
     +----Goo::Canvas::Polyline

🫢 INTERFACES 🫢

  • Goo::Canvas::Item β€” she implements it, she ate, no notes. πŸ’…

πŸ’œ METHODS πŸ’œ

item = Goo::Canvas::Polyline->new ($parent, $close_path, $points, ...)

Making a whole new polyline, periodt. Here's what you're feeding her:

  • $parent (Goo::Canvas::Item)
  • $close_path (boolean)
  • $points (arrayref) β€” The points is an array reference that contains a flat points coordinates. If you want create a polyline without points, pass an empty array refer or undef.
  • ... (list)

item = Goo::Canvas::Polyline->new_line ($parent, $x1, $y1, $x2, $y2, ...)

The shortcut bestie β€” one straight line, no points array required:

  • $parent (Goo::Canvas::Item)
  • $x1 (double)
  • $y1 (double)
  • $x2 (double)
  • $y2 (double)
  • ... (list)

⭐ PROPERTIES ⭐

Every single one, and they're all readable / writable, so you can peek AND poke. πŸ‘‘

  • 'arrow-length' (double : default 5 : readable / writable) β€” The length of the arrows, as a multiple of the line width
  • 'arrow-tip-length' (double : default 4 : readable / writable) β€” The length of the arrow tip, as a multiple of the line width
  • 'arrow-width' (double : default 4 : readable / writable) β€” The width of the arrows, as a multiple of the line width
  • 'close-path' (boolean : default false : readable / writable) β€” If the last point should be connected to the first
  • 'end-arrow' (boolean : default false : readable / writable) β€” If an arrow should be displayed at the end of the polyline
  • 'height' (double : default 0 : readable / writable) β€” The height of the polyline
  • 'points' (Goo::Canvas::Points : default undef : readable / writable) β€” The array of points
  • 'start-arrow' (boolean : default false : readable / writable) β€” If an arrow should be displayed at the start of the polyline
  • 'width' (double : default 0 : readable / writable) β€” The width of the polyline
  • 'x' (double : default 0 : readable / writable) β€” The x coordinate of the left-most point of the polyline
  • 'y' (double : default 0 : readable / writable) β€” The y coordinate of the top-most point of the polyline

πŸ‘€ SEE ALSO πŸ‘€

Go read these too, they're the supporting cast:

  • Glib::Object
  • Goo::Canvas::ItemSimple

Copyright (C) 2025 Gtk2-Perl Team


and that's the whole page, bestie, we did it πŸ’–

This little love letter was built with perl v5.42.0, dated 2025-07-25, straight from the Goo::Ca...Polyline(3) page in the User Contributed Perl Documentation. Stan the Gtk2-Perl Team. πŸŽ€βœ¨

πŸ“¦ where this page comes from