Games::RailRoad::Window::Trains - an opaque vector class.


Games-RailRoad documentation  | view source Contained in the Games-RailRoad distribution.

Index


NAME

Top

Games::RailRoad::Window::Trains - an opaque vector class.

VERSION

Top

version 1.101330

DESCRIPTION

Top

GRW::Trains implements a POE session, creating a Tk window listing the trains existing in the simulation. The window can be hidden at will.

SYNOPSYS

Top

    my $id = Games::RailRoad::Window::Train->spawn(%opts);
    $kernel->post( $id, 'visibility_toggle' );

CLASS METHODS

Top

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.

PUBLIC EVENTS

Top

The newly created POE session accepts the following events:

visibility_toggle()

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.

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


Games-RailRoad documentation  | view source Contained in the Games-RailRoad distribution.