Gnome2::Scores(3)

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

πŸ’– 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::AtkImplementorIface
  • Gtk2::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:

  • Gnome2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::Container
  • Gtk2::Bin
  • Gtk2::Window
  • Gtk2::Dialog

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