Curses::Toolkit::Widget::GenericButton - a button widget that can hold any other widget
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.
input : none output : a Curses::Toolkit::Widget::GenericButton
This creates a button with a Curses::Toolkit::Widget::Label for you.
input : the label of the button output : a Curses::Toolkit::Widget::GenericButton
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.