UI::Dialog::Backend::XOSD(3pm) | User Contributed Perl Documentation | UI::Dialog::Backend::XOSD(3pm) |
UI::Dialog::Backend::XOSD - backend for the osd_cat(1).
use UI::Dialog::Backend::XOSD; my $xosd = new UI::Dialog::Backend::XOSD (); $xosd->line( text => "Something to display...");
UI::Dialog::Backend::XOSD is an OOPerl wrapper for the osd_cat(1) program.
Use this module to present feedback to the end user via an on-screen display (like an on-screen TV volume meter). When you use any of the UI::Dialog meta classes (UI::Dialog, UI::Dialog::GNOME, etc.) access to this backend is provided via the $d->xosd method. ie: replace $xosd with $d->xosd in the synopsis example (provided you made $d with something like my $d = new UI::Dialog...). Also, UI::Dialog (and friends) only load this module when you first use the $d->xosd method (this may silently fail, but you can test by ref() for success).
my $xosd = new UI::Dialog::Backend::XOSD ( );
$xosd->line( text => "some text to display" );
$xosd->file( file => "/path/to/a/file" );
$xosd->gauge( text => "", percent => $current_percentage, length => 40, bar => "-", mark => "|" );
$xosd->display_start( );
$xosd->display_start(); $xosd->display_text( "Some string to display." );
$xosd->display_start(); $xosd->display_gauge( 50, "display an optional text string." );
$xosd->display_start(); $xosd->display_text( "about to stop!" ); $xosd->display_stop();
UI::Dialog UI::Dialog::Backend
Please email the author with any bug reports. Include the name of the module in the subject line.
Kevin C. Krinke, <kevin@krinke.ca>
Copyright (C) 2004-2016 Kevin C. Krinke <kevin@krinke.ca> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2018-10-27 | perl v5.26.2 |