NAME
Curses::Toolkit::Widget::Button - a simple text button widget
VERSION
version 0.093020
DESCRIPTION
The Curses::Toolkit::Widget::Button widget is a classical button widget, used to attach a function that is called when the button is pressed.
This widget cannot hold any widget. If you want a button with a specific widget, please use Curses::Toolkit::Widget::GenericButton, however it will use more space in your inerface
CONSTRUCTOR
new
input : none
output : a Curses::Toolkit::Widget::Button
new_with_label
input : the text of the button
output : a Curses::Toolkit::Widget::Button
METHODS
set_text
Set the text of the entry
input : STRING, the text
output : the button object
get_text
Get the text of the Button
input : none
output : STRING, the Button text
draw
get_desired_space
Given a coordinate representing the available space, returns the space desired The Button desires the minimum size : text length plus the button brackets
input : a Curses::Toolkit::Object::Coordinates object
output : a Curses::Toolkit::Object::Coordinates object
get_minimum_space
Given a coordinate representing the available space, returns the minimum space required The Button requires the text length plus the button brackets
input : a Curses::Toolkit::Object::Coordinates object
output : a Curses::Toolkit::Object::Coordinates object
possible_signals
my @signals = keys $button->possible_signals();
returns the possible signals that can be used
input : none
output : HASH, keys are siagnal names, values are signal classes
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.