Goo::Ca...neModel(3)
π 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 orundef. 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 : default5: 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 : default4: readable / writable) β the length of the arrow tip, as a multiple of the line width'arrow-width'(double : default4: readable / writable) β the width of the arrows, as a multiple of the line width'close-path'(boolean : defaultfalse: readable / writable) β if the last point should be connected to the first. loop it, bestie π'end-arrow'(boolean : defaultfalse: readable / writable) β if an arrow should be displayed at the end of the polyline'height'(double : default0: readable / writable) β the height of the polyline'points'(Goo::Canvas::Points: defaultundef: readable / writable) β the array of points'start-arrow'(boolean : defaultfalse: readable / writable) β if an arrow should be displayed at the start of the polyline'width'(double : default0: readable / writable) β the width of the polyline'x'(double : default0: readable / writable) β the x coordinate of the left-most point of the polyline'y'(double : default0: readable / writable) β the y coordinate of the top-most point of the polyline
π SEE ALSO π
go read these too, iykyk:
Glib::ObjectGoo::Canvas::ItemModelSimple
π COPYRIGHT π
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
- 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