Gnome2:...s::Line(3)
π NAME π
Gnome2::Canvas::Line β it's giving lines as CanvasItems, bestie β¨
So like. This is the Perl binding for making a line on a Gnome2::Canvas. That's the whole vibe. The manual name is Gnome2:...s::Line(3) if you were wondering (yes the header is abridged like that, it's the Gnome2::Canvas::Line manpage, we move π).
πΈ HIERARCHY πΈ
Here's the family tree, and yes, this line item is deep in the bloodline π
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gnome2::Canvas::Item
+----Gnome2::Canvas::Line
β¨ PROPERTIES β¨
Every one of these is readable / writable (you can get and set them, slay). Here's the full roster, no skipping, no cap:
'arrow-shape-a'(double: default0: readable / writable) β arrow shape parameter a, defaulting to zero.'arrow-shape-b'(double: default0: readable / writable) β arrow shape parameter b, also zero by default.'arrow-shape-c'(double: default0: readable / writable) β and arrow shape parameter c, zero. The trio, periodt.'cap-style'(Gtk2::Gdk::CapStyle: default"butt": readable / writable) β how the ends of the line get capped. Defaults to"butt", which is honestly such a name π'fill-color'(string: defaultundef: readable / writable) β fill colour as a string, starts out undefined.'fill-color-gdk'(Gtk2::Gdk::Color: defaultundef: readable / writable) β same deal but as an actualGtk2::Gdk::Colorobject. Alsoundefat the start.'fill-color-rgba'(Glib::UInt: default0: readable / writable) β fill colour as an unsigned int RGBA value, default0.'fill-stipple'(Gtk2::Gdk::Drawable: defaultundef: readable / writable) β a stipple pattern for the fill,undefuntil you give it a drawable.'first-arrowhead'(boolean: defaultfalse: readable / writable) β do you want an arrowhead at the start? Default: no bestie.'join-style'(Gtk2::Gdk::JoinStyle: default"miter": readable / writable) β how corners join up, defaults to"miter".'last-arrowhead'(boolean: defaultfalse: readable / writable) β arrowhead at the far end? Also defaults tofalse.'line-style'(Gtk2::Gdk::LineStyle: default"solid": readable / writable) β solid, dashed, the works. Defaults to"solid".'points'(Gnome2::Canvas::Points: defaultundef: readable / writable) β the actual points that make up the line.undefby default, so go set it π'smooth'(boolean: defaultfalse: readable / writable) β smooth the line out? Defaultfalse.'spline-steps'(Glib::UInt: default12: readable / writable) β how many steps the spline gets. Default is12, lowkey specific but okay.'width-pixels'(Glib::UInt: default0: readable / writable) β line width in pixels, default0.'width-units'(double: default0: readable / writable) β line width in canvas units, default0.
π¦ ENUMS AND FLAGS π¦
enum Gtk2::Gdk::CapStyle
'not-last'/GDK_CAP_NOT_LAST'butt'/GDK_CAP_BUTT'round'/GDK_CAP_ROUND'projecting'/GDK_CAP_PROJECTING
enum Gtk2::Gdk::JoinStyle
'miter'/GDK_JOIN_MITER'round'/GDK_JOIN_ROUND'bevel'/GDK_JOIN_BEVEL
enum Gtk2::Gdk::LineStyle
'solid'/GDK_LINE_SOLID'on-off-dash'/GDK_LINE_ON_OFF_DASH'double-dash'/GDK_LINE_DOUBLE_DASH
π SEE ALSO π
Go read these next, fr fr:
Gnome2::CanvasGlib::ObjectGlib::InitiallyUnownedGtk2::ObjectGnome2::Canvas::Item
π COPYRIGHT π
Copyright (C) 2003-2004 by the Gtk2-Perl Team.
This software is licensed under the LGPL; see Gnome2::Canvas for a full notice.
Okay that's the whole page, you ate that π
This was perl v5.42.0, dated 2025-07-25 β love that for us, bye bestie π«ΆπΈ
π¦ where this page comes from
- fedora 43: perl-Gnome2-Canvas 1.006-18.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms