1Gtk2::RadioAction(3) User Contributed Perl Documentation Gtk2::RadioAction(3)
2
3
4
6 Gtk2::RadioAction - wrapper for GtkRadioAction
7
9 my $action = Gtk2::RadioAction->new (name => 'one',
10 tooltip => 'One',
11 value => 23);
12
13 Note that the constructor slightly deviates from the convenience
14 constructor in the C API. Instead of passing in a list of values for
15 name, label, tooltip, stock-id and value, you just use key => value
16 pairs like with Glib::Object::new.
17
19 Glib::Object
20 +----Gtk2::Action
21 +----Gtk2::ToggleAction
22 +----Gtk2::RadioAction
23
25 Gtk2::Buildable
26
28 integer = $action->get_current_value
29 $action->set_current_value ($value)
30 · $value (integer)
31
32 Since: gtk+ 2.10
33
34 arrayref = $action->get_group
35 $action->set_group ($member_or_listref)
36 · $member_or_listref (scalar)
37
39 'current-value' (integer : default 0 : readable / writable / private /
40 static-nick / static-blurb)
41 The value property of the currently active member of the group to
42 which this action belongs.
43
44 'group' (Gtk2::RadioAction : default undef : writable / private /
45 static-nick / static-blurb)
46 The radio action whose group this action belongs to.
47
48 'value' (integer : default 0 : readable / writable / private / static-
49 nick / static-blurb)
50 The value returned by gtk_radio_action_get_current_value() when
51 this action is the current action of its group.
52
54 changed (Gtk2::RadioAction, Gtk2::RadioAction)
55
57 Gtk2, Glib::Object, Gtk2::Action, Gtk2::ToggleAction
58
60 Copyright (C) 2003-2011 by the gtk2-perl team.
61
62 This software is licensed under the LGPL. See Gtk2 for a full notice.
63
64
65
66perl v5.32.0 2020-07-28 Gtk2::RadioAction(3)