Goo::Canvas::Image(3)

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

✨ NAME ✨

Goo::Canvas::Image β€” bestie, it's just a lil wrapper for GooCanvasImage πŸ’– (that's the manual page Goo::Canvas::Image(3) from the User Contributed Perl Documentation, if you're keeping track πŸŽ€)


🌸 HIERARCHY 🌸

okay so the family tree goes like this, no cap:

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

so yeah, she's a grandbaby of Glib::Object, and Goo::Canvas::ItemSimple is her whole parent vibe πŸ’…


πŸ¦‹ INTERFACES πŸ¦‹

  • Goo::Canvas::Item

she said "I contain multitudes" and honestly? iconic 🫢


πŸŽ€ METHODS πŸŽ€

item = Goo::Canvas::Image->new ($parent, $pixbuf, $x, $y, ...)

the constructor!! the main character entrance ✨ here's what you gotta hand her:

  • $parent (Goo::Canvas::Item) β€” who's your parent item, bestie
  • $pixbuf ((unknown)) β€” the pixbuf. it says unknown. that's literally what it says. i'm not gonna lie to you 😭
  • $x (double) β€” the x. the coordinate. the horizontal situation.
  • $y (double) β€” the y. vertical. you get it.
  • ... (list) β€” and then whatever else, go off πŸ’…

πŸ’œ PROPERTIES πŸ’œ

  • 'alpha' (double : default 1 : readable / writable) β€” the opacity of the image, 0.0 is fully transparent, and 1.0 is opaque. translucent queen behavior 🧚
  • 'height' (double : default 0 : readable / writable) β€” the height of the image
  • 'pattern' (Goo::Cairo::Pattern : default undef : readable / writable) β€” the cairo pattern to paint
  • 'pixbuf' (Gtk2::Gdk::Pixbuf : default undef : writable) β€” the GdkPixbuf to display. note that she's writable only, no reading, periodt 🚫
  • 'scale-to-fit' (boolean : default false : readable / writable) β€” if the image is scaled to fit the width and height settings
  • 'width' (double : default 0 : readable / writable) β€” the width of the image
  • 'x' (double : default 0 : readable / writable) β€” the x coordinate of the image
  • 'y' (double : default 0 : readable / writable) β€” the y coordinate of the image

like yes she's got width and height and x and y, she's a whole coordinate system, we stan a well-positioned girlie 🌈


🌟 SEE ALSO 🌟

go read these too, fr fr, they're the friend group:

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

Copyright (C) 2025 Gtk2-Perl Team


and that's the whole page, bestie πŸŽ€ this was perl v5.42.0, dated 2025-07-25, and it's the Goo::Canvas::Image(3) manpage β€” slay, go forth and render your pixbufs βœ¨πŸ’–

πŸ“¦ where this page comes from