SDLx::GUI::Widget::Toplevel - Toplevel widget for whole app screen
version 0.002
This package provides a widget that will cover the whole application screen. It should be used as the base widget upon which all the other ones will be drawn.
One can call methods named after the widget class to be created on the toplevel. It will try to load said class and return the wanted widget. For example:
my $button = $toplevel->Button( ... ); my $label = $toplevel->Label( ... );
will return a SDLx::GUI::Widget::Label and a SDLx::GUI::Widget::Button object.
A reference to the main SDL application (a SDLx::App object). Mandatory, but storead as a weak reference.
$top->draw;
Request $top to be redrawn on the main application window, along with all its children.
$top
Jerome Quelin <jquelin@gmail.com>
This software is copyright (c) 2013 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.
To install SDLx::GUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDLx::GUI
CPAN shell
perl -MCPAN -e shell install SDLx::GUI
For more information on module installation, please visit the detailed CPAN module installation guide.