1Gtk2::ToggleAction(3) User Contributed Perl DocumentationGtk2::ToggleAction(3)
2
3
4

NAME

6       Gtk2::ToggleAction - wrapper for GtkToggleAction
7

SYNOPSIS

9         my $action = Gtk2::ToggleAction->new (name => 'one',
10                                               tooltip => 'One');
11

DESCRIPTION

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

HIERARCHY

19         Glib::Object
20         +----Gtk2::Action
21              +----Gtk2::ToggleAction
22

INTERFACES

24         Gtk2::Buildable
25

METHODS

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

PROPERTIES

37       'active' (boolean : default false : readable / writable / private)
38           If the toggle action should be active in or not
39
40       'draw-as-radio' (boolean : default false : readable / writable /
41       private)
42           Whether the proxies for this action look like radio action proxies
43

SIGNALS

45       toggled (Gtk2::ToggleAction)
46

SEE ALSO

48       Gtk2, Glib::Object, Gtk2::Action
49
51       Copyright (C) 2003-2011 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.30.1                      2020-01-30             Gtk2::ToggleAction(3)
Impressum