Curses::UI::Common(3pm) | User Contributed Perl Documentation | Curses::UI::Common(3pm) |
Curses::UI::Common - Common methods for Curses::UI
Curses::UI::Common - base class
package MyPackage; use Curses::UI::Common; use vars qw(@ISA); @ISA = qw(Curses::UI::Common);
Curses::UI::Common is a collection of methods that is shared between Curses::UI classes.
Returns the data member $this->{-parent}.
Returns the topmost -parent (the Curses::UI instance).
This method will walk through all the data members of the class intance. Each data member that is a Curses::Window descendant will be removed.
If VALUE is set, the value for the data member $this->{NAME} will be changed. The method will return the current value for data member $this->{NAME}.
All keys in the hash referred to by HASHREF will be converted to lower case.
The WORDWRAP and NO_WORDWRAP routines will return the correct value vor the WORDWRAP argument. These routines are exported by this class.
Example:
$this->text_wrap($line, 50, NO_WORDWRAP);
The BLOCKTIME argument can be used to set the curses halfdelay (the time to wait before the routine decides that no key was pressed). BLOCKTIME is given in tenths of seconds. The default is 0 (non-blocking key read).
Example:
my $key = $this->get_key(5)
Curses::UI
Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the same terms as perl itself.
2021-01-01 | perl v5.32.0 |