Gtk2::R...MenuItem(3)
π NAME π
Gtk2::RadioMenuItem β bestie, it's literally just a wrapper for GtkRadioMenuItem π
She's a Perl-flavored glow-up of the GTK+ radio menu item, and she's serving.
πΈ HIERARCHY πΈ
okay so the family tree is giving β¨royaltyβ¨ β she did NOT come from nowhere:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Item
+----Gtk2::MenuItem
+----Gtk2::CheckMenuItem
+----Gtk2::RadioMenuItem
Look at all those ancestors. Generational talent, no cap π«Ά
π¦ INTERFACES π¦
she also carries these vibes (interfaces, technically):
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::BuildableGtk2::Activatable
π METHODS π
widget = Gtk2::RadioMenuItem->new ($member_or_listref=undef, $label=undef)
the classic constructor, main character energy fr fr:
$member_or_listref(scalar) β the member or listref, defaults toundef$label(string) β the label, defaults toundef
widget = Gtk2::RadioMenuItem->new_from_widget ($group, $label=undef)
$group(Gtk2::RadioMenuItem)$label(string)
Since: gtk+ 2.4 β¨
widget = Gtk2::RadioMenuItem->new_with_label ($member_or_listref=undef, $label=undef)
$member_or_listref(scalar)$label(string)
widget = Gtk2::RadioMenuItem->new_with_label_from_widget ($group, $label=undef)
$group(Gtk2::RadioMenuItem)$label(string)
Since: gtk+ 2.4 β¨
widget = Gtk2::RadioMenuItem->new_with_mnemonic ($member_or_listref=undef, $label=undef)
$member_or_listref(scalar)$label(string)
widget = Gtk2::RadioMenuItem->new_with_mnemonic_from_widget ($group, $label=undef)
$group(Gtk2::RadioMenuItem)$label(string)
Since: gtk+ 2.4 β¨
arrayref = $radio_menu_item->get_group
ngl this one's a vibe: it hands you back a reference to an array of "Gtk2::RadioMenuItem"s β aka the whole group membership, the squad, the friend group π
$radio_menu_item->set_group ($member_or_listref)
$member_or_listref(scalar)
π PROPERTIES π
'group'(Gtk2::RadioMenuItem : default undef : writable / private / static-nick / static-blurb) β the radio menu item whose group this widget belongs to. that's it, that's the whole property π«Ά
π SIGNALS π
group-changed(Gtk2::RadioMenuItem) β fires when the group changes, and you will be notified bestie π₯
β SEE ALSO β
go read these too, iykyk:
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Item, Gtk2::MenuItem, Gtk2::CheckMenuItem
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay and that's the whole page, no crumbs left πΈ this lil doc is part of the User Contributed Perl Documentation and it's stamped from perl v5.42.0 on 2025-07-25. mwah, go build something cute π
β¨
π¦ 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