Gtk2-Ex-FormFactory
view release on metacpan or search on metacpan
lib/Gtk2/Ex/FormFactory/Widget.pm view on Meta::CPAN
object => Name of the associated application object,
attr => Attribute represented by the Widget,
label => Label text,
label_markup => Boolean, indicating whether the label has markup,
label_group => Name of a Gtk2::SizeGroup for the label,
widget_group => Name of a Gtk2::SizeGroup for the widget,
tip => Tooltip text,
properties => { Gtk2 Properties ... }
inactive => 'insensitive' | 'invisible',
rules => [ Rules for this Widget ],
expand => Boolean: should the Widget expand?,
expand_h => Boolean: should the Widget expand horizontally?,
expand_v => Boolean: should the Widget expand vertically?,
scrollbars => [ hscrollbar_policy, vscrollbar_policy ],
signal_connect => { signal => CODREF, ... },
signal_connect_after => { signal => CODREF, ... },
width => Desired width,
height => Desired height,
customize_hook => CODEREF: Customize the underlying Gtk2 Widget,
changed_hook => CODEREF: Track changes made to the Widget,
changed_hook_after => CODEREF: Track changes made to the Widget,
active_cond => CODEREF: Condition for Widget being active
active_depends => SCALAR|ARRAYREF: Attribute(s) activity depends on
);
=head1 DESCRIPTION
This is an abstract base class and usually not used directly from the
application. For daily programming the attributes defined in this
class are most important, since they are common to all Widgets of the
Gtk2::Ex::FormFactory framework.
=head1 OBJECT HIERARCHY
Gtk2::Ex::FormFactory::Intro
Gtk2::Ex::FormFactory::Widget
+--- Gtk2::Ex::FormFactory::Container
| +--- Gtk2::Ex::FormFactory
| +--- Gtk2::Ex::FormFactory::Expander
| +--- Gtk2::Ex::FormFactory::Form
| +--- Gtk2::Ex::FormFactory::HBox
| +--- Gtk2::Ex::FormFactory::Notebook
| +--- Gtk2::Ex::FormFactory::Table
| +--- Gtk2::Ex::FormFactory::VBox
| +--- Gtk2::Ex::FormFactory::Window
+--- Gtk2::Ex::FormFactory::Button
+--- Gtk2::Ex::FormFactory::CheckButton
+--- Gtk2::Ex::FormFactory::CheckButtonGroup
+--- Gtk2::Ex::FormFactory::Combo
+--- Gtk2::Ex::FormFactory::DialogButtons
+--- Gtk2::Ex::FormFactory::Entry
+--- Gtk2::Ex::FormFactory::Expander
+--- Gtk2::Ex::FormFactory::ExecFlow
+--- Gtk2::Ex::FormFactory::GtkWidget
+--- Gtk2::Ex::FormFactory::HPaned
+--- Gtk2::Ex::FormFactory::HSeparator
+--- Gtk2::Ex::FormFactory::Image
+--- Gtk2::Ex::FormFactory::Label
+--- Gtk2::Ex::FormFactory::List
+--- Gtk2::Ex::FormFactory::Menu
+--- Gtk2::Ex::FormFactory::Popup
+--- Gtk2::Ex::FormFactory::ProgressBar
+--- Gtk2::Ex::FormFactory::RadioButton
+--- Gtk2::Ex::FormFactory::TextView
+--- Gtk2::Ex::FormFactory::Timestamp
+--- Gtk2::Ex::FormFactory::ToggleButton
+--- Gtk2::Ex::FormFactory::VPaned
+--- Gtk2::Ex::FormFactory::VSeparator
+--- Gtk2::Ex::FormFactory::YesNo
Gtk2::Ex::FormFactory::Layout
Gtk2::Ex::FormFactory::Rules
Gtk2::Ex::FormFactory::Context
Gtk2::Ex::FormFactory::Proxy
+--- Gtk2::Ex::FormFactory::ProxyBuffered
=head1 ATTRIBUTES
Attributes are handled through the common get_ATTR(), set_ATTR()
style accessors, but they are mostly passed once to the object
constructor and must not be altered after the associated FormFactory
was built.
=over 4
=item B<name> = SCALAR [optional]
Each widget has a unique name. If you don't specify it explicitly a
name is generated automatically. You can select named widgets later
by using the B<get_widget> and B<lookup_widget> methods described
below.
=item B<object> = SCALAR [optional]
The name of the object, which controls this widget. This object name
must be registered at the L<Gtk2::Ex::FormFactory::Context> of the
L<Gtk2::Ex::FormFactory> associated with this Widget.
You may omit the B<object> property and use a fully qualified
"object.attr" notation in the B<attr> attribute described beyond.
If you want to associate your Widget only with an object, but not to
an attribute (e.g. to get the activity of a container widget without an
associated object attribute managed automatically)
just omit B<attr> and specify only B<object> here.
=item B<attr> = SCALAR [optional]
Usually a Widget represents a specific object attribute, e.g. a text
entry shows the current value of the attribute you specify here. How
this attribute is accessed is defined in the
L<Gtk2::Ex::FormFactory::Context> instance.
If you used the B<object> property just pass the name of your attribute
here, but you may omit B<object> and pass "object.attr" to the B<attr>
property for convenience as well.
=item B<label> = SCALAR [optional]
Each Widget may have an associated label. How this label is actually
rendered depends on the L<Gtk2::Ex::FormFactory::Container> to which
( run in 2.252 seconds using v1.01-cache-2.11-cpan-63c85eba8c4 )