Gtk2::RcStyle(3)

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

πŸ’– NAME πŸ’–

ok so Gtk2::RcStyle bestie β€” it's literally just a wrapper for GtkRcStyle. that's the whole vibe. πŸŽ€


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree, and yes it's giving nepo baby:

Glib::Object
+----Gtk2::RcStyle

✨ METHODS ✨

okok here's where it gets fun. every method, no skips, periodt.

🌸 rcstyle = Gtk2::RcStyle->new

make a whole new one from scratch. iconic behaviour, no notes. πŸ’…

🌈 color = $style->base ($state, $new=undef)

  • $state β€” a Gtk2::StateType (the enum's down below, don't worry)
  • $new β€” a Gtk2::Gdk::Color, or undef

πŸ“ color = $style->bg ($state, $new=undef)

  • $state β€” Gtk2::StateType
  • $new β€” Gtk2::Gdk::Color or undef

🧚 scalar = $style->bg_pixmap_name ($state, $new=undef)

  • $state β€” Gtk2::StateType
  • $new β€” a string, or undef

πŸ‘‘ rcflags = $style->color_flags ($state, $new=0)

  • $state β€” Gtk2::StateType
  • $new β€” Gtk2::RcFlags
note the default is literally 0, not undef. lowkey a lil different from the others, and that's fine, we love her.

πŸ’œ rcstyle = $orig->copy

clone it. dupe it. give it main character energy but like... a second one. 🫢

πŸ’– color = $style->fg ($state, $new=undef)

  • $state β€” Gtk2::StateType
  • $new β€” Gtk2::Gdk::Color or undef

πŸŽ€ scalar = $style->font_desc ($new=undef)

  • $new β€” a scalar

⭐ scalar = $style->name ($new=undef)

  • $new β€” a scalar

πŸ”₯ color = $style->text ($state, $new=undef)

  • $state β€” Gtk2::StateType
  • $new β€” Gtk2::Gdk::Color or undef

🌸 scalar = $style->xthickness ($new=undef)

  • $new β€” a scalar

🌸 scalar = $style->ythickness ($new=undef)

  • $new β€” a scalar

🌈 ENUMS AND FLAGS 🌈

the little name/value besties. iykyk.

🏷️ flags Gtk2::RcFlags

  • 'fg' / 'GTK_RC_FG'
  • 'bg' / 'GTK_RC_BG'
  • 'text' / 'GTK_RC_TEXT'
  • 'base' / 'GTK_RC_BASE'

🏷️ enum Gtk2::StateType

  • 'normal' / 'GTK_STATE_NORMAL'
  • 'active' / 'GTK_STATE_ACTIVE'
  • 'prelight' / 'GTK_STATE_PRELIGHT'
  • 'selected' / 'GTK_STATE_SELECTED'
  • 'insensitive' / 'GTK_STATE_INSENSITIVE'

🫢 SEE ALSO 🫢

go read these next, bestie, they're the whole friend group:

  • Gtk2
  • Glib::Object

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


ok that's the whole page, no cap πŸ’…βœ¨

this was perl v5.42.0, dated 2025-07-25, and honestly? she ate. bye bestie, go style some rc πŸŽ€πŸ’–πŸŒˆ

πŸ“¦ where this page comes from