NAME
Curses::Toolkit::Widget::GenericButton - a button widget that can hold any other widget
VERSION
version 0.100680
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 text button, I recommend you use Curses::Toolkit::Widget::Button, it can take less space on the screen ( it can have no border ), and has more theme properties that suites best text buttons.
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.