Tickit::Widget::SegmentDisplay - show a single character like a segmented display
This class provides a widget that immitates a segmented LED or LCD display. It shows a single character by lighting or shading fixed rectangular bars.
The default style pen is used as the widget pen, though only the background colour will actually matter as the widget does not directly display text.
The following style keys are used:
- lit => COLOUR
- unlit => COLOUR
Colour descriptions (index or name) for the lit and unlight segments of the display.
$segmentdisplay = Tickit::Widget::SegmentDisplay->new( %args )
Constructs a new
Takes the following named arguments
- value => STR
Sets an initial value.
- type => STR
The type of display. Supported types are:
A 7-segment bar display
$value = $segmentdisplay->value
$segmentdisplay->set_value( $value )
Return or set the character on display
Paul Evans <email@example.com>