NAME
FLTK::ClockOutput - Base class of FLTK::Clock
Description
Base class of Clock
, this one does not move, it just displays whatever time you set into it.
type()
may be set to SQUARE
, ROUND
, or DIGITAL
(nyi).
Functions
ANALOG
DIGITAL
ROUND
SQUARE
hour
my $h = $clockoutput->hour( );
-
Return the hour sent to the last call to
value()
.
minute
my $m = $clockoutput->minute( );
-
Return the minute sent to the last call to
value()
.
new
second
my $s = $clockoutput->second( );
-
Return the second sent to the last call to
value()
.
value
$clockoutput->value( $time );
-
Set the clock to a Unix timestamp. The value is passed through the
localtime()
function and used to get the hour, minute, and second. $clockoutput->value( $hour, $minute, $second );
-
Set the hour, minute, and second to display. The hour is effectively taken modulus 12 and the minute and second modulus 60 to figure out where to place the hands. Redraw happens only if different.
Note that this does not set the
value()
; ...without the date, it really can't. my $time = $clockoutput->value( );
-
Return the last Unix timestamp the clock was set to.
Author
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
License and Legal
Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>
This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.
When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.