« lib/Video/PlaybackMachine/FillProducer/NextSchedule.pm
↑ Summary
lib/Video/PlaybackMachine/FillProducer/UpNext.pm »
| 1 | package Video::PlaybackMachine::FillProducer::StaticFrame; | ||
| 2 | |||
| 3 | our $VERSION = '0.09'; # VERSION | ||
| 4 | |||
| 5 | use Moo; | ||
| 6 | |||
| 7 | extends 'Video::PlaybackMachine::FillProducer::TextFrame'; | ||
| 8 | |||
| 9 | has 'static_text' => ( 'is' => 'ro' ); | ||
| 10 | |||
| 11 | ## | ||
| 12 | ## add_text() | ||
| 13 | ## | ||
| 14 | ## Write our static text on the frame. | ||
| 15 | ## | ||
| 16 | sub add_text { | ||
| 17 | my ($self) = @_; | ||
| 18 | |||
| 19 | $self->write_centered( $self->{'static_text'} ); | ||
| 20 | } | ||
| 21 | |||
| 22 | no Moo; | ||
| 23 | |||
| 24 | 1; |