NAME

SDLx::GUI::Widget - Base class for all GUI widgets

VERSION

version 0.002

DESCRIPTION

SDLx::GUI provides some widgets to build the interface. Those widgets all inherit from this base class.

ATTRIBUTES

parent

The parent widget (a SDLx::GUI::Widget object).

METHODS

pack

$widget->pack( %opts );

Request $widget to be packed on its parent. %opts is used to create a new SDLx::GUI::Pack object - refer to this module for more information on supported attributes.

is_visible

my $bool = $widget->is_visible;

Return true if $widget is currently visible, ie if it is packed and there's enough place on the screen for it to be shown.

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.