The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SDLx::GUI::Widget::Toplevel - Toplevel widget for whole app screen

VERSION

version 0.002

DESCRIPTION

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.

Widget creation

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.

ATTRIBUTES

app

A reference to the main SDL application (a SDLx::App object). Mandatory, but storead as a weak reference.

METHODS

draw

    $top->draw;

Request $top to be redrawn on the main application window, along with all its children.

AUTHOR

Jerome Quelin <jquelin@gmail.com>

COPYRIGHT AND LICENSE

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.