Gnome2:...:Pixbuf(3)

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

✨ Gnome2::Canvas::Pixbuf β€” pixbufs as CanvasItems ✨

okay bestie, welcome to Gnome2::Canvas::Pixbuf πŸ’– it's part of the User Contributed Perl Documentation collection, and it's literally just here to let you drop a pixbuf onto a canvas as a CanvasItem. cute, right? πŸŽ€


🌸 NAME 🌸

Gnome2::Canvas::Pixbuf β€” Pixbufs as CanvasItems πŸ–ΌοΈβœ¨


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree, bestie. your girl did NOT come from nowhere:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gnome2::Canvas::Item
               +----Gnome2::Canvas::Pixbuf

so she's a Glib::Object, she's InitiallyUnowned, she's a Gtk2::Object, and she's a Gnome2::Canvas::Item. generational wealth fr fr πŸ‘‘


πŸ’… PROPERTIES πŸ’…

every single one of these is readable / writable, no gatekeeping here:

  • 'anchor' (Gtk2::AnchorType : default "north-west" : readable / writable) β€” where the pixbuf hooks onto its position. defaults to north-west, so top-left energy unless you say otherwise 🧭
  • 'height' (double : default 0 : readable / writable) β€” the height, as a double. starts at 0
  • 'height-in-pixels' (boolean : default false : readable / writable) β€” is that height measured in pixels or nah? defaults to false πŸ™ˆ
  • 'height-set' (boolean : default false : readable / writable) β€” has the height even been set? defaults to false
  • 'pixbuf' (Gtk2::Gdk::Pixbuf : default undef : readable / writable) β€” the actual pixbuf, the whole point, the main character. default is undef 😭
  • 'width' (double : default 0 : readable / writable) β€” the width, as a double. starts at 0
  • 'width-in-pixels' (boolean : default false : readable / writable) β€” pixels or not, bestie? defaults to false
  • 'width-set' (boolean : default false : readable / writable) β€” has the width been set? defaults to false
  • 'x' (double : default 0 : readable / writable) β€” the x coordinate, double, defaults to 0 πŸ“
  • 'x-in-pixels' (boolean : default false : readable / writable) β€” is x in pixels? defaults to false
  • 'y' (double : default 0 : readable / writable) β€” the y coordinate, double, defaults to 0 πŸ“
  • 'y-in-pixels' (boolean : default false : readable / writable) β€” is y in pixels? defaults to false

🌈 ENUMS AND FLAGS 🌈

πŸŽ€ enum Gtk2::AnchorType πŸŽ€

all the places you can anchor to. every one of them, no skips, periodt:

  • 'center' / 'GTK_ANCHOR_CENTER'
  • 'north' / 'GTK_ANCHOR_NORTH'
  • 'north-west' / 'GTK_ANCHOR_NORTH_WEST'
  • 'north-east' / 'GTK_ANCHOR_NORTH_EAST'
  • 'south' / 'GTK_ANCHOR_SOUTH'
  • 'south-west' / 'GTK_ANCHOR_SOUTH_WEST'
  • 'south-east' / 'GTK_ANCHOR_SOUTH_EAST'
  • 'west' / 'GTK_ANCHOR_WEST'
  • 'east' / 'GTK_ANCHOR_EAST'
  • 'n' / 'GTK_ANCHOR_N'
  • 'nw' / 'GTK_ANCHOR_NW'
  • 'ne' / 'GTK_ANCHOR_NE'
  • 's' / 'GTK_ANCHOR_S'
  • 'sw' / 'GTK_ANCHOR_SW'
  • 'se' / 'GTK_ANCHOR_SE'
  • 'w' / 'GTK_ANCHOR_W'
  • 'e' / 'GTK_ANCHOR_E'

iykyk, the short ones are just the long ones with the vowels cut out πŸ’€ slay


🫢 SEE ALSO 🫢

go read these too, they're all in the group chat:

  • 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 bestie, you ate that πŸ“ this was perl v5.42.0, dated 2025-07-25, and it's the Gnome2:...:Pixbuf(3) page β€” go make something gorgeous with it, ily πŸ’œβœ¨

πŸ“¦ where this page comes from