Goo::Ca...::Widget(3)
π Goo::Canvas::Widget π
okay bestie, so this page is from the User Contributed Perl Documentation and it's all about Goo::Canvas::Widget β which is basically a little glow-up wrapper around GooCanvasWidget. if you've ever wanted to just... plop a whole actual GTK widget into your canvas like it's no big deal? yeah. that's the girl. that's her. π«Ά
β¨ NAME β¨
Goo::Canvas::Widget β a wrapper for GooCanvasWidget, no cap π
π¦ HIERARCHY π¦
so here's the family tree, and yes she comes from a long line of iconic ancestors:
Glib::Object
+----Goo::Canvas::ItemSimple
+----Goo::Canvas::Widget
πΈ INTERFACES πΈ
Goo::Canvas::Item
π METHODS π
item = Goo::Canvas::Widget->new ($parent, $widget, $x, $y, $width, $height, ...)
okay so you call new and you get back an item. here's everybody you gotta hand over when you do:
$parent(Goo::Canvas::Item)$widget(Gtk2::Widget)$x(double)$y(double)$width(double)$height(double)...(list)
π PROPERTIES π
these are the levers you can pull, bestie. all of them are readable / writable, so go off π
anchor(Gtk2::AnchorType: default"north-west": readable / writable) β how to position the widget relative to the item'sxandycoordinate settingsheight(double: default-1: readable / writable) β the height of the widget, or-1to use its requested heightwidget(Gtk2::Widget: defaultundef: readable / writable) β the widget to place in the canvaswidth(double: default-1: readable / writable) β the width of the widget, or-1to use its requested widthx(double: default0: readable / writable) β the x coordinate of the widgety(double: default0: readable / writable) β the y coordinate of the widget
π ENUMS AND FLAGS π
enum Gtk2::AnchorType
the full roster of anchor options, short names AND long names, both living their truth:
'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
π SEE ALSO π
go read these too, they're the supporting cast:
Glib::ObjectGoo::Canvas::ItemSimple
π COPYRIGHT π
Copyright (C) 2025 Gtk2-Perl Team
and that's the whole page, bestie!! this lil doc is perl v5.42.0, dated 2025-07-25, and it lives at Goo::Ca...::Widget(3). go build something gorgeous with it πβ¨ππ¦
π¦ 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