1Gtk2::Ex::FormFactory::UTsoegrglCeoBnuttrtiobnu(t3e)d PeGrtlk2D:o:cEuxm:e:nFtoartmiFoanctory::ToggleButton(3)
2
3
4
6 Gtk2::Ex::FormFactory::ToggleButton - A ToggleButton in a FormFactory
7 framework
8
10 Gtk2::Ex::FormFactory::ToggleButton->new (
11 true_label => Label of the activated button,
12 false_label => Label of the deactivated button,
13 stock => Name of stock image for this button,
14 clicked_hook => Coderef to called on clicking,
15 ...
16 Gtk2::Ex::FormFactory::Widget attributes
17 );
18
20 This class implements a ToggleButton in a Gtk2::Ex::FormFactory
21 framework. The state of the ToggleButton is controlled by the
22 associated application object attribute, which should has a boolean
23 value.
24
26 Gtk2::Ex::FormFactory::Intro
27
28 Gtk2::Ex::FormFactory::Widget
29 +--- Gtk2::Ex::FormFactory::ToggleButton
30
31 Gtk2::Ex::FormFactory::Layout
32 Gtk2::Ex::FormFactory::Rules
33 Gtk2::Ex::FormFactory::Context
34 Gtk2::Ex::FormFactory::Proxy
35
37 Attributes are handled through the common get_ATTR(), set_ATTR() style
38 accessors, but they are mostly passed once to the object constructor
39 and must not be altered after the associated FormFactory was built.
40
41 true_label = SCALAR [optional]
42 Once the button is activated this label is set.
43
44 false_label = SCALAR [optional]
45 Once the button is deactivated this label is set.
46
47 clicked_hook = CODEREF [optional]
48 This is for convenience and connects the CODEREF to the clicked
49 signal of the button.
50
51 stock = SCALAR [optional]
52 You may specify the name of a stock item here, which should be
53 added to the button, e.g. 'gtk-edit' for the standard Gtk Edit
54 stock item. You may combine stock and label arbitrarily.
55
56 For more attributes refer to Gtk2::Ex::FormFactory::Widget.
57
59 JA~Xrn Reder <joern at zyn dot de>
60
62 Copyright 2004-2006 by JA~Xrn Reder.
63
64 This library is free software; you can redistribute it and/or modify it
65 under the terms of the GNU Library General Public License as published
66 by the Free Software Foundation; either version 2.1 of the License, or
67 (at your option) any later version.
68
69 This library is distributed in the hope that it will be useful, but
70 WITHOUT ANY WARRANTY; without even the implied warranty of
71 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
72 Library General Public License for more details.
73
74 You should have received a copy of the GNU Library General Public
75 License along with this library; if not, write to the Free Software
76 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307
77 USA.
78
79
80
81perl v5.12.0 2006-05G-t2k62::Ex::FormFactory::ToggleButton(3)