Gtk2::G...enderer(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’– 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)

  • $screen is a Gtk2::Gdk::Screen β€” that's the one argument, that's it, slay.

πŸŽ€ renderer = Gtk2::Gdk::PangoRenderer->get_default ($screen)

  • $screen again, a Gtk2::Gdk::Screen. gives you the default one for that screen, iconic.

πŸŽ€ $gdk_renderer->set_drawable ($drawable)

  • $drawable is a Gtk2::Gdk::Drawable… or undef πŸ™ˆ (yes, undef is allowed, we don't judge)

πŸŽ€ $gdk_renderer->set_gc ($gc)

  • $gc is a Gtk2::Gdk::GC… or undef again πŸ’€ the duality

πŸŽ€ $gdk_renderer->set_override_color ($part, $color)

  • $part β€” a Pango::RenderPart (which part are we painting, bestie?)
  • $color β€” a Gtk2::Gdk::Color or undef 🎨

πŸŽ€ $gdk_renderer->set_stipple ($part, $stipple)

  • $part β€” a Pango::RenderPart again
  • $stipple β€” a Gtk2::Gdk::Bitmap or undef πŸ–€

πŸ’œ PROPERTIES πŸ’œ

  • 'screen' (Gtk2::Gdk::Screen : default undef : 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:

  • Gtk2
  • Glib::Object
  • Pango::Renderer

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