Gtk2::Ex::FormFactory::Layout 0.65 review
DownloadGtk2::Ex::FormFactory::Layout can do layout in a FormFactory framework. SYNOPSIS package My::Layout; use base qw/Gtk2::E
|
|
Gtk2::Ex::FormFactory::Layout can do layout in a FormFactory framework.
SYNOPSIS
package My::Layout;
use base qw/Gtk2::Ex::FormFactory::Layout/;
sub build_form { ... }
sub add_widget_to_form { ... }
...
package main;
$ff = Gtk2::Ex::FormFactory->new (
layouter => My::Layout->new(),
...
);
This class implements the layout of Containers and their Widgets in a Gtk2::Ex::FormFactory framework. "Layout" means, how are the widgets aligned to each other, how much space is between them, how are titles rendered, how labels, etc.
The idea behind Gtk2::Ex::FormFactory::Layout is to have a unique point in a GUI application which actually implements these things. The advantage of this approach is obvious: the implementation is very generic and if you want to change layout things you subclass from Gtk2::Ex::FormFactory::Layout and implement your changes there, and not at hundreds of spots distributed over the source code of your application.
The natural result: a consistent looking GUI.
Requirements:
Perl
Gtk2::Ex::FormFactory::Layout 0.65 keywords