Gtk2::R...olButton(3)

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

πŸ’– Gtk2::RadioToolButton β€” bestie edition ✨

okay so. Gtk2::RadioToolButton? it's literally a wrapper for GtkRadioToolButton. that's the whole vibe. a radio button but it lives in your toolbar. no cap. πŸŽ€

this page is from the User Contributed Perl Documentation crew, and it's giving "short but mighty". let's go. πŸ’…


🌸 HIERARCHY

here's the family tree, and yes it's a whole dynasty πŸ‘‘

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::ToolItem
                              +----Gtk2::ToolButton
                                   +----Gtk2::ToggleToolButton
                                        +----Gtk2::RadioToolButton

so it inherited from Gtk2::ToggleToolButton, which means it's lowkey a toggle that's highkey a tool button. the way that lineage just keeps going 😭 iconic behavior fr fr.


πŸ¦‹ INTERFACES

it also implements these, slay:

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

✨ METHODS ✨

🌈 toolitem = Gtk2::RadioToolButton->new ($member_or_listref=undef)

makes you a fresh radio tool button. the arg:

  • $member_or_listref (scalar) β€” and heads up, it defaults to undef if you don't pass anything 🫢

πŸ“ toolitem = Gtk2::RadioToolButton->new_from_stock ($member_or_listref, $stock_id)

same energy but you're pulling a stock item too:

  • $member_or_listref (scalar)
  • $stock_id (string)

🧚 toolitem = Gtk2::RadioToolButton->new_from_widget ($group)

clone the group energy from another widget:

  • $group (Gtk2::RadioToolButton or undef)

⭐ toolitem = Gtk2::RadioToolButton->new_with_stock_from_widget ($group, $stock_id)

the combo meal: group and stock, together at last πŸ’œ

  • $group (Gtk2::Widget or undef)
  • $stock_id (string)

πŸ’€ arrayref = $button->get_group

πŸ’€ $button->set_group ($member_or_listref)

getter and setter, the classic duo. one gives you back an arrayref, the other takes:

  • $member_or_listref (scalar)

πŸŽ€ PROPERTIES

  • 'group' (Gtk2::RadioToolButton : default undef : writable / private / static-nick / static-blurb) β€” this is the radio tool button whose group this button belongs to. it's the "who's your people" property. found family, but make it widgets. 🫢

πŸ‘‘ SEE ALSO

go read these too, they're all connected:

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::ToolItem, Gtk2::ToolButton, Gtk2::ToggleToolButton


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

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


and that's the whole page bestie, you ate it up πŸ’…βœ¨ this one's perl v5.42.0, dated 2025-07-25, brought to you by the User Contributed Perl Documentation girlies. mwah. πŸŽ€πŸ’–

πŸ“¦ where this page comes from