Gnome2:...:Widget(3)
β¨ NAME β¨
okay so bestie, welcome to Gnome2::Canvas::Widget β it's the thing that lets you drop actual Gtk2::Widgets onto a canvas as CanvasItems. yes. real widgets. on a canvas. we love to see it π
(also, for the record, this page lives in the User Contributed Perl Documentation section, manual section 3, and the full title is Gnome2:...:Widget(3) β iykyk π)
π¦ HIERARCHY π¦
the family tree, and yes she comes from a long line of icons π
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gnome2::Canvas::Item
+----Gnome2::Canvas::Widget
π PROPERTIES π
every one of these is readable / writable, so you can peek and you can poke. go off π«Ά
anchor(Gtk2::AnchorType: default"north-west": readable / writable) β where the widget is anchored. defaults to north-west, so it's giving top-left energy.height(double: default0: readable / writable) β the height. starts at zero, obviously.size-pixels(boolean: defaultfalse: readable / writable) β whether sizing is in pixels. defaults to false.widget(Gtk2::Widget: defaultundef: readable / writable) β the actual widget itself. defaults toundef, so like, put something in there bestie πwidth(double: default0: readable / writable) β the width. also zero. we start from nothing and build πͺx(double: default0: readable / writable) β the x coordinate. zero by default.y(double: default0: readable / writable) β the y coordinate. zero by default. consistent queen β¨
π ENUMS AND FLAGS π
enum Gtk2::AnchorType
these are all the anchor vibes available to you, each one with its full C-constant name because we keep it exact fr fr π―
'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
not me listing the long names and the cute little short ones β yes both, because both are valid, and both are iconic π
π SEE ALSO π
go read these next, they're all part of the friend group:
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 bestie, you're officially fluent π this was documented by perl v5.42.0, dated 2025-07-25, and the page you just read was Gnome2:...:Widget(3). slay, go anchor something. π¦β¨
π¦ 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