Goo::Canvas::Style(3)
π Goo::Canvas::Style π
okay bestie, so you know how this is from the User Contributed Perl Documentation? yeah. it's that one. it's giving "the perl bindings for GooCanvas finally got a style class" and honestly? we're obsessed π
β¨ NAME β¨
Goo::Canvas::Style β it's a wrapper for GooCanvasStyle. that's it, that's the whole vibe. a lil perl-y bestie standing in front of the C library like π«Ά
πΈ HIERARCHY πΈ
the family tree, and yes it's a short one:
Glib::Object
+----Goo::Canvas::Style
so Goo::Canvas::Style is a Glib::Object descendant, periodt. it inherits everything Glib::Object brings to the party, and that's the whole bloodline π
π¦ METHODS π¦
here's the whole roster, no gatekeeping:
β¨ style = Goo::Canvas::Style->new
make yourself a brand new style object, fresh out the box. main character energy β¨
style = Goo::Canvas::Style->new
π style = $style->copy
copies the style. like a screenshot but for vibes. you get a style back π
style = $style->copy
π boolean = $style->set_fill_options ($cr)
sets up the fill options, using the cairo context you hand it. you get back a boolean β true or false, no in-between, no "it's complicated".
boolean = $style->set_fill_options ($cr)
$crβ acairo_t, i.e. the cairo context. hand it over bestie π«Ά
π§ style = $style->get_parent
returns the parent as a style. your style's style mom, if you will π
style = $style->get_parent
π $style->set_parent ($parent)
sets who the parent is. you're assigning a whole parent, that's the power you hold π
$style->set_parent ($parent)
$parentβ aGoo::Canvas::Style. yes, styles can be parents of styles. it's a whole family dynamic π
β scalar = $style->get_property ($property)
grab a property value. it comes back as a scalar β so a string, a number, whatever perl decides it is, and we respect that π
scalar = $style->get_property ($property)
$propertyβ astring. the name of the property, bestie.
π₯ $style->set_property ($property, $val)
set a property to a value. you give it a name and a thing, it does the thing β¨
$style->set_property ($property, $val)
$propertyβ astring. the property's name.$valβ ascalar. the value you're setting it to.
π boolean = $style->set_stroke_options ($cr)
the stroke sibling of set_fill_options β sets the stroke options using your cairo context, and gives you back a boolean. so you can ask "did that work" and it'll tell you fr fr π
boolean = $style->set_stroke_options ($cr)
$crβ acairo_t. the cairo context, again. it's literally always the cairo context.
π SEE ALSO π
go check out Glib::Object, the parent, the blueprint, the icon it is π
π COPYRIGHT π
Copyright (C) 2025 Gtk2-Perl Team
okay that's the whole page, you ate it up π this was Goo::Canvas::Style(3) from perl v5.42.0, dated 2025-07-25, and it lives in the User Contributed Perl Documentation section. mwah, go write some canvas code bestie π
β¨π¦
π¦ 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