« lib/Video/PlaybackMachine/TimeManager.pm
↑ Summary
lib/Video/PlaybackMachine/FillProducer/NextSchedule.pm »
| 1 | package Video::PlaybackMachine::EventWheel::FullScreen; | ||
| 2 | |||
| 3 | our $VERSION = '0.09'; # VERSION | ||
| 4 | |||
| 5 | use Moo; | ||
| 6 | |||
| 7 | use X11::FullScreen; | ||
| 8 | |||
| 9 | with 'Video::PlaybackMachine::EventWheel'; | ||
| 10 | |||
| 11 | ######################### Class Methods ######################### | ||
| 12 | |||
| 13 | |||
| 14 | ######################### Object Methods ######################## | ||
| 15 | |||
| 16 | sub get_event { | ||
| 17 | my $self = shift; | ||
| 18 | my ($heap) = @_; | ||
| 19 | |||
| 20 | return $self->source()->check_event(); | ||
| 21 | } | ||
| 22 | |||
| 23 | |||
| 24 | # Expose is 12 | ||
| 25 | sub set_expose_handler { | ||
| 26 | my ($self, $handler) = @_; | ||
| 27 | |||
| 28 | $self->set_handler(12, $handler); | ||
| 29 | } | ||
| 30 | |||
| 31 | # TODO: Make is_running check the display handle | ||
| 32 | |||
| 33 | no Moo; | ||
| 34 | |||
| 35 | 1; |