Goo::Ca...ageModel(3)
β¨ NAME β¨
Goo::Canvas::ImageModel β bestie, it's literally just a wrapper for GooCanvasImageModel πΌοΈπ
Like, that's the whole gig. She's a glow-up layer sitting on top of the C thing so your Perl code doesn't have to touch anything scary. Obsessed, honestly.
π¦ HIERARCHY π¦
okay so here's the family tree, and yes she comes from a long line of icons π
Glib::Object
+----Goo::Canvas::ItemModelSimple
+----Goo::Canvas::ImageModel
Read it top to bottom like a group chat scrollback: Glib::Object is the great-grandma, Goo::Canvas::ItemModelSimple is the mom, and Goo::Canvas::ImageModel is the main character at the bottom. π
πΈ INTERFACES πΈ
She also shows up to the party wearing:
Goo::Canvas::ItemModel
That's it, that's the list, and she ate. π
β¨ METHODS β¨
π itemmodel = Goo::Canvas::ImageModel->new ($parent, $pixbuf, $x, $y, ...)
This is the constructor, the birth of a legend, the moment she enters the room π«Ά Here's what you gotta hand her:
$parentβ aGoo::Canvas::ItemModel. Your new image needs a parent, she's not moving out on her own.$pixbufβ type is(unknown), bestie, the docs are being mysterious about it, we just report what we know π$xβ adouble. The x situation.$yβ adouble. The y situation....β alist. Yes, literally, extra stuff goes here. The dots said so. β
π PROPERTIES π
Every one of these is readable / writable unless noted, and every one is a lil vibe check you can do whenever:
alpha(double : default 1 : readable / writable) β the opacity of the image.0.0is fully transparent (ghost mode π») and1.0is opaque (fully here, fully booked π ).height(double : default 0 : readable / writable) β the height of the image. That's it, that's the whole thing.pattern(Goo::Cairo::Pattern : default undef : readable / writable) β the cairo pattern to paint. Fancy brush energy. π¨pixbuf(Gtk2::Gdk::Pixbuf : default undef : writable) β the GdkPixbuf to display. Heads up: this one is writable only, no reading back, so don't go peeking. πscale-to-fit(boolean : default false : readable / writable) β if the image is scaled to fit the width and height settings. Default isfalse, so she stays her natural size until you say otherwise.width(double : default 0 : readable / writable) β the width of the image. Periodt.x(double : default 0 : readable / writable) β the x coordinate of the image.y(double : default 0 : readable / writable) β the y coordinate of the image.
ngl,xandyboth default to0, so she starts out in the corner like she's waiting for you to give her directions π§
π SEE ALSO π
Go bother these queens when you need more:
Glib::ObjectGoo::Canvas::ItemModelSimple
iykyk π
π COPYRIGHT π
Copyright (C) 2025 Gtk2-Perl Team
and that's the whole page bestie, we're done here πβ¨
perl v5.42.0 Β· 2025-07-25 Β· mwah, go write something cute ππ¦
π¦ 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