Gtk2::RadioAction(3)

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

πŸ’– 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 by gtk_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 πŸŽ€

  • Gtk2
  • Glib::Object
  • Gtk2::Action
  • Gtk2::ToggleAction

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