Gnome2::Scores(3)
π Gnome2::Scores(3) β the manual page, but make it cute π
okay so bestie, you opened up Gnome2::Scores(3) and honestly? slay. it's a whole wrapper for GnomeScores, and i'm gonna walk you through every single bit of it, no cap. π
β¨ NAME β¨
Gnome2::Scores β it's a wrapper for GnomeScores. that's it, that's the vibe. π
πΈ HIERARCHY πΈ
okay so this is the family tree, the ancestry.com situation, the "who's your daddy" of Perl objects. Gnome2::Scores is deep in the bloodline, like deep deep:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Window
+----Gtk2::Dialog
+----Gnome2::Scores
look at all those great-great-great-grandparents. main character lineage fr fr. π
π¦ INTERFACES π¦
these are the interfaces it implements, aka the group chats it's in:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
π METHODS π
here's where it gets juicy. every method, every arg, nothing skipped, i love you but i will not be summarising. π
π widget = Gnome2::Scores->new ($names, $scores, $times, $clear)
make a brand new one, periodt. here's what you're passing in:
$names(scalar) β a reference to an array$scores(scalar) β a reference to an array$times(scalar) β a reference to an array$clear(boolean)
π $gs->set_color ($n, $col)
set a color, obviously. π
$n(integer)$col(Gtk2::Gdk::Color)
π $gs->set_colors ($col)
set the colors (plural, we're doing a whole palette moment).
$col(Gtk2::Gdk::Color)
π $gs->set_current_player ($i)
tell it who the current player is. give them their moment. β
$i(integer)
π $gs->set_def_color ($col)
set the default color. the default default. iconic.
$col(Gtk2::Gdk::Color)
π widget = Gnome2::Scores->display ($title, $app_name, $level, $pos)
show the thing. here's the tea:
$title(string)$app_name(string)$level(string)$pos(integer)
π widget = Gnome2::Scores->display_with_pixmap ($pixmap_logo, $app_name, $level, $pos)
same energy as display, except now there's a pixmap logo involved. fancy. π
$pixmap_logo(string)$app_name(string)$level(string)$pos(integer)
π $gs->set_logo_label ($txt, $font, $col)
label the logo. font and color included, we're not doing anything half-baked.
$txt(string)$font(string)$col(Gtk2::Gdk::Color)
π $gs->set_logo_label_title ($txt)
the title of the logo label. yes it's a whole separate method. no i don't make the rules.
$txt(string)
π $gs->set_logo_pixmap ($pix_name)
give that logo a pixmap, by name. πΌοΈ
$pix_name(string)
π $gs->set_logo_widget ($w)
orrr give it a whole widget instead. your call bestie, you've got options.
$w(Gtk2::Widget)
π SEE ALSO π
go read these too, i'm not gatekeeping:
Gnome2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::ContainerGtk2::BinGtk2::WindowGtk2::Dialog
π COPYRIGHT π
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
ngl that's a long history and they've been keeping it cute since 2003. respect. π«Ά
okay and that's the whole page!! no crumbs left. this was perl v5.42.0, dated 2025-07-25, and it lives under the name Gnome2::Scores(3). mwah, love u, go write some Perl. πβ¨ππ¦πΈπ
π«Άππ₯ππβππππ§π
π¦ where this page comes from
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms