NAME

Curses::Toolkit::Widget::GenericButton - a button widget

VERSION

version 0.092920

DESCRIPTION

The Curses::Toolkit::Widget::GenericButton widget is generally used to attach a function that is called when the button is pressed.

This widget can hold any valid child widget. That is it can hold most any other standard Widget. The most commonly used child is the Curses::Toolkit::Widget::Label. This widget consists of a border, and a child widget in that border

However, if all you need is a simple button, I recommend you use Curses::Toolkit::Widget::GenericButton, it will take less space in your screen ( it has no border )

This widget can contain 0 or 1 other widget.

CONSTRUCTOR

new

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

new_with_label

This creates a button with a Curses::Toolkit::Widget::Label for you.

input : the label of the button
output : a Curses::Toolkit::Widget::GenericButton

AUTHOR

Damien "dams" Krotkine

COPYRIGHT AND LICENSE

This software is copyright (c) 2008 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.