Gapp - Post-modern Gtk+ applications
use Gapp; use Gapp::Actions::Basic qw( Quit ); my $w = Gapp::Window->new( title => 'Gapp Application', signal_connect => [ [ 'delete-event' => Quit ], ], content => [ Gapp::HBox->new( content => [ Gapp::Label->new( text => 'hello world!' ), Gapp::Button->new( action => Quit ), ] ) ] ); $w->show_all; Gapp->main;
*THIS IS NEW SOFTWARE. IT IS STILL IN DEVELOPMENT. THE API MAY CHANGE IN FUTURE VERSIONS WITH NO NOTICE. THE DOCUMENTATION MAY COVER FEATURES THAT ARE NOT COMPLETE IN THEIR IMPLEMENTATION. THE DOCUMENTATION MAY ALSO BE LACKING.*
Gapp brings the post-modern feel of Moose to Gtk2-Perl.
The primary goal of Gapp is to make Perl 5 GUI programming easier and less tedious. With Gapp you can to think more about what you want to do and less about choreographing widgets or keeping them (and your data) up to date.
Gapp effectively separates user interface design from business logic and data structures. By defining the appearance and layout of widgets at a single point in your program, your entire application maintains a consistent look and feel.
Combining the features of Moose with Gtk2 yields a powerful framework for building GUI applications. Declarative syntax results in code that is clearer and easier to maintain. Roles and traits can by applied to widgets like any other Moose object.
The best place to start is the Gapp::Manual.
Delegates to Gtk2::main.
Gtk2::main
Delegates to Gtk2::main_quit.
Gtk2::main_quit
Thanks to everyone at Gtk2-Perl and Moose and all those who came before me for making this module possible. Thanks to Jörn Reder and the authors and contributors of MooseX::Types.
Gapp::TableMap uses code from Jörn Reder's Gtk2::Ex::FormFactory::Table (see Gapp::TableMap for more details.)
Gapp::Actions is based off of MooseX::Types (see Gapp::Actions for more details.)
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
Copyright (c) 2010-2012 Jeffrey Ray Hallock.
This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
Individual files in this package may have have multiple copyrights and/or licenses. Please refer to the documentation of indivdual packages for more information. (see Gapp::Actions, Gapp::TableMap)
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Jörn'. Assuming CP1252
To install Gapp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gapp
CPAN shell
perl -MCPAN -e shell install Gapp
For more information on module installation, please visit the detailed CPAN module installation guide.