Gtk2::RadioAction(3)
π NAME π
Gtk2::RadioAction β bestie, it's a wrapper for GtkRadioAction β¨
πΈ SYNOPSIS πΈ
my $action = Gtk2::RadioAction->new (name => 'one',
tooltip => 'One',
value => 23);
okay so heads up π«Ά β this constructor slightly deviates from the convenience constructor in the C API. Not in a bad way!! It's just different. Instead of passing in a list of values for name, label, tooltip, stock-id and value, you just use key => value pairs, exactly like with Glib::Object::new. Slay π
π¦ HIERARCHY π¦
Glib::Object
+----Gtk2::Action
+----Gtk2::ToggleAction
+----Gtk2::RadioAction
look at that bloodline π three generations of iconic behavior.
π INTERFACES π
Gtk2::Buildable
β¨ METHODS β¨
integer = $action->get_current_value
$action->set_current_value ($value)
$value(integer)
Since: gtk+ 2.10 β
arrayref = $action->get_group
$action->set_group ($member_or_listref)
$member_or_listref(scalar)
π PROPERTIES π
'current-value'(integer : default 0 : readable / writable / private / static-nick / static-blurb) β the value property of the currently active member of the group that this action belongs to. it's giving "who's holding the mic right now" π€'group'(Gtk2::RadioAction: default undef : writable / private / static-nick / static-blurb) β the radio action whose group this action belongs to. aka your chosen family π«Ά'value'(integer : default 0 : readable / writable / private / static-nick / static-blurb) β the value returned bygtk_radio_action_get_current_value()when this action is the current action of its group. yes bestie, that's the whole point of it π
π₯ SIGNALS π₯
changed(Gtk2::RadioAction,Gtk2::RadioAction)
π SEE ALSO π
Gtk2Glib::ObjectGtk2::ActionGtk2::ToggleAction
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
k bye bestie, go build something gorgeous π¦ β this page came to you courtesy of perl v5.42.0, dated 2025-07-25, and yeah it's literally Gtk2::RadioAction(3), no cap π
π¦ 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