Gnome2:...s::Line(3)

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

πŸ’– 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 : default 0 : readable / writable) β€” arrow shape parameter a, defaulting to zero.
  • 'arrow-shape-b' (double : default 0 : readable / writable) β€” arrow shape parameter b, also zero by default.
  • 'arrow-shape-c' (double : default 0 : 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 : default undef : readable / writable) β€” fill colour as a string, starts out undefined.
  • 'fill-color-gdk' (Gtk2::Gdk::Color : default undef : readable / writable) β€” same deal but as an actual Gtk2::Gdk::Color object. Also undef at the start.
  • 'fill-color-rgba' (Glib::UInt : default 0 : readable / writable) β€” fill colour as an unsigned int RGBA value, default 0.
  • 'fill-stipple' (Gtk2::Gdk::Drawable : default undef : readable / writable) β€” a stipple pattern for the fill, undef until you give it a drawable.
  • 'first-arrowhead' (boolean : default false : 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 : default false : readable / writable) β€” arrowhead at the far end? Also defaults to false.
  • 'line-style' (Gtk2::Gdk::LineStyle : default "solid" : readable / writable) β€” solid, dashed, the works. Defaults to "solid".
  • 'points' (Gnome2::Canvas::Points : default undef : readable / writable) β€” the actual points that make up the line. undef by default, so go set it πŸ‘€
  • 'smooth' (boolean : default false : readable / writable) β€” smooth the line out? Default false.
  • 'spline-steps' (Glib::UInt : default 12 : readable / writable) β€” how many steps the spline gets. Default is 12, lowkey specific but okay.
  • 'width-pixels' (Glib::UInt : default 0 : readable / writable) β€” line width in pixels, default 0.
  • 'width-units' (double : default 0 : readable / writable) β€” line width in canvas units, default 0.

πŸ¦‹ 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::Canvas
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gnome2::Canvas::Item

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