Gtk2::G...enderer(3)
π NAME π
Gtk2::Gdk::PangoRenderer β bestie, it's literally just a wrapper for GdkPangoRenderer β¨
No cap, that's the whole vibe. It's a Perl-side glow-up for the Gdk flavour of Pango's renderer. π¦
πΈ HIERARCHY πΈ
okay so here's the family tree, and yes it's giving royal lineage π
Glib::Object
+----Pango::Renderer
+----Gtk2::Gdk::PangoRenderer
so it inherits from Pango::Renderer, which inherits from Glib::Object. main character energy all the way up. π
β¨ METHODS β¨
π renderer = Gtk2::Gdk::PangoRenderer->new ($screen)
$screenis aGtk2::Gdk::Screenβ that's the one argument, that's it, slay.
π renderer = Gtk2::Gdk::PangoRenderer->get_default ($screen)
$screenagain, aGtk2::Gdk::Screen. gives you the default one for that screen, iconic.
π $gdk_renderer->set_drawable ($drawable)
$drawableis aGtk2::Gdk::Drawableβ¦ orundefπ (yes, undef is allowed, we don't judge)
π $gdk_renderer->set_gc ($gc)
$gcis aGtk2::Gdk::GCβ¦ orundefagain π the duality
π $gdk_renderer->set_override_color ($part, $color)
$partβ aPango::RenderPart(which part are we painting, bestie?)$colorβ aGtk2::Gdk::Colororundefπ¨
π $gdk_renderer->set_stipple ($part, $stipple)
$partβ aPango::RenderPartagain$stippleβ aGtk2::Gdk::Bitmaporundefπ€
π PROPERTIES π
'screen'(Gtk2::Gdk::Screen: defaultundef: readable / writable / construct-only / private / static-nick / static-blurb) β the GdkScreen for the renderer. that's the whole thing. construct-only, so set it when you make it and then mind your business π«Ά
π ENUMS AND FLAGS π
enum Pango::RenderPart
every option, no skips, periodt:
'foreground'/PANGO_RENDER_PART_FOREGROUND'background'/PANGO_RENDER_PART_BACKGROUND'underline'/PANGO_RENDER_PART_UNDERLINE'strikethrough'/PANGO_RENDER_PART_STRIKETHROUGH'overline'/PANGO_RENDER_PART_OVERLINE
five parts, five vibes, we love a complete set β
π SEE ALSO π
go read these too, iykyk:
Gtk2Glib::ObjectPango::Renderer
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice. (yes, actual legal stuff, not a vibe β go read it fr fr)
okay and that's the whole page bestie, thanks for coming to my ted talk πβ¨
this was perl v5.42.0, dated 2025-07-25, brought to you by User Contributed Perl Documentation β mwah, take care of yourself, drink water, and go render something gorgeous ππ¦πΈ
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms