Gtk2::RcStyle(3)
π 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β aGtk2::StateType(the enum's down below, don't worry)$newβ aGtk2::Gdk::Color, orundef
π color = $style->bg ($state, $new=undef)
$stateβGtk2::StateType$newβGtk2::Gdk::Colororundef
π§ scalar = $style->bg_pixmap_name ($state, $new=undef)
$stateβGtk2::StateType$newβ astring, orundef
π rcflags = $style->color_flags ($state, $new=0)
$stateβGtk2::StateType$newβGtk2::RcFlags
note the default is literally0, notundef. 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::Colororundef
π scalar = $style->font_desc ($new=undef)
$newβ ascalar
β scalar = $style->name ($new=undef)
$newβ ascalar
π₯ color = $style->text ($state, $new=undef)
$stateβGtk2::StateType$newβGtk2::Gdk::Colororundef
πΈ scalar = $style->xthickness ($new=undef)
$newβ ascalar
πΈ scalar = $style->ythickness ($new=undef)
$newβ ascalar
π 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:
Gtk2Glib::Object
π COPYRIGHT π
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
- 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