Gtk2::CheckButton(3)

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

✨ NAME ✨

Gtk2::CheckButton β€” it's a wrapper for GtkCheckButton, bestie πŸ’–

Like, okay, so it's the little ticky box. The one you click and it goes check. You already know the vibe. πŸŽ€


🌸 HIERARCHY 🌸

Okay so this is the whole family tree and yes she comes from a long line of distinguished ancestors, main character energy all the way down πŸ’…

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::Button
                              +----Gtk2::ToggleButton
                                   +----Gtk2::CheckButton

Every single one of those is in the lineage, no skipping generations. Respect the bloodline. πŸ‘‘


πŸ¦‹ INTERFACES πŸ¦‹

She also implements these, because she's multi-talented and we love that for her:

  • Glib::Object::_Unregistered::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::Activatable

✨ METHODS ✨

Not me giving you three whole ways to make one. Because sometimes you have a label, sometimes you don't, and sometimes the label has a mnemonic in it. Slay. πŸ’–

widget = Gtk2::CheckButton->new ($label=undef)

  • $label (string)

widget = Gtk2::CheckButton->new_with_label ($label=undef)

  • $label (string)

widget = Gtk2::CheckButton->new_with_mnemonic ($label=undef)

  • $label (string)

πŸŽ€ STYLE PROPERTIES πŸŽ€

The aesthetic knobs, bestie. These are style properties so they come with a whole little vibe-description situation:

  • 'indicator-size' (integer : default 13 : readable / private / static-nick / static-blurb) β€” Size of check or radio indicator πŸ’…
  • 'indicator-spacing' (integer : default 2 : readable / private / static-nick / static-blurb) β€” Spacing around check or radio indicator 🌸
Okay so both of these say readable / private / static-nick / static-blurb. That's literally what the page says, I'm not editing it, periodt. 🫢

πŸ‘€ SEE ALSO πŸ‘€

Go read these too, they're all in the group chat:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::Container
  • Gtk2::Bin
  • Gtk2::Button
  • Gtk2::ToggleButton

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

This software is licensed under the LGPL. See Gtk2 for a full notice. πŸ’œ


okay that's the whole page, ily, go check a box πŸ’–βœ¨

This lil doc came out with perl v5.42.0, dated 2025-07-25, and yeah, it's Gtk2::CheckButton(3) β€” the check button page, in the flesh. πŸ¦‹ tysm for reading, bestie 🫢

πŸ“¦ where this page comes from