NAME
Catalyst::Engine::Wx - Catalyst wxPerl Engine
SYNOPSIS
A script using the Catalyst::Engine::Wx module might look like:
#!/usr/bin/perl -w
BEGIN { $ENV{CATALYST_ENGINE} = 'Wx' }
use strict;
use lib '/path/to/MyApp/lib';
use MyApp;
use Catalyst::Log::Wx;
App->log(Catalyst::Log::Wx->new);
MyApp->setup;
MyApp->run({
bootstrap => '/',
});
DESCRIPTION
This is the Catalyst engine specialized for building non-blocking and multi-platforms desktop applications with the Catalyst framework. It allows to tie Wx events to Catalyst controllers asychronously.
It will also allow you to replace html views with Wx views from which you can access the stash and deals with controllers just like in any other Catalyst application running a web engine.
See the tests and the demo application for more informations.
You can now have a debug frame which allow you to reload your Wx views when they changed (thanks to Module::Reload).
The following methods are for internal use despite that these don't start with the classical underscore.
run
Creates the Catalyst POE session that will receive and deals with events.
EVENT_REQUEST
Receive and event from the Wx views and send it in the Catalyst flow.
prepare
Transform an event with parameters into a Catalyst request.
AUTHORS
Eriam Schaffter, eriam@cpan.org
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.