Goo::Canvas::Text(3)
π Goo::Canvas::Text π
okay so bestie, welcome to Goo::Canvas::Text β this is the Perl wrapper for GooCanvasText, and honestly? it's giving "put words on a canvas and make them look cute" β¨ this page lives in the User Contributed Perl Documentation section of the manual, section 3 if you're keeping score π
πΈ HIERARCHY πΈ
the family tree, and yes we respect our elders:
Glib::Object
+----Goo::Canvas::ItemSimple
+----Goo::Canvas::Text
so it's a Glib::Object β Goo::Canvas::ItemSimple β Goo::Canvas::Text situation. generational excellence fr fr π
π¦ INTERFACES π¦
Goo::Canvas::Item
that's the interface it implements, periodt π
β¨ METHODS β¨
π item = Goo::Canvas::Text->new ($parent, $string, $x, $y, $width, $anchor, ...)
bestie this is the constructor. here's what you're feeding it:
$parent(Goo::Canvas::Item)$string(string)$x(double)$y(double)$width(double)$anchor(Gtk2::AnchorType)...(list)
the ... is doing a little "and friends" moment, iykyk π«Ά
π PROPERTIES π
okay so here's the whole lineup, every single one, no skips:
'alignment'(Pango::Alignment: default"left": readable / writable) β how to align the text π'anchor'(Gtk2::AnchorType: default"north-west": readable / writable) β how to position the text relative to the given x and y coordinates π'ellipsize'(Pango::EllipsizeMode: default"none": readable / writable) β the preferred place to ellipsize the string, if the label does not have enough room to display the entire string π (yes, the sad little...treatment)'height'(double: default-1: readable / writable) β the height to use to layout the text, or-1to let the text use as much vertical space as needed π'text'(string: defaultundef: readable / writable) β the text to display βοΈ'use-markup'(boolean: defaultfalse: readable / writable) β whether to parse PangoMarkup in the text, to support different styles π¨'width'(double: default-1: readable / writable) β the width to use to layout the text, or-1to let the text use as much horizontal space as needed π'wrap'(Pango::WrapMode: default"word": readable / writable) β the preferred method of wrapping the string if a width has been set π'x'(double: default0: readable / writable) β the x coordinate of the text β‘οΈ'y'(double: default0: readable / writable) β the y coordinate of the text β¬οΈ
π§ ENUMS AND FLAGS π§
π enum Gtk2::AnchorType
'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
that's all seventeen of them, both the long-form names and the little abbreviated besties π«Ά
πΈ enum Pango::Alignment
'left'/PANGO_ALIGN_LEFT'center'/PANGO_ALIGN_CENTER'right'/PANGO_ALIGN_RIGHT
β enum Pango::EllipsizeMode
'none'/PANGO_ELLIPSIZE_NONE'start'/PANGO_ELLIPSIZE_START'middle'/PANGO_ELLIPSIZE_MIDDLE'end'/PANGO_ELLIPSIZE_END
π¦ enum Pango::WrapMode
'word'/PANGO_WRAP_WORD'char'/PANGO_WRAP_CHAR'word-char'/PANGO_WRAP_WORD_CHAR'none'/PANGO_WRAP_NONE
π 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 was generated for perl v5.42.0, dated 2025-07-25, and it's literally the Goo::Canvas::Text(3) manual page β slay, go draw some text on a canvas, you absolute icon π
β¨π¦
π¦ 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