1Gtk2::ToggleAction(3) User Contributed Perl DocumentationGtk2::ToggleAction(3)
2
3
4
6 Gtk2::ToggleAction - wrapper for GtkToggleAction
7
9 my $action = Gtk2::ToggleAction->new (name => 'one',
10 tooltip => 'One');
11
13 Note that "new" is the plain Glib::Object "new" (see Gtk2::Action).
14 The name, label, tooltip and stock_id arguments of the C code
15 gtk_toggle_action_new() can be given as key/value pairs, plus other
16 property values like active or sensitive.
17
19 Glib::Object
20 +----Gtk2::Action
21 +----Gtk2::ToggleAction
22
24 Gtk2::Buildable
25
27 boolean = $action->get_active
28 $action->set_active ($is_active)
29 • $is_active (boolean)
30
31 boolean = $action->get_draw_as_radio
32 $action->set_draw_as_radio ($draw_as_radio)
33 • $draw_as_radio (boolean)
34
35 $action->toggled
37 'active' (boolean : default false : readable / writable / private /
38 static-nick / static-blurb)
39 If the toggle action should be active in or not
40
41 'draw-as-radio' (boolean : default false : readable / writable /
42 private / static-nick / static-blurb)
43 Whether the proxies for this action look like radio action proxies
44
46 toggled (Gtk2::ToggleAction)
47
49 Gtk2, Glib::Object, Gtk2::Action
50
52 Copyright (C) 2003-2011 by the gtk2-perl team.
53
54 This software is licensed under the LGPL. See Gtk2 for a full notice.
55
56
57
58perl v5.36.0 2023-01-20 Gtk2::ToggleAction(3)