1Gtk2::Ex::FormFactory::UTsoegrglCeoBnuttrtiobnu(t3e)d PeGrtlk2D:o:cEuxm:e:nFtoartmiFoanctory::ToggleButton(3)
2
3
4

NAME

6       Gtk2::Ex::FormFactory::ToggleButton - A ToggleButton in a FormFactory
7       framework
8

SYNOPSIS

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           image        => Filename of image to put on button,
16           ...
17           Gtk2::Ex::FormFactory::Widget attributes
18         );
19

DESCRIPTION

21       This class implements a ToggleButton in a Gtk2::Ex::FormFactory
22       framework.  The state of the ToggleButton is controlled by the
23       associated application object attribute, which should has a boolean
24       value.
25

OBJECT HIERARCHY

27         Gtk2::Ex::FormFactory::Intro
28
29         Gtk2::Ex::FormFactory::Widget
30         +--- Gtk2::Ex::FormFactory::ToggleButton
31
32         Gtk2::Ex::FormFactory::Layout
33         Gtk2::Ex::FormFactory::Rules
34         Gtk2::Ex::FormFactory::Context
35         Gtk2::Ex::FormFactory::Proxy
36

ATTRIBUTES

38       Attributes are handled through the common get_ATTR(), set_ATTR() style
39       accessors, but they are mostly passed once to the object constructor
40       and must not be altered after the associated FormFactory was built.
41
42       true_label = SCALAR [optional]
43           Once the button is activated this label is set.
44
45       false_label = SCALAR [optional]
46           Once the button is deactivated this label is set.
47
48       clicked_hook = CODEREF [optional]
49           This is for convenience and connects the CODEREF to the clicked
50           signal of the button.
51
52       stock = SCALAR [optional]
53           You may specify the name of a stock item here, which should be
54           added to the button, e.g. 'gtk-edit' for the standard Gtk Edit
55           stock item. You may combine stock and label arbitrarily.
56
57       image = FILENAME [optional]
58           Use just this image for the button. No additional label is applied.
59
60       For more attributes refer to Gtk2::Ex::FormFactory::Widget.
61

AUTHORS

63        Jörn Reder <joern at zyn dot de>
64
66       Copyright 2004-2006 by Jörn Reder.
67
68       This library is free software; you can redistribute it and/or modify it
69       under the terms of the GNU Library General Public License as published
70       by the Free Software Foundation; either version 2.1 of the License, or
71       (at your option) any later version.
72
73       This library is distributed in the hope that it will be useful, but
74       WITHOUT ANY WARRANTY; without even the implied warranty of
75       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
76       Library General Public License for more details.
77
78       You should have received a copy of the GNU Library General Public
79       License along with this library; if not, write to the Free Software
80       Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307
81       USA.
82

POD ERRORS

84       Hey! The above document had some coding errors, which are explained
85       below:
86
87       Around line 200:
88           Non-ASCII character seen before =encoding in 'Jörn'. Assuming UTF-8
89
90
91
92perl v5.38.0                      2023-07G-t2k02::Ex::FormFactory::ToggleButton(3)
Impressum