Gtk2::R...olButton(3)
π 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::AtkImplementorIfaceGtk2::BuildableGtk2::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 toundefif 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::RadioToolButtonorundef)
β toolitem = Gtk2::RadioToolButton->new_with_stock_from_widget ($group, $stock_id)
the combo meal: group and stock, together at last π
$group(Gtk2::Widgetorundef)$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: defaultundef: 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
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
- 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