Home / CPAN Modules / | ||||
X::Osd - Perl extension to the X On Screen Display library (xosd) | ||||
use X::Osd; my $osd = X::Osd->new("-*-lucidatypewriter-medium-r-normal-*-*-250-*-*-*-*-*-*","Green",3,XOSD_top,1,2); $osd->string(0,'Hello World!'); $osd->percentage(0,56); $osd->slider(0,34);
XOSD displays text on your screen, sounds simple right? The difference is it is unmanaged and shaped, so it appears transparent. This gives the effect of an On Screen Display, like your TV/VCR etc..
It currently supports 3 type of writes, string for simple text, slider and percentage display.
You need to have libxosd installed. You can get it from http://www.ignavus.net/software.html
where pos is one of (XOSD_top, XOSD_bottom)
where percentage is between 0 and 100
where percentage is between 0 and 100
where pos is one of (XOSD_top, XOSD_bottom)
The CVS repository of X::Osd is avaliabe thru anoncvs at:
$> cvs -d :pserver:anoncvs@cvs.ectoplasm.org:/home/anoncvs login password: anoncvs $> cvs -d :pserver:anoncvs@cvs.ectoplasm.org:/home/anoncvs co X-Osd
Copyright (c) 2002 Philippe M. Chiasson. All rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
|