Goo::Ca...neModel(3)

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

πŸ’– Goo::Canvas::PolylineModel πŸ’–

okay so bestie, welcome to Goo::Canvas::PolylineModel β€” it's the wrapper for GooCanvasPolylineModel, and it lives in the User Contributed Perl Documentation section, manual page Goo::Canvas::PolylineModel(3). yes it's a whole mouthful, we're gonna get through it together 🫢


✨ NAME ✨

Goo::Canvas::PolylineModel β€” literally just the wrapper for GooCanvasPolylineModel. that's it, that's the name, iconic πŸ’…


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree, and yes we're doing ancestry:

Glib::Object
+----Goo::Canvas::ItemModelSimple
     +----Goo::Canvas::PolylineModel

so it's a Glib::Object, which begat Goo::Canvas::ItemModelSimple, which begat our main character Goo::Canvas::PolylineModel. generational slay πŸ‘‘


🌈 INTERFACES 🌈

  • Goo::Canvas::ItemModel

πŸŽ€ METHODS πŸŽ€

πŸ’« itemmodel = Goo::Canvas::PolylineModel->new ($parent, $close_path, $points, ...)

this is the constructor bestie, the glow-up moment ✨

  • $parent (Goo::Canvas::ItemModel)
  • $close_path (boolean)
  • $points (arrayref) β€” the points is an array reference that contains a flat points coordinates. if you wanna create a polyline with no points at all, pass an empty array refer or undef. no drama, it's fine πŸ’
  • ... (list)

πŸ’« itemmodel = Goo::Canvas::PolylineModel->new_line ($parent, $x1, $y1, $x2, $y2, ...)

the shortcut version, for when you just want a dang line and not a whole coordinate situation 🫢

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

πŸ’œ PROPERTIES πŸ’œ

all of these are readable / writable, so go off, customize your lil polyline 🌸

  • 'arrow-length' (double : default 5 : readable / writable) β€” the length of the arrows, as a multiple of the line width. yes, a multiple of the line width, so it scales with your vibe πŸ“
  • '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. loop it, bestie πŸ”
  • '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, iykyk:

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

Copyright (C) 2025 Gtk2-Perl Team


and that's the whole page bestie, you ate it up fr fr πŸ“βœ¨

perl v5.42.0 Β· 2025-07-25 Β· Goo::Ca...neModel(3) πŸ’– bye ily, go draw a polyline πŸ¦‹

πŸ“¦ where this page comes from