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

NAME

Curses::Toolkit::Widget::Bin - a bin widget

VERSION

version 0.211

DESCRIPTION

This widget can contain 0 or 1 other widget.

CONSTRUCTOR

new

  input : none
  output : a Curses::Toolkit::Widget::Bin

METHODS

add_widget

Add a widget as unique child. Only one widget can be added. Fails if a child already exists. Call remove_widget() if you want to call add_widget() again. To know if there is already a widget, call get_children().

The added child widget takes all the available space.

  input  : the child widget
  output : the current widget (not the child widget)

remove_widget

Removes the child widget.

  input  : none
  output : the current widget (not the child widget)

AUTHOR

Damien "dams" Krotkine

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Damien "dams" Krotkine.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.