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

NAME

6       Gtk2::ToggleAction
7

SYNOPSIS

9         my $action = Gtk2::ToggleAction->new (name => 'one',
10                                               tooltip => 'One');
11
12       Note that the constructor slightly deviates from the convenience
13       constructor 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

HIERARCHY

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

INTERFACES

23         Gtk2::Buildable
24

METHODS

26   boolean = $action->get_active
27   $action->set_active ($is_active)
28           ·   $is_active (boolean)
29
30   boolean = $action->get_draw_as_radio
31   $action->set_draw_as_radio ($draw_as_radio)
32           ·   $draw_as_radio (boolean)
33
34   $action->toggled

PROPERTIES

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

SIGNALS

43       toggled (Gtk2::ToggleAction)
44

SEE ALSO

46       Gtk2, Glib::Object, Gtk2::Action
47
49       Copyright (C) 2003-2008 by the gtk2-perl team.
50
51       This software is licensed under the LGPL.  See Gtk2 for a full notice.
52
53
54
55perl v5.12.0                      2010-05-02             Gtk2::ToggleAction(3)
Impressum