1Gtk2::ToggleAction(3) User Contributed Perl DocumentationGtk2::ToggleAction(3)
2
3
4
6 Gtk2::ToggleAction
7
9 my $action = Gtk2::ToggleAction->new (name => 'one',
10 tooltip => 'One');
11
12 Note that the constructor slightly deviates from the convenience con‐
13 structor in the C API. Instead of passing in a list of values for
14 name, label, tooltip and stock-id, you just use key => value pairs like
15 with Glib::Object::new.
16
18 Glib::Object
19 +----Gtk2::Action
20 +----Gtk2::ToggleAction
21
23 boolean = $action->get_active
24
25 $action->set_active ($is_active)
26
27 * $is_active (boolean)
28
29 boolean = $action->get_draw_as_radio
30
31 $action->set_draw_as_radio ($draw_as_radio)
32
33 * $draw_as_radio (boolean)
34
35 $action->toggled
36
38 'active' (boolean : readable / writable / private)
39 If the toggle action should be active in or not
40
41 'draw-as-radio' (boolean : readable / writable / private)
42 Whether the proxies for this action look like radio action proxies
43
45 toggled (Gtk2::ToggleAction)
46
48 Gtk2, Glib::Object, Gtk2::Action
49
51 Copyright (C) 2003-2007 by the gtk2-perl team.
52
53 This software is licensed under the LGPL. See Gtk2 for a full notice.
54
55
56
57perl v5.8.8 2007-03-18 Gtk2::ToggleAction(3)