- CLASS METHODS
- PUBLIC EVENTS
- COPYRIGHT AND LICENSE
Games::RailRoad::Window::Trains - an opaque vector class.
GRW::Trains implements a POE session, creating a Tk window listing the trains existing in the simulation. The window can be hidden at will.
my $id = Games::RailRoad::Window::Train->spawn(%opts); $kernel->post( $id, 'visibility_toggle' );
my $id = Games::RailRoad::Window::Train->spawn( %opts );
Create a window listing trains, and return the associated POE session ID. One can pass the following options:
- parent => $mw
A Tk window that will be the parent of the toplevel window created. This parameter is mandatory.
The newly created POE session accepts the following events:
Request the window to be hidden or restaured, depending on its previous state. Note that closing the window is actually interpreted as hiding the window.
COPYRIGHT AND LICENSE
This software is copyright (c) 2008 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.