NAME
UI::Various::Curses::Main - concrete implementation of UI::Various::Main
SYNOPSIS
# This module should never be used directly!
# It is used indirectly via the following:
use UI::Various::Main;
ABSTRACT
This module is the specific implementation of UI::Various::Main for Curses::UI. It manages and hides everything specific to Curses::UI.
DESCRIPTION
The documentation of this module is only intended for developers of the package itself.
FUNCTIONS
_init - initialisation
UI::Various::Curses::Main::_init($self);
example:
$_ = UI::Various::core::ui . '::Main::_init';
{ no strict 'refs'; &$_($self); }
parameters:
$self reference to object of abstract parent class
description:
Prepare the interface to Curses::UI. (It's under FUNCTIONS as it's called before the object is re-blessed as UI::Various::Curses::Main
.)
METHODS
mainloop - main event loop of an application
Curses
's concrete implementation of UI::Various::Main::mainloop
window - and new window to application
Curses
's overload of UI::Various::Main::window. If the Mainloop
of Curses::UI is running, we need to directly prepare and show the window / dialogue.
_focus - change focus to other top-level UI element
$self->_focus($index);
parameters:
$self reference to object
$index -1/0/+1 index to select other top-level UI element
description:
Change the focus to previous (-1
), next (+1
) or newest (0
) (probably) other top-level UI element.
SEE ALSO
UI::Various, UI::Various::Main
LICENSE
Copyright (C) Thomas Dorner.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See LICENSE file for more details.
AUTHOR
Thomas Dorner <dorner (at) cpan (dot) org>